From 5e9f4eea451a77ba3b93db3747841ed2bd969e9f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Frings-F=C3=BCrst?= Date: Sun, 30 Sep 2018 14:09:20 +0200 Subject: New upstream version 0.30.1 --- plugins/authenticator/shotwell-authenticator.h | 43 - plugins/authenticator/shotwell-authenticator.vapi | 23 - .../shotwell/FacebookPublishingAuthenticator.c | 2419 ---- .../shotwell/FlickrPublishingAuthenticator.c | 1674 --- .../authenticator/shotwell/GoogleAuthenticator.c | 2733 ---- .../authenticator/shotwell/OAuth1Authenticator.c | 772 -- .../shotwell/ShotwellAuthenticatorFactory.c | 416 - .../authenticator/shotwell/TumblrAuthenticator.c | 1488 -- plugins/common/BuilderPane.c | 711 - plugins/common/OAuth1Support.c | 1887 --- plugins/common/RESTSupport.c | 7826 ----------- plugins/common/RESTSupport.vala | 3 + plugins/common/Resources.c | 444 - plugins/common/WebAuthenticationPane.c | 637 - plugins/meson.build | 2 +- plugins/shotwell-plugin-common.h | 670 - plugins/shotwell-plugin-common.vapi | 205 - plugins/shotwell-plugin-dev-1.0.h | 1046 -- plugins/shotwell-plugin-dev-1.0.vapi | 416 - .../shotwell-publishing-extras/GalleryConnector.c | 13133 ------------------ .../shotwell-publishing-extras/RajcePublishing.c | 11924 ---------------- .../shotwell-publishing-extras/YandexPublishing.c | 5214 ------- .../shotwell-publishing-extras.c | 387 - plugins/shotwell-publishing/FacebookPublishing.c | 10155 -------------- plugins/shotwell-publishing/FlickrPublishing.c | 6939 ---------- plugins/shotwell-publishing/PicasaPublishing.c | 6930 ---------- plugins/shotwell-publishing/PiwigoPublishing.c | 13709 ------------------- plugins/shotwell-publishing/PiwigoPublishing.vala | 3 + plugins/shotwell-publishing/TumblrPublishing.c | 5544 -------- plugins/shotwell-publishing/YouTubePublishing.c | 4355 ------ plugins/shotwell-publishing/shotwell-publishing.c | 743 - plugins/shotwell-transitions/BlindsEffect.c | 843 -- plugins/shotwell-transitions/ChessEffect.c | 763 -- plugins/shotwell-transitions/CircleEffect.c | 528 - plugins/shotwell-transitions/CirclesEffect.c | 662 - plugins/shotwell-transitions/ClockEffect.c | 633 - plugins/shotwell-transitions/CrumbleEffect.c | 884 -- plugins/shotwell-transitions/FadeEffect.c | 518 - plugins/shotwell-transitions/SlideEffect.c | 617 - plugins/shotwell-transitions/SquaresEffect.c | 707 - plugins/shotwell-transitions/StripesEffect.c | 704 - .../shotwell-transitions/shotwell-transitions.c | 1240 -- 42 files changed, 7 insertions(+), 110543 deletions(-) delete mode 100644 plugins/authenticator/shotwell-authenticator.h delete mode 100644 plugins/authenticator/shotwell-authenticator.vapi delete mode 100644 plugins/authenticator/shotwell/FacebookPublishingAuthenticator.c delete mode 100644 plugins/authenticator/shotwell/FlickrPublishingAuthenticator.c delete mode 100644 plugins/authenticator/shotwell/GoogleAuthenticator.c delete mode 100644 plugins/authenticator/shotwell/OAuth1Authenticator.c delete mode 100644 plugins/authenticator/shotwell/ShotwellAuthenticatorFactory.c delete mode 100644 plugins/authenticator/shotwell/TumblrAuthenticator.c delete mode 100644 plugins/common/BuilderPane.c delete mode 100644 plugins/common/OAuth1Support.c delete mode 100644 plugins/common/RESTSupport.c delete mode 100644 plugins/common/Resources.c delete mode 100644 plugins/common/WebAuthenticationPane.c delete mode 100644 plugins/shotwell-plugin-common.h delete mode 100644 plugins/shotwell-plugin-common.vapi delete mode 100644 plugins/shotwell-plugin-dev-1.0.h delete mode 100644 plugins/shotwell-plugin-dev-1.0.vapi delete mode 100644 plugins/shotwell-publishing-extras/GalleryConnector.c delete mode 100644 plugins/shotwell-publishing-extras/RajcePublishing.c delete mode 100644 plugins/shotwell-publishing-extras/YandexPublishing.c delete mode 100644 plugins/shotwell-publishing-extras/shotwell-publishing-extras.c delete mode 100644 plugins/shotwell-publishing/FacebookPublishing.c delete mode 100644 plugins/shotwell-publishing/FlickrPublishing.c delete mode 100644 plugins/shotwell-publishing/PicasaPublishing.c delete mode 100644 plugins/shotwell-publishing/PiwigoPublishing.c delete mode 100644 plugins/shotwell-publishing/TumblrPublishing.c delete mode 100644 plugins/shotwell-publishing/YouTubePublishing.c delete mode 100644 plugins/shotwell-publishing/shotwell-publishing.c delete mode 100644 plugins/shotwell-transitions/BlindsEffect.c delete mode 100644 plugins/shotwell-transitions/ChessEffect.c delete mode 100644 plugins/shotwell-transitions/CircleEffect.c delete mode 100644 plugins/shotwell-transitions/CirclesEffect.c delete mode 100644 plugins/shotwell-transitions/ClockEffect.c delete mode 100644 plugins/shotwell-transitions/CrumbleEffect.c delete mode 100644 plugins/shotwell-transitions/FadeEffect.c delete mode 100644 plugins/shotwell-transitions/SlideEffect.c delete mode 100644 plugins/shotwell-transitions/SquaresEffect.c delete mode 100644 plugins/shotwell-transitions/StripesEffect.c delete mode 100644 plugins/shotwell-transitions/shotwell-transitions.c (limited to 'plugins') diff --git a/plugins/authenticator/shotwell-authenticator.h b/plugins/authenticator/shotwell-authenticator.h deleted file mode 100644 index 969aca9..0000000 --- a/plugins/authenticator/shotwell-authenticator.h +++ /dev/null @@ -1,43 +0,0 @@ -/* shotwell-authenticator.h generated by valac 0.40.4, the Vala compiler, do not modify */ - - -#ifndef __PLUGINS_AUTHENTICATOR_SHOTWELL_AUTHENTICATOR_H__ -#define __PLUGINS_AUTHENTICATOR_SHOTWELL_AUTHENTICATOR_H__ - -#include -#include -#include "shotwell-plugin-dev-1.0.h" - -G_BEGIN_DECLS - - -#define PUBLISHING_AUTHENTICATOR_TYPE_FACTORY (publishing_authenticator_factory_get_type ()) -#define PUBLISHING_AUTHENTICATOR_FACTORY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_AUTHENTICATOR_TYPE_FACTORY, PublishingAuthenticatorFactory)) -#define PUBLISHING_AUTHENTICATOR_FACTORY_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_AUTHENTICATOR_TYPE_FACTORY, PublishingAuthenticatorFactoryClass)) -#define PUBLISHING_AUTHENTICATOR_IS_FACTORY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_AUTHENTICATOR_TYPE_FACTORY)) -#define PUBLISHING_AUTHENTICATOR_IS_FACTORY_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_AUTHENTICATOR_TYPE_FACTORY)) -#define PUBLISHING_AUTHENTICATOR_FACTORY_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_AUTHENTICATOR_TYPE_FACTORY, PublishingAuthenticatorFactoryClass)) - -typedef struct _PublishingAuthenticatorFactory PublishingAuthenticatorFactory; -typedef struct _PublishingAuthenticatorFactoryClass PublishingAuthenticatorFactoryClass; -typedef struct _PublishingAuthenticatorFactoryPrivate PublishingAuthenticatorFactoryPrivate; - -struct _PublishingAuthenticatorFactory { - GObject parent_instance; - PublishingAuthenticatorFactoryPrivate * priv; -}; - -struct _PublishingAuthenticatorFactoryClass { - GObjectClass parent_class; -}; - - -GType publishing_authenticator_factory_get_type (void) G_GNUC_CONST; -PublishingAuthenticatorFactory* publishing_authenticator_factory_get_instance (void); -PublishingAuthenticatorFactory* publishing_authenticator_factory_new (void); -PublishingAuthenticatorFactory* publishing_authenticator_factory_construct (GType object_type); - - -G_END_DECLS - -#endif diff --git a/plugins/authenticator/shotwell-authenticator.vapi b/plugins/authenticator/shotwell-authenticator.vapi deleted file mode 100644 index 7a1b202..0000000 --- a/plugins/authenticator/shotwell-authenticator.vapi +++ /dev/null @@ -1,23 +0,0 @@ -/* shotwell-authenticator.vapi generated by valac 0.40.4, do not modify. */ - -namespace Publishing { - namespace Authenticator { - namespace Shotwell { - namespace Facebook { - } - namespace Flickr { - } - namespace Google { - } - namespace OAuth1 { - } - namespace Tumblr { - } - } - [CCode (cheader_filename = "shotwell-authenticator.h")] - public class Factory : Spit.Publishing.AuthenticatorFactory, GLib.Object { - public Factory (); - public static Publishing.Authenticator.Factory get_instance (); - } - } -} diff --git a/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.c b/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.c deleted file mode 100644 index d1e2389..0000000 --- a/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.c +++ /dev/null @@ -1,2419 +0,0 @@ -/* FacebookPublishingAuthenticator.c generated by valac 0.40.4, the Vala compiler - * generated from FacebookPublishingAuthenticator.vala, do not modify */ - -/* Copyright 2016 Software Freedom Conservancy Inc. - * - * This software is licensed under the GNU Lesser General Public License - * (version 2.1 or later). See the COPYING file in this distribution. - */ - - -#include -#include -#include -#include -#include "shotwell-plugin-common.h" -#include -#include -#include "shotwell-plugin-dev-1.0.h" -#include -#include -#include - - -#define PUBLISHING_AUTHENTICATOR_SHOTWELL_FACEBOOK_TYPE_WEB_AUTHENTICATION_PANE (publishing_authenticator_shotwell_facebook_web_authentication_pane_get_type ()) -#define PUBLISHING_AUTHENTICATOR_SHOTWELL_FACEBOOK_WEB_AUTHENTICATION_PANE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_AUTHENTICATOR_SHOTWELL_FACEBOOK_TYPE_WEB_AUTHENTICATION_PANE, PublishingAuthenticatorShotwellFacebookWebAuthenticationPane)) -#define PUBLISHING_AUTHENTICATOR_SHOTWELL_FACEBOOK_WEB_AUTHENTICATION_PANE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_AUTHENTICATOR_SHOTWELL_FACEBOOK_TYPE_WEB_AUTHENTICATION_PANE, PublishingAuthenticatorShotwellFacebookWebAuthenticationPaneClass)) -#define PUBLISHING_AUTHENTICATOR_SHOTWELL_FACEBOOK_IS_WEB_AUTHENTICATION_PANE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_AUTHENTICATOR_SHOTWELL_FACEBOOK_TYPE_WEB_AUTHENTICATION_PANE)) -#define PUBLISHING_AUTHENTICATOR_SHOTWELL_FACEBOOK_IS_WEB_AUTHENTICATION_PANE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_AUTHENTICATOR_SHOTWELL_FACEBOOK_TYPE_WEB_AUTHENTICATION_PANE)) -#define PUBLISHING_AUTHENTICATOR_SHOTWELL_FACEBOOK_WEB_AUTHENTICATION_PANE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_AUTHENTICATOR_SHOTWELL_FACEBOOK_TYPE_WEB_AUTHENTICATION_PANE, PublishingAuthenticatorShotwellFacebookWebAuthenticationPaneClass)) - -typedef struct _PublishingAuthenticatorShotwellFacebookWebAuthenticationPane PublishingAuthenticatorShotwellFacebookWebAuthenticationPane; -typedef struct _PublishingAuthenticatorShotwellFacebookWebAuthenticationPaneClass PublishingAuthenticatorShotwellFacebookWebAuthenticationPaneClass; -typedef struct _PublishingAuthenticatorShotwellFacebookWebAuthenticationPanePrivate PublishingAuthenticatorShotwellFacebookWebAuthenticationPanePrivate; -enum { - PUBLISHING_AUTHENTICATOR_SHOTWELL_FACEBOOK_WEB_AUTHENTICATION_PANE_0_PROPERTY, - PUBLISHING_AUTHENTICATOR_SHOTWELL_FACEBOOK_WEB_AUTHENTICATION_PANE_NUM_PROPERTIES -}; -static GParamSpec* publishing_authenticator_shotwell_facebook_web_authentication_pane_properties[PUBLISHING_AUTHENTICATOR_SHOTWELL_FACEBOOK_WEB_AUTHENTICATION_PANE_NUM_PROPERTIES]; - -#define PUBLISHING_AUTHENTICATOR_SHOTWELL_FACEBOOK_WEB_AUTHENTICATION_PANE_TYPE_LOCALE_LOOKUP (publishing_authenticator_shotwell_facebook_web_authentication_pane_locale_lookup_get_type ()) -#define PUBLISHING_AUTHENTICATOR_SHOTWELL_FACEBOOK_WEB_AUTHENTICATION_PANE_LOCALE_LOOKUP(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_AUTHENTICATOR_SHOTWELL_FACEBOOK_WEB_AUTHENTICATION_PANE_TYPE_LOCALE_LOOKUP, PublishingAuthenticatorShotwellFacebookWebAuthenticationPaneLocaleLookup)) -#define PUBLISHING_AUTHENTICATOR_SHOTWELL_FACEBOOK_WEB_AUTHENTICATION_PANE_LOCALE_LOOKUP_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_AUTHENTICATOR_SHOTWELL_FACEBOOK_WEB_AUTHENTICATION_PANE_TYPE_LOCALE_LOOKUP, PublishingAuthenticatorShotwellFacebookWebAuthenticationPaneLocaleLookupClass)) -#define PUBLISHING_AUTHENTICATOR_SHOTWELL_FACEBOOK_WEB_AUTHENTICATION_PANE_IS_LOCALE_LOOKUP(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_AUTHENTICATOR_SHOTWELL_FACEBOOK_WEB_AUTHENTICATION_PANE_TYPE_LOCALE_LOOKUP)) -#define PUBLISHING_AUTHENTICATOR_SHOTWELL_FACEBOOK_WEB_AUTHENTICATION_PANE_IS_LOCALE_LOOKUP_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_AUTHENTICATOR_SHOTWELL_FACEBOOK_WEB_AUTHENTICATION_PANE_TYPE_LOCALE_LOOKUP)) -#define PUBLISHING_AUTHENTICATOR_SHOTWELL_FACEBOOK_WEB_AUTHENTICATION_PANE_LOCALE_LOOKUP_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_AUTHENTICATOR_SHOTWELL_FACEBOOK_WEB_AUTHENTICATION_PANE_TYPE_LOCALE_LOOKUP, PublishingAuthenticatorShotwellFacebookWebAuthenticationPaneLocaleLookupClass)) - -typedef struct _PublishingAuthenticatorShotwellFacebookWebAuthenticationPaneLocaleLookup PublishingAuthenticatorShotwellFacebookWebAuthenticationPaneLocaleLookup; -typedef struct _PublishingAuthenticatorShotwellFacebookWebAuthenticationPaneLocaleLookupClass PublishingAuthenticatorShotwellFacebookWebAuthenticationPaneLocaleLookupClass; -#define _g_free0(var) (var = (g_free (var), NULL)) -typedef struct _PublishingAuthenticatorShotwellFacebookWebAuthenticationPaneLocaleLookupPrivate PublishingAuthenticatorShotwellFacebookWebAuthenticationPaneLocaleLookupPrivate; -#define _publishing_authenticator_shotwell_facebook_web_authentication_pane_locale_lookup_unref0(var) ((var == NULL) ? NULL : (var = (publishing_authenticator_shotwell_facebook_web_authentication_pane_locale_lookup_unref (var), NULL))) -#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL))) -#define _g_regex_unref0(var) ((var == NULL) ? NULL : (var = (g_regex_unref (var), NULL))) -#define _g_error_free0(var) ((var == NULL) ? NULL : (var = (g_error_free (var), NULL))) -typedef struct _PublishingAuthenticatorShotwellFacebookWebAuthenticationPaneParamSpecLocaleLookup PublishingAuthenticatorShotwellFacebookWebAuthenticationPaneParamSpecLocaleLookup; -enum { - PUBLISHING_AUTHENTICATOR_SHOTWELL_FACEBOOK_WEB_AUTHENTICATION_PANE_LOGIN_SUCCEEDED_SIGNAL, - PUBLISHING_AUTHENTICATOR_SHOTWELL_FACEBOOK_WEB_AUTHENTICATION_PANE_LOGIN_FAILED_SIGNAL, - PUBLISHING_AUTHENTICATOR_SHOTWELL_FACEBOOK_WEB_AUTHENTICATION_PANE_NUM_SIGNALS -}; -static guint publishing_authenticator_shotwell_facebook_web_authentication_pane_signals[PUBLISHING_AUTHENTICATOR_SHOTWELL_FACEBOOK_WEB_AUTHENTICATION_PANE_NUM_SIGNALS] = {0}; - -#define PUBLISHING_AUTHENTICATOR_SHOTWELL_FACEBOOK_TYPE_FACEBOOK (publishing_authenticator_shotwell_facebook_facebook_get_type ()) -#define PUBLISHING_AUTHENTICATOR_SHOTWELL_FACEBOOK_FACEBOOK(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_AUTHENTICATOR_SHOTWELL_FACEBOOK_TYPE_FACEBOOK, PublishingAuthenticatorShotwellFacebookFacebook)) -#define PUBLISHING_AUTHENTICATOR_SHOTWELL_FACEBOOK_FACEBOOK_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_AUTHENTICATOR_SHOTWELL_FACEBOOK_TYPE_FACEBOOK, PublishingAuthenticatorShotwellFacebookFacebookClass)) -#define PUBLISHING_AUTHENTICATOR_SHOTWELL_FACEBOOK_IS_FACEBOOK(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_AUTHENTICATOR_SHOTWELL_FACEBOOK_TYPE_FACEBOOK)) -#define PUBLISHING_AUTHENTICATOR_SHOTWELL_FACEBOOK_IS_FACEBOOK_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_AUTHENTICATOR_SHOTWELL_FACEBOOK_TYPE_FACEBOOK)) -#define PUBLISHING_AUTHENTICATOR_SHOTWELL_FACEBOOK_FACEBOOK_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_AUTHENTICATOR_SHOTWELL_FACEBOOK_TYPE_FACEBOOK, PublishingAuthenticatorShotwellFacebookFacebookClass)) - -typedef struct _PublishingAuthenticatorShotwellFacebookFacebook PublishingAuthenticatorShotwellFacebookFacebook; -typedef struct _PublishingAuthenticatorShotwellFacebookFacebookClass PublishingAuthenticatorShotwellFacebookFacebookClass; -typedef struct _PublishingAuthenticatorShotwellFacebookFacebookPrivate PublishingAuthenticatorShotwellFacebookFacebookPrivate; -enum { - PUBLISHING_AUTHENTICATOR_SHOTWELL_FACEBOOK_FACEBOOK_0_PROPERTY, - PUBLISHING_AUTHENTICATOR_SHOTWELL_FACEBOOK_FACEBOOK_NUM_PROPERTIES -}; -static GParamSpec* publishing_authenticator_shotwell_facebook_facebook_properties[PUBLISHING_AUTHENTICATOR_SHOTWELL_FACEBOOK_FACEBOOK_NUM_PROPERTIES]; -#define _g_hash_table_unref0(var) ((var == NULL) ? NULL : (var = (g_hash_table_unref (var), NULL))) -#define _vala_assert(expr, msg) if G_LIKELY (expr) ; else g_assertion_message_expr (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg); -#define _vala_return_if_fail(expr, msg) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return; } -#define _vala_return_val_if_fail(expr, msg, val) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return val; } -#define _vala_warn_if_fail(expr, msg) if G_LIKELY (expr) ; else g_warn_message (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg); - -struct _PublishingAuthenticatorShotwellFacebookWebAuthenticationPane { - ShotwellPluginsCommonWebAuthenticationPane parent_instance; - PublishingAuthenticatorShotwellFacebookWebAuthenticationPanePrivate * priv; -}; - -struct _PublishingAuthenticatorShotwellFacebookWebAuthenticationPaneClass { - ShotwellPluginsCommonWebAuthenticationPaneClass parent_class; -}; - -struct _PublishingAuthenticatorShotwellFacebookWebAuthenticationPaneLocaleLookup { - GTypeInstance parent_instance; - volatile int ref_count; - PublishingAuthenticatorShotwellFacebookWebAuthenticationPaneLocaleLookupPrivate * priv; - gchar* prefix; - gchar* translation; - gchar* exception_code; - gchar* exception_translation; - gchar* exception_code_2; - gchar* exception_translation_2; -}; - -struct _PublishingAuthenticatorShotwellFacebookWebAuthenticationPaneLocaleLookupClass { - GTypeClass parent_class; - void (*finalize) (PublishingAuthenticatorShotwellFacebookWebAuthenticationPaneLocaleLookup *self); -}; - -struct _PublishingAuthenticatorShotwellFacebookWebAuthenticationPaneParamSpecLocaleLookup { - GParamSpec parent_instance; -}; - -struct _PublishingAuthenticatorShotwellFacebookFacebook { - GObject parent_instance; - PublishingAuthenticatorShotwellFacebookFacebookPrivate * priv; -}; - -struct _PublishingAuthenticatorShotwellFacebookFacebookClass { - GObjectClass parent_class; -}; - -struct _PublishingAuthenticatorShotwellFacebookFacebookPrivate { - SpitPublishingPluginHost* host; - PublishingAuthenticatorShotwellFacebookWebAuthenticationPane* web_auth_pane; - GHashTable* params; -}; - - -static gpointer publishing_authenticator_shotwell_facebook_web_authentication_pane_parent_class = NULL; -static gboolean publishing_authenticator_shotwell_facebook_web_authentication_pane_cache_dirty; -static gboolean publishing_authenticator_shotwell_facebook_web_authentication_pane_cache_dirty = FALSE; -static PublishingAuthenticatorShotwellFacebookWebAuthenticationPaneLocaleLookup** publishing_authenticator_shotwell_facebook_web_authentication_pane_locale_lookup_table; -static gint publishing_authenticator_shotwell_facebook_web_authentication_pane_locale_lookup_table_length1; -static PublishingAuthenticatorShotwellFacebookWebAuthenticationPaneLocaleLookup** publishing_authenticator_shotwell_facebook_web_authentication_pane_locale_lookup_table = NULL; -static gint publishing_authenticator_shotwell_facebook_web_authentication_pane_locale_lookup_table_length1 = 0; -static gint _publishing_authenticator_shotwell_facebook_web_authentication_pane_locale_lookup_table_size_ = 0; -static gpointer publishing_authenticator_shotwell_facebook_web_authentication_pane_locale_lookup_parent_class = NULL; -static gpointer publishing_authenticator_shotwell_facebook_facebook_parent_class = NULL; -static SpitPublishingAuthenticatorIface * publishing_authenticator_shotwell_facebook_facebook_spit_publishing_authenticator_parent_iface = NULL; - -#define PUBLISHING_AUTHENTICATOR_SHOTWELL_FACEBOOK_APPLICATION_ID "1612018629063184" -GType publishing_authenticator_shotwell_facebook_web_authentication_pane_get_type (void) G_GNUC_CONST; -static gpointer publishing_authenticator_shotwell_facebook_web_authentication_pane_locale_lookup_ref (gpointer instance); -static void publishing_authenticator_shotwell_facebook_web_authentication_pane_locale_lookup_unref (gpointer instance); -static GParamSpec* publishing_authenticator_shotwell_facebook_web_authentication_pane_param_spec_locale_lookup (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags) G_GNUC_UNUSED; -static void publishing_authenticator_shotwell_facebook_web_authentication_pane_value_set_locale_lookup (GValue* value, - gpointer v_object) G_GNUC_UNUSED; -static void publishing_authenticator_shotwell_facebook_web_authentication_pane_value_take_locale_lookup (GValue* value, - gpointer v_object) G_GNUC_UNUSED; -static gpointer publishing_authenticator_shotwell_facebook_web_authentication_pane_value_get_locale_lookup (const GValue* value) G_GNUC_UNUSED; -static GType publishing_authenticator_shotwell_facebook_web_authentication_pane_locale_lookup_get_type (void) G_GNUC_CONST G_GNUC_UNUSED; -static PublishingAuthenticatorShotwellFacebookWebAuthenticationPaneLocaleLookup* publishing_authenticator_shotwell_facebook_web_authentication_pane_locale_lookup_new (const gchar* prefix, - const gchar* translation, - const gchar* exception_code, - const gchar* exception_translation, - const gchar* exception_code_2, - const gchar* exception_translation_2); -static PublishingAuthenticatorShotwellFacebookWebAuthenticationPaneLocaleLookup* publishing_authenticator_shotwell_facebook_web_authentication_pane_locale_lookup_construct (GType object_type, - const gchar* prefix, - const gchar* translation, - const gchar* exception_code, - const gchar* exception_translation, - const gchar* exception_code_2, - const gchar* exception_translation_2); -PublishingAuthenticatorShotwellFacebookWebAuthenticationPane* publishing_authenticator_shotwell_facebook_web_authentication_pane_new (void); -PublishingAuthenticatorShotwellFacebookWebAuthenticationPane* publishing_authenticator_shotwell_facebook_web_authentication_pane_construct (GType object_type); -static gchar* publishing_authenticator_shotwell_facebook_web_authentication_pane_get_login_url (void); -static gchar* publishing_authenticator_shotwell_facebook_web_authentication_pane_get_system_locale_as_facebook_locale (void); -static void publishing_authenticator_shotwell_facebook_web_authentication_pane_real_on_page_load (ShotwellPluginsCommonWebAuthenticationPane* base); -gboolean publishing_authenticator_shotwell_facebook_web_authentication_pane_is_cache_dirty (void); -static void publishing_authenticator_shotwell_facebook_web_authentication_pane_locale_lookup_finalize (PublishingAuthenticatorShotwellFacebookWebAuthenticationPaneLocaleLookup * obj); -static void publishing_authenticator_shotwell_facebook_web_authentication_pane_finalize (GObject * obj); -GType publishing_authenticator_shotwell_facebook_facebook_get_type (void) G_GNUC_CONST; -#define PUBLISHING_AUTHENTICATOR_SHOTWELL_FACEBOOK_FACEBOOK_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), PUBLISHING_AUTHENTICATOR_SHOTWELL_FACEBOOK_TYPE_FACEBOOK, PublishingAuthenticatorShotwellFacebookFacebookPrivate)) -#define PUBLISHING_AUTHENTICATOR_SHOTWELL_FACEBOOK_FACEBOOK_SERVICE_WELCOME_MESSAGE _ ("You are not currently logged into Facebook.\n" \ -"\n" \ -"If you don’t yet have a Facebook account, you can create one during th" \ -"e login process. During login, Shotwell Connect may ask you for permis" \ -"sion to upload photos and publish to your feed. These permissions are " \ -"required for Shotwell Connect to function.") -#define PUBLISHING_AUTHENTICATOR_SHOTWELL_FACEBOOK_FACEBOOK_RESTART_ERROR_MESSAGE _ ("You have already logged in and out of Facebook during this Shotwell se" \ -"ssion.\n" \ -"To continue publishing to Facebook, quit and restart Shotwell, then tr" \ -"y publishing again.") -PublishingAuthenticatorShotwellFacebookFacebook* publishing_authenticator_shotwell_facebook_facebook_new (SpitPublishingPluginHost* host); -PublishingAuthenticatorShotwellFacebookFacebook* publishing_authenticator_shotwell_facebook_facebook_construct (GType object_type, - SpitPublishingPluginHost* host); -static void _g_free0_ (gpointer var); -static void _g_variant_unref0_ (gpointer var); -static void publishing_authenticator_shotwell_facebook_facebook_real_authenticate (SpitPublishingAuthenticator* base); -static gboolean publishing_authenticator_shotwell_facebook_facebook_is_persistent_session_valid (PublishingAuthenticatorShotwellFacebookFacebook* self); -static gchar* publishing_authenticator_shotwell_facebook_facebook_get_persistent_access_token (PublishingAuthenticatorShotwellFacebookFacebook* self); -static void publishing_authenticator_shotwell_facebook_facebook_do_show_service_welcome_pane (PublishingAuthenticatorShotwellFacebookFacebook* self); -static gboolean publishing_authenticator_shotwell_facebook_facebook_real_can_logout (SpitPublishingAuthenticator* base); -static GHashTable* publishing_authenticator_shotwell_facebook_facebook_real_get_authentication_parameter (SpitPublishingAuthenticator* base); -void publishing_authenticator_shotwell_facebook_facebook_invalidate_persistent_session (PublishingAuthenticatorShotwellFacebookFacebook* self); -static void publishing_authenticator_shotwell_facebook_facebook_set_persistent_access_token (PublishingAuthenticatorShotwellFacebookFacebook* self, - const gchar* access_token); -static void publishing_authenticator_shotwell_facebook_facebook_real_logout (SpitPublishingAuthenticator* base); -static void publishing_authenticator_shotwell_facebook_facebook_real_refresh (SpitPublishingAuthenticator* base); -static void publishing_authenticator_shotwell_facebook_facebook_on_login_clicked (PublishingAuthenticatorShotwellFacebookFacebook* self); -static void _publishing_authenticator_shotwell_facebook_facebook_on_login_clicked_spit_publishing_login_callback (gpointer self); -static void publishing_authenticator_shotwell_facebook_facebook_do_hosted_web_authentication (PublishingAuthenticatorShotwellFacebookFacebook* self); -static void publishing_authenticator_shotwell_facebook_facebook_on_web_auth_pane_login_succeeded (PublishingAuthenticatorShotwellFacebookFacebook* self, - const gchar* success_url); -static void _publishing_authenticator_shotwell_facebook_facebook_on_web_auth_pane_login_succeeded_publishing_authenticator_shotwell_facebook_web_authentication_pane_login_succeeded (PublishingAuthenticatorShotwellFacebookWebAuthenticationPane* _sender, - const gchar* success_url, - gpointer self); -static void publishing_authenticator_shotwell_facebook_facebook_on_web_auth_pane_login_failed (PublishingAuthenticatorShotwellFacebookFacebook* self); -static void _publishing_authenticator_shotwell_facebook_facebook_on_web_auth_pane_login_failed_publishing_authenticator_shotwell_facebook_web_authentication_pane_login_failed (PublishingAuthenticatorShotwellFacebookWebAuthenticationPane* _sender, - gpointer self); -static void publishing_authenticator_shotwell_facebook_facebook_do_authenticate_session (PublishingAuthenticatorShotwellFacebookFacebook* self, - const gchar* good_login_uri); -static void publishing_authenticator_shotwell_facebook_facebook_finalize (GObject * obj); -static void _vala_array_destroy (gpointer array, - gint array_length, - GDestroyNotify destroy_func); -static void _vala_array_free (gpointer array, - gint array_length, - GDestroyNotify destroy_func); -static gint _vala_array_length (gpointer array); - - -PublishingAuthenticatorShotwellFacebookWebAuthenticationPane* -publishing_authenticator_shotwell_facebook_web_authentication_pane_construct (GType object_type) -{ - PublishingAuthenticatorShotwellFacebookWebAuthenticationPane * self = NULL; - gchar* _tmp0_; - gchar* _tmp1_; -#line 20 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp0_ = publishing_authenticator_shotwell_facebook_web_authentication_pane_get_login_url (); -#line 20 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp1_ = _tmp0_; -#line 20 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - self = (PublishingAuthenticatorShotwellFacebookWebAuthenticationPane*) g_object_new (object_type, "login-uri", _tmp1_, NULL); -#line 20 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _g_free0 (_tmp1_); -#line 19 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - return self; -#line 238 "FacebookPublishingAuthenticator.c" -} - - -PublishingAuthenticatorShotwellFacebookWebAuthenticationPane* -publishing_authenticator_shotwell_facebook_web_authentication_pane_new (void) -{ -#line 19 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - return publishing_authenticator_shotwell_facebook_web_authentication_pane_construct (PUBLISHING_AUTHENTICATOR_SHOTWELL_FACEBOOK_TYPE_WEB_AUTHENTICATION_PANE); -#line 247 "FacebookPublishingAuthenticator.c" -} - - -static gpointer -_publishing_authenticator_shotwell_facebook_web_authentication_pane_locale_lookup_ref0 (gpointer self) -{ -#line 99 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - return self ? publishing_authenticator_shotwell_facebook_web_authentication_pane_locale_lookup_ref (self) : NULL; -#line 256 "FacebookPublishingAuthenticator.c" -} - - -static gboolean -string_contains (const gchar* self, - const gchar* needle) -{ - gboolean result = FALSE; - gchar* _tmp0_; -#line 1417 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - g_return_val_if_fail (self != NULL, FALSE); -#line 1417 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - g_return_val_if_fail (needle != NULL, FALSE); -#line 1418 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp0_ = strstr ((gchar*) self, (gchar*) needle); -#line 1418 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - result = _tmp0_ != NULL; -#line 1418 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - return result; -#line 276 "FacebookPublishingAuthenticator.c" -} - - -static gchar* -publishing_authenticator_shotwell_facebook_web_authentication_pane_get_system_locale_as_facebook_locale (void) -{ - gchar* result = NULL; - const gchar* raw_system_locale = NULL; - const gchar* _tmp0_; - gboolean _tmp1_ = FALSE; - const gchar* _tmp2_; - gchar* system_locale = NULL; - const gchar* _tmp5_; - gchar** _tmp6_; - gchar** _tmp7_; - gchar** _tmp8_; - gint _tmp8__length1; - const gchar* _tmp9_; - gchar* _tmp10_; - gchar* _tmp11_; - PublishingAuthenticatorShotwellFacebookWebAuthenticationPaneLocaleLookup** _tmp12_; - gint _tmp12__length1; - gchar* _tmp40_; -#line 93 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp0_ = setlocale (LC_ALL, ""); -#line 93 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - raw_system_locale = _tmp0_; -#line 94 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp2_ = raw_system_locale; -#line 94 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - if (_tmp2_ == NULL) { -#line 94 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp1_ = TRUE; -#line 310 "FacebookPublishingAuthenticator.c" - } else { - const gchar* _tmp3_; -#line 94 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp3_ = raw_system_locale; -#line 94 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp1_ = g_strcmp0 (_tmp3_, "") == 0; -#line 317 "FacebookPublishingAuthenticator.c" - } -#line 94 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - if (_tmp1_) { -#line 321 "FacebookPublishingAuthenticator.c" - gchar* _tmp4_; -#line 95 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp4_ = g_strdup ("www"); -#line 95 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - result = _tmp4_; -#line 95 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - return result; -#line 329 "FacebookPublishingAuthenticator.c" - } -#line 97 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp5_ = raw_system_locale; -#line 97 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp7_ = _tmp6_ = g_strsplit (_tmp5_, ".", 0); -#line 97 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp8_ = _tmp7_; -#line 97 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp8__length1 = _vala_array_length (_tmp6_); -#line 97 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp9_ = _tmp8_[0]; -#line 97 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp10_ = g_strdup (_tmp9_); -#line 97 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp11_ = _tmp10_; -#line 97 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp8_ = (_vala_array_free (_tmp8_, _tmp8__length1, (GDestroyNotify) g_free), NULL); -#line 97 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - system_locale = _tmp11_; -#line 99 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp12_ = publishing_authenticator_shotwell_facebook_web_authentication_pane_locale_lookup_table; -#line 99 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp12__length1 = publishing_authenticator_shotwell_facebook_web_authentication_pane_locale_lookup_table_length1; -#line 353 "FacebookPublishingAuthenticator.c" - { - PublishingAuthenticatorShotwellFacebookWebAuthenticationPaneLocaleLookup** locale_lookup_collection = NULL; - gint locale_lookup_collection_length1 = 0; - gint _locale_lookup_collection_size_ = 0; - gint locale_lookup_it = 0; -#line 99 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - locale_lookup_collection = _tmp12_; -#line 99 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - locale_lookup_collection_length1 = _tmp12__length1; -#line 99 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - for (locale_lookup_it = 0; locale_lookup_it < _tmp12__length1; locale_lookup_it = locale_lookup_it + 1) { -#line 365 "FacebookPublishingAuthenticator.c" - PublishingAuthenticatorShotwellFacebookWebAuthenticationPaneLocaleLookup* _tmp13_; - PublishingAuthenticatorShotwellFacebookWebAuthenticationPaneLocaleLookup* locale_lookup = NULL; -#line 99 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp13_ = _publishing_authenticator_shotwell_facebook_web_authentication_pane_locale_lookup_ref0 (locale_lookup_collection[locale_lookup_it]); -#line 99 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - locale_lookup = _tmp13_; -#line 372 "FacebookPublishingAuthenticator.c" - { - const gchar* _tmp14_; - PublishingAuthenticatorShotwellFacebookWebAuthenticationPaneLocaleLookup* _tmp15_; - const gchar* _tmp16_; - PublishingAuthenticatorShotwellFacebookWebAuthenticationPaneLocaleLookup* _tmp17_; - const gchar* _tmp18_; - PublishingAuthenticatorShotwellFacebookWebAuthenticationPaneLocaleLookup* _tmp27_; - const gchar* _tmp28_; - PublishingAuthenticatorShotwellFacebookWebAuthenticationPaneLocaleLookup* _tmp37_; - const gchar* _tmp38_; - gchar* _tmp39_; -#line 100 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp14_ = system_locale; -#line 100 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp15_ = locale_lookup; -#line 100 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp16_ = _tmp15_->prefix; -#line 100 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - if (!g_str_has_prefix (_tmp14_, _tmp16_)) { -#line 101 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _publishing_authenticator_shotwell_facebook_web_authentication_pane_locale_lookup_unref0 (locale_lookup); -#line 101 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - continue; -#line 396 "FacebookPublishingAuthenticator.c" - } -#line 103 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp17_ = locale_lookup; -#line 103 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp18_ = _tmp17_->exception_code; -#line 103 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - if (_tmp18_ != NULL) { -#line 404 "FacebookPublishingAuthenticator.c" - PublishingAuthenticatorShotwellFacebookWebAuthenticationPaneLocaleLookup* _tmp19_; - const gchar* _tmp20_; - const gchar* _tmp21_; - PublishingAuthenticatorShotwellFacebookWebAuthenticationPaneLocaleLookup* _tmp22_; - const gchar* _tmp23_; -#line 104 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp19_ = locale_lookup; -#line 104 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp20_ = _tmp19_->exception_translation; -#line 104 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _vala_assert (_tmp20_ != NULL, "locale_lookup.exception_translation != null"); -#line 106 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp21_ = system_locale; -#line 106 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp22_ = locale_lookup; -#line 106 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp23_ = _tmp22_->exception_code; -#line 106 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - if (string_contains (_tmp21_, _tmp23_)) { -#line 424 "FacebookPublishingAuthenticator.c" - PublishingAuthenticatorShotwellFacebookWebAuthenticationPaneLocaleLookup* _tmp24_; - const gchar* _tmp25_; - gchar* _tmp26_; -#line 107 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp24_ = locale_lookup; -#line 107 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp25_ = _tmp24_->exception_translation; -#line 107 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp26_ = g_strdup (_tmp25_); -#line 107 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - result = _tmp26_; -#line 107 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _publishing_authenticator_shotwell_facebook_web_authentication_pane_locale_lookup_unref0 (locale_lookup); -#line 107 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _g_free0 (system_locale); -#line 107 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - return result; -#line 442 "FacebookPublishingAuthenticator.c" - } - } -#line 110 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp27_ = locale_lookup; -#line 110 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp28_ = _tmp27_->exception_code_2; -#line 110 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - if (_tmp28_ != NULL) { -#line 451 "FacebookPublishingAuthenticator.c" - PublishingAuthenticatorShotwellFacebookWebAuthenticationPaneLocaleLookup* _tmp29_; - const gchar* _tmp30_; - const gchar* _tmp31_; - PublishingAuthenticatorShotwellFacebookWebAuthenticationPaneLocaleLookup* _tmp32_; - const gchar* _tmp33_; -#line 111 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp29_ = locale_lookup; -#line 111 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp30_ = _tmp29_->exception_translation_2; -#line 111 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _vala_assert (_tmp30_ != NULL, "locale_lookup.exception_translation_2 != null"); -#line 113 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp31_ = system_locale; -#line 113 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp32_ = locale_lookup; -#line 113 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp33_ = _tmp32_->exception_code_2; -#line 113 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - if (string_contains (_tmp31_, _tmp33_)) { -#line 471 "FacebookPublishingAuthenticator.c" - PublishingAuthenticatorShotwellFacebookWebAuthenticationPaneLocaleLookup* _tmp34_; - const gchar* _tmp35_; - gchar* _tmp36_; -#line 114 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp34_ = locale_lookup; -#line 114 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp35_ = _tmp34_->exception_translation_2; -#line 114 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp36_ = g_strdup (_tmp35_); -#line 114 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - result = _tmp36_; -#line 114 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _publishing_authenticator_shotwell_facebook_web_authentication_pane_locale_lookup_unref0 (locale_lookup); -#line 114 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _g_free0 (system_locale); -#line 114 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - return result; -#line 489 "FacebookPublishingAuthenticator.c" - } - } -#line 117 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp37_ = locale_lookup; -#line 117 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp38_ = _tmp37_->translation; -#line 117 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp39_ = g_strdup (_tmp38_); -#line 117 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - result = _tmp39_; -#line 117 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _publishing_authenticator_shotwell_facebook_web_authentication_pane_locale_lookup_unref0 (locale_lookup); -#line 117 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _g_free0 (system_locale); -#line 117 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - return result; -#line 506 "FacebookPublishingAuthenticator.c" - } - } - } -#line 121 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp40_ = g_strdup ("www"); -#line 121 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - result = _tmp40_; -#line 121 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _g_free0 (system_locale); -#line 121 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - return result; -#line 518 "FacebookPublishingAuthenticator.c" -} - - -static gchar* -publishing_authenticator_shotwell_facebook_web_authentication_pane_get_login_url (void) -{ - gchar* result = NULL; - gchar* facebook_locale = NULL; - gchar* _tmp0_; - gchar* _tmp1_; -#line 125 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp0_ = publishing_authenticator_shotwell_facebook_web_authentication_pane_get_system_locale_as_facebook_locale (); -#line 125 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - facebook_locale = _tmp0_; -#line 127 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp1_ = g_strdup_printf ("https://%s.facebook.com/dialog/oauth?client_id=%s&redirect_uri=https:/" \ -"/www.facebook.com/connect/login_success.html&display=popup&scope=publi" \ -"sh_actions,user_photos,user_videos&response_type=token", facebook_locale, PUBLISHING_AUTHENTICATOR_SHOTWELL_FACEBOOK_APPLICATION_ID); -#line 127 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - result = _tmp1_; -#line 127 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _g_free0 (facebook_locale); -#line 127 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - return result; -#line 541 "FacebookPublishingAuthenticator.c" -} - - -static gint -string_index_of_char (const gchar* self, - gunichar c, - gint start_index) -{ - gint result = 0; - gchar* _result_ = NULL; - gchar* _tmp0_; - gchar* _tmp1_; -#line 1045 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - g_return_val_if_fail (self != NULL, 0); -#line 1046 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp0_ = g_utf8_strchr (((gchar*) self) + start_index, (gssize) -1, c); -#line 1046 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _result_ = _tmp0_; -#line 1048 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp1_ = _result_; -#line 1048 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - if (_tmp1_ != NULL) { -#line 564 "FacebookPublishingAuthenticator.c" - gchar* _tmp2_; -#line 1049 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp2_ = _result_; -#line 1049 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - result = (gint) (_tmp2_ - ((gchar*) self)); -#line 1049 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - return result; -#line 572 "FacebookPublishingAuthenticator.c" - } else { -#line 1051 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - result = -1; -#line 1051 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - return result; -#line 578 "FacebookPublishingAuthenticator.c" - } -} - - -static gchar* -string_slice (const gchar* self, - glong start, - glong end) -{ - gchar* result = NULL; - glong string_length = 0L; - gint _tmp0_; - gint _tmp1_; - gboolean _tmp4_ = FALSE; - gboolean _tmp6_ = FALSE; - gchar* _tmp8_; -#line 1369 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - g_return_val_if_fail (self != NULL, NULL); -#line 1370 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp0_ = strlen (self); -#line 1370 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp1_ = _tmp0_; -#line 1370 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - string_length = (glong) _tmp1_; -#line 1371 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - if (start < ((glong) 0)) { -#line 605 "FacebookPublishingAuthenticator.c" - glong _tmp2_; -#line 1372 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp2_ = string_length; -#line 1372 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - start = _tmp2_ + start; -#line 611 "FacebookPublishingAuthenticator.c" - } -#line 1374 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - if (end < ((glong) 0)) { -#line 615 "FacebookPublishingAuthenticator.c" - glong _tmp3_; -#line 1375 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp3_ = string_length; -#line 1375 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - end = _tmp3_ + end; -#line 621 "FacebookPublishingAuthenticator.c" - } -#line 1377 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - if (start >= ((glong) 0)) { -#line 625 "FacebookPublishingAuthenticator.c" - glong _tmp5_; -#line 1377 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp5_ = string_length; -#line 1377 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp4_ = start <= _tmp5_; -#line 631 "FacebookPublishingAuthenticator.c" - } else { -#line 1377 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp4_ = FALSE; -#line 635 "FacebookPublishingAuthenticator.c" - } -#line 1377 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - g_return_val_if_fail (_tmp4_, NULL); -#line 1378 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - if (end >= ((glong) 0)) { -#line 641 "FacebookPublishingAuthenticator.c" - glong _tmp7_; -#line 1378 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp7_ = string_length; -#line 1378 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp6_ = end <= _tmp7_; -#line 647 "FacebookPublishingAuthenticator.c" - } else { -#line 1378 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp6_ = FALSE; -#line 651 "FacebookPublishingAuthenticator.c" - } -#line 1378 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - g_return_val_if_fail (_tmp6_, NULL); -#line 1379 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - g_return_val_if_fail (start <= end, NULL); -#line 1380 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp8_ = g_strndup (((gchar*) self) + start, (gsize) (end - start)); -#line 1380 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - result = _tmp8_; -#line 1380 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - return result; -#line 663 "FacebookPublishingAuthenticator.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 1421 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - g_return_val_if_fail (self != NULL, NULL); -#line 1421 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - g_return_val_if_fail (old != NULL, NULL); -#line 1421 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - g_return_val_if_fail (replacement != NULL, NULL); -#line 1422 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - if ((*((gchar*) self)) == '\0') { -#line 1422 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp1_ = TRUE; -#line 686 "FacebookPublishingAuthenticator.c" - } else { -#line 1422 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp1_ = (*((gchar*) old)) == '\0'; -#line 690 "FacebookPublishingAuthenticator.c" - } -#line 1422 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - if (_tmp1_) { -#line 1422 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp0_ = TRUE; -#line 696 "FacebookPublishingAuthenticator.c" - } else { -#line 1422 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp0_ = g_strcmp0 (old, replacement) == 0; -#line 700 "FacebookPublishingAuthenticator.c" - } -#line 1422 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - if (_tmp0_) { -#line 704 "FacebookPublishingAuthenticator.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 712 "FacebookPublishingAuthenticator.c" - } - { - GRegex* regex = NULL; - 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 1426 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - if (_inner_error_->domain == G_REGEX_ERROR) { -#line 740 "FacebookPublishingAuthenticator.c" - goto __catch0_g_regex_error; - } -#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 1426 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - g_clear_error (&_inner_error_); -#line 1426 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - return NULL; -#line 749 "FacebookPublishingAuthenticator.c" - } -#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 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _g_regex_unref0 (regex); -#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - if (_inner_error_->domain == G_REGEX_ERROR) { -#line 763 "FacebookPublishingAuthenticator.c" - goto __catch0_g_regex_error; - } -#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _g_regex_unref0 (regex); -#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 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - g_clear_error (&_inner_error_); -#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - return NULL; -#line 774 "FacebookPublishingAuthenticator.c" - } -#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 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - return result; -#line 788 "FacebookPublishingAuthenticator.c" - } - goto __finally0; - __catch0_g_regex_error: - { - GError* e = NULL; -#line 1425 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - e = _inner_error_; -#line 1425 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _inner_error_ = NULL; -#line 1429 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - g_assert_not_reached (); -#line 1425 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _g_error_free0 (e); -#line 802 "FacebookPublishingAuthenticator.c" - } - __finally0: -#line 1425 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#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 1425 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - g_clear_error (&_inner_error_); -#line 1425 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - return NULL; -#line 813 "FacebookPublishingAuthenticator.c" - } -} - - -static void -publishing_authenticator_shotwell_facebook_web_authentication_pane_real_on_page_load (ShotwellPluginsCommonWebAuthenticationPane* base) -{ - PublishingAuthenticatorShotwellFacebookWebAuthenticationPane * self; - gchar* loaded_url = NULL; - WebKitWebView* _tmp0_; - WebKitWebView* _tmp1_; - const gchar* _tmp2_; - const gchar* _tmp3_; - gchar* _tmp4_; - gchar* _tmp5_; - const gchar* _tmp6_; - gchar* _tmp7_; - gchar* _tmp8_; - const gchar* _tmp9_; - const gchar* _tmp20_; - const gchar* _tmp25_; -#line 130 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_AUTHENTICATOR_SHOTWELL_FACEBOOK_TYPE_WEB_AUTHENTICATION_PANE, PublishingAuthenticatorShotwellFacebookWebAuthenticationPane); -#line 131 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp0_ = shotwell_plugins_common_web_authentication_pane_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, SHOTWELL_PLUGINS_COMMON_TYPE_WEB_AUTHENTICATION_PANE, ShotwellPluginsCommonWebAuthenticationPane)); -#line 131 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp1_ = _tmp0_; -#line 131 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp2_ = webkit_web_view_get_uri (_tmp1_); -#line 131 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp3_ = _tmp2_; -#line 131 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp4_ = g_strdup (_tmp3_); -#line 131 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp5_ = _tmp4_; -#line 131 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _g_object_unref0 (_tmp1_); -#line 131 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - loaded_url = _tmp5_; -#line 132 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp6_ = loaded_url; -#line 132 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp7_ = g_strconcat ("loaded url: ", _tmp6_, NULL); -#line 132 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp8_ = _tmp7_; -#line 132 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - g_debug ("FacebookPublishingAuthenticator.vala:132: %s", _tmp8_); -#line 132 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _g_free0 (_tmp8_); -#line 135 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp9_ = loaded_url; -#line 135 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - if (string_contains (_tmp9_, "?")) { -#line 867 "FacebookPublishingAuthenticator.c" - gint index = 0; - const gchar* _tmp10_; - gchar* params = NULL; - const gchar* _tmp11_; - gint _tmp12_; - const gchar* _tmp13_; - gint _tmp14_; - gint _tmp15_; - gchar* _tmp16_; - const gchar* _tmp17_; - const gchar* _tmp18_; - gchar* _tmp19_; -#line 136 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp10_ = loaded_url; -#line 136 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - index = string_index_of_char (_tmp10_, (gunichar) '?', 0); -#line 137 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp11_ = loaded_url; -#line 137 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp12_ = index; -#line 137 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp13_ = loaded_url; -#line 137 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp14_ = strlen (_tmp13_); -#line 137 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp15_ = _tmp14_; -#line 137 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp16_ = string_slice (_tmp11_, (glong) _tmp12_, (glong) _tmp15_); -#line 137 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - params = _tmp16_; -#line 138 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp17_ = loaded_url; -#line 138 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp18_ = params; -#line 138 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp19_ = string_replace (_tmp17_, _tmp18_, ""); -#line 138 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _g_free0 (loaded_url); -#line 138 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - loaded_url = _tmp19_; -#line 135 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _g_free0 (params); -#line 910 "FacebookPublishingAuthenticator.c" - } -#line 142 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp20_ = loaded_url; -#line 142 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - if (string_contains (_tmp20_, "login_success")) { -#line 916 "FacebookPublishingAuthenticator.c" - WebKitWebView* _tmp21_; - WebKitWebView* _tmp22_; - const gchar* _tmp23_; - const gchar* _tmp24_; -#line 143 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - publishing_authenticator_shotwell_facebook_web_authentication_pane_cache_dirty = TRUE; -#line 144 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp21_ = shotwell_plugins_common_web_authentication_pane_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, SHOTWELL_PLUGINS_COMMON_TYPE_WEB_AUTHENTICATION_PANE, ShotwellPluginsCommonWebAuthenticationPane)); -#line 144 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp22_ = _tmp21_; -#line 144 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp23_ = webkit_web_view_get_uri (_tmp22_); -#line 144 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp24_ = _tmp23_; -#line 144 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - g_signal_emit (self, publishing_authenticator_shotwell_facebook_web_authentication_pane_signals[PUBLISHING_AUTHENTICATOR_SHOTWELL_FACEBOOK_WEB_AUTHENTICATION_PANE_LOGIN_SUCCEEDED_SIGNAL], 0, _tmp24_); -#line 144 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _g_object_unref0 (_tmp22_); -#line 145 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _g_free0 (loaded_url); -#line 145 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - return; -#line 939 "FacebookPublishingAuthenticator.c" - } -#line 149 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp25_ = loaded_url; -#line 149 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - if (string_contains (_tmp25_, "login_failure")) { -#line 150 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - g_signal_emit (self, publishing_authenticator_shotwell_facebook_web_authentication_pane_signals[PUBLISHING_AUTHENTICATOR_SHOTWELL_FACEBOOK_WEB_AUTHENTICATION_PANE_LOGIN_FAILED_SIGNAL], 0); -#line 151 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _g_free0 (loaded_url); -#line 151 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - return; -#line 951 "FacebookPublishingAuthenticator.c" - } -#line 130 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _g_free0 (loaded_url); -#line 955 "FacebookPublishingAuthenticator.c" -} - - -gboolean -publishing_authenticator_shotwell_facebook_web_authentication_pane_is_cache_dirty (void) -{ - gboolean result = FALSE; - gboolean _tmp0_; -#line 156 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp0_ = publishing_authenticator_shotwell_facebook_web_authentication_pane_cache_dirty; -#line 156 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - result = _tmp0_; -#line 156 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - return result; -#line 970 "FacebookPublishingAuthenticator.c" -} - - -static PublishingAuthenticatorShotwellFacebookWebAuthenticationPaneLocaleLookup* -publishing_authenticator_shotwell_facebook_web_authentication_pane_locale_lookup_construct (GType object_type, - const gchar* prefix, - const gchar* translation, - const gchar* exception_code, - const gchar* exception_translation, - const gchar* exception_code_2, - const gchar* exception_translation_2) -{ - PublishingAuthenticatorShotwellFacebookWebAuthenticationPaneLocaleLookup* self = NULL; - gchar* _tmp0_; - gchar* _tmp1_; - gchar* _tmp2_; - gchar* _tmp3_; - gchar* _tmp4_; - gchar* _tmp5_; -#line 31 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - g_return_val_if_fail (prefix != NULL, NULL); -#line 31 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - g_return_val_if_fail (translation != NULL, NULL); -#line 31 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - self = (PublishingAuthenticatorShotwellFacebookWebAuthenticationPaneLocaleLookup*) g_type_create_instance (object_type); -#line 34 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp0_ = g_strdup (prefix); -#line 34 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _g_free0 (self->prefix); -#line 34 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - self->prefix = _tmp0_; -#line 35 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp1_ = g_strdup (translation); -#line 35 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _g_free0 (self->translation); -#line 35 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - self->translation = _tmp1_; -#line 36 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp2_ = g_strdup (exception_code); -#line 36 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _g_free0 (self->exception_code); -#line 36 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - self->exception_code = _tmp2_; -#line 37 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp3_ = g_strdup (exception_translation); -#line 37 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _g_free0 (self->exception_translation); -#line 37 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - self->exception_translation = _tmp3_; -#line 38 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp4_ = g_strdup (exception_code_2); -#line 38 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _g_free0 (self->exception_code_2); -#line 38 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - self->exception_code_2 = _tmp4_; -#line 39 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp5_ = g_strdup (exception_translation_2); -#line 39 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _g_free0 (self->exception_translation_2); -#line 39 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - self->exception_translation_2 = _tmp5_; -#line 31 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - return self; -#line 1034 "FacebookPublishingAuthenticator.c" -} - - -static PublishingAuthenticatorShotwellFacebookWebAuthenticationPaneLocaleLookup* -publishing_authenticator_shotwell_facebook_web_authentication_pane_locale_lookup_new (const gchar* prefix, - const gchar* translation, - const gchar* exception_code, - const gchar* exception_translation, - const gchar* exception_code_2, - const gchar* exception_translation_2) -{ -#line 31 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - return publishing_authenticator_shotwell_facebook_web_authentication_pane_locale_lookup_construct (PUBLISHING_AUTHENTICATOR_SHOTWELL_FACEBOOK_WEB_AUTHENTICATION_PANE_TYPE_LOCALE_LOOKUP, prefix, translation, exception_code, exception_translation, exception_code_2, exception_translation_2); -#line 1048 "FacebookPublishingAuthenticator.c" -} - - -static void -publishing_authenticator_shotwell_facebook_web_authentication_pane_value_locale_lookup_init (GValue* value) -{ -#line 23 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - value->data[0].v_pointer = NULL; -#line 1057 "FacebookPublishingAuthenticator.c" -} - - -static void -publishing_authenticator_shotwell_facebook_web_authentication_pane_value_locale_lookup_free_value (GValue* value) -{ -#line 23 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - if (value->data[0].v_pointer) { -#line 23 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - publishing_authenticator_shotwell_facebook_web_authentication_pane_locale_lookup_unref (value->data[0].v_pointer); -#line 1068 "FacebookPublishingAuthenticator.c" - } -} - - -static void -publishing_authenticator_shotwell_facebook_web_authentication_pane_value_locale_lookup_copy_value (const GValue* src_value, - GValue* dest_value) -{ -#line 23 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - if (src_value->data[0].v_pointer) { -#line 23 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - dest_value->data[0].v_pointer = publishing_authenticator_shotwell_facebook_web_authentication_pane_locale_lookup_ref (src_value->data[0].v_pointer); -#line 1081 "FacebookPublishingAuthenticator.c" - } else { -#line 23 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - dest_value->data[0].v_pointer = NULL; -#line 1085 "FacebookPublishingAuthenticator.c" - } -} - - -static gpointer -publishing_authenticator_shotwell_facebook_web_authentication_pane_value_locale_lookup_peek_pointer (const GValue* value) -{ -#line 23 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - return value->data[0].v_pointer; -#line 1095 "FacebookPublishingAuthenticator.c" -} - - -static gchar* -publishing_authenticator_shotwell_facebook_web_authentication_pane_value_locale_lookup_collect_value (GValue* value, - guint n_collect_values, - GTypeCValue* collect_values, - guint collect_flags) -{ -#line 23 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - if (collect_values[0].v_pointer) { -#line 1107 "FacebookPublishingAuthenticator.c" - PublishingAuthenticatorShotwellFacebookWebAuthenticationPaneLocaleLookup * object; - object = collect_values[0].v_pointer; -#line 23 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - if (object->parent_instance.g_class == NULL) { -#line 23 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL); -#line 1114 "FacebookPublishingAuthenticator.c" - } else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) { -#line 23 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.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 1118 "FacebookPublishingAuthenticator.c" - } -#line 23 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - value->data[0].v_pointer = publishing_authenticator_shotwell_facebook_web_authentication_pane_locale_lookup_ref (object); -#line 1122 "FacebookPublishingAuthenticator.c" - } else { -#line 23 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - value->data[0].v_pointer = NULL; -#line 1126 "FacebookPublishingAuthenticator.c" - } -#line 23 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - return NULL; -#line 1130 "FacebookPublishingAuthenticator.c" -} - - -static gchar* -publishing_authenticator_shotwell_facebook_web_authentication_pane_value_locale_lookup_lcopy_value (const GValue* value, - guint n_collect_values, - GTypeCValue* collect_values, - guint collect_flags) -{ - PublishingAuthenticatorShotwellFacebookWebAuthenticationPaneLocaleLookup ** object_p; - object_p = collect_values[0].v_pointer; -#line 23 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - if (!object_p) { -#line 23 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value)); -#line 1146 "FacebookPublishingAuthenticator.c" - } -#line 23 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - if (!value->data[0].v_pointer) { -#line 23 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - *object_p = NULL; -#line 1152 "FacebookPublishingAuthenticator.c" - } else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) { -#line 23 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - *object_p = value->data[0].v_pointer; -#line 1156 "FacebookPublishingAuthenticator.c" - } else { -#line 23 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - *object_p = publishing_authenticator_shotwell_facebook_web_authentication_pane_locale_lookup_ref (value->data[0].v_pointer); -#line 1160 "FacebookPublishingAuthenticator.c" - } -#line 23 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - return NULL; -#line 1164 "FacebookPublishingAuthenticator.c" -} - - -static GParamSpec* -publishing_authenticator_shotwell_facebook_web_authentication_pane_param_spec_locale_lookup (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags) -{ - PublishingAuthenticatorShotwellFacebookWebAuthenticationPaneParamSpecLocaleLookup* spec; -#line 23 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - g_return_val_if_fail (g_type_is_a (object_type, PUBLISHING_AUTHENTICATOR_SHOTWELL_FACEBOOK_WEB_AUTHENTICATION_PANE_TYPE_LOCALE_LOOKUP), NULL); -#line 23 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags); -#line 23 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - G_PARAM_SPEC (spec)->value_type = object_type; -#line 23 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - return G_PARAM_SPEC (spec); -#line 1184 "FacebookPublishingAuthenticator.c" -} - - -static gpointer -publishing_authenticator_shotwell_facebook_web_authentication_pane_value_get_locale_lookup (const GValue* value) -{ -#line 23 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, PUBLISHING_AUTHENTICATOR_SHOTWELL_FACEBOOK_WEB_AUTHENTICATION_PANE_TYPE_LOCALE_LOOKUP), NULL); -#line 23 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - return value->data[0].v_pointer; -#line 1195 "FacebookPublishingAuthenticator.c" -} - - -static void -publishing_authenticator_shotwell_facebook_web_authentication_pane_value_set_locale_lookup (GValue* value, - gpointer v_object) -{ - PublishingAuthenticatorShotwellFacebookWebAuthenticationPaneLocaleLookup * old; -#line 23 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, PUBLISHING_AUTHENTICATOR_SHOTWELL_FACEBOOK_WEB_AUTHENTICATION_PANE_TYPE_LOCALE_LOOKUP)); -#line 23 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - old = value->data[0].v_pointer; -#line 23 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - if (v_object) { -#line 23 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, PUBLISHING_AUTHENTICATOR_SHOTWELL_FACEBOOK_WEB_AUTHENTICATION_PANE_TYPE_LOCALE_LOOKUP)); -#line 23 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value))); -#line 23 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - value->data[0].v_pointer = v_object; -#line 23 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - publishing_authenticator_shotwell_facebook_web_authentication_pane_locale_lookup_ref (value->data[0].v_pointer); -#line 1218 "FacebookPublishingAuthenticator.c" - } else { -#line 23 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - value->data[0].v_pointer = NULL; -#line 1222 "FacebookPublishingAuthenticator.c" - } -#line 23 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - if (old) { -#line 23 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - publishing_authenticator_shotwell_facebook_web_authentication_pane_locale_lookup_unref (old); -#line 1228 "FacebookPublishingAuthenticator.c" - } -} - - -static void -publishing_authenticator_shotwell_facebook_web_authentication_pane_value_take_locale_lookup (GValue* value, - gpointer v_object) -{ - PublishingAuthenticatorShotwellFacebookWebAuthenticationPaneLocaleLookup * old; -#line 23 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, PUBLISHING_AUTHENTICATOR_SHOTWELL_FACEBOOK_WEB_AUTHENTICATION_PANE_TYPE_LOCALE_LOOKUP)); -#line 23 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - old = value->data[0].v_pointer; -#line 23 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - if (v_object) { -#line 23 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, PUBLISHING_AUTHENTICATOR_SHOTWELL_FACEBOOK_WEB_AUTHENTICATION_PANE_TYPE_LOCALE_LOOKUP)); -#line 23 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value))); -#line 23 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - value->data[0].v_pointer = v_object; -#line 1250 "FacebookPublishingAuthenticator.c" - } else { -#line 23 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - value->data[0].v_pointer = NULL; -#line 1254 "FacebookPublishingAuthenticator.c" - } -#line 23 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - if (old) { -#line 23 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - publishing_authenticator_shotwell_facebook_web_authentication_pane_locale_lookup_unref (old); -#line 1260 "FacebookPublishingAuthenticator.c" - } -} - - -static void -publishing_authenticator_shotwell_facebook_web_authentication_pane_locale_lookup_class_init (PublishingAuthenticatorShotwellFacebookWebAuthenticationPaneLocaleLookupClass * klass) -{ -#line 23 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - publishing_authenticator_shotwell_facebook_web_authentication_pane_locale_lookup_parent_class = g_type_class_peek_parent (klass); -#line 23 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - ((PublishingAuthenticatorShotwellFacebookWebAuthenticationPaneLocaleLookupClass *) klass)->finalize = publishing_authenticator_shotwell_facebook_web_authentication_pane_locale_lookup_finalize; -#line 1272 "FacebookPublishingAuthenticator.c" -} - - -static void -publishing_authenticator_shotwell_facebook_web_authentication_pane_locale_lookup_instance_init (PublishingAuthenticatorShotwellFacebookWebAuthenticationPaneLocaleLookup * self) -{ -#line 23 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - self->ref_count = 1; -#line 1281 "FacebookPublishingAuthenticator.c" -} - - -static void -publishing_authenticator_shotwell_facebook_web_authentication_pane_locale_lookup_finalize (PublishingAuthenticatorShotwellFacebookWebAuthenticationPaneLocaleLookup * obj) -{ - PublishingAuthenticatorShotwellFacebookWebAuthenticationPaneLocaleLookup * self; -#line 23 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, PUBLISHING_AUTHENTICATOR_SHOTWELL_FACEBOOK_WEB_AUTHENTICATION_PANE_TYPE_LOCALE_LOOKUP, PublishingAuthenticatorShotwellFacebookWebAuthenticationPaneLocaleLookup); -#line 23 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - g_signal_handlers_destroy (self); -#line 24 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _g_free0 (self->prefix); -#line 25 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _g_free0 (self->translation); -#line 26 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _g_free0 (self->exception_code); -#line 27 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _g_free0 (self->exception_translation); -#line 28 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _g_free0 (self->exception_code_2); -#line 29 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _g_free0 (self->exception_translation_2); -#line 1305 "FacebookPublishingAuthenticator.c" -} - - -static GType -publishing_authenticator_shotwell_facebook_web_authentication_pane_locale_lookup_get_type (void) -{ - static volatile gsize publishing_authenticator_shotwell_facebook_web_authentication_pane_locale_lookup_type_id__volatile = 0; - if (g_once_init_enter (&publishing_authenticator_shotwell_facebook_web_authentication_pane_locale_lookup_type_id__volatile)) { - static const GTypeValueTable g_define_type_value_table = { publishing_authenticator_shotwell_facebook_web_authentication_pane_value_locale_lookup_init, publishing_authenticator_shotwell_facebook_web_authentication_pane_value_locale_lookup_free_value, publishing_authenticator_shotwell_facebook_web_authentication_pane_value_locale_lookup_copy_value, publishing_authenticator_shotwell_facebook_web_authentication_pane_value_locale_lookup_peek_pointer, "p", publishing_authenticator_shotwell_facebook_web_authentication_pane_value_locale_lookup_collect_value, "p", publishing_authenticator_shotwell_facebook_web_authentication_pane_value_locale_lookup_lcopy_value }; - static const GTypeInfo g_define_type_info = { sizeof (PublishingAuthenticatorShotwellFacebookWebAuthenticationPaneLocaleLookupClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) publishing_authenticator_shotwell_facebook_web_authentication_pane_locale_lookup_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PublishingAuthenticatorShotwellFacebookWebAuthenticationPaneLocaleLookup), 0, (GInstanceInitFunc) publishing_authenticator_shotwell_facebook_web_authentication_pane_locale_lookup_instance_init, &g_define_type_value_table }; - static const GTypeFundamentalInfo g_define_type_fundamental_info = { (G_TYPE_FLAG_CLASSED | G_TYPE_FLAG_INSTANTIATABLE | G_TYPE_FLAG_DERIVABLE | G_TYPE_FLAG_DEEP_DERIVABLE) }; - GType publishing_authenticator_shotwell_facebook_web_authentication_pane_locale_lookup_type_id; - publishing_authenticator_shotwell_facebook_web_authentication_pane_locale_lookup_type_id = g_type_register_fundamental (g_type_fundamental_next (), "PublishingAuthenticatorShotwellFacebookWebAuthenticationPaneLocaleLookup", &g_define_type_info, &g_define_type_fundamental_info, 0); - g_once_init_leave (&publishing_authenticator_shotwell_facebook_web_authentication_pane_locale_lookup_type_id__volatile, publishing_authenticator_shotwell_facebook_web_authentication_pane_locale_lookup_type_id); - } - return publishing_authenticator_shotwell_facebook_web_authentication_pane_locale_lookup_type_id__volatile; -} - - -static gpointer -publishing_authenticator_shotwell_facebook_web_authentication_pane_locale_lookup_ref (gpointer instance) -{ - PublishingAuthenticatorShotwellFacebookWebAuthenticationPaneLocaleLookup * self; - self = instance; -#line 23 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - g_atomic_int_inc (&self->ref_count); -#line 23 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - return instance; -#line 1334 "FacebookPublishingAuthenticator.c" -} - - -static void -publishing_authenticator_shotwell_facebook_web_authentication_pane_locale_lookup_unref (gpointer instance) -{ - PublishingAuthenticatorShotwellFacebookWebAuthenticationPaneLocaleLookup * self; - self = instance; -#line 23 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - if (g_atomic_int_dec_and_test (&self->ref_count)) { -#line 23 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - PUBLISHING_AUTHENTICATOR_SHOTWELL_FACEBOOK_WEB_AUTHENTICATION_PANE_LOCALE_LOOKUP_GET_CLASS (self)->finalize (self); -#line 23 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - g_type_free_instance ((GTypeInstance *) self); -#line 1349 "FacebookPublishingAuthenticator.c" - } -} - - -static void -publishing_authenticator_shotwell_facebook_web_authentication_pane_class_init (PublishingAuthenticatorShotwellFacebookWebAuthenticationPaneClass * klass) -{ - PublishingAuthenticatorShotwellFacebookWebAuthenticationPaneLocaleLookup* _tmp0_; - PublishingAuthenticatorShotwellFacebookWebAuthenticationPaneLocaleLookup* _tmp1_; - PublishingAuthenticatorShotwellFacebookWebAuthenticationPaneLocaleLookup* _tmp2_; - PublishingAuthenticatorShotwellFacebookWebAuthenticationPaneLocaleLookup* _tmp3_; - PublishingAuthenticatorShotwellFacebookWebAuthenticationPaneLocaleLookup* _tmp4_; - PublishingAuthenticatorShotwellFacebookWebAuthenticationPaneLocaleLookup* _tmp5_; - PublishingAuthenticatorShotwellFacebookWebAuthenticationPaneLocaleLookup* _tmp6_; - PublishingAuthenticatorShotwellFacebookWebAuthenticationPaneLocaleLookup* _tmp7_; - PublishingAuthenticatorShotwellFacebookWebAuthenticationPaneLocaleLookup* _tmp8_; - PublishingAuthenticatorShotwellFacebookWebAuthenticationPaneLocaleLookup* _tmp9_; - PublishingAuthenticatorShotwellFacebookWebAuthenticationPaneLocaleLookup* _tmp10_; - PublishingAuthenticatorShotwellFacebookWebAuthenticationPaneLocaleLookup* _tmp11_; - PublishingAuthenticatorShotwellFacebookWebAuthenticationPaneLocaleLookup* _tmp12_; - PublishingAuthenticatorShotwellFacebookWebAuthenticationPaneLocaleLookup* _tmp13_; - PublishingAuthenticatorShotwellFacebookWebAuthenticationPaneLocaleLookup* _tmp14_; - PublishingAuthenticatorShotwellFacebookWebAuthenticationPaneLocaleLookup* _tmp15_; - PublishingAuthenticatorShotwellFacebookWebAuthenticationPaneLocaleLookup* _tmp16_; - PublishingAuthenticatorShotwellFacebookWebAuthenticationPaneLocaleLookup* _tmp17_; - PublishingAuthenticatorShotwellFacebookWebAuthenticationPaneLocaleLookup* _tmp18_; - PublishingAuthenticatorShotwellFacebookWebAuthenticationPaneLocaleLookup* _tmp19_; - PublishingAuthenticatorShotwellFacebookWebAuthenticationPaneLocaleLookup* _tmp20_; - PublishingAuthenticatorShotwellFacebookWebAuthenticationPaneLocaleLookup* _tmp21_; - PublishingAuthenticatorShotwellFacebookWebAuthenticationPaneLocaleLookup* _tmp22_; - PublishingAuthenticatorShotwellFacebookWebAuthenticationPaneLocaleLookup* _tmp23_; - PublishingAuthenticatorShotwellFacebookWebAuthenticationPaneLocaleLookup* _tmp24_; - PublishingAuthenticatorShotwellFacebookWebAuthenticationPaneLocaleLookup* _tmp25_; - PublishingAuthenticatorShotwellFacebookWebAuthenticationPaneLocaleLookup* _tmp26_; - PublishingAuthenticatorShotwellFacebookWebAuthenticationPaneLocaleLookup* _tmp27_; - PublishingAuthenticatorShotwellFacebookWebAuthenticationPaneLocaleLookup* _tmp28_; - PublishingAuthenticatorShotwellFacebookWebAuthenticationPaneLocaleLookup* _tmp29_; - PublishingAuthenticatorShotwellFacebookWebAuthenticationPaneLocaleLookup* _tmp30_; - PublishingAuthenticatorShotwellFacebookWebAuthenticationPaneLocaleLookup* _tmp31_; - PublishingAuthenticatorShotwellFacebookWebAuthenticationPaneLocaleLookup* _tmp32_; - PublishingAuthenticatorShotwellFacebookWebAuthenticationPaneLocaleLookup* _tmp33_; - PublishingAuthenticatorShotwellFacebookWebAuthenticationPaneLocaleLookup* _tmp34_; - PublishingAuthenticatorShotwellFacebookWebAuthenticationPaneLocaleLookup* _tmp35_; - PublishingAuthenticatorShotwellFacebookWebAuthenticationPaneLocaleLookup* _tmp36_; - PublishingAuthenticatorShotwellFacebookWebAuthenticationPaneLocaleLookup* _tmp37_; - PublishingAuthenticatorShotwellFacebookWebAuthenticationPaneLocaleLookup* _tmp38_; - PublishingAuthenticatorShotwellFacebookWebAuthenticationPaneLocaleLookup* _tmp39_; - PublishingAuthenticatorShotwellFacebookWebAuthenticationPaneLocaleLookup* _tmp40_; - PublishingAuthenticatorShotwellFacebookWebAuthenticationPaneLocaleLookup* _tmp41_; - PublishingAuthenticatorShotwellFacebookWebAuthenticationPaneLocaleLookup* _tmp42_; - PublishingAuthenticatorShotwellFacebookWebAuthenticationPaneLocaleLookup* _tmp43_; - PublishingAuthenticatorShotwellFacebookWebAuthenticationPaneLocaleLookup* _tmp44_; - PublishingAuthenticatorShotwellFacebookWebAuthenticationPaneLocaleLookup** _tmp45_; -#line 13 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - publishing_authenticator_shotwell_facebook_web_authentication_pane_parent_class = g_type_class_peek_parent (klass); -#line 13 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - ((ShotwellPluginsCommonWebAuthenticationPaneClass *) klass)->on_page_load = (void (*) (ShotwellPluginsCommonWebAuthenticationPane *)) publishing_authenticator_shotwell_facebook_web_authentication_pane_real_on_page_load; -#line 13 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - G_OBJECT_CLASS (klass)->finalize = publishing_authenticator_shotwell_facebook_web_authentication_pane_finalize; -#line 13 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - publishing_authenticator_shotwell_facebook_web_authentication_pane_signals[PUBLISHING_AUTHENTICATOR_SHOTWELL_FACEBOOK_WEB_AUTHENTICATION_PANE_LOGIN_SUCCEEDED_SIGNAL] = g_signal_new ("login-succeeded", PUBLISHING_AUTHENTICATOR_SHOTWELL_FACEBOOK_TYPE_WEB_AUTHENTICATION_PANE, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_marshal_VOID__STRING, G_TYPE_NONE, 1, G_TYPE_STRING); -#line 13 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - publishing_authenticator_shotwell_facebook_web_authentication_pane_signals[PUBLISHING_AUTHENTICATOR_SHOTWELL_FACEBOOK_WEB_AUTHENTICATION_PANE_LOGIN_FAILED_SIGNAL] = g_signal_new ("login-failed", PUBLISHING_AUTHENTICATOR_SHOTWELL_FACEBOOK_TYPE_WEB_AUTHENTICATION_PANE, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_marshal_VOID__VOID, G_TYPE_NONE, 0); -#line 44 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp0_ = publishing_authenticator_shotwell_facebook_web_authentication_pane_locale_lookup_new ("es", "es-la", "ES", "es-es", NULL, NULL); -#line 44 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp1_ = publishing_authenticator_shotwell_facebook_web_authentication_pane_locale_lookup_new ("en", "en-gb", "US", "en-us", NULL, NULL); -#line 44 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp2_ = publishing_authenticator_shotwell_facebook_web_authentication_pane_locale_lookup_new ("fr", "fr-fr", "CA", "fr-ca", NULL, NULL); -#line 44 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp3_ = publishing_authenticator_shotwell_facebook_web_authentication_pane_locale_lookup_new ("pt", "pt-br", "PT", "pt-pt", NULL, NULL); -#line 44 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp4_ = publishing_authenticator_shotwell_facebook_web_authentication_pane_locale_lookup_new ("zh", "zh-cn", "HK", "zh-hk", "TW", "zh-tw"); -#line 44 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp5_ = publishing_authenticator_shotwell_facebook_web_authentication_pane_locale_lookup_new ("af", "af-za", NULL, NULL, NULL, NULL); -#line 44 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp6_ = publishing_authenticator_shotwell_facebook_web_authentication_pane_locale_lookup_new ("ar", "ar-ar", NULL, NULL, NULL, NULL); -#line 44 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp7_ = publishing_authenticator_shotwell_facebook_web_authentication_pane_locale_lookup_new ("nb", "nb-no", NULL, NULL, NULL, NULL); -#line 44 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp8_ = publishing_authenticator_shotwell_facebook_web_authentication_pane_locale_lookup_new ("no", "nb-no", NULL, NULL, NULL, NULL); -#line 44 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp9_ = publishing_authenticator_shotwell_facebook_web_authentication_pane_locale_lookup_new ("id", "id-id", NULL, NULL, NULL, NULL); -#line 44 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp10_ = publishing_authenticator_shotwell_facebook_web_authentication_pane_locale_lookup_new ("ms", "ms-my", NULL, NULL, NULL, NULL); -#line 44 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp11_ = publishing_authenticator_shotwell_facebook_web_authentication_pane_locale_lookup_new ("ca", "ca-es", NULL, NULL, NULL, NULL); -#line 44 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp12_ = publishing_authenticator_shotwell_facebook_web_authentication_pane_locale_lookup_new ("cs", "cs-cz", NULL, NULL, NULL, NULL); -#line 44 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp13_ = publishing_authenticator_shotwell_facebook_web_authentication_pane_locale_lookup_new ("cy", "cy-gb", NULL, NULL, NULL, NULL); -#line 44 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp14_ = publishing_authenticator_shotwell_facebook_web_authentication_pane_locale_lookup_new ("da", "da-dk", NULL, NULL, NULL, NULL); -#line 44 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp15_ = publishing_authenticator_shotwell_facebook_web_authentication_pane_locale_lookup_new ("de", "de-de", NULL, NULL, NULL, NULL); -#line 44 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp16_ = publishing_authenticator_shotwell_facebook_web_authentication_pane_locale_lookup_new ("tl", "tl-ph", NULL, NULL, NULL, NULL); -#line 44 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp17_ = publishing_authenticator_shotwell_facebook_web_authentication_pane_locale_lookup_new ("ko", "ko-kr", NULL, NULL, NULL, NULL); -#line 44 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp18_ = publishing_authenticator_shotwell_facebook_web_authentication_pane_locale_lookup_new ("hr", "hr-hr", NULL, NULL, NULL, NULL); -#line 44 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp19_ = publishing_authenticator_shotwell_facebook_web_authentication_pane_locale_lookup_new ("it", "it-it", NULL, NULL, NULL, NULL); -#line 44 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp20_ = publishing_authenticator_shotwell_facebook_web_authentication_pane_locale_lookup_new ("lt", "lt-lt", NULL, NULL, NULL, NULL); -#line 44 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp21_ = publishing_authenticator_shotwell_facebook_web_authentication_pane_locale_lookup_new ("hu", "hu-hu", NULL, NULL, NULL, NULL); -#line 44 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp22_ = publishing_authenticator_shotwell_facebook_web_authentication_pane_locale_lookup_new ("nl", "nl-nl", NULL, NULL, NULL, NULL); -#line 44 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp23_ = publishing_authenticator_shotwell_facebook_web_authentication_pane_locale_lookup_new ("ja", "ja-jp", NULL, NULL, NULL, NULL); -#line 44 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp24_ = publishing_authenticator_shotwell_facebook_web_authentication_pane_locale_lookup_new ("nb", "nb-no", NULL, NULL, NULL, NULL); -#line 44 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp25_ = publishing_authenticator_shotwell_facebook_web_authentication_pane_locale_lookup_new ("no", "nb-no", NULL, NULL, NULL, NULL); -#line 44 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp26_ = publishing_authenticator_shotwell_facebook_web_authentication_pane_locale_lookup_new ("pl", "pl-pl", NULL, NULL, NULL, NULL); -#line 44 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp27_ = publishing_authenticator_shotwell_facebook_web_authentication_pane_locale_lookup_new ("ro", "ro-ro", NULL, NULL, NULL, NULL); -#line 44 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp28_ = publishing_authenticator_shotwell_facebook_web_authentication_pane_locale_lookup_new ("ru", "ru-ru", NULL, NULL, NULL, NULL); -#line 44 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp29_ = publishing_authenticator_shotwell_facebook_web_authentication_pane_locale_lookup_new ("sk", "sk-sk", NULL, NULL, NULL, NULL); -#line 44 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp30_ = publishing_authenticator_shotwell_facebook_web_authentication_pane_locale_lookup_new ("sl", "sl-si", NULL, NULL, NULL, NULL); -#line 44 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp31_ = publishing_authenticator_shotwell_facebook_web_authentication_pane_locale_lookup_new ("sv", "sv-se", NULL, NULL, NULL, NULL); -#line 44 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp32_ = publishing_authenticator_shotwell_facebook_web_authentication_pane_locale_lookup_new ("th", "th-th", NULL, NULL, NULL, NULL); -#line 44 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp33_ = publishing_authenticator_shotwell_facebook_web_authentication_pane_locale_lookup_new ("vi", "vi-vn", NULL, NULL, NULL, NULL); -#line 44 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp34_ = publishing_authenticator_shotwell_facebook_web_authentication_pane_locale_lookup_new ("tr", "tr-tr", NULL, NULL, NULL, NULL); -#line 44 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp35_ = publishing_authenticator_shotwell_facebook_web_authentication_pane_locale_lookup_new ("el", "el-gr", NULL, NULL, NULL, NULL); -#line 44 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp36_ = publishing_authenticator_shotwell_facebook_web_authentication_pane_locale_lookup_new ("bg", "bg-bg", NULL, NULL, NULL, NULL); -#line 44 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp37_ = publishing_authenticator_shotwell_facebook_web_authentication_pane_locale_lookup_new ("sr", "sr-rs", NULL, NULL, NULL, NULL); -#line 44 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp38_ = publishing_authenticator_shotwell_facebook_web_authentication_pane_locale_lookup_new ("he", "he-il", NULL, NULL, NULL, NULL); -#line 44 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp39_ = publishing_authenticator_shotwell_facebook_web_authentication_pane_locale_lookup_new ("hi", "hi-in", NULL, NULL, NULL, NULL); -#line 44 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp40_ = publishing_authenticator_shotwell_facebook_web_authentication_pane_locale_lookup_new ("bn", "bn-in", NULL, NULL, NULL, NULL); -#line 44 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp41_ = publishing_authenticator_shotwell_facebook_web_authentication_pane_locale_lookup_new ("pa", "pa-in", NULL, NULL, NULL, NULL); -#line 44 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp42_ = publishing_authenticator_shotwell_facebook_web_authentication_pane_locale_lookup_new ("ta", "ta-in", NULL, NULL, NULL, NULL); -#line 44 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp43_ = publishing_authenticator_shotwell_facebook_web_authentication_pane_locale_lookup_new ("te", "te-in", NULL, NULL, NULL, NULL); -#line 44 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp44_ = publishing_authenticator_shotwell_facebook_web_authentication_pane_locale_lookup_new ("ml", "ml-in", NULL, NULL, NULL, NULL); -#line 44 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp45_ = g_new0 (PublishingAuthenticatorShotwellFacebookWebAuthenticationPaneLocaleLookup*, 45 + 1); -#line 44 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp45_[0] = _tmp0_; -#line 44 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp45_[1] = _tmp1_; -#line 44 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp45_[2] = _tmp2_; -#line 44 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp45_[3] = _tmp3_; -#line 44 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp45_[4] = _tmp4_; -#line 44 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp45_[5] = _tmp5_; -#line 44 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp45_[6] = _tmp6_; -#line 44 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp45_[7] = _tmp7_; -#line 44 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp45_[8] = _tmp8_; -#line 44 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp45_[9] = _tmp9_; -#line 44 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp45_[10] = _tmp10_; -#line 44 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp45_[11] = _tmp11_; -#line 44 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp45_[12] = _tmp12_; -#line 44 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp45_[13] = _tmp13_; -#line 44 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp45_[14] = _tmp14_; -#line 44 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp45_[15] = _tmp15_; -#line 44 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp45_[16] = _tmp16_; -#line 44 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp45_[17] = _tmp17_; -#line 44 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp45_[18] = _tmp18_; -#line 44 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp45_[19] = _tmp19_; -#line 44 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp45_[20] = _tmp20_; -#line 44 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp45_[21] = _tmp21_; -#line 44 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp45_[22] = _tmp22_; -#line 44 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp45_[23] = _tmp23_; -#line 44 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp45_[24] = _tmp24_; -#line 44 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp45_[25] = _tmp25_; -#line 44 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp45_[26] = _tmp26_; -#line 44 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp45_[27] = _tmp27_; -#line 44 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp45_[28] = _tmp28_; -#line 44 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp45_[29] = _tmp29_; -#line 44 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp45_[30] = _tmp30_; -#line 44 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp45_[31] = _tmp31_; -#line 44 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp45_[32] = _tmp32_; -#line 44 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp45_[33] = _tmp33_; -#line 44 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp45_[34] = _tmp34_; -#line 44 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp45_[35] = _tmp35_; -#line 44 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp45_[36] = _tmp36_; -#line 44 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp45_[37] = _tmp37_; -#line 44 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp45_[38] = _tmp38_; -#line 44 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp45_[39] = _tmp39_; -#line 44 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp45_[40] = _tmp40_; -#line 44 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp45_[41] = _tmp41_; -#line 44 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp45_[42] = _tmp42_; -#line 44 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp45_[43] = _tmp43_; -#line 44 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp45_[44] = _tmp44_; -#line 44 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - publishing_authenticator_shotwell_facebook_web_authentication_pane_locale_lookup_table = _tmp45_; -#line 44 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - publishing_authenticator_shotwell_facebook_web_authentication_pane_locale_lookup_table_length1 = 45; -#line 1599 "FacebookPublishingAuthenticator.c" -} - - -static void -publishing_authenticator_shotwell_facebook_web_authentication_pane_instance_init (PublishingAuthenticatorShotwellFacebookWebAuthenticationPane * self) -{ -} - - -static void -publishing_authenticator_shotwell_facebook_web_authentication_pane_finalize (GObject * obj) -{ - PublishingAuthenticatorShotwellFacebookWebAuthenticationPane * self; -#line 13 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, PUBLISHING_AUTHENTICATOR_SHOTWELL_FACEBOOK_TYPE_WEB_AUTHENTICATION_PANE, PublishingAuthenticatorShotwellFacebookWebAuthenticationPane); -#line 13 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - G_OBJECT_CLASS (publishing_authenticator_shotwell_facebook_web_authentication_pane_parent_class)->finalize (obj); -#line 1617 "FacebookPublishingAuthenticator.c" -} - - -GType -publishing_authenticator_shotwell_facebook_web_authentication_pane_get_type (void) -{ - static volatile gsize publishing_authenticator_shotwell_facebook_web_authentication_pane_type_id__volatile = 0; - if (g_once_init_enter (&publishing_authenticator_shotwell_facebook_web_authentication_pane_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (PublishingAuthenticatorShotwellFacebookWebAuthenticationPaneClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) publishing_authenticator_shotwell_facebook_web_authentication_pane_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PublishingAuthenticatorShotwellFacebookWebAuthenticationPane), 0, (GInstanceInitFunc) publishing_authenticator_shotwell_facebook_web_authentication_pane_instance_init, NULL }; - GType publishing_authenticator_shotwell_facebook_web_authentication_pane_type_id; - publishing_authenticator_shotwell_facebook_web_authentication_pane_type_id = g_type_register_static (SHOTWELL_PLUGINS_COMMON_TYPE_WEB_AUTHENTICATION_PANE, "PublishingAuthenticatorShotwellFacebookWebAuthenticationPane", &g_define_type_info, 0); - g_once_init_leave (&publishing_authenticator_shotwell_facebook_web_authentication_pane_type_id__volatile, publishing_authenticator_shotwell_facebook_web_authentication_pane_type_id); - } - return publishing_authenticator_shotwell_facebook_web_authentication_pane_type_id__volatile; -} - - -static gpointer -_g_object_ref0 (gpointer self) -{ -#line 172 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - return self ? g_object_ref (self) : NULL; -#line 1640 "FacebookPublishingAuthenticator.c" -} - - -static void -_g_free0_ (gpointer var) -{ -#line 173 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - var = (g_free (var), NULL); -#line 1649 "FacebookPublishingAuthenticator.c" -} - - -static void -_g_variant_unref0_ (gpointer var) -{ -#line 173 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - (var == NULL) ? NULL : (var = (g_variant_unref (var), NULL)); -#line 1658 "FacebookPublishingAuthenticator.c" -} - - -PublishingAuthenticatorShotwellFacebookFacebook* -publishing_authenticator_shotwell_facebook_facebook_construct (GType object_type, - SpitPublishingPluginHost* host) -{ - PublishingAuthenticatorShotwellFacebookFacebook * self = NULL; - SpitPublishingPluginHost* _tmp0_; - GHashFunc _tmp1_; - GEqualFunc _tmp2_; - GHashTable* _tmp3_; -#line 171 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - g_return_val_if_fail (SPIT_PUBLISHING_IS_PLUGIN_HOST (host), NULL); -#line 171 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - self = (PublishingAuthenticatorShotwellFacebookFacebook*) g_object_new (object_type, NULL); -#line 172 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp0_ = _g_object_ref0 (host); -#line 172 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _g_object_unref0 (self->priv->host); -#line 172 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - self->priv->host = _tmp0_; -#line 173 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp1_ = g_str_hash; -#line 173 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp2_ = g_str_equal; -#line 173 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp3_ = g_hash_table_new_full (_tmp1_, _tmp2_, _g_free0_, _g_variant_unref0_); -#line 173 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _g_hash_table_unref0 (self->priv->params); -#line 173 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - self->priv->params = _tmp3_; -#line 171 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - return self; -#line 1693 "FacebookPublishingAuthenticator.c" -} - - -PublishingAuthenticatorShotwellFacebookFacebook* -publishing_authenticator_shotwell_facebook_facebook_new (SpitPublishingPluginHost* host) -{ -#line 171 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - return publishing_authenticator_shotwell_facebook_facebook_construct (PUBLISHING_AUTHENTICATOR_SHOTWELL_FACEBOOK_TYPE_FACEBOOK, host); -#line 1702 "FacebookPublishingAuthenticator.c" -} - - -static void -publishing_authenticator_shotwell_facebook_facebook_real_authenticate (SpitPublishingAuthenticator* base) -{ - PublishingAuthenticatorShotwellFacebookFacebook * self; -#line 176 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_AUTHENTICATOR_SHOTWELL_FACEBOOK_TYPE_FACEBOOK, PublishingAuthenticatorShotwellFacebookFacebook); -#line 180 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - if (publishing_authenticator_shotwell_facebook_facebook_is_persistent_session_valid (self)) { -#line 1714 "FacebookPublishingAuthenticator.c" - gchar* access_token = NULL; - gchar* _tmp0_; - GHashTable* _tmp1_; - gchar* _tmp2_; - const gchar* _tmp3_; - GVariant* _tmp4_; -#line 181 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp0_ = publishing_authenticator_shotwell_facebook_facebook_get_persistent_access_token (self); -#line 181 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - access_token = _tmp0_; -#line 182 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp1_ = self->priv->params; -#line 182 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp2_ = g_strdup ("AccessToken"); -#line 182 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp3_ = access_token; -#line 182 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp4_ = g_variant_new_string (_tmp3_); -#line 182 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - g_variant_ref_sink (_tmp4_); -#line 182 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - g_hash_table_insert (_tmp1_, _tmp2_, _tmp4_); -#line 183 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - g_signal_emit_by_name (G_TYPE_CHECK_INSTANCE_CAST (self, SPIT_PUBLISHING_TYPE_AUTHENTICATOR, SpitPublishingAuthenticator), "authenticated"); -#line 184 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _g_free0 (access_token); -#line 184 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - return; -#line 1743 "FacebookPublishingAuthenticator.c" - } -#line 188 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - if (publishing_authenticator_shotwell_facebook_web_authentication_pane_is_cache_dirty ()) { -#line 1747 "FacebookPublishingAuthenticator.c" - SpitPublishingPluginHost* _tmp5_; - SpitPublishingPluginHost* _tmp6_; -#line 189 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp5_ = self->priv->host; -#line 189 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - spit_publishing_plugin_host_set_service_locked (_tmp5_, FALSE); -#line 190 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp6_ = self->priv->host; -#line 190 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - spit_publishing_plugin_host_install_static_message_pane (_tmp6_, PUBLISHING_AUTHENTICATOR_SHOTWELL_FACEBOOK_FACEBOOK_RESTART_ERROR_MESSAGE, SPIT_PUBLISHING_PLUGIN_HOST_BUTTON_MODE_CANCEL); -#line 1758 "FacebookPublishingAuthenticator.c" - } else { -#line 193 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - publishing_authenticator_shotwell_facebook_facebook_do_show_service_welcome_pane (self); -#line 1762 "FacebookPublishingAuthenticator.c" - } -} - - -static gboolean -publishing_authenticator_shotwell_facebook_facebook_real_can_logout (SpitPublishingAuthenticator* base) -{ - PublishingAuthenticatorShotwellFacebookFacebook * self; - gboolean result = FALSE; -#line 197 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_AUTHENTICATOR_SHOTWELL_FACEBOOK_TYPE_FACEBOOK, PublishingAuthenticatorShotwellFacebookFacebook); -#line 198 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - result = TRUE; -#line 198 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - return result; -#line 1778 "FacebookPublishingAuthenticator.c" -} - - -static gpointer -_g_hash_table_ref0 (gpointer self) -{ -#line 202 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - return self ? g_hash_table_ref (self) : NULL; -#line 1787 "FacebookPublishingAuthenticator.c" -} - - -static GHashTable* -publishing_authenticator_shotwell_facebook_facebook_real_get_authentication_parameter (SpitPublishingAuthenticator* base) -{ - PublishingAuthenticatorShotwellFacebookFacebook * self; - GHashTable* result = NULL; - GHashTable* _tmp0_; - GHashTable* _tmp1_; -#line 201 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_AUTHENTICATOR_SHOTWELL_FACEBOOK_TYPE_FACEBOOK, PublishingAuthenticatorShotwellFacebookFacebook); -#line 202 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp0_ = self->priv->params; -#line 202 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp1_ = _g_hash_table_ref0 (_tmp0_); -#line 202 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - result = _tmp1_; -#line 202 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - return result; -#line 1808 "FacebookPublishingAuthenticator.c" -} - - -void -publishing_authenticator_shotwell_facebook_facebook_invalidate_persistent_session (PublishingAuthenticatorShotwellFacebookFacebook* self) -{ -#line 205 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - g_return_if_fail (PUBLISHING_AUTHENTICATOR_SHOTWELL_FACEBOOK_IS_FACEBOOK (self)); -#line 206 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - g_debug ("FacebookPublishingAuthenticator.vala:206: invalidating saved Facebook " \ -"session."); -#line 207 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - publishing_authenticator_shotwell_facebook_facebook_set_persistent_access_token (self, ""); -#line 1821 "FacebookPublishingAuthenticator.c" -} - - -static void -publishing_authenticator_shotwell_facebook_facebook_real_logout (SpitPublishingAuthenticator* base) -{ - PublishingAuthenticatorShotwellFacebookFacebook * self; -#line 210 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_AUTHENTICATOR_SHOTWELL_FACEBOOK_TYPE_FACEBOOK, PublishingAuthenticatorShotwellFacebookFacebook); -#line 211 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - publishing_authenticator_shotwell_facebook_facebook_invalidate_persistent_session (self); -#line 1833 "FacebookPublishingAuthenticator.c" -} - - -static void -publishing_authenticator_shotwell_facebook_facebook_real_refresh (SpitPublishingAuthenticator* base) -{ - PublishingAuthenticatorShotwellFacebookFacebook * self; -#line 214 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_AUTHENTICATOR_SHOTWELL_FACEBOOK_TYPE_FACEBOOK, PublishingAuthenticatorShotwellFacebookFacebook); -#line 1843 "FacebookPublishingAuthenticator.c" -} - - -static gboolean -publishing_authenticator_shotwell_facebook_facebook_is_persistent_session_valid (PublishingAuthenticatorShotwellFacebookFacebook* self) -{ - gboolean result = FALSE; - gchar* token = NULL; - gchar* _tmp0_; - const gchar* _tmp1_; - const gchar* _tmp3_; -#line 219 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - g_return_val_if_fail (PUBLISHING_AUTHENTICATOR_SHOTWELL_FACEBOOK_IS_FACEBOOK (self), FALSE); -#line 220 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp0_ = publishing_authenticator_shotwell_facebook_facebook_get_persistent_access_token (self); -#line 220 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - token = _tmp0_; -#line 222 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp1_ = token; -#line 222 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - if (_tmp1_ != NULL) { -#line 1865 "FacebookPublishingAuthenticator.c" - const gchar* _tmp2_; -#line 223 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp2_ = token; -#line 223 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - g_debug ("FacebookPublishingAuthenticator.vala:223: existing Facebook session fo" \ -"und in configuration database (access_token = %s).", _tmp2_); -#line 1871 "FacebookPublishingAuthenticator.c" - } else { -#line 226 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - g_debug ("FacebookPublishingAuthenticator.vala:226: no existing Facebook session" \ -" available."); -#line 1875 "FacebookPublishingAuthenticator.c" - } -#line 228 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp3_ = token; -#line 228 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - result = _tmp3_ != NULL; -#line 228 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _g_free0 (token); -#line 228 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - return result; -#line 1885 "FacebookPublishingAuthenticator.c" -} - - -static gchar* -publishing_authenticator_shotwell_facebook_facebook_get_persistent_access_token (PublishingAuthenticatorShotwellFacebookFacebook* self) -{ - gchar* result = NULL; - SpitPublishingPluginHost* _tmp0_; - gchar* _tmp1_; -#line 231 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - g_return_val_if_fail (PUBLISHING_AUTHENTICATOR_SHOTWELL_FACEBOOK_IS_FACEBOOK (self), NULL); -#line 232 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp0_ = self->priv->host; -#line 232 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp1_ = spit_host_interface_get_config_string (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, SPIT_TYPE_HOST_INTERFACE, SpitHostInterface), "access_token", NULL); -#line 232 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - result = _tmp1_; -#line 232 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - return result; -#line 1905 "FacebookPublishingAuthenticator.c" -} - - -static void -publishing_authenticator_shotwell_facebook_facebook_set_persistent_access_token (PublishingAuthenticatorShotwellFacebookFacebook* self, - const gchar* access_token) -{ - SpitPublishingPluginHost* _tmp0_; -#line 235 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - g_return_if_fail (PUBLISHING_AUTHENTICATOR_SHOTWELL_FACEBOOK_IS_FACEBOOK (self)); -#line 235 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - g_return_if_fail (access_token != NULL); -#line 236 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp0_ = self->priv->host; -#line 236 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - spit_host_interface_set_config_string (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, SPIT_TYPE_HOST_INTERFACE, SpitHostInterface), "access_token", access_token); -#line 1922 "FacebookPublishingAuthenticator.c" -} - - -static void -_publishing_authenticator_shotwell_facebook_facebook_on_login_clicked_spit_publishing_login_callback (gpointer self) -{ -#line 242 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - publishing_authenticator_shotwell_facebook_facebook_on_login_clicked ((PublishingAuthenticatorShotwellFacebookFacebook*) self); -#line 1931 "FacebookPublishingAuthenticator.c" -} - - -static void -publishing_authenticator_shotwell_facebook_facebook_do_show_service_welcome_pane (PublishingAuthenticatorShotwellFacebookFacebook* self) -{ - SpitPublishingPluginHost* _tmp0_; - SpitPublishingPluginHost* _tmp1_; -#line 239 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - g_return_if_fail (PUBLISHING_AUTHENTICATOR_SHOTWELL_FACEBOOK_IS_FACEBOOK (self)); -#line 240 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - g_debug ("FacebookPublishingAuthenticator.vala:240: ACTION: showing service welc" \ -"ome pane."); -#line 242 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp0_ = self->priv->host; -#line 242 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - spit_publishing_plugin_host_install_welcome_pane (_tmp0_, PUBLISHING_AUTHENTICATOR_SHOTWELL_FACEBOOK_FACEBOOK_SERVICE_WELCOME_MESSAGE, _publishing_authenticator_shotwell_facebook_facebook_on_login_clicked_spit_publishing_login_callback, self); -#line 243 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp1_ = self->priv->host; -#line 243 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - spit_publishing_plugin_host_set_service_locked (_tmp1_, FALSE); -#line 1952 "FacebookPublishingAuthenticator.c" -} - - -static void -publishing_authenticator_shotwell_facebook_facebook_on_login_clicked (PublishingAuthenticatorShotwellFacebookFacebook* self) -{ -#line 246 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - g_return_if_fail (PUBLISHING_AUTHENTICATOR_SHOTWELL_FACEBOOK_IS_FACEBOOK (self)); -#line 247 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - g_debug ("FacebookPublishingAuthenticator.vala:247: EVENT: user clicked 'Login' " \ -"on welcome pane."); -#line 249 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - publishing_authenticator_shotwell_facebook_facebook_do_hosted_web_authentication (self); -#line 1965 "FacebookPublishingAuthenticator.c" -} - - -static void -_publishing_authenticator_shotwell_facebook_facebook_on_web_auth_pane_login_succeeded_publishing_authenticator_shotwell_facebook_web_authentication_pane_login_succeeded (PublishingAuthenticatorShotwellFacebookWebAuthenticationPane* _sender, - const gchar* success_url, - gpointer self) -{ -#line 258 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - publishing_authenticator_shotwell_facebook_facebook_on_web_auth_pane_login_succeeded ((PublishingAuthenticatorShotwellFacebookFacebook*) self, success_url); -#line 1976 "FacebookPublishingAuthenticator.c" -} - - -static void -_publishing_authenticator_shotwell_facebook_facebook_on_web_auth_pane_login_failed_publishing_authenticator_shotwell_facebook_web_authentication_pane_login_failed (PublishingAuthenticatorShotwellFacebookWebAuthenticationPane* _sender, - gpointer self) -{ -#line 259 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - publishing_authenticator_shotwell_facebook_facebook_on_web_auth_pane_login_failed ((PublishingAuthenticatorShotwellFacebookFacebook*) self); -#line 1986 "FacebookPublishingAuthenticator.c" -} - - -static void -publishing_authenticator_shotwell_facebook_facebook_do_hosted_web_authentication (PublishingAuthenticatorShotwellFacebookFacebook* self) -{ - SpitPublishingPluginHost* _tmp0_; - PublishingAuthenticatorShotwellFacebookWebAuthenticationPane* _tmp1_; - PublishingAuthenticatorShotwellFacebookWebAuthenticationPane* _tmp2_; - PublishingAuthenticatorShotwellFacebookWebAuthenticationPane* _tmp3_; - SpitPublishingPluginHost* _tmp4_; - PublishingAuthenticatorShotwellFacebookWebAuthenticationPane* _tmp5_; -#line 252 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - g_return_if_fail (PUBLISHING_AUTHENTICATOR_SHOTWELL_FACEBOOK_IS_FACEBOOK (self)); -#line 253 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - g_debug ("FacebookPublishingAuthenticator.vala:253: ACTION: doing hosted web aut" \ -"hentication."); -#line 255 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp0_ = self->priv->host; -#line 255 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - spit_publishing_plugin_host_set_service_locked (_tmp0_, FALSE); -#line 257 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp1_ = publishing_authenticator_shotwell_facebook_web_authentication_pane_new (); -#line 257 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _g_object_unref0 (self->priv->web_auth_pane); -#line 257 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - self->priv->web_auth_pane = _tmp1_; -#line 258 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp2_ = self->priv->web_auth_pane; -#line 258 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - g_signal_connect_object (_tmp2_, "login-succeeded", (GCallback) _publishing_authenticator_shotwell_facebook_facebook_on_web_auth_pane_login_succeeded_publishing_authenticator_shotwell_facebook_web_authentication_pane_login_succeeded, self, 0); -#line 259 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp3_ = self->priv->web_auth_pane; -#line 259 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - g_signal_connect_object (_tmp3_, "login-failed", (GCallback) _publishing_authenticator_shotwell_facebook_facebook_on_web_auth_pane_login_failed_publishing_authenticator_shotwell_facebook_web_authentication_pane_login_failed, self, 0); -#line 261 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp4_ = self->priv->host; -#line 261 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp5_ = self->priv->web_auth_pane; -#line 261 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - spit_publishing_plugin_host_install_dialog_pane (_tmp4_, G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, SPIT_PUBLISHING_TYPE_DIALOG_PANE, SpitPublishingDialogPane), SPIT_PUBLISHING_PLUGIN_HOST_BUTTON_MODE_CANCEL); -#line 2027 "FacebookPublishingAuthenticator.c" -} - - -static void -publishing_authenticator_shotwell_facebook_facebook_on_web_auth_pane_login_succeeded (PublishingAuthenticatorShotwellFacebookFacebook* self, - const gchar* success_url) -{ -#line 266 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - g_return_if_fail (PUBLISHING_AUTHENTICATOR_SHOTWELL_FACEBOOK_IS_FACEBOOK (self)); -#line 266 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - g_return_if_fail (success_url != NULL); -#line 267 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - g_debug ("FacebookPublishingAuthenticator.vala:267: EVENT: hosted web login succ" \ -"eeded."); -#line 269 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - publishing_authenticator_shotwell_facebook_facebook_do_authenticate_session (self, success_url); -#line 2043 "FacebookPublishingAuthenticator.c" -} - - -static void -publishing_authenticator_shotwell_facebook_facebook_on_web_auth_pane_login_failed (PublishingAuthenticatorShotwellFacebookFacebook* self) -{ -#line 272 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - g_return_if_fail (PUBLISHING_AUTHENTICATOR_SHOTWELL_FACEBOOK_IS_FACEBOOK (self)); -#line 273 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - g_debug ("FacebookPublishingAuthenticator.vala:273: EVENT: hosted web login fail" \ -"ed."); -#line 281 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - publishing_authenticator_shotwell_facebook_facebook_do_show_service_welcome_pane (self); -#line 2056 "FacebookPublishingAuthenticator.c" -} - - -static gint -string_index_of (const gchar* self, - const gchar* needle, - gint start_index) -{ - gint result = 0; - gchar* _result_ = NULL; - gchar* _tmp0_; - gchar* _tmp1_; -#line 1025 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - g_return_val_if_fail (self != NULL, 0); -#line 1025 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - g_return_val_if_fail (needle != NULL, 0); -#line 1026 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp0_ = strstr (((gchar*) self) + start_index, (gchar*) needle); -#line 1026 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _result_ = _tmp0_; -#line 1028 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp1_ = _result_; -#line 1028 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - if (_tmp1_ != NULL) { -#line 2081 "FacebookPublishingAuthenticator.c" - gchar* _tmp2_; -#line 1029 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp2_ = _result_; -#line 1029 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - result = (gint) (_tmp2_ - ((gchar*) self)); -#line 1029 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - return result; -#line 2089 "FacebookPublishingAuthenticator.c" - } else { -#line 1031 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - result = -1; -#line 1031 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - return result; -#line 2095 "FacebookPublishingAuthenticator.c" - } -} - - -static void -publishing_authenticator_shotwell_facebook_facebook_do_authenticate_session (PublishingAuthenticatorShotwellFacebookFacebook* self, - const gchar* good_login_uri) -{ - gchar* decoded_uri = NULL; - gchar* _tmp0_; - gchar* access_token = NULL; - gint index = 0; - const gchar* _tmp1_; - gint _tmp2_; - const gchar* _tmp9_; - gchar* trailing_params = NULL; - const gchar* _tmp13_; - gint _tmp14_; - const gchar* _tmp21_; - const gchar* _tmp25_; - gchar* _tmp26_; - GHashTable* _tmp27_; - gchar* _tmp28_; - const gchar* _tmp29_; - GVariant* _tmp30_; - const gchar* _tmp31_; -#line 284 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - g_return_if_fail (PUBLISHING_AUTHENTICATOR_SHOTWELL_FACEBOOK_IS_FACEBOOK (self)); -#line 284 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - g_return_if_fail (good_login_uri != NULL); -#line 285 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - g_debug ("FacebookPublishingAuthenticator.vala:285: ACTION: preparing to extract" \ -" session information encoded in uri = '%s'", good_login_uri); -#line 289 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp0_ = soup_uri_decode (good_login_uri); -#line 289 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - decoded_uri = _tmp0_; -#line 292 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - access_token = NULL; -#line 293 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp1_ = decoded_uri; -#line 293 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - index = string_index_of (_tmp1_, "#access_token=", 0); -#line 294 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp2_ = index; -#line 294 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - if (_tmp2_ >= 0) { -#line 2142 "FacebookPublishingAuthenticator.c" - const gchar* _tmp3_; - gint _tmp4_; - const gchar* _tmp5_; - gint _tmp6_; - gint _tmp7_; - gchar* _tmp8_; -#line 295 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp3_ = decoded_uri; -#line 295 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp4_ = index; -#line 295 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp5_ = decoded_uri; -#line 295 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp6_ = strlen (_tmp5_); -#line 295 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp7_ = _tmp6_; -#line 295 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp8_ = string_slice (_tmp3_, (glong) _tmp4_, (glong) _tmp7_); -#line 295 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _g_free0 (access_token); -#line 295 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - access_token = _tmp8_; -#line 2165 "FacebookPublishingAuthenticator.c" - } -#line 296 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp9_ = access_token; -#line 296 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - if (_tmp9_ == NULL) { -#line 2171 "FacebookPublishingAuthenticator.c" - SpitPublishingPluginHost* _tmp10_; - GError* _tmp11_; - GError* _tmp12_; -#line 297 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp10_ = self->priv->host; -#line 297 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp11_ = g_error_new_literal (SPIT_PUBLISHING_PUBLISHING_ERROR, SPIT_PUBLISHING_PUBLISHING_ERROR_MALFORMED_RESPONSE, "Server redirect URL contained no access token"); -#line 297 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp12_ = _tmp11_; -#line 297 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - spit_publishing_plugin_host_post_error (_tmp10_, _tmp12_); -#line 297 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _g_error_free0 (_tmp12_); -#line 299 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _g_free0 (access_token); -#line 299 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _g_free0 (decoded_uri); -#line 299 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - return; -#line 2191 "FacebookPublishingAuthenticator.c" - } -#line 303 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - trailing_params = NULL; -#line 304 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp13_ = access_token; -#line 304 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - index = string_index_of_char (_tmp13_, (gunichar) '&', 0); -#line 305 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp14_ = index; -#line 305 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - if (_tmp14_ >= 0) { -#line 2203 "FacebookPublishingAuthenticator.c" - const gchar* _tmp15_; - gint _tmp16_; - const gchar* _tmp17_; - gint _tmp18_; - gint _tmp19_; - gchar* _tmp20_; -#line 306 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp15_ = access_token; -#line 306 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp16_ = index; -#line 306 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp17_ = access_token; -#line 306 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp18_ = strlen (_tmp17_); -#line 306 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp19_ = _tmp18_; -#line 306 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp20_ = string_slice (_tmp15_, (glong) _tmp16_, (glong) _tmp19_); -#line 306 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _g_free0 (trailing_params); -#line 306 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - trailing_params = _tmp20_; -#line 2226 "FacebookPublishingAuthenticator.c" - } -#line 307 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp21_ = trailing_params; -#line 307 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - if (_tmp21_ != NULL) { -#line 2232 "FacebookPublishingAuthenticator.c" - const gchar* _tmp22_; - const gchar* _tmp23_; - gchar* _tmp24_; -#line 308 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp22_ = access_token; -#line 308 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp23_ = trailing_params; -#line 308 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp24_ = string_replace (_tmp22_, _tmp23_, ""); -#line 308 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _g_free0 (access_token); -#line 308 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - access_token = _tmp24_; -#line 2246 "FacebookPublishingAuthenticator.c" - } -#line 311 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp25_ = access_token; -#line 311 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp26_ = string_replace (_tmp25_, "#access_token=", ""); -#line 311 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _g_free0 (access_token); -#line 311 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - access_token = _tmp26_; -#line 312 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp27_ = self->priv->params; -#line 312 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp28_ = g_strdup ("AccessToken"); -#line 312 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp29_ = access_token; -#line 312 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp30_ = g_variant_new_string (_tmp29_); -#line 312 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - g_variant_ref_sink (_tmp30_); -#line 312 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - g_hash_table_insert (_tmp27_, _tmp28_, _tmp30_); -#line 313 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp31_ = access_token; -#line 313 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - publishing_authenticator_shotwell_facebook_facebook_set_persistent_access_token (self, _tmp31_); -#line 315 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - g_signal_emit_by_name (G_TYPE_CHECK_INSTANCE_CAST (self, SPIT_PUBLISHING_TYPE_AUTHENTICATOR, SpitPublishingAuthenticator), "authenticated"); -#line 284 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _g_free0 (trailing_params); -#line 284 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _g_free0 (access_token); -#line 284 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _g_free0 (decoded_uri); -#line 2280 "FacebookPublishingAuthenticator.c" -} - - -static void -publishing_authenticator_shotwell_facebook_facebook_class_init (PublishingAuthenticatorShotwellFacebookFacebookClass * klass) -{ -#line 160 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - publishing_authenticator_shotwell_facebook_facebook_parent_class = g_type_class_peek_parent (klass); -#line 160 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - g_type_class_add_private (klass, sizeof (PublishingAuthenticatorShotwellFacebookFacebookPrivate)); -#line 160 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - G_OBJECT_CLASS (klass)->finalize = publishing_authenticator_shotwell_facebook_facebook_finalize; -#line 2293 "FacebookPublishingAuthenticator.c" -} - - -static void -publishing_authenticator_shotwell_facebook_facebook_spit_publishing_authenticator_interface_init (SpitPublishingAuthenticatorIface * iface) -{ -#line 160 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - publishing_authenticator_shotwell_facebook_facebook_spit_publishing_authenticator_parent_iface = g_type_interface_peek_parent (iface); -#line 160 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - iface->authenticate = (void (*) (SpitPublishingAuthenticator *)) publishing_authenticator_shotwell_facebook_facebook_real_authenticate; -#line 160 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - iface->can_logout = (gboolean (*) (SpitPublishingAuthenticator *)) publishing_authenticator_shotwell_facebook_facebook_real_can_logout; -#line 160 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - iface->get_authentication_parameter = (GHashTable* (*) (SpitPublishingAuthenticator *)) publishing_authenticator_shotwell_facebook_facebook_real_get_authentication_parameter; -#line 160 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - iface->logout = (void (*) (SpitPublishingAuthenticator *)) publishing_authenticator_shotwell_facebook_facebook_real_logout; -#line 160 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - iface->refresh = (void (*) (SpitPublishingAuthenticator *)) publishing_authenticator_shotwell_facebook_facebook_real_refresh; -#line 2312 "FacebookPublishingAuthenticator.c" -} - - -static void -publishing_authenticator_shotwell_facebook_facebook_instance_init (PublishingAuthenticatorShotwellFacebookFacebook * self) -{ -#line 160 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - self->priv = PUBLISHING_AUTHENTICATOR_SHOTWELL_FACEBOOK_FACEBOOK_GET_PRIVATE (self); -#line 162 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - self->priv->web_auth_pane = NULL; -#line 2323 "FacebookPublishingAuthenticator.c" -} - - -static void -publishing_authenticator_shotwell_facebook_facebook_finalize (GObject * obj) -{ - PublishingAuthenticatorShotwellFacebookFacebook * self; -#line 160 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, PUBLISHING_AUTHENTICATOR_SHOTWELL_FACEBOOK_TYPE_FACEBOOK, PublishingAuthenticatorShotwellFacebookFacebook); -#line 161 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _g_object_unref0 (self->priv->host); -#line 162 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _g_object_unref0 (self->priv->web_auth_pane); -#line 163 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _g_hash_table_unref0 (self->priv->params); -#line 160 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - G_OBJECT_CLASS (publishing_authenticator_shotwell_facebook_facebook_parent_class)->finalize (obj); -#line 2341 "FacebookPublishingAuthenticator.c" -} - - -GType -publishing_authenticator_shotwell_facebook_facebook_get_type (void) -{ - static volatile gsize publishing_authenticator_shotwell_facebook_facebook_type_id__volatile = 0; - if (g_once_init_enter (&publishing_authenticator_shotwell_facebook_facebook_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (PublishingAuthenticatorShotwellFacebookFacebookClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) publishing_authenticator_shotwell_facebook_facebook_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PublishingAuthenticatorShotwellFacebookFacebook), 0, (GInstanceInitFunc) publishing_authenticator_shotwell_facebook_facebook_instance_init, NULL }; - static const GInterfaceInfo spit_publishing_authenticator_info = { (GInterfaceInitFunc) publishing_authenticator_shotwell_facebook_facebook_spit_publishing_authenticator_interface_init, (GInterfaceFinalizeFunc) NULL, NULL}; - GType publishing_authenticator_shotwell_facebook_facebook_type_id; - publishing_authenticator_shotwell_facebook_facebook_type_id = g_type_register_static (G_TYPE_OBJECT, "PublishingAuthenticatorShotwellFacebookFacebook", &g_define_type_info, 0); - g_type_add_interface_static (publishing_authenticator_shotwell_facebook_facebook_type_id, SPIT_PUBLISHING_TYPE_AUTHENTICATOR, &spit_publishing_authenticator_info); - g_once_init_leave (&publishing_authenticator_shotwell_facebook_facebook_type_id__volatile, publishing_authenticator_shotwell_facebook_facebook_type_id); - } - return publishing_authenticator_shotwell_facebook_facebook_type_id__volatile; -} - - -static void -_vala_array_destroy (gpointer array, - gint array_length, - GDestroyNotify destroy_func) -{ - if ((array != NULL) && (destroy_func != NULL)) { - int i; - for (i = 0; i < array_length; i = i + 1) { - if (((gpointer*) array)[i] != NULL) { - destroy_func (((gpointer*) array)[i]); - } - } - } -} - - -static void -_vala_array_free (gpointer array, - gint array_length, - GDestroyNotify destroy_func) -{ - _vala_array_destroy (array, array_length, destroy_func); - g_free (array); -} - - -static gint -_vala_array_length (gpointer array) -{ - int length; - length = 0; - if (array) { - while (((gpointer*) array)[length]) { - length++; - } - } - return length; -} - - - diff --git a/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.c b/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.c deleted file mode 100644 index bdee2ff..0000000 --- a/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.c +++ /dev/null @@ -1,1674 +0,0 @@ -/* FlickrPublishingAuthenticator.c generated by valac 0.40.4, the Vala compiler - * generated from FlickrPublishingAuthenticator.vala, do not modify */ - -/* Copyright 2016 Software Freedom Conservancy Inc. - * - * This software is licensed under the GNU Lesser General Public License - * (version 2.1 or later). See the COPYING file in this distribution. - */ - - -#include -#include -#include -#include -#include -#include "shotwell-plugin-common.h" -#include -#include -#include -#include "shotwell-plugin-dev-1.0.h" - - -#define PUBLISHING_AUTHENTICATOR_SHOTWELL_FLICKR_TYPE_AUTHENTICATION_REQUEST_TRANSACTION (publishing_authenticator_shotwell_flickr_authentication_request_transaction_get_type ()) -#define PUBLISHING_AUTHENTICATOR_SHOTWELL_FLICKR_AUTHENTICATION_REQUEST_TRANSACTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_AUTHENTICATOR_SHOTWELL_FLICKR_TYPE_AUTHENTICATION_REQUEST_TRANSACTION, PublishingAuthenticatorShotwellFlickrAuthenticationRequestTransaction)) -#define PUBLISHING_AUTHENTICATOR_SHOTWELL_FLICKR_AUTHENTICATION_REQUEST_TRANSACTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_AUTHENTICATOR_SHOTWELL_FLICKR_TYPE_AUTHENTICATION_REQUEST_TRANSACTION, PublishingAuthenticatorShotwellFlickrAuthenticationRequestTransactionClass)) -#define PUBLISHING_AUTHENTICATOR_SHOTWELL_FLICKR_IS_AUTHENTICATION_REQUEST_TRANSACTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_AUTHENTICATOR_SHOTWELL_FLICKR_TYPE_AUTHENTICATION_REQUEST_TRANSACTION)) -#define PUBLISHING_AUTHENTICATOR_SHOTWELL_FLICKR_IS_AUTHENTICATION_REQUEST_TRANSACTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_AUTHENTICATOR_SHOTWELL_FLICKR_TYPE_AUTHENTICATION_REQUEST_TRANSACTION)) -#define PUBLISHING_AUTHENTICATOR_SHOTWELL_FLICKR_AUTHENTICATION_REQUEST_TRANSACTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_AUTHENTICATOR_SHOTWELL_FLICKR_TYPE_AUTHENTICATION_REQUEST_TRANSACTION, PublishingAuthenticatorShotwellFlickrAuthenticationRequestTransactionClass)) - -typedef struct _PublishingAuthenticatorShotwellFlickrAuthenticationRequestTransaction PublishingAuthenticatorShotwellFlickrAuthenticationRequestTransaction; -typedef struct _PublishingAuthenticatorShotwellFlickrAuthenticationRequestTransactionClass PublishingAuthenticatorShotwellFlickrAuthenticationRequestTransactionClass; -typedef struct _PublishingAuthenticatorShotwellFlickrAuthenticationRequestTransactionPrivate PublishingAuthenticatorShotwellFlickrAuthenticationRequestTransactionPrivate; - -#define PUBLISHING_AUTHENTICATOR_SHOTWELL_FLICKR_TYPE_ACCESS_TOKEN_FETCH_TRANSACTION (publishing_authenticator_shotwell_flickr_access_token_fetch_transaction_get_type ()) -#define PUBLISHING_AUTHENTICATOR_SHOTWELL_FLICKR_ACCESS_TOKEN_FETCH_TRANSACTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_AUTHENTICATOR_SHOTWELL_FLICKR_TYPE_ACCESS_TOKEN_FETCH_TRANSACTION, PublishingAuthenticatorShotwellFlickrAccessTokenFetchTransaction)) -#define PUBLISHING_AUTHENTICATOR_SHOTWELL_FLICKR_ACCESS_TOKEN_FETCH_TRANSACTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_AUTHENTICATOR_SHOTWELL_FLICKR_TYPE_ACCESS_TOKEN_FETCH_TRANSACTION, PublishingAuthenticatorShotwellFlickrAccessTokenFetchTransactionClass)) -#define PUBLISHING_AUTHENTICATOR_SHOTWELL_FLICKR_IS_ACCESS_TOKEN_FETCH_TRANSACTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_AUTHENTICATOR_SHOTWELL_FLICKR_TYPE_ACCESS_TOKEN_FETCH_TRANSACTION)) -#define PUBLISHING_AUTHENTICATOR_SHOTWELL_FLICKR_IS_ACCESS_TOKEN_FETCH_TRANSACTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_AUTHENTICATOR_SHOTWELL_FLICKR_TYPE_ACCESS_TOKEN_FETCH_TRANSACTION)) -#define PUBLISHING_AUTHENTICATOR_SHOTWELL_FLICKR_ACCESS_TOKEN_FETCH_TRANSACTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_AUTHENTICATOR_SHOTWELL_FLICKR_TYPE_ACCESS_TOKEN_FETCH_TRANSACTION, PublishingAuthenticatorShotwellFlickrAccessTokenFetchTransactionClass)) - -typedef struct _PublishingAuthenticatorShotwellFlickrAccessTokenFetchTransaction PublishingAuthenticatorShotwellFlickrAccessTokenFetchTransaction; -typedef struct _PublishingAuthenticatorShotwellFlickrAccessTokenFetchTransactionClass PublishingAuthenticatorShotwellFlickrAccessTokenFetchTransactionClass; -typedef struct _PublishingAuthenticatorShotwellFlickrAccessTokenFetchTransactionPrivate PublishingAuthenticatorShotwellFlickrAccessTokenFetchTransactionPrivate; -#define _g_free0(var) (var = (g_free (var), NULL)) - -#define PUBLISHING_AUTHENTICATOR_SHOTWELL_FLICKR_TYPE_WEB_AUTHENTICATION_PANE (publishing_authenticator_shotwell_flickr_web_authentication_pane_get_type ()) -#define PUBLISHING_AUTHENTICATOR_SHOTWELL_FLICKR_WEB_AUTHENTICATION_PANE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_AUTHENTICATOR_SHOTWELL_FLICKR_TYPE_WEB_AUTHENTICATION_PANE, PublishingAuthenticatorShotwellFlickrWebAuthenticationPane)) -#define PUBLISHING_AUTHENTICATOR_SHOTWELL_FLICKR_WEB_AUTHENTICATION_PANE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_AUTHENTICATOR_SHOTWELL_FLICKR_TYPE_WEB_AUTHENTICATION_PANE, PublishingAuthenticatorShotwellFlickrWebAuthenticationPaneClass)) -#define PUBLISHING_AUTHENTICATOR_SHOTWELL_FLICKR_IS_WEB_AUTHENTICATION_PANE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_AUTHENTICATOR_SHOTWELL_FLICKR_TYPE_WEB_AUTHENTICATION_PANE)) -#define PUBLISHING_AUTHENTICATOR_SHOTWELL_FLICKR_IS_WEB_AUTHENTICATION_PANE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_AUTHENTICATOR_SHOTWELL_FLICKR_TYPE_WEB_AUTHENTICATION_PANE)) -#define PUBLISHING_AUTHENTICATOR_SHOTWELL_FLICKR_WEB_AUTHENTICATION_PANE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_AUTHENTICATOR_SHOTWELL_FLICKR_TYPE_WEB_AUTHENTICATION_PANE, PublishingAuthenticatorShotwellFlickrWebAuthenticationPaneClass)) - -typedef struct _PublishingAuthenticatorShotwellFlickrWebAuthenticationPane PublishingAuthenticatorShotwellFlickrWebAuthenticationPane; -typedef struct _PublishingAuthenticatorShotwellFlickrWebAuthenticationPaneClass PublishingAuthenticatorShotwellFlickrWebAuthenticationPaneClass; -typedef struct _PublishingAuthenticatorShotwellFlickrWebAuthenticationPanePrivate PublishingAuthenticatorShotwellFlickrWebAuthenticationPanePrivate; -enum { - PUBLISHING_AUTHENTICATOR_SHOTWELL_FLICKR_WEB_AUTHENTICATION_PANE_0_PROPERTY, - PUBLISHING_AUTHENTICATOR_SHOTWELL_FLICKR_WEB_AUTHENTICATION_PANE_NUM_PROPERTIES -}; -static GParamSpec* publishing_authenticator_shotwell_flickr_web_authentication_pane_properties[PUBLISHING_AUTHENTICATOR_SHOTWELL_FLICKR_WEB_AUTHENTICATION_PANE_NUM_PROPERTIES]; -#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL))) -#define __vala_SoupURI_free0(var) ((var == NULL) ? NULL : (var = (_vala_SoupURI_free (var), NULL))) -#define _g_hash_table_unref0(var) ((var == NULL) ? NULL : (var = (g_hash_table_unref (var), NULL))) -enum { - PUBLISHING_AUTHENTICATOR_SHOTWELL_FLICKR_WEB_AUTHENTICATION_PANE_AUTHORIZED_SIGNAL, - PUBLISHING_AUTHENTICATOR_SHOTWELL_FLICKR_WEB_AUTHENTICATION_PANE_ERROR_SIGNAL, - PUBLISHING_AUTHENTICATOR_SHOTWELL_FLICKR_WEB_AUTHENTICATION_PANE_NUM_SIGNALS -}; -static guint publishing_authenticator_shotwell_flickr_web_authentication_pane_signals[PUBLISHING_AUTHENTICATOR_SHOTWELL_FLICKR_WEB_AUTHENTICATION_PANE_NUM_SIGNALS] = {0}; - -#define PUBLISHING_AUTHENTICATOR_SHOTWELL_OAUTH1_TYPE_AUTHENTICATOR (publishing_authenticator_shotwell_oauth1_authenticator_get_type ()) -#define PUBLISHING_AUTHENTICATOR_SHOTWELL_OAUTH1_AUTHENTICATOR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_AUTHENTICATOR_SHOTWELL_OAUTH1_TYPE_AUTHENTICATOR, PublishingAuthenticatorShotwellOAuth1Authenticator)) -#define PUBLISHING_AUTHENTICATOR_SHOTWELL_OAUTH1_AUTHENTICATOR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_AUTHENTICATOR_SHOTWELL_OAUTH1_TYPE_AUTHENTICATOR, PublishingAuthenticatorShotwellOAuth1AuthenticatorClass)) -#define PUBLISHING_AUTHENTICATOR_SHOTWELL_OAUTH1_IS_AUTHENTICATOR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_AUTHENTICATOR_SHOTWELL_OAUTH1_TYPE_AUTHENTICATOR)) -#define PUBLISHING_AUTHENTICATOR_SHOTWELL_OAUTH1_IS_AUTHENTICATOR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_AUTHENTICATOR_SHOTWELL_OAUTH1_TYPE_AUTHENTICATOR)) -#define PUBLISHING_AUTHENTICATOR_SHOTWELL_OAUTH1_AUTHENTICATOR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_AUTHENTICATOR_SHOTWELL_OAUTH1_TYPE_AUTHENTICATOR, PublishingAuthenticatorShotwellOAuth1AuthenticatorClass)) - -typedef struct _PublishingAuthenticatorShotwellOAuth1Authenticator PublishingAuthenticatorShotwellOAuth1Authenticator; -typedef struct _PublishingAuthenticatorShotwellOAuth1AuthenticatorClass PublishingAuthenticatorShotwellOAuth1AuthenticatorClass; -typedef struct _PublishingAuthenticatorShotwellOAuth1AuthenticatorPrivate PublishingAuthenticatorShotwellOAuth1AuthenticatorPrivate; - -#define PUBLISHING_AUTHENTICATOR_SHOTWELL_FLICKR_TYPE_FLICKR (publishing_authenticator_shotwell_flickr_flickr_get_type ()) -#define PUBLISHING_AUTHENTICATOR_SHOTWELL_FLICKR_FLICKR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_AUTHENTICATOR_SHOTWELL_FLICKR_TYPE_FLICKR, PublishingAuthenticatorShotwellFlickrFlickr)) -#define PUBLISHING_AUTHENTICATOR_SHOTWELL_FLICKR_FLICKR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_AUTHENTICATOR_SHOTWELL_FLICKR_TYPE_FLICKR, PublishingAuthenticatorShotwellFlickrFlickrClass)) -#define PUBLISHING_AUTHENTICATOR_SHOTWELL_FLICKR_IS_FLICKR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_AUTHENTICATOR_SHOTWELL_FLICKR_TYPE_FLICKR)) -#define PUBLISHING_AUTHENTICATOR_SHOTWELL_FLICKR_IS_FLICKR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_AUTHENTICATOR_SHOTWELL_FLICKR_TYPE_FLICKR)) -#define PUBLISHING_AUTHENTICATOR_SHOTWELL_FLICKR_FLICKR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_AUTHENTICATOR_SHOTWELL_FLICKR_TYPE_FLICKR, PublishingAuthenticatorShotwellFlickrFlickrClass)) - -typedef struct _PublishingAuthenticatorShotwellFlickrFlickr PublishingAuthenticatorShotwellFlickrFlickr; -typedef struct _PublishingAuthenticatorShotwellFlickrFlickrClass PublishingAuthenticatorShotwellFlickrFlickrClass; -typedef struct _PublishingAuthenticatorShotwellFlickrFlickrPrivate PublishingAuthenticatorShotwellFlickrFlickrPrivate; -enum { - PUBLISHING_AUTHENTICATOR_SHOTWELL_FLICKR_FLICKR_0_PROPERTY, - PUBLISHING_AUTHENTICATOR_SHOTWELL_FLICKR_FLICKR_NUM_PROPERTIES -}; -static GParamSpec* publishing_authenticator_shotwell_flickr_flickr_properties[PUBLISHING_AUTHENTICATOR_SHOTWELL_FLICKR_FLICKR_NUM_PROPERTIES]; -#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))) - -struct _PublishingAuthenticatorShotwellFlickrAuthenticationRequestTransaction { - PublishingRESTSupportOAuth1Transaction parent_instance; - PublishingAuthenticatorShotwellFlickrAuthenticationRequestTransactionPrivate * priv; -}; - -struct _PublishingAuthenticatorShotwellFlickrAuthenticationRequestTransactionClass { - PublishingRESTSupportOAuth1TransactionClass parent_class; -}; - -struct _PublishingAuthenticatorShotwellFlickrAccessTokenFetchTransaction { - PublishingRESTSupportOAuth1Transaction parent_instance; - PublishingAuthenticatorShotwellFlickrAccessTokenFetchTransactionPrivate * priv; -}; - -struct _PublishingAuthenticatorShotwellFlickrAccessTokenFetchTransactionClass { - PublishingRESTSupportOAuth1TransactionClass parent_class; -}; - -struct _PublishingAuthenticatorShotwellFlickrWebAuthenticationPane { - ShotwellPluginsCommonWebAuthenticationPane parent_instance; - PublishingAuthenticatorShotwellFlickrWebAuthenticationPanePrivate * priv; -}; - -struct _PublishingAuthenticatorShotwellFlickrWebAuthenticationPaneClass { - ShotwellPluginsCommonWebAuthenticationPaneClass parent_class; -}; - -struct _PublishingAuthenticatorShotwellFlickrWebAuthenticationPanePrivate { - gchar* auth_code; -}; - -struct _PublishingAuthenticatorShotwellOAuth1Authenticator { - GObject parent_instance; - PublishingAuthenticatorShotwellOAuth1AuthenticatorPrivate * priv; - GHashTable* params; - PublishingRESTSupportOAuth1Session* session; - SpitPublishingPluginHost* host; -}; - -struct _PublishingAuthenticatorShotwellOAuth1AuthenticatorClass { - GObjectClass parent_class; - void (*authenticate) (PublishingAuthenticatorShotwellOAuth1Authenticator* self); - gboolean (*can_logout) (PublishingAuthenticatorShotwellOAuth1Authenticator* self); - void (*logout) (PublishingAuthenticatorShotwellOAuth1Authenticator* self); - void (*refresh) (PublishingAuthenticatorShotwellOAuth1Authenticator* self); -}; - -struct _PublishingAuthenticatorShotwellFlickrFlickr { - PublishingAuthenticatorShotwellOAuth1Authenticator parent_instance; - PublishingAuthenticatorShotwellFlickrFlickrPrivate * priv; -}; - -struct _PublishingAuthenticatorShotwellFlickrFlickrClass { - PublishingAuthenticatorShotwellOAuth1AuthenticatorClass parent_class; -}; - - -static gpointer publishing_authenticator_shotwell_flickr_authentication_request_transaction_parent_class = NULL; -static gpointer publishing_authenticator_shotwell_flickr_access_token_fetch_transaction_parent_class = NULL; -static gpointer publishing_authenticator_shotwell_flickr_web_authentication_pane_parent_class = NULL; -static gpointer publishing_authenticator_shotwell_flickr_flickr_parent_class = NULL; - -#define PUBLISHING_AUTHENTICATOR_SHOTWELL_FLICKR_ENDPOINT_URL "https://api.flickr.com/services/rest" -#define PUBLISHING_AUTHENTICATOR_SHOTWELL_FLICKR_EXPIRED_SESSION_ERROR_CODE "98" -#define PUBLISHING_AUTHENTICATOR_SHOTWELL_FLICKR_API_KEY "60dd96d4a2ad04888b09c9e18d82c26f" -#define PUBLISHING_AUTHENTICATOR_SHOTWELL_FLICKR_API_SECRET "d0960565e03547c1" -#define PUBLISHING_AUTHENTICATOR_SHOTWELL_FLICKR_SERVICE_WELCOME_MESSAGE _ ("You are not currently logged into Flickr.\n" \ -"\n" \ -"Click Log in to log into Flickr in your Web browser. You will have to " \ -"authorize Shotwell Connect to link to your Flickr account.") -GType publishing_authenticator_shotwell_flickr_authentication_request_transaction_get_type (void) G_GNUC_CONST; -PublishingAuthenticatorShotwellFlickrAuthenticationRequestTransaction* publishing_authenticator_shotwell_flickr_authentication_request_transaction_new (PublishingRESTSupportOAuth1Session* session); -PublishingAuthenticatorShotwellFlickrAuthenticationRequestTransaction* publishing_authenticator_shotwell_flickr_authentication_request_transaction_construct (GType object_type, - PublishingRESTSupportOAuth1Session* session); -GType publishing_authenticator_shotwell_flickr_access_token_fetch_transaction_get_type (void) G_GNUC_CONST; -PublishingAuthenticatorShotwellFlickrAccessTokenFetchTransaction* publishing_authenticator_shotwell_flickr_access_token_fetch_transaction_new (PublishingRESTSupportOAuth1Session* session, - const gchar* user_verifier); -PublishingAuthenticatorShotwellFlickrAccessTokenFetchTransaction* publishing_authenticator_shotwell_flickr_access_token_fetch_transaction_construct (GType object_type, - PublishingRESTSupportOAuth1Session* session, - const gchar* user_verifier); -GType publishing_authenticator_shotwell_flickr_web_authentication_pane_get_type (void) G_GNUC_CONST; -#define PUBLISHING_AUTHENTICATOR_SHOTWELL_FLICKR_WEB_AUTHENTICATION_PANE_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), PUBLISHING_AUTHENTICATOR_SHOTWELL_FLICKR_TYPE_WEB_AUTHENTICATION_PANE, PublishingAuthenticatorShotwellFlickrWebAuthenticationPanePrivate)) -#define PUBLISHING_AUTHENTICATOR_SHOTWELL_FLICKR_WEB_AUTHENTICATION_PANE_LOGIN_URI "https://www.flickr.com/services/oauth/authorize?oauth_token=%s&perms=w" \ -"rite" -PublishingAuthenticatorShotwellFlickrWebAuthenticationPane* publishing_authenticator_shotwell_flickr_web_authentication_pane_new (const gchar* token); -PublishingAuthenticatorShotwellFlickrWebAuthenticationPane* publishing_authenticator_shotwell_flickr_web_authentication_pane_construct (GType object_type, - const gchar* token); -static void publishing_authenticator_shotwell_flickr_web_authentication_pane_real_constructed (GObject* base); -static void publishing_authenticator_shotwell_flickr_web_authentication_pane_on_shotwell_auth_request_cb (PublishingAuthenticatorShotwellFlickrWebAuthenticationPane* self, - WebKitURISchemeRequest* request); -static void _publishing_authenticator_shotwell_flickr_web_authentication_pane_on_shotwell_auth_request_cb_web_kit_uri_scheme_request_callback (WebKitURISchemeRequest* request, - gpointer self); -static void publishing_authenticator_shotwell_flickr_web_authentication_pane_real_on_page_load (ShotwellPluginsCommonWebAuthenticationPane* base); -static void _vala_SoupURI_free (SoupURI* self); -static guint8* _vala_array_dup1 (guint8* self, - int length); -static void publishing_authenticator_shotwell_flickr_web_authentication_pane_finalize (GObject * obj); -GType publishing_authenticator_shotwell_oauth1_authenticator_get_type (void) G_GNUC_CONST; -GType publishing_authenticator_shotwell_flickr_flickr_get_type (void) G_GNUC_CONST; -PublishingAuthenticatorShotwellFlickrFlickr* publishing_authenticator_shotwell_flickr_flickr_new (SpitPublishingPluginHost* host); -PublishingAuthenticatorShotwellFlickrFlickr* publishing_authenticator_shotwell_flickr_flickr_construct (GType object_type, - SpitPublishingPluginHost* host); -PublishingAuthenticatorShotwellOAuth1Authenticator* publishing_authenticator_shotwell_oauth1_authenticator_construct (GType object_type, - const gchar* api_key, - const gchar* api_secret, - SpitPublishingPluginHost* host); -static void publishing_authenticator_shotwell_flickr_flickr_real_authenticate (PublishingAuthenticatorShotwellOAuth1Authenticator* base); -gboolean publishing_authenticator_shotwell_oauth1_authenticator_is_persistent_session_valid (PublishingAuthenticatorShotwellOAuth1Authenticator* self); -gchar* publishing_authenticator_shotwell_oauth1_authenticator_get_persistent_access_phase_token (PublishingAuthenticatorShotwellOAuth1Authenticator* self); -gchar* publishing_authenticator_shotwell_oauth1_authenticator_get_persistent_access_phase_token_secret (PublishingAuthenticatorShotwellOAuth1Authenticator* self); -gchar* publishing_authenticator_shotwell_oauth1_authenticator_get_persistent_access_phase_username (PublishingAuthenticatorShotwellOAuth1Authenticator* self); -static void publishing_authenticator_shotwell_flickr_flickr_do_show_login_welcome_pane (PublishingAuthenticatorShotwellFlickrFlickr* self); -static gboolean publishing_authenticator_shotwell_flickr_flickr_real_can_logout (PublishingAuthenticatorShotwellOAuth1Authenticator* base); -static void publishing_authenticator_shotwell_flickr_flickr_real_logout (PublishingAuthenticatorShotwellOAuth1Authenticator* base); -void publishing_authenticator_shotwell_oauth1_authenticator_invalidate_persistent_session (PublishingAuthenticatorShotwellOAuth1Authenticator* self); -static void publishing_authenticator_shotwell_flickr_flickr_real_refresh (PublishingAuthenticatorShotwellOAuth1Authenticator* base); -static void publishing_authenticator_shotwell_flickr_flickr_on_welcome_pane_login_clicked (PublishingAuthenticatorShotwellFlickrFlickr* self); -static void _publishing_authenticator_shotwell_flickr_flickr_on_welcome_pane_login_clicked_spit_publishing_login_callback (gpointer self); -static void publishing_authenticator_shotwell_flickr_flickr_do_run_authentication_request_transaction (PublishingAuthenticatorShotwellFlickrFlickr* self); -static void publishing_authenticator_shotwell_flickr_flickr_on_auth_request_txn_completed (PublishingAuthenticatorShotwellFlickrFlickr* self, - PublishingRESTSupportTransaction* txn); -static void _publishing_authenticator_shotwell_flickr_flickr_on_auth_request_txn_completed_publishing_rest_support_transaction_completed (PublishingRESTSupportTransaction* _sender, - gpointer self); -static void publishing_authenticator_shotwell_flickr_flickr_on_auth_request_txn_error (PublishingAuthenticatorShotwellFlickrFlickr* self, - PublishingRESTSupportTransaction* txn, - GError* err); -static void _publishing_authenticator_shotwell_flickr_flickr_on_auth_request_txn_error_publishing_rest_support_transaction_network_error (PublishingRESTSupportTransaction* _sender, - GError* err, - gpointer self); -static void publishing_authenticator_shotwell_flickr_flickr_do_parse_token_info_from_auth_request (PublishingAuthenticatorShotwellFlickrFlickr* self, - const gchar* response); -static void publishing_authenticator_shotwell_flickr_flickr_on_authentication_token_available (PublishingAuthenticatorShotwellFlickrFlickr* self, - const gchar* token, - const gchar* token_secret); -static void publishing_authenticator_shotwell_flickr_flickr_do_web_authentication (PublishingAuthenticatorShotwellFlickrFlickr* self, - const gchar* token); -static void publishing_authenticator_shotwell_flickr_flickr_do_verify_pin (PublishingAuthenticatorShotwellFlickrFlickr* self, - const gchar* pin); -static void _publishing_authenticator_shotwell_flickr_flickr_do_verify_pin_publishing_authenticator_shotwell_flickr_web_authentication_pane_authorized (PublishingAuthenticatorShotwellFlickrWebAuthenticationPane* _sender, - const gchar* auth_code, - gpointer self); -static void publishing_authenticator_shotwell_flickr_flickr_on_web_login_error (PublishingAuthenticatorShotwellFlickrFlickr* self); -static void _publishing_authenticator_shotwell_flickr_flickr_on_web_login_error_publishing_authenticator_shotwell_flickr_web_authentication_pane_error (PublishingAuthenticatorShotwellFlickrWebAuthenticationPane* _sender, - gpointer self); -static void publishing_authenticator_shotwell_flickr_flickr_on_access_token_fetch_txn_completed (PublishingAuthenticatorShotwellFlickrFlickr* self, - PublishingRESTSupportTransaction* txn); -static void _publishing_authenticator_shotwell_flickr_flickr_on_access_token_fetch_txn_completed_publishing_rest_support_transaction_completed (PublishingRESTSupportTransaction* _sender, - gpointer self); -static void publishing_authenticator_shotwell_flickr_flickr_on_access_token_fetch_error (PublishingAuthenticatorShotwellFlickrFlickr* self, - PublishingRESTSupportTransaction* txn, - GError* err); -static void _publishing_authenticator_shotwell_flickr_flickr_on_access_token_fetch_error_publishing_rest_support_transaction_network_error (PublishingRESTSupportTransaction* _sender, - GError* err, - gpointer self); -static void publishing_authenticator_shotwell_flickr_flickr_do_extract_access_phase_credentials_from_reponse (PublishingAuthenticatorShotwellFlickrFlickr* self, - const gchar* response); - - -PublishingAuthenticatorShotwellFlickrAuthenticationRequestTransaction* -publishing_authenticator_shotwell_flickr_authentication_request_transaction_construct (GType object_type, - PublishingRESTSupportOAuth1Session* session) -{ - PublishingAuthenticatorShotwellFlickrAuthenticationRequestTransaction* self = NULL; -#line 20 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - g_return_val_if_fail (PUBLISHING_REST_SUPPORT_OAUTH1_IS_SESSION (session), NULL); -#line 21 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - self = (PublishingAuthenticatorShotwellFlickrAuthenticationRequestTransaction*) publishing_rest_support_oauth1_transaction_construct_with_uri (object_type, session, "https://www.flickr.com/services/oauth/request_token", PUBLISHING_REST_SUPPORT_HTTP_METHOD_GET); -#line 23 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - publishing_rest_support_transaction_add_argument (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "oauth_callback", "shotwell-auth%3A%2F%2Flocal-callback"); -#line 20 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - return self; -#line 268 "FlickrPublishingAuthenticator.c" -} - - -PublishingAuthenticatorShotwellFlickrAuthenticationRequestTransaction* -publishing_authenticator_shotwell_flickr_authentication_request_transaction_new (PublishingRESTSupportOAuth1Session* session) -{ -#line 20 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - return publishing_authenticator_shotwell_flickr_authentication_request_transaction_construct (PUBLISHING_AUTHENTICATOR_SHOTWELL_FLICKR_TYPE_AUTHENTICATION_REQUEST_TRANSACTION, session); -#line 277 "FlickrPublishingAuthenticator.c" -} - - -static void -publishing_authenticator_shotwell_flickr_authentication_request_transaction_class_init (PublishingAuthenticatorShotwellFlickrAuthenticationRequestTransactionClass * klass) -{ -#line 19 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - publishing_authenticator_shotwell_flickr_authentication_request_transaction_parent_class = g_type_class_peek_parent (klass); -#line 286 "FlickrPublishingAuthenticator.c" -} - - -static void -publishing_authenticator_shotwell_flickr_authentication_request_transaction_instance_init (PublishingAuthenticatorShotwellFlickrAuthenticationRequestTransaction * self) -{ -} - - -GType -publishing_authenticator_shotwell_flickr_authentication_request_transaction_get_type (void) -{ - static volatile gsize publishing_authenticator_shotwell_flickr_authentication_request_transaction_type_id__volatile = 0; - if (g_once_init_enter (&publishing_authenticator_shotwell_flickr_authentication_request_transaction_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (PublishingAuthenticatorShotwellFlickrAuthenticationRequestTransactionClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) publishing_authenticator_shotwell_flickr_authentication_request_transaction_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PublishingAuthenticatorShotwellFlickrAuthenticationRequestTransaction), 0, (GInstanceInitFunc) publishing_authenticator_shotwell_flickr_authentication_request_transaction_instance_init, NULL }; - GType publishing_authenticator_shotwell_flickr_authentication_request_transaction_type_id; - publishing_authenticator_shotwell_flickr_authentication_request_transaction_type_id = g_type_register_static (PUBLISHING_REST_SUPPORT_OAUTH1_TYPE_TRANSACTION, "PublishingAuthenticatorShotwellFlickrAuthenticationRequestTransaction", &g_define_type_info, 0); - g_once_init_leave (&publishing_authenticator_shotwell_flickr_authentication_request_transaction_type_id__volatile, publishing_authenticator_shotwell_flickr_authentication_request_transaction_type_id); - } - return publishing_authenticator_shotwell_flickr_authentication_request_transaction_type_id__volatile; -} - - -PublishingAuthenticatorShotwellFlickrAccessTokenFetchTransaction* -publishing_authenticator_shotwell_flickr_access_token_fetch_transaction_construct (GType object_type, - PublishingRESTSupportOAuth1Session* session, - const gchar* user_verifier) -{ - PublishingAuthenticatorShotwellFlickrAccessTokenFetchTransaction* self = NULL; - gchar* _tmp0_; - gchar* _tmp1_; -#line 28 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - g_return_val_if_fail (PUBLISHING_REST_SUPPORT_OAUTH1_IS_SESSION (session), NULL); -#line 28 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - g_return_val_if_fail (user_verifier != NULL, NULL); -#line 29 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - self = (PublishingAuthenticatorShotwellFlickrAccessTokenFetchTransaction*) publishing_rest_support_oauth1_transaction_construct_with_uri (object_type, session, "https://www.flickr.com/services/oauth/access_token", PUBLISHING_REST_SUPPORT_HTTP_METHOD_GET); -#line 31 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - publishing_rest_support_transaction_add_argument (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "oauth_verifier", user_verifier); -#line 32 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - _tmp0_ = publishing_rest_support_oauth1_session_get_request_phase_token (session); -#line 32 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - _tmp1_ = _tmp0_; -#line 32 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - publishing_rest_support_transaction_add_argument (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "oauth_token", _tmp1_); -#line 32 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - _g_free0 (_tmp1_); -#line 33 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - publishing_rest_support_transaction_add_argument (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "oauth_callback", "shotwell-auth%3A%2F%2Flocal-callback"); -#line 28 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - return self; -#line 338 "FlickrPublishingAuthenticator.c" -} - - -PublishingAuthenticatorShotwellFlickrAccessTokenFetchTransaction* -publishing_authenticator_shotwell_flickr_access_token_fetch_transaction_new (PublishingRESTSupportOAuth1Session* session, - const gchar* user_verifier) -{ -#line 28 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - return publishing_authenticator_shotwell_flickr_access_token_fetch_transaction_construct (PUBLISHING_AUTHENTICATOR_SHOTWELL_FLICKR_TYPE_ACCESS_TOKEN_FETCH_TRANSACTION, session, user_verifier); -#line 348 "FlickrPublishingAuthenticator.c" -} - - -static void -publishing_authenticator_shotwell_flickr_access_token_fetch_transaction_class_init (PublishingAuthenticatorShotwellFlickrAccessTokenFetchTransactionClass * klass) -{ -#line 27 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - publishing_authenticator_shotwell_flickr_access_token_fetch_transaction_parent_class = g_type_class_peek_parent (klass); -#line 357 "FlickrPublishingAuthenticator.c" -} - - -static void -publishing_authenticator_shotwell_flickr_access_token_fetch_transaction_instance_init (PublishingAuthenticatorShotwellFlickrAccessTokenFetchTransaction * self) -{ -} - - -GType -publishing_authenticator_shotwell_flickr_access_token_fetch_transaction_get_type (void) -{ - static volatile gsize publishing_authenticator_shotwell_flickr_access_token_fetch_transaction_type_id__volatile = 0; - if (g_once_init_enter (&publishing_authenticator_shotwell_flickr_access_token_fetch_transaction_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (PublishingAuthenticatorShotwellFlickrAccessTokenFetchTransactionClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) publishing_authenticator_shotwell_flickr_access_token_fetch_transaction_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PublishingAuthenticatorShotwellFlickrAccessTokenFetchTransaction), 0, (GInstanceInitFunc) publishing_authenticator_shotwell_flickr_access_token_fetch_transaction_instance_init, NULL }; - GType publishing_authenticator_shotwell_flickr_access_token_fetch_transaction_type_id; - publishing_authenticator_shotwell_flickr_access_token_fetch_transaction_type_id = g_type_register_static (PUBLISHING_REST_SUPPORT_OAUTH1_TYPE_TRANSACTION, "PublishingAuthenticatorShotwellFlickrAccessTokenFetchTransaction", &g_define_type_info, 0); - g_once_init_leave (&publishing_authenticator_shotwell_flickr_access_token_fetch_transaction_type_id__volatile, publishing_authenticator_shotwell_flickr_access_token_fetch_transaction_type_id); - } - return publishing_authenticator_shotwell_flickr_access_token_fetch_transaction_type_id__volatile; -} - - -PublishingAuthenticatorShotwellFlickrWebAuthenticationPane* -publishing_authenticator_shotwell_flickr_web_authentication_pane_construct (GType object_type, - const gchar* token) -{ - PublishingAuthenticatorShotwellFlickrWebAuthenticationPane * self = NULL; - gchar* _tmp0_; - gchar* _tmp1_; -#line 44 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - g_return_val_if_fail (token != NULL, NULL); -#line 45 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - _tmp0_ = g_strdup_printf (PUBLISHING_AUTHENTICATOR_SHOTWELL_FLICKR_WEB_AUTHENTICATION_PANE_LOGIN_URI, token); -#line 45 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - _tmp1_ = _tmp0_; -#line 45 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - self = (PublishingAuthenticatorShotwellFlickrWebAuthenticationPane*) g_object_new (object_type, "login-uri", _tmp1_, NULL); -#line 45 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - _g_free0 (_tmp1_); -#line 44 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - return self; -#line 400 "FlickrPublishingAuthenticator.c" -} - - -PublishingAuthenticatorShotwellFlickrWebAuthenticationPane* -publishing_authenticator_shotwell_flickr_web_authentication_pane_new (const gchar* token) -{ -#line 44 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - return publishing_authenticator_shotwell_flickr_web_authentication_pane_construct (PUBLISHING_AUTHENTICATOR_SHOTWELL_FLICKR_TYPE_WEB_AUTHENTICATION_PANE, token); -#line 409 "FlickrPublishingAuthenticator.c" -} - - -static gpointer -_g_object_ref0 (gpointer self) -{ -#line 51 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - return self ? g_object_ref (self) : NULL; -#line 418 "FlickrPublishingAuthenticator.c" -} - - -static void -_publishing_authenticator_shotwell_flickr_web_authentication_pane_on_shotwell_auth_request_cb_web_kit_uri_scheme_request_callback (WebKitURISchemeRequest* request, - gpointer self) -{ -#line 52 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - publishing_authenticator_shotwell_flickr_web_authentication_pane_on_shotwell_auth_request_cb ((PublishingAuthenticatorShotwellFlickrWebAuthenticationPane*) self, request); -#line 428 "FlickrPublishingAuthenticator.c" -} - - -static void -publishing_authenticator_shotwell_flickr_web_authentication_pane_real_constructed (GObject* base) -{ - PublishingAuthenticatorShotwellFlickrWebAuthenticationPane * self; - WebKitWebContext* ctx = NULL; - WebKitWebContext* _tmp0_; - WebKitWebContext* _tmp1_; -#line 48 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_AUTHENTICATOR_SHOTWELL_FLICKR_TYPE_WEB_AUTHENTICATION_PANE, PublishingAuthenticatorShotwellFlickrWebAuthenticationPane); -#line 49 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - G_OBJECT_CLASS (publishing_authenticator_shotwell_flickr_web_authentication_pane_parent_class)->constructed (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, SHOTWELL_PLUGINS_COMMON_TYPE_WEB_AUTHENTICATION_PANE, ShotwellPluginsCommonWebAuthenticationPane), G_TYPE_OBJECT, GObject)); -#line 51 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - _tmp0_ = webkit_web_context_get_default (); -#line 51 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - _tmp1_ = _g_object_ref0 (_tmp0_); -#line 51 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - ctx = _tmp1_; -#line 52 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - webkit_web_context_register_uri_scheme (ctx, "shotwell-auth", _publishing_authenticator_shotwell_flickr_web_authentication_pane_on_shotwell_auth_request_cb_web_kit_uri_scheme_request_callback, g_object_ref (self), g_object_unref); -#line 48 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - _g_object_unref0 (ctx); -#line 453 "FlickrPublishingAuthenticator.c" -} - - -static void -_vala_SoupURI_free (SoupURI* self) -{ -#line 55 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - g_boxed_free (soup_uri_get_type (), self); -#line 462 "FlickrPublishingAuthenticator.c" -} - - -static void -publishing_authenticator_shotwell_flickr_web_authentication_pane_real_on_page_load (ShotwellPluginsCommonWebAuthenticationPane* base) -{ - PublishingAuthenticatorShotwellFlickrWebAuthenticationPane * self; - SoupURI* uri = NULL; - WebKitWebView* _tmp0_; - WebKitWebView* _tmp1_; - const gchar* _tmp2_; - SoupURI* _tmp3_; - SoupURI* _tmp4_; - gboolean _tmp5_ = FALSE; - SoupURI* _tmp6_; - const gchar* _tmp7_; - const gchar* _tmp9_; -#line 55 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_AUTHENTICATOR_SHOTWELL_FLICKR_TYPE_WEB_AUTHENTICATION_PANE, PublishingAuthenticatorShotwellFlickrWebAuthenticationPane); -#line 56 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - _tmp0_ = shotwell_plugins_common_web_authentication_pane_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, SHOTWELL_PLUGINS_COMMON_TYPE_WEB_AUTHENTICATION_PANE, ShotwellPluginsCommonWebAuthenticationPane)); -#line 56 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - _tmp1_ = _tmp0_; -#line 56 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - _tmp2_ = webkit_web_view_get_uri (_tmp1_); -#line 56 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - _tmp3_ = soup_uri_new (_tmp2_); -#line 56 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - _tmp4_ = _tmp3_; -#line 56 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - _g_object_unref0 (_tmp1_); -#line 56 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - uri = _tmp4_; -#line 57 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - _tmp6_ = uri; -#line 57 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - _tmp7_ = _tmp6_->scheme; -#line 57 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - if (g_strcmp0 (_tmp7_, "shotwell-auth") == 0) { -#line 502 "FlickrPublishingAuthenticator.c" - const gchar* _tmp8_; -#line 57 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - _tmp8_ = self->priv->auth_code; -#line 57 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - _tmp5_ = _tmp8_ == NULL; -#line 508 "FlickrPublishingAuthenticator.c" - } else { -#line 57 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - _tmp5_ = FALSE; -#line 512 "FlickrPublishingAuthenticator.c" - } -#line 57 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - if (_tmp5_) { -#line 58 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - g_signal_emit (self, publishing_authenticator_shotwell_flickr_web_authentication_pane_signals[PUBLISHING_AUTHENTICATOR_SHOTWELL_FLICKR_WEB_AUTHENTICATION_PANE_ERROR_SIGNAL], 0); -#line 518 "FlickrPublishingAuthenticator.c" - } -#line 61 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - _tmp9_ = self->priv->auth_code; -#line 61 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - if (_tmp9_ != NULL) { -#line 524 "FlickrPublishingAuthenticator.c" - const gchar* _tmp10_; -#line 62 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - _tmp10_ = self->priv->auth_code; -#line 62 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - g_signal_emit (self, publishing_authenticator_shotwell_flickr_web_authentication_pane_signals[PUBLISHING_AUTHENTICATOR_SHOTWELL_FLICKR_WEB_AUTHENTICATION_PANE_AUTHORIZED_SIGNAL], 0, _tmp10_); -#line 530 "FlickrPublishingAuthenticator.c" - } -#line 55 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - __vala_SoupURI_free0 (uri); -#line 534 "FlickrPublishingAuthenticator.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 1442 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - g_return_val_if_fail (self != NULL, NULL); -#line 1443 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - res = (guint8*) self; -#line 1443 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - res_length1 = -1; -#line 1443 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _res_size_ = res_length1; -#line 1444 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp0_ = strlen (self); -#line 1444 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp1_ = _tmp0_; -#line 1444 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - res_length1 = (gint) _tmp1_; -#line 1444 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp2_ = res_length1; -#line 1445 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp3_ = res; -#line 1445 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp3__length1 = res_length1; -#line 1445 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp4_ = _tmp3_; -#line 1445 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp4__length1 = _tmp3__length1; -#line 1445 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - if (result_length1) { -#line 1445 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - *result_length1 = _tmp4__length1; -#line 581 "FlickrPublishingAuthenticator.c" - } -#line 1445 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - result = _tmp4_; -#line 1445 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - return result; -#line 587 "FlickrPublishingAuthenticator.c" -} - - -static guint8* -_vala_array_dup1 (guint8* self, - int length) -{ -#line 72 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - return g_memdup (self, length * sizeof (guint8)); -#line 597 "FlickrPublishingAuthenticator.c" -} - - -static void -publishing_authenticator_shotwell_flickr_web_authentication_pane_on_shotwell_auth_request_cb (PublishingAuthenticatorShotwellFlickrWebAuthenticationPane* self, - WebKitURISchemeRequest* request) -{ - SoupURI* uri = NULL; - const gchar* _tmp0_; - SoupURI* _tmp1_; - GHashTable* form_data = NULL; - const gchar* _tmp2_; - GHashTable* _tmp3_; - gconstpointer _tmp4_; - gchar* _tmp5_; - gchar* response = NULL; - gchar* _tmp6_; - GMemoryInputStream* mins = NULL; - guint8* _tmp7_; - gint _tmp7__length1; - guint8* _tmp8_; - gint _tmp8__length1; - guint8* _tmp9_; - gint _tmp9__length1; - GMemoryInputStream* _tmp10_; -#line 66 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - g_return_if_fail (PUBLISHING_AUTHENTICATOR_SHOTWELL_FLICKR_IS_WEB_AUTHENTICATION_PANE (self)); -#line 66 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - g_return_if_fail (WEBKIT_IS_URI_SCHEME_REQUEST (request)); -#line 67 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - _tmp0_ = webkit_uri_scheme_request_get_uri (request); -#line 67 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - _tmp1_ = soup_uri_new (_tmp0_); -#line 67 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - uri = _tmp1_; -#line 68 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - _tmp2_ = uri->query; -#line 68 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - _tmp3_ = soup_form_decode (_tmp2_); -#line 68 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - form_data = _tmp3_; -#line 69 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - _tmp4_ = g_hash_table_lookup (form_data, "oauth_verifier"); -#line 69 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - _tmp5_ = g_strdup ((const gchar*) _tmp4_); -#line 69 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - _g_free0 (self->priv->auth_code); -#line 69 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - self->priv->auth_code = _tmp5_; -#line 71 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - _tmp6_ = g_strdup (""); -#line 71 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - response = _tmp6_; -#line 72 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - _tmp7_ = string_get_data (response, &_tmp7__length1); -#line 72 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - _tmp8_ = _tmp7_; -#line 72 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - _tmp8__length1 = _tmp7__length1; -#line 72 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - _tmp9_ = (_tmp8_ != NULL) ? _vala_array_dup1 (_tmp8_, _tmp8__length1) : ((gpointer) _tmp8_); -#line 72 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - _tmp9__length1 = _tmp8__length1; -#line 72 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - _tmp10_ = (GMemoryInputStream*) g_memory_input_stream_new_from_data (_tmp9_, _tmp9__length1, NULL); -#line 72 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - mins = _tmp10_; -#line 73 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - webkit_uri_scheme_request_finish (request, G_TYPE_CHECK_INSTANCE_CAST (mins, g_input_stream_get_type (), GInputStream), (gint64) -1, "text/plain"); -#line 66 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - _g_object_unref0 (mins); -#line 66 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - _g_free0 (response); -#line 66 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - _g_hash_table_unref0 (form_data); -#line 66 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - __vala_SoupURI_free0 (uri); -#line 675 "FlickrPublishingAuthenticator.c" -} - - -static void -publishing_authenticator_shotwell_flickr_web_authentication_pane_class_init (PublishingAuthenticatorShotwellFlickrWebAuthenticationPaneClass * klass) -{ -#line 37 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - publishing_authenticator_shotwell_flickr_web_authentication_pane_parent_class = g_type_class_peek_parent (klass); -#line 37 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - g_type_class_add_private (klass, sizeof (PublishingAuthenticatorShotwellFlickrWebAuthenticationPanePrivate)); -#line 37 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - ((GObjectClass *) klass)->constructed = (void (*) (GObject *)) publishing_authenticator_shotwell_flickr_web_authentication_pane_real_constructed; -#line 37 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - ((ShotwellPluginsCommonWebAuthenticationPaneClass *) klass)->on_page_load = (void (*) (ShotwellPluginsCommonWebAuthenticationPane *)) publishing_authenticator_shotwell_flickr_web_authentication_pane_real_on_page_load; -#line 37 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - G_OBJECT_CLASS (klass)->finalize = publishing_authenticator_shotwell_flickr_web_authentication_pane_finalize; -#line 37 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - publishing_authenticator_shotwell_flickr_web_authentication_pane_signals[PUBLISHING_AUTHENTICATOR_SHOTWELL_FLICKR_WEB_AUTHENTICATION_PANE_AUTHORIZED_SIGNAL] = g_signal_new ("authorized", PUBLISHING_AUTHENTICATOR_SHOTWELL_FLICKR_TYPE_WEB_AUTHENTICATION_PANE, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_marshal_VOID__STRING, G_TYPE_NONE, 1, G_TYPE_STRING); -#line 37 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - publishing_authenticator_shotwell_flickr_web_authentication_pane_signals[PUBLISHING_AUTHENTICATOR_SHOTWELL_FLICKR_WEB_AUTHENTICATION_PANE_ERROR_SIGNAL] = g_signal_new ("error", PUBLISHING_AUTHENTICATOR_SHOTWELL_FLICKR_TYPE_WEB_AUTHENTICATION_PANE, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_marshal_VOID__VOID, G_TYPE_NONE, 0); -#line 696 "FlickrPublishingAuthenticator.c" -} - - -static void -publishing_authenticator_shotwell_flickr_web_authentication_pane_instance_init (PublishingAuthenticatorShotwellFlickrWebAuthenticationPane * self) -{ -#line 37 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - self->priv = PUBLISHING_AUTHENTICATOR_SHOTWELL_FLICKR_WEB_AUTHENTICATION_PANE_GET_PRIVATE (self); -#line 38 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - self->priv->auth_code = NULL; -#line 707 "FlickrPublishingAuthenticator.c" -} - - -static void -publishing_authenticator_shotwell_flickr_web_authentication_pane_finalize (GObject * obj) -{ - PublishingAuthenticatorShotwellFlickrWebAuthenticationPane * self; -#line 37 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, PUBLISHING_AUTHENTICATOR_SHOTWELL_FLICKR_TYPE_WEB_AUTHENTICATION_PANE, PublishingAuthenticatorShotwellFlickrWebAuthenticationPane); -#line 38 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - _g_free0 (self->priv->auth_code); -#line 37 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - G_OBJECT_CLASS (publishing_authenticator_shotwell_flickr_web_authentication_pane_parent_class)->finalize (obj); -#line 721 "FlickrPublishingAuthenticator.c" -} - - -GType -publishing_authenticator_shotwell_flickr_web_authentication_pane_get_type (void) -{ - static volatile gsize publishing_authenticator_shotwell_flickr_web_authentication_pane_type_id__volatile = 0; - if (g_once_init_enter (&publishing_authenticator_shotwell_flickr_web_authentication_pane_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (PublishingAuthenticatorShotwellFlickrWebAuthenticationPaneClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) publishing_authenticator_shotwell_flickr_web_authentication_pane_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PublishingAuthenticatorShotwellFlickrWebAuthenticationPane), 0, (GInstanceInitFunc) publishing_authenticator_shotwell_flickr_web_authentication_pane_instance_init, NULL }; - GType publishing_authenticator_shotwell_flickr_web_authentication_pane_type_id; - publishing_authenticator_shotwell_flickr_web_authentication_pane_type_id = g_type_register_static (SHOTWELL_PLUGINS_COMMON_TYPE_WEB_AUTHENTICATION_PANE, "PublishingAuthenticatorShotwellFlickrWebAuthenticationPane", &g_define_type_info, 0); - g_once_init_leave (&publishing_authenticator_shotwell_flickr_web_authentication_pane_type_id__volatile, publishing_authenticator_shotwell_flickr_web_authentication_pane_type_id); - } - return publishing_authenticator_shotwell_flickr_web_authentication_pane_type_id__volatile; -} - - -PublishingAuthenticatorShotwellFlickrFlickr* -publishing_authenticator_shotwell_flickr_flickr_construct (GType object_type, - SpitPublishingPluginHost* host) -{ - PublishingAuthenticatorShotwellFlickrFlickr * self = NULL; -#line 78 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - g_return_val_if_fail (SPIT_PUBLISHING_IS_PLUGIN_HOST (host), NULL); -#line 79 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - self = (PublishingAuthenticatorShotwellFlickrFlickr*) publishing_authenticator_shotwell_oauth1_authenticator_construct (object_type, PUBLISHING_AUTHENTICATOR_SHOTWELL_FLICKR_API_KEY, PUBLISHING_AUTHENTICATOR_SHOTWELL_FLICKR_API_SECRET, host); -#line 78 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - return self; -#line 750 "FlickrPublishingAuthenticator.c" -} - - -PublishingAuthenticatorShotwellFlickrFlickr* -publishing_authenticator_shotwell_flickr_flickr_new (SpitPublishingPluginHost* host) -{ -#line 78 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - return publishing_authenticator_shotwell_flickr_flickr_construct (PUBLISHING_AUTHENTICATOR_SHOTWELL_FLICKR_TYPE_FLICKR, host); -#line 759 "FlickrPublishingAuthenticator.c" -} - - -static void -publishing_authenticator_shotwell_flickr_flickr_real_authenticate (PublishingAuthenticatorShotwellOAuth1Authenticator* base) -{ - PublishingAuthenticatorShotwellFlickrFlickr * self; -#line 82 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_AUTHENTICATOR_SHOTWELL_FLICKR_TYPE_FLICKR, PublishingAuthenticatorShotwellFlickrFlickr); -#line 83 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - if (publishing_authenticator_shotwell_oauth1_authenticator_is_persistent_session_valid (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_AUTHENTICATOR_SHOTWELL_OAUTH1_TYPE_AUTHENTICATOR, PublishingAuthenticatorShotwellOAuth1Authenticator))) { -#line 771 "FlickrPublishingAuthenticator.c" - PublishingRESTSupportOAuth1Session* _tmp0_; - gchar* _tmp1_; - gchar* _tmp2_; - gchar* _tmp3_; - gchar* _tmp4_; - gchar* _tmp5_; - gchar* _tmp6_; -#line 84 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - g_debug ("FlickrPublishingAuthenticator.vala:84: attempt start: a persistent ses" \ -"sion is available; using it"); -#line 86 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - _tmp0_ = G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_AUTHENTICATOR_SHOTWELL_OAUTH1_TYPE_AUTHENTICATOR, PublishingAuthenticatorShotwellOAuth1Authenticator)->session; -#line 86 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - _tmp1_ = publishing_authenticator_shotwell_oauth1_authenticator_get_persistent_access_phase_token (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_AUTHENTICATOR_SHOTWELL_OAUTH1_TYPE_AUTHENTICATOR, PublishingAuthenticatorShotwellOAuth1Authenticator)); -#line 86 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - _tmp2_ = _tmp1_; -#line 86 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - _tmp3_ = publishing_authenticator_shotwell_oauth1_authenticator_get_persistent_access_phase_token_secret (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_AUTHENTICATOR_SHOTWELL_OAUTH1_TYPE_AUTHENTICATOR, PublishingAuthenticatorShotwellOAuth1Authenticator)); -#line 86 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - _tmp4_ = _tmp3_; -#line 86 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - _tmp5_ = publishing_authenticator_shotwell_oauth1_authenticator_get_persistent_access_phase_username (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_AUTHENTICATOR_SHOTWELL_OAUTH1_TYPE_AUTHENTICATOR, PublishingAuthenticatorShotwellOAuth1Authenticator)); -#line 86 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - _tmp6_ = _tmp5_; -#line 86 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - publishing_rest_support_oauth1_session_authenticate_from_persistent_credentials (_tmp0_, _tmp2_, _tmp4_, _tmp6_); -#line 86 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - _g_free0 (_tmp6_); -#line 86 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - _g_free0 (_tmp4_); -#line 86 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - _g_free0 (_tmp2_); -#line 803 "FlickrPublishingAuthenticator.c" - } else { -#line 89 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - g_debug ("FlickrPublishingAuthenticator.vala:89: attempt start: no persistent se" \ -"ssion available; showing login welcome pane"); -#line 90 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - publishing_authenticator_shotwell_flickr_flickr_do_show_login_welcome_pane (self); -#line 809 "FlickrPublishingAuthenticator.c" - } -} - - -static gboolean -publishing_authenticator_shotwell_flickr_flickr_real_can_logout (PublishingAuthenticatorShotwellOAuth1Authenticator* base) -{ - PublishingAuthenticatorShotwellFlickrFlickr * self; - gboolean result = FALSE; -#line 94 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_AUTHENTICATOR_SHOTWELL_FLICKR_TYPE_FLICKR, PublishingAuthenticatorShotwellFlickrFlickr); -#line 95 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - result = TRUE; -#line 95 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - return result; -#line 825 "FlickrPublishingAuthenticator.c" -} - - -static void -publishing_authenticator_shotwell_flickr_flickr_real_logout (PublishingAuthenticatorShotwellOAuth1Authenticator* base) -{ - PublishingAuthenticatorShotwellFlickrFlickr * self; - PublishingRESTSupportOAuth1Session* _tmp0_; -#line 98 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_AUTHENTICATOR_SHOTWELL_FLICKR_TYPE_FLICKR, PublishingAuthenticatorShotwellFlickrFlickr); -#line 99 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - _tmp0_ = G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_AUTHENTICATOR_SHOTWELL_OAUTH1_TYPE_AUTHENTICATOR, PublishingAuthenticatorShotwellOAuth1Authenticator)->session; -#line 99 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - publishing_rest_support_oauth1_session_deauthenticate (_tmp0_); -#line 100 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - publishing_authenticator_shotwell_oauth1_authenticator_invalidate_persistent_session (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_AUTHENTICATOR_SHOTWELL_OAUTH1_TYPE_AUTHENTICATOR, PublishingAuthenticatorShotwellOAuth1Authenticator)); -#line 842 "FlickrPublishingAuthenticator.c" -} - - -static void -publishing_authenticator_shotwell_flickr_flickr_real_refresh (PublishingAuthenticatorShotwellOAuth1Authenticator* base) -{ - PublishingAuthenticatorShotwellFlickrFlickr * self; -#line 103 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_AUTHENTICATOR_SHOTWELL_FLICKR_TYPE_FLICKR, PublishingAuthenticatorShotwellFlickrFlickr); -#line 852 "FlickrPublishingAuthenticator.c" -} - - -static void -_publishing_authenticator_shotwell_flickr_flickr_on_welcome_pane_login_clicked_spit_publishing_login_callback (gpointer self) -{ -#line 111 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - publishing_authenticator_shotwell_flickr_flickr_on_welcome_pane_login_clicked ((PublishingAuthenticatorShotwellFlickrFlickr*) self); -#line 861 "FlickrPublishingAuthenticator.c" -} - - -static void -publishing_authenticator_shotwell_flickr_flickr_do_show_login_welcome_pane (PublishingAuthenticatorShotwellFlickrFlickr* self) -{ - SpitPublishingPluginHost* _tmp0_; - SpitPublishingPluginHost* _tmp1_; -#line 107 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - g_return_if_fail (PUBLISHING_AUTHENTICATOR_SHOTWELL_FLICKR_IS_FLICKR (self)); -#line 108 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - g_debug ("FlickrPublishingAuthenticator.vala:108: ACTION: installing login welco" \ -"me pane"); -#line 110 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - _tmp0_ = G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_AUTHENTICATOR_SHOTWELL_OAUTH1_TYPE_AUTHENTICATOR, PublishingAuthenticatorShotwellOAuth1Authenticator)->host; -#line 110 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - spit_publishing_plugin_host_set_service_locked (_tmp0_, FALSE); -#line 111 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - _tmp1_ = G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_AUTHENTICATOR_SHOTWELL_OAUTH1_TYPE_AUTHENTICATOR, PublishingAuthenticatorShotwellOAuth1Authenticator)->host; -#line 111 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - spit_publishing_plugin_host_install_welcome_pane (_tmp1_, PUBLISHING_AUTHENTICATOR_SHOTWELL_FLICKR_SERVICE_WELCOME_MESSAGE, _publishing_authenticator_shotwell_flickr_flickr_on_welcome_pane_login_clicked_spit_publishing_login_callback, self); -#line 882 "FlickrPublishingAuthenticator.c" -} - - -static void -publishing_authenticator_shotwell_flickr_flickr_on_welcome_pane_login_clicked (PublishingAuthenticatorShotwellFlickrFlickr* self) -{ -#line 114 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - g_return_if_fail (PUBLISHING_AUTHENTICATOR_SHOTWELL_FLICKR_IS_FLICKR (self)); -#line 115 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - g_debug ("FlickrPublishingAuthenticator.vala:115: EVENT: user clicked 'Login' bu" \ -"tton in the welcome pane"); -#line 117 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - publishing_authenticator_shotwell_flickr_flickr_do_run_authentication_request_transaction (self); -#line 895 "FlickrPublishingAuthenticator.c" -} - - -static void -_publishing_authenticator_shotwell_flickr_flickr_on_auth_request_txn_completed_publishing_rest_support_transaction_completed (PublishingRESTSupportTransaction* _sender, - gpointer self) -{ -#line 127 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - publishing_authenticator_shotwell_flickr_flickr_on_auth_request_txn_completed ((PublishingAuthenticatorShotwellFlickrFlickr*) self, _sender); -#line 905 "FlickrPublishingAuthenticator.c" -} - - -static void -_publishing_authenticator_shotwell_flickr_flickr_on_auth_request_txn_error_publishing_rest_support_transaction_network_error (PublishingRESTSupportTransaction* _sender, - GError* err, - gpointer self) -{ -#line 128 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - publishing_authenticator_shotwell_flickr_flickr_on_auth_request_txn_error ((PublishingAuthenticatorShotwellFlickrFlickr*) self, _sender, err); -#line 916 "FlickrPublishingAuthenticator.c" -} - - -static void -publishing_authenticator_shotwell_flickr_flickr_do_run_authentication_request_transaction (PublishingAuthenticatorShotwellFlickrFlickr* self) -{ - SpitPublishingPluginHost* _tmp0_; - SpitPublishingPluginHost* _tmp1_; - PublishingAuthenticatorShotwellFlickrAuthenticationRequestTransaction* txn = NULL; - PublishingRESTSupportOAuth1Session* _tmp2_; - PublishingAuthenticatorShotwellFlickrAuthenticationRequestTransaction* _tmp3_; - GError * _inner_error_ = NULL; -#line 120 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - g_return_if_fail (PUBLISHING_AUTHENTICATOR_SHOTWELL_FLICKR_IS_FLICKR (self)); -#line 121 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - g_debug ("FlickrPublishingAuthenticator.vala:121: ACTION: running authentication" \ -" request transaction"); -#line 123 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - _tmp0_ = G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_AUTHENTICATOR_SHOTWELL_OAUTH1_TYPE_AUTHENTICATOR, PublishingAuthenticatorShotwellOAuth1Authenticator)->host; -#line 123 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - spit_publishing_plugin_host_set_service_locked (_tmp0_, TRUE); -#line 124 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - _tmp1_ = G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_AUTHENTICATOR_SHOTWELL_OAUTH1_TYPE_AUTHENTICATOR, PublishingAuthenticatorShotwellOAuth1Authenticator)->host; -#line 124 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - spit_publishing_plugin_host_install_static_message_pane (_tmp1_, _ ("Preparing for login…"), SPIT_PUBLISHING_PLUGIN_HOST_BUTTON_MODE_CANCEL); -#line 126 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - _tmp2_ = G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_AUTHENTICATOR_SHOTWELL_OAUTH1_TYPE_AUTHENTICATOR, PublishingAuthenticatorShotwellOAuth1Authenticator)->session; -#line 126 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - _tmp3_ = publishing_authenticator_shotwell_flickr_authentication_request_transaction_new (_tmp2_); -#line 126 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - txn = _tmp3_; -#line 127 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (txn, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "completed", (GCallback) _publishing_authenticator_shotwell_flickr_flickr_on_auth_request_txn_completed_publishing_rest_support_transaction_completed, self, 0); -#line 128 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (txn, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "network-error", (GCallback) _publishing_authenticator_shotwell_flickr_flickr_on_auth_request_txn_error_publishing_rest_support_transaction_network_error, self, 0); -#line 951 "FlickrPublishingAuthenticator.c" - { -#line 131 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - publishing_rest_support_transaction_execute (G_TYPE_CHECK_INSTANCE_CAST (txn, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), &_inner_error_); -#line 131 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 131 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - if (_inner_error_->domain == SPIT_PUBLISHING_PUBLISHING_ERROR) { -#line 959 "FlickrPublishingAuthenticator.c" - goto __catch1_spit_publishing_publishing_error; - } -#line 131 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - _publishing_rest_support_transaction_unref0 (txn); -#line 131 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.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 131 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - g_clear_error (&_inner_error_); -#line 131 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - return; -#line 970 "FlickrPublishingAuthenticator.c" - } - } - goto __finally1; - __catch1_spit_publishing_publishing_error: - { - GError* err = NULL; - SpitPublishingPluginHost* _tmp4_; - GError* _tmp5_; -#line 130 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - err = _inner_error_; -#line 130 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - _inner_error_ = NULL; -#line 133 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - _tmp4_ = G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_AUTHENTICATOR_SHOTWELL_OAUTH1_TYPE_AUTHENTICATOR, PublishingAuthenticatorShotwellOAuth1Authenticator)->host; -#line 133 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - _tmp5_ = err; -#line 133 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - spit_publishing_plugin_host_post_error (_tmp4_, _tmp5_); -#line 130 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - _g_error_free0 (err); -#line 991 "FlickrPublishingAuthenticator.c" - } - __finally1: -#line 130 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 130 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - _publishing_rest_support_transaction_unref0 (txn); -#line 130 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.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 130 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - g_clear_error (&_inner_error_); -#line 130 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - return; -#line 1004 "FlickrPublishingAuthenticator.c" - } -#line 120 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - _publishing_rest_support_transaction_unref0 (txn); -#line 1008 "FlickrPublishingAuthenticator.c" -} - - -static void -publishing_authenticator_shotwell_flickr_flickr_on_auth_request_txn_completed (PublishingAuthenticatorShotwellFlickrFlickr* self, - PublishingRESTSupportTransaction* txn) -{ - guint _tmp0_; - guint _tmp1_; - gchar* _tmp2_; - gchar* _tmp3_; - gchar* _tmp4_; - gchar* _tmp5_; -#line 137 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - g_return_if_fail (PUBLISHING_AUTHENTICATOR_SHOTWELL_FLICKR_IS_FLICKR (self)); -#line 137 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - g_return_if_fail (PUBLISHING_REST_SUPPORT_IS_TRANSACTION (txn)); -#line 138 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - g_signal_parse_name ("completed", PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, &_tmp0_, NULL, FALSE); -#line 138 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - g_signal_handlers_disconnect_matched (txn, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp0_, 0, NULL, (GCallback) _publishing_authenticator_shotwell_flickr_flickr_on_auth_request_txn_completed_publishing_rest_support_transaction_completed, self); -#line 139 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - g_signal_parse_name ("network-error", PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, &_tmp1_, NULL, FALSE); -#line 139 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - g_signal_handlers_disconnect_matched (txn, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp1_, 0, NULL, (GCallback) _publishing_authenticator_shotwell_flickr_flickr_on_auth_request_txn_error_publishing_rest_support_transaction_network_error, self); -#line 141 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - _tmp2_ = publishing_rest_support_transaction_get_response (txn); -#line 141 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - _tmp3_ = _tmp2_; -#line 141 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - g_debug ("FlickrPublishingAuthenticator.vala:141: EVENT: OAuth authentication re" \ -"quest transaction completed; response = '%s'", _tmp3_); -#line 141 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - _g_free0 (_tmp3_); -#line 144 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - _tmp4_ = publishing_rest_support_transaction_get_response (txn); -#line 144 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - _tmp5_ = _tmp4_; -#line 144 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - publishing_authenticator_shotwell_flickr_flickr_do_parse_token_info_from_auth_request (self, _tmp5_); -#line 144 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - _g_free0 (_tmp5_); -#line 1050 "FlickrPublishingAuthenticator.c" -} - - -static void -publishing_authenticator_shotwell_flickr_flickr_on_auth_request_txn_error (PublishingAuthenticatorShotwellFlickrFlickr* self, - PublishingRESTSupportTransaction* txn, - GError* err) -{ - guint _tmp0_; - guint _tmp1_; - SpitPublishingPluginHost* _tmp2_; -#line 147 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - g_return_if_fail (PUBLISHING_AUTHENTICATOR_SHOTWELL_FLICKR_IS_FLICKR (self)); -#line 147 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - g_return_if_fail (PUBLISHING_REST_SUPPORT_IS_TRANSACTION (txn)); -#line 149 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - g_signal_parse_name ("completed", PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, &_tmp0_, NULL, FALSE); -#line 149 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - g_signal_handlers_disconnect_matched (txn, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp0_, 0, NULL, (GCallback) _publishing_authenticator_shotwell_flickr_flickr_on_auth_request_txn_completed_publishing_rest_support_transaction_completed, self); -#line 150 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - g_signal_parse_name ("network-error", PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, &_tmp1_, NULL, FALSE); -#line 150 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - g_signal_handlers_disconnect_matched (txn, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp1_, 0, NULL, (GCallback) _publishing_authenticator_shotwell_flickr_flickr_on_auth_request_txn_error_publishing_rest_support_transaction_network_error, self); -#line 152 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - g_debug ("FlickrPublishingAuthenticator.vala:152: EVENT: OAuth authentication re" \ -"quest transaction caused a network error"); -#line 153 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - _tmp2_ = G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_AUTHENTICATOR_SHOTWELL_OAUTH1_TYPE_AUTHENTICATOR, PublishingAuthenticatorShotwellOAuth1Authenticator)->host; -#line 153 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - spit_publishing_plugin_host_post_error (_tmp2_, err); -#line 155 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - g_signal_emit_by_name (G_TYPE_CHECK_INSTANCE_CAST (self, SPIT_PUBLISHING_TYPE_AUTHENTICATOR, SpitPublishingAuthenticator), "authentication-failed"); -#line 1082 "FlickrPublishingAuthenticator.c" -} - - -static void -publishing_authenticator_shotwell_flickr_flickr_do_parse_token_info_from_auth_request (PublishingAuthenticatorShotwellFlickrFlickr* self, - const gchar* response) -{ - gchar* oauth_token = NULL; - gchar* oauth_token_secret = NULL; - GHashTable* data = NULL; - GHashTable* _tmp0_; - GHashTable* _tmp1_; - gconstpointer _tmp2_ = NULL; - gchar* _tmp3_; - GHashTable* _tmp4_; - gconstpointer _tmp5_ = NULL; - gchar* _tmp6_; - gboolean _tmp7_ = FALSE; - const gchar* _tmp8_; - const gchar* _tmp13_; - const gchar* _tmp14_; -#line 158 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - g_return_if_fail (PUBLISHING_AUTHENTICATOR_SHOTWELL_FLICKR_IS_FLICKR (self)); -#line 158 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - g_return_if_fail (response != NULL); -#line 159 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - g_debug ("FlickrPublishingAuthenticator.vala:159: ACTION: parsing authorization " \ -"request response '%s' into token and secret", response); -#line 161 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - oauth_token = NULL; -#line 162 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - oauth_token_secret = NULL; -#line 164 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - _tmp0_ = soup_form_decode (response); -#line 164 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - data = _tmp0_; -#line 165 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - _tmp1_ = data; -#line 165 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - g_hash_table_lookup_extended (_tmp1_, "oauth_token", NULL, &_tmp2_); -#line 165 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - _g_free0 (oauth_token); -#line 165 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - _tmp3_ = g_strdup (_tmp2_); -#line 165 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - oauth_token = _tmp3_; -#line 166 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - _tmp4_ = data; -#line 166 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - g_hash_table_lookup_extended (_tmp4_, "oauth_token_secret", NULL, &_tmp5_); -#line 166 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - _g_free0 (oauth_token_secret); -#line 166 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - _tmp6_ = g_strdup (_tmp5_); -#line 166 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - oauth_token_secret = _tmp6_; -#line 168 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - _tmp8_ = oauth_token; -#line 168 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - if (_tmp8_ == NULL) { -#line 168 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - _tmp7_ = TRUE; -#line 1144 "FlickrPublishingAuthenticator.c" - } else { - const gchar* _tmp9_; -#line 168 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - _tmp9_ = oauth_token_secret; -#line 168 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - _tmp7_ = _tmp9_ == NULL; -#line 1151 "FlickrPublishingAuthenticator.c" - } -#line 168 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - if (_tmp7_) { -#line 1155 "FlickrPublishingAuthenticator.c" - SpitPublishingPluginHost* _tmp10_; - GError* _tmp11_; - GError* _tmp12_; -#line 169 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - _tmp10_ = G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_AUTHENTICATOR_SHOTWELL_OAUTH1_TYPE_AUTHENTICATOR, PublishingAuthenticatorShotwellOAuth1Authenticator)->host; -#line 169 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - _tmp11_ = g_error_new (SPIT_PUBLISHING_PUBLISHING_ERROR, SPIT_PUBLISHING_PUBLISHING_ERROR_MALFORMED_RESPONSE, "'%s' isn't a valid response to an OAuth authentication request", response); -#line 169 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - _tmp12_ = _tmp11_; -#line 169 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - spit_publishing_plugin_host_post_error (_tmp10_, _tmp12_); -#line 169 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - _g_error_free0 (_tmp12_); -#line 1169 "FlickrPublishingAuthenticator.c" - } -#line 173 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - _tmp13_ = oauth_token; -#line 173 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - _tmp14_ = oauth_token_secret; -#line 173 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - publishing_authenticator_shotwell_flickr_flickr_on_authentication_token_available (self, _tmp13_, _tmp14_); -#line 158 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - _g_hash_table_unref0 (data); -#line 158 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - _g_free0 (oauth_token_secret); -#line 158 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - _g_free0 (oauth_token); -#line 1183 "FlickrPublishingAuthenticator.c" -} - - -static void -publishing_authenticator_shotwell_flickr_flickr_on_authentication_token_available (PublishingAuthenticatorShotwellFlickrFlickr* self, - const gchar* token, - const gchar* token_secret) -{ - PublishingRESTSupportOAuth1Session* _tmp0_; -#line 176 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - g_return_if_fail (PUBLISHING_AUTHENTICATOR_SHOTWELL_FLICKR_IS_FLICKR (self)); -#line 176 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - g_return_if_fail (token != NULL); -#line 176 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - g_return_if_fail (token_secret != NULL); -#line 177 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - g_debug ("FlickrPublishingAuthenticator.vala:177: EVENT: OAuth authentication to" \ -"ken (%s) and token secret (%s) available", token, token_secret); -#line 180 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - _tmp0_ = G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_AUTHENTICATOR_SHOTWELL_OAUTH1_TYPE_AUTHENTICATOR, PublishingAuthenticatorShotwellOAuth1Authenticator)->session; -#line 180 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - publishing_rest_support_oauth1_session_set_request_phase_credentials (_tmp0_, token, token_secret); -#line 182 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - publishing_authenticator_shotwell_flickr_flickr_do_web_authentication (self, token); -#line 1207 "FlickrPublishingAuthenticator.c" -} - - -static void -_publishing_authenticator_shotwell_flickr_flickr_do_verify_pin_publishing_authenticator_shotwell_flickr_web_authentication_pane_authorized (PublishingAuthenticatorShotwellFlickrWebAuthenticationPane* _sender, - const gchar* auth_code, - gpointer self) -{ -#line 188 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - publishing_authenticator_shotwell_flickr_flickr_do_verify_pin ((PublishingAuthenticatorShotwellFlickrFlickr*) self, auth_code); -#line 1218 "FlickrPublishingAuthenticator.c" -} - - -static void -_publishing_authenticator_shotwell_flickr_flickr_on_web_login_error_publishing_authenticator_shotwell_flickr_web_authentication_pane_error (PublishingAuthenticatorShotwellFlickrWebAuthenticationPane* _sender, - gpointer self) -{ -#line 189 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - publishing_authenticator_shotwell_flickr_flickr_on_web_login_error ((PublishingAuthenticatorShotwellFlickrFlickr*) self); -#line 1228 "FlickrPublishingAuthenticator.c" -} - - -static void -publishing_authenticator_shotwell_flickr_flickr_do_web_authentication (PublishingAuthenticatorShotwellFlickrFlickr* self, - const gchar* token) -{ - PublishingAuthenticatorShotwellFlickrWebAuthenticationPane* pane = NULL; - PublishingAuthenticatorShotwellFlickrWebAuthenticationPane* _tmp0_; - SpitPublishingPluginHost* _tmp1_; -#line 185 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - g_return_if_fail (PUBLISHING_AUTHENTICATOR_SHOTWELL_FLICKR_IS_FLICKR (self)); -#line 185 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - g_return_if_fail (token != NULL); -#line 186 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - _tmp0_ = publishing_authenticator_shotwell_flickr_web_authentication_pane_new (token); -#line 186 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - pane = _tmp0_; -#line 187 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - _tmp1_ = G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_AUTHENTICATOR_SHOTWELL_OAUTH1_TYPE_AUTHENTICATOR, PublishingAuthenticatorShotwellOAuth1Authenticator)->host; -#line 187 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - spit_publishing_plugin_host_install_dialog_pane (_tmp1_, G_TYPE_CHECK_INSTANCE_CAST (pane, SPIT_PUBLISHING_TYPE_DIALOG_PANE, SpitPublishingDialogPane), SPIT_PUBLISHING_PLUGIN_HOST_BUTTON_MODE_CANCEL); -#line 188 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - g_signal_connect_object (pane, "authorized", (GCallback) _publishing_authenticator_shotwell_flickr_flickr_do_verify_pin_publishing_authenticator_shotwell_flickr_web_authentication_pane_authorized, self, 0); -#line 189 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - g_signal_connect_object (pane, "error", (GCallback) _publishing_authenticator_shotwell_flickr_flickr_on_web_login_error_publishing_authenticator_shotwell_flickr_web_authentication_pane_error, self, 0); -#line 185 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - _g_object_unref0 (pane); -#line 1257 "FlickrPublishingAuthenticator.c" -} - - -static void -publishing_authenticator_shotwell_flickr_flickr_on_web_login_error (PublishingAuthenticatorShotwellFlickrFlickr* self) -{ - SpitPublishingPluginHost* _tmp0_; - GError* _tmp1_; - GError* _tmp2_; -#line 192 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - g_return_if_fail (PUBLISHING_AUTHENTICATOR_SHOTWELL_FLICKR_IS_FLICKR (self)); -#line 193 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - _tmp0_ = G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_AUTHENTICATOR_SHOTWELL_OAUTH1_TYPE_AUTHENTICATOR, PublishingAuthenticatorShotwellOAuth1Authenticator)->host; -#line 193 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - _tmp1_ = g_error_new_literal (SPIT_PUBLISHING_PUBLISHING_ERROR, SPIT_PUBLISHING_PUBLISHING_ERROR_PROTOCOL_ERROR, _ ("Flickr authorization failed")); -#line 193 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - _tmp2_ = _tmp1_; -#line 193 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - spit_publishing_plugin_host_post_error (_tmp0_, _tmp2_); -#line 193 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - _g_error_free0 (_tmp2_); -#line 1279 "FlickrPublishingAuthenticator.c" -} - - -static void -_publishing_authenticator_shotwell_flickr_flickr_on_access_token_fetch_txn_completed_publishing_rest_support_transaction_completed (PublishingRESTSupportTransaction* _sender, - gpointer self) -{ -#line 203 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - publishing_authenticator_shotwell_flickr_flickr_on_access_token_fetch_txn_completed ((PublishingAuthenticatorShotwellFlickrFlickr*) self, _sender); -#line 1289 "FlickrPublishingAuthenticator.c" -} - - -static void -_publishing_authenticator_shotwell_flickr_flickr_on_access_token_fetch_error_publishing_rest_support_transaction_network_error (PublishingRESTSupportTransaction* _sender, - GError* err, - gpointer self) -{ -#line 204 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - publishing_authenticator_shotwell_flickr_flickr_on_access_token_fetch_error ((PublishingAuthenticatorShotwellFlickrFlickr*) self, _sender, err); -#line 1300 "FlickrPublishingAuthenticator.c" -} - - -static void -publishing_authenticator_shotwell_flickr_flickr_do_verify_pin (PublishingAuthenticatorShotwellFlickrFlickr* self, - const gchar* pin) -{ - SpitPublishingPluginHost* _tmp0_; - SpitPublishingPluginHost* _tmp1_; - PublishingAuthenticatorShotwellFlickrAccessTokenFetchTransaction* txn = NULL; - PublishingRESTSupportOAuth1Session* _tmp2_; - PublishingAuthenticatorShotwellFlickrAccessTokenFetchTransaction* _tmp3_; - GError * _inner_error_ = NULL; -#line 196 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - g_return_if_fail (PUBLISHING_AUTHENTICATOR_SHOTWELL_FLICKR_IS_FLICKR (self)); -#line 196 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - g_return_if_fail (pin != NULL); -#line 197 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - g_debug ("FlickrPublishingAuthenticator.vala:197: ACTION: validating authorizati" \ -"on PIN %s", pin); -#line 199 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - _tmp0_ = G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_AUTHENTICATOR_SHOTWELL_OAUTH1_TYPE_AUTHENTICATOR, PublishingAuthenticatorShotwellOAuth1Authenticator)->host; -#line 199 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - spit_publishing_plugin_host_set_service_locked (_tmp0_, TRUE); -#line 200 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - _tmp1_ = G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_AUTHENTICATOR_SHOTWELL_OAUTH1_TYPE_AUTHENTICATOR, PublishingAuthenticatorShotwellOAuth1Authenticator)->host; -#line 200 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - spit_publishing_plugin_host_install_static_message_pane (_tmp1_, _ ("Verifying authorization…"), SPIT_PUBLISHING_PLUGIN_HOST_BUTTON_MODE_CANCEL); -#line 202 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - _tmp2_ = G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_AUTHENTICATOR_SHOTWELL_OAUTH1_TYPE_AUTHENTICATOR, PublishingAuthenticatorShotwellOAuth1Authenticator)->session; -#line 202 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - _tmp3_ = publishing_authenticator_shotwell_flickr_access_token_fetch_transaction_new (_tmp2_, pin); -#line 202 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - txn = _tmp3_; -#line 203 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (txn, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "completed", (GCallback) _publishing_authenticator_shotwell_flickr_flickr_on_access_token_fetch_txn_completed_publishing_rest_support_transaction_completed, self, 0); -#line 204 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (txn, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "network-error", (GCallback) _publishing_authenticator_shotwell_flickr_flickr_on_access_token_fetch_error_publishing_rest_support_transaction_network_error, self, 0); -#line 1338 "FlickrPublishingAuthenticator.c" - { -#line 207 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - publishing_rest_support_transaction_execute (G_TYPE_CHECK_INSTANCE_CAST (txn, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), &_inner_error_); -#line 207 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 207 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - if (_inner_error_->domain == SPIT_PUBLISHING_PUBLISHING_ERROR) { -#line 1346 "FlickrPublishingAuthenticator.c" - goto __catch2_spit_publishing_publishing_error; - } -#line 207 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - _publishing_rest_support_transaction_unref0 (txn); -#line 207 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.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 207 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - g_clear_error (&_inner_error_); -#line 207 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - return; -#line 1357 "FlickrPublishingAuthenticator.c" - } - } - goto __finally2; - __catch2_spit_publishing_publishing_error: - { - GError* err = NULL; - SpitPublishingPluginHost* _tmp4_; - GError* _tmp5_; -#line 206 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - err = _inner_error_; -#line 206 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - _inner_error_ = NULL; -#line 209 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - _tmp4_ = G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_AUTHENTICATOR_SHOTWELL_OAUTH1_TYPE_AUTHENTICATOR, PublishingAuthenticatorShotwellOAuth1Authenticator)->host; -#line 209 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - _tmp5_ = err; -#line 209 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - spit_publishing_plugin_host_post_error (_tmp4_, _tmp5_); -#line 206 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - _g_error_free0 (err); -#line 1378 "FlickrPublishingAuthenticator.c" - } - __finally2: -#line 206 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 206 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - _publishing_rest_support_transaction_unref0 (txn); -#line 206 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 206 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - g_clear_error (&_inner_error_); -#line 206 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - return; -#line 1391 "FlickrPublishingAuthenticator.c" - } -#line 196 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - _publishing_rest_support_transaction_unref0 (txn); -#line 1395 "FlickrPublishingAuthenticator.c" -} - - -static void -publishing_authenticator_shotwell_flickr_flickr_on_access_token_fetch_txn_completed (PublishingAuthenticatorShotwellFlickrFlickr* self, - PublishingRESTSupportTransaction* txn) -{ - guint _tmp0_; - guint _tmp1_; - gchar* _tmp2_; - gchar* _tmp3_; -#line 213 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - g_return_if_fail (PUBLISHING_AUTHENTICATOR_SHOTWELL_FLICKR_IS_FLICKR (self)); -#line 213 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - g_return_if_fail (PUBLISHING_REST_SUPPORT_IS_TRANSACTION (txn)); -#line 214 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - g_signal_parse_name ("completed", PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, &_tmp0_, NULL, FALSE); -#line 214 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - g_signal_handlers_disconnect_matched (txn, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp0_, 0, NULL, (GCallback) _publishing_authenticator_shotwell_flickr_flickr_on_access_token_fetch_txn_completed_publishing_rest_support_transaction_completed, self); -#line 215 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - g_signal_parse_name ("network-error", PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, &_tmp1_, NULL, FALSE); -#line 215 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - g_signal_handlers_disconnect_matched (txn, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp1_, 0, NULL, (GCallback) _publishing_authenticator_shotwell_flickr_flickr_on_access_token_fetch_error_publishing_rest_support_transaction_network_error, self); -#line 217 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - g_debug ("FlickrPublishingAuthenticator.vala:217: EVENT: fetching OAuth access t" \ -"oken over the network succeeded"); -#line 219 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - _tmp2_ = publishing_rest_support_transaction_get_response (txn); -#line 219 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - _tmp3_ = _tmp2_; -#line 219 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - publishing_authenticator_shotwell_flickr_flickr_do_extract_access_phase_credentials_from_reponse (self, _tmp3_); -#line 219 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - _g_free0 (_tmp3_); -#line 1429 "FlickrPublishingAuthenticator.c" -} - - -static void -publishing_authenticator_shotwell_flickr_flickr_on_access_token_fetch_error (PublishingAuthenticatorShotwellFlickrFlickr* self, - PublishingRESTSupportTransaction* txn, - GError* err) -{ - guint _tmp0_; - guint _tmp1_; - SpitPublishingPluginHost* _tmp2_; -#line 222 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - g_return_if_fail (PUBLISHING_AUTHENTICATOR_SHOTWELL_FLICKR_IS_FLICKR (self)); -#line 222 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - g_return_if_fail (PUBLISHING_REST_SUPPORT_IS_TRANSACTION (txn)); -#line 224 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - g_signal_parse_name ("completed", PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, &_tmp0_, NULL, FALSE); -#line 224 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - g_signal_handlers_disconnect_matched (txn, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp0_, 0, NULL, (GCallback) _publishing_authenticator_shotwell_flickr_flickr_on_access_token_fetch_txn_completed_publishing_rest_support_transaction_completed, self); -#line 225 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - g_signal_parse_name ("network-error", PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, &_tmp1_, NULL, FALSE); -#line 225 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - g_signal_handlers_disconnect_matched (txn, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp1_, 0, NULL, (GCallback) _publishing_authenticator_shotwell_flickr_flickr_on_access_token_fetch_error_publishing_rest_support_transaction_network_error, self); -#line 227 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - g_debug ("FlickrPublishingAuthenticator.vala:227: EVENT: fetching OAuth access t" \ -"oken over the network caused an error."); -#line 229 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - _tmp2_ = G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_AUTHENTICATOR_SHOTWELL_OAUTH1_TYPE_AUTHENTICATOR, PublishingAuthenticatorShotwellOAuth1Authenticator)->host; -#line 229 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - spit_publishing_plugin_host_post_error (_tmp2_, err); -#line 230 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - g_signal_emit_by_name (G_TYPE_CHECK_INSTANCE_CAST (self, SPIT_PUBLISHING_TYPE_AUTHENTICATOR, SpitPublishingAuthenticator), "authentication-failed"); -#line 1461 "FlickrPublishingAuthenticator.c" -} - - -static void -publishing_authenticator_shotwell_flickr_flickr_do_extract_access_phase_credentials_from_reponse (PublishingAuthenticatorShotwellFlickrFlickr* self, - const gchar* response) -{ - gchar* token = NULL; - gchar* token_secret = NULL; - gchar* username = NULL; - GHashTable* data = NULL; - GHashTable* _tmp0_; - GHashTable* _tmp1_; - gconstpointer _tmp2_ = NULL; - gchar* _tmp3_; - GHashTable* _tmp4_; - gconstpointer _tmp5_ = NULL; - gchar* _tmp6_; - GHashTable* _tmp7_; - gconstpointer _tmp8_ = NULL; - gchar* _tmp9_; - const gchar* _tmp10_; - const gchar* _tmp11_; - const gchar* _tmp12_; - gboolean _tmp13_ = FALSE; - gboolean _tmp14_ = FALSE; - const gchar* _tmp15_; -#line 233 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - g_return_if_fail (PUBLISHING_AUTHENTICATOR_SHOTWELL_FLICKR_IS_FLICKR (self)); -#line 233 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - g_return_if_fail (response != NULL); -#line 234 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - g_debug ("FlickrPublishingAuthenticator.vala:234: ACTION: extracting access phas" \ -"e credentials from '%s'", response); -#line 236 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - token = NULL; -#line 237 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - token_secret = NULL; -#line 238 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - username = NULL; -#line 240 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - _tmp0_ = soup_form_decode (response); -#line 240 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - data = _tmp0_; -#line 241 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - _tmp1_ = data; -#line 241 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - g_hash_table_lookup_extended (_tmp1_, "oauth_token", NULL, &_tmp2_); -#line 241 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - _g_free0 (token); -#line 241 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - _tmp3_ = g_strdup (_tmp2_); -#line 241 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - token = _tmp3_; -#line 242 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - _tmp4_ = data; -#line 242 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - g_hash_table_lookup_extended (_tmp4_, "oauth_token_secret", NULL, &_tmp5_); -#line 242 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - _g_free0 (token_secret); -#line 242 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - _tmp6_ = g_strdup (_tmp5_); -#line 242 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - token_secret = _tmp6_; -#line 243 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - _tmp7_ = data; -#line 243 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - g_hash_table_lookup_extended (_tmp7_, "username", NULL, &_tmp8_); -#line 243 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - _g_free0 (username); -#line 243 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - _tmp9_ = g_strdup (_tmp8_); -#line 243 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - username = _tmp9_; -#line 245 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - _tmp10_ = token; -#line 245 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - _tmp11_ = token_secret; -#line 245 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - _tmp12_ = username; -#line 245 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - g_debug ("FlickrPublishingAuthenticator.vala:245: access phase credentials: { to" \ -"ken = '%s'; token_secret = '%s'; username = '%s' }", _tmp10_, _tmp11_, _tmp12_); -#line 248 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - _tmp15_ = token; -#line 248 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - if (_tmp15_ == NULL) { -#line 248 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - _tmp14_ = TRUE; -#line 1549 "FlickrPublishingAuthenticator.c" - } else { - const gchar* _tmp16_; -#line 248 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - _tmp16_ = token_secret; -#line 248 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - _tmp14_ = _tmp16_ == NULL; -#line 1556 "FlickrPublishingAuthenticator.c" - } -#line 248 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - if (_tmp14_) { -#line 248 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - _tmp13_ = TRUE; -#line 1562 "FlickrPublishingAuthenticator.c" - } else { - const gchar* _tmp17_; -#line 248 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - _tmp17_ = username; -#line 248 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - _tmp13_ = _tmp17_ == NULL; -#line 1569 "FlickrPublishingAuthenticator.c" - } -#line 248 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - if (_tmp13_) { -#line 1573 "FlickrPublishingAuthenticator.c" - SpitPublishingPluginHost* _tmp18_; - GError* _tmp19_; - GError* _tmp20_; -#line 249 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - _tmp18_ = G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_AUTHENTICATOR_SHOTWELL_OAUTH1_TYPE_AUTHENTICATOR, PublishingAuthenticatorShotwellOAuth1Authenticator)->host; -#line 249 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - _tmp19_ = g_error_new_literal (SPIT_PUBLISHING_PUBLISHING_ERROR, SPIT_PUBLISHING_PUBLISHING_ERROR_MALFORMED_RESPONSE, "expected " "access phase credentials to contain token, token secret, and username " \ -"but at " "least one of these is absent"); -#line 249 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - _tmp20_ = _tmp19_; -#line 249 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - spit_publishing_plugin_host_post_error (_tmp18_, _tmp20_); -#line 249 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - _g_error_free0 (_tmp20_); -#line 252 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - g_signal_emit_by_name (G_TYPE_CHECK_INSTANCE_CAST (self, SPIT_PUBLISHING_TYPE_AUTHENTICATOR, SpitPublishingAuthenticator), "authentication-failed"); -#line 1589 "FlickrPublishingAuthenticator.c" - } else { - PublishingRESTSupportOAuth1Session* _tmp21_; - const gchar* _tmp22_; - const gchar* _tmp23_; - const gchar* _tmp24_; -#line 254 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - _tmp21_ = G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_AUTHENTICATOR_SHOTWELL_OAUTH1_TYPE_AUTHENTICATOR, PublishingAuthenticatorShotwellOAuth1Authenticator)->session; -#line 254 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - _tmp22_ = token; -#line 254 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - _tmp23_ = token_secret; -#line 254 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - _tmp24_ = username; -#line 254 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - publishing_rest_support_oauth1_session_set_access_phase_credentials (_tmp21_, _tmp22_, _tmp23_, _tmp24_); -#line 1605 "FlickrPublishingAuthenticator.c" - } -#line 233 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - _g_hash_table_unref0 (data); -#line 233 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - _g_free0 (username); -#line 233 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - _g_free0 (token_secret); -#line 233 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - _g_free0 (token); -#line 1615 "FlickrPublishingAuthenticator.c" -} - - -static void -publishing_authenticator_shotwell_flickr_flickr_class_init (PublishingAuthenticatorShotwellFlickrFlickrClass * klass) -{ -#line 77 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - publishing_authenticator_shotwell_flickr_flickr_parent_class = g_type_class_peek_parent (klass); -#line 77 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - ((PublishingAuthenticatorShotwellOAuth1AuthenticatorClass *) klass)->authenticate = (void (*) (PublishingAuthenticatorShotwellOAuth1Authenticator *)) publishing_authenticator_shotwell_flickr_flickr_real_authenticate; -#line 77 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - ((PublishingAuthenticatorShotwellOAuth1AuthenticatorClass *) klass)->can_logout = (gboolean (*) (PublishingAuthenticatorShotwellOAuth1Authenticator *)) publishing_authenticator_shotwell_flickr_flickr_real_can_logout; -#line 77 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - ((PublishingAuthenticatorShotwellOAuth1AuthenticatorClass *) klass)->logout = (void (*) (PublishingAuthenticatorShotwellOAuth1Authenticator *)) publishing_authenticator_shotwell_flickr_flickr_real_logout; -#line 77 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - ((PublishingAuthenticatorShotwellOAuth1AuthenticatorClass *) klass)->refresh = (void (*) (PublishingAuthenticatorShotwellOAuth1Authenticator *)) publishing_authenticator_shotwell_flickr_flickr_real_refresh; -#line 1632 "FlickrPublishingAuthenticator.c" -} - - -static void -publishing_authenticator_shotwell_flickr_flickr_instance_init (PublishingAuthenticatorShotwellFlickrFlickr * self) -{ -} - - -GType -publishing_authenticator_shotwell_flickr_flickr_get_type (void) -{ - static volatile gsize publishing_authenticator_shotwell_flickr_flickr_type_id__volatile = 0; - if (g_once_init_enter (&publishing_authenticator_shotwell_flickr_flickr_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (PublishingAuthenticatorShotwellFlickrFlickrClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) publishing_authenticator_shotwell_flickr_flickr_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PublishingAuthenticatorShotwellFlickrFlickr), 0, (GInstanceInitFunc) publishing_authenticator_shotwell_flickr_flickr_instance_init, NULL }; - GType publishing_authenticator_shotwell_flickr_flickr_type_id; - publishing_authenticator_shotwell_flickr_flickr_type_id = g_type_register_static (PUBLISHING_AUTHENTICATOR_SHOTWELL_OAUTH1_TYPE_AUTHENTICATOR, "PublishingAuthenticatorShotwellFlickrFlickr", &g_define_type_info, 0); - g_once_init_leave (&publishing_authenticator_shotwell_flickr_flickr_type_id__volatile, publishing_authenticator_shotwell_flickr_flickr_type_id); - } - return publishing_authenticator_shotwell_flickr_flickr_type_id__volatile; -} - - - diff --git a/plugins/authenticator/shotwell/GoogleAuthenticator.c b/plugins/authenticator/shotwell/GoogleAuthenticator.c deleted file mode 100644 index 2b09bab..0000000 --- a/plugins/authenticator/shotwell/GoogleAuthenticator.c +++ /dev/null @@ -1,2733 +0,0 @@ -/* GoogleAuthenticator.c generated by valac 0.40.4, the Vala compiler - * generated from GoogleAuthenticator.vala, do not modify */ - - - -#include -#include -#include -#include -#include "shotwell-plugin-common.h" -#include -#include -#include -#include "shotwell-plugin-dev-1.0.h" -#include -#include - - -#define PUBLISHING_AUTHENTICATOR_SHOTWELL_GOOGLE_TYPE_WEB_AUTHENTICATION_PANE (publishing_authenticator_shotwell_google_web_authentication_pane_get_type ()) -#define PUBLISHING_AUTHENTICATOR_SHOTWELL_GOOGLE_WEB_AUTHENTICATION_PANE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_AUTHENTICATOR_SHOTWELL_GOOGLE_TYPE_WEB_AUTHENTICATION_PANE, PublishingAuthenticatorShotwellGoogleWebAuthenticationPane)) -#define PUBLISHING_AUTHENTICATOR_SHOTWELL_GOOGLE_WEB_AUTHENTICATION_PANE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_AUTHENTICATOR_SHOTWELL_GOOGLE_TYPE_WEB_AUTHENTICATION_PANE, PublishingAuthenticatorShotwellGoogleWebAuthenticationPaneClass)) -#define PUBLISHING_AUTHENTICATOR_SHOTWELL_GOOGLE_IS_WEB_AUTHENTICATION_PANE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_AUTHENTICATOR_SHOTWELL_GOOGLE_TYPE_WEB_AUTHENTICATION_PANE)) -#define PUBLISHING_AUTHENTICATOR_SHOTWELL_GOOGLE_IS_WEB_AUTHENTICATION_PANE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_AUTHENTICATOR_SHOTWELL_GOOGLE_TYPE_WEB_AUTHENTICATION_PANE)) -#define PUBLISHING_AUTHENTICATOR_SHOTWELL_GOOGLE_WEB_AUTHENTICATION_PANE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_AUTHENTICATOR_SHOTWELL_GOOGLE_TYPE_WEB_AUTHENTICATION_PANE, PublishingAuthenticatorShotwellGoogleWebAuthenticationPaneClass)) - -typedef struct _PublishingAuthenticatorShotwellGoogleWebAuthenticationPane PublishingAuthenticatorShotwellGoogleWebAuthenticationPane; -typedef struct _PublishingAuthenticatorShotwellGoogleWebAuthenticationPaneClass PublishingAuthenticatorShotwellGoogleWebAuthenticationPaneClass; -typedef struct _PublishingAuthenticatorShotwellGoogleWebAuthenticationPanePrivate PublishingAuthenticatorShotwellGoogleWebAuthenticationPanePrivate; -enum { - PUBLISHING_AUTHENTICATOR_SHOTWELL_GOOGLE_WEB_AUTHENTICATION_PANE_0_PROPERTY, - PUBLISHING_AUTHENTICATOR_SHOTWELL_GOOGLE_WEB_AUTHENTICATION_PANE_NUM_PROPERTIES -}; -static GParamSpec* publishing_authenticator_shotwell_google_web_authentication_pane_properties[PUBLISHING_AUTHENTICATOR_SHOTWELL_GOOGLE_WEB_AUTHENTICATION_PANE_NUM_PROPERTIES]; -#define _g_free0(var) (var = (g_free (var), NULL)) -#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL))) -#define __vala_SoupURI_free0(var) ((var == NULL) ? NULL : (var = (_vala_SoupURI_free (var), NULL))) -#define _g_hash_table_unref0(var) ((var == NULL) ? NULL : (var = (g_hash_table_unref (var), NULL))) -enum { - PUBLISHING_AUTHENTICATOR_SHOTWELL_GOOGLE_WEB_AUTHENTICATION_PANE_ERROR_SIGNAL, - PUBLISHING_AUTHENTICATOR_SHOTWELL_GOOGLE_WEB_AUTHENTICATION_PANE_AUTHORIZED_SIGNAL, - PUBLISHING_AUTHENTICATOR_SHOTWELL_GOOGLE_WEB_AUTHENTICATION_PANE_NUM_SIGNALS -}; -static guint publishing_authenticator_shotwell_google_web_authentication_pane_signals[PUBLISHING_AUTHENTICATOR_SHOTWELL_GOOGLE_WEB_AUTHENTICATION_PANE_NUM_SIGNALS] = {0}; - -#define PUBLISHING_AUTHENTICATOR_SHOTWELL_GOOGLE_TYPE_SESSION (publishing_authenticator_shotwell_google_session_get_type ()) -#define PUBLISHING_AUTHENTICATOR_SHOTWELL_GOOGLE_SESSION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_AUTHENTICATOR_SHOTWELL_GOOGLE_TYPE_SESSION, PublishingAuthenticatorShotwellGoogleSession)) -#define PUBLISHING_AUTHENTICATOR_SHOTWELL_GOOGLE_SESSION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_AUTHENTICATOR_SHOTWELL_GOOGLE_TYPE_SESSION, PublishingAuthenticatorShotwellGoogleSessionClass)) -#define PUBLISHING_AUTHENTICATOR_SHOTWELL_GOOGLE_IS_SESSION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_AUTHENTICATOR_SHOTWELL_GOOGLE_TYPE_SESSION)) -#define PUBLISHING_AUTHENTICATOR_SHOTWELL_GOOGLE_IS_SESSION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_AUTHENTICATOR_SHOTWELL_GOOGLE_TYPE_SESSION)) -#define PUBLISHING_AUTHENTICATOR_SHOTWELL_GOOGLE_SESSION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_AUTHENTICATOR_SHOTWELL_GOOGLE_TYPE_SESSION, PublishingAuthenticatorShotwellGoogleSessionClass)) - -typedef struct _PublishingAuthenticatorShotwellGoogleSession PublishingAuthenticatorShotwellGoogleSession; -typedef struct _PublishingAuthenticatorShotwellGoogleSessionClass PublishingAuthenticatorShotwellGoogleSessionClass; -typedef struct _PublishingAuthenticatorShotwellGoogleSessionPrivate PublishingAuthenticatorShotwellGoogleSessionPrivate; - -#define PUBLISHING_AUTHENTICATOR_SHOTWELL_GOOGLE_TYPE_GET_ACCESS_TOKENS_TRANSACTION (publishing_authenticator_shotwell_google_get_access_tokens_transaction_get_type ()) -#define PUBLISHING_AUTHENTICATOR_SHOTWELL_GOOGLE_GET_ACCESS_TOKENS_TRANSACTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_AUTHENTICATOR_SHOTWELL_GOOGLE_TYPE_GET_ACCESS_TOKENS_TRANSACTION, PublishingAuthenticatorShotwellGoogleGetAccessTokensTransaction)) -#define PUBLISHING_AUTHENTICATOR_SHOTWELL_GOOGLE_GET_ACCESS_TOKENS_TRANSACTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_AUTHENTICATOR_SHOTWELL_GOOGLE_TYPE_GET_ACCESS_TOKENS_TRANSACTION, PublishingAuthenticatorShotwellGoogleGetAccessTokensTransactionClass)) -#define PUBLISHING_AUTHENTICATOR_SHOTWELL_GOOGLE_IS_GET_ACCESS_TOKENS_TRANSACTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_AUTHENTICATOR_SHOTWELL_GOOGLE_TYPE_GET_ACCESS_TOKENS_TRANSACTION)) -#define PUBLISHING_AUTHENTICATOR_SHOTWELL_GOOGLE_IS_GET_ACCESS_TOKENS_TRANSACTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_AUTHENTICATOR_SHOTWELL_GOOGLE_TYPE_GET_ACCESS_TOKENS_TRANSACTION)) -#define PUBLISHING_AUTHENTICATOR_SHOTWELL_GOOGLE_GET_ACCESS_TOKENS_TRANSACTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_AUTHENTICATOR_SHOTWELL_GOOGLE_TYPE_GET_ACCESS_TOKENS_TRANSACTION, PublishingAuthenticatorShotwellGoogleGetAccessTokensTransactionClass)) - -typedef struct _PublishingAuthenticatorShotwellGoogleGetAccessTokensTransaction PublishingAuthenticatorShotwellGoogleGetAccessTokensTransaction; -typedef struct _PublishingAuthenticatorShotwellGoogleGetAccessTokensTransactionClass PublishingAuthenticatorShotwellGoogleGetAccessTokensTransactionClass; -typedef struct _PublishingAuthenticatorShotwellGoogleGetAccessTokensTransactionPrivate PublishingAuthenticatorShotwellGoogleGetAccessTokensTransactionPrivate; - -#define PUBLISHING_AUTHENTICATOR_SHOTWELL_GOOGLE_TYPE_REFRESH_ACCESS_TOKEN_TRANSACTION (publishing_authenticator_shotwell_google_refresh_access_token_transaction_get_type ()) -#define PUBLISHING_AUTHENTICATOR_SHOTWELL_GOOGLE_REFRESH_ACCESS_TOKEN_TRANSACTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_AUTHENTICATOR_SHOTWELL_GOOGLE_TYPE_REFRESH_ACCESS_TOKEN_TRANSACTION, PublishingAuthenticatorShotwellGoogleRefreshAccessTokenTransaction)) -#define PUBLISHING_AUTHENTICATOR_SHOTWELL_GOOGLE_REFRESH_ACCESS_TOKEN_TRANSACTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_AUTHENTICATOR_SHOTWELL_GOOGLE_TYPE_REFRESH_ACCESS_TOKEN_TRANSACTION, PublishingAuthenticatorShotwellGoogleRefreshAccessTokenTransactionClass)) -#define PUBLISHING_AUTHENTICATOR_SHOTWELL_GOOGLE_IS_REFRESH_ACCESS_TOKEN_TRANSACTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_AUTHENTICATOR_SHOTWELL_GOOGLE_TYPE_REFRESH_ACCESS_TOKEN_TRANSACTION)) -#define PUBLISHING_AUTHENTICATOR_SHOTWELL_GOOGLE_IS_REFRESH_ACCESS_TOKEN_TRANSACTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_AUTHENTICATOR_SHOTWELL_GOOGLE_TYPE_REFRESH_ACCESS_TOKEN_TRANSACTION)) -#define PUBLISHING_AUTHENTICATOR_SHOTWELL_GOOGLE_REFRESH_ACCESS_TOKEN_TRANSACTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_AUTHENTICATOR_SHOTWELL_GOOGLE_TYPE_REFRESH_ACCESS_TOKEN_TRANSACTION, PublishingAuthenticatorShotwellGoogleRefreshAccessTokenTransactionClass)) - -typedef struct _PublishingAuthenticatorShotwellGoogleRefreshAccessTokenTransaction PublishingAuthenticatorShotwellGoogleRefreshAccessTokenTransaction; -typedef struct _PublishingAuthenticatorShotwellGoogleRefreshAccessTokenTransactionClass PublishingAuthenticatorShotwellGoogleRefreshAccessTokenTransactionClass; -typedef struct _PublishingAuthenticatorShotwellGoogleRefreshAccessTokenTransactionPrivate PublishingAuthenticatorShotwellGoogleRefreshAccessTokenTransactionPrivate; - -#define PUBLISHING_AUTHENTICATOR_SHOTWELL_GOOGLE_TYPE_USERNAME_FETCH_TRANSACTION (publishing_authenticator_shotwell_google_username_fetch_transaction_get_type ()) -#define PUBLISHING_AUTHENTICATOR_SHOTWELL_GOOGLE_USERNAME_FETCH_TRANSACTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_AUTHENTICATOR_SHOTWELL_GOOGLE_TYPE_USERNAME_FETCH_TRANSACTION, PublishingAuthenticatorShotwellGoogleUsernameFetchTransaction)) -#define PUBLISHING_AUTHENTICATOR_SHOTWELL_GOOGLE_USERNAME_FETCH_TRANSACTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_AUTHENTICATOR_SHOTWELL_GOOGLE_TYPE_USERNAME_FETCH_TRANSACTION, PublishingAuthenticatorShotwellGoogleUsernameFetchTransactionClass)) -#define PUBLISHING_AUTHENTICATOR_SHOTWELL_GOOGLE_IS_USERNAME_FETCH_TRANSACTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_AUTHENTICATOR_SHOTWELL_GOOGLE_TYPE_USERNAME_FETCH_TRANSACTION)) -#define PUBLISHING_AUTHENTICATOR_SHOTWELL_GOOGLE_IS_USERNAME_FETCH_TRANSACTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_AUTHENTICATOR_SHOTWELL_GOOGLE_TYPE_USERNAME_FETCH_TRANSACTION)) -#define PUBLISHING_AUTHENTICATOR_SHOTWELL_GOOGLE_USERNAME_FETCH_TRANSACTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_AUTHENTICATOR_SHOTWELL_GOOGLE_TYPE_USERNAME_FETCH_TRANSACTION, PublishingAuthenticatorShotwellGoogleUsernameFetchTransactionClass)) - -typedef struct _PublishingAuthenticatorShotwellGoogleUsernameFetchTransaction PublishingAuthenticatorShotwellGoogleUsernameFetchTransaction; -typedef struct _PublishingAuthenticatorShotwellGoogleUsernameFetchTransactionClass PublishingAuthenticatorShotwellGoogleUsernameFetchTransactionClass; -typedef struct _PublishingAuthenticatorShotwellGoogleUsernameFetchTransactionPrivate PublishingAuthenticatorShotwellGoogleUsernameFetchTransactionPrivate; - -#define PUBLISHING_AUTHENTICATOR_SHOTWELL_GOOGLE_TYPE_GOOGLE (publishing_authenticator_shotwell_google_google_get_type ()) -#define PUBLISHING_AUTHENTICATOR_SHOTWELL_GOOGLE_GOOGLE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_AUTHENTICATOR_SHOTWELL_GOOGLE_TYPE_GOOGLE, PublishingAuthenticatorShotwellGoogleGoogle)) -#define PUBLISHING_AUTHENTICATOR_SHOTWELL_GOOGLE_GOOGLE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_AUTHENTICATOR_SHOTWELL_GOOGLE_TYPE_GOOGLE, PublishingAuthenticatorShotwellGoogleGoogleClass)) -#define PUBLISHING_AUTHENTICATOR_SHOTWELL_GOOGLE_IS_GOOGLE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_AUTHENTICATOR_SHOTWELL_GOOGLE_TYPE_GOOGLE)) -#define PUBLISHING_AUTHENTICATOR_SHOTWELL_GOOGLE_IS_GOOGLE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_AUTHENTICATOR_SHOTWELL_GOOGLE_TYPE_GOOGLE)) -#define PUBLISHING_AUTHENTICATOR_SHOTWELL_GOOGLE_GOOGLE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_AUTHENTICATOR_SHOTWELL_GOOGLE_TYPE_GOOGLE, PublishingAuthenticatorShotwellGoogleGoogleClass)) - -typedef struct _PublishingAuthenticatorShotwellGoogleGoogle PublishingAuthenticatorShotwellGoogleGoogle; -typedef struct _PublishingAuthenticatorShotwellGoogleGoogleClass PublishingAuthenticatorShotwellGoogleGoogleClass; -typedef struct _PublishingAuthenticatorShotwellGoogleGooglePrivate PublishingAuthenticatorShotwellGoogleGooglePrivate; -enum { - PUBLISHING_AUTHENTICATOR_SHOTWELL_GOOGLE_GOOGLE_0_PROPERTY, - PUBLISHING_AUTHENTICATOR_SHOTWELL_GOOGLE_GOOGLE_NUM_PROPERTIES -}; -static GParamSpec* publishing_authenticator_shotwell_google_google_properties[PUBLISHING_AUTHENTICATOR_SHOTWELL_GOOGLE_GOOGLE_NUM_PROPERTIES]; -#define _publishing_rest_support_session_unref0(var) ((var == NULL) ? NULL : (var = (publishing_rest_support_session_unref (var), NULL))) -#define _publishing_rest_support_transaction_unref0(var) ((var == NULL) ? NULL : (var = (publishing_rest_support_transaction_unref (var), NULL))) -#define _g_error_free0(var) ((var == NULL) ? NULL : (var = (g_error_free (var), NULL))) -#define _json_object_unref0(var) ((var == NULL) ? NULL : (var = (json_object_unref (var), NULL))) -#define _vala_assert(expr, msg) if G_LIKELY (expr) ; else g_assertion_message_expr (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg); -#define _vala_return_if_fail(expr, msg) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return; } -#define _vala_return_val_if_fail(expr, msg, val) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return val; } -#define _vala_warn_if_fail(expr, msg) if G_LIKELY (expr) ; else g_warn_message (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg); - -struct _PublishingAuthenticatorShotwellGoogleWebAuthenticationPane { - ShotwellPluginsCommonWebAuthenticationPane parent_instance; - PublishingAuthenticatorShotwellGoogleWebAuthenticationPanePrivate * priv; -}; - -struct _PublishingAuthenticatorShotwellGoogleWebAuthenticationPaneClass { - ShotwellPluginsCommonWebAuthenticationPaneClass parent_class; -}; - -struct _PublishingAuthenticatorShotwellGoogleWebAuthenticationPanePrivate { - gchar* auth_code; -}; - -struct _PublishingAuthenticatorShotwellGoogleSession { - PublishingRESTSupportSession parent_instance; - PublishingAuthenticatorShotwellGoogleSessionPrivate * priv; - gchar* access_token; - gchar* refresh_token; - gint64 expires_at; -}; - -struct _PublishingAuthenticatorShotwellGoogleSessionClass { - PublishingRESTSupportSessionClass parent_class; -}; - -struct _PublishingAuthenticatorShotwellGoogleGetAccessTokensTransaction { - PublishingRESTSupportTransaction parent_instance; - PublishingAuthenticatorShotwellGoogleGetAccessTokensTransactionPrivate * priv; -}; - -struct _PublishingAuthenticatorShotwellGoogleGetAccessTokensTransactionClass { - PublishingRESTSupportTransactionClass parent_class; -}; - -struct _PublishingAuthenticatorShotwellGoogleRefreshAccessTokenTransaction { - PublishingRESTSupportTransaction parent_instance; - PublishingAuthenticatorShotwellGoogleRefreshAccessTokenTransactionPrivate * priv; -}; - -struct _PublishingAuthenticatorShotwellGoogleRefreshAccessTokenTransactionClass { - PublishingRESTSupportTransactionClass parent_class; -}; - -struct _PublishingAuthenticatorShotwellGoogleUsernameFetchTransaction { - PublishingRESTSupportTransaction parent_instance; - PublishingAuthenticatorShotwellGoogleUsernameFetchTransactionPrivate * priv; -}; - -struct _PublishingAuthenticatorShotwellGoogleUsernameFetchTransactionClass { - PublishingRESTSupportTransactionClass parent_class; -}; - -struct _PublishingAuthenticatorShotwellGoogleGoogle { - GObject parent_instance; - PublishingAuthenticatorShotwellGoogleGooglePrivate * priv; -}; - -struct _PublishingAuthenticatorShotwellGoogleGoogleClass { - GObjectClass parent_class; -}; - -struct _PublishingAuthenticatorShotwellGoogleGooglePrivate { - gchar* scope; - SpitPublishingPluginHost* host; - GHashTable* params; - PublishingAuthenticatorShotwellGoogleWebAuthenticationPane* web_auth_pane; - PublishingAuthenticatorShotwellGoogleSession* session; - gchar* welcome_message; -}; - - -static gpointer publishing_authenticator_shotwell_google_web_authentication_pane_parent_class = NULL; -extern gboolean publishing_authenticator_shotwell_google_web_authentication_pane_cache_dirty; -gboolean publishing_authenticator_shotwell_google_web_authentication_pane_cache_dirty = FALSE; -static gpointer publishing_authenticator_shotwell_google_session_parent_class = NULL; -static gpointer publishing_authenticator_shotwell_google_get_access_tokens_transaction_parent_class = NULL; -static gpointer publishing_authenticator_shotwell_google_refresh_access_token_transaction_parent_class = NULL; -static gpointer publishing_authenticator_shotwell_google_username_fetch_transaction_parent_class = NULL; -static gpointer publishing_authenticator_shotwell_google_google_parent_class = NULL; -static SpitPublishingAuthenticatorIface * publishing_authenticator_shotwell_google_google_spit_publishing_authenticator_parent_iface = NULL; - -#define PUBLISHING_AUTHENTICATOR_SHOTWELL_GOOGLE_OAUTH_CLIENT_ID "534227538559-hvj2e8bj0vfv2f49r7gvjoq6jibfav67.apps.googleusercontent.c" \ -"om" -#define PUBLISHING_AUTHENTICATOR_SHOTWELL_GOOGLE_REVERSE_CLIENT_ID "com.googleusercontent.apps.534227538559-hvj2e8bj0vfv2f49r7gvjoq6jibfav" \ -"67" -#define PUBLISHING_AUTHENTICATOR_SHOTWELL_GOOGLE_OAUTH_CLIENT_SECRET "pwpzZ7W1TCcD5uIfYCu8sM7x" -#define PUBLISHING_AUTHENTICATOR_SHOTWELL_GOOGLE_OAUTH_CALLBACK_URI PUBLISHING_AUTHENTICATOR_SHOTWELL_GOOGLE_REVERSE_CLIENT_ID ":/auth-callback" -GType publishing_authenticator_shotwell_google_web_authentication_pane_get_type (void) G_GNUC_CONST; -#define PUBLISHING_AUTHENTICATOR_SHOTWELL_GOOGLE_WEB_AUTHENTICATION_PANE_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), PUBLISHING_AUTHENTICATOR_SHOTWELL_GOOGLE_TYPE_WEB_AUTHENTICATION_PANE, PublishingAuthenticatorShotwellGoogleWebAuthenticationPanePrivate)) -static void publishing_authenticator_shotwell_google_web_authentication_pane_real_constructed (GObject* base); -static void publishing_authenticator_shotwell_google_web_authentication_pane_on_shotwell_auth_request_cb (PublishingAuthenticatorShotwellGoogleWebAuthenticationPane* self, - WebKitURISchemeRequest* request); -static void _publishing_authenticator_shotwell_google_web_authentication_pane_on_shotwell_auth_request_cb_web_kit_uri_scheme_request_callback (WebKitURISchemeRequest* request, - gpointer self); -static void publishing_authenticator_shotwell_google_web_authentication_pane_real_on_page_load (ShotwellPluginsCommonWebAuthenticationPane* base); -static void _vala_SoupURI_free (SoupURI* self); -static guint8* _vala_array_dup2 (guint8* self, - int length); -PublishingAuthenticatorShotwellGoogleWebAuthenticationPane* publishing_authenticator_shotwell_google_web_authentication_pane_new (const gchar* auth_sequence_start_url); -PublishingAuthenticatorShotwellGoogleWebAuthenticationPane* publishing_authenticator_shotwell_google_web_authentication_pane_construct (GType object_type, - const gchar* auth_sequence_start_url); -gboolean publishing_authenticator_shotwell_google_web_authentication_pane_is_cache_dirty (void); -static void publishing_authenticator_shotwell_google_web_authentication_pane_finalize (GObject * obj); -GType publishing_authenticator_shotwell_google_session_get_type (void) G_GNUC_CONST; -static gboolean publishing_authenticator_shotwell_google_session_real_is_authenticated (PublishingRESTSupportSession* base); -void publishing_authenticator_shotwell_google_session_deauthenticate (PublishingAuthenticatorShotwellGoogleSession* self); -PublishingAuthenticatorShotwellGoogleSession* publishing_authenticator_shotwell_google_session_new (void); -PublishingAuthenticatorShotwellGoogleSession* publishing_authenticator_shotwell_google_session_construct (GType object_type); -static void publishing_authenticator_shotwell_google_session_finalize (PublishingRESTSupportSession * obj); -GType publishing_authenticator_shotwell_google_get_access_tokens_transaction_get_type (void) G_GNUC_CONST; -#define PUBLISHING_AUTHENTICATOR_SHOTWELL_GOOGLE_GET_ACCESS_TOKENS_TRANSACTION_ENDPOINT_URL "https://accounts.google.com/o/oauth2/token" -PublishingAuthenticatorShotwellGoogleGetAccessTokensTransaction* publishing_authenticator_shotwell_google_get_access_tokens_transaction_new (PublishingAuthenticatorShotwellGoogleSession* session, - const gchar* auth_code); -PublishingAuthenticatorShotwellGoogleGetAccessTokensTransaction* publishing_authenticator_shotwell_google_get_access_tokens_transaction_construct (GType object_type, - PublishingAuthenticatorShotwellGoogleSession* session, - const gchar* auth_code); -GType publishing_authenticator_shotwell_google_refresh_access_token_transaction_get_type (void) G_GNUC_CONST; -#define PUBLISHING_AUTHENTICATOR_SHOTWELL_GOOGLE_REFRESH_ACCESS_TOKEN_TRANSACTION_ENDPOINT_URL "https://accounts.google.com/o/oauth2/token" -PublishingAuthenticatorShotwellGoogleRefreshAccessTokenTransaction* publishing_authenticator_shotwell_google_refresh_access_token_transaction_new (PublishingAuthenticatorShotwellGoogleSession* session); -PublishingAuthenticatorShotwellGoogleRefreshAccessTokenTransaction* publishing_authenticator_shotwell_google_refresh_access_token_transaction_construct (GType object_type, - PublishingAuthenticatorShotwellGoogleSession* session); -GType publishing_authenticator_shotwell_google_username_fetch_transaction_get_type (void) G_GNUC_CONST; -#define PUBLISHING_AUTHENTICATOR_SHOTWELL_GOOGLE_USERNAME_FETCH_TRANSACTION_ENDPOINT_URL "https://www.googleapis.com/oauth2/v1/userinfo" -PublishingAuthenticatorShotwellGoogleUsernameFetchTransaction* publishing_authenticator_shotwell_google_username_fetch_transaction_new (PublishingAuthenticatorShotwellGoogleSession* session); -PublishingAuthenticatorShotwellGoogleUsernameFetchTransaction* publishing_authenticator_shotwell_google_username_fetch_transaction_construct (GType object_type, - PublishingAuthenticatorShotwellGoogleSession* session); -GType publishing_authenticator_shotwell_google_google_get_type (void) G_GNUC_CONST; -#define PUBLISHING_AUTHENTICATOR_SHOTWELL_GOOGLE_GOOGLE_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), PUBLISHING_AUTHENTICATOR_SHOTWELL_GOOGLE_TYPE_GOOGLE, PublishingAuthenticatorShotwellGoogleGooglePrivate)) -PublishingAuthenticatorShotwellGoogleGoogle* publishing_authenticator_shotwell_google_google_new (const gchar* scope, - const gchar* welcome_message, - SpitPublishingPluginHost* host); -PublishingAuthenticatorShotwellGoogleGoogle* publishing_authenticator_shotwell_google_google_construct (GType object_type, - const gchar* scope, - const gchar* welcome_message, - SpitPublishingPluginHost* host); -static void _g_free0_ (gpointer var); -static void _g_variant_unref0_ (gpointer var); -static void publishing_authenticator_shotwell_google_google_real_authenticate (SpitPublishingAuthenticator* base); -static void publishing_authenticator_shotwell_google_google_on_refresh_token_available (PublishingAuthenticatorShotwellGoogleGoogle* self, - const gchar* token); -static void publishing_authenticator_shotwell_google_google_do_exchange_refresh_token_for_access_token (PublishingAuthenticatorShotwellGoogleGoogle* self); -static void publishing_authenticator_shotwell_google_google_do_show_service_welcome_pane (PublishingAuthenticatorShotwellGoogleGoogle* self); -static gboolean publishing_authenticator_shotwell_google_google_real_can_logout (SpitPublishingAuthenticator* base); -static GHashTable* publishing_authenticator_shotwell_google_google_real_get_authentication_parameter (SpitPublishingAuthenticator* base); -static void publishing_authenticator_shotwell_google_google_real_logout (SpitPublishingAuthenticator* base); -static void publishing_authenticator_shotwell_google_google_real_refresh (SpitPublishingAuthenticator* base); -static void publishing_authenticator_shotwell_google_google_do_hosted_web_authentication (PublishingAuthenticatorShotwellGoogleGoogle* self); -static void publishing_authenticator_shotwell_google_google_on_web_auth_pane_authorized (PublishingAuthenticatorShotwellGoogleGoogle* self, - const gchar* auth_code); -static void _publishing_authenticator_shotwell_google_google_on_web_auth_pane_authorized_publishing_authenticator_shotwell_google_web_authentication_pane_authorized (PublishingAuthenticatorShotwellGoogleWebAuthenticationPane* _sender, - const gchar* auth_code, - gpointer self); -static void publishing_authenticator_shotwell_google_google_do_get_access_tokens (PublishingAuthenticatorShotwellGoogleGoogle* self, - const gchar* auth_code); -static void publishing_authenticator_shotwell_google_google_on_get_access_tokens_complete (PublishingAuthenticatorShotwellGoogleGoogle* self, - PublishingRESTSupportTransaction* txn); -static void _publishing_authenticator_shotwell_google_google_on_get_access_tokens_complete_publishing_rest_support_transaction_completed (PublishingRESTSupportTransaction* _sender, - gpointer self); -static void publishing_authenticator_shotwell_google_google_on_get_access_tokens_error (PublishingAuthenticatorShotwellGoogleGoogle* self, - PublishingRESTSupportTransaction* txn, - GError* err); -static void _publishing_authenticator_shotwell_google_google_on_get_access_tokens_error_publishing_rest_support_transaction_network_error (PublishingRESTSupportTransaction* _sender, - GError* err, - gpointer self); -static void publishing_authenticator_shotwell_google_google_do_extract_tokens (PublishingAuthenticatorShotwellGoogleGoogle* self, - const gchar* response_body); -static void publishing_authenticator_shotwell_google_google_on_expiry_time_avilable (PublishingAuthenticatorShotwellGoogleGoogle* self, - gint64 abs_time); -static void publishing_authenticator_shotwell_google_google_on_access_token_available (PublishingAuthenticatorShotwellGoogleGoogle* self, - const gchar* token); -static void publishing_authenticator_shotwell_google_google_do_fetch_username (PublishingAuthenticatorShotwellGoogleGoogle* self); -static void publishing_authenticator_shotwell_google_google_on_fetch_username_transaction_completed (PublishingAuthenticatorShotwellGoogleGoogle* self, - PublishingRESTSupportTransaction* txn); -static void _publishing_authenticator_shotwell_google_google_on_fetch_username_transaction_completed_publishing_rest_support_transaction_completed (PublishingRESTSupportTransaction* _sender, - gpointer self); -static void publishing_authenticator_shotwell_google_google_on_fetch_username_transaction_error (PublishingAuthenticatorShotwellGoogleGoogle* self, - PublishingRESTSupportTransaction* txn, - GError* err); -static void _publishing_authenticator_shotwell_google_google_on_fetch_username_transaction_error_publishing_rest_support_transaction_network_error (PublishingRESTSupportTransaction* _sender, - GError* err, - gpointer self); -static void publishing_authenticator_shotwell_google_google_do_extract_username (PublishingAuthenticatorShotwellGoogleGoogle* self, - const gchar* response_body); -static void publishing_authenticator_shotwell_google_google_on_refresh_access_token_transaction_completed (PublishingAuthenticatorShotwellGoogleGoogle* self, - PublishingRESTSupportTransaction* txn); -static void _publishing_authenticator_shotwell_google_google_on_refresh_access_token_transaction_completed_publishing_rest_support_transaction_completed (PublishingRESTSupportTransaction* _sender, - gpointer self); -static void publishing_authenticator_shotwell_google_google_on_refresh_access_token_transaction_error (PublishingAuthenticatorShotwellGoogleGoogle* self, - PublishingRESTSupportTransaction* txn, - GError* err); -static void _publishing_authenticator_shotwell_google_google_on_refresh_access_token_transaction_error_publishing_rest_support_transaction_network_error (PublishingRESTSupportTransaction* _sender, - GError* err, - gpointer self); -static gboolean ___lambda4_ (PublishingAuthenticatorShotwellGoogleGoogle* self); -static gboolean ____lambda4__gsource_func (gpointer self); -static void publishing_authenticator_shotwell_google_google_on_service_welcome_login (PublishingAuthenticatorShotwellGoogleGoogle* self); -static void _publishing_authenticator_shotwell_google_google_on_service_welcome_login_spit_publishing_login_callback (gpointer self); -static void publishing_authenticator_shotwell_google_google_finalize (GObject * obj); - - -static gpointer -_g_object_ref0 (gpointer self) -{ -#line 19 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - return self ? g_object_ref (self) : NULL; -#line 317 "GoogleAuthenticator.c" -} - - -static void -_publishing_authenticator_shotwell_google_web_authentication_pane_on_shotwell_auth_request_cb_web_kit_uri_scheme_request_callback (WebKitURISchemeRequest* request, - gpointer self) -{ -#line 20 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - publishing_authenticator_shotwell_google_web_authentication_pane_on_shotwell_auth_request_cb ((PublishingAuthenticatorShotwellGoogleWebAuthenticationPane*) self, request); -#line 327 "GoogleAuthenticator.c" -} - - -static void -publishing_authenticator_shotwell_google_web_authentication_pane_real_constructed (GObject* base) -{ - PublishingAuthenticatorShotwellGoogleWebAuthenticationPane * self; - WebKitWebContext* ctx = NULL; - WebKitWebContext* _tmp0_; - WebKitWebContext* _tmp1_; -#line 16 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_AUTHENTICATOR_SHOTWELL_GOOGLE_TYPE_WEB_AUTHENTICATION_PANE, PublishingAuthenticatorShotwellGoogleWebAuthenticationPane); -#line 17 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - G_OBJECT_CLASS (publishing_authenticator_shotwell_google_web_authentication_pane_parent_class)->constructed (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, SHOTWELL_PLUGINS_COMMON_TYPE_WEB_AUTHENTICATION_PANE, ShotwellPluginsCommonWebAuthenticationPane), G_TYPE_OBJECT, GObject)); -#line 19 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _tmp0_ = webkit_web_context_get_default (); -#line 19 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _tmp1_ = _g_object_ref0 (_tmp0_); -#line 19 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - ctx = _tmp1_; -#line 20 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - webkit_web_context_register_uri_scheme (ctx, PUBLISHING_AUTHENTICATOR_SHOTWELL_GOOGLE_REVERSE_CLIENT_ID, _publishing_authenticator_shotwell_google_web_authentication_pane_on_shotwell_auth_request_cb_web_kit_uri_scheme_request_callback, g_object_ref (self), g_object_unref); -#line 16 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _g_object_unref0 (ctx); -#line 352 "GoogleAuthenticator.c" -} - - -static void -_vala_SoupURI_free (SoupURI* self) -{ -#line 23 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - g_boxed_free (soup_uri_get_type (), self); -#line 361 "GoogleAuthenticator.c" -} - - -static void -publishing_authenticator_shotwell_google_web_authentication_pane_real_on_page_load (ShotwellPluginsCommonWebAuthenticationPane* base) -{ - PublishingAuthenticatorShotwellGoogleWebAuthenticationPane * self; - SoupURI* uri = NULL; - WebKitWebView* _tmp0_; - WebKitWebView* _tmp1_; - const gchar* _tmp2_; - SoupURI* _tmp3_; - SoupURI* _tmp4_; - gboolean _tmp5_ = FALSE; - SoupURI* _tmp6_; - const gchar* _tmp7_; - const gchar* _tmp9_; -#line 23 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_AUTHENTICATOR_SHOTWELL_GOOGLE_TYPE_WEB_AUTHENTICATION_PANE, PublishingAuthenticatorShotwellGoogleWebAuthenticationPane); -#line 24 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _tmp0_ = shotwell_plugins_common_web_authentication_pane_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, SHOTWELL_PLUGINS_COMMON_TYPE_WEB_AUTHENTICATION_PANE, ShotwellPluginsCommonWebAuthenticationPane)); -#line 24 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _tmp1_ = _tmp0_; -#line 24 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _tmp2_ = webkit_web_view_get_uri (_tmp1_); -#line 24 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _tmp3_ = soup_uri_new (_tmp2_); -#line 24 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _tmp4_ = _tmp3_; -#line 24 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _g_object_unref0 (_tmp1_); -#line 24 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - uri = _tmp4_; -#line 25 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _tmp6_ = uri; -#line 25 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _tmp7_ = _tmp6_->scheme; -#line 25 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - if (g_strcmp0 (_tmp7_, PUBLISHING_AUTHENTICATOR_SHOTWELL_GOOGLE_REVERSE_CLIENT_ID) == 0) { -#line 401 "GoogleAuthenticator.c" - const gchar* _tmp8_; -#line 25 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _tmp8_ = self->priv->auth_code; -#line 25 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _tmp5_ = _tmp8_ == NULL; -#line 407 "GoogleAuthenticator.c" - } else { -#line 25 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _tmp5_ = FALSE; -#line 411 "GoogleAuthenticator.c" - } -#line 25 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - if (_tmp5_) { -#line 26 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - g_signal_emit (self, publishing_authenticator_shotwell_google_web_authentication_pane_signals[PUBLISHING_AUTHENTICATOR_SHOTWELL_GOOGLE_WEB_AUTHENTICATION_PANE_ERROR_SIGNAL], 0); -#line 417 "GoogleAuthenticator.c" - } -#line 29 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _tmp9_ = self->priv->auth_code; -#line 29 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - if (_tmp9_ != NULL) { -#line 423 "GoogleAuthenticator.c" - const gchar* _tmp10_; -#line 30 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _tmp10_ = self->priv->auth_code; -#line 30 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - g_signal_emit (self, publishing_authenticator_shotwell_google_web_authentication_pane_signals[PUBLISHING_AUTHENTICATOR_SHOTWELL_GOOGLE_WEB_AUTHENTICATION_PANE_AUTHORIZED_SIGNAL], 0, _tmp10_); -#line 429 "GoogleAuthenticator.c" - } -#line 23 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - __vala_SoupURI_free0 (uri); -#line 433 "GoogleAuthenticator.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 1442 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - g_return_val_if_fail (self != NULL, NULL); -#line 1443 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - res = (guint8*) self; -#line 1443 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - res_length1 = -1; -#line 1443 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _res_size_ = res_length1; -#line 1444 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp0_ = strlen (self); -#line 1444 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp1_ = _tmp0_; -#line 1444 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - res_length1 = (gint) _tmp1_; -#line 1444 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp2_ = res_length1; -#line 1445 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp3_ = res; -#line 1445 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp3__length1 = res_length1; -#line 1445 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp4_ = _tmp3_; -#line 1445 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp4__length1 = _tmp3__length1; -#line 1445 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - if (result_length1) { -#line 1445 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - *result_length1 = _tmp4__length1; -#line 480 "GoogleAuthenticator.c" - } -#line 1445 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - result = _tmp4_; -#line 1445 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - return result; -#line 486 "GoogleAuthenticator.c" -} - - -static guint8* -_vala_array_dup2 (guint8* self, - int length) -{ -#line 41 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - return g_memdup (self, length * sizeof (guint8)); -#line 496 "GoogleAuthenticator.c" -} - - -static void -publishing_authenticator_shotwell_google_web_authentication_pane_on_shotwell_auth_request_cb (PublishingAuthenticatorShotwellGoogleWebAuthenticationPane* self, - WebKitURISchemeRequest* request) -{ - SoupURI* uri = NULL; - const gchar* _tmp0_; - SoupURI* _tmp1_; - const gchar* _tmp2_; - GHashTable* form_data = NULL; - const gchar* _tmp3_; - GHashTable* _tmp4_; - gconstpointer _tmp5_; - gchar* _tmp6_; - gchar* response = NULL; - gchar* _tmp7_; - GMemoryInputStream* mins = NULL; - guint8* _tmp8_; - gint _tmp8__length1; - guint8* _tmp9_; - gint _tmp9__length1; - guint8* _tmp10_; - gint _tmp10__length1; - GMemoryInputStream* _tmp11_; -#line 34 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - g_return_if_fail (PUBLISHING_AUTHENTICATOR_SHOTWELL_GOOGLE_IS_WEB_AUTHENTICATION_PANE (self)); -#line 34 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - g_return_if_fail (WEBKIT_IS_URI_SCHEME_REQUEST (request)); -#line 35 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _tmp0_ = webkit_uri_scheme_request_get_uri (request); -#line 35 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _tmp1_ = soup_uri_new (_tmp0_); -#line 35 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - uri = _tmp1_; -#line 36 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _tmp2_ = webkit_uri_scheme_request_get_uri (request); -#line 36 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - g_debug ("GoogleAuthenticator.vala:36: URI: %s", _tmp2_); -#line 37 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _tmp3_ = uri->query; -#line 37 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _tmp4_ = soup_form_decode (_tmp3_); -#line 37 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - form_data = _tmp4_; -#line 38 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _tmp5_ = g_hash_table_lookup (form_data, "code"); -#line 38 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _tmp6_ = g_strdup ((const gchar*) _tmp5_); -#line 38 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _g_free0 (self->priv->auth_code); -#line 38 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - self->priv->auth_code = _tmp6_; -#line 40 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _tmp7_ = g_strdup (""); -#line 40 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - response = _tmp7_; -#line 41 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _tmp8_ = string_get_data (response, &_tmp8__length1); -#line 41 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _tmp9_ = _tmp8_; -#line 41 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _tmp9__length1 = _tmp8__length1; -#line 41 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _tmp10_ = (_tmp9_ != NULL) ? _vala_array_dup2 (_tmp9_, _tmp9__length1) : ((gpointer) _tmp9_); -#line 41 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _tmp10__length1 = _tmp9__length1; -#line 41 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _tmp11_ = (GMemoryInputStream*) g_memory_input_stream_new_from_data (_tmp10_, _tmp10__length1, NULL); -#line 41 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - mins = _tmp11_; -#line 42 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - webkit_uri_scheme_request_finish (request, G_TYPE_CHECK_INSTANCE_CAST (mins, g_input_stream_get_type (), GInputStream), (gint64) -1, "text/plain"); -#line 34 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _g_object_unref0 (mins); -#line 34 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _g_free0 (response); -#line 34 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _g_hash_table_unref0 (form_data); -#line 34 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - __vala_SoupURI_free0 (uri); -#line 579 "GoogleAuthenticator.c" -} - - -PublishingAuthenticatorShotwellGoogleWebAuthenticationPane* -publishing_authenticator_shotwell_google_web_authentication_pane_construct (GType object_type, - const gchar* auth_sequence_start_url) -{ - PublishingAuthenticatorShotwellGoogleWebAuthenticationPane * self = NULL; -#line 47 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - g_return_val_if_fail (auth_sequence_start_url != NULL, NULL); -#line 48 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - self = (PublishingAuthenticatorShotwellGoogleWebAuthenticationPane*) g_object_new (object_type, "login-uri", auth_sequence_start_url, NULL); -#line 47 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - return self; -#line 594 "GoogleAuthenticator.c" -} - - -PublishingAuthenticatorShotwellGoogleWebAuthenticationPane* -publishing_authenticator_shotwell_google_web_authentication_pane_new (const gchar* auth_sequence_start_url) -{ -#line 47 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - return publishing_authenticator_shotwell_google_web_authentication_pane_construct (PUBLISHING_AUTHENTICATOR_SHOTWELL_GOOGLE_TYPE_WEB_AUTHENTICATION_PANE, auth_sequence_start_url); -#line 603 "GoogleAuthenticator.c" -} - - -gboolean -publishing_authenticator_shotwell_google_web_authentication_pane_is_cache_dirty (void) -{ - gboolean result = FALSE; - gboolean _tmp0_; -#line 52 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _tmp0_ = publishing_authenticator_shotwell_google_web_authentication_pane_cache_dirty; -#line 52 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - result = _tmp0_; -#line 52 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - return result; -#line 618 "GoogleAuthenticator.c" -} - - -static void -publishing_authenticator_shotwell_google_web_authentication_pane_class_init (PublishingAuthenticatorShotwellGoogleWebAuthenticationPaneClass * klass) -{ -#line 10 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - publishing_authenticator_shotwell_google_web_authentication_pane_parent_class = g_type_class_peek_parent (klass); -#line 10 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - g_type_class_add_private (klass, sizeof (PublishingAuthenticatorShotwellGoogleWebAuthenticationPanePrivate)); -#line 10 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - ((GObjectClass *) klass)->constructed = (void (*) (GObject *)) publishing_authenticator_shotwell_google_web_authentication_pane_real_constructed; -#line 10 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - ((ShotwellPluginsCommonWebAuthenticationPaneClass *) klass)->on_page_load = (void (*) (ShotwellPluginsCommonWebAuthenticationPane *)) publishing_authenticator_shotwell_google_web_authentication_pane_real_on_page_load; -#line 10 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - G_OBJECT_CLASS (klass)->finalize = publishing_authenticator_shotwell_google_web_authentication_pane_finalize; -#line 10 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - publishing_authenticator_shotwell_google_web_authentication_pane_signals[PUBLISHING_AUTHENTICATOR_SHOTWELL_GOOGLE_WEB_AUTHENTICATION_PANE_ERROR_SIGNAL] = g_signal_new ("error", PUBLISHING_AUTHENTICATOR_SHOTWELL_GOOGLE_TYPE_WEB_AUTHENTICATION_PANE, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_marshal_VOID__VOID, G_TYPE_NONE, 0); -#line 10 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - publishing_authenticator_shotwell_google_web_authentication_pane_signals[PUBLISHING_AUTHENTICATOR_SHOTWELL_GOOGLE_WEB_AUTHENTICATION_PANE_AUTHORIZED_SIGNAL] = g_signal_new ("authorized", PUBLISHING_AUTHENTICATOR_SHOTWELL_GOOGLE_TYPE_WEB_AUTHENTICATION_PANE, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_marshal_VOID__STRING, G_TYPE_NONE, 1, G_TYPE_STRING); -#line 639 "GoogleAuthenticator.c" -} - - -static void -publishing_authenticator_shotwell_google_web_authentication_pane_instance_init (PublishingAuthenticatorShotwellGoogleWebAuthenticationPane * self) -{ -#line 10 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - self->priv = PUBLISHING_AUTHENTICATOR_SHOTWELL_GOOGLE_WEB_AUTHENTICATION_PANE_GET_PRIVATE (self); -#line 12 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - self->priv->auth_code = NULL; -#line 650 "GoogleAuthenticator.c" -} - - -static void -publishing_authenticator_shotwell_google_web_authentication_pane_finalize (GObject * obj) -{ - PublishingAuthenticatorShotwellGoogleWebAuthenticationPane * self; -#line 10 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, PUBLISHING_AUTHENTICATOR_SHOTWELL_GOOGLE_TYPE_WEB_AUTHENTICATION_PANE, PublishingAuthenticatorShotwellGoogleWebAuthenticationPane); -#line 12 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _g_free0 (self->priv->auth_code); -#line 10 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - G_OBJECT_CLASS (publishing_authenticator_shotwell_google_web_authentication_pane_parent_class)->finalize (obj); -#line 664 "GoogleAuthenticator.c" -} - - -GType -publishing_authenticator_shotwell_google_web_authentication_pane_get_type (void) -{ - static volatile gsize publishing_authenticator_shotwell_google_web_authentication_pane_type_id__volatile = 0; - if (g_once_init_enter (&publishing_authenticator_shotwell_google_web_authentication_pane_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (PublishingAuthenticatorShotwellGoogleWebAuthenticationPaneClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) publishing_authenticator_shotwell_google_web_authentication_pane_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PublishingAuthenticatorShotwellGoogleWebAuthenticationPane), 0, (GInstanceInitFunc) publishing_authenticator_shotwell_google_web_authentication_pane_instance_init, NULL }; - GType publishing_authenticator_shotwell_google_web_authentication_pane_type_id; - publishing_authenticator_shotwell_google_web_authentication_pane_type_id = g_type_register_static (SHOTWELL_PLUGINS_COMMON_TYPE_WEB_AUTHENTICATION_PANE, "PublishingAuthenticatorShotwellGoogleWebAuthenticationPane", &g_define_type_info, 0); - g_once_init_leave (&publishing_authenticator_shotwell_google_web_authentication_pane_type_id__volatile, publishing_authenticator_shotwell_google_web_authentication_pane_type_id); - } - return publishing_authenticator_shotwell_google_web_authentication_pane_type_id__volatile; -} - - -static gboolean -publishing_authenticator_shotwell_google_session_real_is_authenticated (PublishingRESTSupportSession* base) -{ - PublishingAuthenticatorShotwellGoogleSession * self; - gboolean result = FALSE; - const gchar* _tmp0_; -#line 61 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_AUTHENTICATOR_SHOTWELL_GOOGLE_TYPE_SESSION, PublishingAuthenticatorShotwellGoogleSession); -#line 62 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _tmp0_ = self->access_token; -#line 62 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - result = _tmp0_ != NULL; -#line 62 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - return result; -#line 696 "GoogleAuthenticator.c" -} - - -void -publishing_authenticator_shotwell_google_session_deauthenticate (PublishingAuthenticatorShotwellGoogleSession* self) -{ -#line 65 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - g_return_if_fail (PUBLISHING_AUTHENTICATOR_SHOTWELL_GOOGLE_IS_SESSION (self)); -#line 66 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _g_free0 (self->access_token); -#line 66 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - self->access_token = NULL; -#line 67 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _g_free0 (self->refresh_token); -#line 67 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - self->refresh_token = NULL; -#line 68 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - self->expires_at = (gint64) -1; -#line 715 "GoogleAuthenticator.c" -} - - -PublishingAuthenticatorShotwellGoogleSession* -publishing_authenticator_shotwell_google_session_construct (GType object_type) -{ - PublishingAuthenticatorShotwellGoogleSession* self = NULL; -#line 56 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - self = (PublishingAuthenticatorShotwellGoogleSession*) publishing_rest_support_session_construct (object_type, NULL); -#line 56 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - return self; -#line 727 "GoogleAuthenticator.c" -} - - -PublishingAuthenticatorShotwellGoogleSession* -publishing_authenticator_shotwell_google_session_new (void) -{ -#line 56 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - return publishing_authenticator_shotwell_google_session_construct (PUBLISHING_AUTHENTICATOR_SHOTWELL_GOOGLE_TYPE_SESSION); -#line 736 "GoogleAuthenticator.c" -} - - -static void -publishing_authenticator_shotwell_google_session_class_init (PublishingAuthenticatorShotwellGoogleSessionClass * klass) -{ -#line 56 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - publishing_authenticator_shotwell_google_session_parent_class = g_type_class_peek_parent (klass); -#line 56 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - ((PublishingRESTSupportSessionClass *) klass)->finalize = publishing_authenticator_shotwell_google_session_finalize; -#line 56 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - ((PublishingRESTSupportSessionClass *) klass)->is_authenticated = (gboolean (*) (PublishingRESTSupportSession *)) publishing_authenticator_shotwell_google_session_real_is_authenticated; -#line 749 "GoogleAuthenticator.c" -} - - -static void -publishing_authenticator_shotwell_google_session_instance_init (PublishingAuthenticatorShotwellGoogleSession * self) -{ -#line 57 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - self->access_token = NULL; -#line 58 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - self->refresh_token = NULL; -#line 59 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - self->expires_at = (gint64) -1; -#line 762 "GoogleAuthenticator.c" -} - - -static void -publishing_authenticator_shotwell_google_session_finalize (PublishingRESTSupportSession * obj) -{ - PublishingAuthenticatorShotwellGoogleSession * self; -#line 56 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, PUBLISHING_AUTHENTICATOR_SHOTWELL_GOOGLE_TYPE_SESSION, PublishingAuthenticatorShotwellGoogleSession); -#line 57 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _g_free0 (self->access_token); -#line 58 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _g_free0 (self->refresh_token); -#line 56 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - PUBLISHING_REST_SUPPORT_SESSION_CLASS (publishing_authenticator_shotwell_google_session_parent_class)->finalize (obj); -#line 778 "GoogleAuthenticator.c" -} - - -GType -publishing_authenticator_shotwell_google_session_get_type (void) -{ - static volatile gsize publishing_authenticator_shotwell_google_session_type_id__volatile = 0; - if (g_once_init_enter (&publishing_authenticator_shotwell_google_session_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (PublishingAuthenticatorShotwellGoogleSessionClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) publishing_authenticator_shotwell_google_session_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PublishingAuthenticatorShotwellGoogleSession), 0, (GInstanceInitFunc) publishing_authenticator_shotwell_google_session_instance_init, NULL }; - GType publishing_authenticator_shotwell_google_session_type_id; - publishing_authenticator_shotwell_google_session_type_id = g_type_register_static (PUBLISHING_REST_SUPPORT_TYPE_SESSION, "PublishingAuthenticatorShotwellGoogleSession", &g_define_type_info, 0); - g_once_init_leave (&publishing_authenticator_shotwell_google_session_type_id__volatile, publishing_authenticator_shotwell_google_session_type_id); - } - return publishing_authenticator_shotwell_google_session_type_id__volatile; -} - - -PublishingAuthenticatorShotwellGoogleGetAccessTokensTransaction* -publishing_authenticator_shotwell_google_get_access_tokens_transaction_construct (GType object_type, - PublishingAuthenticatorShotwellGoogleSession* session, - const gchar* auth_code) -{ - PublishingAuthenticatorShotwellGoogleGetAccessTokensTransaction* self = NULL; -#line 75 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - g_return_val_if_fail (PUBLISHING_AUTHENTICATOR_SHOTWELL_GOOGLE_IS_SESSION (session), NULL); -#line 75 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - g_return_val_if_fail (auth_code != NULL, NULL); -#line 76 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - self = (PublishingAuthenticatorShotwellGoogleGetAccessTokensTransaction*) publishing_rest_support_transaction_construct_with_endpoint_url (object_type, G_TYPE_CHECK_INSTANCE_CAST (session, PUBLISHING_REST_SUPPORT_TYPE_SESSION, PublishingRESTSupportSession), PUBLISHING_AUTHENTICATOR_SHOTWELL_GOOGLE_GET_ACCESS_TOKENS_TRANSACTION_ENDPOINT_URL, PUBLISHING_REST_SUPPORT_HTTP_METHOD_POST); -#line 78 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - publishing_rest_support_transaction_add_argument (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "code", auth_code); -#line 79 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - publishing_rest_support_transaction_add_argument (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "client_id", PUBLISHING_AUTHENTICATOR_SHOTWELL_GOOGLE_OAUTH_CLIENT_ID); -#line 80 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - publishing_rest_support_transaction_add_argument (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "client_secret", PUBLISHING_AUTHENTICATOR_SHOTWELL_GOOGLE_OAUTH_CLIENT_SECRET); -#line 81 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - publishing_rest_support_transaction_add_argument (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "redirect_uri", PUBLISHING_AUTHENTICATOR_SHOTWELL_GOOGLE_OAUTH_CALLBACK_URI); -#line 82 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - publishing_rest_support_transaction_add_argument (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "grant_type", "authorization_code"); -#line 75 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - return self; -#line 820 "GoogleAuthenticator.c" -} - - -PublishingAuthenticatorShotwellGoogleGetAccessTokensTransaction* -publishing_authenticator_shotwell_google_get_access_tokens_transaction_new (PublishingAuthenticatorShotwellGoogleSession* session, - const gchar* auth_code) -{ -#line 75 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - return publishing_authenticator_shotwell_google_get_access_tokens_transaction_construct (PUBLISHING_AUTHENTICATOR_SHOTWELL_GOOGLE_TYPE_GET_ACCESS_TOKENS_TRANSACTION, session, auth_code); -#line 830 "GoogleAuthenticator.c" -} - - -static void -publishing_authenticator_shotwell_google_get_access_tokens_transaction_class_init (PublishingAuthenticatorShotwellGoogleGetAccessTokensTransactionClass * klass) -{ -#line 72 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - publishing_authenticator_shotwell_google_get_access_tokens_transaction_parent_class = g_type_class_peek_parent (klass); -#line 839 "GoogleAuthenticator.c" -} - - -static void -publishing_authenticator_shotwell_google_get_access_tokens_transaction_instance_init (PublishingAuthenticatorShotwellGoogleGetAccessTokensTransaction * self) -{ -} - - -GType -publishing_authenticator_shotwell_google_get_access_tokens_transaction_get_type (void) -{ - static volatile gsize publishing_authenticator_shotwell_google_get_access_tokens_transaction_type_id__volatile = 0; - if (g_once_init_enter (&publishing_authenticator_shotwell_google_get_access_tokens_transaction_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (PublishingAuthenticatorShotwellGoogleGetAccessTokensTransactionClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) publishing_authenticator_shotwell_google_get_access_tokens_transaction_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PublishingAuthenticatorShotwellGoogleGetAccessTokensTransaction), 0, (GInstanceInitFunc) publishing_authenticator_shotwell_google_get_access_tokens_transaction_instance_init, NULL }; - GType publishing_authenticator_shotwell_google_get_access_tokens_transaction_type_id; - publishing_authenticator_shotwell_google_get_access_tokens_transaction_type_id = g_type_register_static (PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, "PublishingAuthenticatorShotwellGoogleGetAccessTokensTransaction", &g_define_type_info, 0); - g_once_init_leave (&publishing_authenticator_shotwell_google_get_access_tokens_transaction_type_id__volatile, publishing_authenticator_shotwell_google_get_access_tokens_transaction_type_id); - } - return publishing_authenticator_shotwell_google_get_access_tokens_transaction_type_id__volatile; -} - - -PublishingAuthenticatorShotwellGoogleRefreshAccessTokenTransaction* -publishing_authenticator_shotwell_google_refresh_access_token_transaction_construct (GType object_type, - PublishingAuthenticatorShotwellGoogleSession* session) -{ - PublishingAuthenticatorShotwellGoogleRefreshAccessTokenTransaction* self = NULL; - const gchar* _tmp0_; -#line 89 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - g_return_val_if_fail (PUBLISHING_AUTHENTICATOR_SHOTWELL_GOOGLE_IS_SESSION (session), NULL); -#line 90 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - self = (PublishingAuthenticatorShotwellGoogleRefreshAccessTokenTransaction*) publishing_rest_support_transaction_construct_with_endpoint_url (object_type, G_TYPE_CHECK_INSTANCE_CAST (session, PUBLISHING_REST_SUPPORT_TYPE_SESSION, PublishingRESTSupportSession), PUBLISHING_AUTHENTICATOR_SHOTWELL_GOOGLE_REFRESH_ACCESS_TOKEN_TRANSACTION_ENDPOINT_URL, PUBLISHING_REST_SUPPORT_HTTP_METHOD_POST); -#line 92 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - publishing_rest_support_transaction_add_argument (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "client_id", PUBLISHING_AUTHENTICATOR_SHOTWELL_GOOGLE_OAUTH_CLIENT_ID); -#line 93 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - publishing_rest_support_transaction_add_argument (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "client_secret", PUBLISHING_AUTHENTICATOR_SHOTWELL_GOOGLE_OAUTH_CLIENT_SECRET); -#line 94 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _tmp0_ = session->refresh_token; -#line 94 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - publishing_rest_support_transaction_add_argument (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "refresh_token", _tmp0_); -#line 95 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - publishing_rest_support_transaction_add_argument (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "grant_type", "refresh_token"); -#line 89 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - return self; -#line 885 "GoogleAuthenticator.c" -} - - -PublishingAuthenticatorShotwellGoogleRefreshAccessTokenTransaction* -publishing_authenticator_shotwell_google_refresh_access_token_transaction_new (PublishingAuthenticatorShotwellGoogleSession* session) -{ -#line 89 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - return publishing_authenticator_shotwell_google_refresh_access_token_transaction_construct (PUBLISHING_AUTHENTICATOR_SHOTWELL_GOOGLE_TYPE_REFRESH_ACCESS_TOKEN_TRANSACTION, session); -#line 894 "GoogleAuthenticator.c" -} - - -static void -publishing_authenticator_shotwell_google_refresh_access_token_transaction_class_init (PublishingAuthenticatorShotwellGoogleRefreshAccessTokenTransactionClass * klass) -{ -#line 86 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - publishing_authenticator_shotwell_google_refresh_access_token_transaction_parent_class = g_type_class_peek_parent (klass); -#line 903 "GoogleAuthenticator.c" -} - - -static void -publishing_authenticator_shotwell_google_refresh_access_token_transaction_instance_init (PublishingAuthenticatorShotwellGoogleRefreshAccessTokenTransaction * self) -{ -} - - -GType -publishing_authenticator_shotwell_google_refresh_access_token_transaction_get_type (void) -{ - static volatile gsize publishing_authenticator_shotwell_google_refresh_access_token_transaction_type_id__volatile = 0; - if (g_once_init_enter (&publishing_authenticator_shotwell_google_refresh_access_token_transaction_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (PublishingAuthenticatorShotwellGoogleRefreshAccessTokenTransactionClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) publishing_authenticator_shotwell_google_refresh_access_token_transaction_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PublishingAuthenticatorShotwellGoogleRefreshAccessTokenTransaction), 0, (GInstanceInitFunc) publishing_authenticator_shotwell_google_refresh_access_token_transaction_instance_init, NULL }; - GType publishing_authenticator_shotwell_google_refresh_access_token_transaction_type_id; - publishing_authenticator_shotwell_google_refresh_access_token_transaction_type_id = g_type_register_static (PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, "PublishingAuthenticatorShotwellGoogleRefreshAccessTokenTransaction", &g_define_type_info, 0); - g_once_init_leave (&publishing_authenticator_shotwell_google_refresh_access_token_transaction_type_id__volatile, publishing_authenticator_shotwell_google_refresh_access_token_transaction_type_id); - } - return publishing_authenticator_shotwell_google_refresh_access_token_transaction_type_id__volatile; -} - - -PublishingAuthenticatorShotwellGoogleUsernameFetchTransaction* -publishing_authenticator_shotwell_google_username_fetch_transaction_construct (GType object_type, - PublishingAuthenticatorShotwellGoogleSession* session) -{ - PublishingAuthenticatorShotwellGoogleUsernameFetchTransaction* self = NULL; - const gchar* _tmp0_; - gchar* _tmp1_; - gchar* _tmp2_; -#line 101 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - g_return_val_if_fail (PUBLISHING_AUTHENTICATOR_SHOTWELL_GOOGLE_IS_SESSION (session), NULL); -#line 102 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - self = (PublishingAuthenticatorShotwellGoogleUsernameFetchTransaction*) publishing_rest_support_transaction_construct_with_endpoint_url (object_type, G_TYPE_CHECK_INSTANCE_CAST (session, PUBLISHING_REST_SUPPORT_TYPE_SESSION, PublishingRESTSupportSession), PUBLISHING_AUTHENTICATOR_SHOTWELL_GOOGLE_USERNAME_FETCH_TRANSACTION_ENDPOINT_URL, PUBLISHING_REST_SUPPORT_HTTP_METHOD_GET); -#line 103 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _tmp0_ = session->access_token; -#line 103 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _tmp1_ = g_strconcat ("Bearer ", _tmp0_, NULL); -#line 103 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _tmp2_ = _tmp1_; -#line 103 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - publishing_rest_support_transaction_add_header (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "Authorization", _tmp2_); -#line 103 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _g_free0 (_tmp2_); -#line 101 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - return self; -#line 951 "GoogleAuthenticator.c" -} - - -PublishingAuthenticatorShotwellGoogleUsernameFetchTransaction* -publishing_authenticator_shotwell_google_username_fetch_transaction_new (PublishingAuthenticatorShotwellGoogleSession* session) -{ -#line 101 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - return publishing_authenticator_shotwell_google_username_fetch_transaction_construct (PUBLISHING_AUTHENTICATOR_SHOTWELL_GOOGLE_TYPE_USERNAME_FETCH_TRANSACTION, session); -#line 960 "GoogleAuthenticator.c" -} - - -static void -publishing_authenticator_shotwell_google_username_fetch_transaction_class_init (PublishingAuthenticatorShotwellGoogleUsernameFetchTransactionClass * klass) -{ -#line 99 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - publishing_authenticator_shotwell_google_username_fetch_transaction_parent_class = g_type_class_peek_parent (klass); -#line 969 "GoogleAuthenticator.c" -} - - -static void -publishing_authenticator_shotwell_google_username_fetch_transaction_instance_init (PublishingAuthenticatorShotwellGoogleUsernameFetchTransaction * self) -{ -} - - -GType -publishing_authenticator_shotwell_google_username_fetch_transaction_get_type (void) -{ - static volatile gsize publishing_authenticator_shotwell_google_username_fetch_transaction_type_id__volatile = 0; - if (g_once_init_enter (&publishing_authenticator_shotwell_google_username_fetch_transaction_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (PublishingAuthenticatorShotwellGoogleUsernameFetchTransactionClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) publishing_authenticator_shotwell_google_username_fetch_transaction_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PublishingAuthenticatorShotwellGoogleUsernameFetchTransaction), 0, (GInstanceInitFunc) publishing_authenticator_shotwell_google_username_fetch_transaction_instance_init, NULL }; - GType publishing_authenticator_shotwell_google_username_fetch_transaction_type_id; - publishing_authenticator_shotwell_google_username_fetch_transaction_type_id = g_type_register_static (PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, "PublishingAuthenticatorShotwellGoogleUsernameFetchTransaction", &g_define_type_info, 0); - g_once_init_leave (&publishing_authenticator_shotwell_google_username_fetch_transaction_type_id__volatile, publishing_authenticator_shotwell_google_username_fetch_transaction_type_id); - } - return publishing_authenticator_shotwell_google_username_fetch_transaction_type_id__volatile; -} - - -static void -_g_free0_ (gpointer var) -{ -#line 119 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - var = (g_free (var), NULL); -#line 998 "GoogleAuthenticator.c" -} - - -static void -_g_variant_unref0_ (gpointer var) -{ -#line 119 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - (var == NULL) ? NULL : (var = (g_variant_unref (var), NULL)); -#line 1007 "GoogleAuthenticator.c" -} - - -PublishingAuthenticatorShotwellGoogleGoogle* -publishing_authenticator_shotwell_google_google_construct (GType object_type, - const gchar* scope, - const gchar* welcome_message, - SpitPublishingPluginHost* host) -{ - PublishingAuthenticatorShotwellGoogleGoogle * self = NULL; - SpitPublishingPluginHost* _tmp0_; - GHashFunc _tmp1_; - GEqualFunc _tmp2_; - GHashTable* _tmp3_; - gchar* _tmp4_; - PublishingAuthenticatorShotwellGoogleSession* _tmp5_; - gchar* _tmp6_; -#line 115 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - g_return_val_if_fail (scope != NULL, NULL); -#line 115 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - g_return_val_if_fail (welcome_message != NULL, NULL); -#line 115 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - g_return_val_if_fail (SPIT_PUBLISHING_IS_PLUGIN_HOST (host), NULL); -#line 115 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - self = (PublishingAuthenticatorShotwellGoogleGoogle*) g_object_new (object_type, NULL); -#line 118 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _tmp0_ = _g_object_ref0 (host); -#line 118 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _g_object_unref0 (self->priv->host); -#line 118 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - self->priv->host = _tmp0_; -#line 119 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _tmp1_ = g_str_hash; -#line 119 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _tmp2_ = g_str_equal; -#line 119 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _tmp3_ = g_hash_table_new_full (_tmp1_, _tmp2_, _g_free0_, _g_variant_unref0_); -#line 119 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _g_hash_table_unref0 (self->priv->params); -#line 119 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - self->priv->params = _tmp3_; -#line 120 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _tmp4_ = g_strdup (scope); -#line 120 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _g_free0 (self->priv->scope); -#line 120 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - self->priv->scope = _tmp4_; -#line 121 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _tmp5_ = publishing_authenticator_shotwell_google_session_new (); -#line 121 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _publishing_rest_support_session_unref0 (self->priv->session); -#line 121 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - self->priv->session = _tmp5_; -#line 122 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _tmp6_ = g_strdup (welcome_message); -#line 122 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _g_free0 (self->priv->welcome_message); -#line 122 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - self->priv->welcome_message = _tmp6_; -#line 115 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - return self; -#line 1069 "GoogleAuthenticator.c" -} - - -PublishingAuthenticatorShotwellGoogleGoogle* -publishing_authenticator_shotwell_google_google_new (const gchar* scope, - const gchar* welcome_message, - SpitPublishingPluginHost* host) -{ -#line 115 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - return publishing_authenticator_shotwell_google_google_construct (PUBLISHING_AUTHENTICATOR_SHOTWELL_GOOGLE_TYPE_GOOGLE, scope, welcome_message, host); -#line 1080 "GoogleAuthenticator.c" -} - - -static void -publishing_authenticator_shotwell_google_google_real_authenticate (SpitPublishingAuthenticator* base) -{ - PublishingAuthenticatorShotwellGoogleGoogle * self; - gchar* refresh_token = NULL; - SpitPublishingPluginHost* _tmp0_; - gchar* _tmp1_; - gboolean _tmp2_ = FALSE; - const gchar* _tmp3_; -#line 125 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_AUTHENTICATOR_SHOTWELL_GOOGLE_TYPE_GOOGLE, PublishingAuthenticatorShotwellGoogleGoogle); -#line 126 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _tmp0_ = self->priv->host; -#line 126 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _tmp1_ = spit_host_interface_get_config_string (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, SPIT_TYPE_HOST_INTERFACE, SpitHostInterface), "refresh_token", NULL); -#line 126 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - refresh_token = _tmp1_; -#line 127 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _tmp3_ = refresh_token; -#line 127 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - if (_tmp3_ != NULL) { -#line 1105 "GoogleAuthenticator.c" - const gchar* _tmp4_; -#line 127 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _tmp4_ = refresh_token; -#line 127 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _tmp2_ = g_strcmp0 (_tmp4_, "") != 0; -#line 1111 "GoogleAuthenticator.c" - } else { -#line 127 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _tmp2_ = FALSE; -#line 1115 "GoogleAuthenticator.c" - } -#line 127 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - if (_tmp2_) { -#line 1119 "GoogleAuthenticator.c" - const gchar* _tmp5_; -#line 128 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _tmp5_ = refresh_token; -#line 128 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - publishing_authenticator_shotwell_google_google_on_refresh_token_available (self, _tmp5_); -#line 129 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - publishing_authenticator_shotwell_google_google_do_exchange_refresh_token_for_access_token (self); -#line 130 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _g_free0 (refresh_token); -#line 130 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - return; -#line 1131 "GoogleAuthenticator.c" - } -#line 134 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - if (publishing_authenticator_shotwell_google_web_authentication_pane_is_cache_dirty ()) { -#line 1135 "GoogleAuthenticator.c" - SpitPublishingPluginHost* _tmp6_; - SpitPublishingPluginHost* _tmp7_; -#line 135 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _tmp6_ = self->priv->host; -#line 135 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - spit_publishing_plugin_host_set_service_locked (_tmp6_, FALSE); -#line 137 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _tmp7_ = self->priv->host; -#line 137 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - spit_publishing_plugin_host_install_static_message_pane (_tmp7_, _ ("You have already logged in and out of a Google service during this Sho" \ -"twell session.\n" \ -"\n" \ -"To continue publishing to Google services, quit and restart Shotwell, " \ -"then try publishing again."), SPIT_PUBLISHING_PLUGIN_HOST_BUTTON_MODE_CANCEL); -#line 1146 "GoogleAuthenticator.c" - } else { -#line 139 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - publishing_authenticator_shotwell_google_google_do_show_service_welcome_pane (self); -#line 1150 "GoogleAuthenticator.c" - } -#line 125 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _g_free0 (refresh_token); -#line 1154 "GoogleAuthenticator.c" -} - - -static gboolean -publishing_authenticator_shotwell_google_google_real_can_logout (SpitPublishingAuthenticator* base) -{ - PublishingAuthenticatorShotwellGoogleGoogle * self; - gboolean result = FALSE; -#line 143 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_AUTHENTICATOR_SHOTWELL_GOOGLE_TYPE_GOOGLE, PublishingAuthenticatorShotwellGoogleGoogle); -#line 144 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - result = TRUE; -#line 144 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - return result; -#line 1169 "GoogleAuthenticator.c" -} - - -static gpointer -_g_hash_table_ref0 (gpointer self) -{ -#line 148 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - return self ? g_hash_table_ref (self) : NULL; -#line 1178 "GoogleAuthenticator.c" -} - - -static GHashTable* -publishing_authenticator_shotwell_google_google_real_get_authentication_parameter (SpitPublishingAuthenticator* base) -{ - PublishingAuthenticatorShotwellGoogleGoogle * self; - GHashTable* result = NULL; - GHashTable* _tmp0_; - GHashTable* _tmp1_; -#line 147 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_AUTHENTICATOR_SHOTWELL_GOOGLE_TYPE_GOOGLE, PublishingAuthenticatorShotwellGoogleGoogle); -#line 148 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _tmp0_ = self->priv->params; -#line 148 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _tmp1_ = _g_hash_table_ref0 (_tmp0_); -#line 148 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - result = _tmp1_; -#line 148 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - return result; -#line 1199 "GoogleAuthenticator.c" -} - - -static void -publishing_authenticator_shotwell_google_google_real_logout (SpitPublishingAuthenticator* base) -{ - PublishingAuthenticatorShotwellGoogleGoogle * self; - PublishingAuthenticatorShotwellGoogleSession* _tmp0_; - SpitPublishingPluginHost* _tmp1_; -#line 151 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_AUTHENTICATOR_SHOTWELL_GOOGLE_TYPE_GOOGLE, PublishingAuthenticatorShotwellGoogleGoogle); -#line 152 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _tmp0_ = self->priv->session; -#line 152 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - publishing_authenticator_shotwell_google_session_deauthenticate (_tmp0_); -#line 153 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _tmp1_ = self->priv->host; -#line 153 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - spit_host_interface_set_config_string (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, SPIT_TYPE_HOST_INTERFACE, SpitHostInterface), "refresh_token", ""); -#line 1219 "GoogleAuthenticator.c" -} - - -static void -publishing_authenticator_shotwell_google_google_real_refresh (SpitPublishingAuthenticator* base) -{ - PublishingAuthenticatorShotwellGoogleGoogle * self; -#line 156 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_AUTHENTICATOR_SHOTWELL_GOOGLE_TYPE_GOOGLE, PublishingAuthenticatorShotwellGoogleGoogle); -#line 1229 "GoogleAuthenticator.c" -} - - -static void -_publishing_authenticator_shotwell_google_google_on_web_auth_pane_authorized_publishing_authenticator_shotwell_google_web_authentication_pane_authorized (PublishingAuthenticatorShotwellGoogleWebAuthenticationPane* _sender, - const gchar* auth_code, - gpointer self) -{ -#line 174 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - publishing_authenticator_shotwell_google_google_on_web_auth_pane_authorized ((PublishingAuthenticatorShotwellGoogleGoogle*) self, auth_code); -#line 1240 "GoogleAuthenticator.c" -} - - -static void -publishing_authenticator_shotwell_google_google_do_hosted_web_authentication (PublishingAuthenticatorShotwellGoogleGoogle* self) -{ - gchar* user_authorization_url = NULL; - gchar* _tmp0_; - gchar* _tmp1_; - gchar* _tmp2_; - gchar* _tmp3_; - gchar* _tmp4_; - gchar* _tmp5_; - gchar* _tmp6_; - gchar* _tmp7_; - const gchar* _tmp8_; - gchar* _tmp9_; - gchar* _tmp10_; - gchar* _tmp11_; - gchar* _tmp12_; - gchar* _tmp13_; - gchar* _tmp14_; - gchar* _tmp15_; - gchar* _tmp16_; - gchar* _tmp17_; - gchar* _tmp18_; - gchar* _tmp19_; - gchar* _tmp20_; - gchar* _tmp21_; - gchar* _tmp22_; - gchar* _tmp23_; - gchar* _tmp24_; - gchar* _tmp25_; - gchar* _tmp26_; - PublishingAuthenticatorShotwellGoogleWebAuthenticationPane* _tmp27_; - PublishingAuthenticatorShotwellGoogleWebAuthenticationPane* _tmp28_; - SpitPublishingPluginHost* _tmp29_; - PublishingAuthenticatorShotwellGoogleWebAuthenticationPane* _tmp30_; -#line 160 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - g_return_if_fail (PUBLISHING_AUTHENTICATOR_SHOTWELL_GOOGLE_IS_GOOGLE (self)); -#line 161 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - g_debug ("GoogleAuthenticator.vala:161: ACTION: running OAuth authentication flo" \ -"w in hosted web pane."); -#line 163 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _tmp0_ = soup_uri_encode (PUBLISHING_AUTHENTICATOR_SHOTWELL_GOOGLE_OAUTH_CALLBACK_URI, NULL); -#line 163 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _tmp1_ = _tmp0_; -#line 163 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _tmp2_ = g_strconcat ("https://accounts.google.com/o/oauth2/auth?" "response_type=code&" "client_id=" PUBLISHING_AUTHENTICATOR_SHOTWELL_GOOGLE_OAUTH_CLIENT_ID "&" "redirect_uri=", _tmp1_, NULL); -#line 163 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _tmp3_ = _tmp2_; -#line 163 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _tmp4_ = g_strconcat (_tmp3_, "&", NULL); -#line 163 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _tmp5_ = _tmp4_; -#line 163 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _tmp6_ = g_strconcat (_tmp5_, "scope=", NULL); -#line 163 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _tmp7_ = _tmp6_; -#line 163 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _tmp8_ = self->priv->scope; -#line 163 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _tmp9_ = soup_uri_encode (_tmp8_, NULL); -#line 163 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _tmp10_ = _tmp9_; -#line 163 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _tmp11_ = g_strconcat (_tmp7_, _tmp10_, NULL); -#line 163 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _tmp12_ = _tmp11_; -#line 163 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _tmp13_ = g_strconcat (_tmp12_, "+", NULL); -#line 163 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _tmp14_ = _tmp13_; -#line 163 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _tmp15_ = soup_uri_encode ("https://www.googleapis.com/auth/userinfo.profile", NULL); -#line 163 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _tmp16_ = _tmp15_; -#line 163 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _tmp17_ = g_strconcat (_tmp14_, _tmp16_, NULL); -#line 163 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _tmp18_ = _tmp17_; -#line 163 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _tmp19_ = g_strconcat (_tmp18_, "&", NULL); -#line 163 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _tmp20_ = _tmp19_; -#line 163 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _tmp21_ = g_strconcat (_tmp20_, "state=connect&", NULL); -#line 163 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _tmp22_ = _tmp21_; -#line 163 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _tmp23_ = g_strconcat (_tmp22_, "access_type=offline&", NULL); -#line 163 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _tmp24_ = _tmp23_; -#line 163 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _tmp25_ = g_strconcat (_tmp24_, "approval_prompt=force", NULL); -#line 163 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _tmp26_ = _tmp25_; -#line 163 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _g_free0 (_tmp24_); -#line 163 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _g_free0 (_tmp22_); -#line 163 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _g_free0 (_tmp20_); -#line 163 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _g_free0 (_tmp18_); -#line 163 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _g_free0 (_tmp16_); -#line 163 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _g_free0 (_tmp14_); -#line 163 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _g_free0 (_tmp12_); -#line 163 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _g_free0 (_tmp10_); -#line 163 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _g_free0 (_tmp7_); -#line 163 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _g_free0 (_tmp5_); -#line 163 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _g_free0 (_tmp3_); -#line 163 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _g_free0 (_tmp1_); -#line 163 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - user_authorization_url = _tmp26_; -#line 173 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _tmp27_ = publishing_authenticator_shotwell_google_web_authentication_pane_new (user_authorization_url); -#line 173 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _g_object_unref0 (self->priv->web_auth_pane); -#line 173 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - self->priv->web_auth_pane = _tmp27_; -#line 174 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _tmp28_ = self->priv->web_auth_pane; -#line 174 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - g_signal_connect_object (_tmp28_, "authorized", (GCallback) _publishing_authenticator_shotwell_google_google_on_web_auth_pane_authorized_publishing_authenticator_shotwell_google_web_authentication_pane_authorized, self, 0); -#line 176 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _tmp29_ = self->priv->host; -#line 176 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _tmp30_ = self->priv->web_auth_pane; -#line 176 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - spit_publishing_plugin_host_install_dialog_pane (_tmp29_, G_TYPE_CHECK_INSTANCE_CAST (_tmp30_, SPIT_PUBLISHING_TYPE_DIALOG_PANE, SpitPublishingDialogPane), SPIT_PUBLISHING_PLUGIN_HOST_BUTTON_MODE_CANCEL); -#line 160 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _g_free0 (user_authorization_url); -#line 1381 "GoogleAuthenticator.c" -} - - -static void -publishing_authenticator_shotwell_google_google_on_web_auth_pane_authorized (PublishingAuthenticatorShotwellGoogleGoogle* self, - const gchar* auth_code) -{ - PublishingAuthenticatorShotwellGoogleWebAuthenticationPane* _tmp0_; - guint _tmp1_; - const gchar* _tmp2_; -#line 179 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - g_return_if_fail (PUBLISHING_AUTHENTICATOR_SHOTWELL_GOOGLE_IS_GOOGLE (self)); -#line 179 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - g_return_if_fail (auth_code != NULL); -#line 180 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _tmp0_ = self->priv->web_auth_pane; -#line 180 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - g_signal_parse_name ("authorized", PUBLISHING_AUTHENTICATOR_SHOTWELL_GOOGLE_TYPE_WEB_AUTHENTICATION_PANE, &_tmp1_, NULL, FALSE); -#line 180 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - g_signal_handlers_disconnect_matched (_tmp0_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp1_, 0, NULL, (GCallback) _publishing_authenticator_shotwell_google_google_on_web_auth_pane_authorized_publishing_authenticator_shotwell_google_web_authentication_pane_authorized, self); -#line 182 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _tmp2_ = self->priv->scope; -#line 182 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - g_debug ("GoogleAuthenticator.vala:182: EVENT: user authorized scope %s with aut" \ -"h_code %s", _tmp2_, auth_code); -#line 184 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - publishing_authenticator_shotwell_google_google_do_get_access_tokens (self, auth_code); -#line 1408 "GoogleAuthenticator.c" -} - - -static void -_publishing_authenticator_shotwell_google_google_on_get_access_tokens_complete_publishing_rest_support_transaction_completed (PublishingRESTSupportTransaction* _sender, - gpointer self) -{ -#line 193 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - publishing_authenticator_shotwell_google_google_on_get_access_tokens_complete ((PublishingAuthenticatorShotwellGoogleGoogle*) self, _sender); -#line 1418 "GoogleAuthenticator.c" -} - - -static void -_publishing_authenticator_shotwell_google_google_on_get_access_tokens_error_publishing_rest_support_transaction_network_error (PublishingRESTSupportTransaction* _sender, - GError* err, - gpointer self) -{ -#line 194 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - publishing_authenticator_shotwell_google_google_on_get_access_tokens_error ((PublishingAuthenticatorShotwellGoogleGoogle*) self, _sender, err); -#line 1429 "GoogleAuthenticator.c" -} - - -static void -publishing_authenticator_shotwell_google_google_do_get_access_tokens (PublishingAuthenticatorShotwellGoogleGoogle* self, - const gchar* auth_code) -{ - SpitPublishingPluginHost* _tmp0_; - PublishingAuthenticatorShotwellGoogleGetAccessTokensTransaction* tokens_txn = NULL; - PublishingAuthenticatorShotwellGoogleSession* _tmp1_; - PublishingAuthenticatorShotwellGoogleGetAccessTokensTransaction* _tmp2_; - GError * _inner_error_ = NULL; -#line 187 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - g_return_if_fail (PUBLISHING_AUTHENTICATOR_SHOTWELL_GOOGLE_IS_GOOGLE (self)); -#line 187 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - g_return_if_fail (auth_code != NULL); -#line 188 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - g_debug ("GoogleAuthenticator.vala:188: ACTION: exchanging authorization code fo" \ -"r access & refresh tokens"); -#line 190 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _tmp0_ = self->priv->host; -#line 190 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - spit_publishing_plugin_host_install_login_wait_pane (_tmp0_); -#line 192 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _tmp1_ = self->priv->session; -#line 192 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _tmp2_ = publishing_authenticator_shotwell_google_get_access_tokens_transaction_new (_tmp1_, auth_code); -#line 192 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - tokens_txn = _tmp2_; -#line 193 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (tokens_txn, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "completed", (GCallback) _publishing_authenticator_shotwell_google_google_on_get_access_tokens_complete_publishing_rest_support_transaction_completed, self, 0); -#line 194 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (tokens_txn, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "network-error", (GCallback) _publishing_authenticator_shotwell_google_google_on_get_access_tokens_error_publishing_rest_support_transaction_network_error, self, 0); -#line 1462 "GoogleAuthenticator.c" - { -#line 197 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - publishing_rest_support_transaction_execute (G_TYPE_CHECK_INSTANCE_CAST (tokens_txn, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), &_inner_error_); -#line 197 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 197 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - if (_inner_error_->domain == SPIT_PUBLISHING_PUBLISHING_ERROR) { -#line 1470 "GoogleAuthenticator.c" - goto __catch3_spit_publishing_publishing_error; - } -#line 197 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _publishing_rest_support_transaction_unref0 (tokens_txn); -#line 197 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.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 197 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - g_clear_error (&_inner_error_); -#line 197 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - return; -#line 1481 "GoogleAuthenticator.c" - } - } - goto __finally3; - __catch3_spit_publishing_publishing_error: - { - GError* err = NULL; - SpitPublishingPluginHost* _tmp3_; - GError* _tmp4_; -#line 196 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - err = _inner_error_; -#line 196 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _inner_error_ = NULL; -#line 199 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _tmp3_ = self->priv->host; -#line 199 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _tmp4_ = err; -#line 199 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - spit_publishing_plugin_host_post_error (_tmp3_, _tmp4_); -#line 196 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _g_error_free0 (err); -#line 1502 "GoogleAuthenticator.c" - } - __finally3: -#line 196 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 196 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _publishing_rest_support_transaction_unref0 (tokens_txn); -#line 196 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.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 196 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - g_clear_error (&_inner_error_); -#line 196 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - return; -#line 1515 "GoogleAuthenticator.c" - } -#line 187 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _publishing_rest_support_transaction_unref0 (tokens_txn); -#line 1519 "GoogleAuthenticator.c" -} - - -static void -publishing_authenticator_shotwell_google_google_on_get_access_tokens_complete (PublishingAuthenticatorShotwellGoogleGoogle* self, - PublishingRESTSupportTransaction* txn) -{ - guint _tmp0_; - guint _tmp1_; - gchar* _tmp2_; - gchar* _tmp3_; -#line 203 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - g_return_if_fail (PUBLISHING_AUTHENTICATOR_SHOTWELL_GOOGLE_IS_GOOGLE (self)); -#line 203 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - g_return_if_fail (PUBLISHING_REST_SUPPORT_IS_TRANSACTION (txn)); -#line 204 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - g_signal_parse_name ("completed", PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, &_tmp0_, NULL, FALSE); -#line 204 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - g_signal_handlers_disconnect_matched (txn, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp0_, 0, NULL, (GCallback) _publishing_authenticator_shotwell_google_google_on_get_access_tokens_complete_publishing_rest_support_transaction_completed, self); -#line 205 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - g_signal_parse_name ("network-error", PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, &_tmp1_, NULL, FALSE); -#line 205 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - g_signal_handlers_disconnect_matched (txn, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp1_, 0, NULL, (GCallback) _publishing_authenticator_shotwell_google_google_on_get_access_tokens_error_publishing_rest_support_transaction_network_error, self); -#line 207 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - g_debug ("GoogleAuthenticator.vala:207: %s", "EVENT: network transaction to exchange authorization code for access t" \ -"okens " "completed successfully."); -#line 210 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _tmp2_ = publishing_rest_support_transaction_get_response (txn); -#line 210 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _tmp3_ = _tmp2_; -#line 210 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - publishing_authenticator_shotwell_google_google_do_extract_tokens (self, _tmp3_); -#line 210 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _g_free0 (_tmp3_); -#line 1553 "GoogleAuthenticator.c" -} - - -static void -publishing_authenticator_shotwell_google_google_on_get_access_tokens_error (PublishingAuthenticatorShotwellGoogleGoogle* self, - PublishingRESTSupportTransaction* txn, - GError* err) -{ - guint _tmp0_; - guint _tmp1_; - gchar* _tmp2_; - gchar* _tmp3_; - SpitPublishingPluginHost* _tmp4_; -#line 213 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - g_return_if_fail (PUBLISHING_AUTHENTICATOR_SHOTWELL_GOOGLE_IS_GOOGLE (self)); -#line 213 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - g_return_if_fail (PUBLISHING_REST_SUPPORT_IS_TRANSACTION (txn)); -#line 215 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - g_signal_parse_name ("completed", PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, &_tmp0_, NULL, FALSE); -#line 215 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - g_signal_handlers_disconnect_matched (txn, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp0_, 0, NULL, (GCallback) _publishing_authenticator_shotwell_google_google_on_get_access_tokens_complete_publishing_rest_support_transaction_completed, self); -#line 216 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - g_signal_parse_name ("network-error", PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, &_tmp1_, NULL, FALSE); -#line 216 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - g_signal_handlers_disconnect_matched (txn, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp1_, 0, NULL, (GCallback) _publishing_authenticator_shotwell_google_google_on_get_access_tokens_error_publishing_rest_support_transaction_network_error, self); -#line 218 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _tmp2_ = publishing_rest_support_transaction_get_response (txn); -#line 218 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _tmp3_ = _tmp2_; -#line 218 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - g_debug ("EVENT: network transaction to exchange authorization code for access t" \ -"okens " "failed; response = '%s'", _tmp3_); -#line 218 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _g_free0 (_tmp3_); -#line 221 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _tmp4_ = self->priv->host; -#line 221 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - spit_publishing_plugin_host_post_error (_tmp4_, err); -#line 1591 "GoogleAuthenticator.c" -} - - -static gpointer -_json_object_ref0 (gpointer self) -{ -#line 237 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - return self ? json_object_ref (self) : NULL; -#line 1600 "GoogleAuthenticator.c" -} - - -static void -publishing_authenticator_shotwell_google_google_do_extract_tokens (PublishingAuthenticatorShotwellGoogleGoogle* self, - const gchar* response_body) -{ - JsonParser* parser = NULL; - JsonParser* _tmp0_; - JsonObject* response_obj = NULL; - JsonParser* _tmp9_; - JsonNode* _tmp10_; - JsonObject* _tmp11_; - JsonObject* _tmp12_; - gboolean _tmp13_ = FALSE; - JsonObject* _tmp14_; - JsonObject* _tmp19_; - JsonObject* _tmp23_; - JsonObject* _tmp29_; - GError * _inner_error_ = NULL; -#line 224 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - g_return_if_fail (PUBLISHING_AUTHENTICATOR_SHOTWELL_GOOGLE_IS_GOOGLE (self)); -#line 224 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - g_return_if_fail (response_body != NULL); -#line 225 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - g_debug ("GoogleAuthenticator.vala:225: ACTION: extracting OAuth tokens from bod" \ -"y of server response"); -#line 227 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _tmp0_ = json_parser_new (); -#line 227 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - parser = _tmp0_; -#line 1631 "GoogleAuthenticator.c" - { - JsonParser* _tmp1_; -#line 230 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _tmp1_ = parser; -#line 230 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - json_parser_load_from_data (_tmp1_, response_body, (gssize) -1, &_inner_error_); -#line 230 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 1640 "GoogleAuthenticator.c" - goto __catch4_g_error; - } - } - goto __finally4; - __catch4_g_error: - { - GError* err = NULL; - SpitPublishingPluginHost* _tmp2_; - GError* _tmp3_; - const gchar* _tmp4_; - gchar* _tmp5_; - gchar* _tmp6_; - GError* _tmp7_; - GError* _tmp8_; -#line 229 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - err = _inner_error_; -#line 229 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _inner_error_ = NULL; -#line 232 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _tmp2_ = self->priv->host; -#line 232 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _tmp3_ = err; -#line 232 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _tmp4_ = _tmp3_->message; -#line 232 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _tmp5_ = g_strconcat ("Couldn't parse JSON response: ", _tmp4_, NULL); -#line 232 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _tmp6_ = _tmp5_; -#line 232 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _tmp7_ = g_error_new_literal (SPIT_PUBLISHING_PUBLISHING_ERROR, SPIT_PUBLISHING_PUBLISHING_ERROR_MALFORMED_RESPONSE, _tmp6_); -#line 232 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _tmp8_ = _tmp7_; -#line 232 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - spit_publishing_plugin_host_post_error (_tmp2_, _tmp8_); -#line 232 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _g_error_free0 (_tmp8_); -#line 232 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _g_free0 (_tmp6_); -#line 234 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _g_error_free0 (err); -#line 234 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _g_object_unref0 (parser); -#line 234 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - return; -#line 1685 "GoogleAuthenticator.c" - } - __finally4: -#line 229 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 229 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _g_object_unref0 (parser); -#line 229 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 229 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - g_clear_error (&_inner_error_); -#line 229 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - return; -#line 1698 "GoogleAuthenticator.c" - } -#line 237 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _tmp9_ = parser; -#line 237 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _tmp10_ = json_parser_get_root (_tmp9_); -#line 237 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _tmp11_ = json_node_get_object (_tmp10_); -#line 237 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _tmp12_ = _json_object_ref0 (_tmp11_); -#line 237 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - response_obj = _tmp12_; -#line 239 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _tmp14_ = response_obj; -#line 239 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - if (!json_object_has_member (_tmp14_, "access_token")) { -#line 1714 "GoogleAuthenticator.c" - JsonObject* _tmp15_; -#line 239 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _tmp15_ = response_obj; -#line 239 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _tmp13_ = !json_object_has_member (_tmp15_, "refresh_token"); -#line 1720 "GoogleAuthenticator.c" - } else { -#line 239 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _tmp13_ = FALSE; -#line 1724 "GoogleAuthenticator.c" - } -#line 239 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - if (_tmp13_) { -#line 1728 "GoogleAuthenticator.c" - SpitPublishingPluginHost* _tmp16_; - GError* _tmp17_; - GError* _tmp18_; -#line 240 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _tmp16_ = self->priv->host; -#line 240 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _tmp17_ = g_error_new_literal (SPIT_PUBLISHING_PUBLISHING_ERROR, SPIT_PUBLISHING_PUBLISHING_ERROR_MALFORMED_RESPONSE, "neither access_token nor refresh_token not present in server response"); -#line 240 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _tmp18_ = _tmp17_; -#line 240 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - spit_publishing_plugin_host_post_error (_tmp16_, _tmp18_); -#line 240 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _g_error_free0 (_tmp18_); -#line 242 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _json_object_unref0 (response_obj); -#line 242 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _g_object_unref0 (parser); -#line 242 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - return; -#line 1748 "GoogleAuthenticator.c" - } -#line 245 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _tmp19_ = response_obj; -#line 245 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - if (json_object_has_member (_tmp19_, "expires_in")) { -#line 1754 "GoogleAuthenticator.c" - gint64 duration = 0LL; - JsonObject* _tmp20_; - gint64 abs_time = 0LL; - gint64 _tmp21_; - gint64 _tmp22_; -#line 246 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _tmp20_ = response_obj; -#line 246 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - duration = json_object_get_int_member (_tmp20_, "expires_in"); -#line 247 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _tmp21_ = duration; -#line 247 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - abs_time = g_get_real_time () + ((_tmp21_ * 1000L) * 1000L); -#line 248 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _tmp22_ = abs_time; -#line 248 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - publishing_authenticator_shotwell_google_google_on_expiry_time_avilable (self, _tmp22_); -#line 1772 "GoogleAuthenticator.c" - } -#line 251 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _tmp23_ = response_obj; -#line 251 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - if (json_object_has_member (_tmp23_, "refresh_token")) { -#line 1778 "GoogleAuthenticator.c" - gchar* refresh_token = NULL; - JsonObject* _tmp24_; - const gchar* _tmp25_; - gchar* _tmp26_; - const gchar* _tmp27_; -#line 252 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _tmp24_ = response_obj; -#line 252 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _tmp25_ = json_object_get_string_member (_tmp24_, "refresh_token"); -#line 252 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _tmp26_ = g_strdup (_tmp25_); -#line 252 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - refresh_token = _tmp26_; -#line 254 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _tmp27_ = refresh_token; -#line 254 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - if (g_strcmp0 (_tmp27_, "") != 0) { -#line 1796 "GoogleAuthenticator.c" - const gchar* _tmp28_; -#line 255 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _tmp28_ = refresh_token; -#line 255 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - publishing_authenticator_shotwell_google_google_on_refresh_token_available (self, _tmp28_); -#line 1802 "GoogleAuthenticator.c" - } -#line 251 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _g_free0 (refresh_token); -#line 1806 "GoogleAuthenticator.c" - } -#line 258 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _tmp29_ = response_obj; -#line 258 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - if (json_object_has_member (_tmp29_, "access_token")) { -#line 1812 "GoogleAuthenticator.c" - gchar* access_token = NULL; - JsonObject* _tmp30_; - const gchar* _tmp31_; - gchar* _tmp32_; - const gchar* _tmp33_; -#line 259 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _tmp30_ = response_obj; -#line 259 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _tmp31_ = json_object_get_string_member (_tmp30_, "access_token"); -#line 259 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _tmp32_ = g_strdup (_tmp31_); -#line 259 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - access_token = _tmp32_; -#line 261 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _tmp33_ = access_token; -#line 261 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - if (g_strcmp0 (_tmp33_, "") != 0) { -#line 1830 "GoogleAuthenticator.c" - const gchar* _tmp34_; -#line 262 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _tmp34_ = access_token; -#line 262 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - publishing_authenticator_shotwell_google_google_on_access_token_available (self, _tmp34_); -#line 1836 "GoogleAuthenticator.c" - } -#line 258 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _g_free0 (access_token); -#line 1840 "GoogleAuthenticator.c" - } -#line 224 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _json_object_unref0 (response_obj); -#line 224 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _g_object_unref0 (parser); -#line 1846 "GoogleAuthenticator.c" -} - - -static void -publishing_authenticator_shotwell_google_google_on_refresh_token_available (PublishingAuthenticatorShotwellGoogleGoogle* self, - const gchar* token) -{ - GHashTable* _tmp0_; - gchar* _tmp1_; - GVariant* _tmp2_; - PublishingAuthenticatorShotwellGoogleSession* _tmp3_; - gchar* _tmp4_; -#line 266 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - g_return_if_fail (PUBLISHING_AUTHENTICATOR_SHOTWELL_GOOGLE_IS_GOOGLE (self)); -#line 266 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - g_return_if_fail (token != NULL); -#line 267 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - g_debug ("GoogleAuthenticator.vala:267: EVENT: an OAuth refresh token has become" \ -" available; token = '%s'.", token); -#line 268 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _tmp0_ = self->priv->params; -#line 268 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _tmp1_ = g_strdup ("RefreshToken"); -#line 268 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _tmp2_ = g_variant_new_string (token); -#line 268 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - g_variant_ref_sink (_tmp2_); -#line 268 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - g_hash_table_insert (_tmp0_, _tmp1_, _tmp2_); -#line 270 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _tmp3_ = self->priv->session; -#line 270 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _tmp4_ = g_strdup (token); -#line 270 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _g_free0 (_tmp3_->refresh_token); -#line 270 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _tmp3_->refresh_token = _tmp4_; -#line 1883 "GoogleAuthenticator.c" -} - - -static void -publishing_authenticator_shotwell_google_google_on_expiry_time_avilable (PublishingAuthenticatorShotwellGoogleGoogle* self, - gint64 abs_time) -{ - PublishingAuthenticatorShotwellGoogleSession* _tmp0_; - GHashTable* _tmp1_; - gchar* _tmp2_; - GVariant* _tmp3_; -#line 273 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - g_return_if_fail (PUBLISHING_AUTHENTICATOR_SHOTWELL_GOOGLE_IS_GOOGLE (self)); -#line 274 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - g_debug ("EVENT: an OAuth access token expiry time became available; time = %'" G_GINT64_FORMAT "'.", abs_time); -#line 277 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _tmp0_ = self->priv->session; -#line 277 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _tmp0_->expires_at = abs_time; -#line 278 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _tmp1_ = self->priv->params; -#line 278 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _tmp2_ = g_strdup ("ExpiryTime"); -#line 278 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _tmp3_ = g_variant_new_int64 (abs_time); -#line 278 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - g_variant_ref_sink (_tmp3_); -#line 278 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - g_hash_table_insert (_tmp1_, _tmp2_, _tmp3_); -#line 1913 "GoogleAuthenticator.c" -} - - -static void -publishing_authenticator_shotwell_google_google_on_access_token_available (PublishingAuthenticatorShotwellGoogleGoogle* self, - const gchar* token) -{ - PublishingAuthenticatorShotwellGoogleSession* _tmp0_; - gchar* _tmp1_; - GHashTable* _tmp2_; - gchar* _tmp3_; - GVariant* _tmp4_; -#line 282 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - g_return_if_fail (PUBLISHING_AUTHENTICATOR_SHOTWELL_GOOGLE_IS_GOOGLE (self)); -#line 282 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - g_return_if_fail (token != NULL); -#line 283 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - g_debug ("GoogleAuthenticator.vala:283: EVENT: an OAuth access token has become " \ -"available; token = '%s'.", token); -#line 285 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _tmp0_ = self->priv->session; -#line 285 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _tmp1_ = g_strdup (token); -#line 285 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _g_free0 (_tmp0_->access_token); -#line 285 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _tmp0_->access_token = _tmp1_; -#line 286 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _tmp2_ = self->priv->params; -#line 286 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _tmp3_ = g_strdup ("AccessToken"); -#line 286 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _tmp4_ = g_variant_new_string (token); -#line 286 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - g_variant_ref_sink (_tmp4_); -#line 286 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - g_hash_table_insert (_tmp2_, _tmp3_, _tmp4_); -#line 288 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - publishing_authenticator_shotwell_google_google_do_fetch_username (self); -#line 1952 "GoogleAuthenticator.c" -} - - -static void -_publishing_authenticator_shotwell_google_google_on_fetch_username_transaction_completed_publishing_rest_support_transaction_completed (PublishingRESTSupportTransaction* _sender, - gpointer self) -{ -#line 298 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - publishing_authenticator_shotwell_google_google_on_fetch_username_transaction_completed ((PublishingAuthenticatorShotwellGoogleGoogle*) self, _sender); -#line 1962 "GoogleAuthenticator.c" -} - - -static void -_publishing_authenticator_shotwell_google_google_on_fetch_username_transaction_error_publishing_rest_support_transaction_network_error (PublishingRESTSupportTransaction* _sender, - GError* err, - gpointer self) -{ -#line 299 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - publishing_authenticator_shotwell_google_google_on_fetch_username_transaction_error ((PublishingAuthenticatorShotwellGoogleGoogle*) self, _sender, err); -#line 1973 "GoogleAuthenticator.c" -} - - -static void -publishing_authenticator_shotwell_google_google_do_fetch_username (PublishingAuthenticatorShotwellGoogleGoogle* self) -{ - SpitPublishingPluginHost* _tmp0_; - SpitPublishingPluginHost* _tmp1_; - PublishingAuthenticatorShotwellGoogleUsernameFetchTransaction* txn = NULL; - PublishingAuthenticatorShotwellGoogleSession* _tmp2_; - PublishingAuthenticatorShotwellGoogleUsernameFetchTransaction* _tmp3_; - GError * _inner_error_ = NULL; -#line 291 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - g_return_if_fail (PUBLISHING_AUTHENTICATOR_SHOTWELL_GOOGLE_IS_GOOGLE (self)); -#line 292 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - g_debug ("GoogleAuthenticator.vala:292: ACTION: running network transaction to f" \ -"etch username."); -#line 294 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _tmp0_ = self->priv->host; -#line 294 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - spit_publishing_plugin_host_install_login_wait_pane (_tmp0_); -#line 295 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _tmp1_ = self->priv->host; -#line 295 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - spit_publishing_plugin_host_set_service_locked (_tmp1_, TRUE); -#line 297 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _tmp2_ = self->priv->session; -#line 297 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _tmp3_ = publishing_authenticator_shotwell_google_username_fetch_transaction_new (_tmp2_); -#line 297 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - txn = _tmp3_; -#line 298 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (txn, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "completed", (GCallback) _publishing_authenticator_shotwell_google_google_on_fetch_username_transaction_completed_publishing_rest_support_transaction_completed, self, 0); -#line 299 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (txn, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "network-error", (GCallback) _publishing_authenticator_shotwell_google_google_on_fetch_username_transaction_error_publishing_rest_support_transaction_network_error, self, 0); -#line 2008 "GoogleAuthenticator.c" - { -#line 302 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - publishing_rest_support_transaction_execute (G_TYPE_CHECK_INSTANCE_CAST (txn, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), &_inner_error_); -#line 302 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 2014 "GoogleAuthenticator.c" - goto __catch5_g_error; - } - } - goto __finally5; - __catch5_g_error: - { - GError* err = NULL; - SpitPublishingPluginHost* _tmp4_; - GError* _tmp5_; -#line 301 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - err = _inner_error_; -#line 301 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _inner_error_ = NULL; -#line 304 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _tmp4_ = self->priv->host; -#line 304 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _tmp5_ = err; -#line 304 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - spit_publishing_plugin_host_post_error (_tmp4_, _tmp5_); -#line 301 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _g_error_free0 (err); -#line 2036 "GoogleAuthenticator.c" - } - __finally5: -#line 301 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 301 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _publishing_rest_support_transaction_unref0 (txn); -#line 301 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 301 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - g_clear_error (&_inner_error_); -#line 301 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - return; -#line 2049 "GoogleAuthenticator.c" - } -#line 291 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _publishing_rest_support_transaction_unref0 (txn); -#line 2053 "GoogleAuthenticator.c" -} - - -static void -publishing_authenticator_shotwell_google_google_on_fetch_username_transaction_completed (PublishingAuthenticatorShotwellGoogleGoogle* self, - PublishingRESTSupportTransaction* txn) -{ - guint _tmp0_; - guint _tmp1_; - gchar* _tmp2_; - gchar* _tmp3_; -#line 308 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - g_return_if_fail (PUBLISHING_AUTHENTICATOR_SHOTWELL_GOOGLE_IS_GOOGLE (self)); -#line 308 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - g_return_if_fail (PUBLISHING_REST_SUPPORT_IS_TRANSACTION (txn)); -#line 309 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - g_signal_parse_name ("completed", PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, &_tmp0_, NULL, FALSE); -#line 309 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - g_signal_handlers_disconnect_matched (txn, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp0_, 0, NULL, (GCallback) _publishing_authenticator_shotwell_google_google_on_fetch_username_transaction_completed_publishing_rest_support_transaction_completed, self); -#line 310 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - g_signal_parse_name ("network-error", PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, &_tmp1_, NULL, FALSE); -#line 310 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - g_signal_handlers_disconnect_matched (txn, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp1_, 0, NULL, (GCallback) _publishing_authenticator_shotwell_google_google_on_fetch_username_transaction_error_publishing_rest_support_transaction_network_error, self); -#line 312 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - g_debug ("GoogleAuthenticator.vala:312: EVENT: username fetch transaction comple" \ -"ted successfully."); -#line 314 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _tmp2_ = publishing_rest_support_transaction_get_response (txn); -#line 314 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _tmp3_ = _tmp2_; -#line 314 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - publishing_authenticator_shotwell_google_google_do_extract_username (self, _tmp3_); -#line 314 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _g_free0 (_tmp3_); -#line 2087 "GoogleAuthenticator.c" -} - - -static void -publishing_authenticator_shotwell_google_google_on_fetch_username_transaction_error (PublishingAuthenticatorShotwellGoogleGoogle* self, - PublishingRESTSupportTransaction* txn, - GError* err) -{ - guint _tmp0_; - guint _tmp1_; - SpitPublishingPluginHost* _tmp2_; -#line 317 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - g_return_if_fail (PUBLISHING_AUTHENTICATOR_SHOTWELL_GOOGLE_IS_GOOGLE (self)); -#line 317 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - g_return_if_fail (PUBLISHING_REST_SUPPORT_IS_TRANSACTION (txn)); -#line 319 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - g_signal_parse_name ("completed", PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, &_tmp0_, NULL, FALSE); -#line 319 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - g_signal_handlers_disconnect_matched (txn, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp0_, 0, NULL, (GCallback) _publishing_authenticator_shotwell_google_google_on_fetch_username_transaction_completed_publishing_rest_support_transaction_completed, self); -#line 320 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - g_signal_parse_name ("network-error", PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, &_tmp1_, NULL, FALSE); -#line 320 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - g_signal_handlers_disconnect_matched (txn, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp1_, 0, NULL, (GCallback) _publishing_authenticator_shotwell_google_google_on_fetch_username_transaction_error_publishing_rest_support_transaction_network_error, self); -#line 322 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - g_debug ("GoogleAuthenticator.vala:322: EVENT: username fetch transaction caused" \ -" a network error"); -#line 324 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _tmp2_ = self->priv->host; -#line 324 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - spit_publishing_plugin_host_post_error (_tmp2_, err); -#line 2117 "GoogleAuthenticator.c" -} - - -static void -publishing_authenticator_shotwell_google_google_do_extract_username (PublishingAuthenticatorShotwellGoogleGoogle* self, - const gchar* response_body) -{ - JsonParser* parser = NULL; - JsonParser* _tmp0_; - JsonObject* response_obj = NULL; - JsonParser* _tmp9_; - JsonNode* _tmp10_; - JsonObject* _tmp11_; - JsonObject* _tmp12_; - JsonObject* _tmp13_; - JsonObject* _tmp22_; - PublishingAuthenticatorShotwellGoogleSession* _tmp31_; - SpitPublishingPluginHost* _tmp32_; - PublishingAuthenticatorShotwellGoogleSession* _tmp33_; - const gchar* _tmp34_; - GError * _inner_error_ = NULL; -#line 327 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - g_return_if_fail (PUBLISHING_AUTHENTICATOR_SHOTWELL_GOOGLE_IS_GOOGLE (self)); -#line 327 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - g_return_if_fail (response_body != NULL); -#line 328 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - g_debug ("GoogleAuthenticator.vala:328: ACTION: extracting username from body of" \ -" server response"); -#line 330 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _tmp0_ = json_parser_new (); -#line 330 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - parser = _tmp0_; -#line 2149 "GoogleAuthenticator.c" - { - JsonParser* _tmp1_; -#line 333 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _tmp1_ = parser; -#line 333 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - json_parser_load_from_data (_tmp1_, response_body, (gssize) -1, &_inner_error_); -#line 333 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 2158 "GoogleAuthenticator.c" - goto __catch6_g_error; - } - } - goto __finally6; - __catch6_g_error: - { - GError* err = NULL; - SpitPublishingPluginHost* _tmp2_; - GError* _tmp3_; - const gchar* _tmp4_; - gchar* _tmp5_; - gchar* _tmp6_; - GError* _tmp7_; - GError* _tmp8_; -#line 332 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - err = _inner_error_; -#line 332 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _inner_error_ = NULL; -#line 335 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _tmp2_ = self->priv->host; -#line 335 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _tmp3_ = err; -#line 335 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _tmp4_ = _tmp3_->message; -#line 335 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _tmp5_ = g_strconcat ("Couldn't parse JSON response: ", _tmp4_, NULL); -#line 335 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _tmp6_ = _tmp5_; -#line 335 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _tmp7_ = g_error_new_literal (SPIT_PUBLISHING_PUBLISHING_ERROR, SPIT_PUBLISHING_PUBLISHING_ERROR_MALFORMED_RESPONSE, _tmp6_); -#line 335 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _tmp8_ = _tmp7_; -#line 335 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - spit_publishing_plugin_host_post_error (_tmp2_, _tmp8_); -#line 335 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _g_error_free0 (_tmp8_); -#line 335 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _g_free0 (_tmp6_); -#line 337 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _g_error_free0 (err); -#line 337 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _g_object_unref0 (parser); -#line 337 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - return; -#line 2203 "GoogleAuthenticator.c" - } - __finally6: -#line 332 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 332 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _g_object_unref0 (parser); -#line 332 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 332 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - g_clear_error (&_inner_error_); -#line 332 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - return; -#line 2216 "GoogleAuthenticator.c" - } -#line 340 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _tmp9_ = parser; -#line 340 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _tmp10_ = json_parser_get_root (_tmp9_); -#line 340 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _tmp11_ = json_node_get_object (_tmp10_); -#line 340 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _tmp12_ = _json_object_ref0 (_tmp11_); -#line 340 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - response_obj = _tmp12_; -#line 342 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _tmp13_ = response_obj; -#line 342 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - if (json_object_has_member (_tmp13_, "name")) { -#line 2232 "GoogleAuthenticator.c" - gchar* username = NULL; - JsonObject* _tmp14_; - const gchar* _tmp15_; - gchar* _tmp16_; - const gchar* _tmp17_; -#line 343 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _tmp14_ = response_obj; -#line 343 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _tmp15_ = json_object_get_string_member (_tmp14_, "name"); -#line 343 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _tmp16_ = g_strdup (_tmp15_); -#line 343 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - username = _tmp16_; -#line 345 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _tmp17_ = username; -#line 345 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - if (g_strcmp0 (_tmp17_, "") != 0) { -#line 2250 "GoogleAuthenticator.c" - GHashTable* _tmp18_; - gchar* _tmp19_; - const gchar* _tmp20_; - GVariant* _tmp21_; -#line 346 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _tmp18_ = self->priv->params; -#line 346 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _tmp19_ = g_strdup ("UserName"); -#line 346 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _tmp20_ = username; -#line 346 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _tmp21_ = g_variant_new_string (_tmp20_); -#line 346 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - g_variant_ref_sink (_tmp21_); -#line 346 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - g_hash_table_insert (_tmp18_, _tmp19_, _tmp21_); -#line 2267 "GoogleAuthenticator.c" - } -#line 342 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _g_free0 (username); -#line 2271 "GoogleAuthenticator.c" - } -#line 349 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _tmp22_ = response_obj; -#line 349 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - if (json_object_has_member (_tmp22_, "access_token")) { -#line 2277 "GoogleAuthenticator.c" - gchar* access_token = NULL; - JsonObject* _tmp23_; - const gchar* _tmp24_; - gchar* _tmp25_; - const gchar* _tmp26_; -#line 350 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _tmp23_ = response_obj; -#line 350 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _tmp24_ = json_object_get_string_member (_tmp23_, "access_token"); -#line 350 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _tmp25_ = g_strdup (_tmp24_); -#line 350 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - access_token = _tmp25_; -#line 352 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _tmp26_ = access_token; -#line 352 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - if (g_strcmp0 (_tmp26_, "") != 0) { -#line 2295 "GoogleAuthenticator.c" - GHashTable* _tmp27_; - gchar* _tmp28_; - const gchar* _tmp29_; - GVariant* _tmp30_; -#line 353 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _tmp27_ = self->priv->params; -#line 353 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _tmp28_ = g_strdup ("AccessToken"); -#line 353 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _tmp29_ = access_token; -#line 353 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _tmp30_ = g_variant_new_string (_tmp29_); -#line 353 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - g_variant_ref_sink (_tmp30_); -#line 353 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - g_hash_table_insert (_tmp27_, _tmp28_, _tmp30_); -#line 2312 "GoogleAuthenticator.c" - } -#line 349 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _g_free0 (access_token); -#line 2316 "GoogleAuthenticator.c" - } -#line 358 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _tmp31_ = self->priv->session; -#line 358 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _vala_assert (publishing_rest_support_session_is_authenticated (G_TYPE_CHECK_INSTANCE_CAST (_tmp31_, PUBLISHING_REST_SUPPORT_TYPE_SESSION, PublishingRESTSupportSession)), "session.is_authenticated()"); -#line 359 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _tmp32_ = self->priv->host; -#line 359 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _tmp33_ = self->priv->session; -#line 359 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _tmp34_ = _tmp33_->refresh_token; -#line 359 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - spit_host_interface_set_config_string (G_TYPE_CHECK_INSTANCE_CAST (_tmp32_, SPIT_TYPE_HOST_INTERFACE, SpitHostInterface), "refresh_token", _tmp34_); -#line 361 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - g_signal_emit_by_name (G_TYPE_CHECK_INSTANCE_CAST (self, SPIT_PUBLISHING_TYPE_AUTHENTICATOR, SpitPublishingAuthenticator), "authenticated"); -#line 327 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _json_object_unref0 (response_obj); -#line 327 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _g_object_unref0 (parser); -#line 2336 "GoogleAuthenticator.c" -} - - -static void -_publishing_authenticator_shotwell_google_google_on_refresh_access_token_transaction_completed_publishing_rest_support_transaction_completed (PublishingRESTSupportTransaction* _sender, - gpointer self) -{ -#line 372 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - publishing_authenticator_shotwell_google_google_on_refresh_access_token_transaction_completed ((PublishingAuthenticatorShotwellGoogleGoogle*) self, _sender); -#line 2346 "GoogleAuthenticator.c" -} - - -static void -_publishing_authenticator_shotwell_google_google_on_refresh_access_token_transaction_error_publishing_rest_support_transaction_network_error (PublishingRESTSupportTransaction* _sender, - GError* err, - gpointer self) -{ -#line 373 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - publishing_authenticator_shotwell_google_google_on_refresh_access_token_transaction_error ((PublishingAuthenticatorShotwellGoogleGoogle*) self, _sender, err); -#line 2357 "GoogleAuthenticator.c" -} - - -static void -publishing_authenticator_shotwell_google_google_do_exchange_refresh_token_for_access_token (PublishingAuthenticatorShotwellGoogleGoogle* self) -{ - SpitPublishingPluginHost* _tmp0_; - PublishingAuthenticatorShotwellGoogleRefreshAccessTokenTransaction* txn = NULL; - PublishingAuthenticatorShotwellGoogleSession* _tmp1_; - PublishingAuthenticatorShotwellGoogleRefreshAccessTokenTransaction* _tmp2_; - GError * _inner_error_ = NULL; -#line 365 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - g_return_if_fail (PUBLISHING_AUTHENTICATOR_SHOTWELL_GOOGLE_IS_GOOGLE (self)); -#line 366 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - g_debug ("GoogleAuthenticator.vala:366: ACTION: exchanging OAuth refresh token f" \ -"or OAuth access token."); -#line 368 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _tmp0_ = self->priv->host; -#line 368 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - spit_publishing_plugin_host_install_login_wait_pane (_tmp0_); -#line 370 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _tmp1_ = self->priv->session; -#line 370 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _tmp2_ = publishing_authenticator_shotwell_google_refresh_access_token_transaction_new (_tmp1_); -#line 370 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - txn = _tmp2_; -#line 372 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (txn, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "completed", (GCallback) _publishing_authenticator_shotwell_google_google_on_refresh_access_token_transaction_completed_publishing_rest_support_transaction_completed, self, 0); -#line 373 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (txn, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "network-error", (GCallback) _publishing_authenticator_shotwell_google_google_on_refresh_access_token_transaction_error_publishing_rest_support_transaction_network_error, self, 0); -#line 2387 "GoogleAuthenticator.c" - { -#line 376 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - publishing_rest_support_transaction_execute (G_TYPE_CHECK_INSTANCE_CAST (txn, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), &_inner_error_); -#line 376 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 376 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - if (_inner_error_->domain == SPIT_PUBLISHING_PUBLISHING_ERROR) { -#line 2395 "GoogleAuthenticator.c" - goto __catch7_spit_publishing_publishing_error; - } -#line 376 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _publishing_rest_support_transaction_unref0 (txn); -#line 376 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.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 376 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - g_clear_error (&_inner_error_); -#line 376 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - return; -#line 2406 "GoogleAuthenticator.c" - } - } - goto __finally7; - __catch7_spit_publishing_publishing_error: - { - GError* err = NULL; - SpitPublishingPluginHost* _tmp3_; - GError* _tmp4_; -#line 375 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - err = _inner_error_; -#line 375 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _inner_error_ = NULL; -#line 378 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _tmp3_ = self->priv->host; -#line 378 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _tmp4_ = err; -#line 378 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - spit_publishing_plugin_host_post_error (_tmp3_, _tmp4_); -#line 375 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _g_error_free0 (err); -#line 2427 "GoogleAuthenticator.c" - } - __finally7: -#line 375 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 375 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _publishing_rest_support_transaction_unref0 (txn); -#line 375 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.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 375 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - g_clear_error (&_inner_error_); -#line 375 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - return; -#line 2440 "GoogleAuthenticator.c" - } -#line 365 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _publishing_rest_support_transaction_unref0 (txn); -#line 2444 "GoogleAuthenticator.c" -} - - -static void -publishing_authenticator_shotwell_google_google_on_refresh_access_token_transaction_completed (PublishingAuthenticatorShotwellGoogleGoogle* self, - PublishingRESTSupportTransaction* txn) -{ - guint _tmp0_; - guint _tmp1_; - PublishingAuthenticatorShotwellGoogleSession* _tmp2_; - gchar* _tmp3_; - gchar* _tmp4_; -#line 382 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - g_return_if_fail (PUBLISHING_AUTHENTICATOR_SHOTWELL_GOOGLE_IS_GOOGLE (self)); -#line 382 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - g_return_if_fail (PUBLISHING_REST_SUPPORT_IS_TRANSACTION (txn)); -#line 384 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - g_signal_parse_name ("completed", PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, &_tmp0_, NULL, FALSE); -#line 384 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - g_signal_handlers_disconnect_matched (txn, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp0_, 0, NULL, (GCallback) _publishing_authenticator_shotwell_google_google_on_refresh_access_token_transaction_completed_publishing_rest_support_transaction_completed, self); -#line 385 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - g_signal_parse_name ("network-error", PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, &_tmp1_, NULL, FALSE); -#line 385 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - g_signal_handlers_disconnect_matched (txn, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp1_, 0, NULL, (GCallback) _publishing_authenticator_shotwell_google_google_on_refresh_access_token_transaction_error_publishing_rest_support_transaction_network_error, self); -#line 387 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - g_debug ("GoogleAuthenticator.vala:387: EVENT: refresh access token transaction " \ -"completed successfully."); -#line 389 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _tmp2_ = self->priv->session; -#line 389 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - if (publishing_rest_support_session_is_authenticated (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, PUBLISHING_REST_SUPPORT_TYPE_SESSION, PublishingRESTSupportSession))) { -#line 390 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - return; -#line 2477 "GoogleAuthenticator.c" - } -#line 392 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _tmp3_ = publishing_rest_support_transaction_get_response (txn); -#line 392 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _tmp4_ = _tmp3_; -#line 392 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - publishing_authenticator_shotwell_google_google_do_extract_tokens (self, _tmp4_); -#line 392 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _g_free0 (_tmp4_); -#line 2487 "GoogleAuthenticator.c" -} - - -static gboolean -___lambda4_ (PublishingAuthenticatorShotwellGoogleGoogle* self) -{ - gboolean result = FALSE; -#line 408 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - spit_publishing_authenticator_authenticate (G_TYPE_CHECK_INSTANCE_CAST (self, SPIT_PUBLISHING_TYPE_AUTHENTICATOR, SpitPublishingAuthenticator)); -#line 408 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - result = FALSE; -#line 408 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - return result; -#line 2501 "GoogleAuthenticator.c" -} - - -static gboolean -____lambda4__gsource_func (gpointer self) -{ - gboolean result; - result = ___lambda4_ ((PublishingAuthenticatorShotwellGoogleGoogle*) self); -#line 408 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - return result; -#line 2512 "GoogleAuthenticator.c" -} - - -static void -publishing_authenticator_shotwell_google_google_on_refresh_access_token_transaction_error (PublishingAuthenticatorShotwellGoogleGoogle* self, - PublishingRESTSupportTransaction* txn, - GError* err) -{ - guint _tmp0_; - guint _tmp1_; - PublishingAuthenticatorShotwellGoogleSession* _tmp2_; - gboolean _tmp3_ = FALSE; - SpitPublishingPluginHost* _tmp5_; -#line 395 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - g_return_if_fail (PUBLISHING_AUTHENTICATOR_SHOTWELL_GOOGLE_IS_GOOGLE (self)); -#line 395 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - g_return_if_fail (PUBLISHING_REST_SUPPORT_IS_TRANSACTION (txn)); -#line 397 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - g_signal_parse_name ("completed", PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, &_tmp0_, NULL, FALSE); -#line 397 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - g_signal_handlers_disconnect_matched (txn, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp0_, 0, NULL, (GCallback) _publishing_authenticator_shotwell_google_google_on_refresh_access_token_transaction_completed_publishing_rest_support_transaction_completed, self); -#line 398 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - g_signal_parse_name ("network-error", PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, &_tmp1_, NULL, FALSE); -#line 398 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - g_signal_handlers_disconnect_matched (txn, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp1_, 0, NULL, (GCallback) _publishing_authenticator_shotwell_google_google_on_refresh_access_token_transaction_error_publishing_rest_support_transaction_network_error, self); -#line 400 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - g_debug ("GoogleAuthenticator.vala:400: EVENT: refresh access token transaction " \ -"caused a network error."); -#line 402 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _tmp2_ = self->priv->session; -#line 402 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - if (publishing_rest_support_session_is_authenticated (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, PUBLISHING_REST_SUPPORT_TYPE_SESSION, PublishingRESTSupportSession))) { -#line 403 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - return; -#line 2546 "GoogleAuthenticator.c" - } -#line 404 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - if (publishing_rest_support_transaction_get_status_code (txn) == ((guint) SOUP_STATUS_BAD_REQUEST)) { -#line 404 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _tmp3_ = TRUE; -#line 2552 "GoogleAuthenticator.c" - } else { -#line 405 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _tmp3_ = publishing_rest_support_transaction_get_status_code (txn) == ((guint) SOUP_STATUS_UNAUTHORIZED); -#line 2556 "GoogleAuthenticator.c" - } -#line 404 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - if (_tmp3_) { -#line 2560 "GoogleAuthenticator.c" - SpitPublishingPluginHost* _tmp4_; -#line 407 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _tmp4_ = self->priv->host; -#line 407 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - spit_host_interface_set_config_string (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, SPIT_TYPE_HOST_INTERFACE, SpitHostInterface), "refresh_token", ""); -#line 408 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - g_idle_add_full (G_PRIORITY_DEFAULT_IDLE, ____lambda4__gsource_func, g_object_ref (self), g_object_unref); -#line 2568 "GoogleAuthenticator.c" - } -#line 411 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _tmp5_ = self->priv->host; -#line 411 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - spit_publishing_plugin_host_post_error (_tmp5_, err); -#line 2574 "GoogleAuthenticator.c" -} - - -static void -_publishing_authenticator_shotwell_google_google_on_service_welcome_login_spit_publishing_login_callback (gpointer self) -{ -#line 417 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - publishing_authenticator_shotwell_google_google_on_service_welcome_login ((PublishingAuthenticatorShotwellGoogleGoogle*) self); -#line 2583 "GoogleAuthenticator.c" -} - - -static void -publishing_authenticator_shotwell_google_google_do_show_service_welcome_pane (PublishingAuthenticatorShotwellGoogleGoogle* self) -{ - SpitPublishingPluginHost* _tmp0_; - const gchar* _tmp1_; -#line 414 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - g_return_if_fail (PUBLISHING_AUTHENTICATOR_SHOTWELL_GOOGLE_IS_GOOGLE (self)); -#line 415 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - g_debug ("GoogleAuthenticator.vala:415: ACTION: showing service welcome pane."); -#line 417 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _tmp0_ = self->priv->host; -#line 417 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _tmp1_ = self->priv->welcome_message; -#line 417 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - spit_publishing_plugin_host_install_welcome_pane (_tmp0_, _tmp1_, _publishing_authenticator_shotwell_google_google_on_service_welcome_login_spit_publishing_login_callback, self); -#line 2602 "GoogleAuthenticator.c" -} - - -static void -publishing_authenticator_shotwell_google_google_on_service_welcome_login (PublishingAuthenticatorShotwellGoogleGoogle* self) -{ -#line 420 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - g_return_if_fail (PUBLISHING_AUTHENTICATOR_SHOTWELL_GOOGLE_IS_GOOGLE (self)); -#line 421 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - g_debug ("GoogleAuthenticator.vala:421: EVENT: user clicked 'Login' in welcome p" \ -"ane."); -#line 423 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - publishing_authenticator_shotwell_google_google_do_hosted_web_authentication (self); -#line 2615 "GoogleAuthenticator.c" -} - - -static void -publishing_authenticator_shotwell_google_google_class_init (PublishingAuthenticatorShotwellGoogleGoogleClass * klass) -{ -#line 107 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - publishing_authenticator_shotwell_google_google_parent_class = g_type_class_peek_parent (klass); -#line 107 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - g_type_class_add_private (klass, sizeof (PublishingAuthenticatorShotwellGoogleGooglePrivate)); -#line 107 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - G_OBJECT_CLASS (klass)->finalize = publishing_authenticator_shotwell_google_google_finalize; -#line 2628 "GoogleAuthenticator.c" -} - - -static void -publishing_authenticator_shotwell_google_google_spit_publishing_authenticator_interface_init (SpitPublishingAuthenticatorIface * iface) -{ -#line 107 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - publishing_authenticator_shotwell_google_google_spit_publishing_authenticator_parent_iface = g_type_interface_peek_parent (iface); -#line 107 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - iface->authenticate = (void (*) (SpitPublishingAuthenticator *)) publishing_authenticator_shotwell_google_google_real_authenticate; -#line 107 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - iface->can_logout = (gboolean (*) (SpitPublishingAuthenticator *)) publishing_authenticator_shotwell_google_google_real_can_logout; -#line 107 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - iface->get_authentication_parameter = (GHashTable* (*) (SpitPublishingAuthenticator *)) publishing_authenticator_shotwell_google_google_real_get_authentication_parameter; -#line 107 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - iface->logout = (void (*) (SpitPublishingAuthenticator *)) publishing_authenticator_shotwell_google_google_real_logout; -#line 107 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - iface->refresh = (void (*) (SpitPublishingAuthenticator *)) publishing_authenticator_shotwell_google_google_real_refresh; -#line 2647 "GoogleAuthenticator.c" -} - - -static void -publishing_authenticator_shotwell_google_google_instance_init (PublishingAuthenticatorShotwellGoogleGoogle * self) -{ -#line 107 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - self->priv = PUBLISHING_AUTHENTICATOR_SHOTWELL_GOOGLE_GOOGLE_GET_PRIVATE (self); -#line 108 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - self->priv->scope = NULL; -#line 109 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - self->priv->host = NULL; -#line 110 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - self->priv->params = NULL; -#line 111 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - self->priv->web_auth_pane = NULL; -#line 112 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - self->priv->session = NULL; -#line 113 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - self->priv->welcome_message = NULL; -#line 2668 "GoogleAuthenticator.c" -} - - -static void -publishing_authenticator_shotwell_google_google_finalize (GObject * obj) -{ - PublishingAuthenticatorShotwellGoogleGoogle * self; -#line 107 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, PUBLISHING_AUTHENTICATOR_SHOTWELL_GOOGLE_TYPE_GOOGLE, PublishingAuthenticatorShotwellGoogleGoogle); -#line 108 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _g_free0 (self->priv->scope); -#line 109 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _g_object_unref0 (self->priv->host); -#line 110 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _g_hash_table_unref0 (self->priv->params); -#line 111 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _g_object_unref0 (self->priv->web_auth_pane); -#line 112 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _publishing_rest_support_session_unref0 (self->priv->session); -#line 113 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _g_free0 (self->priv->welcome_message); -#line 107 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - G_OBJECT_CLASS (publishing_authenticator_shotwell_google_google_parent_class)->finalize (obj); -#line 2692 "GoogleAuthenticator.c" -} - - -GType -publishing_authenticator_shotwell_google_google_get_type (void) -{ - static volatile gsize publishing_authenticator_shotwell_google_google_type_id__volatile = 0; - if (g_once_init_enter (&publishing_authenticator_shotwell_google_google_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (PublishingAuthenticatorShotwellGoogleGoogleClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) publishing_authenticator_shotwell_google_google_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PublishingAuthenticatorShotwellGoogleGoogle), 0, (GInstanceInitFunc) publishing_authenticator_shotwell_google_google_instance_init, NULL }; - static const GInterfaceInfo spit_publishing_authenticator_info = { (GInterfaceInitFunc) publishing_authenticator_shotwell_google_google_spit_publishing_authenticator_interface_init, (GInterfaceFinalizeFunc) NULL, NULL}; - GType publishing_authenticator_shotwell_google_google_type_id; - publishing_authenticator_shotwell_google_google_type_id = g_type_register_static (G_TYPE_OBJECT, "PublishingAuthenticatorShotwellGoogleGoogle", &g_define_type_info, 0); - g_type_add_interface_static (publishing_authenticator_shotwell_google_google_type_id, SPIT_PUBLISHING_TYPE_AUTHENTICATOR, &spit_publishing_authenticator_info); - g_once_init_leave (&publishing_authenticator_shotwell_google_google_type_id__volatile, publishing_authenticator_shotwell_google_google_type_id); - } - return publishing_authenticator_shotwell_google_google_type_id__volatile; -} - - - diff --git a/plugins/authenticator/shotwell/OAuth1Authenticator.c b/plugins/authenticator/shotwell/OAuth1Authenticator.c deleted file mode 100644 index 7cf5780..0000000 --- a/plugins/authenticator/shotwell/OAuth1Authenticator.c +++ /dev/null @@ -1,772 +0,0 @@ -/* OAuth1Authenticator.c generated by valac 0.40.4, the Vala compiler - * generated from OAuth1Authenticator.vala, do not modify */ - -/* Copyright 2016 Software Freedom Conservancy Inc. - * Copyright 2017 Jens Georg - * - * 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 "shotwell-plugin-dev-1.0.h" -#include -#include -#include "shotwell-plugin-common.h" - - -#define PUBLISHING_AUTHENTICATOR_SHOTWELL_OAUTH1_TYPE_AUTHENTICATOR (publishing_authenticator_shotwell_oauth1_authenticator_get_type ()) -#define PUBLISHING_AUTHENTICATOR_SHOTWELL_OAUTH1_AUTHENTICATOR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_AUTHENTICATOR_SHOTWELL_OAUTH1_TYPE_AUTHENTICATOR, PublishingAuthenticatorShotwellOAuth1Authenticator)) -#define PUBLISHING_AUTHENTICATOR_SHOTWELL_OAUTH1_AUTHENTICATOR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_AUTHENTICATOR_SHOTWELL_OAUTH1_TYPE_AUTHENTICATOR, PublishingAuthenticatorShotwellOAuth1AuthenticatorClass)) -#define PUBLISHING_AUTHENTICATOR_SHOTWELL_OAUTH1_IS_AUTHENTICATOR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_AUTHENTICATOR_SHOTWELL_OAUTH1_TYPE_AUTHENTICATOR)) -#define PUBLISHING_AUTHENTICATOR_SHOTWELL_OAUTH1_IS_AUTHENTICATOR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_AUTHENTICATOR_SHOTWELL_OAUTH1_TYPE_AUTHENTICATOR)) -#define PUBLISHING_AUTHENTICATOR_SHOTWELL_OAUTH1_AUTHENTICATOR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_AUTHENTICATOR_SHOTWELL_OAUTH1_TYPE_AUTHENTICATOR, PublishingAuthenticatorShotwellOAuth1AuthenticatorClass)) - -typedef struct _PublishingAuthenticatorShotwellOAuth1Authenticator PublishingAuthenticatorShotwellOAuth1Authenticator; -typedef struct _PublishingAuthenticatorShotwellOAuth1AuthenticatorClass PublishingAuthenticatorShotwellOAuth1AuthenticatorClass; -typedef struct _PublishingAuthenticatorShotwellOAuth1AuthenticatorPrivate PublishingAuthenticatorShotwellOAuth1AuthenticatorPrivate; -enum { - PUBLISHING_AUTHENTICATOR_SHOTWELL_OAUTH1_AUTHENTICATOR_0_PROPERTY, - PUBLISHING_AUTHENTICATOR_SHOTWELL_OAUTH1_AUTHENTICATOR_NUM_PROPERTIES -}; -static GParamSpec* publishing_authenticator_shotwell_oauth1_authenticator_properties[PUBLISHING_AUTHENTICATOR_SHOTWELL_OAUTH1_AUTHENTICATOR_NUM_PROPERTIES]; -#define _g_hash_table_unref0(var) ((var == NULL) ? NULL : (var = (g_hash_table_unref (var), NULL))) -#define _publishing_rest_support_session_unref0(var) ((var == NULL) ? NULL : (var = (publishing_rest_support_session_unref (var), NULL))) -#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL))) -#define _g_free0(var) (var = (g_free (var), NULL)) - -struct _PublishingAuthenticatorShotwellOAuth1Authenticator { - GObject parent_instance; - PublishingAuthenticatorShotwellOAuth1AuthenticatorPrivate * priv; - GHashTable* params; - PublishingRESTSupportOAuth1Session* session; - SpitPublishingPluginHost* host; -}; - -struct _PublishingAuthenticatorShotwellOAuth1AuthenticatorClass { - GObjectClass parent_class; - void (*authenticate) (PublishingAuthenticatorShotwellOAuth1Authenticator* self); - gboolean (*can_logout) (PublishingAuthenticatorShotwellOAuth1Authenticator* self); - void (*logout) (PublishingAuthenticatorShotwellOAuth1Authenticator* self); - void (*refresh) (PublishingAuthenticatorShotwellOAuth1Authenticator* self); -}; - - -static gpointer publishing_authenticator_shotwell_oauth1_authenticator_parent_class = NULL; -static SpitPublishingAuthenticatorIface * publishing_authenticator_shotwell_oauth1_authenticator_spit_publishing_authenticator_parent_iface = NULL; - -GType publishing_authenticator_shotwell_oauth1_authenticator_get_type (void) G_GNUC_CONST; -void publishing_authenticator_shotwell_oauth1_authenticator_on_session_authenticated (PublishingAuthenticatorShotwellOAuth1Authenticator* self); -static void _publishing_authenticator_shotwell_oauth1_authenticator_on_session_authenticated_publishing_rest_support_session_authenticated (PublishingRESTSupportSession* _sender, - gpointer self); -PublishingAuthenticatorShotwellOAuth1Authenticator* publishing_authenticator_shotwell_oauth1_authenticator_construct (GType object_type, - const gchar* api_key, - const gchar* api_secret, - SpitPublishingPluginHost* host); -static void _g_free0_ (gpointer var); -static void _g_variant_unref0_ (gpointer var); -static GVariant* _variant_new1 (const gchar* value); -static GVariant* _variant_new2 (const gchar* value); -void publishing_authenticator_shotwell_oauth1_authenticator_authenticate (PublishingAuthenticatorShotwellOAuth1Authenticator* self); -static void publishing_authenticator_shotwell_oauth1_authenticator_real_authenticate (PublishingAuthenticatorShotwellOAuth1Authenticator* self); -gboolean publishing_authenticator_shotwell_oauth1_authenticator_can_logout (PublishingAuthenticatorShotwellOAuth1Authenticator* self); -static gboolean publishing_authenticator_shotwell_oauth1_authenticator_real_can_logout (PublishingAuthenticatorShotwellOAuth1Authenticator* self); -static GHashTable* publishing_authenticator_shotwell_oauth1_authenticator_real_get_authentication_parameter (SpitPublishingAuthenticator* base); -void publishing_authenticator_shotwell_oauth1_authenticator_logout (PublishingAuthenticatorShotwellOAuth1Authenticator* self); -static void publishing_authenticator_shotwell_oauth1_authenticator_real_logout (PublishingAuthenticatorShotwellOAuth1Authenticator* self); -void publishing_authenticator_shotwell_oauth1_authenticator_refresh (PublishingAuthenticatorShotwellOAuth1Authenticator* self); -static void publishing_authenticator_shotwell_oauth1_authenticator_real_refresh (PublishingAuthenticatorShotwellOAuth1Authenticator* self); -void publishing_authenticator_shotwell_oauth1_authenticator_invalidate_persistent_session (PublishingAuthenticatorShotwellOAuth1Authenticator* self); -void publishing_authenticator_shotwell_oauth1_authenticator_set_persistent_access_phase_token (PublishingAuthenticatorShotwellOAuth1Authenticator* self, - const gchar* token); -void publishing_authenticator_shotwell_oauth1_authenticator_set_persistent_access_phase_token_secret (PublishingAuthenticatorShotwellOAuth1Authenticator* self, - const gchar* secret); -void publishing_authenticator_shotwell_oauth1_authenticator_set_persistent_access_phase_username (PublishingAuthenticatorShotwellOAuth1Authenticator* self, - const gchar* username); -gboolean publishing_authenticator_shotwell_oauth1_authenticator_is_persistent_session_valid (PublishingAuthenticatorShotwellOAuth1Authenticator* self); -gchar* publishing_authenticator_shotwell_oauth1_authenticator_get_persistent_access_phase_username (PublishingAuthenticatorShotwellOAuth1Authenticator* self); -gchar* publishing_authenticator_shotwell_oauth1_authenticator_get_persistent_access_phase_token (PublishingAuthenticatorShotwellOAuth1Authenticator* self); -gchar* publishing_authenticator_shotwell_oauth1_authenticator_get_persistent_access_phase_token_secret (PublishingAuthenticatorShotwellOAuth1Authenticator* self); -static GVariant* _variant_new3 (gchar* value); -static GVariant* _variant_new4 (gchar* value); -static GVariant* _variant_new5 (gchar* value); -static void publishing_authenticator_shotwell_oauth1_authenticator_finalize (GObject * obj); - - -static void -_publishing_authenticator_shotwell_oauth1_authenticator_on_session_authenticated_publishing_rest_support_session_authenticated (PublishingRESTSupportSession* _sender, - gpointer self) -{ -#line 29 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/OAuth1Authenticator.vala" - publishing_authenticator_shotwell_oauth1_authenticator_on_session_authenticated ((PublishingAuthenticatorShotwellOAuth1Authenticator*) self); -#line 105 "OAuth1Authenticator.c" -} - - -static gpointer -_g_object_ref0 (gpointer self) -{ -#line 17 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/OAuth1Authenticator.vala" - return self ? g_object_ref (self) : NULL; -#line 114 "OAuth1Authenticator.c" -} - - -static void -_g_free0_ (gpointer var) -{ -#line 19 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/OAuth1Authenticator.vala" - var = (g_free (var), NULL); -#line 123 "OAuth1Authenticator.c" -} - - -static void -_g_variant_unref0_ (gpointer var) -{ -#line 19 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/OAuth1Authenticator.vala" - (var == NULL) ? NULL : (var = (g_variant_unref (var), NULL)); -#line 132 "OAuth1Authenticator.c" -} - - -static GVariant* -_variant_new1 (const gchar* value) -{ -#line 20 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/OAuth1Authenticator.vala" - return g_variant_ref_sink (g_variant_new_string (value)); -#line 141 "OAuth1Authenticator.c" -} - - -static GVariant* -_variant_new2 (const gchar* value) -{ -#line 21 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/OAuth1Authenticator.vala" - return g_variant_ref_sink (g_variant_new_string (value)); -#line 150 "OAuth1Authenticator.c" -} - - -PublishingAuthenticatorShotwellOAuth1Authenticator* -publishing_authenticator_shotwell_oauth1_authenticator_construct (GType object_type, - const gchar* api_key, - const gchar* api_secret, - SpitPublishingPluginHost* host) -{ - PublishingAuthenticatorShotwellOAuth1Authenticator * self = NULL; - SpitPublishingPluginHost* _tmp0_; - GHashFunc _tmp1_; - GEqualFunc _tmp2_; - GHashTable* _tmp3_; - GHashTable* _tmp4_; - gchar* _tmp5_; - GVariant* _tmp6_; - GHashTable* _tmp7_; - gchar* _tmp8_; - GVariant* _tmp9_; - PublishingRESTSupportOAuth1Session* _tmp10_; - PublishingRESTSupportOAuth1Session* _tmp11_; - PublishingRESTSupportOAuth1Session* _tmp12_; -#line 15 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/OAuth1Authenticator.vala" - g_return_val_if_fail (api_key != NULL, NULL); -#line 15 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/OAuth1Authenticator.vala" - g_return_val_if_fail (api_secret != NULL, NULL); -#line 15 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/OAuth1Authenticator.vala" - g_return_val_if_fail (SPIT_PUBLISHING_IS_PLUGIN_HOST (host), NULL); -#line 16 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/OAuth1Authenticator.vala" - self = (PublishingAuthenticatorShotwellOAuth1Authenticator*) g_object_new (object_type, NULL); -#line 17 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/OAuth1Authenticator.vala" - _tmp0_ = _g_object_ref0 (host); -#line 17 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/OAuth1Authenticator.vala" - _g_object_unref0 (self->host); -#line 17 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/OAuth1Authenticator.vala" - self->host = _tmp0_; -#line 19 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/OAuth1Authenticator.vala" - _tmp1_ = g_str_hash; -#line 19 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/OAuth1Authenticator.vala" - _tmp2_ = g_str_equal; -#line 19 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/OAuth1Authenticator.vala" - _tmp3_ = g_hash_table_new_full (_tmp1_, _tmp2_, _g_free0_, _g_variant_unref0_); -#line 19 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/OAuth1Authenticator.vala" - _g_hash_table_unref0 (self->params); -#line 19 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/OAuth1Authenticator.vala" - self->params = _tmp3_; -#line 20 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/OAuth1Authenticator.vala" - _tmp4_ = self->params; -#line 20 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/OAuth1Authenticator.vala" - _tmp5_ = g_strdup ("ConsumerKey"); -#line 20 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/OAuth1Authenticator.vala" - _tmp6_ = _variant_new1 (api_key); -#line 20 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/OAuth1Authenticator.vala" - g_hash_table_insert (_tmp4_, _tmp5_, _tmp6_); -#line 21 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/OAuth1Authenticator.vala" - _tmp7_ = self->params; -#line 21 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/OAuth1Authenticator.vala" - _tmp8_ = g_strdup ("ConsumerSecret"); -#line 21 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/OAuth1Authenticator.vala" - _tmp9_ = _variant_new2 (api_secret); -#line 21 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/OAuth1Authenticator.vala" - g_hash_table_insert (_tmp7_, _tmp8_, _tmp9_); -#line 23 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/OAuth1Authenticator.vala" - _tmp10_ = publishing_rest_support_oauth1_session_new (NULL); -#line 23 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/OAuth1Authenticator.vala" - _publishing_rest_support_session_unref0 (self->session); -#line 23 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/OAuth1Authenticator.vala" - self->session = _tmp10_; -#line 24 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/OAuth1Authenticator.vala" - _tmp11_ = self->session; -#line 24 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/OAuth1Authenticator.vala" - publishing_rest_support_oauth1_session_set_api_credentials (_tmp11_, api_key, api_secret); -#line 25 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/OAuth1Authenticator.vala" - _tmp12_ = self->session; -#line 25 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/OAuth1Authenticator.vala" - g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp12_, PUBLISHING_REST_SUPPORT_TYPE_SESSION, PublishingRESTSupportSession), "authenticated", (GCallback) _publishing_authenticator_shotwell_oauth1_authenticator_on_session_authenticated_publishing_rest_support_session_authenticated, self, 0); -#line 15 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/OAuth1Authenticator.vala" - return self; -#line 230 "OAuth1Authenticator.c" -} - - -static void -publishing_authenticator_shotwell_oauth1_authenticator_real_authenticate (PublishingAuthenticatorShotwellOAuth1Authenticator* self) -{ -#line 33 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/OAuth1Authenticator.vala" - g_critical ("Type `%s' does not implement abstract method `publishing_authenticator_shotwell_oauth1_authenticator_authenticate'", g_type_name (G_TYPE_FROM_INSTANCE (self))); -#line 33 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/OAuth1Authenticator.vala" - return; -#line 241 "OAuth1Authenticator.c" -} - - -void -publishing_authenticator_shotwell_oauth1_authenticator_authenticate (PublishingAuthenticatorShotwellOAuth1Authenticator* self) -{ -#line 33 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/OAuth1Authenticator.vala" - g_return_if_fail (PUBLISHING_AUTHENTICATOR_SHOTWELL_OAUTH1_IS_AUTHENTICATOR (self)); -#line 33 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/OAuth1Authenticator.vala" - PUBLISHING_AUTHENTICATOR_SHOTWELL_OAUTH1_AUTHENTICATOR_GET_CLASS (self)->authenticate (self); -#line 252 "OAuth1Authenticator.c" -} - - -static gboolean -publishing_authenticator_shotwell_oauth1_authenticator_real_can_logout (PublishingAuthenticatorShotwellOAuth1Authenticator* self) -{ - gboolean _tmp0_ = FALSE; -#line 35 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/OAuth1Authenticator.vala" - g_critical ("Type `%s' does not implement abstract method `publishing_authenticator_shotwell_oauth1_authenticator_can_logout'", g_type_name (G_TYPE_FROM_INSTANCE (self))); -#line 35 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/OAuth1Authenticator.vala" - return _tmp0_; -#line 264 "OAuth1Authenticator.c" -} - - -gboolean -publishing_authenticator_shotwell_oauth1_authenticator_can_logout (PublishingAuthenticatorShotwellOAuth1Authenticator* self) -{ -#line 35 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/OAuth1Authenticator.vala" - g_return_val_if_fail (PUBLISHING_AUTHENTICATOR_SHOTWELL_OAUTH1_IS_AUTHENTICATOR (self), FALSE); -#line 35 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/OAuth1Authenticator.vala" - return PUBLISHING_AUTHENTICATOR_SHOTWELL_OAUTH1_AUTHENTICATOR_GET_CLASS (self)->can_logout (self); -#line 275 "OAuth1Authenticator.c" -} - - -static gpointer -_g_hash_table_ref0 (gpointer self) -{ -#line 38 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/OAuth1Authenticator.vala" - return self ? g_hash_table_ref (self) : NULL; -#line 284 "OAuth1Authenticator.c" -} - - -static GHashTable* -publishing_authenticator_shotwell_oauth1_authenticator_real_get_authentication_parameter (SpitPublishingAuthenticator* base) -{ - PublishingAuthenticatorShotwellOAuth1Authenticator * self; - GHashTable* result = NULL; - GHashTable* _tmp0_; - GHashTable* _tmp1_; -#line 37 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/OAuth1Authenticator.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_AUTHENTICATOR_SHOTWELL_OAUTH1_TYPE_AUTHENTICATOR, PublishingAuthenticatorShotwellOAuth1Authenticator); -#line 38 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/OAuth1Authenticator.vala" - _tmp0_ = self->params; -#line 38 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/OAuth1Authenticator.vala" - _tmp1_ = _g_hash_table_ref0 (_tmp0_); -#line 38 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/OAuth1Authenticator.vala" - result = _tmp1_; -#line 38 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/OAuth1Authenticator.vala" - return result; -#line 305 "OAuth1Authenticator.c" -} - - -static void -publishing_authenticator_shotwell_oauth1_authenticator_real_logout (PublishingAuthenticatorShotwellOAuth1Authenticator* self) -{ -#line 41 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/OAuth1Authenticator.vala" - g_critical ("Type `%s' does not implement abstract method `publishing_authenticator_shotwell_oauth1_authenticator_logout'", g_type_name (G_TYPE_FROM_INSTANCE (self))); -#line 41 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/OAuth1Authenticator.vala" - return; -#line 316 "OAuth1Authenticator.c" -} - - -void -publishing_authenticator_shotwell_oauth1_authenticator_logout (PublishingAuthenticatorShotwellOAuth1Authenticator* self) -{ -#line 41 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/OAuth1Authenticator.vala" - g_return_if_fail (PUBLISHING_AUTHENTICATOR_SHOTWELL_OAUTH1_IS_AUTHENTICATOR (self)); -#line 41 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/OAuth1Authenticator.vala" - PUBLISHING_AUTHENTICATOR_SHOTWELL_OAUTH1_AUTHENTICATOR_GET_CLASS (self)->logout (self); -#line 327 "OAuth1Authenticator.c" -} - - -static void -publishing_authenticator_shotwell_oauth1_authenticator_real_refresh (PublishingAuthenticatorShotwellOAuth1Authenticator* self) -{ -#line 43 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/OAuth1Authenticator.vala" - g_critical ("Type `%s' does not implement abstract method `publishing_authenticator_shotwell_oauth1_authenticator_refresh'", g_type_name (G_TYPE_FROM_INSTANCE (self))); -#line 43 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/OAuth1Authenticator.vala" - return; -#line 338 "OAuth1Authenticator.c" -} - - -void -publishing_authenticator_shotwell_oauth1_authenticator_refresh (PublishingAuthenticatorShotwellOAuth1Authenticator* self) -{ -#line 43 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/OAuth1Authenticator.vala" - g_return_if_fail (PUBLISHING_AUTHENTICATOR_SHOTWELL_OAUTH1_IS_AUTHENTICATOR (self)); -#line 43 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/OAuth1Authenticator.vala" - PUBLISHING_AUTHENTICATOR_SHOTWELL_OAUTH1_AUTHENTICATOR_GET_CLASS (self)->refresh (self); -#line 349 "OAuth1Authenticator.c" -} - - -void -publishing_authenticator_shotwell_oauth1_authenticator_invalidate_persistent_session (PublishingAuthenticatorShotwellOAuth1Authenticator* self) -{ -#line 45 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/OAuth1Authenticator.vala" - g_return_if_fail (PUBLISHING_AUTHENTICATOR_SHOTWELL_OAUTH1_IS_AUTHENTICATOR (self)); -#line 46 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/OAuth1Authenticator.vala" - publishing_authenticator_shotwell_oauth1_authenticator_set_persistent_access_phase_token (self, ""); -#line 47 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/OAuth1Authenticator.vala" - publishing_authenticator_shotwell_oauth1_authenticator_set_persistent_access_phase_token_secret (self, ""); -#line 48 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/OAuth1Authenticator.vala" - publishing_authenticator_shotwell_oauth1_authenticator_set_persistent_access_phase_username (self, ""); -#line 364 "OAuth1Authenticator.c" -} - - -gboolean -publishing_authenticator_shotwell_oauth1_authenticator_is_persistent_session_valid (PublishingAuthenticatorShotwellOAuth1Authenticator* self) -{ - gboolean result = FALSE; - gboolean _tmp0_ = FALSE; - gboolean _tmp1_ = FALSE; - gchar* _tmp2_; - gchar* _tmp3_; - gboolean _tmp4_; -#line 50 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/OAuth1Authenticator.vala" - g_return_val_if_fail (PUBLISHING_AUTHENTICATOR_SHOTWELL_OAUTH1_IS_AUTHENTICATOR (self), FALSE); -#line 51 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/OAuth1Authenticator.vala" - _tmp2_ = publishing_authenticator_shotwell_oauth1_authenticator_get_persistent_access_phase_username (self); -#line 51 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/OAuth1Authenticator.vala" - _tmp3_ = _tmp2_; -#line 51 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/OAuth1Authenticator.vala" - _tmp4_ = _tmp3_ != NULL; -#line 51 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/OAuth1Authenticator.vala" - _g_free0 (_tmp3_); -#line 51 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/OAuth1Authenticator.vala" - if (_tmp4_) { -#line 389 "OAuth1Authenticator.c" - gchar* _tmp5_; - gchar* _tmp6_; -#line 52 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/OAuth1Authenticator.vala" - _tmp5_ = publishing_authenticator_shotwell_oauth1_authenticator_get_persistent_access_phase_token (self); -#line 52 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/OAuth1Authenticator.vala" - _tmp6_ = _tmp5_; -#line 52 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/OAuth1Authenticator.vala" - _tmp1_ = _tmp6_ != NULL; -#line 52 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/OAuth1Authenticator.vala" - _g_free0 (_tmp6_); -#line 400 "OAuth1Authenticator.c" - } else { -#line 51 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/OAuth1Authenticator.vala" - _tmp1_ = FALSE; -#line 404 "OAuth1Authenticator.c" - } -#line 51 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/OAuth1Authenticator.vala" - if (_tmp1_) { -#line 408 "OAuth1Authenticator.c" - gchar* _tmp7_; - gchar* _tmp8_; -#line 53 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/OAuth1Authenticator.vala" - _tmp7_ = publishing_authenticator_shotwell_oauth1_authenticator_get_persistent_access_phase_token_secret (self); -#line 53 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/OAuth1Authenticator.vala" - _tmp8_ = _tmp7_; -#line 53 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/OAuth1Authenticator.vala" - _tmp0_ = _tmp8_ != NULL; -#line 53 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/OAuth1Authenticator.vala" - _g_free0 (_tmp8_); -#line 419 "OAuth1Authenticator.c" - } else { -#line 51 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/OAuth1Authenticator.vala" - _tmp0_ = FALSE; -#line 423 "OAuth1Authenticator.c" - } -#line 51 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/OAuth1Authenticator.vala" - result = _tmp0_; -#line 51 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/OAuth1Authenticator.vala" - return result; -#line 429 "OAuth1Authenticator.c" -} - - -gchar* -publishing_authenticator_shotwell_oauth1_authenticator_get_persistent_access_phase_username (PublishingAuthenticatorShotwellOAuth1Authenticator* self) -{ - gchar* result = NULL; - SpitPublishingPluginHost* _tmp0_; - gchar* _tmp1_; -#line 56 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/OAuth1Authenticator.vala" - g_return_val_if_fail (PUBLISHING_AUTHENTICATOR_SHOTWELL_OAUTH1_IS_AUTHENTICATOR (self), NULL); -#line 57 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/OAuth1Authenticator.vala" - _tmp0_ = self->host; -#line 57 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/OAuth1Authenticator.vala" - _tmp1_ = spit_host_interface_get_config_string (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, SPIT_TYPE_HOST_INTERFACE, SpitHostInterface), "access_phase_username", NULL); -#line 57 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/OAuth1Authenticator.vala" - result = _tmp1_; -#line 57 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/OAuth1Authenticator.vala" - return result; -#line 449 "OAuth1Authenticator.c" -} - - -void -publishing_authenticator_shotwell_oauth1_authenticator_set_persistent_access_phase_username (PublishingAuthenticatorShotwellOAuth1Authenticator* self, - const gchar* username) -{ - SpitPublishingPluginHost* _tmp0_; -#line 60 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/OAuth1Authenticator.vala" - g_return_if_fail (PUBLISHING_AUTHENTICATOR_SHOTWELL_OAUTH1_IS_AUTHENTICATOR (self)); -#line 60 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/OAuth1Authenticator.vala" - g_return_if_fail (username != NULL); -#line 61 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/OAuth1Authenticator.vala" - _tmp0_ = self->host; -#line 61 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/OAuth1Authenticator.vala" - spit_host_interface_set_config_string (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, SPIT_TYPE_HOST_INTERFACE, SpitHostInterface), "access_phase_username", username); -#line 466 "OAuth1Authenticator.c" -} - - -gchar* -publishing_authenticator_shotwell_oauth1_authenticator_get_persistent_access_phase_token (PublishingAuthenticatorShotwellOAuth1Authenticator* self) -{ - gchar* result = NULL; - SpitPublishingPluginHost* _tmp0_; - gchar* _tmp1_; -#line 64 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/OAuth1Authenticator.vala" - g_return_val_if_fail (PUBLISHING_AUTHENTICATOR_SHOTWELL_OAUTH1_IS_AUTHENTICATOR (self), NULL); -#line 65 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/OAuth1Authenticator.vala" - _tmp0_ = self->host; -#line 65 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/OAuth1Authenticator.vala" - _tmp1_ = spit_host_interface_get_config_string (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, SPIT_TYPE_HOST_INTERFACE, SpitHostInterface), "access_phase_token", NULL); -#line 65 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/OAuth1Authenticator.vala" - result = _tmp1_; -#line 65 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/OAuth1Authenticator.vala" - return result; -#line 486 "OAuth1Authenticator.c" -} - - -void -publishing_authenticator_shotwell_oauth1_authenticator_set_persistent_access_phase_token (PublishingAuthenticatorShotwellOAuth1Authenticator* self, - const gchar* token) -{ - SpitPublishingPluginHost* _tmp0_; -#line 68 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/OAuth1Authenticator.vala" - g_return_if_fail (PUBLISHING_AUTHENTICATOR_SHOTWELL_OAUTH1_IS_AUTHENTICATOR (self)); -#line 68 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/OAuth1Authenticator.vala" - g_return_if_fail (token != NULL); -#line 69 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/OAuth1Authenticator.vala" - _tmp0_ = self->host; -#line 69 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/OAuth1Authenticator.vala" - spit_host_interface_set_config_string (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, SPIT_TYPE_HOST_INTERFACE, SpitHostInterface), "access_phase_token", token); -#line 503 "OAuth1Authenticator.c" -} - - -gchar* -publishing_authenticator_shotwell_oauth1_authenticator_get_persistent_access_phase_token_secret (PublishingAuthenticatorShotwellOAuth1Authenticator* self) -{ - gchar* result = NULL; - SpitPublishingPluginHost* _tmp0_; - gchar* _tmp1_; -#line 72 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/OAuth1Authenticator.vala" - g_return_val_if_fail (PUBLISHING_AUTHENTICATOR_SHOTWELL_OAUTH1_IS_AUTHENTICATOR (self), NULL); -#line 73 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/OAuth1Authenticator.vala" - _tmp0_ = self->host; -#line 73 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/OAuth1Authenticator.vala" - _tmp1_ = spit_host_interface_get_config_string (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, SPIT_TYPE_HOST_INTERFACE, SpitHostInterface), "access_phase_token_secret", NULL); -#line 73 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/OAuth1Authenticator.vala" - result = _tmp1_; -#line 73 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/OAuth1Authenticator.vala" - return result; -#line 523 "OAuth1Authenticator.c" -} - - -void -publishing_authenticator_shotwell_oauth1_authenticator_set_persistent_access_phase_token_secret (PublishingAuthenticatorShotwellOAuth1Authenticator* self, - const gchar* secret) -{ - SpitPublishingPluginHost* _tmp0_; -#line 76 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/OAuth1Authenticator.vala" - g_return_if_fail (PUBLISHING_AUTHENTICATOR_SHOTWELL_OAUTH1_IS_AUTHENTICATOR (self)); -#line 76 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/OAuth1Authenticator.vala" - g_return_if_fail (secret != NULL); -#line 77 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/OAuth1Authenticator.vala" - _tmp0_ = self->host; -#line 77 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/OAuth1Authenticator.vala" - spit_host_interface_set_config_string (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, SPIT_TYPE_HOST_INTERFACE, SpitHostInterface), "access_phase_token_secret", secret); -#line 540 "OAuth1Authenticator.c" -} - - -static GVariant* -_variant_new3 (gchar* value) -{ -#line 82 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/OAuth1Authenticator.vala" - return g_variant_ref_sink (g_variant_new_string (value)); -#line 549 "OAuth1Authenticator.c" -} - - -static GVariant* -_variant_new4 (gchar* value) -{ -#line 83 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/OAuth1Authenticator.vala" - return g_variant_ref_sink (g_variant_new_string (value)); -#line 558 "OAuth1Authenticator.c" -} - - -static GVariant* -_variant_new5 (gchar* value) -{ -#line 84 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/OAuth1Authenticator.vala" - return g_variant_ref_sink (g_variant_new_string (value)); -#line 567 "OAuth1Authenticator.c" -} - - -void -publishing_authenticator_shotwell_oauth1_authenticator_on_session_authenticated (PublishingAuthenticatorShotwellOAuth1Authenticator* self) -{ - GHashTable* _tmp0_; - gchar* _tmp1_; - PublishingRESTSupportOAuth1Session* _tmp2_; - gchar* _tmp3_; - gchar* _tmp4_; - GVariant* _tmp5_; - GHashTable* _tmp6_; - gchar* _tmp7_; - PublishingRESTSupportOAuth1Session* _tmp8_; - gchar* _tmp9_; - gchar* _tmp10_; - GVariant* _tmp11_; - GHashTable* _tmp12_; - gchar* _tmp13_; - PublishingRESTSupportOAuth1Session* _tmp14_; - gchar* _tmp15_; - gchar* _tmp16_; - GVariant* _tmp17_; - PublishingRESTSupportOAuth1Session* _tmp18_; - gchar* _tmp19_; - gchar* _tmp20_; - PublishingRESTSupportOAuth1Session* _tmp21_; - gchar* _tmp22_; - gchar* _tmp23_; - PublishingRESTSupportOAuth1Session* _tmp24_; - gchar* _tmp25_; - gchar* _tmp26_; -#line 81 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/OAuth1Authenticator.vala" - g_return_if_fail (PUBLISHING_AUTHENTICATOR_SHOTWELL_OAUTH1_IS_AUTHENTICATOR (self)); -#line 82 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/OAuth1Authenticator.vala" - _tmp0_ = self->params; -#line 82 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/OAuth1Authenticator.vala" - _tmp1_ = g_strdup ("AuthToken"); -#line 82 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/OAuth1Authenticator.vala" - _tmp2_ = self->session; -#line 82 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/OAuth1Authenticator.vala" - _tmp3_ = publishing_rest_support_oauth1_session_get_access_phase_token (_tmp2_); -#line 82 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/OAuth1Authenticator.vala" - _tmp4_ = _tmp3_; -#line 82 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/OAuth1Authenticator.vala" - _tmp5_ = _variant_new3 (_tmp4_); -#line 82 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/OAuth1Authenticator.vala" - g_hash_table_insert (_tmp0_, _tmp1_, _tmp5_); -#line 82 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/OAuth1Authenticator.vala" - _g_free0 (_tmp4_); -#line 83 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/OAuth1Authenticator.vala" - _tmp6_ = self->params; -#line 83 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/OAuth1Authenticator.vala" - _tmp7_ = g_strdup ("AuthTokenSecret"); -#line 83 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/OAuth1Authenticator.vala" - _tmp8_ = self->session; -#line 83 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/OAuth1Authenticator.vala" - _tmp9_ = publishing_rest_support_oauth1_session_get_access_phase_token_secret (_tmp8_); -#line 83 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/OAuth1Authenticator.vala" - _tmp10_ = _tmp9_; -#line 83 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/OAuth1Authenticator.vala" - _tmp11_ = _variant_new4 (_tmp10_); -#line 83 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/OAuth1Authenticator.vala" - g_hash_table_insert (_tmp6_, _tmp7_, _tmp11_); -#line 83 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/OAuth1Authenticator.vala" - _g_free0 (_tmp10_); -#line 84 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/OAuth1Authenticator.vala" - _tmp12_ = self->params; -#line 84 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/OAuth1Authenticator.vala" - _tmp13_ = g_strdup ("Username"); -#line 84 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/OAuth1Authenticator.vala" - _tmp14_ = self->session; -#line 84 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/OAuth1Authenticator.vala" - _tmp15_ = publishing_rest_support_oauth1_session_get_username (_tmp14_); -#line 84 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/OAuth1Authenticator.vala" - _tmp16_ = _tmp15_; -#line 84 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/OAuth1Authenticator.vala" - _tmp17_ = _variant_new5 (_tmp16_); -#line 84 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/OAuth1Authenticator.vala" - g_hash_table_insert (_tmp12_, _tmp13_, _tmp17_); -#line 84 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/OAuth1Authenticator.vala" - _g_free0 (_tmp16_); -#line 86 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/OAuth1Authenticator.vala" - _tmp18_ = self->session; -#line 86 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/OAuth1Authenticator.vala" - _tmp19_ = publishing_rest_support_oauth1_session_get_access_phase_token (_tmp18_); -#line 86 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/OAuth1Authenticator.vala" - _tmp20_ = _tmp19_; -#line 86 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/OAuth1Authenticator.vala" - publishing_authenticator_shotwell_oauth1_authenticator_set_persistent_access_phase_token (self, _tmp20_); -#line 86 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/OAuth1Authenticator.vala" - _g_free0 (_tmp20_); -#line 87 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/OAuth1Authenticator.vala" - _tmp21_ = self->session; -#line 87 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/OAuth1Authenticator.vala" - _tmp22_ = publishing_rest_support_oauth1_session_get_access_phase_token_secret (_tmp21_); -#line 87 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/OAuth1Authenticator.vala" - _tmp23_ = _tmp22_; -#line 87 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/OAuth1Authenticator.vala" - publishing_authenticator_shotwell_oauth1_authenticator_set_persistent_access_phase_token_secret (self, _tmp23_); -#line 87 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/OAuth1Authenticator.vala" - _g_free0 (_tmp23_); -#line 88 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/OAuth1Authenticator.vala" - _tmp24_ = self->session; -#line 88 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/OAuth1Authenticator.vala" - _tmp25_ = publishing_rest_support_oauth1_session_get_username (_tmp24_); -#line 88 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/OAuth1Authenticator.vala" - _tmp26_ = _tmp25_; -#line 88 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/OAuth1Authenticator.vala" - publishing_authenticator_shotwell_oauth1_authenticator_set_persistent_access_phase_username (self, _tmp26_); -#line 88 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/OAuth1Authenticator.vala" - _g_free0 (_tmp26_); -#line 91 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/OAuth1Authenticator.vala" - g_signal_emit_by_name (G_TYPE_CHECK_INSTANCE_CAST (self, SPIT_PUBLISHING_TYPE_AUTHENTICATOR, SpitPublishingAuthenticator), "authenticated"); -#line 683 "OAuth1Authenticator.c" -} - - -static void -publishing_authenticator_shotwell_oauth1_authenticator_class_init (PublishingAuthenticatorShotwellOAuth1AuthenticatorClass * klass) -{ -#line 10 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/OAuth1Authenticator.vala" - publishing_authenticator_shotwell_oauth1_authenticator_parent_class = g_type_class_peek_parent (klass); -#line 10 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/OAuth1Authenticator.vala" - ((PublishingAuthenticatorShotwellOAuth1AuthenticatorClass *) klass)->authenticate = (void (*) (PublishingAuthenticatorShotwellOAuth1Authenticator *)) publishing_authenticator_shotwell_oauth1_authenticator_real_authenticate; -#line 10 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/OAuth1Authenticator.vala" - ((PublishingAuthenticatorShotwellOAuth1AuthenticatorClass *) klass)->can_logout = (gboolean (*) (PublishingAuthenticatorShotwellOAuth1Authenticator *)) publishing_authenticator_shotwell_oauth1_authenticator_real_can_logout; -#line 10 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/OAuth1Authenticator.vala" - ((PublishingAuthenticatorShotwellOAuth1AuthenticatorClass *) klass)->logout = (void (*) (PublishingAuthenticatorShotwellOAuth1Authenticator *)) publishing_authenticator_shotwell_oauth1_authenticator_real_logout; -#line 10 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/OAuth1Authenticator.vala" - ((PublishingAuthenticatorShotwellOAuth1AuthenticatorClass *) klass)->refresh = (void (*) (PublishingAuthenticatorShotwellOAuth1Authenticator *)) publishing_authenticator_shotwell_oauth1_authenticator_real_refresh; -#line 10 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/OAuth1Authenticator.vala" - G_OBJECT_CLASS (klass)->finalize = publishing_authenticator_shotwell_oauth1_authenticator_finalize; -#line 702 "OAuth1Authenticator.c" -} - - -static void -publishing_authenticator_shotwell_oauth1_authenticator_spit_publishing_authenticator_interface_init (SpitPublishingAuthenticatorIface * iface) -{ -#line 10 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/OAuth1Authenticator.vala" - publishing_authenticator_shotwell_oauth1_authenticator_spit_publishing_authenticator_parent_iface = g_type_interface_peek_parent (iface); -#line 10 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/OAuth1Authenticator.vala" - iface->authenticate = (void (*) (SpitPublishingAuthenticator *)) publishing_authenticator_shotwell_oauth1_authenticator_authenticate; -#line 10 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/OAuth1Authenticator.vala" - iface->can_logout = (gboolean (*) (SpitPublishingAuthenticator *)) publishing_authenticator_shotwell_oauth1_authenticator_can_logout; -#line 10 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/OAuth1Authenticator.vala" - iface->get_authentication_parameter = (GHashTable* (*) (SpitPublishingAuthenticator *)) publishing_authenticator_shotwell_oauth1_authenticator_real_get_authentication_parameter; -#line 10 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/OAuth1Authenticator.vala" - iface->logout = (void (*) (SpitPublishingAuthenticator *)) publishing_authenticator_shotwell_oauth1_authenticator_logout; -#line 10 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/OAuth1Authenticator.vala" - iface->refresh = (void (*) (SpitPublishingAuthenticator *)) publishing_authenticator_shotwell_oauth1_authenticator_refresh; -#line 721 "OAuth1Authenticator.c" -} - - -static void -publishing_authenticator_shotwell_oauth1_authenticator_instance_init (PublishingAuthenticatorShotwellOAuth1Authenticator * self) -{ -} - - -static void -publishing_authenticator_shotwell_oauth1_authenticator_finalize (GObject * obj) -{ - PublishingAuthenticatorShotwellOAuth1Authenticator * self; - PublishingRESTSupportOAuth1Session* _tmp0_; - guint _tmp1_; -#line 10 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/OAuth1Authenticator.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, PUBLISHING_AUTHENTICATOR_SHOTWELL_OAUTH1_TYPE_AUTHENTICATOR, PublishingAuthenticatorShotwellOAuth1Authenticator); -#line 29 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/OAuth1Authenticator.vala" - _tmp0_ = self->session; -#line 29 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/OAuth1Authenticator.vala" - g_signal_parse_name ("authenticated", PUBLISHING_REST_SUPPORT_TYPE_SESSION, &_tmp1_, NULL, FALSE); -#line 29 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/OAuth1Authenticator.vala" - g_signal_handlers_disconnect_matched (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, PUBLISHING_REST_SUPPORT_TYPE_SESSION, PublishingRESTSupportSession), G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp1_, 0, NULL, (GCallback) _publishing_authenticator_shotwell_oauth1_authenticator_on_session_authenticated_publishing_rest_support_session_authenticated, self); -#line 11 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/OAuth1Authenticator.vala" - _g_hash_table_unref0 (self->params); -#line 12 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/OAuth1Authenticator.vala" - _publishing_rest_support_session_unref0 (self->session); -#line 13 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/OAuth1Authenticator.vala" - _g_object_unref0 (self->host); -#line 10 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/OAuth1Authenticator.vala" - G_OBJECT_CLASS (publishing_authenticator_shotwell_oauth1_authenticator_parent_class)->finalize (obj); -#line 753 "OAuth1Authenticator.c" -} - - -GType -publishing_authenticator_shotwell_oauth1_authenticator_get_type (void) -{ - static volatile gsize publishing_authenticator_shotwell_oauth1_authenticator_type_id__volatile = 0; - if (g_once_init_enter (&publishing_authenticator_shotwell_oauth1_authenticator_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (PublishingAuthenticatorShotwellOAuth1AuthenticatorClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) publishing_authenticator_shotwell_oauth1_authenticator_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PublishingAuthenticatorShotwellOAuth1Authenticator), 0, (GInstanceInitFunc) publishing_authenticator_shotwell_oauth1_authenticator_instance_init, NULL }; - static const GInterfaceInfo spit_publishing_authenticator_info = { (GInterfaceInitFunc) publishing_authenticator_shotwell_oauth1_authenticator_spit_publishing_authenticator_interface_init, (GInterfaceFinalizeFunc) NULL, NULL}; - GType publishing_authenticator_shotwell_oauth1_authenticator_type_id; - publishing_authenticator_shotwell_oauth1_authenticator_type_id = g_type_register_static (G_TYPE_OBJECT, "PublishingAuthenticatorShotwellOAuth1Authenticator", &g_define_type_info, G_TYPE_FLAG_ABSTRACT); - g_type_add_interface_static (publishing_authenticator_shotwell_oauth1_authenticator_type_id, SPIT_PUBLISHING_TYPE_AUTHENTICATOR, &spit_publishing_authenticator_info); - g_once_init_leave (&publishing_authenticator_shotwell_oauth1_authenticator_type_id__volatile, publishing_authenticator_shotwell_oauth1_authenticator_type_id); - } - return publishing_authenticator_shotwell_oauth1_authenticator_type_id__volatile; -} - - - diff --git a/plugins/authenticator/shotwell/ShotwellAuthenticatorFactory.c b/plugins/authenticator/shotwell/ShotwellAuthenticatorFactory.c deleted file mode 100644 index a9568e0..0000000 --- a/plugins/authenticator/shotwell/ShotwellAuthenticatorFactory.c +++ /dev/null @@ -1,416 +0,0 @@ -/* ShotwellAuthenticatorFactory.c generated by valac 0.40.4, the Vala compiler - * generated from ShotwellAuthenticatorFactory.vala, do not modify */ - - - -#include -#include -#include "shotwell-plugin-dev-1.0.h" -#include -#include -#include -#include - - -#define PUBLISHING_AUTHENTICATOR_TYPE_FACTORY (publishing_authenticator_factory_get_type ()) -#define PUBLISHING_AUTHENTICATOR_FACTORY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_AUTHENTICATOR_TYPE_FACTORY, PublishingAuthenticatorFactory)) -#define PUBLISHING_AUTHENTICATOR_FACTORY_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_AUTHENTICATOR_TYPE_FACTORY, PublishingAuthenticatorFactoryClass)) -#define PUBLISHING_AUTHENTICATOR_IS_FACTORY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_AUTHENTICATOR_TYPE_FACTORY)) -#define PUBLISHING_AUTHENTICATOR_IS_FACTORY_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_AUTHENTICATOR_TYPE_FACTORY)) -#define PUBLISHING_AUTHENTICATOR_FACTORY_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_AUTHENTICATOR_TYPE_FACTORY, PublishingAuthenticatorFactoryClass)) - -typedef struct _PublishingAuthenticatorFactory PublishingAuthenticatorFactory; -typedef struct _PublishingAuthenticatorFactoryClass PublishingAuthenticatorFactoryClass; -typedef struct _PublishingAuthenticatorFactoryPrivate PublishingAuthenticatorFactoryPrivate; -enum { - PUBLISHING_AUTHENTICATOR_FACTORY_0_PROPERTY, - PUBLISHING_AUTHENTICATOR_FACTORY_NUM_PROPERTIES -}; -static GParamSpec* publishing_authenticator_factory_properties[PUBLISHING_AUTHENTICATOR_FACTORY_NUM_PROPERTIES]; -#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL))) - -#define PUBLISHING_AUTHENTICATOR_SHOTWELL_OAUTH1_TYPE_AUTHENTICATOR (publishing_authenticator_shotwell_oauth1_authenticator_get_type ()) -#define PUBLISHING_AUTHENTICATOR_SHOTWELL_OAUTH1_AUTHENTICATOR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_AUTHENTICATOR_SHOTWELL_OAUTH1_TYPE_AUTHENTICATOR, PublishingAuthenticatorShotwellOAuth1Authenticator)) -#define PUBLISHING_AUTHENTICATOR_SHOTWELL_OAUTH1_AUTHENTICATOR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_AUTHENTICATOR_SHOTWELL_OAUTH1_TYPE_AUTHENTICATOR, PublishingAuthenticatorShotwellOAuth1AuthenticatorClass)) -#define PUBLISHING_AUTHENTICATOR_SHOTWELL_OAUTH1_IS_AUTHENTICATOR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_AUTHENTICATOR_SHOTWELL_OAUTH1_TYPE_AUTHENTICATOR)) -#define PUBLISHING_AUTHENTICATOR_SHOTWELL_OAUTH1_IS_AUTHENTICATOR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_AUTHENTICATOR_SHOTWELL_OAUTH1_TYPE_AUTHENTICATOR)) -#define PUBLISHING_AUTHENTICATOR_SHOTWELL_OAUTH1_AUTHENTICATOR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_AUTHENTICATOR_SHOTWELL_OAUTH1_TYPE_AUTHENTICATOR, PublishingAuthenticatorShotwellOAuth1AuthenticatorClass)) - -typedef struct _PublishingAuthenticatorShotwellOAuth1Authenticator PublishingAuthenticatorShotwellOAuth1Authenticator; -typedef struct _PublishingAuthenticatorShotwellOAuth1AuthenticatorClass PublishingAuthenticatorShotwellOAuth1AuthenticatorClass; - -#define PUBLISHING_AUTHENTICATOR_SHOTWELL_FLICKR_TYPE_FLICKR (publishing_authenticator_shotwell_flickr_flickr_get_type ()) -#define PUBLISHING_AUTHENTICATOR_SHOTWELL_FLICKR_FLICKR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_AUTHENTICATOR_SHOTWELL_FLICKR_TYPE_FLICKR, PublishingAuthenticatorShotwellFlickrFlickr)) -#define PUBLISHING_AUTHENTICATOR_SHOTWELL_FLICKR_FLICKR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_AUTHENTICATOR_SHOTWELL_FLICKR_TYPE_FLICKR, PublishingAuthenticatorShotwellFlickrFlickrClass)) -#define PUBLISHING_AUTHENTICATOR_SHOTWELL_FLICKR_IS_FLICKR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_AUTHENTICATOR_SHOTWELL_FLICKR_TYPE_FLICKR)) -#define PUBLISHING_AUTHENTICATOR_SHOTWELL_FLICKR_IS_FLICKR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_AUTHENTICATOR_SHOTWELL_FLICKR_TYPE_FLICKR)) -#define PUBLISHING_AUTHENTICATOR_SHOTWELL_FLICKR_FLICKR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_AUTHENTICATOR_SHOTWELL_FLICKR_TYPE_FLICKR, PublishingAuthenticatorShotwellFlickrFlickrClass)) - -typedef struct _PublishingAuthenticatorShotwellFlickrFlickr PublishingAuthenticatorShotwellFlickrFlickr; -typedef struct _PublishingAuthenticatorShotwellFlickrFlickrClass PublishingAuthenticatorShotwellFlickrFlickrClass; - -#define PUBLISHING_AUTHENTICATOR_SHOTWELL_FACEBOOK_TYPE_FACEBOOK (publishing_authenticator_shotwell_facebook_facebook_get_type ()) -#define PUBLISHING_AUTHENTICATOR_SHOTWELL_FACEBOOK_FACEBOOK(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_AUTHENTICATOR_SHOTWELL_FACEBOOK_TYPE_FACEBOOK, PublishingAuthenticatorShotwellFacebookFacebook)) -#define PUBLISHING_AUTHENTICATOR_SHOTWELL_FACEBOOK_FACEBOOK_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_AUTHENTICATOR_SHOTWELL_FACEBOOK_TYPE_FACEBOOK, PublishingAuthenticatorShotwellFacebookFacebookClass)) -#define PUBLISHING_AUTHENTICATOR_SHOTWELL_FACEBOOK_IS_FACEBOOK(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_AUTHENTICATOR_SHOTWELL_FACEBOOK_TYPE_FACEBOOK)) -#define PUBLISHING_AUTHENTICATOR_SHOTWELL_FACEBOOK_IS_FACEBOOK_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_AUTHENTICATOR_SHOTWELL_FACEBOOK_TYPE_FACEBOOK)) -#define PUBLISHING_AUTHENTICATOR_SHOTWELL_FACEBOOK_FACEBOOK_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_AUTHENTICATOR_SHOTWELL_FACEBOOK_TYPE_FACEBOOK, PublishingAuthenticatorShotwellFacebookFacebookClass)) - -typedef struct _PublishingAuthenticatorShotwellFacebookFacebook PublishingAuthenticatorShotwellFacebookFacebook; -typedef struct _PublishingAuthenticatorShotwellFacebookFacebookClass PublishingAuthenticatorShotwellFacebookFacebookClass; - -#define PUBLISHING_AUTHENTICATOR_SHOTWELL_GOOGLE_TYPE_GOOGLE (publishing_authenticator_shotwell_google_google_get_type ()) -#define PUBLISHING_AUTHENTICATOR_SHOTWELL_GOOGLE_GOOGLE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_AUTHENTICATOR_SHOTWELL_GOOGLE_TYPE_GOOGLE, PublishingAuthenticatorShotwellGoogleGoogle)) -#define PUBLISHING_AUTHENTICATOR_SHOTWELL_GOOGLE_GOOGLE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_AUTHENTICATOR_SHOTWELL_GOOGLE_TYPE_GOOGLE, PublishingAuthenticatorShotwellGoogleGoogleClass)) -#define PUBLISHING_AUTHENTICATOR_SHOTWELL_GOOGLE_IS_GOOGLE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_AUTHENTICATOR_SHOTWELL_GOOGLE_TYPE_GOOGLE)) -#define PUBLISHING_AUTHENTICATOR_SHOTWELL_GOOGLE_IS_GOOGLE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_AUTHENTICATOR_SHOTWELL_GOOGLE_TYPE_GOOGLE)) -#define PUBLISHING_AUTHENTICATOR_SHOTWELL_GOOGLE_GOOGLE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_AUTHENTICATOR_SHOTWELL_GOOGLE_TYPE_GOOGLE, PublishingAuthenticatorShotwellGoogleGoogleClass)) - -typedef struct _PublishingAuthenticatorShotwellGoogleGoogle PublishingAuthenticatorShotwellGoogleGoogle; -typedef struct _PublishingAuthenticatorShotwellGoogleGoogleClass PublishingAuthenticatorShotwellGoogleGoogleClass; - -#define PUBLISHING_AUTHENTICATOR_SHOTWELL_TUMBLR_TYPE_TUMBLR (publishing_authenticator_shotwell_tumblr_tumblr_get_type ()) -#define PUBLISHING_AUTHENTICATOR_SHOTWELL_TUMBLR_TUMBLR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_AUTHENTICATOR_SHOTWELL_TUMBLR_TYPE_TUMBLR, PublishingAuthenticatorShotwellTumblrTumblr)) -#define PUBLISHING_AUTHENTICATOR_SHOTWELL_TUMBLR_TUMBLR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_AUTHENTICATOR_SHOTWELL_TUMBLR_TYPE_TUMBLR, PublishingAuthenticatorShotwellTumblrTumblrClass)) -#define PUBLISHING_AUTHENTICATOR_SHOTWELL_TUMBLR_IS_TUMBLR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_AUTHENTICATOR_SHOTWELL_TUMBLR_TYPE_TUMBLR)) -#define PUBLISHING_AUTHENTICATOR_SHOTWELL_TUMBLR_IS_TUMBLR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_AUTHENTICATOR_SHOTWELL_TUMBLR_TYPE_TUMBLR)) -#define PUBLISHING_AUTHENTICATOR_SHOTWELL_TUMBLR_TUMBLR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_AUTHENTICATOR_SHOTWELL_TUMBLR_TYPE_TUMBLR, PublishingAuthenticatorShotwellTumblrTumblrClass)) - -typedef struct _PublishingAuthenticatorShotwellTumblrTumblr PublishingAuthenticatorShotwellTumblrTumblr; -typedef struct _PublishingAuthenticatorShotwellTumblrTumblrClass PublishingAuthenticatorShotwellTumblrTumblrClass; - -struct _PublishingAuthenticatorFactory { - GObject parent_instance; - PublishingAuthenticatorFactoryPrivate * priv; -}; - -struct _PublishingAuthenticatorFactoryClass { - GObjectClass parent_class; -}; - - -static gpointer publishing_authenticator_factory_parent_class = NULL; -static PublishingAuthenticatorFactory* publishing_authenticator_factory_instance; -static PublishingAuthenticatorFactory* publishing_authenticator_factory_instance = NULL; -static SpitPublishingAuthenticatorFactoryIface * publishing_authenticator_factory_spit_publishing_authenticator_factory_parent_iface = NULL; - -GType publishing_authenticator_factory_get_type (void) G_GNUC_CONST; -PublishingAuthenticatorFactory* publishing_authenticator_factory_get_instance (void); -PublishingAuthenticatorFactory* publishing_authenticator_factory_new (void); -PublishingAuthenticatorFactory* publishing_authenticator_factory_construct (GType object_type); -static GeeList* publishing_authenticator_factory_real_get_available_authenticators (SpitPublishingAuthenticatorFactory* base); -static SpitPublishingAuthenticator* publishing_authenticator_factory_real_create (SpitPublishingAuthenticatorFactory* base, - const gchar* provider, - SpitPublishingPluginHost* host); -PublishingAuthenticatorShotwellFlickrFlickr* publishing_authenticator_shotwell_flickr_flickr_new (SpitPublishingPluginHost* host); -PublishingAuthenticatorShotwellFlickrFlickr* publishing_authenticator_shotwell_flickr_flickr_construct (GType object_type, - SpitPublishingPluginHost* host); -GType publishing_authenticator_shotwell_oauth1_authenticator_get_type (void) G_GNUC_CONST; -GType publishing_authenticator_shotwell_flickr_flickr_get_type (void) G_GNUC_CONST; -PublishingAuthenticatorShotwellFacebookFacebook* publishing_authenticator_shotwell_facebook_facebook_new (SpitPublishingPluginHost* host); -PublishingAuthenticatorShotwellFacebookFacebook* publishing_authenticator_shotwell_facebook_facebook_construct (GType object_type, - SpitPublishingPluginHost* host); -GType publishing_authenticator_shotwell_facebook_facebook_get_type (void) G_GNUC_CONST; -PublishingAuthenticatorShotwellGoogleGoogle* publishing_authenticator_shotwell_google_google_new (const gchar* scope, - const gchar* welcome_message, - SpitPublishingPluginHost* host); -PublishingAuthenticatorShotwellGoogleGoogle* publishing_authenticator_shotwell_google_google_construct (GType object_type, - const gchar* scope, - const gchar* welcome_message, - SpitPublishingPluginHost* host); -GType publishing_authenticator_shotwell_google_google_get_type (void) G_GNUC_CONST; -PublishingAuthenticatorShotwellTumblrTumblr* publishing_authenticator_shotwell_tumblr_tumblr_new (SpitPublishingPluginHost* host); -PublishingAuthenticatorShotwellTumblrTumblr* publishing_authenticator_shotwell_tumblr_tumblr_construct (GType object_type, - SpitPublishingPluginHost* host); -GType publishing_authenticator_shotwell_tumblr_tumblr_get_type (void) G_GNUC_CONST; -static void publishing_authenticator_factory_finalize (GObject * obj); - - -static gpointer -_g_object_ref0 (gpointer self) -{ -#line 10 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/ShotwellAuthenticatorFactory.vala" - return self ? g_object_ref (self) : NULL; -#line 135 "ShotwellAuthenticatorFactory.c" -} - - -PublishingAuthenticatorFactory* -publishing_authenticator_factory_get_instance (void) -{ - PublishingAuthenticatorFactory* result = NULL; - PublishingAuthenticatorFactory* _tmp0_; - PublishingAuthenticatorFactory* _tmp2_; - PublishingAuthenticatorFactory* _tmp3_; -#line 6 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/ShotwellAuthenticatorFactory.vala" - _tmp0_ = publishing_authenticator_factory_instance; -#line 6 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/ShotwellAuthenticatorFactory.vala" - if (_tmp0_ == NULL) { -#line 150 "ShotwellAuthenticatorFactory.c" - PublishingAuthenticatorFactory* _tmp1_; -#line 7 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/ShotwellAuthenticatorFactory.vala" - _tmp1_ = publishing_authenticator_factory_new (); -#line 7 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/ShotwellAuthenticatorFactory.vala" - _g_object_unref0 (publishing_authenticator_factory_instance); -#line 7 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/ShotwellAuthenticatorFactory.vala" - publishing_authenticator_factory_instance = _tmp1_; -#line 158 "ShotwellAuthenticatorFactory.c" - } -#line 10 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/ShotwellAuthenticatorFactory.vala" - _tmp2_ = publishing_authenticator_factory_instance; -#line 10 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/ShotwellAuthenticatorFactory.vala" - _tmp3_ = _g_object_ref0 (_tmp2_); -#line 10 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/ShotwellAuthenticatorFactory.vala" - result = _tmp3_; -#line 10 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/ShotwellAuthenticatorFactory.vala" - return result; -#line 168 "ShotwellAuthenticatorFactory.c" -} - - -static GeeList* -publishing_authenticator_factory_real_get_available_authenticators (SpitPublishingAuthenticatorFactory* base) -{ - PublishingAuthenticatorFactory * self; - GeeList* result = NULL; - GeeArrayList* list = NULL; - GeeArrayList* _tmp0_; -#line 13 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/ShotwellAuthenticatorFactory.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_AUTHENTICATOR_TYPE_FACTORY, PublishingAuthenticatorFactory); -#line 14 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/ShotwellAuthenticatorFactory.vala" - _tmp0_ = gee_array_list_new (G_TYPE_STRING, (GBoxedCopyFunc) g_strdup, (GDestroyNotify) g_free, NULL, NULL, NULL); -#line 14 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/ShotwellAuthenticatorFactory.vala" - list = _tmp0_; -#line 15 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/ShotwellAuthenticatorFactory.vala" - gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (list, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), "flickr"); -#line 16 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/ShotwellAuthenticatorFactory.vala" - gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (list, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), "facebook"); -#line 17 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/ShotwellAuthenticatorFactory.vala" - gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (list, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), "picasa"); -#line 18 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/ShotwellAuthenticatorFactory.vala" - gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (list, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), "youtube"); -#line 19 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/ShotwellAuthenticatorFactory.vala" - gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (list, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), "tumblr"); -#line 21 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/ShotwellAuthenticatorFactory.vala" - result = G_TYPE_CHECK_INSTANCE_CAST (list, GEE_TYPE_LIST, GeeList); -#line 21 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/ShotwellAuthenticatorFactory.vala" - return result; -#line 199 "ShotwellAuthenticatorFactory.c" -} - - -static SpitPublishingAuthenticator* -publishing_authenticator_factory_real_create (SpitPublishingAuthenticatorFactory* base, - const gchar* provider, - SpitPublishingPluginHost* host) -{ - PublishingAuthenticatorFactory * self; - SpitPublishingAuthenticator* result = NULL; - const gchar* _tmp0_; - GQuark _tmp2_ = 0U; -#line 26 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/ShotwellAuthenticatorFactory.vala" - static GQuark _tmp1_label0 = 0; -#line 26 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/ShotwellAuthenticatorFactory.vala" - static GQuark _tmp1_label1 = 0; -#line 26 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/ShotwellAuthenticatorFactory.vala" - static GQuark _tmp1_label2 = 0; -#line 26 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/ShotwellAuthenticatorFactory.vala" - static GQuark _tmp1_label3 = 0; -#line 26 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/ShotwellAuthenticatorFactory.vala" - static GQuark _tmp1_label4 = 0; -#line 24 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/ShotwellAuthenticatorFactory.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_AUTHENTICATOR_TYPE_FACTORY, PublishingAuthenticatorFactory); -#line 24 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/ShotwellAuthenticatorFactory.vala" - g_return_val_if_fail (provider != NULL, NULL); -#line 24 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/ShotwellAuthenticatorFactory.vala" - g_return_val_if_fail (SPIT_PUBLISHING_IS_PLUGIN_HOST (host), NULL); -#line 26 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/ShotwellAuthenticatorFactory.vala" - _tmp0_ = provider; -#line 26 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/ShotwellAuthenticatorFactory.vala" - _tmp2_ = (NULL == _tmp0_) ? 0 : g_quark_from_string (_tmp0_); -#line 26 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/ShotwellAuthenticatorFactory.vala" - if (_tmp2_ == ((0 != _tmp1_label0) ? _tmp1_label0 : (_tmp1_label0 = g_quark_from_static_string ("flickr")))) { -#line 26 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/ShotwellAuthenticatorFactory.vala" - switch (0) { -#line 236 "ShotwellAuthenticatorFactory.c" - default: - { - PublishingAuthenticatorShotwellFlickrFlickr* _tmp3_; -#line 28 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/ShotwellAuthenticatorFactory.vala" - _tmp3_ = publishing_authenticator_shotwell_flickr_flickr_new (host); -#line 28 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/ShotwellAuthenticatorFactory.vala" - result = G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, SPIT_PUBLISHING_TYPE_AUTHENTICATOR, SpitPublishingAuthenticator); -#line 28 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/ShotwellAuthenticatorFactory.vala" - return result; -#line 246 "ShotwellAuthenticatorFactory.c" - } - } - } else if (_tmp2_ == ((0 != _tmp1_label1) ? _tmp1_label1 : (_tmp1_label1 = g_quark_from_static_string ("facebook")))) { -#line 26 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/ShotwellAuthenticatorFactory.vala" - switch (0) { -#line 252 "ShotwellAuthenticatorFactory.c" - default: - { - PublishingAuthenticatorShotwellFacebookFacebook* _tmp4_; -#line 30 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/ShotwellAuthenticatorFactory.vala" - _tmp4_ = publishing_authenticator_shotwell_facebook_facebook_new (host); -#line 30 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/ShotwellAuthenticatorFactory.vala" - result = G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, SPIT_PUBLISHING_TYPE_AUTHENTICATOR, SpitPublishingAuthenticator); -#line 30 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/ShotwellAuthenticatorFactory.vala" - return result; -#line 262 "ShotwellAuthenticatorFactory.c" - } - } - } else if (_tmp2_ == ((0 != _tmp1_label2) ? _tmp1_label2 : (_tmp1_label2 = g_quark_from_static_string ("picasa")))) { -#line 26 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/ShotwellAuthenticatorFactory.vala" - switch (0) { -#line 268 "ShotwellAuthenticatorFactory.c" - default: - { - PublishingAuthenticatorShotwellGoogleGoogle* _tmp5_; -#line 32 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/ShotwellAuthenticatorFactory.vala" - _tmp5_ = publishing_authenticator_shotwell_google_google_new ("https://picasaweb.google.com/data/", _ ("You are not currently logged into Picasa Web Albums.\n" \ -"\n" \ -"Click Log in to log into Picasa Web Albums in your Web browser. You wi" \ -"ll have to authorize Shotwell Connect to link to your Picasa Web Album" \ -"s account."), host); -#line 32 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/ShotwellAuthenticatorFactory.vala" - result = G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, SPIT_PUBLISHING_TYPE_AUTHENTICATOR, SpitPublishingAuthenticator); -#line 32 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/ShotwellAuthenticatorFactory.vala" - return result; -#line 278 "ShotwellAuthenticatorFactory.c" - } - } - } else if (_tmp2_ == ((0 != _tmp1_label3) ? _tmp1_label3 : (_tmp1_label3 = g_quark_from_static_string ("youtube")))) { -#line 26 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/ShotwellAuthenticatorFactory.vala" - switch (0) { -#line 284 "ShotwellAuthenticatorFactory.c" - default: - { - PublishingAuthenticatorShotwellGoogleGoogle* _tmp6_; -#line 35 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/ShotwellAuthenticatorFactory.vala" - _tmp6_ = publishing_authenticator_shotwell_google_google_new ("https://gdata.youtube.com/", _ ("You are not currently logged into YouTube.\n" \ -"\n" \ -"You must have already signed up for a Google account and set it up for" \ -" use with YouTube to continue. You can set up most accounts by using y" \ -"our browser to log into the YouTube site at least once."), host); -#line 35 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/ShotwellAuthenticatorFactory.vala" - result = G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, SPIT_PUBLISHING_TYPE_AUTHENTICATOR, SpitPublishingAuthenticator); -#line 35 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/ShotwellAuthenticatorFactory.vala" - return result; -#line 294 "ShotwellAuthenticatorFactory.c" - } - } - } else if (_tmp2_ == ((0 != _tmp1_label4) ? _tmp1_label4 : (_tmp1_label4 = g_quark_from_static_string ("tumblr")))) { -#line 26 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/ShotwellAuthenticatorFactory.vala" - switch (0) { -#line 300 "ShotwellAuthenticatorFactory.c" - default: - { - PublishingAuthenticatorShotwellTumblrTumblr* _tmp7_; -#line 37 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/ShotwellAuthenticatorFactory.vala" - _tmp7_ = publishing_authenticator_shotwell_tumblr_tumblr_new (host); -#line 37 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/ShotwellAuthenticatorFactory.vala" - result = G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, SPIT_PUBLISHING_TYPE_AUTHENTICATOR, SpitPublishingAuthenticator); -#line 37 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/ShotwellAuthenticatorFactory.vala" - return result; -#line 310 "ShotwellAuthenticatorFactory.c" - } - } - } else { -#line 26 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/ShotwellAuthenticatorFactory.vala" - switch (0) { -#line 316 "ShotwellAuthenticatorFactory.c" - default: - { -#line 39 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/ShotwellAuthenticatorFactory.vala" - result = NULL; -#line 39 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/ShotwellAuthenticatorFactory.vala" - return result; -#line 323 "ShotwellAuthenticatorFactory.c" - } - } - } -} - - -PublishingAuthenticatorFactory* -publishing_authenticator_factory_construct (GType object_type) -{ - PublishingAuthenticatorFactory * self = NULL; -#line 2 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/ShotwellAuthenticatorFactory.vala" - self = (PublishingAuthenticatorFactory*) g_object_new (object_type, NULL); -#line 2 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/ShotwellAuthenticatorFactory.vala" - return self; -#line 338 "ShotwellAuthenticatorFactory.c" -} - - -PublishingAuthenticatorFactory* -publishing_authenticator_factory_new (void) -{ -#line 2 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/ShotwellAuthenticatorFactory.vala" - return publishing_authenticator_factory_construct (PUBLISHING_AUTHENTICATOR_TYPE_FACTORY); -#line 347 "ShotwellAuthenticatorFactory.c" -} - - -static void -publishing_authenticator_factory_class_init (PublishingAuthenticatorFactoryClass * klass) -{ -#line 2 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/ShotwellAuthenticatorFactory.vala" - publishing_authenticator_factory_parent_class = g_type_class_peek_parent (klass); -#line 2 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/ShotwellAuthenticatorFactory.vala" - G_OBJECT_CLASS (klass)->finalize = publishing_authenticator_factory_finalize; -#line 358 "ShotwellAuthenticatorFactory.c" -} - - -static void -publishing_authenticator_factory_spit_publishing_authenticator_factory_interface_init (SpitPublishingAuthenticatorFactoryIface * iface) -{ -#line 2 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/ShotwellAuthenticatorFactory.vala" - publishing_authenticator_factory_spit_publishing_authenticator_factory_parent_iface = g_type_interface_peek_parent (iface); -#line 2 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/ShotwellAuthenticatorFactory.vala" - iface->get_available_authenticators = (GeeList* (*) (SpitPublishingAuthenticatorFactory *)) publishing_authenticator_factory_real_get_available_authenticators; -#line 2 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/ShotwellAuthenticatorFactory.vala" - iface->create = (SpitPublishingAuthenticator* (*) (SpitPublishingAuthenticatorFactory *, const gchar*, SpitPublishingPluginHost*)) publishing_authenticator_factory_real_create; -#line 371 "ShotwellAuthenticatorFactory.c" -} - - -static void -publishing_authenticator_factory_instance_init (PublishingAuthenticatorFactory * self) -{ -} - - -static void -publishing_authenticator_factory_finalize (GObject * obj) -{ - PublishingAuthenticatorFactory * self; -#line 2 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/ShotwellAuthenticatorFactory.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, PUBLISHING_AUTHENTICATOR_TYPE_FACTORY, PublishingAuthenticatorFactory); -#line 2 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/ShotwellAuthenticatorFactory.vala" - G_OBJECT_CLASS (publishing_authenticator_factory_parent_class)->finalize (obj); -#line 389 "ShotwellAuthenticatorFactory.c" -} - - -GType -publishing_authenticator_factory_get_type (void) -{ - static volatile gsize publishing_authenticator_factory_type_id__volatile = 0; - if (g_once_init_enter (&publishing_authenticator_factory_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (PublishingAuthenticatorFactoryClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) publishing_authenticator_factory_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PublishingAuthenticatorFactory), 0, (GInstanceInitFunc) publishing_authenticator_factory_instance_init, NULL }; - static const GInterfaceInfo spit_publishing_authenticator_factory_info = { (GInterfaceInitFunc) publishing_authenticator_factory_spit_publishing_authenticator_factory_interface_init, (GInterfaceFinalizeFunc) NULL, NULL}; - GType publishing_authenticator_factory_type_id; - publishing_authenticator_factory_type_id = g_type_register_static (G_TYPE_OBJECT, "PublishingAuthenticatorFactory", &g_define_type_info, 0); - g_type_add_interface_static (publishing_authenticator_factory_type_id, SPIT_PUBLISHING_TYPE_AUTHENTICATOR_FACTORY, &spit_publishing_authenticator_factory_info); - g_once_init_leave (&publishing_authenticator_factory_type_id__volatile, publishing_authenticator_factory_type_id); - } - return publishing_authenticator_factory_type_id__volatile; -} - - - diff --git a/plugins/authenticator/shotwell/TumblrAuthenticator.c b/plugins/authenticator/shotwell/TumblrAuthenticator.c deleted file mode 100644 index 5fd814c..0000000 --- a/plugins/authenticator/shotwell/TumblrAuthenticator.c +++ /dev/null @@ -1,1488 +0,0 @@ -/* TumblrAuthenticator.c generated by valac 0.40.4, the Vala compiler - * generated from TumblrAuthenticator.vala, do not modify */ - -/* Copyright 2012 BJA Electronics - * Copyright 2017 Jens Georg - * Author: Jeroen Arnoldus (b.j.arnoldus@bja-electronics.nl) - * Author: Jens Georg - * - * 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 "shotwell-plugin-dev-1.0.h" -#include -#include -#include "shotwell-plugin-common.h" -#include - - -#define PUBLISHING_AUTHENTICATOR_SHOTWELL_TUMBLR_TYPE_AUTHENTICATION_PANE (publishing_authenticator_shotwell_tumblr_authentication_pane_get_type ()) -#define PUBLISHING_AUTHENTICATOR_SHOTWELL_TUMBLR_AUTHENTICATION_PANE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_AUTHENTICATOR_SHOTWELL_TUMBLR_TYPE_AUTHENTICATION_PANE, PublishingAuthenticatorShotwellTumblrAuthenticationPane)) -#define PUBLISHING_AUTHENTICATOR_SHOTWELL_TUMBLR_AUTHENTICATION_PANE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_AUTHENTICATOR_SHOTWELL_TUMBLR_TYPE_AUTHENTICATION_PANE, PublishingAuthenticatorShotwellTumblrAuthenticationPaneClass)) -#define PUBLISHING_AUTHENTICATOR_SHOTWELL_TUMBLR_IS_AUTHENTICATION_PANE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_AUTHENTICATOR_SHOTWELL_TUMBLR_TYPE_AUTHENTICATION_PANE)) -#define PUBLISHING_AUTHENTICATOR_SHOTWELL_TUMBLR_IS_AUTHENTICATION_PANE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_AUTHENTICATOR_SHOTWELL_TUMBLR_TYPE_AUTHENTICATION_PANE)) -#define PUBLISHING_AUTHENTICATOR_SHOTWELL_TUMBLR_AUTHENTICATION_PANE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_AUTHENTICATOR_SHOTWELL_TUMBLR_TYPE_AUTHENTICATION_PANE, PublishingAuthenticatorShotwellTumblrAuthenticationPaneClass)) - -typedef struct _PublishingAuthenticatorShotwellTumblrAuthenticationPane PublishingAuthenticatorShotwellTumblrAuthenticationPane; -typedef struct _PublishingAuthenticatorShotwellTumblrAuthenticationPaneClass PublishingAuthenticatorShotwellTumblrAuthenticationPaneClass; -typedef struct _PublishingAuthenticatorShotwellTumblrAuthenticationPanePrivate PublishingAuthenticatorShotwellTumblrAuthenticationPanePrivate; -enum { - PUBLISHING_AUTHENTICATOR_SHOTWELL_TUMBLR_AUTHENTICATION_PANE_0_PROPERTY, - PUBLISHING_AUTHENTICATOR_SHOTWELL_TUMBLR_AUTHENTICATION_PANE_NUM_PROPERTIES -}; -static GParamSpec* publishing_authenticator_shotwell_tumblr_authentication_pane_properties[PUBLISHING_AUTHENTICATOR_SHOTWELL_TUMBLR_AUTHENTICATION_PANE_NUM_PROPERTIES]; - -#define PUBLISHING_AUTHENTICATOR_SHOTWELL_TUMBLR_AUTHENTICATION_PANE_TYPE_MODE (publishing_authenticator_shotwell_tumblr_authentication_pane_mode_get_type ()) -#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL))) -#define _g_free0(var) (var = (g_free (var), NULL)) -#define _g_error_free0(var) ((var == NULL) ? NULL : (var = (g_error_free (var), NULL))) -enum { - PUBLISHING_AUTHENTICATOR_SHOTWELL_TUMBLR_AUTHENTICATION_PANE_LOGIN_SIGNAL, - PUBLISHING_AUTHENTICATOR_SHOTWELL_TUMBLR_AUTHENTICATION_PANE_NUM_SIGNALS -}; -static guint publishing_authenticator_shotwell_tumblr_authentication_pane_signals[PUBLISHING_AUTHENTICATOR_SHOTWELL_TUMBLR_AUTHENTICATION_PANE_NUM_SIGNALS] = {0}; - -#define PUBLISHING_AUTHENTICATOR_SHOTWELL_TUMBLR_TYPE_ACCESS_TOKEN_FETCH_TRANSACTION (publishing_authenticator_shotwell_tumblr_access_token_fetch_transaction_get_type ()) -#define PUBLISHING_AUTHENTICATOR_SHOTWELL_TUMBLR_ACCESS_TOKEN_FETCH_TRANSACTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_AUTHENTICATOR_SHOTWELL_TUMBLR_TYPE_ACCESS_TOKEN_FETCH_TRANSACTION, PublishingAuthenticatorShotwellTumblrAccessTokenFetchTransaction)) -#define PUBLISHING_AUTHENTICATOR_SHOTWELL_TUMBLR_ACCESS_TOKEN_FETCH_TRANSACTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_AUTHENTICATOR_SHOTWELL_TUMBLR_TYPE_ACCESS_TOKEN_FETCH_TRANSACTION, PublishingAuthenticatorShotwellTumblrAccessTokenFetchTransactionClass)) -#define PUBLISHING_AUTHENTICATOR_SHOTWELL_TUMBLR_IS_ACCESS_TOKEN_FETCH_TRANSACTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_AUTHENTICATOR_SHOTWELL_TUMBLR_TYPE_ACCESS_TOKEN_FETCH_TRANSACTION)) -#define PUBLISHING_AUTHENTICATOR_SHOTWELL_TUMBLR_IS_ACCESS_TOKEN_FETCH_TRANSACTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_AUTHENTICATOR_SHOTWELL_TUMBLR_TYPE_ACCESS_TOKEN_FETCH_TRANSACTION)) -#define PUBLISHING_AUTHENTICATOR_SHOTWELL_TUMBLR_ACCESS_TOKEN_FETCH_TRANSACTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_AUTHENTICATOR_SHOTWELL_TUMBLR_TYPE_ACCESS_TOKEN_FETCH_TRANSACTION, PublishingAuthenticatorShotwellTumblrAccessTokenFetchTransactionClass)) - -typedef struct _PublishingAuthenticatorShotwellTumblrAccessTokenFetchTransaction PublishingAuthenticatorShotwellTumblrAccessTokenFetchTransaction; -typedef struct _PublishingAuthenticatorShotwellTumblrAccessTokenFetchTransactionClass PublishingAuthenticatorShotwellTumblrAccessTokenFetchTransactionClass; -typedef struct _PublishingAuthenticatorShotwellTumblrAccessTokenFetchTransactionPrivate PublishingAuthenticatorShotwellTumblrAccessTokenFetchTransactionPrivate; - -#define PUBLISHING_AUTHENTICATOR_SHOTWELL_OAUTH1_TYPE_AUTHENTICATOR (publishing_authenticator_shotwell_oauth1_authenticator_get_type ()) -#define PUBLISHING_AUTHENTICATOR_SHOTWELL_OAUTH1_AUTHENTICATOR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_AUTHENTICATOR_SHOTWELL_OAUTH1_TYPE_AUTHENTICATOR, PublishingAuthenticatorShotwellOAuth1Authenticator)) -#define PUBLISHING_AUTHENTICATOR_SHOTWELL_OAUTH1_AUTHENTICATOR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_AUTHENTICATOR_SHOTWELL_OAUTH1_TYPE_AUTHENTICATOR, PublishingAuthenticatorShotwellOAuth1AuthenticatorClass)) -#define PUBLISHING_AUTHENTICATOR_SHOTWELL_OAUTH1_IS_AUTHENTICATOR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_AUTHENTICATOR_SHOTWELL_OAUTH1_TYPE_AUTHENTICATOR)) -#define PUBLISHING_AUTHENTICATOR_SHOTWELL_OAUTH1_IS_AUTHENTICATOR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_AUTHENTICATOR_SHOTWELL_OAUTH1_TYPE_AUTHENTICATOR)) -#define PUBLISHING_AUTHENTICATOR_SHOTWELL_OAUTH1_AUTHENTICATOR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_AUTHENTICATOR_SHOTWELL_OAUTH1_TYPE_AUTHENTICATOR, PublishingAuthenticatorShotwellOAuth1AuthenticatorClass)) - -typedef struct _PublishingAuthenticatorShotwellOAuth1Authenticator PublishingAuthenticatorShotwellOAuth1Authenticator; -typedef struct _PublishingAuthenticatorShotwellOAuth1AuthenticatorClass PublishingAuthenticatorShotwellOAuth1AuthenticatorClass; -typedef struct _PublishingAuthenticatorShotwellOAuth1AuthenticatorPrivate PublishingAuthenticatorShotwellOAuth1AuthenticatorPrivate; - -#define PUBLISHING_AUTHENTICATOR_SHOTWELL_TUMBLR_TYPE_TUMBLR (publishing_authenticator_shotwell_tumblr_tumblr_get_type ()) -#define PUBLISHING_AUTHENTICATOR_SHOTWELL_TUMBLR_TUMBLR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_AUTHENTICATOR_SHOTWELL_TUMBLR_TYPE_TUMBLR, PublishingAuthenticatorShotwellTumblrTumblr)) -#define PUBLISHING_AUTHENTICATOR_SHOTWELL_TUMBLR_TUMBLR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_AUTHENTICATOR_SHOTWELL_TUMBLR_TYPE_TUMBLR, PublishingAuthenticatorShotwellTumblrTumblrClass)) -#define PUBLISHING_AUTHENTICATOR_SHOTWELL_TUMBLR_IS_TUMBLR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_AUTHENTICATOR_SHOTWELL_TUMBLR_TYPE_TUMBLR)) -#define PUBLISHING_AUTHENTICATOR_SHOTWELL_TUMBLR_IS_TUMBLR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_AUTHENTICATOR_SHOTWELL_TUMBLR_TYPE_TUMBLR)) -#define PUBLISHING_AUTHENTICATOR_SHOTWELL_TUMBLR_TUMBLR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_AUTHENTICATOR_SHOTWELL_TUMBLR_TYPE_TUMBLR, PublishingAuthenticatorShotwellTumblrTumblrClass)) - -typedef struct _PublishingAuthenticatorShotwellTumblrTumblr PublishingAuthenticatorShotwellTumblrTumblr; -typedef struct _PublishingAuthenticatorShotwellTumblrTumblrClass PublishingAuthenticatorShotwellTumblrTumblrClass; -typedef struct _PublishingAuthenticatorShotwellTumblrTumblrPrivate PublishingAuthenticatorShotwellTumblrTumblrPrivate; -enum { - PUBLISHING_AUTHENTICATOR_SHOTWELL_TUMBLR_TUMBLR_0_PROPERTY, - PUBLISHING_AUTHENTICATOR_SHOTWELL_TUMBLR_TUMBLR_NUM_PROPERTIES -}; -static GParamSpec* publishing_authenticator_shotwell_tumblr_tumblr_properties[PUBLISHING_AUTHENTICATOR_SHOTWELL_TUMBLR_TUMBLR_NUM_PROPERTIES]; -#define _publishing_rest_support_transaction_unref0(var) ((var == NULL) ? NULL : (var = (publishing_rest_support_transaction_unref (var), NULL))) -#define _g_hash_table_unref0(var) ((var == NULL) ? NULL : (var = (g_hash_table_unref (var), NULL))) - -struct _PublishingAuthenticatorShotwellTumblrAuthenticationPane { - GObject parent_instance; - PublishingAuthenticatorShotwellTumblrAuthenticationPanePrivate * priv; -}; - -struct _PublishingAuthenticatorShotwellTumblrAuthenticationPaneClass { - GObjectClass parent_class; -}; - -struct _PublishingAuthenticatorShotwellTumblrAuthenticationPanePrivate { - GtkBox* pane_widget; - GtkBuilder* builder; - GtkEntry* username_entry; - GtkEntry* password_entry; - GtkButton* login_button; -}; - -typedef enum { - PUBLISHING_AUTHENTICATOR_SHOTWELL_TUMBLR_AUTHENTICATION_PANE_MODE_INTRO, - PUBLISHING_AUTHENTICATOR_SHOTWELL_TUMBLR_AUTHENTICATION_PANE_MODE_FAILED_RETRY_USER -} PublishingAuthenticatorShotwellTumblrAuthenticationPaneMode; - -struct _PublishingAuthenticatorShotwellTumblrAccessTokenFetchTransaction { - PublishingRESTSupportOAuth1Transaction parent_instance; - PublishingAuthenticatorShotwellTumblrAccessTokenFetchTransactionPrivate * priv; -}; - -struct _PublishingAuthenticatorShotwellTumblrAccessTokenFetchTransactionClass { - PublishingRESTSupportOAuth1TransactionClass parent_class; -}; - -struct _PublishingAuthenticatorShotwellOAuth1Authenticator { - GObject parent_instance; - PublishingAuthenticatorShotwellOAuth1AuthenticatorPrivate * priv; - GHashTable* params; - PublishingRESTSupportOAuth1Session* session; - SpitPublishingPluginHost* host; -}; - -struct _PublishingAuthenticatorShotwellOAuth1AuthenticatorClass { - GObjectClass parent_class; - void (*authenticate) (PublishingAuthenticatorShotwellOAuth1Authenticator* self); - gboolean (*can_logout) (PublishingAuthenticatorShotwellOAuth1Authenticator* self); - void (*logout) (PublishingAuthenticatorShotwellOAuth1Authenticator* self); - void (*refresh) (PublishingAuthenticatorShotwellOAuth1Authenticator* self); -}; - -struct _PublishingAuthenticatorShotwellTumblrTumblr { - PublishingAuthenticatorShotwellOAuth1Authenticator parent_instance; - PublishingAuthenticatorShotwellTumblrTumblrPrivate * priv; -}; - -struct _PublishingAuthenticatorShotwellTumblrTumblrClass { - PublishingAuthenticatorShotwellOAuth1AuthenticatorClass parent_class; -}; - - -static gpointer publishing_authenticator_shotwell_tumblr_authentication_pane_parent_class = NULL; -static gchar* publishing_authenticator_shotwell_tumblr_authentication_pane_INTRO_MESSAGE; -static gchar* publishing_authenticator_shotwell_tumblr_authentication_pane_INTRO_MESSAGE = NULL; -static gchar* publishing_authenticator_shotwell_tumblr_authentication_pane_FAILED_RETRY_USER_MESSAGE; -static gchar* publishing_authenticator_shotwell_tumblr_authentication_pane_FAILED_RETRY_USER_MESSAGE = NULL; -static SpitPublishingDialogPaneIface * publishing_authenticator_shotwell_tumblr_authentication_pane_spit_publishing_dialog_pane_parent_iface = NULL; -static gpointer publishing_authenticator_shotwell_tumblr_access_token_fetch_transaction_parent_class = NULL; -static gpointer publishing_authenticator_shotwell_tumblr_tumblr_parent_class = NULL; - -#define PUBLISHING_AUTHENTICATOR_SHOTWELL_TUMBLR_ENDPOINT_URL "https://www.tumblr.com/" -#define PUBLISHING_AUTHENTICATOR_SHOTWELL_TUMBLR_API_KEY "NdXvXQuKVccOsCOj0H4k9HUJcbcjDBYSo2AkaHzXFECHGNuP9k" -#define PUBLISHING_AUTHENTICATOR_SHOTWELL_TUMBLR_API_SECRET "BN0Uoig0MwbeD27OgA0IwYlp3Uvonyfsrl9pf1cnnMj1QoEUvi" -#define PUBLISHING_AUTHENTICATOR_SHOTWELL_TUMBLR_ENCODE_RFC_3986_EXTRA "!*'();:@&=+$,/?%#[] \\" -GType publishing_authenticator_shotwell_tumblr_authentication_pane_get_type (void) G_GNUC_CONST; -#define PUBLISHING_AUTHENTICATOR_SHOTWELL_TUMBLR_AUTHENTICATION_PANE_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), PUBLISHING_AUTHENTICATOR_SHOTWELL_TUMBLR_TYPE_AUTHENTICATION_PANE, PublishingAuthenticatorShotwellTumblrAuthenticationPanePrivate)) -GType publishing_authenticator_shotwell_tumblr_authentication_pane_mode_get_type (void) G_GNUC_CONST; -PublishingAuthenticatorShotwellTumblrAuthenticationPane* publishing_authenticator_shotwell_tumblr_authentication_pane_new (PublishingAuthenticatorShotwellTumblrAuthenticationPaneMode mode); -PublishingAuthenticatorShotwellTumblrAuthenticationPane* publishing_authenticator_shotwell_tumblr_authentication_pane_construct (GType object_type, - PublishingAuthenticatorShotwellTumblrAuthenticationPaneMode mode); -static void publishing_authenticator_shotwell_tumblr_authentication_pane_on_user_changed (PublishingAuthenticatorShotwellTumblrAuthenticationPane* self); -static void _publishing_authenticator_shotwell_tumblr_authentication_pane_on_user_changed_gtk_editable_changed (GtkEditable* _sender, - gpointer self); -static void publishing_authenticator_shotwell_tumblr_authentication_pane_on_password_changed (PublishingAuthenticatorShotwellTumblrAuthenticationPane* self); -static void _publishing_authenticator_shotwell_tumblr_authentication_pane_on_password_changed_gtk_editable_changed (GtkEditable* _sender, - gpointer self); -static void publishing_authenticator_shotwell_tumblr_authentication_pane_on_login_button_clicked (PublishingAuthenticatorShotwellTumblrAuthenticationPane* self); -static void _publishing_authenticator_shotwell_tumblr_authentication_pane_on_login_button_clicked_gtk_button_clicked (GtkButton* _sender, - gpointer self); -GtkWidget* publishing_authenticator_shotwell_tumblr_authentication_pane_get_default_widget (PublishingAuthenticatorShotwellTumblrAuthenticationPane* self); -static void publishing_authenticator_shotwell_tumblr_authentication_pane_update_login_button_sensitivity (PublishingAuthenticatorShotwellTumblrAuthenticationPane* self); -static GtkWidget* publishing_authenticator_shotwell_tumblr_authentication_pane_real_get_widget (SpitPublishingDialogPane* base); -static SpitPublishingDialogPaneGeometryOptions publishing_authenticator_shotwell_tumblr_authentication_pane_real_get_preferred_geometry (SpitPublishingDialogPane* base); -static void publishing_authenticator_shotwell_tumblr_authentication_pane_real_on_pane_installed (SpitPublishingDialogPane* base); -static void publishing_authenticator_shotwell_tumblr_authentication_pane_real_on_pane_uninstalled (SpitPublishingDialogPane* base); -static void g_cclosure_user_marshal_VOID__STRING_STRING (GClosure * closure, - GValue * return_value, - guint n_param_values, - const GValue * param_values, - gpointer invocation_hint, - gpointer marshal_data); -static void publishing_authenticator_shotwell_tumblr_authentication_pane_finalize (GObject * obj); -GType publishing_authenticator_shotwell_tumblr_access_token_fetch_transaction_get_type (void) G_GNUC_CONST; -PublishingAuthenticatorShotwellTumblrAccessTokenFetchTransaction* publishing_authenticator_shotwell_tumblr_access_token_fetch_transaction_new (PublishingRESTSupportOAuth1Session* session, - const gchar* username, - const gchar* password); -PublishingAuthenticatorShotwellTumblrAccessTokenFetchTransaction* publishing_authenticator_shotwell_tumblr_access_token_fetch_transaction_construct (GType object_type, - PublishingRESTSupportOAuth1Session* session, - const gchar* username, - const gchar* password); -GType publishing_authenticator_shotwell_oauth1_authenticator_get_type (void) G_GNUC_CONST; -GType publishing_authenticator_shotwell_tumblr_tumblr_get_type (void) G_GNUC_CONST; -PublishingAuthenticatorShotwellTumblrTumblr* publishing_authenticator_shotwell_tumblr_tumblr_new (SpitPublishingPluginHost* host); -PublishingAuthenticatorShotwellTumblrTumblr* publishing_authenticator_shotwell_tumblr_tumblr_construct (GType object_type, - SpitPublishingPluginHost* host); -PublishingAuthenticatorShotwellOAuth1Authenticator* publishing_authenticator_shotwell_oauth1_authenticator_construct (GType object_type, - const gchar* api_key, - const gchar* api_secret, - SpitPublishingPluginHost* host); -static void publishing_authenticator_shotwell_tumblr_tumblr_real_authenticate (PublishingAuthenticatorShotwellOAuth1Authenticator* base); -gboolean publishing_authenticator_shotwell_oauth1_authenticator_is_persistent_session_valid (PublishingAuthenticatorShotwellOAuth1Authenticator* self); -gchar* publishing_authenticator_shotwell_oauth1_authenticator_get_persistent_access_phase_token (PublishingAuthenticatorShotwellOAuth1Authenticator* self); -gchar* publishing_authenticator_shotwell_oauth1_authenticator_get_persistent_access_phase_token_secret (PublishingAuthenticatorShotwellOAuth1Authenticator* self); -static void publishing_authenticator_shotwell_tumblr_tumblr_do_show_authentication_pane (PublishingAuthenticatorShotwellTumblrTumblr* self, - PublishingAuthenticatorShotwellTumblrAuthenticationPaneMode mode); -static gboolean publishing_authenticator_shotwell_tumblr_tumblr_real_can_logout (PublishingAuthenticatorShotwellOAuth1Authenticator* base); -static void publishing_authenticator_shotwell_tumblr_tumblr_real_logout (PublishingAuthenticatorShotwellOAuth1Authenticator* base); -void publishing_authenticator_shotwell_oauth1_authenticator_invalidate_persistent_session (PublishingAuthenticatorShotwellOAuth1Authenticator* self); -static void publishing_authenticator_shotwell_tumblr_tumblr_real_refresh (PublishingAuthenticatorShotwellOAuth1Authenticator* base); -static void publishing_authenticator_shotwell_tumblr_tumblr_on_authentication_pane_login_clicked (PublishingAuthenticatorShotwellTumblrTumblr* self, - const gchar* username, - const gchar* password); -static void _publishing_authenticator_shotwell_tumblr_tumblr_on_authentication_pane_login_clicked_publishing_authenticator_shotwell_tumblr_authentication_pane_login (PublishingAuthenticatorShotwellTumblrAuthenticationPane* _sender, - const gchar* user, - const gchar* password, - gpointer self); -static void publishing_authenticator_shotwell_tumblr_tumblr_do_network_login (PublishingAuthenticatorShotwellTumblrTumblr* self, - const gchar* username, - const gchar* password); -static void publishing_authenticator_shotwell_tumblr_tumblr_on_auth_request_txn_completed (PublishingAuthenticatorShotwellTumblrTumblr* self, - PublishingRESTSupportTransaction* txn); -static void _publishing_authenticator_shotwell_tumblr_tumblr_on_auth_request_txn_completed_publishing_rest_support_transaction_completed (PublishingRESTSupportTransaction* _sender, - gpointer self); -static void publishing_authenticator_shotwell_tumblr_tumblr_on_auth_request_txn_error (PublishingAuthenticatorShotwellTumblrTumblr* self, - PublishingRESTSupportTransaction* txn, - GError* err); -static void _publishing_authenticator_shotwell_tumblr_tumblr_on_auth_request_txn_error_publishing_rest_support_transaction_network_error (PublishingRESTSupportTransaction* _sender, - GError* err, - gpointer self); -static void publishing_authenticator_shotwell_tumblr_tumblr_do_parse_token_info_from_auth_request (PublishingAuthenticatorShotwellTumblrTumblr* self, - const gchar* response); - - -GType -publishing_authenticator_shotwell_tumblr_authentication_pane_mode_get_type (void) -{ - static volatile gsize publishing_authenticator_shotwell_tumblr_authentication_pane_mode_type_id__volatile = 0; - if (g_once_init_enter (&publishing_authenticator_shotwell_tumblr_authentication_pane_mode_type_id__volatile)) { - static const GEnumValue values[] = {{PUBLISHING_AUTHENTICATOR_SHOTWELL_TUMBLR_AUTHENTICATION_PANE_MODE_INTRO, "PUBLISHING_AUTHENTICATOR_SHOTWELL_TUMBLR_AUTHENTICATION_PANE_MODE_INTRO", "intro"}, {PUBLISHING_AUTHENTICATOR_SHOTWELL_TUMBLR_AUTHENTICATION_PANE_MODE_FAILED_RETRY_USER, "PUBLISHING_AUTHENTICATOR_SHOTWELL_TUMBLR_AUTHENTICATION_PANE_MODE_FAILED_RETRY_USER", "failed-retry-user"}, {0, NULL, NULL}}; - GType publishing_authenticator_shotwell_tumblr_authentication_pane_mode_type_id; - publishing_authenticator_shotwell_tumblr_authentication_pane_mode_type_id = g_enum_register_static ("PublishingAuthenticatorShotwellTumblrAuthenticationPaneMode", values); - g_once_init_leave (&publishing_authenticator_shotwell_tumblr_authentication_pane_mode_type_id__volatile, publishing_authenticator_shotwell_tumblr_authentication_pane_mode_type_id); - } - return publishing_authenticator_shotwell_tumblr_authentication_pane_mode_type_id__volatile; -} - - -static gpointer -_g_object_ref0 (gpointer self) -{ -#line 43 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - return self ? g_object_ref (self) : NULL; -#line 260 "TumblrAuthenticator.c" -} - - -static void -_publishing_authenticator_shotwell_tumblr_authentication_pane_on_user_changed_gtk_editable_changed (GtkEditable* _sender, - gpointer self) -{ -#line 65 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - publishing_authenticator_shotwell_tumblr_authentication_pane_on_user_changed ((PublishingAuthenticatorShotwellTumblrAuthenticationPane*) self); -#line 270 "TumblrAuthenticator.c" -} - - -static void -_publishing_authenticator_shotwell_tumblr_authentication_pane_on_password_changed_gtk_editable_changed (GtkEditable* _sender, - gpointer self) -{ -#line 66 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - publishing_authenticator_shotwell_tumblr_authentication_pane_on_password_changed ((PublishingAuthenticatorShotwellTumblrAuthenticationPane*) self); -#line 280 "TumblrAuthenticator.c" -} - - -static void -_publishing_authenticator_shotwell_tumblr_authentication_pane_on_login_button_clicked_gtk_button_clicked (GtkButton* _sender, - gpointer self) -{ -#line 67 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - publishing_authenticator_shotwell_tumblr_authentication_pane_on_login_button_clicked ((PublishingAuthenticatorShotwellTumblrAuthenticationPane*) self); -#line 290 "TumblrAuthenticator.c" -} - - -PublishingAuthenticatorShotwellTumblrAuthenticationPane* -publishing_authenticator_shotwell_tumblr_authentication_pane_construct (GType object_type, - PublishingAuthenticatorShotwellTumblrAuthenticationPaneMode mode) -{ - PublishingAuthenticatorShotwellTumblrAuthenticationPane * self = NULL; - GtkBox* _tmp0_; - GError * _inner_error_ = NULL; -#line 36 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - self = (PublishingAuthenticatorShotwellTumblrAuthenticationPane*) g_object_new (object_type, NULL); -#line 37 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - _tmp0_ = (GtkBox*) gtk_box_new (GTK_ORIENTATION_VERTICAL, 0); -#line 37 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - g_object_ref_sink (_tmp0_); -#line 37 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - _g_object_unref0 (self->priv->pane_widget); -#line 37 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - self->priv->pane_widget = _tmp0_; -#line 311 "TumblrAuthenticator.c" - { - GtkBuilder* _tmp1_; - GtkBuilder* _tmp2_; - GtkBuilder* _tmp3_; - GtkWidget* content = NULL; - GtkBuilder* _tmp4_; - GObject* _tmp5_; - GtkWidget* _tmp6_; - GtkLabel* message_label = NULL; - GtkBuilder* _tmp7_; - GObject* _tmp8_; - GtkLabel* _tmp9_; - GtkBuilder* _tmp16_; - GObject* _tmp17_; - GtkEntry* _tmp18_; - GtkBuilder* _tmp19_; - GObject* _tmp20_; - GtkEntry* _tmp21_; - GtkBuilder* _tmp22_; - GObject* _tmp23_; - GtkButton* _tmp24_; - GtkEntry* _tmp25_; - GtkEntry* _tmp26_; - GtkButton* _tmp27_; - GtkWidget* _tmp28_; - GtkContainer* _tmp29_; - GtkContainer* _tmp30_; - GtkWidget* _tmp31_; - GtkBox* _tmp32_; - GtkWidget* _tmp33_; -#line 40 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - _tmp1_ = gtk_builder_new (); -#line 40 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - _g_object_unref0 (self->priv->builder); -#line 40 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - self->priv->builder = _tmp1_; -#line 41 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - _tmp2_ = self->priv->builder; -#line 41 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - gtk_builder_add_from_resource (_tmp2_, PLUGIN_RESOURCE_PATH "/tumblr_authentication_pane.ui", &_inner_error_); -#line 41 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 354 "TumblrAuthenticator.c" - goto __catch8_g_error; - } -#line 42 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - _tmp3_ = self->priv->builder; -#line 42 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - gtk_builder_connect_signals (_tmp3_, NULL); -#line 43 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - _tmp4_ = self->priv->builder; -#line 43 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - _tmp5_ = gtk_builder_get_object (_tmp4_, "content"); -#line 43 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - _tmp6_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp5_, gtk_widget_get_type ()) ? ((GtkWidget*) _tmp5_) : NULL); -#line 43 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - content = _tmp6_; -#line 45 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - _tmp7_ = self->priv->builder; -#line 45 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - _tmp8_ = gtk_builder_get_object (_tmp7_, "message_label"); -#line 45 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - _tmp9_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp8_, gtk_label_get_type ()) ? ((GtkLabel*) _tmp8_) : NULL); -#line 45 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - message_label = _tmp9_; -#line 46 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - switch (mode) { -#line 46 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - case PUBLISHING_AUTHENTICATOR_SHOTWELL_TUMBLR_AUTHENTICATION_PANE_MODE_INTRO: -#line 381 "TumblrAuthenticator.c" - { - GtkLabel* _tmp10_; - const gchar* _tmp11_; -#line 48 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - _tmp10_ = message_label; -#line 48 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - _tmp11_ = publishing_authenticator_shotwell_tumblr_authentication_pane_INTRO_MESSAGE; -#line 48 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - gtk_label_set_text (_tmp10_, _tmp11_); -#line 49 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - break; -#line 393 "TumblrAuthenticator.c" - } -#line 46 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - case PUBLISHING_AUTHENTICATOR_SHOTWELL_TUMBLR_AUTHENTICATION_PANE_MODE_FAILED_RETRY_USER: -#line 397 "TumblrAuthenticator.c" - { - GtkLabel* _tmp12_; - const gchar* _tmp13_; - gchar* _tmp14_; - gchar* _tmp15_; -#line 52 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - _tmp12_ = message_label; -#line 52 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - _tmp13_ = publishing_authenticator_shotwell_tumblr_authentication_pane_FAILED_RETRY_USER_MESSAGE; -#line 52 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - _tmp14_ = g_strdup_printf ("%s\n\n%s", _ ("Invalid User Name or Password"), _tmp13_); -#line 52 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - _tmp15_ = _tmp14_; -#line 52 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - gtk_label_set_markup (_tmp12_, _tmp15_); -#line 52 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - _g_free0 (_tmp15_); -#line 54 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - break; -#line 417 "TumblrAuthenticator.c" - } - default: -#line 46 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - break; -#line 422 "TumblrAuthenticator.c" - } -#line 57 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - _tmp16_ = self->priv->builder; -#line 57 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - _tmp17_ = gtk_builder_get_object (_tmp16_, "username_entry"); -#line 57 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - _tmp18_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp17_, gtk_entry_get_type ()) ? ((GtkEntry*) _tmp17_) : NULL); -#line 57 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - _g_object_unref0 (self->priv->username_entry); -#line 57 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - self->priv->username_entry = _tmp18_; -#line 59 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - _tmp19_ = self->priv->builder; -#line 59 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - _tmp20_ = gtk_builder_get_object (_tmp19_, "password_entry"); -#line 59 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - _tmp21_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp20_, gtk_entry_get_type ()) ? ((GtkEntry*) _tmp20_) : NULL); -#line 59 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - _g_object_unref0 (self->priv->password_entry); -#line 59 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - self->priv->password_entry = _tmp21_; -#line 63 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - _tmp22_ = self->priv->builder; -#line 63 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - _tmp23_ = gtk_builder_get_object (_tmp22_, "login_button"); -#line 63 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - _tmp24_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp23_, gtk_button_get_type ()) ? ((GtkButton*) _tmp23_) : NULL); -#line 63 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - _g_object_unref0 (self->priv->login_button); -#line 63 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - self->priv->login_button = _tmp24_; -#line 65 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - _tmp25_ = self->priv->username_entry; -#line 65 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp25_, gtk_editable_get_type (), GtkEditable), "changed", (GCallback) _publishing_authenticator_shotwell_tumblr_authentication_pane_on_user_changed_gtk_editable_changed, self, 0); -#line 66 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - _tmp26_ = self->priv->password_entry; -#line 66 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp26_, gtk_editable_get_type (), GtkEditable), "changed", (GCallback) _publishing_authenticator_shotwell_tumblr_authentication_pane_on_password_changed_gtk_editable_changed, self, 0); -#line 67 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - _tmp27_ = self->priv->login_button; -#line 67 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - g_signal_connect_object (_tmp27_, "clicked", (GCallback) _publishing_authenticator_shotwell_tumblr_authentication_pane_on_login_button_clicked_gtk_button_clicked, self, 0); -#line 69 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - _tmp28_ = content; -#line 69 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - _tmp29_ = gtk_widget_get_parent (_tmp28_); -#line 69 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - _tmp30_ = _tmp29_; -#line 69 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - _tmp31_ = content; -#line 69 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - gtk_container_remove (_tmp30_, _tmp31_); -#line 70 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - _tmp32_ = self->priv->pane_widget; -#line 70 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - _tmp33_ = content; -#line 70 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - gtk_container_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp32_, gtk_container_get_type (), GtkContainer), _tmp33_); -#line 39 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - _g_object_unref0 (message_label); -#line 39 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - _g_object_unref0 (content); -#line 486 "TumblrAuthenticator.c" - } - goto __finally8; - __catch8_g_error: - { - GError* e = NULL; - GError* _tmp34_; - const gchar* _tmp35_; -#line 39 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - e = _inner_error_; -#line 39 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - _inner_error_ = NULL; -#line 72 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - _tmp34_ = e; -#line 72 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - _tmp35_ = _tmp34_->message; -#line 72 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - g_warning (_ ("Could not load UI: %s"), _tmp35_); -#line 39 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - _g_error_free0 (e); -#line 506 "TumblrAuthenticator.c" - } - __finally8: -#line 39 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 39 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 39 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - g_clear_error (&_inner_error_); -#line 39 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - return NULL; -#line 517 "TumblrAuthenticator.c" - } -#line 36 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - return self; -#line 521 "TumblrAuthenticator.c" -} - - -PublishingAuthenticatorShotwellTumblrAuthenticationPane* -publishing_authenticator_shotwell_tumblr_authentication_pane_new (PublishingAuthenticatorShotwellTumblrAuthenticationPaneMode mode) -{ -#line 36 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - return publishing_authenticator_shotwell_tumblr_authentication_pane_construct (PUBLISHING_AUTHENTICATOR_SHOTWELL_TUMBLR_TYPE_AUTHENTICATION_PANE, mode); -#line 530 "TumblrAuthenticator.c" -} - - -GtkWidget* -publishing_authenticator_shotwell_tumblr_authentication_pane_get_default_widget (PublishingAuthenticatorShotwellTumblrAuthenticationPane* self) -{ - GtkWidget* result = NULL; - GtkButton* _tmp0_; - GtkWidget* _tmp1_; -#line 76 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - g_return_val_if_fail (PUBLISHING_AUTHENTICATOR_SHOTWELL_TUMBLR_IS_AUTHENTICATION_PANE (self), NULL); -#line 77 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - _tmp0_ = self->priv->login_button; -#line 77 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - _tmp1_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, gtk_widget_get_type (), GtkWidget)); -#line 77 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - result = _tmp1_; -#line 77 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - return result; -#line 550 "TumblrAuthenticator.c" -} - - -static void -publishing_authenticator_shotwell_tumblr_authentication_pane_on_login_button_clicked (PublishingAuthenticatorShotwellTumblrAuthenticationPane* self) -{ - GtkEntry* _tmp0_; - const gchar* _tmp1_; - GtkEntry* _tmp2_; - const gchar* _tmp3_; -#line 80 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - g_return_if_fail (PUBLISHING_AUTHENTICATOR_SHOTWELL_TUMBLR_IS_AUTHENTICATION_PANE (self)); -#line 81 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - _tmp0_ = self->priv->username_entry; -#line 81 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - _tmp1_ = gtk_entry_get_text (_tmp0_); -#line 81 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - _tmp2_ = self->priv->password_entry; -#line 81 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - _tmp3_ = gtk_entry_get_text (_tmp2_); -#line 81 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - g_signal_emit (self, publishing_authenticator_shotwell_tumblr_authentication_pane_signals[PUBLISHING_AUTHENTICATOR_SHOTWELL_TUMBLR_AUTHENTICATION_PANE_LOGIN_SIGNAL], 0, _tmp1_, _tmp3_); -#line 573 "TumblrAuthenticator.c" -} - - -static void -publishing_authenticator_shotwell_tumblr_authentication_pane_on_user_changed (PublishingAuthenticatorShotwellTumblrAuthenticationPane* self) -{ -#line 86 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - g_return_if_fail (PUBLISHING_AUTHENTICATOR_SHOTWELL_TUMBLR_IS_AUTHENTICATION_PANE (self)); -#line 87 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - publishing_authenticator_shotwell_tumblr_authentication_pane_update_login_button_sensitivity (self); -#line 584 "TumblrAuthenticator.c" -} - - -static void -publishing_authenticator_shotwell_tumblr_authentication_pane_on_password_changed (PublishingAuthenticatorShotwellTumblrAuthenticationPane* self) -{ -#line 90 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - g_return_if_fail (PUBLISHING_AUTHENTICATOR_SHOTWELL_TUMBLR_IS_AUTHENTICATION_PANE (self)); -#line 91 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - publishing_authenticator_shotwell_tumblr_authentication_pane_update_login_button_sensitivity (self); -#line 595 "TumblrAuthenticator.c" -} - - -static void -publishing_authenticator_shotwell_tumblr_authentication_pane_update_login_button_sensitivity (PublishingAuthenticatorShotwellTumblrAuthenticationPane* self) -{ - gboolean _tmp0_ = FALSE; - GtkEntry* _tmp1_; - guint _tmp2_; - guint _tmp3_; - GtkButton* _tmp7_; -#line 94 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - g_return_if_fail (PUBLISHING_AUTHENTICATOR_SHOTWELL_TUMBLR_IS_AUTHENTICATION_PANE (self)); -#line 95 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - _tmp1_ = self->priv->username_entry; -#line 95 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - _tmp2_ = gtk_entry_get_text_length (_tmp1_); -#line 95 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - _tmp3_ = _tmp2_; -#line 95 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - if (_tmp3_ > ((guint) 0)) { -#line 617 "TumblrAuthenticator.c" - GtkEntry* _tmp4_; - guint _tmp5_; - guint _tmp6_; -#line 96 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - _tmp4_ = self->priv->password_entry; -#line 96 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - _tmp5_ = gtk_entry_get_text_length (_tmp4_); -#line 96 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - _tmp6_ = _tmp5_; -#line 96 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - _tmp0_ = _tmp6_ > ((guint) 0); -#line 629 "TumblrAuthenticator.c" - } else { -#line 95 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - _tmp0_ = FALSE; -#line 633 "TumblrAuthenticator.c" - } -#line 95 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - _tmp7_ = self->priv->login_button; -#line 95 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - gtk_widget_set_sensitive (G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, gtk_widget_get_type (), GtkWidget), _tmp0_); -#line 639 "TumblrAuthenticator.c" -} - - -static GtkWidget* -publishing_authenticator_shotwell_tumblr_authentication_pane_real_get_widget (SpitPublishingDialogPane* base) -{ - PublishingAuthenticatorShotwellTumblrAuthenticationPane * self; - GtkWidget* result = NULL; - GtkBox* _tmp0_; - GtkWidget* _tmp1_; -#line 99 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_AUTHENTICATOR_SHOTWELL_TUMBLR_TYPE_AUTHENTICATION_PANE, PublishingAuthenticatorShotwellTumblrAuthenticationPane); -#line 100 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - _tmp0_ = self->priv->pane_widget; -#line 100 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - _tmp1_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, gtk_widget_get_type (), GtkWidget)); -#line 100 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - result = _tmp1_; -#line 100 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - return result; -#line 660 "TumblrAuthenticator.c" -} - - -static SpitPublishingDialogPaneGeometryOptions -publishing_authenticator_shotwell_tumblr_authentication_pane_real_get_preferred_geometry (SpitPublishingDialogPane* base) -{ - PublishingAuthenticatorShotwellTumblrAuthenticationPane * self; - SpitPublishingDialogPaneGeometryOptions result = 0; -#line 103 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_AUTHENTICATOR_SHOTWELL_TUMBLR_TYPE_AUTHENTICATION_PANE, PublishingAuthenticatorShotwellTumblrAuthenticationPane); -#line 104 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - result = SPIT_PUBLISHING_DIALOG_PANE_GEOMETRY_OPTIONS_NONE; -#line 104 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - return result; -#line 675 "TumblrAuthenticator.c" -} - - -static void -publishing_authenticator_shotwell_tumblr_authentication_pane_real_on_pane_installed (SpitPublishingDialogPane* base) -{ - PublishingAuthenticatorShotwellTumblrAuthenticationPane * self; - GtkEntry* _tmp0_; - GtkEntry* _tmp1_; - GtkButton* _tmp2_; -#line 107 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_AUTHENTICATOR_SHOTWELL_TUMBLR_TYPE_AUTHENTICATION_PANE, PublishingAuthenticatorShotwellTumblrAuthenticationPane); -#line 108 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - _tmp0_ = self->priv->username_entry; -#line 108 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - gtk_widget_grab_focus (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, gtk_widget_get_type (), GtkWidget)); -#line 109 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - _tmp1_ = self->priv->password_entry; -#line 109 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - gtk_entry_set_activates_default (_tmp1_, TRUE); -#line 110 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - _tmp2_ = self->priv->login_button; -#line 110 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - gtk_widget_set_can_default (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, gtk_widget_get_type (), GtkWidget), TRUE); -#line 111 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - publishing_authenticator_shotwell_tumblr_authentication_pane_update_login_button_sensitivity (self); -#line 702 "TumblrAuthenticator.c" -} - - -static void -publishing_authenticator_shotwell_tumblr_authentication_pane_real_on_pane_uninstalled (SpitPublishingDialogPane* base) -{ - PublishingAuthenticatorShotwellTumblrAuthenticationPane * self; -#line 114 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_AUTHENTICATOR_SHOTWELL_TUMBLR_TYPE_AUTHENTICATION_PANE, PublishingAuthenticatorShotwellTumblrAuthenticationPane); -#line 712 "TumblrAuthenticator.c" -} - - -static void -g_cclosure_user_marshal_VOID__STRING_STRING (GClosure * closure, - GValue * return_value, - guint n_param_values, - const GValue * param_values, - gpointer invocation_hint, - gpointer marshal_data) -{ - typedef void (*GMarshalFunc_VOID__STRING_STRING) (gpointer data1, const char* arg_1, const char* arg_2, gpointer data2); - register GMarshalFunc_VOID__STRING_STRING callback; - register GCClosure * cc; - register gpointer data1; - register gpointer data2; - cc = (GCClosure *) closure; -#line 20 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - g_return_if_fail (n_param_values == 3); -#line 20 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - if (G_CCLOSURE_SWAP_DATA (closure)) { -#line 20 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - data1 = closure->data; -#line 20 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - data2 = param_values->data[0].v_pointer; -#line 738 "TumblrAuthenticator.c" - } else { -#line 20 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - data1 = param_values->data[0].v_pointer; -#line 20 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - data2 = closure->data; -#line 744 "TumblrAuthenticator.c" - } -#line 20 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - callback = (GMarshalFunc_VOID__STRING_STRING) (marshal_data ? marshal_data : cc->callback); -#line 20 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - callback (data1, g_value_get_string (param_values + 1), g_value_get_string (param_values + 2), data2); -#line 750 "TumblrAuthenticator.c" -} - - -static void -publishing_authenticator_shotwell_tumblr_authentication_pane_class_init (PublishingAuthenticatorShotwellTumblrAuthenticationPaneClass * klass) -{ - gchar* _tmp0_; - gchar* _tmp1_; -#line 20 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - publishing_authenticator_shotwell_tumblr_authentication_pane_parent_class = g_type_class_peek_parent (klass); -#line 20 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - g_type_class_add_private (klass, sizeof (PublishingAuthenticatorShotwellTumblrAuthenticationPanePrivate)); -#line 20 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - G_OBJECT_CLASS (klass)->finalize = publishing_authenticator_shotwell_tumblr_authentication_pane_finalize; -#line 20 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - publishing_authenticator_shotwell_tumblr_authentication_pane_signals[PUBLISHING_AUTHENTICATOR_SHOTWELL_TUMBLR_AUTHENTICATION_PANE_LOGIN_SIGNAL] = g_signal_new ("login", PUBLISHING_AUTHENTICATOR_SHOTWELL_TUMBLR_TYPE_AUTHENTICATION_PANE, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_user_marshal_VOID__STRING_STRING, G_TYPE_NONE, 2, G_TYPE_STRING, G_TYPE_STRING); -#line 25 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - _tmp0_ = g_strdup (_ ("Enter the username and password associated with your Tumblr account.")); -#line 25 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - publishing_authenticator_shotwell_tumblr_authentication_pane_INTRO_MESSAGE = _tmp0_; -#line 26 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - _tmp1_ = g_strdup (_ ("Username and/or password invalid. Please try again")); -#line 26 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - publishing_authenticator_shotwell_tumblr_authentication_pane_FAILED_RETRY_USER_MESSAGE = _tmp1_; -#line 775 "TumblrAuthenticator.c" -} - - -static void -publishing_authenticator_shotwell_tumblr_authentication_pane_spit_publishing_dialog_pane_interface_init (SpitPublishingDialogPaneIface * iface) -{ -#line 20 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - publishing_authenticator_shotwell_tumblr_authentication_pane_spit_publishing_dialog_pane_parent_iface = g_type_interface_peek_parent (iface); -#line 20 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - iface->get_widget = (GtkWidget* (*) (SpitPublishingDialogPane *)) publishing_authenticator_shotwell_tumblr_authentication_pane_real_get_widget; -#line 20 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - iface->get_preferred_geometry = (SpitPublishingDialogPaneGeometryOptions (*) (SpitPublishingDialogPane *)) publishing_authenticator_shotwell_tumblr_authentication_pane_real_get_preferred_geometry; -#line 20 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - iface->on_pane_installed = (void (*) (SpitPublishingDialogPane *)) publishing_authenticator_shotwell_tumblr_authentication_pane_real_on_pane_installed; -#line 20 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - iface->on_pane_uninstalled = (void (*) (SpitPublishingDialogPane *)) publishing_authenticator_shotwell_tumblr_authentication_pane_real_on_pane_uninstalled; -#line 792 "TumblrAuthenticator.c" -} - - -static void -publishing_authenticator_shotwell_tumblr_authentication_pane_instance_init (PublishingAuthenticatorShotwellTumblrAuthenticationPane * self) -{ -#line 20 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - self->priv = PUBLISHING_AUTHENTICATOR_SHOTWELL_TUMBLR_AUTHENTICATION_PANE_GET_PRIVATE (self); -#line 28 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - self->priv->pane_widget = NULL; -#line 803 "TumblrAuthenticator.c" -} - - -static void -publishing_authenticator_shotwell_tumblr_authentication_pane_finalize (GObject * obj) -{ - PublishingAuthenticatorShotwellTumblrAuthenticationPane * self; -#line 20 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, PUBLISHING_AUTHENTICATOR_SHOTWELL_TUMBLR_TYPE_AUTHENTICATION_PANE, PublishingAuthenticatorShotwellTumblrAuthenticationPane); -#line 28 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - _g_object_unref0 (self->priv->pane_widget); -#line 29 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - _g_object_unref0 (self->priv->builder); -#line 30 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - _g_object_unref0 (self->priv->username_entry); -#line 31 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - _g_object_unref0 (self->priv->password_entry); -#line 32 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - _g_object_unref0 (self->priv->login_button); -#line 20 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - G_OBJECT_CLASS (publishing_authenticator_shotwell_tumblr_authentication_pane_parent_class)->finalize (obj); -#line 825 "TumblrAuthenticator.c" -} - - -/** - * The authentication pane used when asking service URL, user name and password - * from the user. - */ -GType -publishing_authenticator_shotwell_tumblr_authentication_pane_get_type (void) -{ - static volatile gsize publishing_authenticator_shotwell_tumblr_authentication_pane_type_id__volatile = 0; - if (g_once_init_enter (&publishing_authenticator_shotwell_tumblr_authentication_pane_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (PublishingAuthenticatorShotwellTumblrAuthenticationPaneClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) publishing_authenticator_shotwell_tumblr_authentication_pane_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PublishingAuthenticatorShotwellTumblrAuthenticationPane), 0, (GInstanceInitFunc) publishing_authenticator_shotwell_tumblr_authentication_pane_instance_init, NULL }; - static const GInterfaceInfo spit_publishing_dialog_pane_info = { (GInterfaceInitFunc) publishing_authenticator_shotwell_tumblr_authentication_pane_spit_publishing_dialog_pane_interface_init, (GInterfaceFinalizeFunc) NULL, NULL}; - GType publishing_authenticator_shotwell_tumblr_authentication_pane_type_id; - publishing_authenticator_shotwell_tumblr_authentication_pane_type_id = g_type_register_static (G_TYPE_OBJECT, "PublishingAuthenticatorShotwellTumblrAuthenticationPane", &g_define_type_info, 0); - g_type_add_interface_static (publishing_authenticator_shotwell_tumblr_authentication_pane_type_id, SPIT_PUBLISHING_TYPE_DIALOG_PANE, &spit_publishing_dialog_pane_info); - g_once_init_leave (&publishing_authenticator_shotwell_tumblr_authentication_pane_type_id__volatile, publishing_authenticator_shotwell_tumblr_authentication_pane_type_id); - } - return publishing_authenticator_shotwell_tumblr_authentication_pane_type_id__volatile; -} - - -PublishingAuthenticatorShotwellTumblrAccessTokenFetchTransaction* -publishing_authenticator_shotwell_tumblr_access_token_fetch_transaction_construct (GType object_type, - PublishingRESTSupportOAuth1Session* session, - const gchar* username, - const gchar* password) -{ - PublishingAuthenticatorShotwellTumblrAccessTokenFetchTransaction* self = NULL; - gchar* _tmp0_; - gchar* _tmp1_; -#line 119 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - g_return_val_if_fail (PUBLISHING_REST_SUPPORT_OAUTH1_IS_SESSION (session), NULL); -#line 119 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - g_return_val_if_fail (username != NULL, NULL); -#line 119 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - g_return_val_if_fail (password != NULL, NULL); -#line 120 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - self = (PublishingAuthenticatorShotwellTumblrAccessTokenFetchTransaction*) publishing_rest_support_oauth1_transaction_construct_with_uri (object_type, session, "https://www.tumblr.com/oauth/access_token", PUBLISHING_REST_SUPPORT_HTTP_METHOD_POST); -#line 122 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - _tmp0_ = soup_uri_encode (username, PUBLISHING_AUTHENTICATOR_SHOTWELL_TUMBLR_ENCODE_RFC_3986_EXTRA); -#line 122 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - _tmp1_ = _tmp0_; -#line 122 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - publishing_rest_support_transaction_add_argument (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "x_auth_username", _tmp1_); -#line 122 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - _g_free0 (_tmp1_); -#line 123 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - publishing_rest_support_transaction_add_argument (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "x_auth_password", password); -#line 124 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - publishing_rest_support_transaction_add_argument (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "x_auth_mode", "client_auth"); -#line 119 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - return self; -#line 880 "TumblrAuthenticator.c" -} - - -PublishingAuthenticatorShotwellTumblrAccessTokenFetchTransaction* -publishing_authenticator_shotwell_tumblr_access_token_fetch_transaction_new (PublishingRESTSupportOAuth1Session* session, - const gchar* username, - const gchar* password) -{ -#line 119 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - return publishing_authenticator_shotwell_tumblr_access_token_fetch_transaction_construct (PUBLISHING_AUTHENTICATOR_SHOTWELL_TUMBLR_TYPE_ACCESS_TOKEN_FETCH_TRANSACTION, session, username, password); -#line 891 "TumblrAuthenticator.c" -} - - -static void -publishing_authenticator_shotwell_tumblr_access_token_fetch_transaction_class_init (PublishingAuthenticatorShotwellTumblrAccessTokenFetchTransactionClass * klass) -{ -#line 118 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - publishing_authenticator_shotwell_tumblr_access_token_fetch_transaction_parent_class = g_type_class_peek_parent (klass); -#line 900 "TumblrAuthenticator.c" -} - - -static void -publishing_authenticator_shotwell_tumblr_access_token_fetch_transaction_instance_init (PublishingAuthenticatorShotwellTumblrAccessTokenFetchTransaction * self) -{ -} - - -GType -publishing_authenticator_shotwell_tumblr_access_token_fetch_transaction_get_type (void) -{ - static volatile gsize publishing_authenticator_shotwell_tumblr_access_token_fetch_transaction_type_id__volatile = 0; - if (g_once_init_enter (&publishing_authenticator_shotwell_tumblr_access_token_fetch_transaction_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (PublishingAuthenticatorShotwellTumblrAccessTokenFetchTransactionClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) publishing_authenticator_shotwell_tumblr_access_token_fetch_transaction_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PublishingAuthenticatorShotwellTumblrAccessTokenFetchTransaction), 0, (GInstanceInitFunc) publishing_authenticator_shotwell_tumblr_access_token_fetch_transaction_instance_init, NULL }; - GType publishing_authenticator_shotwell_tumblr_access_token_fetch_transaction_type_id; - publishing_authenticator_shotwell_tumblr_access_token_fetch_transaction_type_id = g_type_register_static (PUBLISHING_REST_SUPPORT_OAUTH1_TYPE_TRANSACTION, "PublishingAuthenticatorShotwellTumblrAccessTokenFetchTransaction", &g_define_type_info, 0); - g_once_init_leave (&publishing_authenticator_shotwell_tumblr_access_token_fetch_transaction_type_id__volatile, publishing_authenticator_shotwell_tumblr_access_token_fetch_transaction_type_id); - } - return publishing_authenticator_shotwell_tumblr_access_token_fetch_transaction_type_id__volatile; -} - - -PublishingAuthenticatorShotwellTumblrTumblr* -publishing_authenticator_shotwell_tumblr_tumblr_construct (GType object_type, - SpitPublishingPluginHost* host) -{ - PublishingAuthenticatorShotwellTumblrTumblr * self = NULL; -#line 129 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - g_return_val_if_fail (SPIT_PUBLISHING_IS_PLUGIN_HOST (host), NULL); -#line 130 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - self = (PublishingAuthenticatorShotwellTumblrTumblr*) publishing_authenticator_shotwell_oauth1_authenticator_construct (object_type, PUBLISHING_AUTHENTICATOR_SHOTWELL_TUMBLR_API_KEY, PUBLISHING_AUTHENTICATOR_SHOTWELL_TUMBLR_API_SECRET, host); -#line 129 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - return self; -#line 935 "TumblrAuthenticator.c" -} - - -PublishingAuthenticatorShotwellTumblrTumblr* -publishing_authenticator_shotwell_tumblr_tumblr_new (SpitPublishingPluginHost* host) -{ -#line 129 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - return publishing_authenticator_shotwell_tumblr_tumblr_construct (PUBLISHING_AUTHENTICATOR_SHOTWELL_TUMBLR_TYPE_TUMBLR, host); -#line 944 "TumblrAuthenticator.c" -} - - -static void -publishing_authenticator_shotwell_tumblr_tumblr_real_authenticate (PublishingAuthenticatorShotwellOAuth1Authenticator* base) -{ - PublishingAuthenticatorShotwellTumblrTumblr * self; -#line 133 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_AUTHENTICATOR_SHOTWELL_TUMBLR_TYPE_TUMBLR, PublishingAuthenticatorShotwellTumblrTumblr); -#line 134 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - if (publishing_authenticator_shotwell_oauth1_authenticator_is_persistent_session_valid (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_AUTHENTICATOR_SHOTWELL_OAUTH1_TYPE_AUTHENTICATOR, PublishingAuthenticatorShotwellOAuth1Authenticator))) { -#line 956 "TumblrAuthenticator.c" - PublishingRESTSupportOAuth1Session* _tmp0_; - gchar* _tmp1_; - gchar* _tmp2_; - gchar* _tmp3_; - gchar* _tmp4_; -#line 135 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - g_debug ("TumblrAuthenticator.vala:135: attempt start: a persistent session is a" \ -"vailable; using it"); -#line 137 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - _tmp0_ = G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_AUTHENTICATOR_SHOTWELL_OAUTH1_TYPE_AUTHENTICATOR, PublishingAuthenticatorShotwellOAuth1Authenticator)->session; -#line 137 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - _tmp1_ = publishing_authenticator_shotwell_oauth1_authenticator_get_persistent_access_phase_token (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_AUTHENTICATOR_SHOTWELL_OAUTH1_TYPE_AUTHENTICATOR, PublishingAuthenticatorShotwellOAuth1Authenticator)); -#line 137 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - _tmp2_ = _tmp1_; -#line 137 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - _tmp3_ = publishing_authenticator_shotwell_oauth1_authenticator_get_persistent_access_phase_token_secret (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_AUTHENTICATOR_SHOTWELL_OAUTH1_TYPE_AUTHENTICATOR, PublishingAuthenticatorShotwellOAuth1Authenticator)); -#line 137 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - _tmp4_ = _tmp3_; -#line 137 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - publishing_rest_support_oauth1_session_authenticate_from_persistent_credentials (_tmp0_, _tmp2_, _tmp4_, ""); -#line 137 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - _g_free0 (_tmp4_); -#line 137 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - _g_free0 (_tmp2_); -#line 980 "TumblrAuthenticator.c" - } else { -#line 140 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - g_debug ("TumblrAuthenticator.vala:140: attempt start: no persistent session ava" \ -"ilable; showing login welcome pane"); -#line 142 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - publishing_authenticator_shotwell_tumblr_tumblr_do_show_authentication_pane (self, PUBLISHING_AUTHENTICATOR_SHOTWELL_TUMBLR_AUTHENTICATION_PANE_MODE_INTRO); -#line 986 "TumblrAuthenticator.c" - } -} - - -static gboolean -publishing_authenticator_shotwell_tumblr_tumblr_real_can_logout (PublishingAuthenticatorShotwellOAuth1Authenticator* base) -{ - PublishingAuthenticatorShotwellTumblrTumblr * self; - gboolean result = FALSE; -#line 146 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_AUTHENTICATOR_SHOTWELL_TUMBLR_TYPE_TUMBLR, PublishingAuthenticatorShotwellTumblrTumblr); -#line 147 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - result = TRUE; -#line 147 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - return result; -#line 1002 "TumblrAuthenticator.c" -} - - -static void -publishing_authenticator_shotwell_tumblr_tumblr_real_logout (PublishingAuthenticatorShotwellOAuth1Authenticator* base) -{ - PublishingAuthenticatorShotwellTumblrTumblr * self; - PublishingRESTSupportOAuth1Session* _tmp0_; -#line 150 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_AUTHENTICATOR_SHOTWELL_TUMBLR_TYPE_TUMBLR, PublishingAuthenticatorShotwellTumblrTumblr); -#line 151 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - _tmp0_ = G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_AUTHENTICATOR_SHOTWELL_OAUTH1_TYPE_AUTHENTICATOR, PublishingAuthenticatorShotwellOAuth1Authenticator)->session; -#line 151 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - publishing_rest_support_oauth1_session_deauthenticate (_tmp0_); -#line 152 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - publishing_authenticator_shotwell_oauth1_authenticator_invalidate_persistent_session (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_AUTHENTICATOR_SHOTWELL_OAUTH1_TYPE_AUTHENTICATOR, PublishingAuthenticatorShotwellOAuth1Authenticator)); -#line 1019 "TumblrAuthenticator.c" -} - - -static void -publishing_authenticator_shotwell_tumblr_tumblr_real_refresh (PublishingAuthenticatorShotwellOAuth1Authenticator* base) -{ - PublishingAuthenticatorShotwellTumblrTumblr * self; -#line 155 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_AUTHENTICATOR_SHOTWELL_TUMBLR_TYPE_TUMBLR, PublishingAuthenticatorShotwellTumblrTumblr); -#line 1029 "TumblrAuthenticator.c" -} - - -/** - * Action that shows the authentication pane. - * - * This action method shows the authentication pane. It is shown at the - * very beginning of the interaction when no persistent parameters are found - * or after a failed login attempt using persisted parameters. It can be - * given a mode flag to specify whether it should be displayed in initial - * mode or in any of the error modes that it supports. - * - * @param mode the mode for the authentication pane - */ -static void -_publishing_authenticator_shotwell_tumblr_tumblr_on_authentication_pane_login_clicked_publishing_authenticator_shotwell_tumblr_authentication_pane_login (PublishingAuthenticatorShotwellTumblrAuthenticationPane* _sender, - const gchar* user, - const gchar* password, - gpointer self) -{ -#line 175 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - publishing_authenticator_shotwell_tumblr_tumblr_on_authentication_pane_login_clicked ((PublishingAuthenticatorShotwellTumblrTumblr*) self, user, password); -#line 1052 "TumblrAuthenticator.c" -} - - -static void -publishing_authenticator_shotwell_tumblr_tumblr_do_show_authentication_pane (PublishingAuthenticatorShotwellTumblrTumblr* self, - PublishingAuthenticatorShotwellTumblrAuthenticationPaneMode mode) -{ - SpitPublishingPluginHost* _tmp0_; - PublishingAuthenticatorShotwellTumblrAuthenticationPane* authentication_pane = NULL; - PublishingAuthenticatorShotwellTumblrAuthenticationPane* _tmp1_; - SpitPublishingPluginHost* _tmp2_; - SpitPublishingPluginHost* _tmp3_; - GtkWidget* _tmp4_; - GtkWidget* _tmp5_; -#line 170 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - g_return_if_fail (PUBLISHING_AUTHENTICATOR_SHOTWELL_TUMBLR_IS_TUMBLR (self)); -#line 171 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - g_debug ("TumblrAuthenticator.vala:171: ACTION: installing authentication pane"); -#line 173 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - _tmp0_ = G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_AUTHENTICATOR_SHOTWELL_OAUTH1_TYPE_AUTHENTICATOR, PublishingAuthenticatorShotwellOAuth1Authenticator)->host; -#line 173 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - spit_publishing_plugin_host_set_service_locked (_tmp0_, FALSE); -#line 174 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - _tmp1_ = publishing_authenticator_shotwell_tumblr_authentication_pane_new (mode); -#line 174 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - authentication_pane = _tmp1_; -#line 175 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - g_signal_connect_object (authentication_pane, "login", (GCallback) _publishing_authenticator_shotwell_tumblr_tumblr_on_authentication_pane_login_clicked_publishing_authenticator_shotwell_tumblr_authentication_pane_login, self, 0); -#line 176 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - _tmp2_ = G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_AUTHENTICATOR_SHOTWELL_OAUTH1_TYPE_AUTHENTICATOR, PublishingAuthenticatorShotwellOAuth1Authenticator)->host; -#line 176 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - spit_publishing_plugin_host_install_dialog_pane (_tmp2_, G_TYPE_CHECK_INSTANCE_CAST (authentication_pane, SPIT_PUBLISHING_TYPE_DIALOG_PANE, SpitPublishingDialogPane), SPIT_PUBLISHING_PLUGIN_HOST_BUTTON_MODE_CLOSE); -#line 177 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - _tmp3_ = G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_AUTHENTICATOR_SHOTWELL_OAUTH1_TYPE_AUTHENTICATOR, PublishingAuthenticatorShotwellOAuth1Authenticator)->host; -#line 177 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - _tmp4_ = publishing_authenticator_shotwell_tumblr_authentication_pane_get_default_widget (authentication_pane); -#line 177 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - _tmp5_ = _tmp4_; -#line 177 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - spit_publishing_plugin_host_set_dialog_default_widget (_tmp3_, _tmp5_); -#line 177 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - _g_object_unref0 (_tmp5_); -#line 170 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - _g_object_unref0 (authentication_pane); -#line 1097 "TumblrAuthenticator.c" -} - - -/** - * Event triggered when the login button in the authentication panel is - * clicked. - * - * This event is triggered when the login button in the authentication - * panel is clicked. It then triggers a network login interaction. - * - * @param username the name of the Tumblr user as entered in the dialog - * @param password the password of the Tumblr as entered in the dialog - */ -static void -publishing_authenticator_shotwell_tumblr_tumblr_on_authentication_pane_login_clicked (PublishingAuthenticatorShotwellTumblrTumblr* self, - const gchar* username, - const gchar* password) -{ -#line 190 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - g_return_if_fail (PUBLISHING_AUTHENTICATOR_SHOTWELL_TUMBLR_IS_TUMBLR (self)); -#line 190 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - g_return_if_fail (username != NULL); -#line 190 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - g_return_if_fail (password != NULL); -#line 191 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - g_debug ("TumblrAuthenticator.vala:191: EVENT: on_authentication_pane_login_clic" \ -"ked"); -#line 193 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - publishing_authenticator_shotwell_tumblr_tumblr_do_network_login (self, username, password); -#line 1126 "TumblrAuthenticator.c" -} - - -/** - * Action to perform a network login to a Tumblr blog. - * - * This action performs a network login a Tumblr blog specified the given user name and password as credentials. - * - * @param username the name of the Tumblr user used to login - * @param password the password of the Tumblr user used to login - */ -static void -_publishing_authenticator_shotwell_tumblr_tumblr_on_auth_request_txn_completed_publishing_rest_support_transaction_completed (PublishingRESTSupportTransaction* _sender, - gpointer self) -{ -#line 210 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - publishing_authenticator_shotwell_tumblr_tumblr_on_auth_request_txn_completed ((PublishingAuthenticatorShotwellTumblrTumblr*) self, _sender); -#line 1144 "TumblrAuthenticator.c" -} - - -static void -_publishing_authenticator_shotwell_tumblr_tumblr_on_auth_request_txn_error_publishing_rest_support_transaction_network_error (PublishingRESTSupportTransaction* _sender, - GError* err, - gpointer self) -{ -#line 211 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - publishing_authenticator_shotwell_tumblr_tumblr_on_auth_request_txn_error ((PublishingAuthenticatorShotwellTumblrTumblr*) self, _sender, err); -#line 1155 "TumblrAuthenticator.c" -} - - -static void -publishing_authenticator_shotwell_tumblr_tumblr_do_network_login (PublishingAuthenticatorShotwellTumblrTumblr* self, - const gchar* username, - const gchar* password) -{ - SpitPublishingPluginHost* _tmp0_; - SpitPublishingPluginHost* _tmp1_; - PublishingAuthenticatorShotwellTumblrAccessTokenFetchTransaction* txn = NULL; - PublishingRESTSupportOAuth1Session* _tmp2_; - PublishingAuthenticatorShotwellTumblrAccessTokenFetchTransaction* _tmp3_; - GError * _inner_error_ = NULL; -#line 204 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - g_return_if_fail (PUBLISHING_AUTHENTICATOR_SHOTWELL_TUMBLR_IS_TUMBLR (self)); -#line 204 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - g_return_if_fail (username != NULL); -#line 204 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - g_return_if_fail (password != NULL); -#line 205 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - g_debug ("TumblrAuthenticator.vala:205: ACTION: logging in"); -#line 206 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - _tmp0_ = G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_AUTHENTICATOR_SHOTWELL_OAUTH1_TYPE_AUTHENTICATOR, PublishingAuthenticatorShotwellOAuth1Authenticator)->host; -#line 206 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - spit_publishing_plugin_host_set_service_locked (_tmp0_, TRUE); -#line 207 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - _tmp1_ = G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_AUTHENTICATOR_SHOTWELL_OAUTH1_TYPE_AUTHENTICATOR, PublishingAuthenticatorShotwellOAuth1Authenticator)->host; -#line 207 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - spit_publishing_plugin_host_install_login_wait_pane (_tmp1_); -#line 209 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - _tmp2_ = G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_AUTHENTICATOR_SHOTWELL_OAUTH1_TYPE_AUTHENTICATOR, PublishingAuthenticatorShotwellOAuth1Authenticator)->session; -#line 209 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - _tmp3_ = publishing_authenticator_shotwell_tumblr_access_token_fetch_transaction_new (_tmp2_, username, password); -#line 209 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - txn = _tmp3_; -#line 210 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (txn, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "completed", (GCallback) _publishing_authenticator_shotwell_tumblr_tumblr_on_auth_request_txn_completed_publishing_rest_support_transaction_completed, self, 0); -#line 211 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (txn, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "network-error", (GCallback) _publishing_authenticator_shotwell_tumblr_tumblr_on_auth_request_txn_error_publishing_rest_support_transaction_network_error, self, 0); -#line 1196 "TumblrAuthenticator.c" - { -#line 214 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - publishing_rest_support_transaction_execute (G_TYPE_CHECK_INSTANCE_CAST (txn, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), &_inner_error_); -#line 214 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 214 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - if (_inner_error_->domain == SPIT_PUBLISHING_PUBLISHING_ERROR) { -#line 1204 "TumblrAuthenticator.c" - goto __catch9_spit_publishing_publishing_error; - } -#line 214 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - _publishing_rest_support_transaction_unref0 (txn); -#line 214 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.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 214 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - g_clear_error (&_inner_error_); -#line 214 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - return; -#line 1215 "TumblrAuthenticator.c" - } - } - goto __finally9; - __catch9_spit_publishing_publishing_error: - { - GError* err = NULL; - SpitPublishingPluginHost* _tmp4_; - GError* _tmp5_; -#line 213 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - err = _inner_error_; -#line 213 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - _inner_error_ = NULL; -#line 216 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - _tmp4_ = G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_AUTHENTICATOR_SHOTWELL_OAUTH1_TYPE_AUTHENTICATOR, PublishingAuthenticatorShotwellOAuth1Authenticator)->host; -#line 216 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - _tmp5_ = err; -#line 216 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - spit_publishing_plugin_host_post_error (_tmp4_, _tmp5_); -#line 213 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - _g_error_free0 (err); -#line 1236 "TumblrAuthenticator.c" - } - __finally9: -#line 213 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 213 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - _publishing_rest_support_transaction_unref0 (txn); -#line 213 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.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 213 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - g_clear_error (&_inner_error_); -#line 213 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - return; -#line 1249 "TumblrAuthenticator.c" - } -#line 204 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - _publishing_rest_support_transaction_unref0 (txn); -#line 1253 "TumblrAuthenticator.c" -} - - -static void -publishing_authenticator_shotwell_tumblr_tumblr_on_auth_request_txn_completed (PublishingAuthenticatorShotwellTumblrTumblr* self, - PublishingRESTSupportTransaction* txn) -{ - guint _tmp0_; - guint _tmp1_; - gchar* _tmp2_; - gchar* _tmp3_; - gchar* _tmp4_; - gchar* _tmp5_; -#line 220 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - g_return_if_fail (PUBLISHING_AUTHENTICATOR_SHOTWELL_TUMBLR_IS_TUMBLR (self)); -#line 220 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - g_return_if_fail (PUBLISHING_REST_SUPPORT_IS_TRANSACTION (txn)); -#line 221 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - g_signal_parse_name ("completed", PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, &_tmp0_, NULL, FALSE); -#line 221 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - g_signal_handlers_disconnect_matched (txn, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp0_, 0, NULL, (GCallback) _publishing_authenticator_shotwell_tumblr_tumblr_on_auth_request_txn_completed_publishing_rest_support_transaction_completed, self); -#line 222 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - g_signal_parse_name ("network-error", PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, &_tmp1_, NULL, FALSE); -#line 222 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - g_signal_handlers_disconnect_matched (txn, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp1_, 0, NULL, (GCallback) _publishing_authenticator_shotwell_tumblr_tumblr_on_auth_request_txn_error_publishing_rest_support_transaction_network_error, self); -#line 224 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - _tmp2_ = publishing_rest_support_transaction_get_response (txn); -#line 224 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - _tmp3_ = _tmp2_; -#line 224 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - g_debug ("TumblrAuthenticator.vala:224: EVENT: OAuth authentication request tran" \ -"saction completed; response = '%s'", _tmp3_); -#line 224 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - _g_free0 (_tmp3_); -#line 227 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - _tmp4_ = publishing_rest_support_transaction_get_response (txn); -#line 227 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - _tmp5_ = _tmp4_; -#line 227 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - publishing_authenticator_shotwell_tumblr_tumblr_do_parse_token_info_from_auth_request (self, _tmp5_); -#line 227 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - _g_free0 (_tmp5_); -#line 1295 "TumblrAuthenticator.c" -} - - -static void -publishing_authenticator_shotwell_tumblr_tumblr_on_auth_request_txn_error (PublishingAuthenticatorShotwellTumblrTumblr* self, - PublishingRESTSupportTransaction* txn, - GError* err) -{ - guint _tmp0_; - guint _tmp1_; - SpitPublishingPluginHost* _tmp2_; -#line 230 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - g_return_if_fail (PUBLISHING_AUTHENTICATOR_SHOTWELL_TUMBLR_IS_TUMBLR (self)); -#line 230 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - g_return_if_fail (PUBLISHING_REST_SUPPORT_IS_TRANSACTION (txn)); -#line 232 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - g_signal_parse_name ("completed", PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, &_tmp0_, NULL, FALSE); -#line 232 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - g_signal_handlers_disconnect_matched (txn, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp0_, 0, NULL, (GCallback) _publishing_authenticator_shotwell_tumblr_tumblr_on_auth_request_txn_completed_publishing_rest_support_transaction_completed, self); -#line 233 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - g_signal_parse_name ("network-error", PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, &_tmp1_, NULL, FALSE); -#line 233 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - g_signal_handlers_disconnect_matched (txn, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp1_, 0, NULL, (GCallback) _publishing_authenticator_shotwell_tumblr_tumblr_on_auth_request_txn_error_publishing_rest_support_transaction_network_error, self); -#line 235 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - g_debug ("TumblrAuthenticator.vala:235: EVENT: OAuth authentication request tran" \ -"saction caused a network error"); -#line 236 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - _tmp2_ = G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_AUTHENTICATOR_SHOTWELL_OAUTH1_TYPE_AUTHENTICATOR, PublishingAuthenticatorShotwellOAuth1Authenticator)->host; -#line 236 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - spit_publishing_plugin_host_post_error (_tmp2_, err); -#line 1325 "TumblrAuthenticator.c" -} - - -static void -publishing_authenticator_shotwell_tumblr_tumblr_do_parse_token_info_from_auth_request (PublishingAuthenticatorShotwellTumblrTumblr* self, - const gchar* response) -{ - gchar* token = NULL; - gchar* token_secret = NULL; - GHashTable* data = NULL; - GHashTable* _tmp0_; - GHashTable* _tmp1_; - gconstpointer _tmp2_ = NULL; - gchar* _tmp3_; - GHashTable* _tmp4_; - gconstpointer _tmp5_ = NULL; - gchar* _tmp6_; - const gchar* _tmp7_; - const gchar* _tmp8_; - gboolean _tmp9_ = FALSE; - const gchar* _tmp10_; -#line 239 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - g_return_if_fail (PUBLISHING_AUTHENTICATOR_SHOTWELL_TUMBLR_IS_TUMBLR (self)); -#line 239 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - g_return_if_fail (response != NULL); -#line 240 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - g_debug ("TumblrAuthenticator.vala:240: ACTION: extracting access phase credenti" \ -"als from '%s'", response); -#line 242 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - token = NULL; -#line 243 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - token_secret = NULL; -#line 245 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - _tmp0_ = soup_form_decode (response); -#line 245 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - data = _tmp0_; -#line 246 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - _tmp1_ = data; -#line 246 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - g_hash_table_lookup_extended (_tmp1_, "oauth_token", NULL, &_tmp2_); -#line 246 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - _g_free0 (token); -#line 246 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - _tmp3_ = g_strdup (_tmp2_); -#line 246 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - token = _tmp3_; -#line 247 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - _tmp4_ = data; -#line 247 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - g_hash_table_lookup_extended (_tmp4_, "oauth_token_secret", NULL, &_tmp5_); -#line 247 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - _g_free0 (token_secret); -#line 247 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - _tmp6_ = g_strdup (_tmp5_); -#line 247 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - token_secret = _tmp6_; -#line 249 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - _tmp7_ = token; -#line 249 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - _tmp8_ = token_secret; -#line 249 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - g_debug ("TumblrAuthenticator.vala:249: access phase credentials: { token = '%s'" \ -"; token_secret = '%s' }", _tmp7_, _tmp8_); -#line 252 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - _tmp10_ = token; -#line 252 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - if (_tmp10_ == NULL) { -#line 252 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - _tmp9_ = TRUE; -#line 1393 "TumblrAuthenticator.c" - } else { - const gchar* _tmp11_; -#line 252 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - _tmp11_ = token_secret; -#line 252 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - _tmp9_ = _tmp11_ == NULL; -#line 1400 "TumblrAuthenticator.c" - } -#line 252 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - if (_tmp9_) { -#line 1404 "TumblrAuthenticator.c" - SpitPublishingPluginHost* _tmp12_; - GError* _tmp13_; - GError* _tmp14_; -#line 253 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - _tmp12_ = G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_AUTHENTICATOR_SHOTWELL_OAUTH1_TYPE_AUTHENTICATOR, PublishingAuthenticatorShotwellOAuth1Authenticator)->host; -#line 253 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - _tmp13_ = g_error_new_literal (SPIT_PUBLISHING_PUBLISHING_ERROR, SPIT_PUBLISHING_PUBLISHING_ERROR_MALFORMED_RESPONSE, "Expected " "access phase credentials to contain token and token secret but at " "least one of these is absent"); -#line 253 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - _tmp14_ = _tmp13_; -#line 253 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - spit_publishing_plugin_host_post_error (_tmp12_, _tmp14_); -#line 253 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - _g_error_free0 (_tmp14_); -#line 256 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - g_signal_emit_by_name (G_TYPE_CHECK_INSTANCE_CAST (self, SPIT_PUBLISHING_TYPE_AUTHENTICATOR, SpitPublishingAuthenticator), "authentication-failed"); -#line 1420 "TumblrAuthenticator.c" - } else { - PublishingRESTSupportOAuth1Session* _tmp15_; - const gchar* _tmp16_; - const gchar* _tmp17_; -#line 258 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - _tmp15_ = G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_AUTHENTICATOR_SHOTWELL_OAUTH1_TYPE_AUTHENTICATOR, PublishingAuthenticatorShotwellOAuth1Authenticator)->session; -#line 258 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - _tmp16_ = token; -#line 258 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - _tmp17_ = token_secret; -#line 258 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - publishing_rest_support_oauth1_session_set_access_phase_credentials (_tmp15_, _tmp16_, _tmp17_, ""); -#line 1433 "TumblrAuthenticator.c" - } -#line 239 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - _g_hash_table_unref0 (data); -#line 239 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - _g_free0 (token_secret); -#line 239 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - _g_free0 (token); -#line 1441 "TumblrAuthenticator.c" -} - - -static void -publishing_authenticator_shotwell_tumblr_tumblr_class_init (PublishingAuthenticatorShotwellTumblrTumblrClass * klass) -{ -#line 128 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - publishing_authenticator_shotwell_tumblr_tumblr_parent_class = g_type_class_peek_parent (klass); -#line 128 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - ((PublishingAuthenticatorShotwellOAuth1AuthenticatorClass *) klass)->authenticate = (void (*) (PublishingAuthenticatorShotwellOAuth1Authenticator *)) publishing_authenticator_shotwell_tumblr_tumblr_real_authenticate; -#line 128 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - ((PublishingAuthenticatorShotwellOAuth1AuthenticatorClass *) klass)->can_logout = (gboolean (*) (PublishingAuthenticatorShotwellOAuth1Authenticator *)) publishing_authenticator_shotwell_tumblr_tumblr_real_can_logout; -#line 128 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - ((PublishingAuthenticatorShotwellOAuth1AuthenticatorClass *) klass)->logout = (void (*) (PublishingAuthenticatorShotwellOAuth1Authenticator *)) publishing_authenticator_shotwell_tumblr_tumblr_real_logout; -#line 128 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - ((PublishingAuthenticatorShotwellOAuth1AuthenticatorClass *) klass)->refresh = (void (*) (PublishingAuthenticatorShotwellOAuth1Authenticator *)) publishing_authenticator_shotwell_tumblr_tumblr_real_refresh; -#line 1458 "TumblrAuthenticator.c" -} - - -static void -publishing_authenticator_shotwell_tumblr_tumblr_instance_init (PublishingAuthenticatorShotwellTumblrTumblr * self) -{ -} - - -GType -publishing_authenticator_shotwell_tumblr_tumblr_get_type (void) -{ - static volatile gsize publishing_authenticator_shotwell_tumblr_tumblr_type_id__volatile = 0; - if (g_once_init_enter (&publishing_authenticator_shotwell_tumblr_tumblr_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (PublishingAuthenticatorShotwellTumblrTumblrClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) publishing_authenticator_shotwell_tumblr_tumblr_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PublishingAuthenticatorShotwellTumblrTumblr), 0, (GInstanceInitFunc) publishing_authenticator_shotwell_tumblr_tumblr_instance_init, NULL }; - GType publishing_authenticator_shotwell_tumblr_tumblr_type_id; - publishing_authenticator_shotwell_tumblr_tumblr_type_id = g_type_register_static (PUBLISHING_AUTHENTICATOR_SHOTWELL_OAUTH1_TYPE_AUTHENTICATOR, "PublishingAuthenticatorShotwellTumblrTumblr", &g_define_type_info, 0); - g_once_init_leave (&publishing_authenticator_shotwell_tumblr_tumblr_type_id__volatile, publishing_authenticator_shotwell_tumblr_tumblr_type_id); - } - return publishing_authenticator_shotwell_tumblr_tumblr_type_id__volatile; -} - - - diff --git a/plugins/common/BuilderPane.c b/plugins/common/BuilderPane.c deleted file mode 100644 index 5bfa676..0000000 --- a/plugins/common/BuilderPane.c +++ /dev/null @@ -1,711 +0,0 @@ -/* BuilderPane.c generated by valac 0.40.4, the Vala compiler - * generated from BuilderPane.vala, do not modify */ - -/* Copyright 2016 Jens Georg - * - * This software is licensed under the GNU LGPL (version 2.1 or later). - * See the COPYING file in this distribution. - */ - - -#include -#include -#include "shotwell-plugin-dev-1.0.h" -#include -#include -#include - - -#define SHOTWELL_PLUGINS_COMMON_TYPE_BUILDER_PANE (shotwell_plugins_common_builder_pane_get_type ()) -#define SHOTWELL_PLUGINS_COMMON_BUILDER_PANE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SHOTWELL_PLUGINS_COMMON_TYPE_BUILDER_PANE, ShotwellPluginsCommonBuilderPane)) -#define SHOTWELL_PLUGINS_COMMON_BUILDER_PANE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), SHOTWELL_PLUGINS_COMMON_TYPE_BUILDER_PANE, ShotwellPluginsCommonBuilderPaneClass)) -#define SHOTWELL_PLUGINS_COMMON_IS_BUILDER_PANE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SHOTWELL_PLUGINS_COMMON_TYPE_BUILDER_PANE)) -#define SHOTWELL_PLUGINS_COMMON_IS_BUILDER_PANE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), SHOTWELL_PLUGINS_COMMON_TYPE_BUILDER_PANE)) -#define SHOTWELL_PLUGINS_COMMON_BUILDER_PANE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), SHOTWELL_PLUGINS_COMMON_TYPE_BUILDER_PANE, ShotwellPluginsCommonBuilderPaneClass)) - -typedef struct _ShotwellPluginsCommonBuilderPane ShotwellPluginsCommonBuilderPane; -typedef struct _ShotwellPluginsCommonBuilderPaneClass ShotwellPluginsCommonBuilderPaneClass; -typedef struct _ShotwellPluginsCommonBuilderPanePrivate ShotwellPluginsCommonBuilderPanePrivate; -enum { - SHOTWELL_PLUGINS_COMMON_BUILDER_PANE_0_PROPERTY, - SHOTWELL_PLUGINS_COMMON_BUILDER_PANE_PREFERRED_GEOMETRY_PROPERTY, - SHOTWELL_PLUGINS_COMMON_BUILDER_PANE_RESOURCE_PATH_PROPERTY, - SHOTWELL_PLUGINS_COMMON_BUILDER_PANE_CONNECT_SIGNALS_PROPERTY, - SHOTWELL_PLUGINS_COMMON_BUILDER_PANE_DEFAULT_ID_PROPERTY, - SHOTWELL_PLUGINS_COMMON_BUILDER_PANE_NUM_PROPERTIES -}; -static GParamSpec* shotwell_plugins_common_builder_pane_properties[SHOTWELL_PLUGINS_COMMON_BUILDER_PANE_NUM_PROPERTIES]; -#define _g_free0(var) (var = (g_free (var), NULL)) -#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL))) - -struct _ShotwellPluginsCommonBuilderPane { - GObject parent_instance; - ShotwellPluginsCommonBuilderPanePrivate * priv; -}; - -struct _ShotwellPluginsCommonBuilderPaneClass { - GObjectClass parent_class; - GtkWidget* (*get_default_widget) (ShotwellPluginsCommonBuilderPane* self); - void (*on_pane_installed) (ShotwellPluginsCommonBuilderPane* self); - void (*on_pane_uninstalled) (ShotwellPluginsCommonBuilderPane* self); -}; - -struct _ShotwellPluginsCommonBuilderPanePrivate { - SpitPublishingDialogPaneGeometryOptions _preferred_geometry; - gchar* _resource_path; - gboolean _connect_signals; - gchar* _default_id; - GtkBuilder* builder; - GtkWidget* content; -}; - - -static gpointer shotwell_plugins_common_builder_pane_parent_class = NULL; -static SpitPublishingDialogPaneIface * shotwell_plugins_common_builder_pane_spit_publishing_dialog_pane_parent_iface = NULL; - -GType shotwell_plugins_common_builder_pane_get_type (void) G_GNUC_CONST; -#define SHOTWELL_PLUGINS_COMMON_BUILDER_PANE_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), SHOTWELL_PLUGINS_COMMON_TYPE_BUILDER_PANE, ShotwellPluginsCommonBuilderPanePrivate)) -static void shotwell_plugins_common_builder_pane_real_constructed (GObject* base); -gchar* shotwell_plugins_common_builder_pane_get_resource_path (ShotwellPluginsCommonBuilderPane* self); -gboolean shotwell_plugins_common_builder_pane_get_connect_signals (ShotwellPluginsCommonBuilderPane* self); -static SpitPublishingDialogPaneGeometryOptions shotwell_plugins_common_builder_pane_real_get_preferred_geometry (SpitPublishingDialogPane* base); -SpitPublishingDialogPaneGeometryOptions shotwell_plugins_common_builder_pane_get_preferred_geometry (ShotwellPluginsCommonBuilderPane* self); -static GtkWidget* shotwell_plugins_common_builder_pane_real_get_widget (SpitPublishingDialogPane* base); -GtkBuilder* shotwell_plugins_common_builder_pane_get_builder (ShotwellPluginsCommonBuilderPane* self); -GtkWidget* shotwell_plugins_common_builder_pane_get_default_widget (ShotwellPluginsCommonBuilderPane* self); -static GtkWidget* shotwell_plugins_common_builder_pane_real_get_default_widget (ShotwellPluginsCommonBuilderPane* self); -gchar* shotwell_plugins_common_builder_pane_get_default_id (ShotwellPluginsCommonBuilderPane* self); -void shotwell_plugins_common_builder_pane_on_pane_installed (ShotwellPluginsCommonBuilderPane* self); -static void shotwell_plugins_common_builder_pane_real_on_pane_installed (ShotwellPluginsCommonBuilderPane* self); -void shotwell_plugins_common_builder_pane_on_pane_uninstalled (ShotwellPluginsCommonBuilderPane* self); -static void shotwell_plugins_common_builder_pane_real_on_pane_uninstalled (ShotwellPluginsCommonBuilderPane* self); -ShotwellPluginsCommonBuilderPane* shotwell_plugins_common_builder_pane_construct (GType object_type); -static void shotwell_plugins_common_builder_pane_set_preferred_geometry (ShotwellPluginsCommonBuilderPane* self, - SpitPublishingDialogPaneGeometryOptions value); -static void shotwell_plugins_common_builder_pane_set_resource_path (ShotwellPluginsCommonBuilderPane* self, - const gchar* value); -static void shotwell_plugins_common_builder_pane_set_connect_signals (ShotwellPluginsCommonBuilderPane* self, - gboolean value); -static void shotwell_plugins_common_builder_pane_set_default_id (ShotwellPluginsCommonBuilderPane* self, - const gchar* value); -static void shotwell_plugins_common_builder_pane_finalize (GObject * obj); -static void _vala_shotwell_plugins_common_builder_pane_get_property (GObject * object, - guint property_id, - GValue * value, - GParamSpec * pspec); -static void _vala_shotwell_plugins_common_builder_pane_set_property (GObject * object, - guint property_id, - const GValue * value, - GParamSpec * pspec); - - -static gpointer -_g_object_ref0 (gpointer self) -{ -#line 32 "/home/jens/Source/shotwell/plugins/common/BuilderPane.vala" - return self ? g_object_ref (self) : NULL; -#line 108 "BuilderPane.c" -} - - -static void -shotwell_plugins_common_builder_pane_real_constructed (GObject* base) -{ - ShotwellPluginsCommonBuilderPane * self; - gchar* _tmp0_; - gchar* _tmp1_; - gchar* _tmp2_; - gchar* _tmp3_; - gchar* _tmp4_; - gchar* _tmp5_; - GtkBuilder* _tmp6_; - gboolean _tmp7_; - GtkBuilder* _tmp9_; - GObject* _tmp10_; - GtkWidget* _tmp11_; - GtkWidget* _tmp12_; - GtkContainer* _tmp13_; - GtkContainer* _tmp14_; -#line 22 "/home/jens/Source/shotwell/plugins/common/BuilderPane.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, SHOTWELL_PLUGINS_COMMON_TYPE_BUILDER_PANE, ShotwellPluginsCommonBuilderPane); -#line 23 "/home/jens/Source/shotwell/plugins/common/BuilderPane.vala" - G_OBJECT_CLASS (shotwell_plugins_common_builder_pane_parent_class)->constructed (G_TYPE_CHECK_INSTANCE_CAST (self, G_TYPE_OBJECT, GObject)); -#line 25 "/home/jens/Source/shotwell/plugins/common/BuilderPane.vala" - _tmp0_ = shotwell_plugins_common_builder_pane_get_resource_path (self); -#line 25 "/home/jens/Source/shotwell/plugins/common/BuilderPane.vala" - _tmp1_ = _tmp0_; -#line 25 "/home/jens/Source/shotwell/plugins/common/BuilderPane.vala" - _tmp2_ = _tmp1_; -#line 25 "/home/jens/Source/shotwell/plugins/common/BuilderPane.vala" - g_debug ("BuilderPane.vala:25: Adding new builder from path %s", _tmp2_); -#line 25 "/home/jens/Source/shotwell/plugins/common/BuilderPane.vala" - _g_free0 (_tmp2_); -#line 27 "/home/jens/Source/shotwell/plugins/common/BuilderPane.vala" - _tmp3_ = shotwell_plugins_common_builder_pane_get_resource_path (self); -#line 27 "/home/jens/Source/shotwell/plugins/common/BuilderPane.vala" - _tmp4_ = _tmp3_; -#line 27 "/home/jens/Source/shotwell/plugins/common/BuilderPane.vala" - _tmp5_ = _tmp4_; -#line 27 "/home/jens/Source/shotwell/plugins/common/BuilderPane.vala" - _tmp6_ = gtk_builder_new_from_resource (_tmp5_); -#line 27 "/home/jens/Source/shotwell/plugins/common/BuilderPane.vala" - _g_object_unref0 (self->priv->builder); -#line 27 "/home/jens/Source/shotwell/plugins/common/BuilderPane.vala" - self->priv->builder = _tmp6_; -#line 27 "/home/jens/Source/shotwell/plugins/common/BuilderPane.vala" - _g_free0 (_tmp5_); -#line 28 "/home/jens/Source/shotwell/plugins/common/BuilderPane.vala" - _tmp7_ = self->priv->_connect_signals; -#line 28 "/home/jens/Source/shotwell/plugins/common/BuilderPane.vala" - if (_tmp7_) { -#line 162 "BuilderPane.c" - GtkBuilder* _tmp8_; -#line 29 "/home/jens/Source/shotwell/plugins/common/BuilderPane.vala" - _tmp8_ = self->priv->builder; -#line 29 "/home/jens/Source/shotwell/plugins/common/BuilderPane.vala" - gtk_builder_connect_signals (_tmp8_, NULL); -#line 168 "BuilderPane.c" - } -#line 32 "/home/jens/Source/shotwell/plugins/common/BuilderPane.vala" - _tmp9_ = self->priv->builder; -#line 32 "/home/jens/Source/shotwell/plugins/common/BuilderPane.vala" - _tmp10_ = gtk_builder_get_object (_tmp9_, "content"); -#line 32 "/home/jens/Source/shotwell/plugins/common/BuilderPane.vala" - _tmp11_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp10_, gtk_widget_get_type ()) ? ((GtkWidget*) _tmp10_) : NULL); -#line 32 "/home/jens/Source/shotwell/plugins/common/BuilderPane.vala" - _g_object_unref0 (self->priv->content); -#line 32 "/home/jens/Source/shotwell/plugins/common/BuilderPane.vala" - self->priv->content = _tmp11_; -#line 35 "/home/jens/Source/shotwell/plugins/common/BuilderPane.vala" - _tmp12_ = self->priv->content; -#line 35 "/home/jens/Source/shotwell/plugins/common/BuilderPane.vala" - _tmp13_ = gtk_widget_get_parent (_tmp12_); -#line 35 "/home/jens/Source/shotwell/plugins/common/BuilderPane.vala" - _tmp14_ = _tmp13_; -#line 35 "/home/jens/Source/shotwell/plugins/common/BuilderPane.vala" - if (_tmp14_ != NULL) { -#line 188 "BuilderPane.c" - GtkWidget* _tmp15_; - GtkContainer* _tmp16_; - GtkContainer* _tmp17_; - GtkWidget* _tmp18_; -#line 36 "/home/jens/Source/shotwell/plugins/common/BuilderPane.vala" - _tmp15_ = self->priv->content; -#line 36 "/home/jens/Source/shotwell/plugins/common/BuilderPane.vala" - _tmp16_ = gtk_widget_get_parent (_tmp15_); -#line 36 "/home/jens/Source/shotwell/plugins/common/BuilderPane.vala" - _tmp17_ = _tmp16_; -#line 36 "/home/jens/Source/shotwell/plugins/common/BuilderPane.vala" - _tmp18_ = self->priv->content; -#line 36 "/home/jens/Source/shotwell/plugins/common/BuilderPane.vala" - gtk_container_remove (_tmp17_, _tmp18_); -#line 203 "BuilderPane.c" - } -} - - -static SpitPublishingDialogPaneGeometryOptions -shotwell_plugins_common_builder_pane_real_get_preferred_geometry (SpitPublishingDialogPane* base) -{ - ShotwellPluginsCommonBuilderPane * self; - SpitPublishingDialogPaneGeometryOptions result = 0; - SpitPublishingDialogPaneGeometryOptions _tmp0_; -#line 40 "/home/jens/Source/shotwell/plugins/common/BuilderPane.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, SHOTWELL_PLUGINS_COMMON_TYPE_BUILDER_PANE, ShotwellPluginsCommonBuilderPane); -#line 41 "/home/jens/Source/shotwell/plugins/common/BuilderPane.vala" - _tmp0_ = self->priv->_preferred_geometry; -#line 41 "/home/jens/Source/shotwell/plugins/common/BuilderPane.vala" - result = _tmp0_; -#line 41 "/home/jens/Source/shotwell/plugins/common/BuilderPane.vala" - return result; -#line 222 "BuilderPane.c" -} - - -static GtkWidget* -shotwell_plugins_common_builder_pane_real_get_widget (SpitPublishingDialogPane* base) -{ - ShotwellPluginsCommonBuilderPane * self; - GtkWidget* result = NULL; - GtkWidget* _tmp0_; - GtkWidget* _tmp1_; -#line 44 "/home/jens/Source/shotwell/plugins/common/BuilderPane.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, SHOTWELL_PLUGINS_COMMON_TYPE_BUILDER_PANE, ShotwellPluginsCommonBuilderPane); -#line 45 "/home/jens/Source/shotwell/plugins/common/BuilderPane.vala" - _tmp0_ = self->priv->content; -#line 45 "/home/jens/Source/shotwell/plugins/common/BuilderPane.vala" - _tmp1_ = _g_object_ref0 (_tmp0_); -#line 45 "/home/jens/Source/shotwell/plugins/common/BuilderPane.vala" - result = _tmp1_; -#line 45 "/home/jens/Source/shotwell/plugins/common/BuilderPane.vala" - return result; -#line 243 "BuilderPane.c" -} - - -GtkBuilder* -shotwell_plugins_common_builder_pane_get_builder (ShotwellPluginsCommonBuilderPane* self) -{ - GtkBuilder* result = NULL; - GtkBuilder* _tmp0_; - GtkBuilder* _tmp1_; -#line 48 "/home/jens/Source/shotwell/plugins/common/BuilderPane.vala" - g_return_val_if_fail (SHOTWELL_PLUGINS_COMMON_IS_BUILDER_PANE (self), NULL); -#line 49 "/home/jens/Source/shotwell/plugins/common/BuilderPane.vala" - _tmp0_ = self->priv->builder; -#line 49 "/home/jens/Source/shotwell/plugins/common/BuilderPane.vala" - _tmp1_ = _g_object_ref0 (_tmp0_); -#line 49 "/home/jens/Source/shotwell/plugins/common/BuilderPane.vala" - result = _tmp1_; -#line 49 "/home/jens/Source/shotwell/plugins/common/BuilderPane.vala" - return result; -#line 263 "BuilderPane.c" -} - - -static GtkWidget* -shotwell_plugins_common_builder_pane_real_get_default_widget (ShotwellPluginsCommonBuilderPane* self) -{ - GtkWidget* result = NULL; - GtkBuilder* _tmp0_; - GtkBuilder* _tmp1_; - gchar* _tmp2_; - gchar* _tmp3_; - gchar* _tmp4_; - GObject* _tmp5_; - GtkWidget* _tmp6_; - GtkWidget* _tmp7_; -#line 53 "/home/jens/Source/shotwell/plugins/common/BuilderPane.vala" - _tmp0_ = shotwell_plugins_common_builder_pane_get_builder (self); -#line 53 "/home/jens/Source/shotwell/plugins/common/BuilderPane.vala" - _tmp1_ = _tmp0_; -#line 53 "/home/jens/Source/shotwell/plugins/common/BuilderPane.vala" - _tmp2_ = shotwell_plugins_common_builder_pane_get_default_id (self); -#line 53 "/home/jens/Source/shotwell/plugins/common/BuilderPane.vala" - _tmp3_ = _tmp2_; -#line 53 "/home/jens/Source/shotwell/plugins/common/BuilderPane.vala" - _tmp4_ = _tmp3_; -#line 53 "/home/jens/Source/shotwell/plugins/common/BuilderPane.vala" - _tmp5_ = gtk_builder_get_object (_tmp1_, _tmp4_); -#line 53 "/home/jens/Source/shotwell/plugins/common/BuilderPane.vala" - _tmp6_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp5_, gtk_widget_get_type ()) ? ((GtkWidget*) _tmp5_) : NULL); -#line 53 "/home/jens/Source/shotwell/plugins/common/BuilderPane.vala" - _tmp7_ = _tmp6_; -#line 53 "/home/jens/Source/shotwell/plugins/common/BuilderPane.vala" - _g_free0 (_tmp4_); -#line 53 "/home/jens/Source/shotwell/plugins/common/BuilderPane.vala" - _g_object_unref0 (_tmp1_); -#line 53 "/home/jens/Source/shotwell/plugins/common/BuilderPane.vala" - result = _tmp7_; -#line 53 "/home/jens/Source/shotwell/plugins/common/BuilderPane.vala" - return result; -#line 303 "BuilderPane.c" -} - - -GtkWidget* -shotwell_plugins_common_builder_pane_get_default_widget (ShotwellPluginsCommonBuilderPane* self) -{ -#line 52 "/home/jens/Source/shotwell/plugins/common/BuilderPane.vala" - g_return_val_if_fail (SHOTWELL_PLUGINS_COMMON_IS_BUILDER_PANE (self), NULL); -#line 52 "/home/jens/Source/shotwell/plugins/common/BuilderPane.vala" - return SHOTWELL_PLUGINS_COMMON_BUILDER_PANE_GET_CLASS (self)->get_default_widget (self); -#line 314 "BuilderPane.c" -} - - -static void -shotwell_plugins_common_builder_pane_real_on_pane_installed (ShotwellPluginsCommonBuilderPane* self) -{ -} - - -void -shotwell_plugins_common_builder_pane_on_pane_installed (ShotwellPluginsCommonBuilderPane* self) -{ -#line 56 "/home/jens/Source/shotwell/plugins/common/BuilderPane.vala" - g_return_if_fail (SHOTWELL_PLUGINS_COMMON_IS_BUILDER_PANE (self)); -#line 56 "/home/jens/Source/shotwell/plugins/common/BuilderPane.vala" - SHOTWELL_PLUGINS_COMMON_BUILDER_PANE_GET_CLASS (self)->on_pane_installed (self); -#line 331 "BuilderPane.c" -} - - -static void -shotwell_plugins_common_builder_pane_real_on_pane_uninstalled (ShotwellPluginsCommonBuilderPane* self) -{ -} - - -void -shotwell_plugins_common_builder_pane_on_pane_uninstalled (ShotwellPluginsCommonBuilderPane* self) -{ -#line 58 "/home/jens/Source/shotwell/plugins/common/BuilderPane.vala" - g_return_if_fail (SHOTWELL_PLUGINS_COMMON_IS_BUILDER_PANE (self)); -#line 58 "/home/jens/Source/shotwell/plugins/common/BuilderPane.vala" - SHOTWELL_PLUGINS_COMMON_BUILDER_PANE_GET_CLASS (self)->on_pane_uninstalled (self); -#line 348 "BuilderPane.c" -} - - -ShotwellPluginsCommonBuilderPane* -shotwell_plugins_common_builder_pane_construct (GType object_type) -{ - ShotwellPluginsCommonBuilderPane * self = NULL; -#line 9 "/home/jens/Source/shotwell/plugins/common/BuilderPane.vala" - self = (ShotwellPluginsCommonBuilderPane*) g_object_new (object_type, NULL); -#line 9 "/home/jens/Source/shotwell/plugins/common/BuilderPane.vala" - return self; -#line 360 "BuilderPane.c" -} - - -SpitPublishingDialogPaneGeometryOptions -shotwell_plugins_common_builder_pane_get_preferred_geometry (ShotwellPluginsCommonBuilderPane* self) -{ - SpitPublishingDialogPaneGeometryOptions result; - SpitPublishingDialogPaneGeometryOptions _tmp0_; -#line 11 "/home/jens/Source/shotwell/plugins/common/BuilderPane.vala" - g_return_val_if_fail (SHOTWELL_PLUGINS_COMMON_IS_BUILDER_PANE (self), 0); -#line 11 "/home/jens/Source/shotwell/plugins/common/BuilderPane.vala" - _tmp0_ = self->priv->_preferred_geometry; -#line 11 "/home/jens/Source/shotwell/plugins/common/BuilderPane.vala" - result = _tmp0_; -#line 11 "/home/jens/Source/shotwell/plugins/common/BuilderPane.vala" - return result; -#line 377 "BuilderPane.c" -} - - -static void -shotwell_plugins_common_builder_pane_set_preferred_geometry (ShotwellPluginsCommonBuilderPane* self, - SpitPublishingDialogPaneGeometryOptions value) -{ -#line 11 "/home/jens/Source/shotwell/plugins/common/BuilderPane.vala" - g_return_if_fail (SHOTWELL_PLUGINS_COMMON_IS_BUILDER_PANE (self)); -#line 11 "/home/jens/Source/shotwell/plugins/common/BuilderPane.vala" - if (shotwell_plugins_common_builder_pane_get_preferred_geometry (self) != value) { -#line 11 "/home/jens/Source/shotwell/plugins/common/BuilderPane.vala" - self->priv->_preferred_geometry = value; -#line 11 "/home/jens/Source/shotwell/plugins/common/BuilderPane.vala" - g_object_notify_by_pspec ((GObject *) self, shotwell_plugins_common_builder_pane_properties[SHOTWELL_PLUGINS_COMMON_BUILDER_PANE_PREFERRED_GEOMETRY_PROPERTY]); -#line 393 "BuilderPane.c" - } -} - - -gchar* -shotwell_plugins_common_builder_pane_get_resource_path (ShotwellPluginsCommonBuilderPane* self) -{ - gchar* result; - const gchar* _tmp0_; - gchar* _tmp1_; -#line 13 "/home/jens/Source/shotwell/plugins/common/BuilderPane.vala" - g_return_val_if_fail (SHOTWELL_PLUGINS_COMMON_IS_BUILDER_PANE (self), NULL); -#line 13 "/home/jens/Source/shotwell/plugins/common/BuilderPane.vala" - _tmp0_ = self->priv->_resource_path; -#line 13 "/home/jens/Source/shotwell/plugins/common/BuilderPane.vala" - _tmp1_ = g_strdup (_tmp0_); -#line 13 "/home/jens/Source/shotwell/plugins/common/BuilderPane.vala" - result = _tmp1_; -#line 13 "/home/jens/Source/shotwell/plugins/common/BuilderPane.vala" - return result; -#line 414 "BuilderPane.c" -} - - -static void -shotwell_plugins_common_builder_pane_set_resource_path (ShotwellPluginsCommonBuilderPane* self, - const gchar* value) -{ -#line 13 "/home/jens/Source/shotwell/plugins/common/BuilderPane.vala" - g_return_if_fail (SHOTWELL_PLUGINS_COMMON_IS_BUILDER_PANE (self)); -#line 13 "/home/jens/Source/shotwell/plugins/common/BuilderPane.vala" - if (g_strcmp0 (value, shotwell_plugins_common_builder_pane_get_resource_path (self)) != 0) { -#line 426 "BuilderPane.c" - gchar* _tmp0_; -#line 13 "/home/jens/Source/shotwell/plugins/common/BuilderPane.vala" - _tmp0_ = g_strdup (value); -#line 13 "/home/jens/Source/shotwell/plugins/common/BuilderPane.vala" - _g_free0 (self->priv->_resource_path); -#line 13 "/home/jens/Source/shotwell/plugins/common/BuilderPane.vala" - self->priv->_resource_path = _tmp0_; -#line 13 "/home/jens/Source/shotwell/plugins/common/BuilderPane.vala" - g_object_notify_by_pspec ((GObject *) self, shotwell_plugins_common_builder_pane_properties[SHOTWELL_PLUGINS_COMMON_BUILDER_PANE_RESOURCE_PATH_PROPERTY]); -#line 436 "BuilderPane.c" - } -} - - -gboolean -shotwell_plugins_common_builder_pane_get_connect_signals (ShotwellPluginsCommonBuilderPane* self) -{ - gboolean result; - gboolean _tmp0_; -#line 14 "/home/jens/Source/shotwell/plugins/common/BuilderPane.vala" - g_return_val_if_fail (SHOTWELL_PLUGINS_COMMON_IS_BUILDER_PANE (self), FALSE); -#line 14 "/home/jens/Source/shotwell/plugins/common/BuilderPane.vala" - _tmp0_ = self->priv->_connect_signals; -#line 14 "/home/jens/Source/shotwell/plugins/common/BuilderPane.vala" - result = _tmp0_; -#line 14 "/home/jens/Source/shotwell/plugins/common/BuilderPane.vala" - return result; -#line 454 "BuilderPane.c" -} - - -static void -shotwell_plugins_common_builder_pane_set_connect_signals (ShotwellPluginsCommonBuilderPane* self, - gboolean value) -{ -#line 14 "/home/jens/Source/shotwell/plugins/common/BuilderPane.vala" - g_return_if_fail (SHOTWELL_PLUGINS_COMMON_IS_BUILDER_PANE (self)); -#line 14 "/home/jens/Source/shotwell/plugins/common/BuilderPane.vala" - if (shotwell_plugins_common_builder_pane_get_connect_signals (self) != value) { -#line 14 "/home/jens/Source/shotwell/plugins/common/BuilderPane.vala" - self->priv->_connect_signals = value; -#line 14 "/home/jens/Source/shotwell/plugins/common/BuilderPane.vala" - g_object_notify_by_pspec ((GObject *) self, shotwell_plugins_common_builder_pane_properties[SHOTWELL_PLUGINS_COMMON_BUILDER_PANE_CONNECT_SIGNALS_PROPERTY]); -#line 470 "BuilderPane.c" - } -} - - -gchar* -shotwell_plugins_common_builder_pane_get_default_id (ShotwellPluginsCommonBuilderPane* self) -{ - gchar* result; - const gchar* _tmp0_; - gchar* _tmp1_; -#line 16 "/home/jens/Source/shotwell/plugins/common/BuilderPane.vala" - g_return_val_if_fail (SHOTWELL_PLUGINS_COMMON_IS_BUILDER_PANE (self), NULL); -#line 16 "/home/jens/Source/shotwell/plugins/common/BuilderPane.vala" - _tmp0_ = self->priv->_default_id; -#line 16 "/home/jens/Source/shotwell/plugins/common/BuilderPane.vala" - _tmp1_ = g_strdup (_tmp0_); -#line 16 "/home/jens/Source/shotwell/plugins/common/BuilderPane.vala" - result = _tmp1_; -#line 16 "/home/jens/Source/shotwell/plugins/common/BuilderPane.vala" - return result; -#line 491 "BuilderPane.c" -} - - -static void -shotwell_plugins_common_builder_pane_set_default_id (ShotwellPluginsCommonBuilderPane* self, - const gchar* value) -{ -#line 16 "/home/jens/Source/shotwell/plugins/common/BuilderPane.vala" - g_return_if_fail (SHOTWELL_PLUGINS_COMMON_IS_BUILDER_PANE (self)); -#line 16 "/home/jens/Source/shotwell/plugins/common/BuilderPane.vala" - if (g_strcmp0 (value, shotwell_plugins_common_builder_pane_get_default_id (self)) != 0) { -#line 503 "BuilderPane.c" - gchar* _tmp0_; -#line 16 "/home/jens/Source/shotwell/plugins/common/BuilderPane.vala" - _tmp0_ = g_strdup (value); -#line 16 "/home/jens/Source/shotwell/plugins/common/BuilderPane.vala" - _g_free0 (self->priv->_default_id); -#line 16 "/home/jens/Source/shotwell/plugins/common/BuilderPane.vala" - self->priv->_default_id = _tmp0_; -#line 16 "/home/jens/Source/shotwell/plugins/common/BuilderPane.vala" - g_object_notify_by_pspec ((GObject *) self, shotwell_plugins_common_builder_pane_properties[SHOTWELL_PLUGINS_COMMON_BUILDER_PANE_DEFAULT_ID_PROPERTY]); -#line 513 "BuilderPane.c" - } -} - - -static void -shotwell_plugins_common_builder_pane_class_init (ShotwellPluginsCommonBuilderPaneClass * klass) -{ -#line 9 "/home/jens/Source/shotwell/plugins/common/BuilderPane.vala" - shotwell_plugins_common_builder_pane_parent_class = g_type_class_peek_parent (klass); -#line 9 "/home/jens/Source/shotwell/plugins/common/BuilderPane.vala" - g_type_class_add_private (klass, sizeof (ShotwellPluginsCommonBuilderPanePrivate)); -#line 9 "/home/jens/Source/shotwell/plugins/common/BuilderPane.vala" - ((GObjectClass *) klass)->constructed = (void (*) (GObject *)) shotwell_plugins_common_builder_pane_real_constructed; -#line 9 "/home/jens/Source/shotwell/plugins/common/BuilderPane.vala" - ((ShotwellPluginsCommonBuilderPaneClass *) klass)->get_default_widget = (GtkWidget* (*) (ShotwellPluginsCommonBuilderPane *)) shotwell_plugins_common_builder_pane_real_get_default_widget; -#line 9 "/home/jens/Source/shotwell/plugins/common/BuilderPane.vala" - ((ShotwellPluginsCommonBuilderPaneClass *) klass)->on_pane_installed = (void (*) (ShotwellPluginsCommonBuilderPane *)) shotwell_plugins_common_builder_pane_real_on_pane_installed; -#line 9 "/home/jens/Source/shotwell/plugins/common/BuilderPane.vala" - ((ShotwellPluginsCommonBuilderPaneClass *) klass)->on_pane_uninstalled = (void (*) (ShotwellPluginsCommonBuilderPane *)) shotwell_plugins_common_builder_pane_real_on_pane_uninstalled; -#line 9 "/home/jens/Source/shotwell/plugins/common/BuilderPane.vala" - G_OBJECT_CLASS (klass)->get_property = _vala_shotwell_plugins_common_builder_pane_get_property; -#line 9 "/home/jens/Source/shotwell/plugins/common/BuilderPane.vala" - G_OBJECT_CLASS (klass)->set_property = _vala_shotwell_plugins_common_builder_pane_set_property; -#line 9 "/home/jens/Source/shotwell/plugins/common/BuilderPane.vala" - G_OBJECT_CLASS (klass)->finalize = shotwell_plugins_common_builder_pane_finalize; -#line 9 "/home/jens/Source/shotwell/plugins/common/BuilderPane.vala" - g_object_class_install_property (G_OBJECT_CLASS (klass), SHOTWELL_PLUGINS_COMMON_BUILDER_PANE_PREFERRED_GEOMETRY_PROPERTY, shotwell_plugins_common_builder_pane_properties[SHOTWELL_PLUGINS_COMMON_BUILDER_PANE_PREFERRED_GEOMETRY_PROPERTY] = g_param_spec_enum ("preferred-geometry", "preferred-geometry", "preferred-geometry", SPIT_PUBLISHING_DIALOG_PANE_TYPE_GEOMETRY_OPTIONS, SPIT_PUBLISHING_DIALOG_PANE_GEOMETRY_OPTIONS_NONE, G_PARAM_STATIC_STRINGS | G_PARAM_READABLE | G_PARAM_WRITABLE | G_PARAM_CONSTRUCT_ONLY)); -#line 9 "/home/jens/Source/shotwell/plugins/common/BuilderPane.vala" - g_object_class_install_property (G_OBJECT_CLASS (klass), SHOTWELL_PLUGINS_COMMON_BUILDER_PANE_RESOURCE_PATH_PROPERTY, shotwell_plugins_common_builder_pane_properties[SHOTWELL_PLUGINS_COMMON_BUILDER_PANE_RESOURCE_PATH_PROPERTY] = g_param_spec_string ("resource-path", "resource-path", "resource-path", NULL, G_PARAM_STATIC_STRINGS | G_PARAM_READABLE | G_PARAM_WRITABLE | G_PARAM_CONSTRUCT_ONLY)); -#line 9 "/home/jens/Source/shotwell/plugins/common/BuilderPane.vala" - g_object_class_install_property (G_OBJECT_CLASS (klass), SHOTWELL_PLUGINS_COMMON_BUILDER_PANE_CONNECT_SIGNALS_PROPERTY, shotwell_plugins_common_builder_pane_properties[SHOTWELL_PLUGINS_COMMON_BUILDER_PANE_CONNECT_SIGNALS_PROPERTY] = g_param_spec_boolean ("connect-signals", "connect-signals", "connect-signals", FALSE, G_PARAM_STATIC_STRINGS | G_PARAM_READABLE | G_PARAM_WRITABLE | G_PARAM_CONSTRUCT_ONLY)); -#line 9 "/home/jens/Source/shotwell/plugins/common/BuilderPane.vala" - g_object_class_install_property (G_OBJECT_CLASS (klass), SHOTWELL_PLUGINS_COMMON_BUILDER_PANE_DEFAULT_ID_PROPERTY, shotwell_plugins_common_builder_pane_properties[SHOTWELL_PLUGINS_COMMON_BUILDER_PANE_DEFAULT_ID_PROPERTY] = g_param_spec_string ("default-id", "default-id", "default-id", NULL, G_PARAM_STATIC_STRINGS | G_PARAM_READABLE | G_PARAM_WRITABLE | G_PARAM_CONSTRUCT_ONLY)); -#line 547 "BuilderPane.c" -} - - -static void -shotwell_plugins_common_builder_pane_spit_publishing_dialog_pane_interface_init (SpitPublishingDialogPaneIface * iface) -{ -#line 9 "/home/jens/Source/shotwell/plugins/common/BuilderPane.vala" - shotwell_plugins_common_builder_pane_spit_publishing_dialog_pane_parent_iface = g_type_interface_peek_parent (iface); -#line 9 "/home/jens/Source/shotwell/plugins/common/BuilderPane.vala" - iface->get_preferred_geometry = (SpitPublishingDialogPaneGeometryOptions (*) (SpitPublishingDialogPane *)) shotwell_plugins_common_builder_pane_real_get_preferred_geometry; -#line 9 "/home/jens/Source/shotwell/plugins/common/BuilderPane.vala" - iface->get_widget = (GtkWidget* (*) (SpitPublishingDialogPane *)) shotwell_plugins_common_builder_pane_real_get_widget; -#line 9 "/home/jens/Source/shotwell/plugins/common/BuilderPane.vala" - iface->on_pane_installed = (void (*) (SpitPublishingDialogPane *)) shotwell_plugins_common_builder_pane_on_pane_installed; -#line 9 "/home/jens/Source/shotwell/plugins/common/BuilderPane.vala" - iface->on_pane_uninstalled = (void (*) (SpitPublishingDialogPane *)) shotwell_plugins_common_builder_pane_on_pane_uninstalled; -#line 564 "BuilderPane.c" -} - - -static void -shotwell_plugins_common_builder_pane_instance_init (ShotwellPluginsCommonBuilderPane * self) -{ - gchar* _tmp0_; -#line 9 "/home/jens/Source/shotwell/plugins/common/BuilderPane.vala" - self->priv = SHOTWELL_PLUGINS_COMMON_BUILDER_PANE_GET_PRIVATE (self); -#line 10 "/home/jens/Source/shotwell/plugins/common/BuilderPane.vala" - self->priv->_preferred_geometry = SPIT_PUBLISHING_DIALOG_PANE_GEOMETRY_OPTIONS_NONE; -#line 14 "/home/jens/Source/shotwell/plugins/common/BuilderPane.vala" - self->priv->_connect_signals = FALSE; -#line 15 "/home/jens/Source/shotwell/plugins/common/BuilderPane.vala" - _tmp0_ = g_strdup ("default"); -#line 15 "/home/jens/Source/shotwell/plugins/common/BuilderPane.vala" - self->priv->_default_id = _tmp0_; -#line 582 "BuilderPane.c" -} - - -static void -shotwell_plugins_common_builder_pane_finalize (GObject * obj) -{ - ShotwellPluginsCommonBuilderPane * self; -#line 9 "/home/jens/Source/shotwell/plugins/common/BuilderPane.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, SHOTWELL_PLUGINS_COMMON_TYPE_BUILDER_PANE, ShotwellPluginsCommonBuilderPane); -#line 13 "/home/jens/Source/shotwell/plugins/common/BuilderPane.vala" - _g_free0 (self->priv->_resource_path); -#line 15 "/home/jens/Source/shotwell/plugins/common/BuilderPane.vala" - _g_free0 (self->priv->_default_id); -#line 19 "/home/jens/Source/shotwell/plugins/common/BuilderPane.vala" - _g_object_unref0 (self->priv->builder); -#line 20 "/home/jens/Source/shotwell/plugins/common/BuilderPane.vala" - _g_object_unref0 (self->priv->content); -#line 9 "/home/jens/Source/shotwell/plugins/common/BuilderPane.vala" - G_OBJECT_CLASS (shotwell_plugins_common_builder_pane_parent_class)->finalize (obj); -#line 602 "BuilderPane.c" -} - - -GType -shotwell_plugins_common_builder_pane_get_type (void) -{ - static volatile gsize shotwell_plugins_common_builder_pane_type_id__volatile = 0; - if (g_once_init_enter (&shotwell_plugins_common_builder_pane_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (ShotwellPluginsCommonBuilderPaneClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) shotwell_plugins_common_builder_pane_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (ShotwellPluginsCommonBuilderPane), 0, (GInstanceInitFunc) shotwell_plugins_common_builder_pane_instance_init, NULL }; - static const GInterfaceInfo spit_publishing_dialog_pane_info = { (GInterfaceInitFunc) shotwell_plugins_common_builder_pane_spit_publishing_dialog_pane_interface_init, (GInterfaceFinalizeFunc) NULL, NULL}; - GType shotwell_plugins_common_builder_pane_type_id; - shotwell_plugins_common_builder_pane_type_id = g_type_register_static (G_TYPE_OBJECT, "ShotwellPluginsCommonBuilderPane", &g_define_type_info, G_TYPE_FLAG_ABSTRACT); - g_type_add_interface_static (shotwell_plugins_common_builder_pane_type_id, SPIT_PUBLISHING_TYPE_DIALOG_PANE, &spit_publishing_dialog_pane_info); - g_once_init_leave (&shotwell_plugins_common_builder_pane_type_id__volatile, shotwell_plugins_common_builder_pane_type_id); - } - return shotwell_plugins_common_builder_pane_type_id__volatile; -} - - -static void -_vala_shotwell_plugins_common_builder_pane_get_property (GObject * object, - guint property_id, - GValue * value, - GParamSpec * pspec) -{ - ShotwellPluginsCommonBuilderPane * self; - self = G_TYPE_CHECK_INSTANCE_CAST (object, SHOTWELL_PLUGINS_COMMON_TYPE_BUILDER_PANE, ShotwellPluginsCommonBuilderPane); -#line 9 "/home/jens/Source/shotwell/plugins/common/BuilderPane.vala" - switch (property_id) { -#line 9 "/home/jens/Source/shotwell/plugins/common/BuilderPane.vala" - case SHOTWELL_PLUGINS_COMMON_BUILDER_PANE_PREFERRED_GEOMETRY_PROPERTY: -#line 9 "/home/jens/Source/shotwell/plugins/common/BuilderPane.vala" - g_value_set_enum (value, shotwell_plugins_common_builder_pane_get_preferred_geometry (self)); -#line 9 "/home/jens/Source/shotwell/plugins/common/BuilderPane.vala" - break; -#line 9 "/home/jens/Source/shotwell/plugins/common/BuilderPane.vala" - case SHOTWELL_PLUGINS_COMMON_BUILDER_PANE_RESOURCE_PATH_PROPERTY: -#line 9 "/home/jens/Source/shotwell/plugins/common/BuilderPane.vala" - g_value_take_string (value, shotwell_plugins_common_builder_pane_get_resource_path (self)); -#line 9 "/home/jens/Source/shotwell/plugins/common/BuilderPane.vala" - break; -#line 9 "/home/jens/Source/shotwell/plugins/common/BuilderPane.vala" - case SHOTWELL_PLUGINS_COMMON_BUILDER_PANE_CONNECT_SIGNALS_PROPERTY: -#line 9 "/home/jens/Source/shotwell/plugins/common/BuilderPane.vala" - g_value_set_boolean (value, shotwell_plugins_common_builder_pane_get_connect_signals (self)); -#line 9 "/home/jens/Source/shotwell/plugins/common/BuilderPane.vala" - break; -#line 9 "/home/jens/Source/shotwell/plugins/common/BuilderPane.vala" - case SHOTWELL_PLUGINS_COMMON_BUILDER_PANE_DEFAULT_ID_PROPERTY: -#line 9 "/home/jens/Source/shotwell/plugins/common/BuilderPane.vala" - g_value_take_string (value, shotwell_plugins_common_builder_pane_get_default_id (self)); -#line 9 "/home/jens/Source/shotwell/plugins/common/BuilderPane.vala" - break; -#line 656 "BuilderPane.c" - default: -#line 9 "/home/jens/Source/shotwell/plugins/common/BuilderPane.vala" - G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec); -#line 9 "/home/jens/Source/shotwell/plugins/common/BuilderPane.vala" - break; -#line 662 "BuilderPane.c" - } -} - - -static void -_vala_shotwell_plugins_common_builder_pane_set_property (GObject * object, - guint property_id, - const GValue * value, - GParamSpec * pspec) -{ - ShotwellPluginsCommonBuilderPane * self; - self = G_TYPE_CHECK_INSTANCE_CAST (object, SHOTWELL_PLUGINS_COMMON_TYPE_BUILDER_PANE, ShotwellPluginsCommonBuilderPane); -#line 9 "/home/jens/Source/shotwell/plugins/common/BuilderPane.vala" - switch (property_id) { -#line 9 "/home/jens/Source/shotwell/plugins/common/BuilderPane.vala" - case SHOTWELL_PLUGINS_COMMON_BUILDER_PANE_PREFERRED_GEOMETRY_PROPERTY: -#line 9 "/home/jens/Source/shotwell/plugins/common/BuilderPane.vala" - shotwell_plugins_common_builder_pane_set_preferred_geometry (self, g_value_get_enum (value)); -#line 9 "/home/jens/Source/shotwell/plugins/common/BuilderPane.vala" - break; -#line 9 "/home/jens/Source/shotwell/plugins/common/BuilderPane.vala" - case SHOTWELL_PLUGINS_COMMON_BUILDER_PANE_RESOURCE_PATH_PROPERTY: -#line 9 "/home/jens/Source/shotwell/plugins/common/BuilderPane.vala" - shotwell_plugins_common_builder_pane_set_resource_path (self, g_value_get_string (value)); -#line 9 "/home/jens/Source/shotwell/plugins/common/BuilderPane.vala" - break; -#line 9 "/home/jens/Source/shotwell/plugins/common/BuilderPane.vala" - case SHOTWELL_PLUGINS_COMMON_BUILDER_PANE_CONNECT_SIGNALS_PROPERTY: -#line 9 "/home/jens/Source/shotwell/plugins/common/BuilderPane.vala" - shotwell_plugins_common_builder_pane_set_connect_signals (self, g_value_get_boolean (value)); -#line 9 "/home/jens/Source/shotwell/plugins/common/BuilderPane.vala" - break; -#line 9 "/home/jens/Source/shotwell/plugins/common/BuilderPane.vala" - case SHOTWELL_PLUGINS_COMMON_BUILDER_PANE_DEFAULT_ID_PROPERTY: -#line 9 "/home/jens/Source/shotwell/plugins/common/BuilderPane.vala" - shotwell_plugins_common_builder_pane_set_default_id (self, g_value_get_string (value)); -#line 9 "/home/jens/Source/shotwell/plugins/common/BuilderPane.vala" - break; -#line 701 "BuilderPane.c" - default: -#line 9 "/home/jens/Source/shotwell/plugins/common/BuilderPane.vala" - G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec); -#line 9 "/home/jens/Source/shotwell/plugins/common/BuilderPane.vala" - break; -#line 707 "BuilderPane.c" - } -} - - - diff --git a/plugins/common/OAuth1Support.c b/plugins/common/OAuth1Support.c deleted file mode 100644 index 70e0dc1..0000000 --- a/plugins/common/OAuth1Support.c +++ /dev/null @@ -1,1887 +0,0 @@ -/* OAuth1Support.c generated by valac 0.40.4, the Vala compiler - * generated from OAuth1Support.vala, do not modify */ - -/* Copyright 2016 Software Freedom Conservancy Inc. - * Copyright 2017 Jens Georg - * - * 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 "shotwell-plugin-dev-1.0.h" -#include - - -#define PUBLISHING_REST_SUPPORT_TYPE_SESSION (publishing_rest_support_session_get_type ()) -#define PUBLISHING_REST_SUPPORT_SESSION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_REST_SUPPORT_TYPE_SESSION, PublishingRESTSupportSession)) -#define PUBLISHING_REST_SUPPORT_SESSION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_REST_SUPPORT_TYPE_SESSION, PublishingRESTSupportSessionClass)) -#define PUBLISHING_REST_SUPPORT_IS_SESSION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_REST_SUPPORT_TYPE_SESSION)) -#define PUBLISHING_REST_SUPPORT_IS_SESSION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_REST_SUPPORT_TYPE_SESSION)) -#define PUBLISHING_REST_SUPPORT_SESSION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_REST_SUPPORT_TYPE_SESSION, PublishingRESTSupportSessionClass)) - -typedef struct _PublishingRESTSupportSession PublishingRESTSupportSession; -typedef struct _PublishingRESTSupportSessionClass PublishingRESTSupportSessionClass; -typedef struct _PublishingRESTSupportSessionPrivate PublishingRESTSupportSessionPrivate; - -#define PUBLISHING_REST_SUPPORT_OAUTH1_TYPE_SESSION (publishing_rest_support_oauth1_session_get_type ()) -#define PUBLISHING_REST_SUPPORT_OAUTH1_SESSION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_REST_SUPPORT_OAUTH1_TYPE_SESSION, PublishingRESTSupportOAuth1Session)) -#define PUBLISHING_REST_SUPPORT_OAUTH1_SESSION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_REST_SUPPORT_OAUTH1_TYPE_SESSION, PublishingRESTSupportOAuth1SessionClass)) -#define PUBLISHING_REST_SUPPORT_OAUTH1_IS_SESSION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_REST_SUPPORT_OAUTH1_TYPE_SESSION)) -#define PUBLISHING_REST_SUPPORT_OAUTH1_IS_SESSION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_REST_SUPPORT_OAUTH1_TYPE_SESSION)) -#define PUBLISHING_REST_SUPPORT_OAUTH1_SESSION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_REST_SUPPORT_OAUTH1_TYPE_SESSION, PublishingRESTSupportOAuth1SessionClass)) - -typedef struct _PublishingRESTSupportOAuth1Session PublishingRESTSupportOAuth1Session; -typedef struct _PublishingRESTSupportOAuth1SessionClass PublishingRESTSupportOAuth1SessionClass; -typedef struct _PublishingRESTSupportOAuth1SessionPrivate PublishingRESTSupportOAuth1SessionPrivate; -#define _g_free0(var) (var = (g_free (var), NULL)) - -#define PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION (publishing_rest_support_transaction_get_type ()) -#define PUBLISHING_REST_SUPPORT_TRANSACTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction)) -#define PUBLISHING_REST_SUPPORT_TRANSACTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransactionClass)) -#define PUBLISHING_REST_SUPPORT_IS_TRANSACTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION)) -#define PUBLISHING_REST_SUPPORT_IS_TRANSACTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION)) -#define PUBLISHING_REST_SUPPORT_TRANSACTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransactionClass)) - -typedef struct _PublishingRESTSupportTransaction PublishingRESTSupportTransaction; -typedef struct _PublishingRESTSupportTransactionClass PublishingRESTSupportTransactionClass; - -#define PUBLISHING_REST_SUPPORT_TYPE_ARGUMENT (publishing_rest_support_argument_get_type ()) -#define PUBLISHING_REST_SUPPORT_ARGUMENT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_REST_SUPPORT_TYPE_ARGUMENT, PublishingRESTSupportArgument)) -#define PUBLISHING_REST_SUPPORT_ARGUMENT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_REST_SUPPORT_TYPE_ARGUMENT, PublishingRESTSupportArgumentClass)) -#define PUBLISHING_REST_SUPPORT_IS_ARGUMENT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_REST_SUPPORT_TYPE_ARGUMENT)) -#define PUBLISHING_REST_SUPPORT_IS_ARGUMENT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_REST_SUPPORT_TYPE_ARGUMENT)) -#define PUBLISHING_REST_SUPPORT_ARGUMENT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_REST_SUPPORT_TYPE_ARGUMENT, PublishingRESTSupportArgumentClass)) - -typedef struct _PublishingRESTSupportArgument PublishingRESTSupportArgument; -typedef struct _PublishingRESTSupportArgumentClass PublishingRESTSupportArgumentClass; - -#define PUBLISHING_REST_SUPPORT_TYPE_HTTP_METHOD (publishing_rest_support_http_method_get_type ()) -#define _publishing_rest_support_argument_unref0(var) ((var == NULL) ? NULL : (var = (publishing_rest_support_argument_unref (var), NULL))) -typedef struct _PublishingRESTSupportTransactionPrivate PublishingRESTSupportTransactionPrivate; - -#define PUBLISHING_REST_SUPPORT_OAUTH1_TYPE_TRANSACTION (publishing_rest_support_oauth1_transaction_get_type ()) -#define PUBLISHING_REST_SUPPORT_OAUTH1_TRANSACTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_REST_SUPPORT_OAUTH1_TYPE_TRANSACTION, PublishingRESTSupportOAuth1Transaction)) -#define PUBLISHING_REST_SUPPORT_OAUTH1_TRANSACTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_REST_SUPPORT_OAUTH1_TYPE_TRANSACTION, PublishingRESTSupportOAuth1TransactionClass)) -#define PUBLISHING_REST_SUPPORT_OAUTH1_IS_TRANSACTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_REST_SUPPORT_OAUTH1_TYPE_TRANSACTION)) -#define PUBLISHING_REST_SUPPORT_OAUTH1_IS_TRANSACTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_REST_SUPPORT_OAUTH1_TYPE_TRANSACTION)) -#define PUBLISHING_REST_SUPPORT_OAUTH1_TRANSACTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_REST_SUPPORT_OAUTH1_TYPE_TRANSACTION, PublishingRESTSupportOAuth1TransactionClass)) - -typedef struct _PublishingRESTSupportOAuth1Transaction PublishingRESTSupportOAuth1Transaction; -typedef struct _PublishingRESTSupportOAuth1TransactionClass PublishingRESTSupportOAuth1TransactionClass; -typedef struct _PublishingRESTSupportOAuth1TransactionPrivate PublishingRESTSupportOAuth1TransactionPrivate; -#define _publishing_rest_support_session_unref0(var) ((var == NULL) ? NULL : (var = (publishing_rest_support_session_unref (var), NULL))) - -#define PUBLISHING_REST_SUPPORT_TYPE_UPLOAD_TRANSACTION (publishing_rest_support_upload_transaction_get_type ()) -#define PUBLISHING_REST_SUPPORT_UPLOAD_TRANSACTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_REST_SUPPORT_TYPE_UPLOAD_TRANSACTION, PublishingRESTSupportUploadTransaction)) -#define PUBLISHING_REST_SUPPORT_UPLOAD_TRANSACTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_REST_SUPPORT_TYPE_UPLOAD_TRANSACTION, PublishingRESTSupportUploadTransactionClass)) -#define PUBLISHING_REST_SUPPORT_IS_UPLOAD_TRANSACTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_REST_SUPPORT_TYPE_UPLOAD_TRANSACTION)) -#define PUBLISHING_REST_SUPPORT_IS_UPLOAD_TRANSACTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_REST_SUPPORT_TYPE_UPLOAD_TRANSACTION)) -#define PUBLISHING_REST_SUPPORT_UPLOAD_TRANSACTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_REST_SUPPORT_TYPE_UPLOAD_TRANSACTION, PublishingRESTSupportUploadTransactionClass)) - -typedef struct _PublishingRESTSupportUploadTransaction PublishingRESTSupportUploadTransaction; -typedef struct _PublishingRESTSupportUploadTransactionClass PublishingRESTSupportUploadTransactionClass; -typedef struct _PublishingRESTSupportUploadTransactionPrivate PublishingRESTSupportUploadTransactionPrivate; - -#define PUBLISHING_REST_SUPPORT_OAUTH1_TYPE_UPLOAD_TRANSACTION (publishing_rest_support_oauth1_upload_transaction_get_type ()) -#define PUBLISHING_REST_SUPPORT_OAUTH1_UPLOAD_TRANSACTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_REST_SUPPORT_OAUTH1_TYPE_UPLOAD_TRANSACTION, PublishingRESTSupportOAuth1UploadTransaction)) -#define PUBLISHING_REST_SUPPORT_OAUTH1_UPLOAD_TRANSACTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_REST_SUPPORT_OAUTH1_TYPE_UPLOAD_TRANSACTION, PublishingRESTSupportOAuth1UploadTransactionClass)) -#define PUBLISHING_REST_SUPPORT_OAUTH1_IS_UPLOAD_TRANSACTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_REST_SUPPORT_OAUTH1_TYPE_UPLOAD_TRANSACTION)) -#define PUBLISHING_REST_SUPPORT_OAUTH1_IS_UPLOAD_TRANSACTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_REST_SUPPORT_OAUTH1_TYPE_UPLOAD_TRANSACTION)) -#define PUBLISHING_REST_SUPPORT_OAUTH1_UPLOAD_TRANSACTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_REST_SUPPORT_OAUTH1_TYPE_UPLOAD_TRANSACTION, PublishingRESTSupportOAuth1UploadTransactionClass)) - -typedef struct _PublishingRESTSupportOAuth1UploadTransaction PublishingRESTSupportOAuth1UploadTransaction; -typedef struct _PublishingRESTSupportOAuth1UploadTransactionClass PublishingRESTSupportOAuth1UploadTransactionClass; -typedef struct _PublishingRESTSupportOAuth1UploadTransactionPrivate PublishingRESTSupportOAuth1UploadTransactionPrivate; -#define _vala_assert(expr, msg) if G_LIKELY (expr) ; else g_assertion_message_expr (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg); -#define _vala_return_if_fail(expr, msg) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return; } -#define _vala_return_val_if_fail(expr, msg, val) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return val; } -#define _vala_warn_if_fail(expr, msg) if G_LIKELY (expr) ; else g_warn_message (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg); - -struct _PublishingRESTSupportSession { - GTypeInstance parent_instance; - volatile int ref_count; - PublishingRESTSupportSessionPrivate * priv; -}; - -struct _PublishingRESTSupportSessionClass { - GTypeClass parent_class; - void (*finalize) (PublishingRESTSupportSession *self); - gboolean (*is_authenticated) (PublishingRESTSupportSession* self); -}; - -struct _PublishingRESTSupportOAuth1Session { - PublishingRESTSupportSession parent_instance; - PublishingRESTSupportOAuth1SessionPrivate * priv; -}; - -struct _PublishingRESTSupportOAuth1SessionClass { - PublishingRESTSupportSessionClass parent_class; -}; - -struct _PublishingRESTSupportOAuth1SessionPrivate { - gchar* request_phase_token; - gchar* request_phase_token_secret; - gchar* access_phase_token; - gchar* access_phase_token_secret; - gchar* username; - gchar* consumer_key; - gchar* consumer_secret; -}; - -typedef enum { - PUBLISHING_REST_SUPPORT_HTTP_METHOD_GET, - PUBLISHING_REST_SUPPORT_HTTP_METHOD_POST, - PUBLISHING_REST_SUPPORT_HTTP_METHOD_PUT -} PublishingRESTSupportHttpMethod; - -struct _PublishingRESTSupportTransaction { - GTypeInstance parent_instance; - volatile int ref_count; - PublishingRESTSupportTransactionPrivate * priv; -}; - -struct _PublishingRESTSupportTransactionClass { - GTypeClass parent_class; - void (*finalize) (PublishingRESTSupportTransaction *self); - void (*add_header) (PublishingRESTSupportTransaction* self, const gchar* key, const gchar* value); - void (*execute) (PublishingRESTSupportTransaction* self, GError** error); -}; - -struct _PublishingRESTSupportOAuth1Transaction { - PublishingRESTSupportTransaction parent_instance; - PublishingRESTSupportOAuth1TransactionPrivate * priv; -}; - -struct _PublishingRESTSupportOAuth1TransactionClass { - PublishingRESTSupportTransactionClass parent_class; -}; - -struct _PublishingRESTSupportUploadTransaction { - PublishingRESTSupportTransaction parent_instance; - PublishingRESTSupportUploadTransactionPrivate * priv; - GHashTable* binary_disposition_table; - SpitPublishingPublishable* publishable; - gchar* mime_type; - GeeHashMap* message_headers; -}; - -struct _PublishingRESTSupportUploadTransactionClass { - PublishingRESTSupportTransactionClass parent_class; -}; - -struct _PublishingRESTSupportOAuth1UploadTransaction { - PublishingRESTSupportUploadTransaction parent_instance; - PublishingRESTSupportOAuth1UploadTransactionPrivate * priv; - PublishingRESTSupportOAuth1Session* session; -}; - -struct _PublishingRESTSupportOAuth1UploadTransactionClass { - PublishingRESTSupportUploadTransactionClass parent_class; -}; - -struct _PublishingRESTSupportOAuth1UploadTransactionPrivate { - PublishingRESTSupportArgument** auth_header_fields; - gint auth_header_fields_length1; - gint _auth_header_fields_size_; -}; - - -static gpointer publishing_rest_support_oauth1_session_parent_class = NULL; -static gpointer publishing_rest_support_oauth1_transaction_parent_class = NULL; -static gpointer publishing_rest_support_oauth1_upload_transaction_parent_class = NULL; - -#define PUBLISHING_REST_SUPPORT_OAUTH1_ENCODE_RFC_3986_EXTRA "!*'();:@&=+$,/?%#[] \\" -gpointer publishing_rest_support_session_ref (gpointer instance); -void publishing_rest_support_session_unref (gpointer instance); -GParamSpec* publishing_rest_support_param_spec_session (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void publishing_rest_support_value_set_session (GValue* value, - gpointer v_object); -void publishing_rest_support_value_take_session (GValue* value, - gpointer v_object); -gpointer publishing_rest_support_value_get_session (const GValue* value); -GType publishing_rest_support_session_get_type (void) G_GNUC_CONST; -GType publishing_rest_support_oauth1_session_get_type (void) G_GNUC_CONST; -#define PUBLISHING_REST_SUPPORT_OAUTH1_SESSION_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), PUBLISHING_REST_SUPPORT_OAUTH1_TYPE_SESSION, PublishingRESTSupportOAuth1SessionPrivate)) -PublishingRESTSupportOAuth1Session* publishing_rest_support_oauth1_session_new (const gchar* endpoint_uri); -PublishingRESTSupportOAuth1Session* publishing_rest_support_oauth1_session_construct (GType object_type, - const gchar* endpoint_uri); -PublishingRESTSupportSession* publishing_rest_support_session_construct (GType object_type, - const gchar* endpoint_url); -static gboolean publishing_rest_support_oauth1_session_real_is_authenticated (PublishingRESTSupportSession* base); -void publishing_rest_support_oauth1_session_authenticate_from_persistent_credentials (PublishingRESTSupportOAuth1Session* self, - const gchar* token, - const gchar* secret, - const gchar* username); -void publishing_rest_support_oauth1_session_deauthenticate (PublishingRESTSupportOAuth1Session* self); -void publishing_rest_support_oauth1_session_set_api_credentials (PublishingRESTSupportOAuth1Session* self, - const gchar* consumer_key, - const gchar* consumer_secret); -gpointer publishing_rest_support_transaction_ref (gpointer instance); -void publishing_rest_support_transaction_unref (gpointer instance); -GParamSpec* publishing_rest_support_param_spec_transaction (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void publishing_rest_support_value_set_transaction (GValue* value, - gpointer v_object); -void publishing_rest_support_value_take_transaction (GValue* value, - gpointer v_object); -gpointer publishing_rest_support_value_get_transaction (const GValue* value); -GType publishing_rest_support_transaction_get_type (void) G_GNUC_CONST; -gpointer publishing_rest_support_argument_ref (gpointer instance); -void publishing_rest_support_argument_unref (gpointer instance); -GParamSpec* publishing_rest_support_param_spec_argument (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void publishing_rest_support_value_set_argument (GValue* value, - gpointer v_object); -void publishing_rest_support_value_take_argument (GValue* value, - gpointer v_object); -gpointer publishing_rest_support_value_get_argument (const GValue* value); -GType publishing_rest_support_argument_get_type (void) G_GNUC_CONST; -gchar* publishing_rest_support_oauth1_session_sign_transaction (PublishingRESTSupportOAuth1Session* self, - PublishingRESTSupportTransaction* txn, - PublishingRESTSupportArgument** extra_arguments, - int extra_arguments_length1); -GType publishing_rest_support_http_method_get_type (void) G_GNUC_CONST; -PublishingRESTSupportHttpMethod publishing_rest_support_transaction_get_method (PublishingRESTSupportTransaction* self); -gchar* publishing_rest_support_http_method_to_string (PublishingRESTSupportHttpMethod self); -PublishingRESTSupportArgument** publishing_rest_support_transaction_get_arguments (PublishingRESTSupportTransaction* self, - int* result_length1); -static void _vala_array_add2 (PublishingRESTSupportArgument** * array, - int* length, - int* size, - PublishingRESTSupportArgument* value); -PublishingRESTSupportArgument** publishing_rest_support_argument_sort (PublishingRESTSupportArgument** inputArray, - int inputArray_length1, - int* result_length1); -gchar* publishing_rest_support_argument_serialize_list (PublishingRESTSupportArgument** args, - int args_length1, - gboolean escape, - const gchar* separator); -gchar* publishing_rest_support_transaction_get_endpoint_url (PublishingRESTSupportTransaction* self); -gchar* publishing_rest_support_hmac_sha1 (const gchar* key, - const gchar* message); -void publishing_rest_support_oauth1_session_set_request_phase_credentials (PublishingRESTSupportOAuth1Session* self, - const gchar* token, - const gchar* secret); -void publishing_rest_support_oauth1_session_set_access_phase_credentials (PublishingRESTSupportOAuth1Session* self, - const gchar* token, - const gchar* secret, - const gchar* username); -gchar* publishing_rest_support_oauth1_session_get_oauth_nonce (PublishingRESTSupportOAuth1Session* self); -gchar* publishing_rest_support_oauth1_session_get_oauth_timestamp (PublishingRESTSupportOAuth1Session* self); -gchar* publishing_rest_support_oauth1_session_get_consumer_key (PublishingRESTSupportOAuth1Session* self); -gchar* publishing_rest_support_oauth1_session_get_request_phase_token (PublishingRESTSupportOAuth1Session* self); -gchar* publishing_rest_support_oauth1_session_get_access_phase_token (PublishingRESTSupportOAuth1Session* self); -gboolean publishing_rest_support_oauth1_session_has_access_phase_token (PublishingRESTSupportOAuth1Session* self); -gchar* publishing_rest_support_oauth1_session_get_access_phase_token_secret (PublishingRESTSupportOAuth1Session* self); -gchar* publishing_rest_support_oauth1_session_get_username (PublishingRESTSupportOAuth1Session* self); -gboolean publishing_rest_support_session_is_authenticated (PublishingRESTSupportSession* self); -static void publishing_rest_support_oauth1_session_finalize (PublishingRESTSupportSession * obj); -GType publishing_rest_support_oauth1_transaction_get_type (void) G_GNUC_CONST; -PublishingRESTSupportOAuth1Transaction* publishing_rest_support_oauth1_transaction_new (PublishingRESTSupportOAuth1Session* session, - PublishingRESTSupportHttpMethod method); -PublishingRESTSupportOAuth1Transaction* publishing_rest_support_oauth1_transaction_construct (GType object_type, - PublishingRESTSupportOAuth1Session* session, - PublishingRESTSupportHttpMethod method); -PublishingRESTSupportTransaction* publishing_rest_support_transaction_new (PublishingRESTSupportSession* parent_session, - PublishingRESTSupportHttpMethod method); -PublishingRESTSupportTransaction* publishing_rest_support_transaction_construct (GType object_type, - PublishingRESTSupportSession* parent_session, - PublishingRESTSupportHttpMethod method); -static void publishing_rest_support_oauth1_transaction_setup_arguments (PublishingRESTSupportOAuth1Transaction* self); -PublishingRESTSupportOAuth1Transaction* publishing_rest_support_oauth1_transaction_new_with_uri (PublishingRESTSupportOAuth1Session* session, - const gchar* uri, - PublishingRESTSupportHttpMethod method); -PublishingRESTSupportOAuth1Transaction* publishing_rest_support_oauth1_transaction_construct_with_uri (GType object_type, - PublishingRESTSupportOAuth1Session* session, - const gchar* uri, - PublishingRESTSupportHttpMethod method); -PublishingRESTSupportTransaction* publishing_rest_support_transaction_new_with_endpoint_url (PublishingRESTSupportSession* parent_session, - const gchar* endpoint_url, - PublishingRESTSupportHttpMethod method); -PublishingRESTSupportTransaction* publishing_rest_support_transaction_construct_with_endpoint_url (GType object_type, - PublishingRESTSupportSession* parent_session, - const gchar* endpoint_url, - PublishingRESTSupportHttpMethod method); -PublishingRESTSupportSession* publishing_rest_support_transaction_get_parent_session (PublishingRESTSupportTransaction* self); -void publishing_rest_support_transaction_add_argument (PublishingRESTSupportTransaction* self, - const gchar* name, - const gchar* value); -static void publishing_rest_support_oauth1_transaction_real_execute (PublishingRESTSupportTransaction* base, - GError** error); -void publishing_rest_support_transaction_execute (PublishingRESTSupportTransaction* self, - GError** error); -GType publishing_rest_support_upload_transaction_get_type (void) G_GNUC_CONST; -GType publishing_rest_support_oauth1_upload_transaction_get_type (void) G_GNUC_CONST; -#define PUBLISHING_REST_SUPPORT_OAUTH1_UPLOAD_TRANSACTION_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), PUBLISHING_REST_SUPPORT_OAUTH1_TYPE_UPLOAD_TRANSACTION, PublishingRESTSupportOAuth1UploadTransactionPrivate)) -PublishingRESTSupportOAuth1UploadTransaction* publishing_rest_support_oauth1_upload_transaction_new (PublishingRESTSupportOAuth1Session* session, - SpitPublishingPublishable* publishable, - const gchar* endpoint_uri); -PublishingRESTSupportOAuth1UploadTransaction* publishing_rest_support_oauth1_upload_transaction_construct (GType object_type, - PublishingRESTSupportOAuth1Session* session, - SpitPublishingPublishable* publishable, - const gchar* endpoint_uri); -PublishingRESTSupportUploadTransaction* publishing_rest_support_upload_transaction_new_with_endpoint_url (PublishingRESTSupportSession* session, - SpitPublishingPublishable* publishable, - const gchar* endpoint_url); -PublishingRESTSupportUploadTransaction* publishing_rest_support_upload_transaction_construct_with_endpoint_url (GType object_type, - PublishingRESTSupportSession* session, - SpitPublishingPublishable* publishable, - const gchar* endpoint_url); -void publishing_rest_support_oauth1_upload_transaction_add_authorization_header_field (PublishingRESTSupportOAuth1UploadTransaction* self, - const gchar* key, - const gchar* value); -PublishingRESTSupportArgument* publishing_rest_support_argument_new (const gchar* key, - const gchar* value); -PublishingRESTSupportArgument* publishing_rest_support_argument_construct (GType object_type, - const gchar* key, - const gchar* value); -static void _vala_array_add3 (PublishingRESTSupportArgument** * array, - int* length, - int* size, - PublishingRESTSupportArgument* value); -gchar* publishing_rest_support_oauth1_upload_transaction_get_authorization_header_string (PublishingRESTSupportOAuth1UploadTransaction* self); -void publishing_rest_support_oauth1_upload_transaction_authorize (PublishingRESTSupportOAuth1UploadTransaction* self); -void publishing_rest_support_transaction_add_header (PublishingRESTSupportTransaction* self, - const gchar* key, - const gchar* value); -static void publishing_rest_support_oauth1_upload_transaction_finalize (PublishingRESTSupportTransaction * obj); -static void _vala_array_destroy (gpointer array, - gint array_length, - GDestroyNotify destroy_func); -static void _vala_array_free (gpointer array, - gint array_length, - GDestroyNotify destroy_func); - - -PublishingRESTSupportOAuth1Session* -publishing_rest_support_oauth1_session_construct (GType object_type, - const gchar* endpoint_uri) -{ - PublishingRESTSupportOAuth1Session* self = NULL; -#line 21 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - self = (PublishingRESTSupportOAuth1Session*) publishing_rest_support_session_construct (object_type, endpoint_uri); -#line 20 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - return self; -#line 382 "OAuth1Support.c" -} - - -PublishingRESTSupportOAuth1Session* -publishing_rest_support_oauth1_session_new (const gchar* endpoint_uri) -{ -#line 20 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - return publishing_rest_support_oauth1_session_construct (PUBLISHING_REST_SUPPORT_OAUTH1_TYPE_SESSION, endpoint_uri); -#line 391 "OAuth1Support.c" -} - - -static gboolean -publishing_rest_support_oauth1_session_real_is_authenticated (PublishingRESTSupportSession* base) -{ - PublishingRESTSupportOAuth1Session * self; - gboolean result = FALSE; - gboolean _tmp0_ = FALSE; - gboolean _tmp1_ = FALSE; - const gchar* _tmp2_; -#line 24 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_REST_SUPPORT_OAUTH1_TYPE_SESSION, PublishingRESTSupportOAuth1Session); -#line 25 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - _tmp2_ = self->priv->access_phase_token; -#line 25 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - if (_tmp2_ != NULL) { -#line 409 "OAuth1Support.c" - const gchar* _tmp3_; -#line 25 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - _tmp3_ = self->priv->access_phase_token_secret; -#line 25 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - _tmp1_ = _tmp3_ != NULL; -#line 415 "OAuth1Support.c" - } else { -#line 25 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - _tmp1_ = FALSE; -#line 419 "OAuth1Support.c" - } -#line 25 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - if (_tmp1_) { -#line 423 "OAuth1Support.c" - const gchar* _tmp4_; -#line 26 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - _tmp4_ = self->priv->username; -#line 26 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - _tmp0_ = _tmp4_ != NULL; -#line 429 "OAuth1Support.c" - } else { -#line 25 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - _tmp0_ = FALSE; -#line 433 "OAuth1Support.c" - } -#line 25 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - result = _tmp0_; -#line 25 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - return result; -#line 439 "OAuth1Support.c" -} - - -void -publishing_rest_support_oauth1_session_authenticate_from_persistent_credentials (PublishingRESTSupportOAuth1Session* self, - const gchar* token, - const gchar* secret, - const gchar* username) -{ - gchar* _tmp0_; - gchar* _tmp1_; - gchar* _tmp2_; -#line 29 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - g_return_if_fail (PUBLISHING_REST_SUPPORT_OAUTH1_IS_SESSION (self)); -#line 29 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - g_return_if_fail (token != NULL); -#line 29 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - g_return_if_fail (secret != NULL); -#line 29 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - g_return_if_fail (username != NULL); -#line 31 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - _tmp0_ = g_strdup (token); -#line 31 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - _g_free0 (self->priv->access_phase_token); -#line 31 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - self->priv->access_phase_token = _tmp0_; -#line 32 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - _tmp1_ = g_strdup (secret); -#line 32 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - _g_free0 (self->priv->access_phase_token_secret); -#line 32 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - self->priv->access_phase_token_secret = _tmp1_; -#line 33 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - _tmp2_ = g_strdup (username); -#line 33 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - _g_free0 (self->priv->username); -#line 33 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - self->priv->username = _tmp2_; -#line 35 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - g_signal_emit_by_name (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_SESSION, PublishingRESTSupportSession), "authenticated"); -#line 480 "OAuth1Support.c" -} - - -void -publishing_rest_support_oauth1_session_deauthenticate (PublishingRESTSupportOAuth1Session* self) -{ -#line 38 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - g_return_if_fail (PUBLISHING_REST_SUPPORT_OAUTH1_IS_SESSION (self)); -#line 39 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - _g_free0 (self->priv->access_phase_token); -#line 39 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - self->priv->access_phase_token = NULL; -#line 40 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - _g_free0 (self->priv->access_phase_token_secret); -#line 40 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - self->priv->access_phase_token_secret = NULL; -#line 41 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - _g_free0 (self->priv->username); -#line 41 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - self->priv->username = NULL; -#line 501 "OAuth1Support.c" -} - - -void -publishing_rest_support_oauth1_session_set_api_credentials (PublishingRESTSupportOAuth1Session* self, - const gchar* consumer_key, - const gchar* consumer_secret) -{ - gchar* _tmp0_; - gchar* _tmp1_; -#line 44 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - g_return_if_fail (PUBLISHING_REST_SUPPORT_OAUTH1_IS_SESSION (self)); -#line 44 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - g_return_if_fail (consumer_key != NULL); -#line 44 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - g_return_if_fail (consumer_secret != NULL); -#line 45 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - _tmp0_ = g_strdup (consumer_key); -#line 45 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - _g_free0 (self->priv->consumer_key); -#line 45 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - self->priv->consumer_key = _tmp0_; -#line 46 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - _tmp1_ = g_strdup (consumer_secret); -#line 46 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - _g_free0 (self->priv->consumer_secret); -#line 46 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - self->priv->consumer_secret = _tmp1_; -#line 530 "OAuth1Support.c" -} - - -static gpointer -_publishing_rest_support_argument_ref0 (gpointer self) -{ -#line 58 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - return self ? publishing_rest_support_argument_ref (self) : NULL; -#line 539 "OAuth1Support.c" -} - - -static void -_vala_array_add2 (PublishingRESTSupportArgument** * array, - int* length, - int* size, - PublishingRESTSupportArgument* value) -{ -#line 59 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - if ((*length) == (*size)) { -#line 59 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - *size = (*size) ? (2 * (*size)) : 4; -#line 59 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - *array = g_renew (PublishingRESTSupportArgument*, *array, (*size) + 1); -#line 555 "OAuth1Support.c" - } -#line 59 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - (*array)[(*length)++] = value; -#line 59 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - (*array)[*length] = NULL; -#line 561 "OAuth1Support.c" -} - - -gchar* -publishing_rest_support_oauth1_session_sign_transaction (PublishingRESTSupportOAuth1Session* self, - PublishingRESTSupportTransaction* txn, - PublishingRESTSupportArgument** extra_arguments, - int extra_arguments_length1) -{ - gchar* result = NULL; - gchar* http_method = NULL; - gchar* _tmp0_; - const gchar* _tmp1_; - gchar* _tmp2_; - gchar* _tmp3_; - PublishingRESTSupportArgument** base_string_arguments = NULL; - gint _tmp4_; - PublishingRESTSupportArgument** _tmp5_; - gint base_string_arguments_length1; - gint _base_string_arguments_size_; - PublishingRESTSupportArgument** sorted_args = NULL; - PublishingRESTSupportArgument** _tmp10_; - gint _tmp10__length1; - gint _tmp11_; - PublishingRESTSupportArgument** _tmp12_; - gint sorted_args_length1; - gint _sorted_args_size_; - gchar* arguments_string = NULL; - PublishingRESTSupportArgument** _tmp13_; - gint _tmp13__length1; - gchar* _tmp14_; - gchar* signing_key = NULL; - const gchar* _tmp15_; - gchar* signature_base_string = NULL; - const gchar* _tmp29_; - gchar* _tmp30_; - gchar* _tmp31_; - gchar* _tmp32_; - gchar* _tmp33_; - gchar* _tmp34_; - gchar* _tmp35_; - gchar* _tmp36_; - gchar* _tmp37_; - gchar* _tmp38_; - gchar* _tmp39_; - const gchar* _tmp40_; - gchar* _tmp41_; - gchar* _tmp42_; - gchar* _tmp43_; - gchar* _tmp44_; - const gchar* _tmp45_; - gchar* signature = NULL; - const gchar* _tmp46_; - gchar* _tmp47_; - const gchar* _tmp48_; - gchar* _tmp49_; - const gchar* _tmp50_; -#line 49 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - g_return_val_if_fail (PUBLISHING_REST_SUPPORT_OAUTH1_IS_SESSION (self), NULL); -#line 49 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - g_return_val_if_fail (PUBLISHING_REST_SUPPORT_IS_TRANSACTION (txn), NULL); -#line 51 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - _tmp0_ = publishing_rest_support_http_method_to_string (publishing_rest_support_transaction_get_method (txn)); -#line 51 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - http_method = _tmp0_; -#line 53 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - g_debug ("OAuth1Support.vala:53: signing transaction with parameters:"); -#line 54 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - _tmp1_ = http_method; -#line 54 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - _tmp2_ = g_strconcat ("HTTP method = ", _tmp1_, NULL); -#line 54 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - _tmp3_ = _tmp2_; -#line 54 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - g_debug ("OAuth1Support.vala:54: %s", _tmp3_); -#line 54 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - _g_free0 (_tmp3_); -#line 56 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - _tmp5_ = publishing_rest_support_transaction_get_arguments (txn, &_tmp4_); -#line 56 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - base_string_arguments = _tmp5_; -#line 56 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - base_string_arguments_length1 = _tmp4_; -#line 56 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - _base_string_arguments_size_ = base_string_arguments_length1; -#line 647 "OAuth1Support.c" - { - PublishingRESTSupportArgument** arg_collection = NULL; - gint arg_collection_length1 = 0; - gint _arg_collection_size_ = 0; - gint arg_it = 0; -#line 58 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - arg_collection = extra_arguments; -#line 58 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - arg_collection_length1 = extra_arguments_length1; -#line 58 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - for (arg_it = 0; arg_it < extra_arguments_length1; arg_it = arg_it + 1) { -#line 659 "OAuth1Support.c" - PublishingRESTSupportArgument* _tmp6_; - PublishingRESTSupportArgument* arg = NULL; -#line 58 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - _tmp6_ = _publishing_rest_support_argument_ref0 (arg_collection[arg_it]); -#line 58 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - arg = _tmp6_; -#line 666 "OAuth1Support.c" - { - PublishingRESTSupportArgument** _tmp7_; - gint _tmp7__length1; - PublishingRESTSupportArgument* _tmp8_; - PublishingRESTSupportArgument* _tmp9_; -#line 59 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - _tmp7_ = base_string_arguments; -#line 59 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - _tmp7__length1 = base_string_arguments_length1; -#line 59 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - _tmp8_ = arg; -#line 59 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - _tmp9_ = _publishing_rest_support_argument_ref0 (_tmp8_); -#line 59 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - _vala_array_add2 (&base_string_arguments, &base_string_arguments_length1, &_base_string_arguments_size_, _tmp9_); -#line 58 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - _publishing_rest_support_argument_unref0 (arg); -#line 684 "OAuth1Support.c" - } - } - } -#line 62 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - _tmp10_ = base_string_arguments; -#line 62 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - _tmp10__length1 = base_string_arguments_length1; -#line 62 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - _tmp12_ = publishing_rest_support_argument_sort (_tmp10_, _tmp10__length1, &_tmp11_); -#line 62 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - sorted_args = _tmp12_; -#line 62 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - sorted_args_length1 = _tmp11_; -#line 62 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - _sorted_args_size_ = sorted_args_length1; -#line 65 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - _tmp13_ = sorted_args; -#line 65 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - _tmp13__length1 = sorted_args_length1; -#line 65 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - _tmp14_ = publishing_rest_support_argument_serialize_list (_tmp13_, _tmp13__length1, FALSE, "&"); -#line 65 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - arguments_string = _tmp14_; -#line 67 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - signing_key = NULL; -#line 68 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - _tmp15_ = self->priv->access_phase_token_secret; -#line 68 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - if (_tmp15_ != NULL) { -#line 714 "OAuth1Support.c" - const gchar* _tmp16_; - gchar* _tmp17_; - gchar* _tmp18_; - const gchar* _tmp19_; - gchar* _tmp20_; -#line 69 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - g_debug ("OAuth1Support.vala:69: access phase token secret available; using it a" \ -"s signing key"); -#line 71 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - _tmp16_ = self->priv->consumer_secret; -#line 71 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - _tmp17_ = g_strconcat (_tmp16_, "&", NULL); -#line 71 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - _tmp18_ = _tmp17_; -#line 71 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - _tmp19_ = self->priv->access_phase_token_secret; -#line 71 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - _tmp20_ = g_strconcat (_tmp18_, _tmp19_, NULL); -#line 71 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - _g_free0 (signing_key); -#line 71 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - signing_key = _tmp20_; -#line 71 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - _g_free0 (_tmp18_); -#line 738 "OAuth1Support.c" - } else { - const gchar* _tmp21_; -#line 72 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - _tmp21_ = self->priv->request_phase_token_secret; -#line 72 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - if (_tmp21_ != NULL) { -#line 745 "OAuth1Support.c" - const gchar* _tmp22_; - gchar* _tmp23_; - gchar* _tmp24_; - const gchar* _tmp25_; - gchar* _tmp26_; -#line 73 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - g_debug ("OAuth1Support.vala:73: request phase token secret available; using it " \ -"as signing key"); -#line 75 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - _tmp22_ = self->priv->consumer_secret; -#line 75 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - _tmp23_ = g_strconcat (_tmp22_, "&", NULL); -#line 75 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - _tmp24_ = _tmp23_; -#line 75 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - _tmp25_ = self->priv->request_phase_token_secret; -#line 75 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - _tmp26_ = g_strconcat (_tmp24_, _tmp25_, NULL); -#line 75 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - _g_free0 (signing_key); -#line 75 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - signing_key = _tmp26_; -#line 75 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - _g_free0 (_tmp24_); -#line 769 "OAuth1Support.c" - } else { - const gchar* _tmp27_; - gchar* _tmp28_; -#line 77 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - g_debug ("OAuth1Support.vala:77: %s", "neither access phase nor request phase token secrets available; using " \ -"API " "key as signing key"); -#line 80 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - _tmp27_ = self->priv->consumer_secret; -#line 80 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - _tmp28_ = g_strconcat (_tmp27_, "&", NULL); -#line 80 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - _g_free0 (signing_key); -#line 80 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - signing_key = _tmp28_; -#line 783 "OAuth1Support.c" - } - } -#line 83 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - _tmp29_ = http_method; -#line 83 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - _tmp30_ = g_strconcat (_tmp29_, "&", NULL); -#line 83 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - _tmp31_ = _tmp30_; -#line 83 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - _tmp32_ = publishing_rest_support_transaction_get_endpoint_url (txn); -#line 83 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - _tmp33_ = _tmp32_; -#line 83 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - _tmp34_ = soup_uri_encode (_tmp33_, PUBLISHING_REST_SUPPORT_OAUTH1_ENCODE_RFC_3986_EXTRA); -#line 83 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - _tmp35_ = _tmp34_; -#line 83 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - _tmp36_ = g_strconcat (_tmp31_, _tmp35_, NULL); -#line 83 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - _tmp37_ = _tmp36_; -#line 83 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - _tmp38_ = g_strconcat (_tmp37_, "&", NULL); -#line 83 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - _tmp39_ = _tmp38_; -#line 83 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - _tmp40_ = arguments_string; -#line 83 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - _tmp41_ = soup_uri_encode (_tmp40_, PUBLISHING_REST_SUPPORT_OAUTH1_ENCODE_RFC_3986_EXTRA); -#line 83 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - _tmp42_ = _tmp41_; -#line 83 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - _tmp43_ = g_strconcat (_tmp39_, _tmp42_, NULL); -#line 83 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - _tmp44_ = _tmp43_; -#line 83 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - _g_free0 (_tmp42_); -#line 83 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - _g_free0 (_tmp39_); -#line 83 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - _g_free0 (_tmp37_); -#line 83 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - _g_free0 (_tmp35_); -#line 83 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - _g_free0 (_tmp33_); -#line 83 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - _g_free0 (_tmp31_); -#line 83 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - signature_base_string = _tmp44_; -#line 87 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - g_debug ("OAuth1Support.vala:87: signature base string = '%s'", signature_base_string); -#line 89 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - _tmp45_ = signing_key; -#line 89 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - g_debug ("OAuth1Support.vala:89: signing key = '%s'", _tmp45_); -#line 92 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - _tmp46_ = signing_key; -#line 92 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - _tmp47_ = publishing_rest_support_hmac_sha1 (_tmp46_, signature_base_string); -#line 92 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - signature = _tmp47_; -#line 93 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - _tmp48_ = signature; -#line 93 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - _tmp49_ = soup_uri_encode (_tmp48_, PUBLISHING_REST_SUPPORT_OAUTH1_ENCODE_RFC_3986_EXTRA); -#line 93 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - _g_free0 (signature); -#line 93 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - signature = _tmp49_; -#line 95 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - _tmp50_ = signature; -#line 95 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - g_debug ("OAuth1Support.vala:95: signature = '%s'", _tmp50_); -#line 97 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - result = signature; -#line 97 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - _g_free0 (signature_base_string); -#line 97 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - _g_free0 (signing_key); -#line 97 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - _g_free0 (arguments_string); -#line 97 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - sorted_args = (_vala_array_free (sorted_args, sorted_args_length1, (GDestroyNotify) publishing_rest_support_argument_unref), NULL); -#line 97 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - base_string_arguments = (_vala_array_free (base_string_arguments, base_string_arguments_length1, (GDestroyNotify) publishing_rest_support_argument_unref), NULL); -#line 97 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - _g_free0 (http_method); -#line 97 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - return result; -#line 872 "OAuth1Support.c" -} - - -void -publishing_rest_support_oauth1_session_set_request_phase_credentials (PublishingRESTSupportOAuth1Session* self, - const gchar* token, - const gchar* secret) -{ - gchar* _tmp0_; - gchar* _tmp1_; -#line 100 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - g_return_if_fail (PUBLISHING_REST_SUPPORT_OAUTH1_IS_SESSION (self)); -#line 100 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - g_return_if_fail (token != NULL); -#line 100 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - g_return_if_fail (secret != NULL); -#line 101 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - _tmp0_ = g_strdup (token); -#line 101 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - _g_free0 (self->priv->request_phase_token); -#line 101 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - self->priv->request_phase_token = _tmp0_; -#line 102 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - _tmp1_ = g_strdup (secret); -#line 102 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - _g_free0 (self->priv->request_phase_token_secret); -#line 102 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - self->priv->request_phase_token_secret = _tmp1_; -#line 901 "OAuth1Support.c" -} - - -void -publishing_rest_support_oauth1_session_set_access_phase_credentials (PublishingRESTSupportOAuth1Session* self, - const gchar* token, - const gchar* secret, - const gchar* username) -{ - gchar* _tmp0_; - gchar* _tmp1_; - gchar* _tmp2_; -#line 105 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - g_return_if_fail (PUBLISHING_REST_SUPPORT_OAUTH1_IS_SESSION (self)); -#line 105 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - g_return_if_fail (token != NULL); -#line 105 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - g_return_if_fail (secret != NULL); -#line 105 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - g_return_if_fail (username != NULL); -#line 106 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - _tmp0_ = g_strdup (token); -#line 106 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - _g_free0 (self->priv->access_phase_token); -#line 106 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - self->priv->access_phase_token = _tmp0_; -#line 107 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - _tmp1_ = g_strdup (secret); -#line 107 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - _g_free0 (self->priv->access_phase_token_secret); -#line 107 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - self->priv->access_phase_token_secret = _tmp1_; -#line 108 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - _tmp2_ = g_strdup (username); -#line 108 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - _g_free0 (self->priv->username); -#line 108 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - self->priv->username = _tmp2_; -#line 110 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - g_signal_emit_by_name (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_SESSION, PublishingRESTSupportSession), "authenticated"); -#line 942 "OAuth1Support.c" -} - - -gchar* -publishing_rest_support_oauth1_session_get_oauth_nonce (PublishingRESTSupportOAuth1Session* self) -{ - gchar* result = NULL; - GTimeVal currtime = {0}; - GTimeVal _tmp0_; - glong _tmp1_; - gchar* _tmp2_; - gchar* _tmp3_; - GTimeVal _tmp4_; - glong _tmp5_; - gchar* _tmp6_; - gchar* _tmp7_; - gchar* _tmp8_; - gchar* _tmp9_; - gchar* _tmp10_; - gchar* _tmp11_; -#line 113 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - g_return_val_if_fail (PUBLISHING_REST_SUPPORT_OAUTH1_IS_SESSION (self), NULL); -#line 114 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - g_get_current_time (&currtime); -#line 115 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - g_get_current_time (&currtime); -#line 117 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - _tmp0_ = currtime; -#line 117 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - _tmp1_ = _tmp0_.tv_sec; -#line 117 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - _tmp2_ = g_strdup_printf ("%li", _tmp1_); -#line 117 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - _tmp3_ = _tmp2_; -#line 117 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - _tmp4_ = currtime; -#line 117 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - _tmp5_ = _tmp4_.tv_usec; -#line 117 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - _tmp6_ = g_strdup_printf ("%li", _tmp5_); -#line 117 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - _tmp7_ = _tmp6_; -#line 117 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - _tmp8_ = g_strconcat (_tmp3_, _tmp7_, NULL); -#line 117 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - _tmp9_ = _tmp8_; -#line 117 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - _tmp10_ = g_compute_checksum_for_string (G_CHECKSUM_MD5, _tmp9_, (gsize) -1); -#line 117 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - _tmp11_ = _tmp10_; -#line 117 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - _g_free0 (_tmp9_); -#line 117 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - _g_free0 (_tmp7_); -#line 117 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - _g_free0 (_tmp3_); -#line 117 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - result = _tmp11_; -#line 117 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - return result; -#line 1003 "OAuth1Support.c" -} - - -static glong -string_strnlen (gchar* str, - glong maxlen) -{ - glong result = 0L; - gchar* end = NULL; - gchar* _tmp0_; - gchar* _tmp1_; -#line 1336 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp0_ = memchr (str, 0, (gsize) maxlen); -#line 1336 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - end = _tmp0_; -#line 1337 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp1_ = end; -#line 1337 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - if (_tmp1_ == NULL) { -#line 1338 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - result = maxlen; -#line 1338 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - return result; -#line 1027 "OAuth1Support.c" - } else { - gchar* _tmp2_; -#line 1340 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp2_ = end; -#line 1340 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - result = (glong) (_tmp2_ - str); -#line 1340 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - return result; -#line 1036 "OAuth1Support.c" - } -} - - -static gchar* -string_substring (const gchar* self, - glong offset, - glong len) -{ - gchar* result = NULL; - glong string_length = 0L; - gboolean _tmp0_ = FALSE; - glong _tmp6_; - gchar* _tmp7_; -#line 1347 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - g_return_val_if_fail (self != NULL, NULL); -#line 1349 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - if (offset >= ((glong) 0)) { -#line 1349 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp0_ = len >= ((glong) 0); -#line 1057 "OAuth1Support.c" - } else { -#line 1349 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp0_ = FALSE; -#line 1061 "OAuth1Support.c" - } -#line 1349 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - if (_tmp0_) { -#line 1351 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - string_length = string_strnlen ((gchar*) self, offset + len); -#line 1067 "OAuth1Support.c" - } else { - gint _tmp1_; - gint _tmp2_; -#line 1353 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp1_ = strlen (self); -#line 1353 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp2_ = _tmp1_; -#line 1353 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - string_length = (glong) _tmp2_; -#line 1077 "OAuth1Support.c" - } -#line 1356 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - if (offset < ((glong) 0)) { -#line 1081 "OAuth1Support.c" - glong _tmp3_; -#line 1357 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp3_ = string_length; -#line 1357 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - offset = _tmp3_ + offset; -#line 1358 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - g_return_val_if_fail (offset >= ((glong) 0), NULL); -#line 1089 "OAuth1Support.c" - } else { - glong _tmp4_; -#line 1360 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp4_ = string_length; -#line 1360 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - g_return_val_if_fail (offset <= _tmp4_, NULL); -#line 1096 "OAuth1Support.c" - } -#line 1362 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - if (len < ((glong) 0)) { -#line 1100 "OAuth1Support.c" - glong _tmp5_; -#line 1363 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp5_ = string_length; -#line 1363 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - len = _tmp5_ - offset; -#line 1106 "OAuth1Support.c" - } -#line 1365 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp6_ = string_length; -#line 1365 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - g_return_val_if_fail ((offset + len) <= _tmp6_, NULL); -#line 1366 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp7_ = g_strndup (((gchar*) self) + offset, (gsize) len); -#line 1366 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - result = _tmp7_; -#line 1366 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - return result; -#line 1118 "OAuth1Support.c" -} - - -gchar* -publishing_rest_support_oauth1_session_get_oauth_timestamp (PublishingRESTSupportOAuth1Session* self) -{ - gchar* result = NULL; - gchar* _tmp0_; - gchar* _tmp1_; - gchar* _tmp2_; - gchar* _tmp3_; -#line 121 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - g_return_val_if_fail (PUBLISHING_REST_SUPPORT_OAUTH1_IS_SESSION (self), NULL); -#line 122 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - _tmp0_ = g_strdup_printf ("%" G_GINT64_FORMAT, g_get_real_time ()); -#line 122 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - _tmp1_ = _tmp0_; -#line 122 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - _tmp2_ = string_substring (_tmp1_, (glong) 0, (glong) 10); -#line 122 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - _tmp3_ = _tmp2_; -#line 122 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - _g_free0 (_tmp1_); -#line 122 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - result = _tmp3_; -#line 122 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - return result; -#line 1146 "OAuth1Support.c" -} - - -gchar* -publishing_rest_support_oauth1_session_get_consumer_key (PublishingRESTSupportOAuth1Session* self) -{ - gchar* result = NULL; - const gchar* _tmp0_; - const gchar* _tmp1_; - gchar* _tmp2_; -#line 125 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - g_return_val_if_fail (PUBLISHING_REST_SUPPORT_OAUTH1_IS_SESSION (self), NULL); -#line 126 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - _tmp0_ = self->priv->consumer_key; -#line 126 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - _vala_assert (_tmp0_ != NULL, "consumer_key != null"); -#line 127 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - _tmp1_ = self->priv->consumer_key; -#line 127 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - _tmp2_ = g_strdup (_tmp1_); -#line 127 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - result = _tmp2_; -#line 127 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - return result; -#line 1171 "OAuth1Support.c" -} - - -gchar* -publishing_rest_support_oauth1_session_get_request_phase_token (PublishingRESTSupportOAuth1Session* self) -{ - gchar* result = NULL; - const gchar* _tmp0_; - const gchar* _tmp1_; - gchar* _tmp2_; -#line 130 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - g_return_val_if_fail (PUBLISHING_REST_SUPPORT_OAUTH1_IS_SESSION (self), NULL); -#line 131 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - _tmp0_ = self->priv->request_phase_token; -#line 131 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - _vala_assert (_tmp0_ != NULL, "request_phase_token != null"); -#line 132 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - _tmp1_ = self->priv->request_phase_token; -#line 132 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - _tmp2_ = g_strdup (_tmp1_); -#line 132 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - result = _tmp2_; -#line 132 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - return result; -#line 1196 "OAuth1Support.c" -} - - -gchar* -publishing_rest_support_oauth1_session_get_access_phase_token (PublishingRESTSupportOAuth1Session* self) -{ - gchar* result = NULL; - const gchar* _tmp0_; - const gchar* _tmp1_; - gchar* _tmp2_; -#line 135 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - g_return_val_if_fail (PUBLISHING_REST_SUPPORT_OAUTH1_IS_SESSION (self), NULL); -#line 136 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - _tmp0_ = self->priv->access_phase_token; -#line 136 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - _vala_assert (_tmp0_ != NULL, "access_phase_token != null"); -#line 137 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - _tmp1_ = self->priv->access_phase_token; -#line 137 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - _tmp2_ = g_strdup (_tmp1_); -#line 137 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - result = _tmp2_; -#line 137 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - return result; -#line 1221 "OAuth1Support.c" -} - - -gboolean -publishing_rest_support_oauth1_session_has_access_phase_token (PublishingRESTSupportOAuth1Session* self) -{ - gboolean result = FALSE; - const gchar* _tmp0_; -#line 140 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - g_return_val_if_fail (PUBLISHING_REST_SUPPORT_OAUTH1_IS_SESSION (self), FALSE); -#line 141 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - _tmp0_ = self->priv->access_phase_token; -#line 141 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - result = _tmp0_ != NULL; -#line 141 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - return result; -#line 1238 "OAuth1Support.c" -} - - -gchar* -publishing_rest_support_oauth1_session_get_access_phase_token_secret (PublishingRESTSupportOAuth1Session* self) -{ - gchar* result = NULL; - const gchar* _tmp0_; - const gchar* _tmp1_; - gchar* _tmp2_; -#line 144 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - g_return_val_if_fail (PUBLISHING_REST_SUPPORT_OAUTH1_IS_SESSION (self), NULL); -#line 145 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - _tmp0_ = self->priv->access_phase_token_secret; -#line 145 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - _vala_assert (_tmp0_ != NULL, "access_phase_token_secret != null"); -#line 146 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - _tmp1_ = self->priv->access_phase_token_secret; -#line 146 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - _tmp2_ = g_strdup (_tmp1_); -#line 146 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - result = _tmp2_; -#line 146 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - return result; -#line 1263 "OAuth1Support.c" -} - - -gchar* -publishing_rest_support_oauth1_session_get_username (PublishingRESTSupportOAuth1Session* self) -{ - gchar* result = NULL; - const gchar* _tmp0_; - gchar* _tmp1_; -#line 149 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - g_return_val_if_fail (PUBLISHING_REST_SUPPORT_OAUTH1_IS_SESSION (self), NULL); -#line 150 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - _vala_assert (publishing_rest_support_session_is_authenticated (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_SESSION, PublishingRESTSupportSession)), "is_authenticated()"); -#line 151 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - _tmp0_ = self->priv->username; -#line 151 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - _tmp1_ = g_strdup (_tmp0_); -#line 151 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - result = _tmp1_; -#line 151 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - return result; -#line 1285 "OAuth1Support.c" -} - - -static void -publishing_rest_support_oauth1_session_class_init (PublishingRESTSupportOAuth1SessionClass * klass) -{ -#line 11 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - publishing_rest_support_oauth1_session_parent_class = g_type_class_peek_parent (klass); -#line 11 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - ((PublishingRESTSupportSessionClass *) klass)->finalize = publishing_rest_support_oauth1_session_finalize; -#line 11 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - g_type_class_add_private (klass, sizeof (PublishingRESTSupportOAuth1SessionPrivate)); -#line 11 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - ((PublishingRESTSupportSessionClass *) klass)->is_authenticated = (gboolean (*) (PublishingRESTSupportSession *)) publishing_rest_support_oauth1_session_real_is_authenticated; -#line 1300 "OAuth1Support.c" -} - - -static void -publishing_rest_support_oauth1_session_instance_init (PublishingRESTSupportOAuth1Session * self) -{ -#line 11 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - self->priv = PUBLISHING_REST_SUPPORT_OAUTH1_SESSION_GET_PRIVATE (self); -#line 12 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - self->priv->request_phase_token = NULL; -#line 13 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - self->priv->request_phase_token_secret = NULL; -#line 14 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - self->priv->access_phase_token = NULL; -#line 15 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - self->priv->access_phase_token_secret = NULL; -#line 16 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - self->priv->username = NULL; -#line 17 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - self->priv->consumer_key = NULL; -#line 18 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - self->priv->consumer_secret = NULL; -#line 1323 "OAuth1Support.c" -} - - -static void -publishing_rest_support_oauth1_session_finalize (PublishingRESTSupportSession * obj) -{ - PublishingRESTSupportOAuth1Session * self; -#line 11 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, PUBLISHING_REST_SUPPORT_OAUTH1_TYPE_SESSION, PublishingRESTSupportOAuth1Session); -#line 12 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - _g_free0 (self->priv->request_phase_token); -#line 13 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - _g_free0 (self->priv->request_phase_token_secret); -#line 14 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - _g_free0 (self->priv->access_phase_token); -#line 15 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - _g_free0 (self->priv->access_phase_token_secret); -#line 16 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - _g_free0 (self->priv->username); -#line 17 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - _g_free0 (self->priv->consumer_key); -#line 18 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - _g_free0 (self->priv->consumer_secret); -#line 11 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - PUBLISHING_REST_SUPPORT_SESSION_CLASS (publishing_rest_support_oauth1_session_parent_class)->finalize (obj); -#line 1349 "OAuth1Support.c" -} - - -GType -publishing_rest_support_oauth1_session_get_type (void) -{ - static volatile gsize publishing_rest_support_oauth1_session_type_id__volatile = 0; - if (g_once_init_enter (&publishing_rest_support_oauth1_session_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (PublishingRESTSupportOAuth1SessionClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) publishing_rest_support_oauth1_session_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PublishingRESTSupportOAuth1Session), 0, (GInstanceInitFunc) publishing_rest_support_oauth1_session_instance_init, NULL }; - GType publishing_rest_support_oauth1_session_type_id; - publishing_rest_support_oauth1_session_type_id = g_type_register_static (PUBLISHING_REST_SUPPORT_TYPE_SESSION, "PublishingRESTSupportOAuth1Session", &g_define_type_info, 0); - g_once_init_leave (&publishing_rest_support_oauth1_session_type_id__volatile, publishing_rest_support_oauth1_session_type_id); - } - return publishing_rest_support_oauth1_session_type_id__volatile; -} - - -PublishingRESTSupportOAuth1Transaction* -publishing_rest_support_oauth1_transaction_construct (GType object_type, - PublishingRESTSupportOAuth1Session* session, - PublishingRESTSupportHttpMethod method) -{ - PublishingRESTSupportOAuth1Transaction* self = NULL; -#line 156 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - g_return_val_if_fail (PUBLISHING_REST_SUPPORT_OAUTH1_IS_SESSION (session), NULL); -#line 158 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - self = (PublishingRESTSupportOAuth1Transaction*) publishing_rest_support_transaction_construct (object_type, G_TYPE_CHECK_INSTANCE_CAST (session, PUBLISHING_REST_SUPPORT_TYPE_SESSION, PublishingRESTSupportSession), method); -#line 159 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - publishing_rest_support_oauth1_transaction_setup_arguments (self); -#line 156 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - return self; -#line 1381 "OAuth1Support.c" -} - - -PublishingRESTSupportOAuth1Transaction* -publishing_rest_support_oauth1_transaction_new (PublishingRESTSupportOAuth1Session* session, - PublishingRESTSupportHttpMethod method) -{ -#line 156 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - return publishing_rest_support_oauth1_transaction_construct (PUBLISHING_REST_SUPPORT_OAUTH1_TYPE_TRANSACTION, session, method); -#line 1391 "OAuth1Support.c" -} - - -PublishingRESTSupportOAuth1Transaction* -publishing_rest_support_oauth1_transaction_construct_with_uri (GType object_type, - PublishingRESTSupportOAuth1Session* session, - const gchar* uri, - PublishingRESTSupportHttpMethod method) -{ - PublishingRESTSupportOAuth1Transaction* self = NULL; -#line 162 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - g_return_val_if_fail (PUBLISHING_REST_SUPPORT_OAUTH1_IS_SESSION (session), NULL); -#line 162 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - g_return_val_if_fail (uri != NULL, NULL); -#line 164 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - self = (PublishingRESTSupportOAuth1Transaction*) publishing_rest_support_transaction_construct_with_endpoint_url (object_type, G_TYPE_CHECK_INSTANCE_CAST (session, PUBLISHING_REST_SUPPORT_TYPE_SESSION, PublishingRESTSupportSession), uri, method); -#line 165 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - publishing_rest_support_oauth1_transaction_setup_arguments (self); -#line 162 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - return self; -#line 1412 "OAuth1Support.c" -} - - -PublishingRESTSupportOAuth1Transaction* -publishing_rest_support_oauth1_transaction_new_with_uri (PublishingRESTSupportOAuth1Session* session, - const gchar* uri, - PublishingRESTSupportHttpMethod method) -{ -#line 162 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - return publishing_rest_support_oauth1_transaction_construct_with_uri (PUBLISHING_REST_SUPPORT_OAUTH1_TYPE_TRANSACTION, session, uri, method); -#line 1423 "OAuth1Support.c" -} - - -static void -publishing_rest_support_oauth1_transaction_setup_arguments (PublishingRESTSupportOAuth1Transaction* self) -{ - PublishingRESTSupportOAuth1Session* session = NULL; - PublishingRESTSupportSession* _tmp0_; - PublishingRESTSupportOAuth1Session* _tmp1_; - gchar* _tmp2_; - gchar* _tmp3_; - PublishingRESTSupportOAuth1Session* _tmp4_; - gchar* _tmp5_; - gchar* _tmp6_; - PublishingRESTSupportOAuth1Session* _tmp7_; - gchar* _tmp8_; - gchar* _tmp9_; - PublishingRESTSupportOAuth1Session* _tmp10_; -#line 168 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - g_return_if_fail (PUBLISHING_REST_SUPPORT_OAUTH1_IS_TRANSACTION (self)); -#line 169 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - _tmp0_ = publishing_rest_support_transaction_get_parent_session (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction)); -#line 169 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - session = G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, PUBLISHING_REST_SUPPORT_OAUTH1_TYPE_SESSION, PublishingRESTSupportOAuth1Session); -#line 171 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - _tmp1_ = session; -#line 171 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - _tmp2_ = publishing_rest_support_oauth1_session_get_oauth_nonce (_tmp1_); -#line 171 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - _tmp3_ = _tmp2_; -#line 171 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - publishing_rest_support_transaction_add_argument (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "oauth_nonce", _tmp3_); -#line 171 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - _g_free0 (_tmp3_); -#line 172 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - publishing_rest_support_transaction_add_argument (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "oauth_signature_method", "HMAC-SHA1"); -#line 173 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - publishing_rest_support_transaction_add_argument (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "oauth_version", "1.0"); -#line 174 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - _tmp4_ = session; -#line 174 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - _tmp5_ = publishing_rest_support_oauth1_session_get_oauth_timestamp (_tmp4_); -#line 174 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - _tmp6_ = _tmp5_; -#line 174 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - publishing_rest_support_transaction_add_argument (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "oauth_timestamp", _tmp6_); -#line 174 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - _g_free0 (_tmp6_); -#line 175 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - _tmp7_ = session; -#line 175 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - _tmp8_ = publishing_rest_support_oauth1_session_get_consumer_key (_tmp7_); -#line 175 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - _tmp9_ = _tmp8_; -#line 175 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - publishing_rest_support_transaction_add_argument (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "oauth_consumer_key", _tmp9_); -#line 175 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - _g_free0 (_tmp9_); -#line 176 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - _tmp10_ = session; -#line 176 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - if (publishing_rest_support_oauth1_session_has_access_phase_token (_tmp10_)) { -#line 1486 "OAuth1Support.c" - PublishingRESTSupportOAuth1Session* _tmp11_; - gchar* _tmp12_; - gchar* _tmp13_; -#line 177 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - _tmp11_ = session; -#line 177 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - _tmp12_ = publishing_rest_support_oauth1_session_get_access_phase_token (_tmp11_); -#line 177 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - _tmp13_ = _tmp12_; -#line 177 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - publishing_rest_support_transaction_add_argument (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "oauth_token", _tmp13_); -#line 177 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - _g_free0 (_tmp13_); -#line 1500 "OAuth1Support.c" - } -#line 168 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - _publishing_rest_support_session_unref0 (session); -#line 1504 "OAuth1Support.c" -} - - -static void -publishing_rest_support_oauth1_transaction_real_execute (PublishingRESTSupportTransaction* base, - GError** error) -{ - PublishingRESTSupportOAuth1Transaction * self; - gchar* signature = NULL; - PublishingRESTSupportSession* _tmp0_; - PublishingRESTSupportOAuth1Session* _tmp1_; - gchar* _tmp2_; - gchar* _tmp3_; - GError * _inner_error_ = NULL; -#line 182 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_REST_SUPPORT_OAUTH1_TYPE_TRANSACTION, PublishingRESTSupportOAuth1Transaction); -#line 183 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - _tmp0_ = publishing_rest_support_transaction_get_parent_session (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction)); -#line 183 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - _tmp1_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, PUBLISHING_REST_SUPPORT_OAUTH1_TYPE_SESSION, PublishingRESTSupportOAuth1Session); -#line 183 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - _tmp2_ = publishing_rest_support_oauth1_session_sign_transaction (_tmp1_, G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), NULL, 0); -#line 183 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - _tmp3_ = _tmp2_; -#line 183 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - _publishing_rest_support_session_unref0 (_tmp1_); -#line 183 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - signature = _tmp3_; -#line 184 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - publishing_rest_support_transaction_add_argument (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "oauth_signature", signature); -#line 186 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - PUBLISHING_REST_SUPPORT_TRANSACTION_CLASS (publishing_rest_support_oauth1_transaction_parent_class)->execute (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), &_inner_error_); -#line 186 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 186 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - if (_inner_error_->domain == SPIT_PUBLISHING_PUBLISHING_ERROR) { -#line 186 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - g_propagate_error (error, _inner_error_); -#line 186 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - _g_free0 (signature); -#line 186 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - return; -#line 1547 "OAuth1Support.c" - } else { -#line 186 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - _g_free0 (signature); -#line 186 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.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 186 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - g_clear_error (&_inner_error_); -#line 186 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - return; -#line 1557 "OAuth1Support.c" - } - } -#line 182 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - _g_free0 (signature); -#line 1562 "OAuth1Support.c" -} - - -static void -publishing_rest_support_oauth1_transaction_class_init (PublishingRESTSupportOAuth1TransactionClass * klass) -{ -#line 155 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - publishing_rest_support_oauth1_transaction_parent_class = g_type_class_peek_parent (klass); -#line 155 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - ((PublishingRESTSupportTransactionClass *) klass)->execute = (void (*) (PublishingRESTSupportTransaction *, GError**)) publishing_rest_support_oauth1_transaction_real_execute; -#line 1573 "OAuth1Support.c" -} - - -static void -publishing_rest_support_oauth1_transaction_instance_init (PublishingRESTSupportOAuth1Transaction * self) -{ -} - - -GType -publishing_rest_support_oauth1_transaction_get_type (void) -{ - static volatile gsize publishing_rest_support_oauth1_transaction_type_id__volatile = 0; - if (g_once_init_enter (&publishing_rest_support_oauth1_transaction_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (PublishingRESTSupportOAuth1TransactionClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) publishing_rest_support_oauth1_transaction_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PublishingRESTSupportOAuth1Transaction), 0, (GInstanceInitFunc) publishing_rest_support_oauth1_transaction_instance_init, NULL }; - GType publishing_rest_support_oauth1_transaction_type_id; - publishing_rest_support_oauth1_transaction_type_id = g_type_register_static (PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, "PublishingRESTSupportOAuth1Transaction", &g_define_type_info, 0); - g_once_init_leave (&publishing_rest_support_oauth1_transaction_type_id__volatile, publishing_rest_support_oauth1_transaction_type_id); - } - return publishing_rest_support_oauth1_transaction_type_id__volatile; -} - - -PublishingRESTSupportOAuth1UploadTransaction* -publishing_rest_support_oauth1_upload_transaction_construct (GType object_type, - PublishingRESTSupportOAuth1Session* session, - SpitPublishingPublishable* publishable, - const gchar* endpoint_uri) -{ - PublishingRESTSupportOAuth1UploadTransaction* self = NULL; - PublishingRESTSupportArgument** _tmp0_; - gchar* _tmp1_; - gchar* _tmp2_; - gchar* _tmp3_; - gchar* _tmp4_; - gchar* _tmp5_; - gchar* _tmp6_; - gchar* _tmp7_; - gchar* _tmp8_; -#line 194 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - g_return_val_if_fail (PUBLISHING_REST_SUPPORT_OAUTH1_IS_SESSION (session), NULL); -#line 194 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - g_return_val_if_fail (SPIT_PUBLISHING_IS_PUBLISHABLE (publishable), NULL); -#line 194 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - g_return_val_if_fail (endpoint_uri != NULL, NULL); -#line 197 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - self = (PublishingRESTSupportOAuth1UploadTransaction*) publishing_rest_support_upload_transaction_construct_with_endpoint_url (object_type, G_TYPE_CHECK_INSTANCE_CAST (session, PUBLISHING_REST_SUPPORT_TYPE_SESSION, PublishingRESTSupportSession), publishable, endpoint_uri); -#line 199 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - _tmp0_ = g_new0 (PublishingRESTSupportArgument*, 0 + 1); -#line 199 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - self->priv->auth_header_fields = (_vala_array_free (self->priv->auth_header_fields, self->priv->auth_header_fields_length1, (GDestroyNotify) publishing_rest_support_argument_unref), NULL); -#line 199 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - self->priv->auth_header_fields = _tmp0_; -#line 199 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - self->priv->auth_header_fields_length1 = 0; -#line 199 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - self->priv->_auth_header_fields_size_ = self->priv->auth_header_fields_length1; -#line 200 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - self->session = session; -#line 202 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - _tmp1_ = publishing_rest_support_oauth1_session_get_oauth_nonce (session); -#line 202 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - _tmp2_ = _tmp1_; -#line 202 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - publishing_rest_support_oauth1_upload_transaction_add_authorization_header_field (self, "oauth_nonce", _tmp2_); -#line 202 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - _g_free0 (_tmp2_); -#line 203 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - publishing_rest_support_oauth1_upload_transaction_add_authorization_header_field (self, "oauth_signature_method", "HMAC-SHA1"); -#line 204 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - publishing_rest_support_oauth1_upload_transaction_add_authorization_header_field (self, "oauth_version", "1.0"); -#line 205 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - _tmp3_ = publishing_rest_support_oauth1_session_get_oauth_timestamp (session); -#line 205 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - _tmp4_ = _tmp3_; -#line 205 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - publishing_rest_support_oauth1_upload_transaction_add_authorization_header_field (self, "oauth_timestamp", _tmp4_); -#line 205 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - _g_free0 (_tmp4_); -#line 206 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - _tmp5_ = publishing_rest_support_oauth1_session_get_consumer_key (session); -#line 206 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - _tmp6_ = _tmp5_; -#line 206 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - publishing_rest_support_oauth1_upload_transaction_add_authorization_header_field (self, "oauth_consumer_key", _tmp6_); -#line 206 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - _g_free0 (_tmp6_); -#line 207 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - _tmp7_ = publishing_rest_support_oauth1_session_get_access_phase_token (session); -#line 207 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - _tmp8_ = _tmp7_; -#line 207 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - publishing_rest_support_oauth1_upload_transaction_add_authorization_header_field (self, "oauth_token", _tmp8_); -#line 207 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - _g_free0 (_tmp8_); -#line 194 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - return self; -#line 1671 "OAuth1Support.c" -} - - -PublishingRESTSupportOAuth1UploadTransaction* -publishing_rest_support_oauth1_upload_transaction_new (PublishingRESTSupportOAuth1Session* session, - SpitPublishingPublishable* publishable, - const gchar* endpoint_uri) -{ -#line 194 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - return publishing_rest_support_oauth1_upload_transaction_construct (PUBLISHING_REST_SUPPORT_OAUTH1_TYPE_UPLOAD_TRANSACTION, session, publishable, endpoint_uri); -#line 1682 "OAuth1Support.c" -} - - -static void -_vala_array_add3 (PublishingRESTSupportArgument** * array, - int* length, - int* size, - PublishingRESTSupportArgument* value) -{ -#line 211 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - if ((*length) == (*size)) { -#line 211 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - *size = (*size) ? (2 * (*size)) : 4; -#line 211 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - *array = g_renew (PublishingRESTSupportArgument*, *array, (*size) + 1); -#line 1698 "OAuth1Support.c" - } -#line 211 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - (*array)[(*length)++] = value; -#line 211 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - (*array)[*length] = NULL; -#line 1704 "OAuth1Support.c" -} - - -void -publishing_rest_support_oauth1_upload_transaction_add_authorization_header_field (PublishingRESTSupportOAuth1UploadTransaction* self, - const gchar* key, - const gchar* value) -{ - PublishingRESTSupportArgument** _tmp0_; - gint _tmp0__length1; - PublishingRESTSupportArgument* _tmp1_; -#line 210 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - g_return_if_fail (PUBLISHING_REST_SUPPORT_OAUTH1_IS_UPLOAD_TRANSACTION (self)); -#line 210 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - g_return_if_fail (key != NULL); -#line 210 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - g_return_if_fail (value != NULL); -#line 211 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - _tmp0_ = self->priv->auth_header_fields; -#line 211 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - _tmp0__length1 = self->priv->auth_header_fields_length1; -#line 211 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - _tmp1_ = publishing_rest_support_argument_new (key, value); -#line 211 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - _vala_array_add3 (&self->priv->auth_header_fields, &self->priv->auth_header_fields_length1, &self->priv->_auth_header_fields_size_, _tmp1_); -#line 1730 "OAuth1Support.c" -} - - -gchar* -publishing_rest_support_oauth1_upload_transaction_get_authorization_header_string (PublishingRESTSupportOAuth1UploadTransaction* self) -{ - gchar* result = NULL; - PublishingRESTSupportArgument** _tmp0_; - gint _tmp0__length1; - gchar* _tmp1_; - gchar* _tmp2_; - gchar* _tmp3_; - gchar* _tmp4_; -#line 214 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - g_return_val_if_fail (PUBLISHING_REST_SUPPORT_OAUTH1_IS_UPLOAD_TRANSACTION (self), NULL); -#line 215 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - _tmp0_ = self->priv->auth_header_fields; -#line 215 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - _tmp0__length1 = self->priv->auth_header_fields_length1; -#line 215 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - _tmp1_ = publishing_rest_support_argument_serialize_list (_tmp0_, _tmp0__length1, TRUE, ", "); -#line 215 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - _tmp2_ = _tmp1_; -#line 215 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - _tmp3_ = g_strconcat ("OAuth ", _tmp2_, NULL); -#line 215 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - _tmp4_ = _tmp3_; -#line 215 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - _g_free0 (_tmp2_); -#line 215 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - result = _tmp4_; -#line 215 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - return result; -#line 1764 "OAuth1Support.c" -} - - -void -publishing_rest_support_oauth1_upload_transaction_authorize (PublishingRESTSupportOAuth1UploadTransaction* self) -{ - gchar* signature = NULL; - PublishingRESTSupportOAuth1Session* _tmp0_; - PublishingRESTSupportArgument** _tmp1_; - gint _tmp1__length1; - gchar* _tmp2_; - gchar* authorization_header = NULL; - gchar* _tmp3_; -#line 218 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - g_return_if_fail (PUBLISHING_REST_SUPPORT_OAUTH1_IS_UPLOAD_TRANSACTION (self)); -#line 219 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - _tmp0_ = self->session; -#line 219 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - _tmp1_ = self->priv->auth_header_fields; -#line 219 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - _tmp1__length1 = self->priv->auth_header_fields_length1; -#line 219 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - _tmp2_ = publishing_rest_support_oauth1_session_sign_transaction (_tmp0_, G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), _tmp1_, _tmp1__length1); -#line 219 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - signature = _tmp2_; -#line 220 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - publishing_rest_support_oauth1_upload_transaction_add_authorization_header_field (self, "oauth_signature", signature); -#line 223 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - _tmp3_ = publishing_rest_support_oauth1_upload_transaction_get_authorization_header_string (self); -#line 223 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - authorization_header = _tmp3_; -#line 225 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - g_debug ("OAuth1Support.vala:225: executing upload transaction: authorization he" \ -"ader string = '%s'", authorization_header); -#line 227 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - publishing_rest_support_transaction_add_header (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "Authorization", authorization_header); -#line 218 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - _g_free0 (authorization_header); -#line 218 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - _g_free0 (signature); -#line 1804 "OAuth1Support.c" -} - - -static void -publishing_rest_support_oauth1_upload_transaction_class_init (PublishingRESTSupportOAuth1UploadTransactionClass * klass) -{ -#line 190 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - publishing_rest_support_oauth1_upload_transaction_parent_class = g_type_class_peek_parent (klass); -#line 190 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - ((PublishingRESTSupportTransactionClass *) klass)->finalize = publishing_rest_support_oauth1_upload_transaction_finalize; -#line 190 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - g_type_class_add_private (klass, sizeof (PublishingRESTSupportOAuth1UploadTransactionPrivate)); -#line 1817 "OAuth1Support.c" -} - - -static void -publishing_rest_support_oauth1_upload_transaction_instance_init (PublishingRESTSupportOAuth1UploadTransaction * self) -{ -#line 190 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - self->priv = PUBLISHING_REST_SUPPORT_OAUTH1_UPLOAD_TRANSACTION_GET_PRIVATE (self); -#line 1826 "OAuth1Support.c" -} - - -static void -publishing_rest_support_oauth1_upload_transaction_finalize (PublishingRESTSupportTransaction * obj) -{ - PublishingRESTSupportOAuth1UploadTransaction * self; -#line 190 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, PUBLISHING_REST_SUPPORT_OAUTH1_TYPE_UPLOAD_TRANSACTION, PublishingRESTSupportOAuth1UploadTransaction); -#line 192 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - self->priv->auth_header_fields = (_vala_array_free (self->priv->auth_header_fields, self->priv->auth_header_fields_length1, (GDestroyNotify) publishing_rest_support_argument_unref), NULL); -#line 190 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - PUBLISHING_REST_SUPPORT_TRANSACTION_CLASS (publishing_rest_support_oauth1_upload_transaction_parent_class)->finalize (obj); -#line 1840 "OAuth1Support.c" -} - - -GType -publishing_rest_support_oauth1_upload_transaction_get_type (void) -{ - static volatile gsize publishing_rest_support_oauth1_upload_transaction_type_id__volatile = 0; - if (g_once_init_enter (&publishing_rest_support_oauth1_upload_transaction_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (PublishingRESTSupportOAuth1UploadTransactionClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) publishing_rest_support_oauth1_upload_transaction_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PublishingRESTSupportOAuth1UploadTransaction), 0, (GInstanceInitFunc) publishing_rest_support_oauth1_upload_transaction_instance_init, NULL }; - GType publishing_rest_support_oauth1_upload_transaction_type_id; - publishing_rest_support_oauth1_upload_transaction_type_id = g_type_register_static (PUBLISHING_REST_SUPPORT_TYPE_UPLOAD_TRANSACTION, "PublishingRESTSupportOAuth1UploadTransaction", &g_define_type_info, 0); - g_once_init_leave (&publishing_rest_support_oauth1_upload_transaction_type_id__volatile, publishing_rest_support_oauth1_upload_transaction_type_id); - } - return publishing_rest_support_oauth1_upload_transaction_type_id__volatile; -} - - -static void -_vala_array_destroy (gpointer array, - gint array_length, - GDestroyNotify destroy_func) -{ - if ((array != NULL) && (destroy_func != NULL)) { - int i; - for (i = 0; i < array_length; i = i + 1) { - if (((gpointer*) array)[i] != NULL) { - destroy_func (((gpointer*) array)[i]); - } - } - } -} - - -static void -_vala_array_free (gpointer array, - gint array_length, - GDestroyNotify destroy_func) -{ - _vala_array_destroy (array, array_length, destroy_func); - g_free (array); -} - - - diff --git a/plugins/common/RESTSupport.c b/plugins/common/RESTSupport.c deleted file mode 100644 index c19445f..0000000 --- a/plugins/common/RESTSupport.c +++ /dev/null @@ -1,7826 +0,0 @@ -/* RESTSupport.c generated by valac 0.40.4, the Vala compiler - * generated from RESTSupport.vala, do not modify */ - -/* Copyright 2016 Software Freedom Conservancy Inc. - * - * This software is licensed under the GNU Lesser General Public License - * (version 2.1 or later). See the COPYING file in this distribution. - */ - - -#include -#include -#include -#include -#include -#include "shotwell-plugin-dev-1.0.h" -#include -#include -#include -#include -#include -#include -#include -#include -#include - -#define _g_hmac_unref0(var) ((var == NULL) ? NULL : (var = (g_hmac_unref (var), NULL))) - -#define PUBLISHING_REST_SUPPORT_TYPE_SESSION (publishing_rest_support_session_get_type ()) -#define PUBLISHING_REST_SUPPORT_SESSION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_REST_SUPPORT_TYPE_SESSION, PublishingRESTSupportSession)) -#define PUBLISHING_REST_SUPPORT_SESSION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_REST_SUPPORT_TYPE_SESSION, PublishingRESTSupportSessionClass)) -#define PUBLISHING_REST_SUPPORT_IS_SESSION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_REST_SUPPORT_TYPE_SESSION)) -#define PUBLISHING_REST_SUPPORT_IS_SESSION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_REST_SUPPORT_TYPE_SESSION)) -#define PUBLISHING_REST_SUPPORT_SESSION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_REST_SUPPORT_TYPE_SESSION, PublishingRESTSupportSessionClass)) - -typedef struct _PublishingRESTSupportSession PublishingRESTSupportSession; -typedef struct _PublishingRESTSupportSessionClass PublishingRESTSupportSessionClass; -typedef struct _PublishingRESTSupportSessionPrivate PublishingRESTSupportSessionPrivate; -#define _g_free0(var) (var = (g_free (var), NULL)) -#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL))) -typedef struct _PublishingRESTSupportParamSpecSession PublishingRESTSupportParamSpecSession; -enum { - PUBLISHING_REST_SUPPORT_SESSION_WIRE_MESSAGE_UNQUEUED_SIGNAL, - PUBLISHING_REST_SUPPORT_SESSION_AUTHENTICATED_SIGNAL, - PUBLISHING_REST_SUPPORT_SESSION_AUTHENTICATION_FAILED_SIGNAL, - PUBLISHING_REST_SUPPORT_SESSION_NUM_SIGNALS -}; -static guint publishing_rest_support_session_signals[PUBLISHING_REST_SUPPORT_SESSION_NUM_SIGNALS] = {0}; - -#define PUBLISHING_REST_SUPPORT_TYPE_HTTP_METHOD (publishing_rest_support_http_method_get_type ()) - -#define PUBLISHING_REST_SUPPORT_TYPE_ARGUMENT (publishing_rest_support_argument_get_type ()) -#define PUBLISHING_REST_SUPPORT_ARGUMENT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_REST_SUPPORT_TYPE_ARGUMENT, PublishingRESTSupportArgument)) -#define PUBLISHING_REST_SUPPORT_ARGUMENT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_REST_SUPPORT_TYPE_ARGUMENT, PublishingRESTSupportArgumentClass)) -#define PUBLISHING_REST_SUPPORT_IS_ARGUMENT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_REST_SUPPORT_TYPE_ARGUMENT)) -#define PUBLISHING_REST_SUPPORT_IS_ARGUMENT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_REST_SUPPORT_TYPE_ARGUMENT)) -#define PUBLISHING_REST_SUPPORT_ARGUMENT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_REST_SUPPORT_TYPE_ARGUMENT, PublishingRESTSupportArgumentClass)) - -typedef struct _PublishingRESTSupportArgument PublishingRESTSupportArgument; -typedef struct _PublishingRESTSupportArgumentClass PublishingRESTSupportArgumentClass; -typedef struct _PublishingRESTSupportArgumentPrivate PublishingRESTSupportArgumentPrivate; -#define _publishing_rest_support_argument_unref0(var) ((var == NULL) ? NULL : (var = (publishing_rest_support_argument_unref (var), NULL))) -#define _g_string_free0(var) ((var == NULL) ? NULL : (var = (g_string_free (var, TRUE), NULL))) -typedef struct _PublishingRESTSupportParamSpecArgument PublishingRESTSupportParamSpecArgument; - -#define PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION (publishing_rest_support_transaction_get_type ()) -#define PUBLISHING_REST_SUPPORT_TRANSACTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction)) -#define PUBLISHING_REST_SUPPORT_TRANSACTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransactionClass)) -#define PUBLISHING_REST_SUPPORT_IS_TRANSACTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION)) -#define PUBLISHING_REST_SUPPORT_IS_TRANSACTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION)) -#define PUBLISHING_REST_SUPPORT_TRANSACTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransactionClass)) - -typedef struct _PublishingRESTSupportTransaction PublishingRESTSupportTransaction; -typedef struct _PublishingRESTSupportTransactionClass PublishingRESTSupportTransactionClass; -typedef struct _PublishingRESTSupportTransactionPrivate PublishingRESTSupportTransactionPrivate; -#define _g_error_free0(var) ((var == NULL) ? NULL : (var = (g_error_free (var), NULL))) -#define __vala_SoupURI_free0(var) ((var == NULL) ? NULL : (var = (_vala_SoupURI_free (var), NULL))) -typedef struct _PublishingRESTSupportParamSpecTransaction PublishingRESTSupportParamSpecTransaction; -enum { - PUBLISHING_REST_SUPPORT_TRANSACTION_CHUNK_TRANSMITTED_SIGNAL, - PUBLISHING_REST_SUPPORT_TRANSACTION_NETWORK_ERROR_SIGNAL, - PUBLISHING_REST_SUPPORT_TRANSACTION_COMPLETED_SIGNAL, - PUBLISHING_REST_SUPPORT_TRANSACTION_NUM_SIGNALS -}; -static guint publishing_rest_support_transaction_signals[PUBLISHING_REST_SUPPORT_TRANSACTION_NUM_SIGNALS] = {0}; - -#define PUBLISHING_REST_SUPPORT_TYPE_UPLOAD_TRANSACTION (publishing_rest_support_upload_transaction_get_type ()) -#define PUBLISHING_REST_SUPPORT_UPLOAD_TRANSACTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_REST_SUPPORT_TYPE_UPLOAD_TRANSACTION, PublishingRESTSupportUploadTransaction)) -#define PUBLISHING_REST_SUPPORT_UPLOAD_TRANSACTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_REST_SUPPORT_TYPE_UPLOAD_TRANSACTION, PublishingRESTSupportUploadTransactionClass)) -#define PUBLISHING_REST_SUPPORT_IS_UPLOAD_TRANSACTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_REST_SUPPORT_TYPE_UPLOAD_TRANSACTION)) -#define PUBLISHING_REST_SUPPORT_IS_UPLOAD_TRANSACTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_REST_SUPPORT_TYPE_UPLOAD_TRANSACTION)) -#define PUBLISHING_REST_SUPPORT_UPLOAD_TRANSACTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_REST_SUPPORT_TYPE_UPLOAD_TRANSACTION, PublishingRESTSupportUploadTransactionClass)) - -typedef struct _PublishingRESTSupportUploadTransaction PublishingRESTSupportUploadTransaction; -typedef struct _PublishingRESTSupportUploadTransactionClass PublishingRESTSupportUploadTransactionClass; -typedef struct _PublishingRESTSupportUploadTransactionPrivate PublishingRESTSupportUploadTransactionPrivate; -#define _g_hash_table_unref0(var) ((var == NULL) ? NULL : (var = (g_hash_table_unref (var), NULL))) -#define __vala_SoupMultipart_free0(var) ((var == NULL) ? NULL : (var = (_vala_SoupMultipart_free (var), NULL))) -#define __vala_SoupBuffer_free0(var) ((var == NULL) ? NULL : (var = (_vala_SoupBuffer_free (var), NULL))) - -#define PUBLISHING_REST_SUPPORT_TYPE_XML_DOCUMENT (publishing_rest_support_xml_document_get_type ()) -#define PUBLISHING_REST_SUPPORT_XML_DOCUMENT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_REST_SUPPORT_TYPE_XML_DOCUMENT, PublishingRESTSupportXmlDocument)) -#define PUBLISHING_REST_SUPPORT_XML_DOCUMENT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_REST_SUPPORT_TYPE_XML_DOCUMENT, PublishingRESTSupportXmlDocumentClass)) -#define PUBLISHING_REST_SUPPORT_IS_XML_DOCUMENT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_REST_SUPPORT_TYPE_XML_DOCUMENT)) -#define PUBLISHING_REST_SUPPORT_IS_XML_DOCUMENT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_REST_SUPPORT_TYPE_XML_DOCUMENT)) -#define PUBLISHING_REST_SUPPORT_XML_DOCUMENT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_REST_SUPPORT_TYPE_XML_DOCUMENT, PublishingRESTSupportXmlDocumentClass)) - -typedef struct _PublishingRESTSupportXmlDocument PublishingRESTSupportXmlDocument; -typedef struct _PublishingRESTSupportXmlDocumentClass PublishingRESTSupportXmlDocumentClass; -typedef struct _PublishingRESTSupportXmlDocumentPrivate PublishingRESTSupportXmlDocumentPrivate; -#define _publishing_rest_support_xml_document_unref0(var) ((var == NULL) ? NULL : (var = (publishing_rest_support_xml_document_unref (var), NULL))) -typedef struct _PublishingRESTSupportParamSpecXmlDocument PublishingRESTSupportParamSpecXmlDocument; - -#define PUBLISHING_REST_SUPPORT_TYPE_BATCH_UPLOADER (publishing_rest_support_batch_uploader_get_type ()) -#define PUBLISHING_REST_SUPPORT_BATCH_UPLOADER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_REST_SUPPORT_TYPE_BATCH_UPLOADER, PublishingRESTSupportBatchUploader)) -#define PUBLISHING_REST_SUPPORT_BATCH_UPLOADER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_REST_SUPPORT_TYPE_BATCH_UPLOADER, PublishingRESTSupportBatchUploaderClass)) -#define PUBLISHING_REST_SUPPORT_IS_BATCH_UPLOADER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_REST_SUPPORT_TYPE_BATCH_UPLOADER)) -#define PUBLISHING_REST_SUPPORT_IS_BATCH_UPLOADER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_REST_SUPPORT_TYPE_BATCH_UPLOADER)) -#define PUBLISHING_REST_SUPPORT_BATCH_UPLOADER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_REST_SUPPORT_TYPE_BATCH_UPLOADER, PublishingRESTSupportBatchUploaderClass)) - -typedef struct _PublishingRESTSupportBatchUploader PublishingRESTSupportBatchUploader; -typedef struct _PublishingRESTSupportBatchUploaderClass PublishingRESTSupportBatchUploaderClass; -typedef struct _PublishingRESTSupportBatchUploaderPrivate PublishingRESTSupportBatchUploaderPrivate; -#define _publishing_rest_support_session_unref0(var) ((var == NULL) ? NULL : (var = (publishing_rest_support_session_unref (var), NULL))) -#define _publishing_rest_support_transaction_unref0(var) ((var == NULL) ? NULL : (var = (publishing_rest_support_transaction_unref (var), NULL))) -typedef struct _PublishingRESTSupportParamSpecBatchUploader PublishingRESTSupportParamSpecBatchUploader; -enum { - PUBLISHING_REST_SUPPORT_BATCH_UPLOADER_UPLOAD_COMPLETE_SIGNAL, - PUBLISHING_REST_SUPPORT_BATCH_UPLOADER_UPLOAD_ERROR_SIGNAL, - PUBLISHING_REST_SUPPORT_BATCH_UPLOADER_NUM_SIGNALS -}; -static guint publishing_rest_support_batch_uploader_signals[PUBLISHING_REST_SUPPORT_BATCH_UPLOADER_NUM_SIGNALS] = {0}; - -#define PUBLISHING_REST_SUPPORT_TYPE_GOOGLE_SESSION (publishing_rest_support_google_session_get_type ()) -#define PUBLISHING_REST_SUPPORT_GOOGLE_SESSION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_REST_SUPPORT_TYPE_GOOGLE_SESSION, PublishingRESTSupportGoogleSession)) -#define PUBLISHING_REST_SUPPORT_GOOGLE_SESSION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_REST_SUPPORT_TYPE_GOOGLE_SESSION, PublishingRESTSupportGoogleSessionClass)) -#define PUBLISHING_REST_SUPPORT_IS_GOOGLE_SESSION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_REST_SUPPORT_TYPE_GOOGLE_SESSION)) -#define PUBLISHING_REST_SUPPORT_IS_GOOGLE_SESSION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_REST_SUPPORT_TYPE_GOOGLE_SESSION)) -#define PUBLISHING_REST_SUPPORT_GOOGLE_SESSION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_REST_SUPPORT_TYPE_GOOGLE_SESSION, PublishingRESTSupportGoogleSessionClass)) - -typedef struct _PublishingRESTSupportGoogleSession PublishingRESTSupportGoogleSession; -typedef struct _PublishingRESTSupportGoogleSessionClass PublishingRESTSupportGoogleSessionClass; -typedef struct _PublishingRESTSupportGoogleSessionPrivate PublishingRESTSupportGoogleSessionPrivate; - -#define PUBLISHING_REST_SUPPORT_TYPE_GOOGLE_PUBLISHER (publishing_rest_support_google_publisher_get_type ()) -#define PUBLISHING_REST_SUPPORT_GOOGLE_PUBLISHER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_REST_SUPPORT_TYPE_GOOGLE_PUBLISHER, PublishingRESTSupportGooglePublisher)) -#define PUBLISHING_REST_SUPPORT_GOOGLE_PUBLISHER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_REST_SUPPORT_TYPE_GOOGLE_PUBLISHER, PublishingRESTSupportGooglePublisherClass)) -#define PUBLISHING_REST_SUPPORT_IS_GOOGLE_PUBLISHER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_REST_SUPPORT_TYPE_GOOGLE_PUBLISHER)) -#define PUBLISHING_REST_SUPPORT_IS_GOOGLE_PUBLISHER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_REST_SUPPORT_TYPE_GOOGLE_PUBLISHER)) -#define PUBLISHING_REST_SUPPORT_GOOGLE_PUBLISHER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_REST_SUPPORT_TYPE_GOOGLE_PUBLISHER, PublishingRESTSupportGooglePublisherClass)) - -typedef struct _PublishingRESTSupportGooglePublisher PublishingRESTSupportGooglePublisher; -typedef struct _PublishingRESTSupportGooglePublisherClass PublishingRESTSupportGooglePublisherClass; -typedef struct _PublishingRESTSupportGooglePublisherPrivate PublishingRESTSupportGooglePublisherPrivate; - -#define PUBLISHING_REST_SUPPORT_GOOGLE_PUBLISHER_TYPE_GOOGLE_SESSION_IMPL (publishing_rest_support_google_publisher_google_session_impl_get_type ()) -#define PUBLISHING_REST_SUPPORT_GOOGLE_PUBLISHER_GOOGLE_SESSION_IMPL(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_REST_SUPPORT_GOOGLE_PUBLISHER_TYPE_GOOGLE_SESSION_IMPL, PublishingRESTSupportGooglePublisherGoogleSessionImpl)) -#define PUBLISHING_REST_SUPPORT_GOOGLE_PUBLISHER_GOOGLE_SESSION_IMPL_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_REST_SUPPORT_GOOGLE_PUBLISHER_TYPE_GOOGLE_SESSION_IMPL, PublishingRESTSupportGooglePublisherGoogleSessionImplClass)) -#define PUBLISHING_REST_SUPPORT_GOOGLE_PUBLISHER_IS_GOOGLE_SESSION_IMPL(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_REST_SUPPORT_GOOGLE_PUBLISHER_TYPE_GOOGLE_SESSION_IMPL)) -#define PUBLISHING_REST_SUPPORT_GOOGLE_PUBLISHER_IS_GOOGLE_SESSION_IMPL_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_REST_SUPPORT_GOOGLE_PUBLISHER_TYPE_GOOGLE_SESSION_IMPL)) -#define PUBLISHING_REST_SUPPORT_GOOGLE_PUBLISHER_GOOGLE_SESSION_IMPL_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_REST_SUPPORT_GOOGLE_PUBLISHER_TYPE_GOOGLE_SESSION_IMPL, PublishingRESTSupportGooglePublisherGoogleSessionImplClass)) - -typedef struct _PublishingRESTSupportGooglePublisherGoogleSessionImpl PublishingRESTSupportGooglePublisherGoogleSessionImpl; -typedef struct _PublishingRESTSupportGooglePublisherGoogleSessionImplClass PublishingRESTSupportGooglePublisherGoogleSessionImplClass; -enum { - PUBLISHING_REST_SUPPORT_GOOGLE_PUBLISHER_0_PROPERTY, - PUBLISHING_REST_SUPPORT_GOOGLE_PUBLISHER_NUM_PROPERTIES -}; -static GParamSpec* publishing_rest_support_google_publisher_properties[PUBLISHING_REST_SUPPORT_GOOGLE_PUBLISHER_NUM_PROPERTIES]; -#define _g_variant_unref0(var) ((var == NULL) ? NULL : (var = (g_variant_unref (var), NULL))) -typedef struct _PublishingRESTSupportGooglePublisherGoogleSessionImplPrivate PublishingRESTSupportGooglePublisherGoogleSessionImplPrivate; - -#define PUBLISHING_REST_SUPPORT_GOOGLE_PUBLISHER_TYPE_AUTHENTICATED_TRANSACTION (publishing_rest_support_google_publisher_authenticated_transaction_get_type ()) -#define PUBLISHING_REST_SUPPORT_GOOGLE_PUBLISHER_AUTHENTICATED_TRANSACTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_REST_SUPPORT_GOOGLE_PUBLISHER_TYPE_AUTHENTICATED_TRANSACTION, PublishingRESTSupportGooglePublisherAuthenticatedTransaction)) -#define PUBLISHING_REST_SUPPORT_GOOGLE_PUBLISHER_AUTHENTICATED_TRANSACTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_REST_SUPPORT_GOOGLE_PUBLISHER_TYPE_AUTHENTICATED_TRANSACTION, PublishingRESTSupportGooglePublisherAuthenticatedTransactionClass)) -#define PUBLISHING_REST_SUPPORT_GOOGLE_PUBLISHER_IS_AUTHENTICATED_TRANSACTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_REST_SUPPORT_GOOGLE_PUBLISHER_TYPE_AUTHENTICATED_TRANSACTION)) -#define PUBLISHING_REST_SUPPORT_GOOGLE_PUBLISHER_IS_AUTHENTICATED_TRANSACTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_REST_SUPPORT_GOOGLE_PUBLISHER_TYPE_AUTHENTICATED_TRANSACTION)) -#define PUBLISHING_REST_SUPPORT_GOOGLE_PUBLISHER_AUTHENTICATED_TRANSACTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_REST_SUPPORT_GOOGLE_PUBLISHER_TYPE_AUTHENTICATED_TRANSACTION, PublishingRESTSupportGooglePublisherAuthenticatedTransactionClass)) - -typedef struct _PublishingRESTSupportGooglePublisherAuthenticatedTransaction PublishingRESTSupportGooglePublisherAuthenticatedTransaction; -typedef struct _PublishingRESTSupportGooglePublisherAuthenticatedTransactionClass PublishingRESTSupportGooglePublisherAuthenticatedTransactionClass; -typedef struct _PublishingRESTSupportGooglePublisherAuthenticatedTransactionPrivate PublishingRESTSupportGooglePublisherAuthenticatedTransactionPrivate; -#define _vala_assert(expr, msg) if G_LIKELY (expr) ; else g_assertion_message_expr (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg); -#define _vala_return_if_fail(expr, msg) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return; } -#define _vala_return_val_if_fail(expr, msg, val) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return val; } -#define _vala_warn_if_fail(expr, msg) if G_LIKELY (expr) ; else g_warn_message (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg); - -struct _PublishingRESTSupportSession { - GTypeInstance parent_instance; - volatile int ref_count; - PublishingRESTSupportSessionPrivate * priv; -}; - -struct _PublishingRESTSupportSessionClass { - GTypeClass parent_class; - void (*finalize) (PublishingRESTSupportSession *self); - gboolean (*is_authenticated) (PublishingRESTSupportSession* self); -}; - -struct _PublishingRESTSupportSessionPrivate { - gchar* endpoint_url; - SoupSession* soup_session; - gboolean transactions_stopped; -}; - -struct _PublishingRESTSupportParamSpecSession { - GParamSpec parent_instance; -}; - -typedef enum { - PUBLISHING_REST_SUPPORT_HTTP_METHOD_GET, - PUBLISHING_REST_SUPPORT_HTTP_METHOD_POST, - PUBLISHING_REST_SUPPORT_HTTP_METHOD_PUT -} PublishingRESTSupportHttpMethod; - -struct _PublishingRESTSupportArgument { - GTypeInstance parent_instance; - volatile int ref_count; - PublishingRESTSupportArgumentPrivate * priv; - gchar* key; - gchar* value; -}; - -struct _PublishingRESTSupportArgumentClass { - GTypeClass parent_class; - void (*finalize) (PublishingRESTSupportArgument *self); -}; - -struct _PublishingRESTSupportParamSpecArgument { - GParamSpec parent_instance; -}; - -struct _PublishingRESTSupportTransaction { - GTypeInstance parent_instance; - volatile int ref_count; - PublishingRESTSupportTransactionPrivate * priv; -}; - -struct _PublishingRESTSupportTransactionClass { - GTypeClass parent_class; - void (*finalize) (PublishingRESTSupportTransaction *self); - void (*add_header) (PublishingRESTSupportTransaction* self, const gchar* key, const gchar* value); - void (*execute) (PublishingRESTSupportTransaction* self, GError** error); -}; - -struct _PublishingRESTSupportTransactionPrivate { - PublishingRESTSupportArgument** arguments; - gint arguments_length1; - gint _arguments_size_; - gboolean is_executed; - PublishingRESTSupportSession* parent_session; - SoupMessage* message; - gint bytes_written; - GError* err; - gchar* endpoint_url; - gboolean use_custom_payload; -}; - -struct _PublishingRESTSupportParamSpecTransaction { - GParamSpec parent_instance; -}; - -struct _PublishingRESTSupportUploadTransaction { - PublishingRESTSupportTransaction parent_instance; - PublishingRESTSupportUploadTransactionPrivate * priv; - GHashTable* binary_disposition_table; - SpitPublishingPublishable* publishable; - gchar* mime_type; - GeeHashMap* message_headers; -}; - -struct _PublishingRESTSupportUploadTransactionClass { - PublishingRESTSupportTransactionClass parent_class; -}; - -struct _PublishingRESTSupportXmlDocument { - GTypeInstance parent_instance; - volatile int ref_count; - PublishingRESTSupportXmlDocumentPrivate * priv; -}; - -struct _PublishingRESTSupportXmlDocumentClass { - GTypeClass parent_class; - void (*finalize) (PublishingRESTSupportXmlDocument *self); -}; - -struct _PublishingRESTSupportXmlDocumentPrivate { - xmlDoc* document; -}; - -typedef gchar* (*PublishingRESTSupportXmlDocumentCheckForErrorResponse) (PublishingRESTSupportXmlDocument* doc, void* user_data); -struct _PublishingRESTSupportParamSpecXmlDocument { - GParamSpec parent_instance; -}; - -struct _PublishingRESTSupportBatchUploader { - GTypeInstance parent_instance; - volatile int ref_count; - PublishingRESTSupportBatchUploaderPrivate * priv; -}; - -struct _PublishingRESTSupportBatchUploaderClass { - GTypeClass parent_class; - void (*finalize) (PublishingRESTSupportBatchUploader *self); - PublishingRESTSupportTransaction* (*create_transaction) (PublishingRESTSupportBatchUploader* self, SpitPublishingPublishable* publishable); -}; - -struct _PublishingRESTSupportBatchUploaderPrivate { - gint current_file; - SpitPublishingPublishable** publishables; - gint publishables_length1; - gint _publishables_size_; - PublishingRESTSupportSession* session; - SpitPublishingProgressCallback status_updated; - gpointer status_updated_target; -}; - -struct _PublishingRESTSupportParamSpecBatchUploader { - GParamSpec parent_instance; -}; - -struct _PublishingRESTSupportGoogleSession { - PublishingRESTSupportSession parent_instance; - PublishingRESTSupportGoogleSessionPrivate * priv; -}; - -struct _PublishingRESTSupportGoogleSessionClass { - PublishingRESTSupportSessionClass parent_class; - gchar* (*get_user_name) (PublishingRESTSupportGoogleSession* self); - gchar* (*get_access_token) (PublishingRESTSupportGoogleSession* self); - void (*deauthenticate) (PublishingRESTSupportGoogleSession* self); -}; - -struct _PublishingRESTSupportGooglePublisher { - GObject parent_instance; - PublishingRESTSupportGooglePublisherPrivate * priv; -}; - -struct _PublishingRESTSupportGooglePublisherClass { - GObjectClass parent_class; - SpitPublishingAuthenticator* (*get_authenticator) (PublishingRESTSupportGooglePublisher* self); - void (*on_login_flow_complete) (PublishingRESTSupportGooglePublisher* self); - void (*do_logout) (PublishingRESTSupportGooglePublisher* self); - gboolean (*is_running) (PublishingRESTSupportGooglePublisher* self); - void (*start) (PublishingRESTSupportGooglePublisher* self); - void (*stop) (PublishingRESTSupportGooglePublisher* self); -}; - -struct _PublishingRESTSupportGooglePublisherPrivate { - gchar* scope; - PublishingRESTSupportGooglePublisherGoogleSessionImpl* session; - SpitPublishingPluginHost* host; - SpitPublishingService* service; - SpitPublishingAuthenticator* authenticator; -}; - -struct _PublishingRESTSupportGooglePublisherGoogleSessionImpl { - PublishingRESTSupportGoogleSession parent_instance; - PublishingRESTSupportGooglePublisherGoogleSessionImplPrivate * priv; - gchar* access_token; - gchar* user_name; - gchar* refresh_token; -}; - -struct _PublishingRESTSupportGooglePublisherGoogleSessionImplClass { - PublishingRESTSupportGoogleSessionClass parent_class; -}; - -struct _PublishingRESTSupportGooglePublisherAuthenticatedTransaction { - PublishingRESTSupportTransaction parent_instance; - PublishingRESTSupportGooglePublisherAuthenticatedTransactionPrivate * priv; -}; - -struct _PublishingRESTSupportGooglePublisherAuthenticatedTransactionClass { - PublishingRESTSupportTransactionClass parent_class; -}; - - -static gpointer publishing_rest_support_session_parent_class = NULL; -static gpointer publishing_rest_support_argument_parent_class = NULL; -static gpointer publishing_rest_support_transaction_parent_class = NULL; -static gpointer publishing_rest_support_upload_transaction_parent_class = NULL; -static gpointer publishing_rest_support_xml_document_parent_class = NULL; -static gpointer publishing_rest_support_batch_uploader_parent_class = NULL; -static gpointer publishing_rest_support_google_session_parent_class = NULL; -static gpointer publishing_rest_support_google_publisher_parent_class = NULL; -static gpointer publishing_rest_support_google_publisher_google_session_impl_parent_class = NULL; -static gpointer publishing_rest_support_google_publisher_authenticated_transaction_parent_class = NULL; -static SpitPublishingPublisherIface * publishing_rest_support_google_publisher_spit_publishing_publisher_parent_iface = NULL; - -#define PUBLISHING_REST_SUPPORT_SHA1_HMAC_LENGTH 20 -gchar* publishing_rest_support_hmac_sha1 (const gchar* key, - const gchar* message); -gpointer publishing_rest_support_session_ref (gpointer instance); -void publishing_rest_support_session_unref (gpointer instance); -GParamSpec* publishing_rest_support_param_spec_session (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void publishing_rest_support_value_set_session (GValue* value, - gpointer v_object); -void publishing_rest_support_value_take_session (GValue* value, - gpointer v_object); -gpointer publishing_rest_support_value_get_session (const GValue* value); -GType publishing_rest_support_session_get_type (void) G_GNUC_CONST; -#define PUBLISHING_REST_SUPPORT_SESSION_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), PUBLISHING_REST_SUPPORT_TYPE_SESSION, PublishingRESTSupportSessionPrivate)) -PublishingRESTSupportSession* publishing_rest_support_session_construct (GType object_type, - const gchar* endpoint_url); -void publishing_rest_support_session_notify_wire_message_unqueued (PublishingRESTSupportSession* self, - SoupMessage* message); -void publishing_rest_support_session_notify_authenticated (PublishingRESTSupportSession* self); -void publishing_rest_support_session_notify_authentication_failed (PublishingRESTSupportSession* self, - GError* err); -gboolean publishing_rest_support_session_is_authenticated (PublishingRESTSupportSession* self); -static gboolean publishing_rest_support_session_real_is_authenticated (PublishingRESTSupportSession* self); -gchar* publishing_rest_support_session_get_endpoint_url (PublishingRESTSupportSession* self); -void publishing_rest_support_session_stop_transactions (PublishingRESTSupportSession* self); -gboolean publishing_rest_support_session_are_transactions_stopped (PublishingRESTSupportSession* self); -void publishing_rest_support_session_send_wire_message (PublishingRESTSupportSession* self, - SoupMessage* message); -static void _publishing_rest_support_session_notify_wire_message_unqueued_soup_session_request_unqueued (SoupSession* _sender, - SoupMessage* msg, - gpointer self); -void publishing_rest_support_session_set_insecure (PublishingRESTSupportSession* self); -static void publishing_rest_support_session_finalize (PublishingRESTSupportSession * obj); -GType publishing_rest_support_http_method_get_type (void) G_GNUC_CONST; -gchar* publishing_rest_support_http_method_to_string (PublishingRESTSupportHttpMethod self); -PublishingRESTSupportHttpMethod publishing_rest_support_http_method_from_string (const gchar* str); -gpointer publishing_rest_support_argument_ref (gpointer instance); -void publishing_rest_support_argument_unref (gpointer instance); -GParamSpec* publishing_rest_support_param_spec_argument (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void publishing_rest_support_value_set_argument (GValue* value, - gpointer v_object); -void publishing_rest_support_value_take_argument (GValue* value, - gpointer v_object); -gpointer publishing_rest_support_value_get_argument (const GValue* value); -GType publishing_rest_support_argument_get_type (void) G_GNUC_CONST; -PublishingRESTSupportArgument* publishing_rest_support_argument_new (const gchar* key, - const gchar* value); -PublishingRESTSupportArgument* publishing_rest_support_argument_construct (GType object_type, - const gchar* key, - const gchar* value); -gchar* publishing_rest_support_argument_serialize_list (PublishingRESTSupportArgument** args, - int args_length1, - gboolean escape, - const gchar* separator); -gchar* publishing_rest_support_argument_to_string (PublishingRESTSupportArgument* self, - gboolean escape); -gint publishing_rest_support_argument_compare (PublishingRESTSupportArgument* arg1, - PublishingRESTSupportArgument* arg2); -PublishingRESTSupportArgument** publishing_rest_support_argument_sort (PublishingRESTSupportArgument** inputArray, - int inputArray_length1, - int* result_length1); -static gint _publishing_rest_support_argument_compare_gcompare_data_func (gconstpointer a, - gconstpointer b, - gpointer self); -static void publishing_rest_support_argument_finalize (PublishingRESTSupportArgument * obj); -gpointer publishing_rest_support_transaction_ref (gpointer instance); -void publishing_rest_support_transaction_unref (gpointer instance); -GParamSpec* publishing_rest_support_param_spec_transaction (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void publishing_rest_support_value_set_transaction (GValue* value, - gpointer v_object); -void publishing_rest_support_value_take_transaction (GValue* value, - gpointer v_object); -gpointer publishing_rest_support_value_get_transaction (const GValue* value); -GType publishing_rest_support_transaction_get_type (void) G_GNUC_CONST; -#define PUBLISHING_REST_SUPPORT_TRANSACTION_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransactionPrivate)) -PublishingRESTSupportTransaction* publishing_rest_support_transaction_new (PublishingRESTSupportSession* parent_session, - PublishingRESTSupportHttpMethod method); -PublishingRESTSupportTransaction* publishing_rest_support_transaction_construct (GType object_type, - PublishingRESTSupportSession* parent_session, - PublishingRESTSupportHttpMethod method); -static void publishing_rest_support_transaction_on_wrote_body_data (PublishingRESTSupportTransaction* self, - SoupBuffer* written_data); -static void _publishing_rest_support_transaction_on_wrote_body_data_soup_message_wrote_body_data (SoupMessage* _sender, - SoupBuffer* chunk, - gpointer self); -PublishingRESTSupportTransaction* publishing_rest_support_transaction_new_with_endpoint_url (PublishingRESTSupportSession* parent_session, - const gchar* endpoint_url, - PublishingRESTSupportHttpMethod method); -PublishingRESTSupportTransaction* publishing_rest_support_transaction_construct_with_endpoint_url (GType object_type, - PublishingRESTSupportSession* parent_session, - const gchar* endpoint_url, - PublishingRESTSupportHttpMethod method); -static void publishing_rest_support_transaction_on_message_unqueued (PublishingRESTSupportTransaction* self, - SoupMessage* message); -void publishing_rest_support_transaction_check_response (PublishingRESTSupportTransaction* self, - SoupMessage* message, - GError** error); -gchar* publishing_rest_support_transaction_get_response (PublishingRESTSupportTransaction* self); -gchar* publishing_rest_support_transaction_detailed_error_from_tls_flags (PublishingRESTSupportTransaction* self, - GTlsCertificate* * cert); -gchar* publishing_rest_support_transaction_get_endpoint_url (PublishingRESTSupportTransaction* self); -PublishingRESTSupportArgument** publishing_rest_support_transaction_get_arguments (PublishingRESTSupportTransaction* self, - int* result_length1); -static PublishingRESTSupportArgument** _vala_array_dup1 (PublishingRESTSupportArgument** self, - int length); -PublishingRESTSupportArgument** publishing_rest_support_transaction_get_sorted_arguments (PublishingRESTSupportTransaction* self, - int* result_length1); -void publishing_rest_support_transaction_set_is_executed (PublishingRESTSupportTransaction* self, - gboolean is_executed); -void publishing_rest_support_transaction_send (PublishingRESTSupportTransaction* self, - GError** error); -static void _publishing_rest_support_transaction_on_message_unqueued_publishing_rest_support_session_wire_message_unqueued (PublishingRESTSupportSession* _sender, - SoupMessage* message, - gpointer self); -PublishingRESTSupportHttpMethod publishing_rest_support_transaction_get_method (PublishingRESTSupportTransaction* self); -void publishing_rest_support_transaction_add_header (PublishingRESTSupportTransaction* self, - const gchar* key, - const gchar* value); -static void publishing_rest_support_transaction_real_add_header (PublishingRESTSupportTransaction* self, - const gchar* key, - const gchar* value); -void publishing_rest_support_transaction_set_custom_payload (PublishingRESTSupportTransaction* self, - const gchar* custom_payload, - const gchar* payload_content_type, - gulong payload_length); -void publishing_rest_support_transaction_set_message (PublishingRESTSupportTransaction* self, - SoupMessage* message); -gboolean publishing_rest_support_transaction_get_is_executed (PublishingRESTSupportTransaction* self); -guint publishing_rest_support_transaction_get_status_code (PublishingRESTSupportTransaction* self); -void publishing_rest_support_transaction_execute (PublishingRESTSupportTransaction* self, - GError** error); -static void publishing_rest_support_transaction_real_execute (PublishingRESTSupportTransaction* self, - GError** error); -static void _vala_SoupURI_free (SoupURI* self); -SoupMessageHeaders* publishing_rest_support_transaction_get_response_headers (PublishingRESTSupportTransaction* self); -SoupMessage* publishing_rest_support_transaction_get_message (PublishingRESTSupportTransaction* self); -void publishing_rest_support_transaction_add_argument (PublishingRESTSupportTransaction* self, - const gchar* name, - const gchar* value); -static void _vala_array_add1 (PublishingRESTSupportArgument** * array, - int* length, - int* size, - PublishingRESTSupportArgument* value); -PublishingRESTSupportSession* publishing_rest_support_transaction_get_parent_session (PublishingRESTSupportTransaction* self); -static void g_cclosure_user_marshal_VOID__INT_INT (GClosure * closure, - GValue * return_value, - guint n_param_values, - const GValue * param_values, - gpointer invocation_hint, - gpointer marshal_data); -static void publishing_rest_support_transaction_finalize (PublishingRESTSupportTransaction * obj); -GType publishing_rest_support_upload_transaction_get_type (void) G_GNUC_CONST; -PublishingRESTSupportUploadTransaction* publishing_rest_support_upload_transaction_new (PublishingRESTSupportSession* session, - SpitPublishingPublishable* publishable); -PublishingRESTSupportUploadTransaction* publishing_rest_support_upload_transaction_construct (GType object_type, - PublishingRESTSupportSession* session, - SpitPublishingPublishable* publishable); -static gchar* publishing_rest_support_upload_transaction_media_type_to_mime_type (SpitPublishingPublisherMediaType media_type); -static GHashTable* publishing_rest_support_upload_transaction_create_default_binary_disposition_table (PublishingRESTSupportUploadTransaction* self); -PublishingRESTSupportUploadTransaction* publishing_rest_support_upload_transaction_new_with_endpoint_url (PublishingRESTSupportSession* session, - SpitPublishingPublishable* publishable, - const gchar* endpoint_url); -PublishingRESTSupportUploadTransaction* publishing_rest_support_upload_transaction_construct_with_endpoint_url (GType object_type, - PublishingRESTSupportSession* session, - SpitPublishingPublishable* publishable, - const gchar* endpoint_url); -static void publishing_rest_support_upload_transaction_real_add_header (PublishingRESTSupportTransaction* base, - const gchar* key, - const gchar* value); -const gchar* spit_publishing_publisher_media_type_to_string (SpitPublishingPublisherMediaType self); -static void _g_free0_ (gpointer var); -void publishing_rest_support_upload_transaction_set_binary_disposition_table (PublishingRESTSupportUploadTransaction* self, - GHashTable* new_disp_table); -static void publishing_rest_support_upload_transaction_real_execute (PublishingRESTSupportTransaction* base, - GError** error); -static void _vala_SoupMultipart_free (SoupMultipart* self); -static void _vala_SoupBuffer_free (SoupBuffer* self); -static void publishing_rest_support_upload_transaction_finalize (PublishingRESTSupportTransaction * obj); -gpointer publishing_rest_support_xml_document_ref (gpointer instance); -void publishing_rest_support_xml_document_unref (gpointer instance); -GParamSpec* publishing_rest_support_param_spec_xml_document (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void publishing_rest_support_value_set_xml_document (GValue* value, - gpointer v_object); -void publishing_rest_support_value_take_xml_document (GValue* value, - gpointer v_object); -gpointer publishing_rest_support_value_get_xml_document (const GValue* value); -GType publishing_rest_support_xml_document_get_type (void) G_GNUC_CONST; -#define PUBLISHING_REST_SUPPORT_XML_DOCUMENT_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), PUBLISHING_REST_SUPPORT_TYPE_XML_DOCUMENT, PublishingRESTSupportXmlDocumentPrivate)) -static PublishingRESTSupportXmlDocument* publishing_rest_support_xml_document_new (xmlDoc* doc); -static PublishingRESTSupportXmlDocument* publishing_rest_support_xml_document_construct (GType object_type, - xmlDoc* doc); -xmlNode* publishing_rest_support_xml_document_get_root_node (PublishingRESTSupportXmlDocument* self); -xmlNode* publishing_rest_support_xml_document_get_named_child (PublishingRESTSupportXmlDocument* self, - xmlNode* parent, - const gchar* child_name, - GError** error); -gchar* publishing_rest_support_xml_document_get_property_value (PublishingRESTSupportXmlDocument* self, - xmlNode* node, - const gchar* property_key, - GError** error); -PublishingRESTSupportXmlDocument* publishing_rest_support_xml_document_parse_string (const gchar* input_string, - PublishingRESTSupportXmlDocumentCheckForErrorResponse check_for_error_response, - void* check_for_error_response_target, - GError** error); -static void publishing_rest_support_xml_document_finalize (PublishingRESTSupportXmlDocument * obj); -gchar* publishing_rest_support_decimal_entity_encode (const gchar* source); -gpointer publishing_rest_support_batch_uploader_ref (gpointer instance); -void publishing_rest_support_batch_uploader_unref (gpointer instance); -GParamSpec* publishing_rest_support_param_spec_batch_uploader (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void publishing_rest_support_value_set_batch_uploader (GValue* value, - gpointer v_object); -void publishing_rest_support_value_take_batch_uploader (GValue* value, - gpointer v_object); -gpointer publishing_rest_support_value_get_batch_uploader (const GValue* value); -GType publishing_rest_support_batch_uploader_get_type (void) G_GNUC_CONST; -#define PUBLISHING_REST_SUPPORT_BATCH_UPLOADER_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), PUBLISHING_REST_SUPPORT_TYPE_BATCH_UPLOADER, PublishingRESTSupportBatchUploaderPrivate)) -PublishingRESTSupportBatchUploader* publishing_rest_support_batch_uploader_construct (GType object_type, - PublishingRESTSupportSession* session, - SpitPublishingPublishable** publishables, - int publishables_length1); -static SpitPublishingPublishable** _vala_array_dup2 (SpitPublishingPublishable** self, - int length); -static void publishing_rest_support_batch_uploader_send_files (PublishingRESTSupportBatchUploader* self); -PublishingRESTSupportTransaction* publishing_rest_support_batch_uploader_create_transaction (PublishingRESTSupportBatchUploader* self, - SpitPublishingPublishable* publishable); -static void publishing_rest_support_batch_uploader_on_chunk_transmitted (PublishingRESTSupportBatchUploader* self, - gint bytes_written_so_far, - gint total_bytes); -static void _publishing_rest_support_batch_uploader_on_chunk_transmitted_publishing_rest_support_transaction_chunk_transmitted (PublishingRESTSupportTransaction* _sender, - gint bytes_written_so_far, - gint total_bytes, - gpointer self); -PublishingRESTSupportSession* publishing_rest_support_batch_uploader_get_session (PublishingRESTSupportBatchUploader* self); -SpitPublishingPublishable* publishing_rest_support_batch_uploader_get_current_publishable (PublishingRESTSupportBatchUploader* self); -static PublishingRESTSupportTransaction* publishing_rest_support_batch_uploader_real_create_transaction (PublishingRESTSupportBatchUploader* self, - SpitPublishingPublishable* publishable); -void publishing_rest_support_batch_uploader_upload (PublishingRESTSupportBatchUploader* self, - SpitPublishingProgressCallback status_updated, - void* status_updated_target); -static void publishing_rest_support_batch_uploader_finalize (PublishingRESTSupportBatchUploader * obj); -gchar* publishing_rest_support_asciify_string (const gchar* s); -GType publishing_rest_support_google_session_get_type (void) G_GNUC_CONST; -gchar* publishing_rest_support_google_session_get_user_name (PublishingRESTSupportGoogleSession* self); -static gchar* publishing_rest_support_google_session_real_get_user_name (PublishingRESTSupportGoogleSession* self); -gchar* publishing_rest_support_google_session_get_access_token (PublishingRESTSupportGoogleSession* self); -static gchar* publishing_rest_support_google_session_real_get_access_token (PublishingRESTSupportGoogleSession* self); -void publishing_rest_support_google_session_deauthenticate (PublishingRESTSupportGoogleSession* self); -static void publishing_rest_support_google_session_real_deauthenticate (PublishingRESTSupportGoogleSession* self); -PublishingRESTSupportGoogleSession* publishing_rest_support_google_session_construct (GType object_type); -GType publishing_rest_support_google_publisher_get_type (void) G_GNUC_CONST; -static GType publishing_rest_support_google_publisher_google_session_impl_get_type (void) G_GNUC_CONST G_GNUC_UNUSED; -#define PUBLISHING_REST_SUPPORT_GOOGLE_PUBLISHER_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), PUBLISHING_REST_SUPPORT_TYPE_GOOGLE_PUBLISHER, PublishingRESTSupportGooglePublisherPrivate)) -#define PUBLISHING_REST_SUPPORT_GOOGLE_PUBLISHER_OAUTH_CLIENT_ID "1073902228337-gm4uf5etk25s0hnnm0g7uv2tm2bm1j0b.apps.googleusercontent." \ -"com" -#define PUBLISHING_REST_SUPPORT_GOOGLE_PUBLISHER_OAUTH_CLIENT_SECRET "_kA4RZz72xqed4DqfO7xMmMN" -PublishingRESTSupportGooglePublisher* publishing_rest_support_google_publisher_construct (GType object_type, - SpitPublishingService* service, - SpitPublishingPluginHost* host, - const gchar* scope); -static PublishingRESTSupportGooglePublisherGoogleSessionImpl* publishing_rest_support_google_publisher_google_session_impl_new (void); -static PublishingRESTSupportGooglePublisherGoogleSessionImpl* publishing_rest_support_google_publisher_google_session_impl_construct (GType object_type); -SpitPublishingAuthenticator* publishing_rest_support_google_publisher_get_authenticator (PublishingRESTSupportGooglePublisher* self); -static void publishing_rest_support_google_publisher_on_authenticator_authenticated (PublishingRESTSupportGooglePublisher* self); -static void _publishing_rest_support_google_publisher_on_authenticator_authenticated_spit_publishing_authenticator_authenticated (SpitPublishingAuthenticator* _sender, - gpointer self); -static SpitPublishingAuthenticator* publishing_rest_support_google_publisher_real_get_authenticator (PublishingRESTSupportGooglePublisher* self); -SpitPublishingPluginHost* publishing_rest_support_google_publisher_get_host (PublishingRESTSupportGooglePublisher* self); -PublishingRESTSupportGoogleSession* publishing_rest_support_google_publisher_get_session (PublishingRESTSupportGooglePublisher* self); -void publishing_rest_support_google_publisher_on_login_flow_complete (PublishingRESTSupportGooglePublisher* self); -static void publishing_rest_support_google_publisher_real_on_login_flow_complete (PublishingRESTSupportGooglePublisher* self); -void publishing_rest_support_google_publisher_do_logout (PublishingRESTSupportGooglePublisher* self); -static void publishing_rest_support_google_publisher_real_do_logout (PublishingRESTSupportGooglePublisher* self); -gboolean publishing_rest_support_google_publisher_is_running (PublishingRESTSupportGooglePublisher* self); -static gboolean publishing_rest_support_google_publisher_real_is_running (PublishingRESTSupportGooglePublisher* self); -void publishing_rest_support_google_publisher_start (PublishingRESTSupportGooglePublisher* self); -static void publishing_rest_support_google_publisher_real_start (PublishingRESTSupportGooglePublisher* self); -void publishing_rest_support_google_publisher_stop (PublishingRESTSupportGooglePublisher* self); -static void publishing_rest_support_google_publisher_real_stop (PublishingRESTSupportGooglePublisher* self); -static SpitPublishingService* publishing_rest_support_google_publisher_real_get_service (SpitPublishingPublisher* base); -static gboolean publishing_rest_support_google_publisher_google_session_impl_real_is_authenticated (PublishingRESTSupportSession* base); -static gchar* publishing_rest_support_google_publisher_google_session_impl_real_get_user_name (PublishingRESTSupportGoogleSession* base); -static gchar* publishing_rest_support_google_publisher_google_session_impl_real_get_access_token (PublishingRESTSupportGoogleSession* base); -static void publishing_rest_support_google_publisher_google_session_impl_real_deauthenticate (PublishingRESTSupportGoogleSession* base); -static void publishing_rest_support_google_publisher_google_session_impl_finalize (PublishingRESTSupportSession * obj); -GType publishing_rest_support_google_publisher_authenticated_transaction_get_type (void) G_GNUC_CONST; -static PublishingRESTSupportGooglePublisherAuthenticatedTransaction* publishing_rest_support_google_publisher_authenticated_transaction_new_with_endpoint_url (PublishingRESTSupportGoogleSession* session, - const gchar* endpoint_url, - PublishingRESTSupportHttpMethod method); -static PublishingRESTSupportGooglePublisherAuthenticatedTransaction* publishing_rest_support_google_publisher_authenticated_transaction_construct_with_endpoint_url (GType object_type, - PublishingRESTSupportGoogleSession* session, - const gchar* endpoint_url, - PublishingRESTSupportHttpMethod method); -PublishingRESTSupportGooglePublisherAuthenticatedTransaction* publishing_rest_support_google_publisher_authenticated_transaction_new (PublishingRESTSupportGoogleSession* session, - const gchar* endpoint_url, - PublishingRESTSupportHttpMethod method); -PublishingRESTSupportGooglePublisherAuthenticatedTransaction* publishing_rest_support_google_publisher_authenticated_transaction_construct (GType object_type, - PublishingRESTSupportGoogleSession* session, - const gchar* endpoint_url, - PublishingRESTSupportHttpMethod method); -static void publishing_rest_support_google_publisher_finalize (GObject * obj); -static void _vala_array_destroy (gpointer array, - gint array_length, - GDestroyNotify destroy_func); -static void _vala_array_free (gpointer array, - gint array_length, - GDestroyNotify destroy_func); - - -static guint8* -string_get_data (const gchar* self, - int* result_length1) -{ - guint8* result; - guint8* res = NULL; - gint res_length1; - gint _res_size_; - gint _tmp0_; - gint _tmp1_; - gint _tmp2_; - guint8* _tmp3_; - gint _tmp3__length1; - guint8* _tmp4_; - gint _tmp4__length1; -#line 1442 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - g_return_val_if_fail (self != NULL, NULL); -#line 1443 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - res = (guint8*) self; -#line 1443 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - res_length1 = -1; -#line 1443 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _res_size_ = res_length1; -#line 1444 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp0_ = strlen (self); -#line 1444 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp1_ = _tmp0_; -#line 1444 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - res_length1 = (gint) _tmp1_; -#line 1444 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp2_ = res_length1; -#line 1445 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp3_ = res; -#line 1445 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp3__length1 = res_length1; -#line 1445 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp4_ = _tmp3_; -#line 1445 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp4__length1 = _tmp3__length1; -#line 1445 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - if (result_length1) { -#line 1445 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - *result_length1 = _tmp4__length1; -#line 761 "RESTSupport.c" - } -#line 1445 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - result = _tmp4_; -#line 1445 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - return result; -#line 767 "RESTSupport.c" -} - - -gchar* -publishing_rest_support_hmac_sha1 (const gchar* key, - const gchar* message) -{ - gchar* result = NULL; - guint8 buffer[PUBLISHING_REST_SUPPORT_SHA1_HMAC_LENGTH] = {0}; - gsize len = 0UL; - GHmac* mac = NULL; - guint8* _tmp0_; - gint _tmp0__length1; - guint8* _tmp1_; - gint _tmp1__length1; - GHmac* _tmp2_; - guint8* _tmp3_; - gint _tmp3__length1; - guint8* _tmp4_; - gint _tmp4__length1; - gsize _tmp5_; - gchar* _tmp6_; -#line 14 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_return_val_if_fail (key != NULL, NULL); -#line 14 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_return_val_if_fail (message != NULL, NULL); -#line 16 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - len = (gsize) PUBLISHING_REST_SUPPORT_SHA1_HMAC_LENGTH; -#line 18 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp0_ = string_get_data (key, &_tmp0__length1); -#line 18 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp1_ = _tmp0_; -#line 18 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp1__length1 = _tmp0__length1; -#line 18 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp2_ = g_hmac_new (G_CHECKSUM_SHA1, _tmp1_, _tmp1__length1); -#line 18 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - mac = _tmp2_; -#line 19 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp3_ = string_get_data (message, &_tmp3__length1); -#line 19 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp4_ = _tmp3_; -#line 19 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp4__length1 = _tmp3__length1; -#line 19 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_hmac_update (mac, _tmp4_, (gssize) _tmp4__length1); -#line 20 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_hmac_get_digest (mac, buffer, &len); -#line 22 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp5_ = len; -#line 22 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp6_ = g_base64_encode (buffer + 0, ((gint) _tmp5_) - 0); -#line 22 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - result = _tmp6_; -#line 22 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _g_hmac_unref0 (mac); -#line 22 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - return result; -#line 826 "RESTSupport.c" -} - - -PublishingRESTSupportSession* -publishing_rest_support_session_construct (GType object_type, - const gchar* endpoint_url) -{ - PublishingRESTSupportSession* self = NULL; - gchar* _tmp0_; - SoupSession* _tmp1_; - SoupSession* _tmp2_; -#line 34 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - self = (PublishingRESTSupportSession*) g_type_create_instance (object_type); -#line 35 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp0_ = g_strdup (endpoint_url); -#line 35 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _g_free0 (self->priv->endpoint_url); -#line 35 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - self->priv->endpoint_url = _tmp0_; -#line 36 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp1_ = soup_session_new (); -#line 36 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _g_object_unref0 (self->priv->soup_session); -#line 36 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - self->priv->soup_session = _tmp1_; -#line 37 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp2_ = self->priv->soup_session; -#line 37 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_object_set (_tmp2_, "ssl-use-system-ca-file", TRUE, NULL); -#line 34 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - return self; -#line 858 "RESTSupport.c" -} - - -void -publishing_rest_support_session_notify_wire_message_unqueued (PublishingRESTSupportSession* self, - SoupMessage* message) -{ -#line 40 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_return_if_fail (PUBLISHING_REST_SUPPORT_IS_SESSION (self)); -#line 40 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_return_if_fail (SOUP_IS_MESSAGE (message)); -#line 41 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_signal_emit (self, publishing_rest_support_session_signals[PUBLISHING_REST_SUPPORT_SESSION_WIRE_MESSAGE_UNQUEUED_SIGNAL], 0, message); -#line 872 "RESTSupport.c" -} - - -void -publishing_rest_support_session_notify_authenticated (PublishingRESTSupportSession* self) -{ -#line 44 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_return_if_fail (PUBLISHING_REST_SUPPORT_IS_SESSION (self)); -#line 45 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_signal_emit (self, publishing_rest_support_session_signals[PUBLISHING_REST_SUPPORT_SESSION_AUTHENTICATED_SIGNAL], 0); -#line 883 "RESTSupport.c" -} - - -void -publishing_rest_support_session_notify_authentication_failed (PublishingRESTSupportSession* self, - GError* err) -{ -#line 48 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_return_if_fail (PUBLISHING_REST_SUPPORT_IS_SESSION (self)); -#line 49 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_signal_emit (self, publishing_rest_support_session_signals[PUBLISHING_REST_SUPPORT_SESSION_AUTHENTICATION_FAILED_SIGNAL], 0, err); -#line 895 "RESTSupport.c" -} - - -static gboolean -publishing_rest_support_session_real_is_authenticated (PublishingRESTSupportSession* self) -{ - gboolean _tmp0_ = FALSE; -#line 52 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_critical ("Type `%s' does not implement abstract method `publishing_rest_support_session_is_authenticated'", g_type_name (G_TYPE_FROM_INSTANCE (self))); -#line 52 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - return _tmp0_; -#line 907 "RESTSupport.c" -} - - -gboolean -publishing_rest_support_session_is_authenticated (PublishingRESTSupportSession* self) -{ -#line 52 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_return_val_if_fail (PUBLISHING_REST_SUPPORT_IS_SESSION (self), FALSE); -#line 52 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - return PUBLISHING_REST_SUPPORT_SESSION_GET_CLASS (self)->is_authenticated (self); -#line 918 "RESTSupport.c" -} - - -gchar* -publishing_rest_support_session_get_endpoint_url (PublishingRESTSupportSession* self) -{ - gchar* result = NULL; - const gchar* _tmp0_; - gchar* _tmp1_; -#line 54 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_return_val_if_fail (PUBLISHING_REST_SUPPORT_IS_SESSION (self), NULL); -#line 55 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp0_ = self->priv->endpoint_url; -#line 55 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp1_ = g_strdup (_tmp0_); -#line 55 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - result = _tmp1_; -#line 55 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - return result; -#line 938 "RESTSupport.c" -} - - -void -publishing_rest_support_session_stop_transactions (PublishingRESTSupportSession* self) -{ - SoupSession* _tmp0_; -#line 58 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_return_if_fail (PUBLISHING_REST_SUPPORT_IS_SESSION (self)); -#line 59 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - self->priv->transactions_stopped = TRUE; -#line 60 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp0_ = self->priv->soup_session; -#line 60 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - soup_session_abort (_tmp0_); -#line 954 "RESTSupport.c" -} - - -gboolean -publishing_rest_support_session_are_transactions_stopped (PublishingRESTSupportSession* self) -{ - gboolean result = FALSE; - gboolean _tmp0_; -#line 63 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_return_val_if_fail (PUBLISHING_REST_SUPPORT_IS_SESSION (self), FALSE); -#line 64 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp0_ = self->priv->transactions_stopped; -#line 64 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - result = _tmp0_; -#line 64 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - return result; -#line 971 "RESTSupport.c" -} - - -static void -_publishing_rest_support_session_notify_wire_message_unqueued_soup_session_request_unqueued (SoupSession* _sender, - SoupMessage* msg, - gpointer self) -{ -#line 71 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - publishing_rest_support_session_notify_wire_message_unqueued ((PublishingRESTSupportSession*) self, msg); -#line 982 "RESTSupport.c" -} - - -void -publishing_rest_support_session_send_wire_message (PublishingRESTSupportSession* self, - SoupMessage* message) -{ - SoupSession* _tmp0_; - SoupSession* _tmp1_; - SoupSession* _tmp2_; - guint _tmp3_; -#line 67 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_return_if_fail (PUBLISHING_REST_SUPPORT_IS_SESSION (self)); -#line 67 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_return_if_fail (SOUP_IS_MESSAGE (message)); -#line 68 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - if (publishing_rest_support_session_are_transactions_stopped (self)) { -#line 69 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - return; -#line 1002 "RESTSupport.c" - } -#line 71 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp0_ = self->priv->soup_session; -#line 71 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_signal_connect (_tmp0_, "request-unqueued", (GCallback) _publishing_rest_support_session_notify_wire_message_unqueued_soup_session_request_unqueued, self); -#line 72 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp1_ = self->priv->soup_session; -#line 72 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - soup_session_send_message (_tmp1_, message); -#line 74 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp2_ = self->priv->soup_session; -#line 74 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_signal_parse_name ("request-unqueued", soup_session_get_type (), &_tmp3_, NULL, FALSE); -#line 74 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_signal_handlers_disconnect_matched (_tmp2_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp3_, 0, NULL, (GCallback) _publishing_rest_support_session_notify_wire_message_unqueued_soup_session_request_unqueued, self); -#line 1018 "RESTSupport.c" -} - - -void -publishing_rest_support_session_set_insecure (PublishingRESTSupportSession* self) -{ - SoupSession* _tmp0_; - SoupSession* _tmp1_; -#line 77 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_return_if_fail (PUBLISHING_REST_SUPPORT_IS_SESSION (self)); -#line 78 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp0_ = self->priv->soup_session; -#line 78 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_object_set (_tmp0_, "ssl-use-system-ca-file", FALSE, NULL); -#line 79 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp1_ = self->priv->soup_session; -#line 79 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_object_set (_tmp1_, "ssl-strict", FALSE, NULL); -#line 1037 "RESTSupport.c" -} - - -static void -publishing_rest_support_value_session_init (GValue* value) -{ -#line 25 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - value->data[0].v_pointer = NULL; -#line 1046 "RESTSupport.c" -} - - -static void -publishing_rest_support_value_session_free_value (GValue* value) -{ -#line 25 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - if (value->data[0].v_pointer) { -#line 25 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - publishing_rest_support_session_unref (value->data[0].v_pointer); -#line 1057 "RESTSupport.c" - } -} - - -static void -publishing_rest_support_value_session_copy_value (const GValue* src_value, - GValue* dest_value) -{ -#line 25 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - if (src_value->data[0].v_pointer) { -#line 25 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - dest_value->data[0].v_pointer = publishing_rest_support_session_ref (src_value->data[0].v_pointer); -#line 1070 "RESTSupport.c" - } else { -#line 25 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - dest_value->data[0].v_pointer = NULL; -#line 1074 "RESTSupport.c" - } -} - - -static gpointer -publishing_rest_support_value_session_peek_pointer (const GValue* value) -{ -#line 25 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - return value->data[0].v_pointer; -#line 1084 "RESTSupport.c" -} - - -static gchar* -publishing_rest_support_value_session_collect_value (GValue* value, - guint n_collect_values, - GTypeCValue* collect_values, - guint collect_flags) -{ -#line 25 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - if (collect_values[0].v_pointer) { -#line 1096 "RESTSupport.c" - PublishingRESTSupportSession * object; - object = collect_values[0].v_pointer; -#line 25 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - if (object->parent_instance.g_class == NULL) { -#line 25 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL); -#line 1103 "RESTSupport.c" - } else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) { -#line 25 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - return g_strconcat ("invalid object type `", g_type_name (G_TYPE_FROM_INSTANCE (object)), "' for value type `", G_VALUE_TYPE_NAME (value), "'", NULL); -#line 1107 "RESTSupport.c" - } -#line 25 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - value->data[0].v_pointer = publishing_rest_support_session_ref (object); -#line 1111 "RESTSupport.c" - } else { -#line 25 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - value->data[0].v_pointer = NULL; -#line 1115 "RESTSupport.c" - } -#line 25 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - return NULL; -#line 1119 "RESTSupport.c" -} - - -static gchar* -publishing_rest_support_value_session_lcopy_value (const GValue* value, - guint n_collect_values, - GTypeCValue* collect_values, - guint collect_flags) -{ - PublishingRESTSupportSession ** object_p; - object_p = collect_values[0].v_pointer; -#line 25 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - if (!object_p) { -#line 25 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value)); -#line 1135 "RESTSupport.c" - } -#line 25 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - if (!value->data[0].v_pointer) { -#line 25 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - *object_p = NULL; -#line 1141 "RESTSupport.c" - } else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) { -#line 25 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - *object_p = value->data[0].v_pointer; -#line 1145 "RESTSupport.c" - } else { -#line 25 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - *object_p = publishing_rest_support_session_ref (value->data[0].v_pointer); -#line 1149 "RESTSupport.c" - } -#line 25 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - return NULL; -#line 1153 "RESTSupport.c" -} - - -GParamSpec* -publishing_rest_support_param_spec_session (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags) -{ - PublishingRESTSupportParamSpecSession* spec; -#line 25 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_return_val_if_fail (g_type_is_a (object_type, PUBLISHING_REST_SUPPORT_TYPE_SESSION), NULL); -#line 25 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags); -#line 25 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - G_PARAM_SPEC (spec)->value_type = object_type; -#line 25 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - return G_PARAM_SPEC (spec); -#line 1173 "RESTSupport.c" -} - - -gpointer -publishing_rest_support_value_get_session (const GValue* value) -{ -#line 25 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, PUBLISHING_REST_SUPPORT_TYPE_SESSION), NULL); -#line 25 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - return value->data[0].v_pointer; -#line 1184 "RESTSupport.c" -} - - -void -publishing_rest_support_value_set_session (GValue* value, - gpointer v_object) -{ - PublishingRESTSupportSession * old; -#line 25 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, PUBLISHING_REST_SUPPORT_TYPE_SESSION)); -#line 25 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - old = value->data[0].v_pointer; -#line 25 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - if (v_object) { -#line 25 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, PUBLISHING_REST_SUPPORT_TYPE_SESSION)); -#line 25 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value))); -#line 25 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - value->data[0].v_pointer = v_object; -#line 25 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - publishing_rest_support_session_ref (value->data[0].v_pointer); -#line 1207 "RESTSupport.c" - } else { -#line 25 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - value->data[0].v_pointer = NULL; -#line 1211 "RESTSupport.c" - } -#line 25 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - if (old) { -#line 25 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - publishing_rest_support_session_unref (old); -#line 1217 "RESTSupport.c" - } -} - - -void -publishing_rest_support_value_take_session (GValue* value, - gpointer v_object) -{ - PublishingRESTSupportSession * old; -#line 25 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, PUBLISHING_REST_SUPPORT_TYPE_SESSION)); -#line 25 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - old = value->data[0].v_pointer; -#line 25 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - if (v_object) { -#line 25 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, PUBLISHING_REST_SUPPORT_TYPE_SESSION)); -#line 25 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value))); -#line 25 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - value->data[0].v_pointer = v_object; -#line 1239 "RESTSupport.c" - } else { -#line 25 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - value->data[0].v_pointer = NULL; -#line 1243 "RESTSupport.c" - } -#line 25 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - if (old) { -#line 25 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - publishing_rest_support_session_unref (old); -#line 1249 "RESTSupport.c" - } -} - - -static void -publishing_rest_support_session_class_init (PublishingRESTSupportSessionClass * klass) -{ -#line 25 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - publishing_rest_support_session_parent_class = g_type_class_peek_parent (klass); -#line 25 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - ((PublishingRESTSupportSessionClass *) klass)->finalize = publishing_rest_support_session_finalize; -#line 25 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_type_class_add_private (klass, sizeof (PublishingRESTSupportSessionPrivate)); -#line 25 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - ((PublishingRESTSupportSessionClass *) klass)->is_authenticated = (gboolean (*) (PublishingRESTSupportSession *)) publishing_rest_support_session_real_is_authenticated; -#line 25 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - publishing_rest_support_session_signals[PUBLISHING_REST_SUPPORT_SESSION_WIRE_MESSAGE_UNQUEUED_SIGNAL] = g_signal_new ("wire-message-unqueued", PUBLISHING_REST_SUPPORT_TYPE_SESSION, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_marshal_VOID__OBJECT, G_TYPE_NONE, 1, soup_message_get_type ()); -#line 25 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - publishing_rest_support_session_signals[PUBLISHING_REST_SUPPORT_SESSION_AUTHENTICATED_SIGNAL] = g_signal_new ("authenticated", PUBLISHING_REST_SUPPORT_TYPE_SESSION, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_marshal_VOID__VOID, G_TYPE_NONE, 0); -#line 25 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - publishing_rest_support_session_signals[PUBLISHING_REST_SUPPORT_SESSION_AUTHENTICATION_FAILED_SIGNAL] = g_signal_new ("authentication-failed", PUBLISHING_REST_SUPPORT_TYPE_SESSION, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_marshal_VOID__POINTER, G_TYPE_NONE, 1, G_TYPE_POINTER); -#line 1271 "RESTSupport.c" -} - - -static void -publishing_rest_support_session_instance_init (PublishingRESTSupportSession * self) -{ -#line 25 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - self->priv = PUBLISHING_REST_SUPPORT_SESSION_GET_PRIVATE (self); -#line 26 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - self->priv->endpoint_url = NULL; -#line 27 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - self->priv->soup_session = NULL; -#line 28 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - self->priv->transactions_stopped = FALSE; -#line 25 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - self->ref_count = 1; -#line 1288 "RESTSupport.c" -} - - -static void -publishing_rest_support_session_finalize (PublishingRESTSupportSession * obj) -{ - PublishingRESTSupportSession * self; -#line 25 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, PUBLISHING_REST_SUPPORT_TYPE_SESSION, PublishingRESTSupportSession); -#line 25 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_signal_handlers_destroy (self); -#line 26 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _g_free0 (self->priv->endpoint_url); -#line 27 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _g_object_unref0 (self->priv->soup_session); -#line 1304 "RESTSupport.c" -} - - -GType -publishing_rest_support_session_get_type (void) -{ - static volatile gsize publishing_rest_support_session_type_id__volatile = 0; - if (g_once_init_enter (&publishing_rest_support_session_type_id__volatile)) { - static const GTypeValueTable g_define_type_value_table = { publishing_rest_support_value_session_init, publishing_rest_support_value_session_free_value, publishing_rest_support_value_session_copy_value, publishing_rest_support_value_session_peek_pointer, "p", publishing_rest_support_value_session_collect_value, "p", publishing_rest_support_value_session_lcopy_value }; - static const GTypeInfo g_define_type_info = { sizeof (PublishingRESTSupportSessionClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) publishing_rest_support_session_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PublishingRESTSupportSession), 0, (GInstanceInitFunc) publishing_rest_support_session_instance_init, &g_define_type_value_table }; - static const GTypeFundamentalInfo g_define_type_fundamental_info = { (G_TYPE_FLAG_CLASSED | G_TYPE_FLAG_INSTANTIATABLE | G_TYPE_FLAG_DERIVABLE | G_TYPE_FLAG_DEEP_DERIVABLE) }; - GType publishing_rest_support_session_type_id; - publishing_rest_support_session_type_id = g_type_register_fundamental (g_type_fundamental_next (), "PublishingRESTSupportSession", &g_define_type_info, &g_define_type_fundamental_info, G_TYPE_FLAG_ABSTRACT); - g_once_init_leave (&publishing_rest_support_session_type_id__volatile, publishing_rest_support_session_type_id); - } - return publishing_rest_support_session_type_id__volatile; -} - - -gpointer -publishing_rest_support_session_ref (gpointer instance) -{ - PublishingRESTSupportSession * self; - self = instance; -#line 25 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_atomic_int_inc (&self->ref_count); -#line 25 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - return instance; -#line 1333 "RESTSupport.c" -} - - -void -publishing_rest_support_session_unref (gpointer instance) -{ - PublishingRESTSupportSession * self; - self = instance; -#line 25 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - if (g_atomic_int_dec_and_test (&self->ref_count)) { -#line 25 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - PUBLISHING_REST_SUPPORT_SESSION_GET_CLASS (self)->finalize (self); -#line 25 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_type_free_instance ((GTypeInstance *) self); -#line 1348 "RESTSupport.c" - } -} - - -gchar* -publishing_rest_support_http_method_to_string (PublishingRESTSupportHttpMethod self) -{ - gchar* result = NULL; -#line 89 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - switch (self) { -#line 89 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - case PUBLISHING_REST_SUPPORT_HTTP_METHOD_GET: -#line 1361 "RESTSupport.c" - { - gchar* _tmp0_; -#line 91 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp0_ = g_strdup ("GET"); -#line 91 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - result = _tmp0_; -#line 91 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - return result; -#line 1370 "RESTSupport.c" - } -#line 89 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - case PUBLISHING_REST_SUPPORT_HTTP_METHOD_PUT: -#line 1374 "RESTSupport.c" - { - gchar* _tmp1_; -#line 94 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp1_ = g_strdup ("PUT"); -#line 94 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - result = _tmp1_; -#line 94 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - return result; -#line 1383 "RESTSupport.c" - } -#line 89 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - case PUBLISHING_REST_SUPPORT_HTTP_METHOD_POST: -#line 1387 "RESTSupport.c" - { - gchar* _tmp2_; -#line 97 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp2_ = g_strdup ("POST"); -#line 97 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - result = _tmp2_; -#line 97 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - return result; -#line 1396 "RESTSupport.c" - } - default: - { -#line 100 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_error ("RESTSupport.vala:100: unrecognized HTTP method enumeration value"); -#line 1402 "RESTSupport.c" - } - } -} - - -PublishingRESTSupportHttpMethod -publishing_rest_support_http_method_from_string (const gchar* str) -{ - PublishingRESTSupportHttpMethod result = 0; -#line 104 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_return_val_if_fail (str != NULL, 0); -#line 105 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - if (g_strcmp0 (str, "GET") == 0) { -#line 106 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - result = PUBLISHING_REST_SUPPORT_HTTP_METHOD_GET; -#line 106 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - return result; -#line 1420 "RESTSupport.c" - } else { -#line 107 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - if (g_strcmp0 (str, "PUT") == 0) { -#line 108 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - result = PUBLISHING_REST_SUPPORT_HTTP_METHOD_PUT; -#line 108 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - return result; -#line 1428 "RESTSupport.c" - } else { -#line 109 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - if (g_strcmp0 (str, "POST") == 0) { -#line 110 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - result = PUBLISHING_REST_SUPPORT_HTTP_METHOD_POST; -#line 110 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - return result; -#line 1436 "RESTSupport.c" - } else { -#line 112 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_error ("RESTSupport.vala:112: unrecognized HTTP method name: %s", str); -#line 1440 "RESTSupport.c" - } - } - } -} - - -GType -publishing_rest_support_http_method_get_type (void) -{ - static volatile gsize publishing_rest_support_http_method_type_id__volatile = 0; - if (g_once_init_enter (&publishing_rest_support_http_method_type_id__volatile)) { - static const GEnumValue values[] = {{PUBLISHING_REST_SUPPORT_HTTP_METHOD_GET, "PUBLISHING_REST_SUPPORT_HTTP_METHOD_GET", "get"}, {PUBLISHING_REST_SUPPORT_HTTP_METHOD_POST, "PUBLISHING_REST_SUPPORT_HTTP_METHOD_POST", "post"}, {PUBLISHING_REST_SUPPORT_HTTP_METHOD_PUT, "PUBLISHING_REST_SUPPORT_HTTP_METHOD_PUT", "put"}, {0, NULL, NULL}}; - GType publishing_rest_support_http_method_type_id; - publishing_rest_support_http_method_type_id = g_enum_register_static ("PublishingRESTSupportHttpMethod", values); - g_once_init_leave (&publishing_rest_support_http_method_type_id__volatile, publishing_rest_support_http_method_type_id); - } - return publishing_rest_support_http_method_type_id__volatile; -} - - -PublishingRESTSupportArgument* -publishing_rest_support_argument_construct (GType object_type, - const gchar* key, - const gchar* value) -{ - PublishingRESTSupportArgument* self = NULL; - gchar* _tmp0_; - gchar* _tmp1_; -#line 121 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_return_val_if_fail (key != NULL, NULL); -#line 121 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_return_val_if_fail (value != NULL, NULL); -#line 121 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - self = (PublishingRESTSupportArgument*) g_type_create_instance (object_type); -#line 122 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp0_ = g_strdup (key); -#line 122 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _g_free0 (self->key); -#line 122 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - self->key = _tmp0_; -#line 123 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp1_ = g_strdup (value); -#line 123 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _g_free0 (self->value); -#line 123 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - self->value = _tmp1_; -#line 121 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - return self; -#line 1489 "RESTSupport.c" -} - - -PublishingRESTSupportArgument* -publishing_rest_support_argument_new (const gchar* key, - const gchar* value) -{ -#line 121 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - return publishing_rest_support_argument_construct (PUBLISHING_REST_SUPPORT_TYPE_ARGUMENT, key, value); -#line 1499 "RESTSupport.c" -} - - -static gpointer -_publishing_rest_support_argument_ref0 (gpointer self) -{ -#line 129 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - return self ? publishing_rest_support_argument_ref (self) : NULL; -#line 1508 "RESTSupport.c" -} - - -gchar* -publishing_rest_support_argument_serialize_list (PublishingRESTSupportArgument** args, - int args_length1, - gboolean escape, - const gchar* separator) -{ - gchar* result = NULL; - GString* builder = NULL; - GString* _tmp0_; - GString* _tmp7_; - gssize _tmp8_; - GString* _tmp14_; - const gchar* _tmp15_; - gchar* _tmp16_; -#line 127 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp0_ = g_string_new (""); -#line 127 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - builder = _tmp0_; -#line 1530 "RESTSupport.c" - { - PublishingRESTSupportArgument** arg_collection = NULL; - gint arg_collection_length1 = 0; - gint _arg_collection_size_ = 0; - gint arg_it = 0; -#line 129 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - arg_collection = args; -#line 129 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - arg_collection_length1 = args_length1; -#line 129 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - for (arg_it = 0; arg_it < args_length1; arg_it = arg_it + 1) { -#line 1542 "RESTSupport.c" - PublishingRESTSupportArgument* _tmp1_; - PublishingRESTSupportArgument* arg = NULL; -#line 129 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp1_ = _publishing_rest_support_argument_ref0 (arg_collection[arg_it]); -#line 129 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - arg = _tmp1_; -#line 1549 "RESTSupport.c" - { - GString* _tmp2_; - PublishingRESTSupportArgument* _tmp3_; - gchar* _tmp4_; - gchar* _tmp5_; - GString* _tmp6_; -#line 130 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp2_ = builder; -#line 130 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp3_ = arg; -#line 130 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp4_ = publishing_rest_support_argument_to_string (_tmp3_, escape); -#line 130 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp5_ = _tmp4_; -#line 130 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_string_append (_tmp2_, _tmp5_); -#line 130 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _g_free0 (_tmp5_); -#line 131 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp6_ = builder; -#line 131 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_string_append (_tmp6_, separator); -#line 129 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _publishing_rest_support_argument_unref0 (arg); -#line 1574 "RESTSupport.c" - } - } - } -#line 134 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp7_ = builder; -#line 134 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp8_ = _tmp7_->len; -#line 134 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - if (_tmp8_ > ((gssize) 0)) { -#line 1584 "RESTSupport.c" - GString* _tmp9_; - GString* _tmp10_; - gssize _tmp11_; - gint _tmp12_; - gint _tmp13_; -#line 135 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp9_ = builder; -#line 135 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp10_ = builder; -#line 135 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp11_ = _tmp10_->len; -#line 135 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp12_ = strlen (separator); -#line 135 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp13_ = _tmp12_; -#line 135 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_string_truncate (_tmp9_, (gsize) (_tmp11_ - _tmp13_)); -#line 1602 "RESTSupport.c" - } -#line 137 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp14_ = builder; -#line 137 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp15_ = _tmp14_->str; -#line 137 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp16_ = g_strdup (_tmp15_); -#line 137 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - result = _tmp16_; -#line 137 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _g_string_free0 (builder); -#line 137 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - return result; -#line 1616 "RESTSupport.c" -} - - -gint -publishing_rest_support_argument_compare (PublishingRESTSupportArgument* arg1, - PublishingRESTSupportArgument* arg2) -{ - gint result = 0; - GCompareFunc _tmp0_; - const gchar* _tmp1_; - const gchar* _tmp2_; -#line 140 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_return_val_if_fail (PUBLISHING_REST_SUPPORT_IS_ARGUMENT (arg1), 0); -#line 140 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_return_val_if_fail (PUBLISHING_REST_SUPPORT_IS_ARGUMENT (arg2), 0); -#line 141 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp0_ = g_strcmp0; -#line 141 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp1_ = arg1->key; -#line 141 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp2_ = arg2->key; -#line 141 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - result = _tmp0_ (_tmp1_, _tmp2_); -#line 141 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - return result; -#line 1642 "RESTSupport.c" -} - - -static gint -_publishing_rest_support_argument_compare_gcompare_data_func (gconstpointer a, - gconstpointer b, - gpointer self) -{ - gint result; - result = publishing_rest_support_argument_compare ((PublishingRESTSupportArgument*) a, (PublishingRESTSupportArgument*) b); -#line 145 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - return result; -#line 1655 "RESTSupport.c" -} - - -PublishingRESTSupportArgument** -publishing_rest_support_argument_sort (PublishingRESTSupportArgument** inputArray, - int inputArray_length1, - int* result_length1) -{ - PublishingRESTSupportArgument** result = NULL; - GeeTreeSet* sorted_args = NULL; - GeeTreeSet* _tmp0_; - GeeTreeSet* _tmp4_; - gint _tmp5_; - gpointer* _tmp6_; - PublishingRESTSupportArgument** _tmp7_; - gint _tmp7__length1; -#line 145 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp0_ = gee_tree_set_new (PUBLISHING_REST_SUPPORT_TYPE_ARGUMENT, (GBoxedCopyFunc) publishing_rest_support_argument_ref, (GDestroyNotify) publishing_rest_support_argument_unref, _publishing_rest_support_argument_compare_gcompare_data_func, NULL, NULL); -#line 145 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - sorted_args = _tmp0_; -#line 1676 "RESTSupport.c" - { - PublishingRESTSupportArgument** arg_collection = NULL; - gint arg_collection_length1 = 0; - gint _arg_collection_size_ = 0; - gint arg_it = 0; -#line 147 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - arg_collection = inputArray; -#line 147 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - arg_collection_length1 = inputArray_length1; -#line 147 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - for (arg_it = 0; arg_it < inputArray_length1; arg_it = arg_it + 1) { -#line 1688 "RESTSupport.c" - PublishingRESTSupportArgument* _tmp1_; - PublishingRESTSupportArgument* arg = NULL; -#line 147 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp1_ = _publishing_rest_support_argument_ref0 (arg_collection[arg_it]); -#line 147 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - arg = _tmp1_; -#line 1695 "RESTSupport.c" - { - GeeTreeSet* _tmp2_; - PublishingRESTSupportArgument* _tmp3_; -#line 148 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp2_ = sorted_args; -#line 148 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp3_ = arg; -#line 148 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), _tmp3_); -#line 147 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _publishing_rest_support_argument_unref0 (arg); -#line 1707 "RESTSupport.c" - } - } - } -#line 150 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp4_ = sorted_args; -#line 150 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp6_ = gee_collection_to_array (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, GEE_TYPE_COLLECTION, GeeCollection), &_tmp5_); -#line 150 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp7_ = _tmp6_; -#line 150 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp7__length1 = _tmp5_; -#line 150 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - if (result_length1) { -#line 150 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - *result_length1 = _tmp7__length1; -#line 1723 "RESTSupport.c" - } -#line 150 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - result = _tmp7_; -#line 150 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _g_object_unref0 (sorted_args); -#line 150 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - return result; -#line 1731 "RESTSupport.c" -} - - -gchar* -publishing_rest_support_argument_to_string (PublishingRESTSupportArgument* self, - gboolean escape) -{ - gchar* result = NULL; - const gchar* _tmp0_ = NULL; - const gchar* _tmp1_ = NULL; - const gchar* _tmp2_; - const gchar* _tmp3_; - gchar* _tmp4_; -#line 153 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_return_val_if_fail (PUBLISHING_REST_SUPPORT_IS_ARGUMENT (self), NULL); -#line 154 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - if (escape) { -#line 154 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp0_ = "\""; -#line 1751 "RESTSupport.c" - } else { -#line 154 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp0_ = ""; -#line 1755 "RESTSupport.c" - } -#line 154 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - if (escape) { -#line 154 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp1_ = "\""; -#line 1761 "RESTSupport.c" - } else { -#line 154 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp1_ = ""; -#line 1765 "RESTSupport.c" - } -#line 154 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp2_ = self->key; -#line 154 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp3_ = self->value; -#line 154 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp4_ = g_strdup_printf ("%s=%s%s%s", _tmp2_, _tmp0_, _tmp3_, _tmp1_); -#line 154 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - result = _tmp4_; -#line 154 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - return result; -#line 1777 "RESTSupport.c" -} - - -static void -publishing_rest_support_value_argument_init (GValue* value) -{ -#line 117 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - value->data[0].v_pointer = NULL; -#line 1786 "RESTSupport.c" -} - - -static void -publishing_rest_support_value_argument_free_value (GValue* value) -{ -#line 117 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - if (value->data[0].v_pointer) { -#line 117 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - publishing_rest_support_argument_unref (value->data[0].v_pointer); -#line 1797 "RESTSupport.c" - } -} - - -static void -publishing_rest_support_value_argument_copy_value (const GValue* src_value, - GValue* dest_value) -{ -#line 117 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - if (src_value->data[0].v_pointer) { -#line 117 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - dest_value->data[0].v_pointer = publishing_rest_support_argument_ref (src_value->data[0].v_pointer); -#line 1810 "RESTSupport.c" - } else { -#line 117 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - dest_value->data[0].v_pointer = NULL; -#line 1814 "RESTSupport.c" - } -} - - -static gpointer -publishing_rest_support_value_argument_peek_pointer (const GValue* value) -{ -#line 117 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - return value->data[0].v_pointer; -#line 1824 "RESTSupport.c" -} - - -static gchar* -publishing_rest_support_value_argument_collect_value (GValue* value, - guint n_collect_values, - GTypeCValue* collect_values, - guint collect_flags) -{ -#line 117 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - if (collect_values[0].v_pointer) { -#line 1836 "RESTSupport.c" - PublishingRESTSupportArgument * object; - object = collect_values[0].v_pointer; -#line 117 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - if (object->parent_instance.g_class == NULL) { -#line 117 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL); -#line 1843 "RESTSupport.c" - } else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) { -#line 117 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - return g_strconcat ("invalid object type `", g_type_name (G_TYPE_FROM_INSTANCE (object)), "' for value type `", G_VALUE_TYPE_NAME (value), "'", NULL); -#line 1847 "RESTSupport.c" - } -#line 117 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - value->data[0].v_pointer = publishing_rest_support_argument_ref (object); -#line 1851 "RESTSupport.c" - } else { -#line 117 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - value->data[0].v_pointer = NULL; -#line 1855 "RESTSupport.c" - } -#line 117 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - return NULL; -#line 1859 "RESTSupport.c" -} - - -static gchar* -publishing_rest_support_value_argument_lcopy_value (const GValue* value, - guint n_collect_values, - GTypeCValue* collect_values, - guint collect_flags) -{ - PublishingRESTSupportArgument ** object_p; - object_p = collect_values[0].v_pointer; -#line 117 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - if (!object_p) { -#line 117 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value)); -#line 1875 "RESTSupport.c" - } -#line 117 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - if (!value->data[0].v_pointer) { -#line 117 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - *object_p = NULL; -#line 1881 "RESTSupport.c" - } else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) { -#line 117 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - *object_p = value->data[0].v_pointer; -#line 1885 "RESTSupport.c" - } else { -#line 117 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - *object_p = publishing_rest_support_argument_ref (value->data[0].v_pointer); -#line 1889 "RESTSupport.c" - } -#line 117 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - return NULL; -#line 1893 "RESTSupport.c" -} - - -GParamSpec* -publishing_rest_support_param_spec_argument (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags) -{ - PublishingRESTSupportParamSpecArgument* spec; -#line 117 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_return_val_if_fail (g_type_is_a (object_type, PUBLISHING_REST_SUPPORT_TYPE_ARGUMENT), NULL); -#line 117 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags); -#line 117 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - G_PARAM_SPEC (spec)->value_type = object_type; -#line 117 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - return G_PARAM_SPEC (spec); -#line 1913 "RESTSupport.c" -} - - -gpointer -publishing_rest_support_value_get_argument (const GValue* value) -{ -#line 117 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, PUBLISHING_REST_SUPPORT_TYPE_ARGUMENT), NULL); -#line 117 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - return value->data[0].v_pointer; -#line 1924 "RESTSupport.c" -} - - -void -publishing_rest_support_value_set_argument (GValue* value, - gpointer v_object) -{ - PublishingRESTSupportArgument * old; -#line 117 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, PUBLISHING_REST_SUPPORT_TYPE_ARGUMENT)); -#line 117 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - old = value->data[0].v_pointer; -#line 117 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - if (v_object) { -#line 117 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, PUBLISHING_REST_SUPPORT_TYPE_ARGUMENT)); -#line 117 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value))); -#line 117 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - value->data[0].v_pointer = v_object; -#line 117 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - publishing_rest_support_argument_ref (value->data[0].v_pointer); -#line 1947 "RESTSupport.c" - } else { -#line 117 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - value->data[0].v_pointer = NULL; -#line 1951 "RESTSupport.c" - } -#line 117 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - if (old) { -#line 117 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - publishing_rest_support_argument_unref (old); -#line 1957 "RESTSupport.c" - } -} - - -void -publishing_rest_support_value_take_argument (GValue* value, - gpointer v_object) -{ - PublishingRESTSupportArgument * old; -#line 117 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, PUBLISHING_REST_SUPPORT_TYPE_ARGUMENT)); -#line 117 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - old = value->data[0].v_pointer; -#line 117 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - if (v_object) { -#line 117 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, PUBLISHING_REST_SUPPORT_TYPE_ARGUMENT)); -#line 117 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value))); -#line 117 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - value->data[0].v_pointer = v_object; -#line 1979 "RESTSupport.c" - } else { -#line 117 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - value->data[0].v_pointer = NULL; -#line 1983 "RESTSupport.c" - } -#line 117 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - if (old) { -#line 117 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - publishing_rest_support_argument_unref (old); -#line 1989 "RESTSupport.c" - } -} - - -static void -publishing_rest_support_argument_class_init (PublishingRESTSupportArgumentClass * klass) -{ -#line 117 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - publishing_rest_support_argument_parent_class = g_type_class_peek_parent (klass); -#line 117 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - ((PublishingRESTSupportArgumentClass *) klass)->finalize = publishing_rest_support_argument_finalize; -#line 2001 "RESTSupport.c" -} - - -static void -publishing_rest_support_argument_instance_init (PublishingRESTSupportArgument * self) -{ -#line 117 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - self->ref_count = 1; -#line 2010 "RESTSupport.c" -} - - -static void -publishing_rest_support_argument_finalize (PublishingRESTSupportArgument * obj) -{ - PublishingRESTSupportArgument * self; -#line 117 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, PUBLISHING_REST_SUPPORT_TYPE_ARGUMENT, PublishingRESTSupportArgument); -#line 117 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_signal_handlers_destroy (self); -#line 118 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _g_free0 (self->key); -#line 119 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _g_free0 (self->value); -#line 2026 "RESTSupport.c" -} - - -GType -publishing_rest_support_argument_get_type (void) -{ - static volatile gsize publishing_rest_support_argument_type_id__volatile = 0; - if (g_once_init_enter (&publishing_rest_support_argument_type_id__volatile)) { - static const GTypeValueTable g_define_type_value_table = { publishing_rest_support_value_argument_init, publishing_rest_support_value_argument_free_value, publishing_rest_support_value_argument_copy_value, publishing_rest_support_value_argument_peek_pointer, "p", publishing_rest_support_value_argument_collect_value, "p", publishing_rest_support_value_argument_lcopy_value }; - static const GTypeInfo g_define_type_info = { sizeof (PublishingRESTSupportArgumentClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) publishing_rest_support_argument_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PublishingRESTSupportArgument), 0, (GInstanceInitFunc) publishing_rest_support_argument_instance_init, &g_define_type_value_table }; - static const GTypeFundamentalInfo g_define_type_fundamental_info = { (G_TYPE_FLAG_CLASSED | G_TYPE_FLAG_INSTANTIATABLE | G_TYPE_FLAG_DERIVABLE | G_TYPE_FLAG_DEEP_DERIVABLE) }; - GType publishing_rest_support_argument_type_id; - publishing_rest_support_argument_type_id = g_type_register_fundamental (g_type_fundamental_next (), "PublishingRESTSupportArgument", &g_define_type_info, &g_define_type_fundamental_info, 0); - g_once_init_leave (&publishing_rest_support_argument_type_id__volatile, publishing_rest_support_argument_type_id); - } - return publishing_rest_support_argument_type_id__volatile; -} - - -gpointer -publishing_rest_support_argument_ref (gpointer instance) -{ - PublishingRESTSupportArgument * self; - self = instance; -#line 117 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_atomic_int_inc (&self->ref_count); -#line 117 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - return instance; -#line 2055 "RESTSupport.c" -} - - -void -publishing_rest_support_argument_unref (gpointer instance) -{ - PublishingRESTSupportArgument * self; - self = instance; -#line 117 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - if (g_atomic_int_dec_and_test (&self->ref_count)) { -#line 117 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - PUBLISHING_REST_SUPPORT_ARGUMENT_GET_CLASS (self)->finalize (self); -#line 117 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_type_free_instance ((GTypeInstance *) self); -#line 2070 "RESTSupport.c" - } -} - - -static void -_publishing_rest_support_transaction_on_wrote_body_data_soup_message_wrote_body_data (SoupMessage* _sender, - SoupBuffer* chunk, - gpointer self) -{ -#line 181 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - publishing_rest_support_transaction_on_wrote_body_data ((PublishingRESTSupportTransaction*) self, chunk); -#line 2082 "RESTSupport.c" -} - - -PublishingRESTSupportTransaction* -publishing_rest_support_transaction_construct (GType object_type, - PublishingRESTSupportSession* parent_session, - PublishingRESTSupportHttpMethod method) -{ - PublishingRESTSupportTransaction* self = NULL; - gchar* _tmp0_; - gchar* _tmp1_; - gchar* _tmp2_; - gchar* _tmp3_; - gchar* _tmp4_; - gchar* _tmp5_; - SoupMessage* _tmp6_; - SoupMessage* _tmp7_; -#line 173 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_return_val_if_fail (PUBLISHING_REST_SUPPORT_IS_SESSION (parent_session), NULL); -#line 173 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - self = (PublishingRESTSupportTransaction*) g_type_create_instance (object_type); -#line 176 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp0_ = publishing_rest_support_session_get_endpoint_url (parent_session); -#line 176 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp1_ = _tmp0_; -#line 176 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _vala_assert (_tmp1_ != NULL, "parent_session.get_endpoint_url() != null"); -#line 176 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _g_free0 (_tmp1_); -#line 178 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - self->priv->parent_session = parent_session; -#line 180 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp2_ = publishing_rest_support_http_method_to_string (method); -#line 180 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp3_ = _tmp2_; -#line 180 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp4_ = publishing_rest_support_session_get_endpoint_url (parent_session); -#line 180 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp5_ = _tmp4_; -#line 180 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp6_ = soup_message_new (_tmp3_, _tmp5_); -#line 180 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _g_object_unref0 (self->priv->message); -#line 180 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - self->priv->message = _tmp6_; -#line 180 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _g_free0 (_tmp5_); -#line 180 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _g_free0 (_tmp3_); -#line 181 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp7_ = self->priv->message; -#line 181 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_signal_connect (_tmp7_, "wrote-body-data", (GCallback) _publishing_rest_support_transaction_on_wrote_body_data_soup_message_wrote_body_data, self); -#line 173 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - return self; -#line 2138 "RESTSupport.c" -} - - -PublishingRESTSupportTransaction* -publishing_rest_support_transaction_new (PublishingRESTSupportSession* parent_session, - PublishingRESTSupportHttpMethod method) -{ -#line 173 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - return publishing_rest_support_transaction_construct (PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, parent_session, method); -#line 2148 "RESTSupport.c" -} - - -PublishingRESTSupportTransaction* -publishing_rest_support_transaction_construct_with_endpoint_url (GType object_type, - PublishingRESTSupportSession* parent_session, - const gchar* endpoint_url, - PublishingRESTSupportHttpMethod method) -{ - PublishingRESTSupportTransaction* self = NULL; - gchar* _tmp0_; - gchar* _tmp1_; - gchar* _tmp2_; - SoupMessage* _tmp3_; -#line 184 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_return_val_if_fail (PUBLISHING_REST_SUPPORT_IS_SESSION (parent_session), NULL); -#line 184 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_return_val_if_fail (endpoint_url != NULL, NULL); -#line 184 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - self = (PublishingRESTSupportTransaction*) g_type_create_instance (object_type); -#line 186 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - self->priv->parent_session = parent_session; -#line 187 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp0_ = g_strdup (endpoint_url); -#line 187 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _g_free0 (self->priv->endpoint_url); -#line 187 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - self->priv->endpoint_url = _tmp0_; -#line 188 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp1_ = publishing_rest_support_http_method_to_string (method); -#line 188 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp2_ = _tmp1_; -#line 188 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp3_ = soup_message_new (_tmp2_, endpoint_url); -#line 188 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _g_object_unref0 (self->priv->message); -#line 188 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - self->priv->message = _tmp3_; -#line 188 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _g_free0 (_tmp2_); -#line 184 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - return self; -#line 2191 "RESTSupport.c" -} - - -PublishingRESTSupportTransaction* -publishing_rest_support_transaction_new_with_endpoint_url (PublishingRESTSupportSession* parent_session, - const gchar* endpoint_url, - PublishingRESTSupportHttpMethod method) -{ -#line 184 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - return publishing_rest_support_transaction_construct_with_endpoint_url (PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, parent_session, endpoint_url, method); -#line 2202 "RESTSupport.c" -} - - -static void -publishing_rest_support_transaction_on_wrote_body_data (PublishingRESTSupportTransaction* self, - SoupBuffer* written_data) -{ - gint _tmp0_; - gsize _tmp1_; - gint _tmp2_; - SoupMessage* _tmp3_; - SoupMessageBody* _tmp4_; - gint64 _tmp5_; -#line 191 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_return_if_fail (PUBLISHING_REST_SUPPORT_IS_TRANSACTION (self)); -#line 191 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_return_if_fail (written_data != NULL); -#line 192 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp0_ = self->priv->bytes_written; -#line 192 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp1_ = written_data->length; -#line 192 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - self->priv->bytes_written = _tmp0_ + ((gint) _tmp1_); -#line 193 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp2_ = self->priv->bytes_written; -#line 193 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp3_ = self->priv->message; -#line 193 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp4_ = _tmp3_->request_body; -#line 193 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp5_ = _tmp4_->length; -#line 193 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_signal_emit (self, publishing_rest_support_transaction_signals[PUBLISHING_REST_SUPPORT_TRANSACTION_CHUNK_TRANSMITTED_SIGNAL], 0, _tmp2_, (gint) _tmp5_); -#line 2236 "RESTSupport.c" -} - - -static gpointer -_g_error_copy0 (gpointer self) -{ -#line 205 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - return self ? g_error_copy (self) : NULL; -#line 2245 "RESTSupport.c" -} - - -static void -publishing_rest_support_transaction_on_message_unqueued (PublishingRESTSupportTransaction* self, - SoupMessage* message) -{ - SoupMessage* _tmp0_; - GError * _inner_error_ = NULL; -#line 196 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_return_if_fail (PUBLISHING_REST_SUPPORT_IS_TRANSACTION (self)); -#line 196 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_return_if_fail (SOUP_IS_MESSAGE (message)); -#line 197 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp0_ = self->priv->message; -#line 197 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - if (_tmp0_ != message) { -#line 198 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - return; -#line 2265 "RESTSupport.c" - } - { -#line 201 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - publishing_rest_support_transaction_check_response (self, message, &_inner_error_); -#line 201 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 201 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - if (_inner_error_->domain == SPIT_PUBLISHING_PUBLISHING_ERROR) { -#line 2274 "RESTSupport.c" - goto __catch0_spit_publishing_publishing_error; - } -#line 201 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 201 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_clear_error (&_inner_error_); -#line 201 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - return; -#line 2283 "RESTSupport.c" - } - } - goto __finally0; - __catch0_spit_publishing_publishing_error: - { - GError* err = NULL; - GError* _tmp1_; - const gchar* _tmp2_; - gchar* _tmp3_; - gchar* _tmp4_; - GError* _tmp5_; - GError* _tmp6_; -#line 200 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - err = _inner_error_; -#line 200 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _inner_error_ = NULL; -#line 203 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp1_ = err; -#line 203 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp2_ = _tmp1_->message; -#line 203 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_warning ("RESTSupport.vala:203: Publishing error: %s", _tmp2_); -#line 204 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp3_ = publishing_rest_support_transaction_get_response (self); -#line 204 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp4_ = _tmp3_; -#line 204 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_warning ("RESTSupport.vala:204: response validation failed. bad response = '%s'.", _tmp4_); -#line 204 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _g_free0 (_tmp4_); -#line 205 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp5_ = err; -#line 205 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp6_ = _g_error_copy0 (_tmp5_); -#line 205 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _g_error_free0 (self->priv->err); -#line 205 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - self->priv->err = _tmp6_; -#line 200 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _g_error_free0 (err); -#line 2324 "RESTSupport.c" - } - __finally0: -#line 200 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 200 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 200 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_clear_error (&_inner_error_); -#line 200 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - return; -#line 2335 "RESTSupport.c" - } -} - - -static gpointer -_g_object_ref0 (gpointer self) -{ -#line 212 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - return self ? g_object_ref (self) : NULL; -#line 2345 "RESTSupport.c" -} - - -gchar* -publishing_rest_support_transaction_detailed_error_from_tls_flags (PublishingRESTSupportTransaction* self, - GTlsCertificate* * cert) -{ - GTlsCertificate* _vala_cert = NULL; - gchar* result = NULL; - GTlsCertificateFlags tls_errors = 0; - SoupMessage* _tmp0_; - GTlsCertificate* _tmp1_ = NULL; - GTlsCertificateFlags _tmp2_ = 0; - GTlsCertificate* _tmp3_; - GeeArrayList* list = NULL; - GeeArrayList* _tmp4_; - GTlsCertificateFlags _tmp5_; - GTlsCertificateFlags _tmp7_; - GTlsCertificateFlags _tmp9_; - GTlsCertificateFlags _tmp11_; - GTlsCertificateFlags _tmp13_; - GTlsCertificateFlags _tmp15_; - GTlsCertificateFlags _tmp17_; - GString* builder = NULL; - GString* _tmp19_; - GeeArrayList* _tmp20_; - gint _tmp21_; - gint _tmp22_; - GString* _tmp40_; - const gchar* _tmp41_; - gchar* _tmp42_; -#line 210 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_return_val_if_fail (PUBLISHING_REST_SUPPORT_IS_TRANSACTION (self), NULL); -#line 212 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp0_ = self->priv->message; -#line 212 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - soup_message_get_https_status (_tmp0_, &_tmp1_, &_tmp2_); -#line 212 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _g_object_unref0 (_vala_cert); -#line 212 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp3_ = _g_object_ref0 (_tmp1_); -#line 212 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _vala_cert = _tmp3_; -#line 212 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - tls_errors = _tmp2_; -#line 214 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp4_ = gee_array_list_new (G_TYPE_STRING, (GBoxedCopyFunc) g_strdup, (GDestroyNotify) g_free, NULL, NULL, NULL); -#line 214 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - list = _tmp4_; -#line 215 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp5_ = tls_errors; -#line 215 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - if ((_tmp5_ & G_TLS_CERTIFICATE_BAD_IDENTITY) == G_TLS_CERTIFICATE_BAD_IDENTITY) { -#line 2399 "RESTSupport.c" - GeeArrayList* _tmp6_; -#line 217 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp6_ = list; -#line 217 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), _ ("⚫ This website presented identification that belongs to a different we" \ -"bsite.")); -#line 2405 "RESTSupport.c" - } -#line 220 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp7_ = tls_errors; -#line 220 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - if ((_tmp7_ & G_TLS_CERTIFICATE_EXPIRED) == G_TLS_CERTIFICATE_EXPIRED) { -#line 2411 "RESTSupport.c" - GeeArrayList* _tmp8_; -#line 222 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp8_ = list; -#line 222 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), _ ("⚫ This website’s identification is too old to trust. Check the date on" \ -" your computer’s calendar.")); -#line 2417 "RESTSupport.c" - } -#line 225 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp9_ = tls_errors; -#line 225 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - if ((_tmp9_ & G_TLS_CERTIFICATE_UNKNOWN_CA) == G_TLS_CERTIFICATE_UNKNOWN_CA) { -#line 2423 "RESTSupport.c" - GeeArrayList* _tmp10_; -#line 227 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp10_ = list; -#line 227 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp10_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), _ ("⚫ This website’s identification was not issued by a trusted organizati" \ -"on.")); -#line 2429 "RESTSupport.c" - } -#line 230 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp11_ = tls_errors; -#line 230 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - if ((_tmp11_ & G_TLS_CERTIFICATE_GENERIC_ERROR) == G_TLS_CERTIFICATE_GENERIC_ERROR) { -#line 2435 "RESTSupport.c" - GeeArrayList* _tmp12_; -#line 232 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp12_ = list; -#line 232 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp12_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), _ ("⚫ This website’s identification could not be processed. It may be corr" \ -"upted.")); -#line 2441 "RESTSupport.c" - } -#line 235 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp13_ = tls_errors; -#line 235 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - if ((_tmp13_ & G_TLS_CERTIFICATE_REVOKED) == G_TLS_CERTIFICATE_REVOKED) { -#line 2447 "RESTSupport.c" - GeeArrayList* _tmp14_; -#line 237 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp14_ = list; -#line 237 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp14_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), _ ("⚫ This website’s identification has been revoked by the trusted organi" \ -"zation that issued it.")); -#line 2453 "RESTSupport.c" - } -#line 240 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp15_ = tls_errors; -#line 240 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - if ((_tmp15_ & G_TLS_CERTIFICATE_INSECURE) == G_TLS_CERTIFICATE_INSECURE) { -#line 2459 "RESTSupport.c" - GeeArrayList* _tmp16_; -#line 242 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp16_ = list; -#line 242 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp16_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), _ ("⚫ This website’s identification cannot be trusted because it uses very" \ -" weak encryption.")); -#line 2465 "RESTSupport.c" - } -#line 245 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp17_ = tls_errors; -#line 245 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - if ((_tmp17_ & G_TLS_CERTIFICATE_NOT_ACTIVATED) == G_TLS_CERTIFICATE_NOT_ACTIVATED) { -#line 2471 "RESTSupport.c" - GeeArrayList* _tmp18_; -#line 247 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp18_ = list; -#line 247 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp18_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), _ ("⚫ This website’s identification is only valid for future dates. Check " \ -"the date on your computer’s calendar.")); -#line 2477 "RESTSupport.c" - } -#line 250 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp19_ = g_string_new (""); -#line 250 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - builder = _tmp19_; -#line 251 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp20_ = list; -#line 251 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp21_ = gee_abstract_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp20_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection)); -#line 251 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp22_ = _tmp21_; -#line 251 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - if (_tmp22_ == 1) { -#line 2491 "RESTSupport.c" - GString* _tmp23_; - GeeArrayList* _tmp24_; - gpointer _tmp25_; - gchar* _tmp26_; -#line 252 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp23_ = builder; -#line 252 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp24_ = list; -#line 252 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp25_ = gee_abstract_list_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp24_, GEE_TYPE_ABSTRACT_LIST, GeeAbstractList), 0); -#line 252 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp26_ = (gchar*) _tmp25_; -#line 252 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_string_append (_tmp23_, _tmp26_); -#line 252 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _g_free0 (_tmp26_); -#line 2508 "RESTSupport.c" - } else { - { - GeeArrayList* _entry_list = NULL; - GeeArrayList* _tmp27_; - GeeArrayList* _tmp28_; - gint _entry_size = 0; - GeeArrayList* _tmp29_; - gint _tmp30_; - gint _tmp31_; - gint _entry_index = 0; -#line 254 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp27_ = list; -#line 254 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp28_ = _g_object_ref0 (_tmp27_); -#line 254 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _entry_list = _tmp28_; -#line 254 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp29_ = _entry_list; -#line 254 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp30_ = gee_abstract_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp29_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection)); -#line 254 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp31_ = _tmp30_; -#line 254 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _entry_size = _tmp31_; -#line 254 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _entry_index = -1; -#line 254 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - while (TRUE) { -#line 2537 "RESTSupport.c" - gint _tmp32_; - gint _tmp33_; - gint _tmp34_; - gchar* entry = NULL; - GeeArrayList* _tmp35_; - gint _tmp36_; - gpointer _tmp37_; - GString* _tmp38_; - const gchar* _tmp39_; -#line 254 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp32_ = _entry_index; -#line 254 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _entry_index = _tmp32_ + 1; -#line 254 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp33_ = _entry_index; -#line 254 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp34_ = _entry_size; -#line 254 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - if (!(_tmp33_ < _tmp34_)) { -#line 254 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - break; -#line 2559 "RESTSupport.c" - } -#line 254 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp35_ = _entry_list; -#line 254 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp36_ = _entry_index; -#line 254 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp37_ = gee_abstract_list_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp35_, GEE_TYPE_ABSTRACT_LIST, GeeAbstractList), _tmp36_); -#line 254 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - entry = (gchar*) _tmp37_; -#line 255 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp38_ = builder; -#line 255 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp39_ = entry; -#line 255 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_string_append_printf (_tmp38_, "%s\n", _tmp39_); -#line 254 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _g_free0 (entry); -#line 2577 "RESTSupport.c" - } -#line 254 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _g_object_unref0 (_entry_list); -#line 2581 "RESTSupport.c" - } - } -#line 259 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp40_ = builder; -#line 259 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp41_ = _tmp40_->str; -#line 259 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp42_ = g_strdup (_tmp41_); -#line 259 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - result = _tmp42_; -#line 259 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _g_string_free0 (builder); -#line 259 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _g_object_unref0 (list); -#line 259 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - if (cert) { -#line 259 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - *cert = _vala_cert; -#line 2600 "RESTSupport.c" - } else { -#line 259 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _g_object_unref0 (_vala_cert); -#line 2604 "RESTSupport.c" - } -#line 259 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - return result; -#line 2608 "RESTSupport.c" -} - - -void -publishing_rest_support_transaction_check_response (PublishingRESTSupportTransaction* self, - SoupMessage* message, - GError** error) -{ - guint _tmp0_; - guint _tmp1_; - gboolean _tmp35_ = FALSE; - SoupMessageBody* _tmp36_; - guint8* _tmp37_; - gint _tmp37__length1; - GError * _inner_error_ = NULL; -#line 262 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_return_if_fail (PUBLISHING_REST_SUPPORT_IS_TRANSACTION (self)); -#line 262 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_return_if_fail (SOUP_IS_MESSAGE (message)); -#line 263 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_object_get (message, "status-code", &_tmp0_, NULL); -#line 263 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp1_ = _tmp0_; -#line 263 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - switch (_tmp1_) { -#line 263 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - case SOUP_STATUS_OK: -#line 263 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - case SOUP_STATUS_CREATED: -#line 2638 "RESTSupport.c" - { -#line 267 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - break; -#line 2642 "RESTSupport.c" - } -#line 263 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - case SOUP_STATUS_CANT_RESOLVE: -#line 263 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - case SOUP_STATUS_CANT_RESOLVE_PROXY: -#line 2648 "RESTSupport.c" - { - gchar* _tmp2_; - gchar* _tmp3_; - guint _tmp4_; - guint _tmp5_; - GError* _tmp6_; - GError* _tmp7_; -#line 271 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp2_ = publishing_rest_support_transaction_get_endpoint_url (self); -#line 271 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp3_ = _tmp2_; -#line 271 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_object_get (message, "status-code", &_tmp4_, NULL); -#line 271 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp5_ = _tmp4_; -#line 271 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp6_ = g_error_new (SPIT_PUBLISHING_PUBLISHING_ERROR, SPIT_PUBLISHING_PUBLISHING_ERROR_NO_ANSWER, "Unable to resolve %s (error code %u)", _tmp3_, _tmp5_); -#line 271 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp7_ = _tmp6_; -#line 271 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _g_free0 (_tmp3_); -#line 271 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _inner_error_ = _tmp7_; -#line 271 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - if (_inner_error_->domain == SPIT_PUBLISHING_PUBLISHING_ERROR) { -#line 271 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_propagate_error (error, _inner_error_); -#line 271 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - return; -#line 2678 "RESTSupport.c" - } else { -#line 271 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 271 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_clear_error (&_inner_error_); -#line 271 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - return; -#line 2686 "RESTSupport.c" - } - } -#line 263 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - case SOUP_STATUS_CANT_CONNECT: -#line 263 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - case SOUP_STATUS_CANT_CONNECT_PROXY: -#line 2693 "RESTSupport.c" - { - gchar* _tmp8_; - gchar* _tmp9_; - guint _tmp10_; - guint _tmp11_; - GError* _tmp12_; - GError* _tmp13_; -#line 276 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp8_ = publishing_rest_support_transaction_get_endpoint_url (self); -#line 276 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp9_ = _tmp8_; -#line 276 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_object_get (message, "status-code", &_tmp10_, NULL); -#line 276 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp11_ = _tmp10_; -#line 276 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp12_ = g_error_new (SPIT_PUBLISHING_PUBLISHING_ERROR, SPIT_PUBLISHING_PUBLISHING_ERROR_NO_ANSWER, "Unable to connect to %s (error code %u)", _tmp9_, _tmp11_); -#line 276 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp13_ = _tmp12_; -#line 276 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _g_free0 (_tmp9_); -#line 276 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _inner_error_ = _tmp13_; -#line 276 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - if (_inner_error_->domain == SPIT_PUBLISHING_PUBLISHING_ERROR) { -#line 276 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_propagate_error (error, _inner_error_); -#line 276 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - return; -#line 2723 "RESTSupport.c" - } else { -#line 276 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 276 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_clear_error (&_inner_error_); -#line 276 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - return; -#line 2731 "RESTSupport.c" - } - } -#line 263 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - case SOUP_STATUS_SSL_FAILED: -#line 2736 "RESTSupport.c" - { - gchar* _tmp14_; - gchar* _tmp15_; - GError* _tmp16_; - GError* _tmp17_; -#line 279 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp14_ = publishing_rest_support_transaction_get_endpoint_url (self); -#line 279 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp15_ = _tmp14_; -#line 279 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp16_ = g_error_new (SPIT_PUBLISHING_PUBLISHING_ERROR, SPIT_PUBLISHING_PUBLISHING_ERROR_SSL_FAILED, "Unable to connect to %s: Secure connection failed", _tmp15_); -#line 279 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp17_ = _tmp16_; -#line 279 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _g_free0 (_tmp15_); -#line 279 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _inner_error_ = _tmp17_; -#line 279 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - if (_inner_error_->domain == SPIT_PUBLISHING_PUBLISHING_ERROR) { -#line 279 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_propagate_error (error, _inner_error_); -#line 279 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - return; -#line 2760 "RESTSupport.c" - } else { -#line 279 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 279 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_clear_error (&_inner_error_); -#line 279 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - return; -#line 2768 "RESTSupport.c" - } - } - default: - { - guint _tmp18_; - guint _tmp19_; -#line 284 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_object_get (message, "status-code", &_tmp18_, NULL); -#line 284 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp19_ = _tmp18_; -#line 284 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - if (_tmp19_ >= ((guint) 100)) { -#line 2781 "RESTSupport.c" - gchar* _tmp20_; - gchar* _tmp21_; - guint _tmp22_; - guint _tmp23_; - gchar* _tmp24_; - gchar* _tmp25_; - gchar* _tmp26_; - GError* _tmp27_; - GError* _tmp28_; -#line 285 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp20_ = publishing_rest_support_transaction_get_endpoint_url (self); -#line 285 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp21_ = _tmp20_; -#line 285 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_object_get (message, "status-code", &_tmp22_, NULL); -#line 285 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp23_ = _tmp22_; -#line 285 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_object_get (message, "reason-phrase", &_tmp24_, NULL); -#line 285 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp25_ = _tmp24_; -#line 285 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp26_ = _tmp25_; -#line 285 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp27_ = g_error_new (SPIT_PUBLISHING_PUBLISHING_ERROR, SPIT_PUBLISHING_PUBLISHING_ERROR_NO_ANSWER, "Service %s returned HTTP status code %u %s", _tmp21_, _tmp23_, _tmp26_); -#line 285 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp28_ = _tmp27_; -#line 285 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _g_free0 (_tmp26_); -#line 285 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _g_free0 (_tmp21_); -#line 285 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _inner_error_ = _tmp28_; -#line 285 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - if (_inner_error_->domain == SPIT_PUBLISHING_PUBLISHING_ERROR) { -#line 285 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_propagate_error (error, _inner_error_); -#line 285 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - return; -#line 2821 "RESTSupport.c" - } else { -#line 285 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 285 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_clear_error (&_inner_error_); -#line 285 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - return; -#line 2829 "RESTSupport.c" - } - } else { - gchar* _tmp29_; - gchar* _tmp30_; - guint _tmp31_; - guint _tmp32_; - GError* _tmp33_; - GError* _tmp34_; -#line 288 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp29_ = publishing_rest_support_transaction_get_endpoint_url (self); -#line 288 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp30_ = _tmp29_; -#line 288 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_object_get (message, "status-code", &_tmp31_, NULL); -#line 288 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp32_ = _tmp31_; -#line 288 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp33_ = g_error_new (SPIT_PUBLISHING_PUBLISHING_ERROR, SPIT_PUBLISHING_PUBLISHING_ERROR_NO_ANSWER, "Failure communicating with %s (error code %u)", _tmp30_, _tmp32_); -#line 288 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp34_ = _tmp33_; -#line 288 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _g_free0 (_tmp30_); -#line 288 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _inner_error_ = _tmp34_; -#line 288 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - if (_inner_error_->domain == SPIT_PUBLISHING_PUBLISHING_ERROR) { -#line 288 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_propagate_error (error, _inner_error_); -#line 288 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - return; -#line 2860 "RESTSupport.c" - } else { -#line 288 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 288 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_clear_error (&_inner_error_); -#line 288 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - return; -#line 2868 "RESTSupport.c" - } - } - } - } -#line 294 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp36_ = message->response_body; -#line 294 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp37_ = _tmp36_->data; -#line 294 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp37__length1 = (gint) _tmp36_->length; -#line 294 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - if (_tmp37_ == NULL) { -#line 294 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp35_ = TRUE; -#line 2883 "RESTSupport.c" - } else { - SoupMessageBody* _tmp38_; - guint8* _tmp39_; - gint _tmp39__length1; -#line 294 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp38_ = message->response_body; -#line 294 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp39_ = _tmp38_->data; -#line 294 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp39__length1 = (gint) _tmp38_->length; -#line 294 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp35_ = _tmp39__length1 == 0; -#line 2896 "RESTSupport.c" - } -#line 294 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - if (_tmp35_) { -#line 2900 "RESTSupport.c" - gchar* _tmp40_; - gchar* _tmp41_; - GError* _tmp42_; - GError* _tmp43_; -#line 295 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp40_ = publishing_rest_support_transaction_get_endpoint_url (self); -#line 295 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp41_ = _tmp40_; -#line 295 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp42_ = g_error_new (SPIT_PUBLISHING_PUBLISHING_ERROR, SPIT_PUBLISHING_PUBLISHING_ERROR_MALFORMED_RESPONSE, "No response data from %s", _tmp41_); -#line 295 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp43_ = _tmp42_; -#line 295 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _g_free0 (_tmp41_); -#line 295 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _inner_error_ = _tmp43_; -#line 295 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - if (_inner_error_->domain == SPIT_PUBLISHING_PUBLISHING_ERROR) { -#line 295 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_propagate_error (error, _inner_error_); -#line 295 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - return; -#line 2923 "RESTSupport.c" - } else { -#line 295 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 295 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_clear_error (&_inner_error_); -#line 295 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - return; -#line 2931 "RESTSupport.c" - } - } -} - - -static PublishingRESTSupportArgument** -_vala_array_dup1 (PublishingRESTSupportArgument** self, - int length) -{ - PublishingRESTSupportArgument** result; - int i; -#line 300 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - result = g_new0 (PublishingRESTSupportArgument*, length + 1); -#line 300 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - for (i = 0; i < length; i++) { -#line 2947 "RESTSupport.c" - PublishingRESTSupportArgument* _tmp0_; -#line 300 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp0_ = _publishing_rest_support_argument_ref0 (self[i]); -#line 300 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - result[i] = _tmp0_; -#line 2953 "RESTSupport.c" - } -#line 300 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - return result; -#line 2957 "RESTSupport.c" -} - - -PublishingRESTSupportArgument** -publishing_rest_support_transaction_get_arguments (PublishingRESTSupportTransaction* self, - int* result_length1) -{ - PublishingRESTSupportArgument** result = NULL; - PublishingRESTSupportArgument** _tmp0_; - gint _tmp0__length1; - PublishingRESTSupportArgument** _tmp1_; - gint _tmp1__length1; - PublishingRESTSupportArgument** _tmp2_; - gint _tmp2__length1; -#line 299 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_return_val_if_fail (PUBLISHING_REST_SUPPORT_IS_TRANSACTION (self), NULL); -#line 300 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp0_ = self->priv->arguments; -#line 300 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp0__length1 = self->priv->arguments_length1; -#line 300 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp1_ = (_tmp0_ != NULL) ? _vala_array_dup1 (_tmp0_, _tmp0__length1) : ((gpointer) _tmp0_); -#line 300 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp1__length1 = _tmp0__length1; -#line 300 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp2_ = _tmp1_; -#line 300 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp2__length1 = _tmp1__length1; -#line 300 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - if (result_length1) { -#line 300 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - *result_length1 = _tmp2__length1; -#line 2990 "RESTSupport.c" - } -#line 300 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - result = _tmp2_; -#line 300 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - return result; -#line 2996 "RESTSupport.c" -} - - -PublishingRESTSupportArgument** -publishing_rest_support_transaction_get_sorted_arguments (PublishingRESTSupportTransaction* self, - int* result_length1) -{ - PublishingRESTSupportArgument** result = NULL; - gint _tmp0_; - PublishingRESTSupportArgument** _tmp1_; - PublishingRESTSupportArgument** _tmp2_; - gint _tmp2__length1; - gint _tmp3_; - PublishingRESTSupportArgument** _tmp4_; - PublishingRESTSupportArgument** _tmp5_; - gint _tmp5__length1; - PublishingRESTSupportArgument** _tmp6_; - gint _tmp6__length1; -#line 303 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_return_val_if_fail (PUBLISHING_REST_SUPPORT_IS_TRANSACTION (self), NULL); -#line 304 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp1_ = publishing_rest_support_transaction_get_arguments (self, &_tmp0_); -#line 304 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp2_ = _tmp1_; -#line 304 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp2__length1 = _tmp0_; -#line 304 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp4_ = publishing_rest_support_argument_sort (_tmp2_, _tmp0_, &_tmp3_); -#line 304 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp5_ = _tmp4_; -#line 304 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp5__length1 = _tmp3_; -#line 304 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp2_ = (_vala_array_free (_tmp2_, _tmp2__length1, (GDestroyNotify) publishing_rest_support_argument_unref), NULL); -#line 304 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp6_ = _tmp5_; -#line 304 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp6__length1 = _tmp5__length1; -#line 304 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - if (result_length1) { -#line 304 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - *result_length1 = _tmp6__length1; -#line 3039 "RESTSupport.c" - } -#line 304 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - result = _tmp6_; -#line 304 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - return result; -#line 3045 "RESTSupport.c" -} - - -void -publishing_rest_support_transaction_set_is_executed (PublishingRESTSupportTransaction* self, - gboolean is_executed) -{ -#line 307 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_return_if_fail (PUBLISHING_REST_SUPPORT_IS_TRANSACTION (self)); -#line 308 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - self->priv->is_executed = is_executed; -#line 3057 "RESTSupport.c" -} - - -static void -_publishing_rest_support_transaction_on_message_unqueued_publishing_rest_support_session_wire_message_unqueued (PublishingRESTSupportSession* _sender, - SoupMessage* message, - gpointer self) -{ -#line 312 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - publishing_rest_support_transaction_on_message_unqueued ((PublishingRESTSupportTransaction*) self, message); -#line 3068 "RESTSupport.c" -} - - -void -publishing_rest_support_transaction_send (PublishingRESTSupportTransaction* self, - GError** error) -{ - PublishingRESTSupportSession* _tmp0_; - SoupMessage* _tmp1_; - PublishingRESTSupportSession* _tmp2_; - SoupMessage* _tmp3_; - PublishingRESTSupportSession* _tmp4_; - guint _tmp5_; - SoupMessage* _tmp6_; - guint _tmp7_; - GError* _tmp8_; - GError* _tmp10_; - GError * _inner_error_ = NULL; -#line 311 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_return_if_fail (PUBLISHING_REST_SUPPORT_IS_TRANSACTION (self)); -#line 312 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp0_ = self->priv->parent_session; -#line 312 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_signal_connect (_tmp0_, "wire-message-unqueued", (GCallback) _publishing_rest_support_transaction_on_message_unqueued_publishing_rest_support_session_wire_message_unqueued, self); -#line 313 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp1_ = self->priv->message; -#line 313 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_signal_connect (_tmp1_, "wrote-body-data", (GCallback) _publishing_rest_support_transaction_on_wrote_body_data_soup_message_wrote_body_data, self); -#line 314 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp2_ = self->priv->parent_session; -#line 314 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp3_ = self->priv->message; -#line 314 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - publishing_rest_support_session_send_wire_message (_tmp2_, _tmp3_); -#line 316 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp4_ = self->priv->parent_session; -#line 316 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_signal_parse_name ("wire-message-unqueued", PUBLISHING_REST_SUPPORT_TYPE_SESSION, &_tmp5_, NULL, FALSE); -#line 316 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_signal_handlers_disconnect_matched (_tmp4_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp5_, 0, NULL, (GCallback) _publishing_rest_support_transaction_on_message_unqueued_publishing_rest_support_session_wire_message_unqueued, self); -#line 317 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp6_ = self->priv->message; -#line 317 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_signal_parse_name ("wrote-body-data", soup_message_get_type (), &_tmp7_, NULL, FALSE); -#line 317 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_signal_handlers_disconnect_matched (_tmp6_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp7_, 0, NULL, (GCallback) _publishing_rest_support_transaction_on_wrote_body_data_soup_message_wrote_body_data, self); -#line 319 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp8_ = self->priv->err; -#line 319 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - if (_tmp8_ != NULL) { -#line 3119 "RESTSupport.c" - GError* _tmp9_; -#line 320 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp9_ = self->priv->err; -#line 320 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_signal_emit (self, publishing_rest_support_transaction_signals[PUBLISHING_REST_SUPPORT_TRANSACTION_NETWORK_ERROR_SIGNAL], 0, _tmp9_); -#line 3125 "RESTSupport.c" - } else { -#line 322 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_signal_emit (self, publishing_rest_support_transaction_signals[PUBLISHING_REST_SUPPORT_TRANSACTION_COMPLETED_SIGNAL], 0); -#line 3129 "RESTSupport.c" - } -#line 324 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp10_ = self->priv->err; -#line 324 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - if (_tmp10_ != NULL) { -#line 3135 "RESTSupport.c" - GError* _tmp11_; - GError* _tmp12_; -#line 325 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp11_ = self->priv->err; -#line 325 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp12_ = _g_error_copy0 (_tmp11_); -#line 325 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _inner_error_ = _tmp12_; -#line 325 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - if (_inner_error_->domain == SPIT_PUBLISHING_PUBLISHING_ERROR) { -#line 325 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_propagate_error (error, _inner_error_); -#line 325 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - return; -#line 3150 "RESTSupport.c" - } else { -#line 325 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 325 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_clear_error (&_inner_error_); -#line 325 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - return; -#line 3158 "RESTSupport.c" - } - } -} - - -PublishingRESTSupportHttpMethod -publishing_rest_support_transaction_get_method (PublishingRESTSupportTransaction* self) -{ - PublishingRESTSupportHttpMethod result = 0; - SoupMessage* _tmp0_; - gchar* _tmp1_; - gchar* _tmp2_; - gchar* _tmp3_; - PublishingRESTSupportHttpMethod _tmp4_; -#line 328 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_return_val_if_fail (PUBLISHING_REST_SUPPORT_IS_TRANSACTION (self), 0); -#line 329 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp0_ = self->priv->message; -#line 329 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_object_get (_tmp0_, "method", &_tmp1_, NULL); -#line 329 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp2_ = _tmp1_; -#line 329 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp3_ = _tmp2_; -#line 329 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp4_ = publishing_rest_support_http_method_from_string (_tmp3_); -#line 329 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _g_free0 (_tmp3_); -#line 329 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - result = _tmp4_; -#line 329 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - return result; -#line 3191 "RESTSupport.c" -} - - -static void -publishing_rest_support_transaction_real_add_header (PublishingRESTSupportTransaction* self, - const gchar* key, - const gchar* value) -{ - SoupMessage* _tmp0_; - SoupMessageHeaders* _tmp1_; -#line 332 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_return_if_fail (key != NULL); -#line 332 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_return_if_fail (value != NULL); -#line 333 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp0_ = self->priv->message; -#line 333 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp1_ = _tmp0_->request_headers; -#line 333 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - soup_message_headers_append (_tmp1_, key, value); -#line 3212 "RESTSupport.c" -} - - -void -publishing_rest_support_transaction_add_header (PublishingRESTSupportTransaction* self, - const gchar* key, - const gchar* value) -{ -#line 332 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_return_if_fail (PUBLISHING_REST_SUPPORT_IS_TRANSACTION (self)); -#line 332 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - PUBLISHING_REST_SUPPORT_TRANSACTION_GET_CLASS (self)->add_header (self, key, value); -#line 3225 "RESTSupport.c" -} - - -void -publishing_rest_support_transaction_set_custom_payload (PublishingRESTSupportTransaction* self, - const gchar* custom_payload, - const gchar* payload_content_type, - gulong payload_length) -{ - gulong _tmp0_ = 0UL; - gulong length = 0UL; - SoupMessage* _tmp3_; - guint8* _tmp4_; - gint _tmp4__length1; - guint8* _tmp5_; - gint _tmp5__length1; - gulong _tmp6_; -#line 344 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_return_if_fail (PUBLISHING_REST_SUPPORT_IS_TRANSACTION (self)); -#line 344 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_return_if_fail (payload_content_type != NULL); -#line 346 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _vala_assert (publishing_rest_support_transaction_get_method (self) != PUBLISHING_REST_SUPPORT_HTTP_METHOD_GET, "get_method() != HttpMethod.GET"); -#line 348 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - if (custom_payload == NULL) { -#line 349 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - self->priv->use_custom_payload = FALSE; -#line 350 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - return; -#line 3255 "RESTSupport.c" - } -#line 353 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - if (payload_length > ((gulong) 0)) { -#line 353 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp0_ = payload_length; -#line 3261 "RESTSupport.c" - } else { - gint _tmp1_; - gint _tmp2_; -#line 353 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp1_ = strlen (custom_payload); -#line 353 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp2_ = _tmp1_; -#line 353 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp0_ = (gulong) _tmp2_; -#line 3271 "RESTSupport.c" - } -#line 353 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - length = _tmp0_; -#line 354 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp3_ = self->priv->message; -#line 354 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp4_ = string_get_data (custom_payload, &_tmp4__length1); -#line 354 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp5_ = _tmp4_; -#line 354 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp5__length1 = _tmp4__length1; -#line 354 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp6_ = length; -#line 354 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - soup_message_set_request (_tmp3_, payload_content_type, SOUP_MEMORY_COPY, _tmp5_ + 0, (gsize) (((gint) _tmp6_) - 0)); -#line 356 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - self->priv->use_custom_payload = TRUE; -#line 3289 "RESTSupport.c" -} - - -void -publishing_rest_support_transaction_set_message (PublishingRESTSupportTransaction* self, - SoupMessage* message) -{ - SoupMessage* _tmp0_; -#line 364 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_return_if_fail (PUBLISHING_REST_SUPPORT_IS_TRANSACTION (self)); -#line 364 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_return_if_fail (SOUP_IS_MESSAGE (message)); -#line 365 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp0_ = _g_object_ref0 (message); -#line 365 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _g_object_unref0 (self->priv->message); -#line 365 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - self->priv->message = _tmp0_; -#line 3308 "RESTSupport.c" -} - - -gboolean -publishing_rest_support_transaction_get_is_executed (PublishingRESTSupportTransaction* self) -{ - gboolean result = FALSE; - gboolean _tmp0_; -#line 368 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_return_val_if_fail (PUBLISHING_REST_SUPPORT_IS_TRANSACTION (self), FALSE); -#line 369 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp0_ = self->priv->is_executed; -#line 369 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - result = _tmp0_; -#line 369 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - return result; -#line 3325 "RESTSupport.c" -} - - -guint -publishing_rest_support_transaction_get_status_code (PublishingRESTSupportTransaction* self) -{ - guint result = 0U; - SoupMessage* _tmp0_; - guint _tmp1_; - guint _tmp2_; -#line 372 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_return_val_if_fail (PUBLISHING_REST_SUPPORT_IS_TRANSACTION (self), 0U); -#line 373 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _vala_assert (publishing_rest_support_transaction_get_is_executed (self), "get_is_executed()"); -#line 374 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp0_ = self->priv->message; -#line 374 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_object_get (_tmp0_, "status-code", &_tmp1_, NULL); -#line 374 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp2_ = _tmp1_; -#line 374 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - result = _tmp2_; -#line 374 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - return result; -#line 3350 "RESTSupport.c" -} - - -static void -_vala_SoupURI_free (SoupURI* self) -{ -#line 408 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_boxed_free (soup_uri_get_type (), self); -#line 3359 "RESTSupport.c" -} - - -static void -publishing_rest_support_transaction_real_execute (PublishingRESTSupportTransaction* self, - GError** error) -{ - gboolean _tmp0_; - gchar* formdata_string = NULL; - gchar* _tmp2_; - gchar* old_url = NULL; - gchar* url_with_query = NULL; - gboolean _tmp18_ = FALSE; - GError * _inner_error_ = NULL; -#line 381 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp0_ = self->priv->use_custom_payload; -#line 381 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - if (_tmp0_) { -#line 382 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - self->priv->is_executed = TRUE; -#line 383 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - publishing_rest_support_transaction_send (self, &_inner_error_); -#line 383 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 383 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - if (_inner_error_->domain == SPIT_PUBLISHING_PUBLISHING_ERROR) { -#line 383 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_propagate_error (error, _inner_error_); -#line 383 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - return; -#line 3390 "RESTSupport.c" - } else { -#line 383 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 383 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_clear_error (&_inner_error_); -#line 383 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - return; -#line 3398 "RESTSupport.c" - } - } -#line 385 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - return; -#line 3403 "RESTSupport.c" - } -#line 389 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - if (publishing_rest_support_transaction_get_method (self) == PUBLISHING_REST_SUPPORT_HTTP_METHOD_POST) { -#line 3407 "RESTSupport.c" - PublishingRESTSupportArgument** _tmp1_; - gint _tmp1__length1; -#line 390 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp1_ = self->priv->arguments; -#line 390 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp1__length1 = self->priv->arguments_length1; -#line 390 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _vala_assert (_tmp1__length1 > 0, "arguments.length > 0"); -#line 3416 "RESTSupport.c" - } -#line 393 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp2_ = g_strdup (""); -#line 393 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - formdata_string = _tmp2_; -#line 3422 "RESTSupport.c" - { - gint i = 0; -#line 394 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - i = 0; -#line 3427 "RESTSupport.c" - { - gboolean _tmp3_ = FALSE; -#line 394 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp3_ = TRUE; -#line 394 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - while (TRUE) { -#line 3434 "RESTSupport.c" - gint _tmp5_; - PublishingRESTSupportArgument** _tmp6_; - gint _tmp6__length1; - const gchar* _tmp7_; - PublishingRESTSupportArgument** _tmp8_; - gint _tmp8__length1; - gint _tmp9_; - PublishingRESTSupportArgument* _tmp10_; - gchar* _tmp11_; - gchar* _tmp12_; - gchar* _tmp13_; - gint _tmp14_; - PublishingRESTSupportArgument** _tmp15_; - gint _tmp15__length1; -#line 394 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - if (!_tmp3_) { -#line 3451 "RESTSupport.c" - gint _tmp4_; -#line 394 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp4_ = i; -#line 394 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - i = _tmp4_ + 1; -#line 3457 "RESTSupport.c" - } -#line 394 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp3_ = FALSE; -#line 394 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp5_ = i; -#line 394 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp6_ = self->priv->arguments; -#line 394 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp6__length1 = self->priv->arguments_length1; -#line 394 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - if (!(_tmp5_ < _tmp6__length1)) { -#line 394 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - break; -#line 3471 "RESTSupport.c" - } -#line 395 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp7_ = formdata_string; -#line 395 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp8_ = self->priv->arguments; -#line 395 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp8__length1 = self->priv->arguments_length1; -#line 395 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp9_ = i; -#line 395 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp10_ = _tmp8_[_tmp9_]; -#line 395 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp11_ = publishing_rest_support_argument_to_string (_tmp10_, FALSE); -#line 395 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp12_ = _tmp11_; -#line 395 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp13_ = g_strconcat (_tmp7_, _tmp12_, NULL); -#line 395 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _g_free0 (formdata_string); -#line 395 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - formdata_string = _tmp13_; -#line 395 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _g_free0 (_tmp12_); -#line 396 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp14_ = i; -#line 396 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp15_ = self->priv->arguments; -#line 396 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp15__length1 = self->priv->arguments_length1; -#line 396 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - if (_tmp14_ < (_tmp15__length1 - 1)) { -#line 3503 "RESTSupport.c" - const gchar* _tmp16_; - gchar* _tmp17_; -#line 397 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp16_ = formdata_string; -#line 397 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp17_ = g_strconcat (_tmp16_, "&", NULL); -#line 397 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _g_free0 (formdata_string); -#line 397 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - formdata_string = _tmp17_; -#line 3514 "RESTSupport.c" - } - } - } - } -#line 403 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - old_url = NULL; -#line 404 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - url_with_query = NULL; -#line 405 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - if (publishing_rest_support_transaction_get_method (self) == PUBLISHING_REST_SUPPORT_HTTP_METHOD_GET) { -#line 3525 "RESTSupport.c" - PublishingRESTSupportArgument** _tmp19_; - gint _tmp19__length1; -#line 405 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp19_ = self->priv->arguments; -#line 405 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp19__length1 = self->priv->arguments_length1; -#line 405 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp18_ = _tmp19__length1 > 0; -#line 3534 "RESTSupport.c" - } else { -#line 405 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp18_ = FALSE; -#line 3538 "RESTSupport.c" - } -#line 405 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - if (_tmp18_) { -#line 3542 "RESTSupport.c" - SoupMessage* _tmp20_; - SoupURI* _tmp21_; - gchar* _tmp22_; - gchar* _tmp23_; - gchar* _tmp24_; - gchar* _tmp25_; - gchar* _tmp26_; - const gchar* _tmp27_; - gchar* _tmp28_; - SoupMessage* _tmp29_; - const gchar* _tmp30_; - SoupURI* _tmp31_; - SoupURI* _tmp32_; -#line 406 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp20_ = self->priv->message; -#line 406 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp21_ = soup_message_get_uri (_tmp20_); -#line 406 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp22_ = soup_uri_to_string (_tmp21_, FALSE); -#line 406 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _g_free0 (old_url); -#line 406 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - old_url = _tmp22_; -#line 407 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp23_ = publishing_rest_support_transaction_get_endpoint_url (self); -#line 407 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp24_ = _tmp23_; -#line 407 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp25_ = g_strconcat (_tmp24_, "?", NULL); -#line 407 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp26_ = _tmp25_; -#line 407 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp27_ = formdata_string; -#line 407 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp28_ = g_strconcat (_tmp26_, _tmp27_, NULL); -#line 407 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _g_free0 (url_with_query); -#line 407 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - url_with_query = _tmp28_; -#line 407 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _g_free0 (_tmp26_); -#line 407 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _g_free0 (_tmp24_); -#line 408 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp29_ = self->priv->message; -#line 408 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp30_ = url_with_query; -#line 408 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp31_ = soup_uri_new (_tmp30_); -#line 408 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp32_ = _tmp31_; -#line 408 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - soup_message_set_uri (_tmp29_, _tmp32_); -#line 408 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - __vala_SoupURI_free0 (_tmp32_); -#line 3598 "RESTSupport.c" - } else { - SoupMessage* _tmp33_; - const gchar* _tmp34_; - guint8* _tmp35_; - gint _tmp35__length1; - guint8* _tmp36_; - gint _tmp36__length1; -#line 410 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp33_ = self->priv->message; -#line 410 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp34_ = formdata_string; -#line 410 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp35_ = string_get_data (_tmp34_, &_tmp35__length1); -#line 410 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp36_ = _tmp35_; -#line 410 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp36__length1 = _tmp35__length1; -#line 410 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - soup_message_set_request (_tmp33_, "application/x-www-form-urlencoded", SOUP_MEMORY_COPY, _tmp36_, (gsize) _tmp36__length1); -#line 3618 "RESTSupport.c" - } -#line 414 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - self->priv->is_executed = TRUE; -#line 3622 "RESTSupport.c" - { - SoupMessage* _tmp37_; - SoupURI* _tmp38_; - gchar* _tmp39_; - gchar* _tmp40_; -#line 417 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp37_ = self->priv->message; -#line 417 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp38_ = soup_message_get_uri (_tmp37_); -#line 417 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp39_ = soup_uri_to_string (_tmp38_, FALSE); -#line 417 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp40_ = _tmp39_; -#line 417 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_debug ("RESTSupport.vala:417: sending message to URI = '%s'", _tmp40_); -#line 417 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _g_free0 (_tmp40_); -#line 418 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - publishing_rest_support_transaction_send (self, &_inner_error_); -#line 418 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 3644 "RESTSupport.c" - goto __finally1; - } - } - __finally1: - { - const gchar* _tmp41_; -#line 421 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp41_ = old_url; -#line 421 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - if (_tmp41_ != NULL) { -#line 3655 "RESTSupport.c" - SoupMessage* _tmp42_; - const gchar* _tmp43_; - SoupURI* _tmp44_; - SoupURI* _tmp45_; -#line 422 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp42_ = self->priv->message; -#line 422 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp43_ = old_url; -#line 422 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp44_ = soup_uri_new (_tmp43_); -#line 422 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp45_ = _tmp44_; -#line 422 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - soup_message_set_uri (_tmp42_, _tmp45_); -#line 422 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - __vala_SoupURI_free0 (_tmp45_); -#line 3672 "RESTSupport.c" - } - } -#line 416 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 416 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - if (_inner_error_->domain == SPIT_PUBLISHING_PUBLISHING_ERROR) { -#line 416 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_propagate_error (error, _inner_error_); -#line 416 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _g_free0 (url_with_query); -#line 416 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _g_free0 (old_url); -#line 416 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _g_free0 (formdata_string); -#line 416 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - return; -#line 3689 "RESTSupport.c" - } else { -#line 416 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _g_free0 (url_with_query); -#line 416 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _g_free0 (old_url); -#line 416 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _g_free0 (formdata_string); -#line 416 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 416 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_clear_error (&_inner_error_); -#line 416 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - return; -#line 3703 "RESTSupport.c" - } - } -#line 377 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _g_free0 (url_with_query); -#line 377 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _g_free0 (old_url); -#line 377 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _g_free0 (formdata_string); -#line 3712 "RESTSupport.c" -} - - -void -publishing_rest_support_transaction_execute (PublishingRESTSupportTransaction* self, - GError** error) -{ -#line 377 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_return_if_fail (PUBLISHING_REST_SUPPORT_IS_TRANSACTION (self)); -#line 377 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - PUBLISHING_REST_SUPPORT_TRANSACTION_GET_CLASS (self)->execute (self, error); -#line 3724 "RESTSupport.c" -} - - -gchar* -publishing_rest_support_transaction_get_response (PublishingRESTSupportTransaction* self) -{ - gchar* result = NULL; - SoupMessage* _tmp0_; - SoupMessageBody* _tmp1_; - guint8* _tmp2_; - gint _tmp2__length1; - gchar* _tmp3_; -#line 426 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_return_val_if_fail (PUBLISHING_REST_SUPPORT_IS_TRANSACTION (self), NULL); -#line 427 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _vala_assert (publishing_rest_support_transaction_get_is_executed (self), "get_is_executed()"); -#line 428 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp0_ = self->priv->message; -#line 428 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp1_ = _tmp0_->response_body; -#line 428 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp2_ = _tmp1_->data; -#line 428 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp2__length1 = (gint) _tmp1_->length; -#line 428 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp3_ = g_strdup ((const gchar*) _tmp2_); -#line 428 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - result = _tmp3_; -#line 428 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - return result; -#line 3755 "RESTSupport.c" -} - - -SoupMessageHeaders* -publishing_rest_support_transaction_get_response_headers (PublishingRESTSupportTransaction* self) -{ - SoupMessageHeaders* result = NULL; - SoupMessage* _tmp0_; - SoupMessageHeaders* _tmp1_; -#line 431 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_return_val_if_fail (PUBLISHING_REST_SUPPORT_IS_TRANSACTION (self), NULL); -#line 432 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _vala_assert (publishing_rest_support_transaction_get_is_executed (self), "get_is_executed()"); -#line 433 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp0_ = self->priv->message; -#line 433 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp1_ = _tmp0_->response_headers; -#line 433 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - result = _tmp1_; -#line 433 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - return result; -#line 3777 "RESTSupport.c" -} - - -SoupMessage* -publishing_rest_support_transaction_get_message (PublishingRESTSupportTransaction* self) -{ - SoupMessage* result = NULL; - SoupMessage* _tmp0_; - SoupMessage* _tmp1_; -#line 436 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_return_val_if_fail (PUBLISHING_REST_SUPPORT_IS_TRANSACTION (self), NULL); -#line 437 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _vala_assert (publishing_rest_support_transaction_get_is_executed (self), "get_is_executed()"); -#line 438 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp0_ = self->priv->message; -#line 438 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp1_ = _g_object_ref0 (_tmp0_); -#line 438 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - result = _tmp1_; -#line 438 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - return result; -#line 3799 "RESTSupport.c" -} - - -static void -_vala_array_add1 (PublishingRESTSupportArgument** * array, - int* length, - int* size, - PublishingRESTSupportArgument* value) -{ -#line 442 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - if ((*length) == (*size)) { -#line 442 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - *size = (*size) ? (2 * (*size)) : 4; -#line 442 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - *array = g_renew (PublishingRESTSupportArgument*, *array, (*size) + 1); -#line 3815 "RESTSupport.c" - } -#line 442 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - (*array)[(*length)++] = value; -#line 442 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - (*array)[*length] = NULL; -#line 3821 "RESTSupport.c" -} - - -void -publishing_rest_support_transaction_add_argument (PublishingRESTSupportTransaction* self, - const gchar* name, - const gchar* value) -{ - PublishingRESTSupportArgument** _tmp0_; - gint _tmp0__length1; - PublishingRESTSupportArgument* _tmp1_; -#line 441 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_return_if_fail (PUBLISHING_REST_SUPPORT_IS_TRANSACTION (self)); -#line 441 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_return_if_fail (name != NULL); -#line 441 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_return_if_fail (value != NULL); -#line 442 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp0_ = self->priv->arguments; -#line 442 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp0__length1 = self->priv->arguments_length1; -#line 442 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp1_ = publishing_rest_support_argument_new (name, value); -#line 442 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _vala_array_add1 (&self->priv->arguments, &self->priv->arguments_length1, &self->priv->_arguments_size_, _tmp1_); -#line 3847 "RESTSupport.c" -} - - -gchar* -publishing_rest_support_transaction_get_endpoint_url (PublishingRESTSupportTransaction* self) -{ - gchar* result = NULL; - gchar* _tmp0_ = NULL; - const gchar* _tmp1_; -#line 445 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_return_val_if_fail (PUBLISHING_REST_SUPPORT_IS_TRANSACTION (self), NULL); -#line 446 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp1_ = self->priv->endpoint_url; -#line 446 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - if (_tmp1_ != NULL) { -#line 3863 "RESTSupport.c" - const gchar* _tmp2_; - gchar* _tmp3_; -#line 446 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp2_ = self->priv->endpoint_url; -#line 446 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp3_ = g_strdup (_tmp2_); -#line 446 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _g_free0 (_tmp0_); -#line 446 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp0_ = _tmp3_; -#line 3874 "RESTSupport.c" - } else { - PublishingRESTSupportSession* _tmp4_; - gchar* _tmp5_; -#line 446 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp4_ = self->priv->parent_session; -#line 446 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp5_ = publishing_rest_support_session_get_endpoint_url (_tmp4_); -#line 446 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _g_free0 (_tmp0_); -#line 446 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp0_ = _tmp5_; -#line 3886 "RESTSupport.c" - } -#line 446 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - result = _tmp0_; -#line 446 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - return result; -#line 3892 "RESTSupport.c" -} - - -static gpointer -_publishing_rest_support_session_ref0 (gpointer self) -{ -#line 450 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - return self ? publishing_rest_support_session_ref (self) : NULL; -#line 3901 "RESTSupport.c" -} - - -PublishingRESTSupportSession* -publishing_rest_support_transaction_get_parent_session (PublishingRESTSupportTransaction* self) -{ - PublishingRESTSupportSession* result = NULL; - PublishingRESTSupportSession* _tmp0_; - PublishingRESTSupportSession* _tmp1_; -#line 449 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_return_val_if_fail (PUBLISHING_REST_SUPPORT_IS_TRANSACTION (self), NULL); -#line 450 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp0_ = self->priv->parent_session; -#line 450 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp1_ = _publishing_rest_support_session_ref0 (_tmp0_); -#line 450 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - result = _tmp1_; -#line 450 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - return result; -#line 3921 "RESTSupport.c" -} - - -static void -g_cclosure_user_marshal_VOID__INT_INT (GClosure * closure, - GValue * return_value, - guint n_param_values, - const GValue * param_values, - gpointer invocation_hint, - gpointer marshal_data) -{ - typedef void (*GMarshalFunc_VOID__INT_INT) (gpointer data1, gint arg_1, gint arg_2, gpointer data2); - register GMarshalFunc_VOID__INT_INT callback; - register GCClosure * cc; - register gpointer data1; - register gpointer data2; - cc = (GCClosure *) closure; -#line 158 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_return_if_fail (n_param_values == 3); -#line 158 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - if (G_CCLOSURE_SWAP_DATA (closure)) { -#line 158 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - data1 = closure->data; -#line 158 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - data2 = param_values->data[0].v_pointer; -#line 3947 "RESTSupport.c" - } else { -#line 158 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - data1 = param_values->data[0].v_pointer; -#line 158 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - data2 = closure->data; -#line 3953 "RESTSupport.c" - } -#line 158 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - callback = (GMarshalFunc_VOID__INT_INT) (marshal_data ? marshal_data : cc->callback); -#line 158 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - callback (data1, g_value_get_int (param_values + 1), g_value_get_int (param_values + 2), data2); -#line 3959 "RESTSupport.c" -} - - -static void -publishing_rest_support_value_transaction_init (GValue* value) -{ -#line 158 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - value->data[0].v_pointer = NULL; -#line 3968 "RESTSupport.c" -} - - -static void -publishing_rest_support_value_transaction_free_value (GValue* value) -{ -#line 158 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - if (value->data[0].v_pointer) { -#line 158 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - publishing_rest_support_transaction_unref (value->data[0].v_pointer); -#line 3979 "RESTSupport.c" - } -} - - -static void -publishing_rest_support_value_transaction_copy_value (const GValue* src_value, - GValue* dest_value) -{ -#line 158 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - if (src_value->data[0].v_pointer) { -#line 158 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - dest_value->data[0].v_pointer = publishing_rest_support_transaction_ref (src_value->data[0].v_pointer); -#line 3992 "RESTSupport.c" - } else { -#line 158 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - dest_value->data[0].v_pointer = NULL; -#line 3996 "RESTSupport.c" - } -} - - -static gpointer -publishing_rest_support_value_transaction_peek_pointer (const GValue* value) -{ -#line 158 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - return value->data[0].v_pointer; -#line 4006 "RESTSupport.c" -} - - -static gchar* -publishing_rest_support_value_transaction_collect_value (GValue* value, - guint n_collect_values, - GTypeCValue* collect_values, - guint collect_flags) -{ -#line 158 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - if (collect_values[0].v_pointer) { -#line 4018 "RESTSupport.c" - PublishingRESTSupportTransaction * object; - object = collect_values[0].v_pointer; -#line 158 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - if (object->parent_instance.g_class == NULL) { -#line 158 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL); -#line 4025 "RESTSupport.c" - } else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) { -#line 158 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - return g_strconcat ("invalid object type `", g_type_name (G_TYPE_FROM_INSTANCE (object)), "' for value type `", G_VALUE_TYPE_NAME (value), "'", NULL); -#line 4029 "RESTSupport.c" - } -#line 158 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - value->data[0].v_pointer = publishing_rest_support_transaction_ref (object); -#line 4033 "RESTSupport.c" - } else { -#line 158 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - value->data[0].v_pointer = NULL; -#line 4037 "RESTSupport.c" - } -#line 158 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - return NULL; -#line 4041 "RESTSupport.c" -} - - -static gchar* -publishing_rest_support_value_transaction_lcopy_value (const GValue* value, - guint n_collect_values, - GTypeCValue* collect_values, - guint collect_flags) -{ - PublishingRESTSupportTransaction ** object_p; - object_p = collect_values[0].v_pointer; -#line 158 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - if (!object_p) { -#line 158 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value)); -#line 4057 "RESTSupport.c" - } -#line 158 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - if (!value->data[0].v_pointer) { -#line 158 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - *object_p = NULL; -#line 4063 "RESTSupport.c" - } else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) { -#line 158 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - *object_p = value->data[0].v_pointer; -#line 4067 "RESTSupport.c" - } else { -#line 158 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - *object_p = publishing_rest_support_transaction_ref (value->data[0].v_pointer); -#line 4071 "RESTSupport.c" - } -#line 158 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - return NULL; -#line 4075 "RESTSupport.c" -} - - -GParamSpec* -publishing_rest_support_param_spec_transaction (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags) -{ - PublishingRESTSupportParamSpecTransaction* spec; -#line 158 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_return_val_if_fail (g_type_is_a (object_type, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION), NULL); -#line 158 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags); -#line 158 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - G_PARAM_SPEC (spec)->value_type = object_type; -#line 158 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - return G_PARAM_SPEC (spec); -#line 4095 "RESTSupport.c" -} - - -gpointer -publishing_rest_support_value_get_transaction (const GValue* value) -{ -#line 158 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION), NULL); -#line 158 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - return value->data[0].v_pointer; -#line 4106 "RESTSupport.c" -} - - -void -publishing_rest_support_value_set_transaction (GValue* value, - gpointer v_object) -{ - PublishingRESTSupportTransaction * old; -#line 158 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION)); -#line 158 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - old = value->data[0].v_pointer; -#line 158 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - if (v_object) { -#line 158 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION)); -#line 158 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value))); -#line 158 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - value->data[0].v_pointer = v_object; -#line 158 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - publishing_rest_support_transaction_ref (value->data[0].v_pointer); -#line 4129 "RESTSupport.c" - } else { -#line 158 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - value->data[0].v_pointer = NULL; -#line 4133 "RESTSupport.c" - } -#line 158 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - if (old) { -#line 158 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - publishing_rest_support_transaction_unref (old); -#line 4139 "RESTSupport.c" - } -} - - -void -publishing_rest_support_value_take_transaction (GValue* value, - gpointer v_object) -{ - PublishingRESTSupportTransaction * old; -#line 158 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION)); -#line 158 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - old = value->data[0].v_pointer; -#line 158 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - if (v_object) { -#line 158 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION)); -#line 158 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value))); -#line 158 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - value->data[0].v_pointer = v_object; -#line 4161 "RESTSupport.c" - } else { -#line 158 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - value->data[0].v_pointer = NULL; -#line 4165 "RESTSupport.c" - } -#line 158 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - if (old) { -#line 158 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - publishing_rest_support_transaction_unref (old); -#line 4171 "RESTSupport.c" - } -} - - -static void -publishing_rest_support_transaction_class_init (PublishingRESTSupportTransactionClass * klass) -{ -#line 158 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - publishing_rest_support_transaction_parent_class = g_type_class_peek_parent (klass); -#line 158 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - ((PublishingRESTSupportTransactionClass *) klass)->finalize = publishing_rest_support_transaction_finalize; -#line 158 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_type_class_add_private (klass, sizeof (PublishingRESTSupportTransactionPrivate)); -#line 158 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - ((PublishingRESTSupportTransactionClass *) klass)->add_header = (void (*) (PublishingRESTSupportTransaction *, const gchar*, const gchar*)) publishing_rest_support_transaction_real_add_header; -#line 158 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - ((PublishingRESTSupportTransactionClass *) klass)->execute = (void (*) (PublishingRESTSupportTransaction *, GError**)) publishing_rest_support_transaction_real_execute; -#line 158 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - publishing_rest_support_transaction_signals[PUBLISHING_REST_SUPPORT_TRANSACTION_CHUNK_TRANSMITTED_SIGNAL] = g_signal_new ("chunk-transmitted", PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_user_marshal_VOID__INT_INT, G_TYPE_NONE, 2, G_TYPE_INT, G_TYPE_INT); -#line 158 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - publishing_rest_support_transaction_signals[PUBLISHING_REST_SUPPORT_TRANSACTION_NETWORK_ERROR_SIGNAL] = g_signal_new ("network-error", PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_marshal_VOID__POINTER, G_TYPE_NONE, 1, G_TYPE_POINTER); -#line 158 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - publishing_rest_support_transaction_signals[PUBLISHING_REST_SUPPORT_TRANSACTION_COMPLETED_SIGNAL] = g_signal_new ("completed", PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_marshal_VOID__VOID, G_TYPE_NONE, 0); -#line 4195 "RESTSupport.c" -} - - -static void -publishing_rest_support_transaction_instance_init (PublishingRESTSupportTransaction * self) -{ -#line 158 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - self->priv = PUBLISHING_REST_SUPPORT_TRANSACTION_GET_PRIVATE (self); -#line 160 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - self->priv->is_executed = FALSE; -#line 161 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - self->priv->parent_session = NULL; -#line 162 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - self->priv->message = NULL; -#line 163 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - self->priv->bytes_written = 0; -#line 164 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - self->priv->err = NULL; -#line 165 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - self->priv->endpoint_url = NULL; -#line 158 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - self->ref_count = 1; -#line 4218 "RESTSupport.c" -} - - -static void -publishing_rest_support_transaction_finalize (PublishingRESTSupportTransaction * obj) -{ - PublishingRESTSupportTransaction * self; -#line 158 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction); -#line 158 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_signal_handlers_destroy (self); -#line 159 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - self->priv->arguments = (_vala_array_free (self->priv->arguments, self->priv->arguments_length1, (GDestroyNotify) publishing_rest_support_argument_unref), NULL); -#line 162 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _g_object_unref0 (self->priv->message); -#line 164 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _g_error_free0 (self->priv->err); -#line 165 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _g_free0 (self->priv->endpoint_url); -#line 4238 "RESTSupport.c" -} - - -GType -publishing_rest_support_transaction_get_type (void) -{ - static volatile gsize publishing_rest_support_transaction_type_id__volatile = 0; - if (g_once_init_enter (&publishing_rest_support_transaction_type_id__volatile)) { - static const GTypeValueTable g_define_type_value_table = { publishing_rest_support_value_transaction_init, publishing_rest_support_value_transaction_free_value, publishing_rest_support_value_transaction_copy_value, publishing_rest_support_value_transaction_peek_pointer, "p", publishing_rest_support_value_transaction_collect_value, "p", publishing_rest_support_value_transaction_lcopy_value }; - static const GTypeInfo g_define_type_info = { sizeof (PublishingRESTSupportTransactionClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) publishing_rest_support_transaction_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PublishingRESTSupportTransaction), 0, (GInstanceInitFunc) publishing_rest_support_transaction_instance_init, &g_define_type_value_table }; - static const GTypeFundamentalInfo g_define_type_fundamental_info = { (G_TYPE_FLAG_CLASSED | G_TYPE_FLAG_INSTANTIATABLE | G_TYPE_FLAG_DERIVABLE | G_TYPE_FLAG_DEEP_DERIVABLE) }; - GType publishing_rest_support_transaction_type_id; - publishing_rest_support_transaction_type_id = g_type_register_fundamental (g_type_fundamental_next (), "PublishingRESTSupportTransaction", &g_define_type_info, &g_define_type_fundamental_info, 0); - g_once_init_leave (&publishing_rest_support_transaction_type_id__volatile, publishing_rest_support_transaction_type_id); - } - return publishing_rest_support_transaction_type_id__volatile; -} - - -gpointer -publishing_rest_support_transaction_ref (gpointer instance) -{ - PublishingRESTSupportTransaction * self; - self = instance; -#line 158 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_atomic_int_inc (&self->ref_count); -#line 158 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - return instance; -#line 4267 "RESTSupport.c" -} - - -void -publishing_rest_support_transaction_unref (gpointer instance) -{ - PublishingRESTSupportTransaction * self; - self = instance; -#line 158 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - if (g_atomic_int_dec_and_test (&self->ref_count)) { -#line 158 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - PUBLISHING_REST_SUPPORT_TRANSACTION_GET_CLASS (self)->finalize (self); -#line 158 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_type_free_instance ((GTypeInstance *) self); -#line 4282 "RESTSupport.c" - } -} - - -PublishingRESTSupportUploadTransaction* -publishing_rest_support_upload_transaction_construct (GType object_type, - PublishingRESTSupportSession* session, - SpitPublishingPublishable* publishable) -{ - PublishingRESTSupportUploadTransaction* self = NULL; - SpitPublishingPublishable* _tmp0_; - gchar* _tmp1_; - GHashTable* _tmp2_; - GeeHashMap* _tmp3_; -#line 460 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_return_val_if_fail (PUBLISHING_REST_SUPPORT_IS_SESSION (session), NULL); -#line 460 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_return_val_if_fail (SPIT_PUBLISHING_IS_PUBLISHABLE (publishable), NULL); -#line 461 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - self = (PublishingRESTSupportUploadTransaction*) publishing_rest_support_transaction_construct (object_type, session, PUBLISHING_REST_SUPPORT_HTTP_METHOD_POST); -#line 462 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp0_ = _g_object_ref0 (publishable); -#line 462 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _g_object_unref0 (self->publishable); -#line 462 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - self->publishable = _tmp0_; -#line 463 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp1_ = publishing_rest_support_upload_transaction_media_type_to_mime_type (spit_publishing_publishable_get_media_type (publishable)); -#line 463 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _g_free0 (self->mime_type); -#line 463 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - self->mime_type = _tmp1_; -#line 465 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp2_ = publishing_rest_support_upload_transaction_create_default_binary_disposition_table (self); -#line 465 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _g_hash_table_unref0 (self->binary_disposition_table); -#line 465 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - self->binary_disposition_table = _tmp2_; -#line 467 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp3_ = gee_hash_map_new (G_TYPE_STRING, (GBoxedCopyFunc) g_strdup, (GDestroyNotify) g_free, G_TYPE_STRING, (GBoxedCopyFunc) g_strdup, (GDestroyNotify) g_free, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL); -#line 467 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _g_object_unref0 (self->message_headers); -#line 467 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - self->message_headers = _tmp3_; -#line 460 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - return self; -#line 4329 "RESTSupport.c" -} - - -PublishingRESTSupportUploadTransaction* -publishing_rest_support_upload_transaction_new (PublishingRESTSupportSession* session, - SpitPublishingPublishable* publishable) -{ -#line 460 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - return publishing_rest_support_upload_transaction_construct (PUBLISHING_REST_SUPPORT_TYPE_UPLOAD_TRANSACTION, session, publishable); -#line 4339 "RESTSupport.c" -} - - -PublishingRESTSupportUploadTransaction* -publishing_rest_support_upload_transaction_construct_with_endpoint_url (GType object_type, - PublishingRESTSupportSession* session, - SpitPublishingPublishable* publishable, - const gchar* endpoint_url) -{ - PublishingRESTSupportUploadTransaction* self = NULL; - SpitPublishingPublishable* _tmp0_; - gchar* _tmp1_; - GHashTable* _tmp2_; - GeeHashMap* _tmp3_; -#line 470 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_return_val_if_fail (PUBLISHING_REST_SUPPORT_IS_SESSION (session), NULL); -#line 470 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_return_val_if_fail (SPIT_PUBLISHING_IS_PUBLISHABLE (publishable), NULL); -#line 470 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_return_val_if_fail (endpoint_url != NULL, NULL); -#line 472 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - self = (PublishingRESTSupportUploadTransaction*) publishing_rest_support_transaction_construct_with_endpoint_url (object_type, session, endpoint_url, PUBLISHING_REST_SUPPORT_HTTP_METHOD_POST); -#line 473 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp0_ = _g_object_ref0 (publishable); -#line 473 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _g_object_unref0 (self->publishable); -#line 473 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - self->publishable = _tmp0_; -#line 474 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp1_ = publishing_rest_support_upload_transaction_media_type_to_mime_type (spit_publishing_publishable_get_media_type (publishable)); -#line 474 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _g_free0 (self->mime_type); -#line 474 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - self->mime_type = _tmp1_; -#line 476 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp2_ = publishing_rest_support_upload_transaction_create_default_binary_disposition_table (self); -#line 476 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _g_hash_table_unref0 (self->binary_disposition_table); -#line 476 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - self->binary_disposition_table = _tmp2_; -#line 478 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp3_ = gee_hash_map_new (G_TYPE_STRING, (GBoxedCopyFunc) g_strdup, (GDestroyNotify) g_free, G_TYPE_STRING, (GBoxedCopyFunc) g_strdup, (GDestroyNotify) g_free, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL); -#line 478 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _g_object_unref0 (self->message_headers); -#line 478 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - self->message_headers = _tmp3_; -#line 470 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - return self; -#line 4388 "RESTSupport.c" -} - - -PublishingRESTSupportUploadTransaction* -publishing_rest_support_upload_transaction_new_with_endpoint_url (PublishingRESTSupportSession* session, - SpitPublishingPublishable* publishable, - const gchar* endpoint_url) -{ -#line 470 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - return publishing_rest_support_upload_transaction_construct_with_endpoint_url (PUBLISHING_REST_SUPPORT_TYPE_UPLOAD_TRANSACTION, session, publishable, endpoint_url); -#line 4399 "RESTSupport.c" -} - - -static void -publishing_rest_support_upload_transaction_real_add_header (PublishingRESTSupportTransaction* base, - const gchar* key, - const gchar* value) -{ - PublishingRESTSupportUploadTransaction * self; - GeeHashMap* _tmp0_; -#line 481 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_REST_SUPPORT_TYPE_UPLOAD_TRANSACTION, PublishingRESTSupportUploadTransaction); -#line 481 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_return_if_fail (key != NULL); -#line 481 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_return_if_fail (value != NULL); -#line 482 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp0_ = self->message_headers; -#line 482 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - gee_abstract_map_set (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), key, value); -#line 4420 "RESTSupport.c" -} - - -static gchar* -publishing_rest_support_upload_transaction_media_type_to_mime_type (SpitPublishingPublisherMediaType media_type) -{ - gchar* result = NULL; -#line 486 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - if (media_type == SPIT_PUBLISHING_PUBLISHER_MEDIA_TYPE_PHOTO) { -#line 4430 "RESTSupport.c" - gchar* _tmp0_; -#line 487 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp0_ = g_strdup ("image/jpeg"); -#line 487 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - result = _tmp0_; -#line 487 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - return result; -#line 4438 "RESTSupport.c" - } else { -#line 488 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - if (media_type == SPIT_PUBLISHING_PUBLISHER_MEDIA_TYPE_VIDEO) { -#line 4442 "RESTSupport.c" - gchar* _tmp1_; -#line 489 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp1_ = g_strdup ("video/mpeg"); -#line 489 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - result = _tmp1_; -#line 489 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - return result; -#line 4450 "RESTSupport.c" - } else { - GEnumValue* _tmp2_; -#line 491 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp2_ = g_enum_get_value (g_type_class_ref (SPIT_PUBLISHING_PUBLISHER_TYPE_MEDIA_TYPE), media_type); -#line 491 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_error ("RESTSupport.vala:491: UploadTransaction: unknown media type %s.", (_tmp2_ != NULL) ? _tmp2_->value_name : NULL); -#line 4457 "RESTSupport.c" - } - } -} - - -static void -_g_free0_ (gpointer var) -{ -#line 495 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - var = (g_free (var), NULL); -#line 4468 "RESTSupport.c" -} - - -static GHashTable* -publishing_rest_support_upload_transaction_create_default_binary_disposition_table (PublishingRESTSupportUploadTransaction* self) -{ - GHashTable* result = NULL; - GHashTable* _result_ = NULL; - GHashFunc _tmp0_; - GEqualFunc _tmp1_; - GHashTable* _tmp2_; - gchar* _tmp3_; - SpitPublishingPublishable* _tmp4_; - GFile* _tmp5_; - GFile* _tmp6_; - gchar* _tmp7_; - gchar* _tmp8_; - gchar* _tmp9_; -#line 494 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_return_val_if_fail (PUBLISHING_REST_SUPPORT_IS_UPLOAD_TRANSACTION (self), NULL); -#line 495 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp0_ = g_str_hash; -#line 495 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp1_ = g_str_equal; -#line 495 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp2_ = g_hash_table_new_full (_tmp0_, _tmp1_, _g_free0_, _g_free0_); -#line 495 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _result_ = _tmp2_; -#line 498 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp3_ = g_strdup ("filename"); -#line 498 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp4_ = self->publishable; -#line 498 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp5_ = spit_publishing_publishable_get_serialized_file (_tmp4_); -#line 498 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp6_ = _tmp5_; -#line 498 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp7_ = g_file_get_basename (_tmp6_); -#line 498 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp8_ = _tmp7_; -#line 498 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp9_ = soup_uri_encode (_tmp8_, NULL); -#line 498 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_hash_table_insert (_result_, _tmp3_, _tmp9_); -#line 498 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _g_free0 (_tmp8_); -#line 498 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _g_object_unref0 (_tmp6_); -#line 501 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - result = _result_; -#line 501 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - return result; -#line 4521 "RESTSupport.c" -} - - -static gpointer -_g_hash_table_ref0 (gpointer self) -{ -#line 505 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - return self ? g_hash_table_ref (self) : NULL; -#line 4530 "RESTSupport.c" -} - - -void -publishing_rest_support_upload_transaction_set_binary_disposition_table (PublishingRESTSupportUploadTransaction* self, - GHashTable* new_disp_table) -{ - GHashTable* _tmp0_; -#line 504 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_return_if_fail (PUBLISHING_REST_SUPPORT_IS_UPLOAD_TRANSACTION (self)); -#line 504 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_return_if_fail (new_disp_table != NULL); -#line 505 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp0_ = _g_hash_table_ref0 (new_disp_table); -#line 505 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _g_hash_table_unref0 (self->binary_disposition_table); -#line 505 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - self->binary_disposition_table = _tmp0_; -#line 4549 "RESTSupport.c" -} - - -static void -_vala_SoupMultipart_free (SoupMultipart* self) -{ -#line 520 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_boxed_free (soup_multipart_get_type (), self); -#line 4558 "RESTSupport.c" -} - - -static void -_vala_SoupBuffer_free (SoupBuffer* self) -{ -#line 550 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_boxed_free (soup_buffer_get_type (), self); -#line 4567 "RESTSupport.c" -} - - -static void -publishing_rest_support_upload_transaction_real_execute (PublishingRESTSupportTransaction* base, - GError** error) -{ - PublishingRESTSupportUploadTransaction * self; - PublishingRESTSupportArgument** request_arguments = NULL; - gint _tmp0_; - PublishingRESTSupportArgument** _tmp1_; - gint request_arguments_length1; - gint _request_arguments_size_; - PublishingRESTSupportArgument** _tmp2_; - gint _tmp2__length1; - SoupMultipart* message_parts = NULL; - SoupMultipart* _tmp3_; - PublishingRESTSupportArgument** _tmp4_; - gint _tmp4__length1; - gchar* payload = NULL; - gsize payload_length = 0UL; - gint payload_part_num = 0; - SoupMultipart* _tmp19_; - SoupBuffer* bindable_data = NULL; - const gchar* _tmp20_; - guint8* _tmp21_; - gint _tmp21__length1; - guint8* _tmp22_; - gint _tmp22__length1; - gsize _tmp23_; - SoupBuffer* _tmp24_; - SoupMultipart* _tmp25_; - SpitPublishingPublishable* _tmp26_; - GFile* _tmp27_; - GFile* _tmp28_; - gchar* _tmp29_; - gchar* _tmp30_; - const gchar* _tmp31_; - SoupBuffer* _tmp32_; - SoupMessageHeaders* image_part_header = NULL; - SoupBuffer* image_part_body = NULL; - SoupMultipart* _tmp33_; - gint _tmp34_; - SoupMessageHeaders* _tmp35_ = NULL; - SoupBuffer* _tmp36_ = NULL; - SoupMessageHeaders* _tmp37_; - GHashTable* _tmp38_; - SoupMessage* outbound_message = NULL; - gchar* _tmp39_; - gchar* _tmp40_; - SoupMultipart* _tmp41_; - SoupMessage* _tmp42_; - SoupMessage* _tmp43_; - GeeMapIterator* i = NULL; - GeeHashMap* _tmp44_; - GeeMapIterator* _tmp45_; - gboolean cont = FALSE; - GeeMapIterator* _tmp46_; - SoupMessage* _tmp57_; - GError * _inner_error_ = NULL; -#line 508 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_REST_SUPPORT_TYPE_UPLOAD_TRANSACTION, PublishingRESTSupportUploadTransaction); -#line 509 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp1_ = publishing_rest_support_transaction_get_arguments (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), &_tmp0_); -#line 509 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - request_arguments = _tmp1_; -#line 509 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - request_arguments_length1 = _tmp0_; -#line 509 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _request_arguments_size_ = request_arguments_length1; -#line 510 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp2_ = request_arguments; -#line 510 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp2__length1 = request_arguments_length1; -#line 510 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _vala_assert (_tmp2__length1 > 0, "request_arguments.length > 0"); -#line 512 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp3_ = soup_multipart_new ("multipart/form-data"); -#line 512 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - message_parts = _tmp3_; -#line 514 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp4_ = request_arguments; -#line 514 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp4__length1 = request_arguments_length1; -#line 4652 "RESTSupport.c" - { - PublishingRESTSupportArgument** arg_collection = NULL; - gint arg_collection_length1 = 0; - gint _arg_collection_size_ = 0; - gint arg_it = 0; -#line 514 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - arg_collection = _tmp4_; -#line 514 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - arg_collection_length1 = _tmp4__length1; -#line 514 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - for (arg_it = 0; arg_it < _tmp4__length1; arg_it = arg_it + 1) { -#line 4664 "RESTSupport.c" - PublishingRESTSupportArgument* _tmp5_; - PublishingRESTSupportArgument* arg = NULL; -#line 514 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp5_ = _publishing_rest_support_argument_ref0 (arg_collection[arg_it]); -#line 514 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - arg = _tmp5_; -#line 4671 "RESTSupport.c" - { - SoupMultipart* _tmp6_; - PublishingRESTSupportArgument* _tmp7_; - const gchar* _tmp8_; - PublishingRESTSupportArgument* _tmp9_; - const gchar* _tmp10_; -#line 515 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp6_ = message_parts; -#line 515 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp7_ = arg; -#line 515 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp8_ = _tmp7_->key; -#line 515 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp9_ = arg; -#line 515 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp10_ = _tmp9_->value; -#line 515 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - soup_multipart_append_form_string (_tmp6_, _tmp8_, _tmp10_); -#line 514 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _publishing_rest_support_argument_unref0 (arg); -#line 4692 "RESTSupport.c" - } - } - } - { - SpitPublishingPublishable* _tmp11_; - GFile* _tmp12_; - GFile* _tmp13_; - gchar* _tmp14_; - gchar* _tmp15_; - gchar* _tmp16_ = NULL; - gsize _tmp17_ = 0UL; -#line 520 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp11_ = self->publishable; -#line 520 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp12_ = spit_publishing_publishable_get_serialized_file (_tmp11_); -#line 520 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp13_ = _tmp12_; -#line 520 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp14_ = g_file_get_path (_tmp13_); -#line 520 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp15_ = _tmp14_; -#line 520 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_file_get_contents (_tmp15_, &_tmp16_, &_tmp17_, &_inner_error_); -#line 520 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _g_free0 (payload); -#line 520 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - payload = _tmp16_; -#line 520 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - payload_length = _tmp17_; -#line 520 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _g_free0 (_tmp15_); -#line 520 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _g_object_unref0 (_tmp13_); -#line 520 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 520 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - if (_inner_error_->domain == G_FILE_ERROR) { -#line 4730 "RESTSupport.c" - goto __catch2_g_file_error; - } -#line 520 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _g_free0 (payload); -#line 520 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - __vala_SoupMultipart_free0 (message_parts); -#line 520 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - request_arguments = (_vala_array_free (request_arguments, request_arguments_length1, (GDestroyNotify) publishing_rest_support_argument_unref), NULL); -#line 520 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 520 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_clear_error (&_inner_error_); -#line 520 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - return; -#line 4745 "RESTSupport.c" - } - } - goto __finally2; - __catch2_g_file_error: - { - GError* e = NULL; - GError* _tmp18_; -#line 519 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - e = _inner_error_; -#line 519 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _inner_error_ = NULL; -#line 523 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp18_ = g_error_new_literal (SPIT_PUBLISHING_PUBLISHING_ERROR, SPIT_PUBLISHING_PUBLISHING_ERROR_LOCAL_FILE_ERROR, _ ("A temporary file needed for publishing is unavailable")); -#line 523 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _inner_error_ = _tmp18_; -#line 523 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _g_error_free0 (e); -#line 4763 "RESTSupport.c" - goto __finally2; - } - __finally2: -#line 519 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 519 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - if (_inner_error_->domain == SPIT_PUBLISHING_PUBLISHING_ERROR) { -#line 519 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_propagate_error (error, _inner_error_); -#line 519 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _g_free0 (payload); -#line 519 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - __vala_SoupMultipart_free0 (message_parts); -#line 519 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - request_arguments = (_vala_array_free (request_arguments, request_arguments_length1, (GDestroyNotify) publishing_rest_support_argument_unref), NULL); -#line 519 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - return; -#line 4781 "RESTSupport.c" - } else { -#line 519 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _g_free0 (payload); -#line 519 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - __vala_SoupMultipart_free0 (message_parts); -#line 519 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - request_arguments = (_vala_array_free (request_arguments, request_arguments_length1, (GDestroyNotify) publishing_rest_support_argument_unref), NULL); -#line 519 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 519 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_clear_error (&_inner_error_); -#line 519 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - return; -#line 4795 "RESTSupport.c" - } - } -#line 527 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp19_ = message_parts; -#line 527 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - payload_part_num = soup_multipart_get_length (_tmp19_); -#line 529 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp20_ = payload; -#line 529 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp21_ = string_get_data (_tmp20_, &_tmp21__length1); -#line 529 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp22_ = _tmp21_; -#line 529 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp22__length1 = _tmp21__length1; -#line 529 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp23_ = payload_length; -#line 529 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp24_ = soup_buffer_new (SOUP_MEMORY_COPY, _tmp22_ + 0, ((gint) _tmp23_) - 0); -#line 529 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - bindable_data = _tmp24_; -#line 530 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp25_ = message_parts; -#line 530 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp26_ = self->publishable; -#line 530 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp27_ = spit_publishing_publishable_get_serialized_file (_tmp26_); -#line 530 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp28_ = _tmp27_; -#line 530 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp29_ = g_file_get_path (_tmp28_); -#line 530 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp30_ = _tmp29_; -#line 530 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp31_ = self->mime_type; -#line 530 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp32_ = bindable_data; -#line 530 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - soup_multipart_append_form_file (_tmp25_, "", _tmp30_, _tmp31_, _tmp32_); -#line 530 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _g_free0 (_tmp30_); -#line 530 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _g_object_unref0 (_tmp28_); -#line 535 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp33_ = message_parts; -#line 535 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp34_ = payload_part_num; -#line 535 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - soup_multipart_get_part (_tmp33_, _tmp34_, &_tmp35_, &_tmp36_); -#line 535 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - image_part_header = _tmp35_; -#line 535 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - image_part_body = _tmp36_; -#line 536 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp37_ = image_part_header; -#line 536 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp38_ = self->binary_disposition_table; -#line 536 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - soup_message_headers_set_content_disposition (_tmp37_, "form-data", _tmp38_); -#line 538 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp39_ = publishing_rest_support_transaction_get_endpoint_url (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction)); -#line 538 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp40_ = _tmp39_; -#line 538 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp41_ = message_parts; -#line 538 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp42_ = soup_form_request_new_from_multipart (_tmp40_, _tmp41_); -#line 538 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp43_ = _tmp42_; -#line 538 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _g_free0 (_tmp40_); -#line 538 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - outbound_message = _tmp43_; -#line 541 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp44_ = self->message_headers; -#line 541 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp45_ = gee_abstract_map_map_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp44_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap)); -#line 541 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - i = _tmp45_; -#line 542 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp46_ = i; -#line 542 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - cont = gee_map_iterator_next (_tmp46_); -#line 543 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - while (TRUE) { -#line 4880 "RESTSupport.c" - gboolean _tmp47_; - SoupMessage* _tmp48_; - SoupMessageHeaders* _tmp49_; - GeeMapIterator* _tmp50_; - gpointer _tmp51_; - gchar* _tmp52_; - GeeMapIterator* _tmp53_; - gpointer _tmp54_; - gchar* _tmp55_; - GeeMapIterator* _tmp56_; -#line 543 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp47_ = cont; -#line 543 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - if (!_tmp47_) { -#line 543 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - break; -#line 4897 "RESTSupport.c" - } -#line 544 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp48_ = outbound_message; -#line 544 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp49_ = _tmp48_->request_headers; -#line 544 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp50_ = i; -#line 544 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp51_ = gee_map_iterator_get_key (_tmp50_); -#line 544 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp52_ = (gchar*) _tmp51_; -#line 544 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp53_ = i; -#line 544 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp54_ = gee_map_iterator_get_value (_tmp53_); -#line 544 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp55_ = (gchar*) _tmp54_; -#line 544 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - soup_message_headers_append (_tmp49_, _tmp52_, _tmp55_); -#line 544 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _g_free0 (_tmp55_); -#line 544 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _g_free0 (_tmp52_); -#line 545 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp56_ = i; -#line 545 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - cont = gee_map_iterator_next (_tmp56_); -#line 4925 "RESTSupport.c" - } -#line 547 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp57_ = outbound_message; -#line 547 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - publishing_rest_support_transaction_set_message (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), _tmp57_); -#line 549 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - publishing_rest_support_transaction_set_is_executed (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), TRUE); -#line 550 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - publishing_rest_support_transaction_send (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), &_inner_error_); -#line 550 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 550 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - if (_inner_error_->domain == SPIT_PUBLISHING_PUBLISHING_ERROR) { -#line 550 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_propagate_error (error, _inner_error_); -#line 550 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _g_object_unref0 (i); -#line 550 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _g_object_unref0 (outbound_message); -#line 550 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - __vala_SoupBuffer_free0 (bindable_data); -#line 550 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _g_free0 (payload); -#line 550 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - __vala_SoupMultipart_free0 (message_parts); -#line 550 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - request_arguments = (_vala_array_free (request_arguments, request_arguments_length1, (GDestroyNotify) publishing_rest_support_argument_unref), NULL); -#line 550 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - return; -#line 4955 "RESTSupport.c" - } else { -#line 550 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _g_object_unref0 (i); -#line 550 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _g_object_unref0 (outbound_message); -#line 550 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - __vala_SoupBuffer_free0 (bindable_data); -#line 550 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _g_free0 (payload); -#line 550 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - __vala_SoupMultipart_free0 (message_parts); -#line 550 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - request_arguments = (_vala_array_free (request_arguments, request_arguments_length1, (GDestroyNotify) publishing_rest_support_argument_unref), NULL); -#line 550 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 550 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_clear_error (&_inner_error_); -#line 550 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - return; -#line 4975 "RESTSupport.c" - } - } -#line 508 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _g_object_unref0 (i); -#line 508 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _g_object_unref0 (outbound_message); -#line 508 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - __vala_SoupBuffer_free0 (bindable_data); -#line 508 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _g_free0 (payload); -#line 508 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - __vala_SoupMultipart_free0 (message_parts); -#line 508 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - request_arguments = (_vala_array_free (request_arguments, request_arguments_length1, (GDestroyNotify) publishing_rest_support_argument_unref), NULL); -#line 4990 "RESTSupport.c" -} - - -static void -publishing_rest_support_upload_transaction_class_init (PublishingRESTSupportUploadTransactionClass * klass) -{ -#line 454 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - publishing_rest_support_upload_transaction_parent_class = g_type_class_peek_parent (klass); -#line 454 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - ((PublishingRESTSupportTransactionClass *) klass)->finalize = publishing_rest_support_upload_transaction_finalize; -#line 454 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - ((PublishingRESTSupportTransactionClass *) klass)->add_header = (void (*) (PublishingRESTSupportTransaction *, const gchar*, const gchar*)) publishing_rest_support_upload_transaction_real_add_header; -#line 454 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - ((PublishingRESTSupportTransactionClass *) klass)->execute = (void (*) (PublishingRESTSupportTransaction *, GError**)) publishing_rest_support_upload_transaction_real_execute; -#line 5005 "RESTSupport.c" -} - - -static void -publishing_rest_support_upload_transaction_instance_init (PublishingRESTSupportUploadTransaction * self) -{ -#line 455 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - self->binary_disposition_table = NULL; -#line 456 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - self->publishable = NULL; -#line 458 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - self->message_headers = NULL; -#line 5018 "RESTSupport.c" -} - - -static void -publishing_rest_support_upload_transaction_finalize (PublishingRESTSupportTransaction * obj) -{ - PublishingRESTSupportUploadTransaction * self; -#line 454 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, PUBLISHING_REST_SUPPORT_TYPE_UPLOAD_TRANSACTION, PublishingRESTSupportUploadTransaction); -#line 455 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _g_hash_table_unref0 (self->binary_disposition_table); -#line 456 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _g_object_unref0 (self->publishable); -#line 457 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _g_free0 (self->mime_type); -#line 458 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _g_object_unref0 (self->message_headers); -#line 454 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - PUBLISHING_REST_SUPPORT_TRANSACTION_CLASS (publishing_rest_support_upload_transaction_parent_class)->finalize (obj); -#line 5038 "RESTSupport.c" -} - - -GType -publishing_rest_support_upload_transaction_get_type (void) -{ - static volatile gsize publishing_rest_support_upload_transaction_type_id__volatile = 0; - if (g_once_init_enter (&publishing_rest_support_upload_transaction_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (PublishingRESTSupportUploadTransactionClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) publishing_rest_support_upload_transaction_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PublishingRESTSupportUploadTransaction), 0, (GInstanceInitFunc) publishing_rest_support_upload_transaction_instance_init, NULL }; - GType publishing_rest_support_upload_transaction_type_id; - publishing_rest_support_upload_transaction_type_id = g_type_register_static (PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, "PublishingRESTSupportUploadTransaction", &g_define_type_info, 0); - g_once_init_leave (&publishing_rest_support_upload_transaction_type_id__volatile, publishing_rest_support_upload_transaction_type_id); - } - return publishing_rest_support_upload_transaction_type_id__volatile; -} - - -static PublishingRESTSupportXmlDocument* -publishing_rest_support_xml_document_construct (GType object_type, - xmlDoc* doc) -{ - PublishingRESTSupportXmlDocument* self = NULL; -#line 562 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - self = (PublishingRESTSupportXmlDocument*) g_type_create_instance (object_type); -#line 563 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - self->priv->document = doc; -#line 562 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - return self; -#line 5067 "RESTSupport.c" -} - - -static PublishingRESTSupportXmlDocument* -publishing_rest_support_xml_document_new (xmlDoc* doc) -{ -#line 562 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - return publishing_rest_support_xml_document_construct (PUBLISHING_REST_SUPPORT_TYPE_XML_DOCUMENT, doc); -#line 5076 "RESTSupport.c" -} - - -xmlNode* -publishing_rest_support_xml_document_get_root_node (PublishingRESTSupportXmlDocument* self) -{ - xmlNode* result = NULL; - xmlDoc* _tmp0_; - xmlNode* _tmp1_; -#line 570 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_return_val_if_fail (PUBLISHING_REST_SUPPORT_IS_XML_DOCUMENT (self), NULL); -#line 571 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp0_ = self->priv->document; -#line 571 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp1_ = xmlDocGetRootElement (_tmp0_); -#line 571 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - result = _tmp1_; -#line 571 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - return result; -#line 5096 "RESTSupport.c" -} - - -xmlNode* -publishing_rest_support_xml_document_get_named_child (PublishingRESTSupportXmlDocument* self, - xmlNode* parent, - const gchar* child_name, - GError** error) -{ - xmlNode* result = NULL; - xmlNode* doc_node_iter = NULL; - xmlNode* _tmp0_; - GError* _tmp8_; - GError * _inner_error_ = NULL; -#line 574 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_return_val_if_fail (PUBLISHING_REST_SUPPORT_IS_XML_DOCUMENT (self), NULL); -#line 574 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_return_val_if_fail (child_name != NULL, NULL); -#line 576 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp0_ = parent->children; -#line 576 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - doc_node_iter = _tmp0_; -#line 5119 "RESTSupport.c" - { - gboolean _tmp1_ = FALSE; -#line 578 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp1_ = TRUE; -#line 578 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - while (TRUE) { -#line 5126 "RESTSupport.c" - xmlNode* _tmp4_; - xmlNode* _tmp5_; - const gchar* _tmp6_; -#line 578 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - if (!_tmp1_) { -#line 5132 "RESTSupport.c" - xmlNode* _tmp2_; - xmlNode* _tmp3_; -#line 578 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp2_ = doc_node_iter; -#line 578 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp3_ = _tmp2_->next; -#line 578 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - doc_node_iter = _tmp3_; -#line 5141 "RESTSupport.c" - } -#line 578 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp1_ = FALSE; -#line 578 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp4_ = doc_node_iter; -#line 578 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - if (!(_tmp4_ != NULL)) { -#line 578 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - break; -#line 5151 "RESTSupport.c" - } -#line 579 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp5_ = doc_node_iter; -#line 579 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp6_ = _tmp5_->name; -#line 579 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - if (g_strcmp0 (_tmp6_, child_name) == 0) { -#line 5159 "RESTSupport.c" - xmlNode* _tmp7_; -#line 580 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp7_ = doc_node_iter; -#line 580 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - result = _tmp7_; -#line 580 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - return result; -#line 5167 "RESTSupport.c" - } - } - } -#line 583 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp8_ = g_error_new (SPIT_PUBLISHING_PUBLISHING_ERROR, SPIT_PUBLISHING_PUBLISHING_ERROR_MALFORMED_RESPONSE, "Can't find XML node %s", child_name); -#line 583 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _inner_error_ = _tmp8_; -#line 583 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - if (_inner_error_->domain == SPIT_PUBLISHING_PUBLISHING_ERROR) { -#line 583 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_propagate_error (error, _inner_error_); -#line 583 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - return NULL; -#line 5181 "RESTSupport.c" - } else { -#line 583 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 583 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_clear_error (&_inner_error_); -#line 583 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - return NULL; -#line 5189 "RESTSupport.c" - } -} - - -gchar* -publishing_rest_support_xml_document_get_property_value (PublishingRESTSupportXmlDocument* self, - xmlNode* node, - const gchar* property_key, - GError** error) -{ - gchar* result = NULL; - gchar* value_string = NULL; - gchar* _tmp0_; - const gchar* _tmp1_; - GError * _inner_error_ = NULL; -#line 587 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_return_val_if_fail (PUBLISHING_REST_SUPPORT_IS_XML_DOCUMENT (self), NULL); -#line 587 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_return_val_if_fail (property_key != NULL, NULL); -#line 589 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp0_ = (gchar*) xmlGetProp (node, (xmlChar*) property_key); -#line 589 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - value_string = _tmp0_; -#line 590 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp1_ = value_string; -#line 590 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - if (_tmp1_ == NULL) { -#line 5217 "RESTSupport.c" - const gchar* _tmp2_; - GError* _tmp3_; -#line 591 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp2_ = node->name; -#line 591 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp3_ = g_error_new (SPIT_PUBLISHING_PUBLISHING_ERROR, SPIT_PUBLISHING_PUBLISHING_ERROR_MALFORMED_RESPONSE, "Can't find XML " "property %s on node %s", property_key, _tmp2_); -#line 591 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _inner_error_ = _tmp3_; -#line 591 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - if (_inner_error_->domain == SPIT_PUBLISHING_PUBLISHING_ERROR) { -#line 591 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_propagate_error (error, _inner_error_); -#line 591 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _g_free0 (value_string); -#line 591 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - return NULL; -#line 5234 "RESTSupport.c" - } else { -#line 591 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _g_free0 (value_string); -#line 591 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 591 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_clear_error (&_inner_error_); -#line 591 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - return NULL; -#line 5244 "RESTSupport.c" - } - } -#line 594 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - result = value_string; -#line 594 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - return result; -#line 5251 "RESTSupport.c" -} - - -static gchar* -string_chug (const gchar* self) -{ - gchar* result = NULL; - gchar* _result_ = NULL; - gchar* _tmp0_; - const gchar* _tmp1_; -#line 1240 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - g_return_val_if_fail (self != NULL, NULL); -#line 1241 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp0_ = g_strdup (self); -#line 1241 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _result_ = _tmp0_; -#line 1242 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp1_ = _result_; -#line 1242 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - g_strchug (_tmp1_); -#line 1243 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - result = _result_; -#line 1243 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - return result; -#line 5276 "RESTSupport.c" -} - - -static gchar* -string_chomp (const gchar* self) -{ - gchar* result = NULL; - gchar* _result_ = NULL; - gchar* _tmp0_; - const gchar* _tmp1_; -#line 1232 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - g_return_val_if_fail (self != NULL, NULL); -#line 1233 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp0_ = g_strdup (self); -#line 1233 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _result_ = _tmp0_; -#line 1234 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp1_ = _result_; -#line 1234 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - g_strchomp (_tmp1_); -#line 1235 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - result = _result_; -#line 1235 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - return result; -#line 5301 "RESTSupport.c" -} - - -PublishingRESTSupportXmlDocument* -publishing_rest_support_xml_document_parse_string (const gchar* input_string, - PublishingRESTSupportXmlDocumentCheckForErrorResponse check_for_error_response, - void* check_for_error_response_target, - GError** error) -{ - PublishingRESTSupportXmlDocument* result = NULL; - gboolean _tmp0_ = FALSE; - gboolean _tmp4_ = FALSE; - gchar* _tmp5_; - gchar* _tmp6_; - gchar* _tmp7_; - gchar* _tmp8_; - gboolean _tmp9_; - xmlDoc* doc = NULL; - gint _tmp15_; - gint _tmp16_; - xmlDoc* _tmp17_; - xmlDoc* _tmp18_; - xmlDoc* _tmp20_; - xmlNode* _tmp21_; - PublishingRESTSupportXmlDocument* rest_doc = NULL; - xmlDoc* _tmp23_; - PublishingRESTSupportXmlDocument* _tmp24_; - gchar* _result_ = NULL; - PublishingRESTSupportXmlDocument* _tmp25_; - gchar* _tmp26_; - const gchar* _tmp27_; - GError * _inner_error_ = NULL; -#line 599 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - if (input_string == NULL) { -#line 599 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp0_ = TRUE; -#line 5338 "RESTSupport.c" - } else { - gint _tmp1_; - gint _tmp2_; -#line 599 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp1_ = strlen (input_string); -#line 599 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp2_ = _tmp1_; -#line 599 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp0_ = _tmp2_ == 0; -#line 5348 "RESTSupport.c" - } -#line 599 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - if (_tmp0_) { -#line 5352 "RESTSupport.c" - GError* _tmp3_; -#line 600 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp3_ = g_error_new_literal (SPIT_PUBLISHING_PUBLISHING_ERROR, SPIT_PUBLISHING_PUBLISHING_ERROR_MALFORMED_RESPONSE, "Empty XML string"); -#line 600 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _inner_error_ = _tmp3_; -#line 600 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - if (_inner_error_->domain == SPIT_PUBLISHING_PUBLISHING_ERROR) { -#line 600 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_propagate_error (error, _inner_error_); -#line 600 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - return NULL; -#line 5364 "RESTSupport.c" - } else { -#line 600 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 600 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_clear_error (&_inner_error_); -#line 600 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - return NULL; -#line 5372 "RESTSupport.c" - } - } -#line 603 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp5_ = string_chug (input_string); -#line 603 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp6_ = _tmp5_; -#line 603 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp7_ = string_chomp (_tmp6_); -#line 603 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp8_ = _tmp7_; -#line 603 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp9_ = !g_str_has_prefix (_tmp8_, "<"); -#line 603 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _g_free0 (_tmp8_); -#line 603 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _g_free0 (_tmp6_); -#line 603 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - if (_tmp9_) { -#line 603 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp4_ = TRUE; -#line 5393 "RESTSupport.c" - } else { - gchar* _tmp10_; - gchar* _tmp11_; - gchar* _tmp12_; - gchar* _tmp13_; -#line 604 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp10_ = string_chug (input_string); -#line 604 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp11_ = _tmp10_; -#line 604 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp12_ = string_chomp (_tmp11_); -#line 604 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp13_ = _tmp12_; -#line 604 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp4_ = !g_str_has_suffix (_tmp13_, ">"); -#line 604 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _g_free0 (_tmp13_); -#line 604 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _g_free0 (_tmp11_); -#line 5413 "RESTSupport.c" - } -#line 603 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - if (_tmp4_) { -#line 5417 "RESTSupport.c" - GError* _tmp14_; -#line 606 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp14_ = g_error_new_literal (SPIT_PUBLISHING_PUBLISHING_ERROR, SPIT_PUBLISHING_PUBLISHING_ERROR_MALFORMED_RESPONSE, "Unable to parse XML " "document"); -#line 606 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _inner_error_ = _tmp14_; -#line 606 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - if (_inner_error_->domain == SPIT_PUBLISHING_PUBLISHING_ERROR) { -#line 606 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_propagate_error (error, _inner_error_); -#line 606 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - return NULL; -#line 5429 "RESTSupport.c" - } else { -#line 606 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 606 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_clear_error (&_inner_error_); -#line 606 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - return NULL; -#line 5437 "RESTSupport.c" - } - } -#line 612 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp15_ = strlen (input_string); -#line 612 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp16_ = _tmp15_; -#line 612 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp17_ = xmlReadMemory (input_string, (gint) _tmp16_, NULL, NULL, (gint) (XML_PARSE_NOBLANKS | XML_PARSE_RECOVER)); -#line 612 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - doc = _tmp17_; -#line 614 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp18_ = doc; -#line 614 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - if (_tmp18_ == NULL) { -#line 5452 "RESTSupport.c" - GError* _tmp19_; -#line 615 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp19_ = g_error_new_literal (SPIT_PUBLISHING_PUBLISHING_ERROR, SPIT_PUBLISHING_PUBLISHING_ERROR_MALFORMED_RESPONSE, "Unable to parse XML " "document"); -#line 615 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _inner_error_ = _tmp19_; -#line 615 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - if (_inner_error_->domain == SPIT_PUBLISHING_PUBLISHING_ERROR) { -#line 615 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_propagate_error (error, _inner_error_); -#line 615 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - return NULL; -#line 5464 "RESTSupport.c" - } else { -#line 615 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 615 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_clear_error (&_inner_error_); -#line 615 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - return NULL; -#line 5472 "RESTSupport.c" - } - } -#line 620 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp20_ = doc; -#line 620 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp21_ = _tmp20_->children; -#line 620 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - if (_tmp21_ == NULL) { -#line 5481 "RESTSupport.c" - GError* _tmp22_; -#line 621 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp22_ = g_error_new_literal (SPIT_PUBLISHING_PUBLISHING_ERROR, SPIT_PUBLISHING_PUBLISHING_ERROR_MALFORMED_RESPONSE, "Unable to parse XML " "document"); -#line 621 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _inner_error_ = _tmp22_; -#line 621 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - if (_inner_error_->domain == SPIT_PUBLISHING_PUBLISHING_ERROR) { -#line 621 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_propagate_error (error, _inner_error_); -#line 621 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - return NULL; -#line 5493 "RESTSupport.c" - } else { -#line 621 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 621 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_clear_error (&_inner_error_); -#line 621 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - return NULL; -#line 5501 "RESTSupport.c" - } - } -#line 625 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp23_ = doc; -#line 625 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp24_ = publishing_rest_support_xml_document_new (_tmp23_); -#line 625 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - rest_doc = _tmp24_; -#line 627 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp25_ = rest_doc; -#line 627 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp26_ = check_for_error_response (_tmp25_, check_for_error_response_target); -#line 627 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _result_ = _tmp26_; -#line 628 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp27_ = _result_; -#line 628 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - if (_tmp27_ != NULL) { -#line 5520 "RESTSupport.c" - const gchar* _tmp28_; - GError* _tmp29_; -#line 629 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp28_ = _result_; -#line 629 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp29_ = g_error_new (SPIT_PUBLISHING_PUBLISHING_ERROR, SPIT_PUBLISHING_PUBLISHING_ERROR_SERVICE_ERROR, "%s", _tmp28_); -#line 629 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _inner_error_ = _tmp29_; -#line 629 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - if (_inner_error_->domain == SPIT_PUBLISHING_PUBLISHING_ERROR) { -#line 629 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_propagate_error (error, _inner_error_); -#line 629 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _g_free0 (_result_); -#line 629 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _publishing_rest_support_xml_document_unref0 (rest_doc); -#line 629 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - return NULL; -#line 5539 "RESTSupport.c" - } else { -#line 629 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _g_free0 (_result_); -#line 629 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _publishing_rest_support_xml_document_unref0 (rest_doc); -#line 629 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 629 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_clear_error (&_inner_error_); -#line 629 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - return NULL; -#line 5551 "RESTSupport.c" - } - } -#line 631 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - result = rest_doc; -#line 631 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _g_free0 (_result_); -#line 631 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - return result; -#line 5560 "RESTSupport.c" -} - - -static void -publishing_rest_support_value_xml_document_init (GValue* value) -{ -#line 554 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - value->data[0].v_pointer = NULL; -#line 5569 "RESTSupport.c" -} - - -static void -publishing_rest_support_value_xml_document_free_value (GValue* value) -{ -#line 554 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - if (value->data[0].v_pointer) { -#line 554 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - publishing_rest_support_xml_document_unref (value->data[0].v_pointer); -#line 5580 "RESTSupport.c" - } -} - - -static void -publishing_rest_support_value_xml_document_copy_value (const GValue* src_value, - GValue* dest_value) -{ -#line 554 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - if (src_value->data[0].v_pointer) { -#line 554 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - dest_value->data[0].v_pointer = publishing_rest_support_xml_document_ref (src_value->data[0].v_pointer); -#line 5593 "RESTSupport.c" - } else { -#line 554 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - dest_value->data[0].v_pointer = NULL; -#line 5597 "RESTSupport.c" - } -} - - -static gpointer -publishing_rest_support_value_xml_document_peek_pointer (const GValue* value) -{ -#line 554 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - return value->data[0].v_pointer; -#line 5607 "RESTSupport.c" -} - - -static gchar* -publishing_rest_support_value_xml_document_collect_value (GValue* value, - guint n_collect_values, - GTypeCValue* collect_values, - guint collect_flags) -{ -#line 554 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - if (collect_values[0].v_pointer) { -#line 5619 "RESTSupport.c" - PublishingRESTSupportXmlDocument * object; - object = collect_values[0].v_pointer; -#line 554 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - if (object->parent_instance.g_class == NULL) { -#line 554 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL); -#line 5626 "RESTSupport.c" - } else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) { -#line 554 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - return g_strconcat ("invalid object type `", g_type_name (G_TYPE_FROM_INSTANCE (object)), "' for value type `", G_VALUE_TYPE_NAME (value), "'", NULL); -#line 5630 "RESTSupport.c" - } -#line 554 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - value->data[0].v_pointer = publishing_rest_support_xml_document_ref (object); -#line 5634 "RESTSupport.c" - } else { -#line 554 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - value->data[0].v_pointer = NULL; -#line 5638 "RESTSupport.c" - } -#line 554 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - return NULL; -#line 5642 "RESTSupport.c" -} - - -static gchar* -publishing_rest_support_value_xml_document_lcopy_value (const GValue* value, - guint n_collect_values, - GTypeCValue* collect_values, - guint collect_flags) -{ - PublishingRESTSupportXmlDocument ** object_p; - object_p = collect_values[0].v_pointer; -#line 554 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - if (!object_p) { -#line 554 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value)); -#line 5658 "RESTSupport.c" - } -#line 554 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - if (!value->data[0].v_pointer) { -#line 554 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - *object_p = NULL; -#line 5664 "RESTSupport.c" - } else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) { -#line 554 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - *object_p = value->data[0].v_pointer; -#line 5668 "RESTSupport.c" - } else { -#line 554 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - *object_p = publishing_rest_support_xml_document_ref (value->data[0].v_pointer); -#line 5672 "RESTSupport.c" - } -#line 554 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - return NULL; -#line 5676 "RESTSupport.c" -} - - -GParamSpec* -publishing_rest_support_param_spec_xml_document (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags) -{ - PublishingRESTSupportParamSpecXmlDocument* spec; -#line 554 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_return_val_if_fail (g_type_is_a (object_type, PUBLISHING_REST_SUPPORT_TYPE_XML_DOCUMENT), NULL); -#line 554 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags); -#line 554 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - G_PARAM_SPEC (spec)->value_type = object_type; -#line 554 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - return G_PARAM_SPEC (spec); -#line 5696 "RESTSupport.c" -} - - -gpointer -publishing_rest_support_value_get_xml_document (const GValue* value) -{ -#line 554 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, PUBLISHING_REST_SUPPORT_TYPE_XML_DOCUMENT), NULL); -#line 554 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - return value->data[0].v_pointer; -#line 5707 "RESTSupport.c" -} - - -void -publishing_rest_support_value_set_xml_document (GValue* value, - gpointer v_object) -{ - PublishingRESTSupportXmlDocument * old; -#line 554 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, PUBLISHING_REST_SUPPORT_TYPE_XML_DOCUMENT)); -#line 554 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - old = value->data[0].v_pointer; -#line 554 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - if (v_object) { -#line 554 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, PUBLISHING_REST_SUPPORT_TYPE_XML_DOCUMENT)); -#line 554 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value))); -#line 554 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - value->data[0].v_pointer = v_object; -#line 554 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - publishing_rest_support_xml_document_ref (value->data[0].v_pointer); -#line 5730 "RESTSupport.c" - } else { -#line 554 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - value->data[0].v_pointer = NULL; -#line 5734 "RESTSupport.c" - } -#line 554 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - if (old) { -#line 554 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - publishing_rest_support_xml_document_unref (old); -#line 5740 "RESTSupport.c" - } -} - - -void -publishing_rest_support_value_take_xml_document (GValue* value, - gpointer v_object) -{ - PublishingRESTSupportXmlDocument * old; -#line 554 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, PUBLISHING_REST_SUPPORT_TYPE_XML_DOCUMENT)); -#line 554 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - old = value->data[0].v_pointer; -#line 554 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - if (v_object) { -#line 554 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, PUBLISHING_REST_SUPPORT_TYPE_XML_DOCUMENT)); -#line 554 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value))); -#line 554 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - value->data[0].v_pointer = v_object; -#line 5762 "RESTSupport.c" - } else { -#line 554 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - value->data[0].v_pointer = NULL; -#line 5766 "RESTSupport.c" - } -#line 554 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - if (old) { -#line 554 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - publishing_rest_support_xml_document_unref (old); -#line 5772 "RESTSupport.c" - } -} - - -static void -publishing_rest_support_xml_document_class_init (PublishingRESTSupportXmlDocumentClass * klass) -{ -#line 554 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - publishing_rest_support_xml_document_parent_class = g_type_class_peek_parent (klass); -#line 554 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - ((PublishingRESTSupportXmlDocumentClass *) klass)->finalize = publishing_rest_support_xml_document_finalize; -#line 554 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_type_class_add_private (klass, sizeof (PublishingRESTSupportXmlDocumentPrivate)); -#line 5786 "RESTSupport.c" -} - - -static void -publishing_rest_support_xml_document_instance_init (PublishingRESTSupportXmlDocument * self) -{ -#line 554 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - self->priv = PUBLISHING_REST_SUPPORT_XML_DOCUMENT_GET_PRIVATE (self); -#line 554 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - self->ref_count = 1; -#line 5797 "RESTSupport.c" -} - - -static void -publishing_rest_support_xml_document_finalize (PublishingRESTSupportXmlDocument * obj) -{ - PublishingRESTSupportXmlDocument * self; - xmlDoc* _tmp0_; -#line 554 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, PUBLISHING_REST_SUPPORT_TYPE_XML_DOCUMENT, PublishingRESTSupportXmlDocument); -#line 554 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_signal_handlers_destroy (self); -#line 567 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp0_ = self->priv->document; -#line 567 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - xmlFreeDoc (_tmp0_); -#line 5814 "RESTSupport.c" -} - - -GType -publishing_rest_support_xml_document_get_type (void) -{ - static volatile gsize publishing_rest_support_xml_document_type_id__volatile = 0; - if (g_once_init_enter (&publishing_rest_support_xml_document_type_id__volatile)) { - static const GTypeValueTable g_define_type_value_table = { publishing_rest_support_value_xml_document_init, publishing_rest_support_value_xml_document_free_value, publishing_rest_support_value_xml_document_copy_value, publishing_rest_support_value_xml_document_peek_pointer, "p", publishing_rest_support_value_xml_document_collect_value, "p", publishing_rest_support_value_xml_document_lcopy_value }; - static const GTypeInfo g_define_type_info = { sizeof (PublishingRESTSupportXmlDocumentClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) publishing_rest_support_xml_document_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PublishingRESTSupportXmlDocument), 0, (GInstanceInitFunc) publishing_rest_support_xml_document_instance_init, &g_define_type_value_table }; - static const GTypeFundamentalInfo g_define_type_fundamental_info = { (G_TYPE_FLAG_CLASSED | G_TYPE_FLAG_INSTANTIATABLE | G_TYPE_FLAG_DERIVABLE | G_TYPE_FLAG_DEEP_DERIVABLE) }; - GType publishing_rest_support_xml_document_type_id; - publishing_rest_support_xml_document_type_id = g_type_register_fundamental (g_type_fundamental_next (), "PublishingRESTSupportXmlDocument", &g_define_type_info, &g_define_type_fundamental_info, 0); - g_once_init_leave (&publishing_rest_support_xml_document_type_id__volatile, publishing_rest_support_xml_document_type_id); - } - return publishing_rest_support_xml_document_type_id__volatile; -} - - -gpointer -publishing_rest_support_xml_document_ref (gpointer instance) -{ - PublishingRESTSupportXmlDocument * self; - self = instance; -#line 554 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_atomic_int_inc (&self->ref_count); -#line 554 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - return instance; -#line 5843 "RESTSupport.c" -} - - -void -publishing_rest_support_xml_document_unref (gpointer instance) -{ - PublishingRESTSupportXmlDocument * self; - self = instance; -#line 554 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - if (g_atomic_int_dec_and_test (&self->ref_count)) { -#line 554 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - PUBLISHING_REST_SUPPORT_XML_DOCUMENT_GET_CLASS (self)->finalize (self); -#line 554 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_type_free_instance ((GTypeInstance *) self); -#line 5858 "RESTSupport.c" - } -} - - -gchar* -publishing_rest_support_decimal_entity_encode (const gchar* source) -{ - gchar* result = NULL; - GString* encoded_str_builder = NULL; - GString* _tmp0_; - gchar* current_char = NULL; - gchar* _tmp1_; - GString* _tmp20_; - const gchar* _tmp21_; - gchar* _tmp22_; -#line 640 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_return_val_if_fail (source != NULL, NULL); -#line 641 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp0_ = g_string_new (""); -#line 641 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - encoded_str_builder = _tmp0_; -#line 642 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp1_ = g_strdup (source); -#line 642 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - current_char = _tmp1_; -#line 643 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - while (TRUE) { -#line 5886 "RESTSupport.c" - gint current_char_value = 0; - const gchar* _tmp2_; - gint _tmp3_; - gboolean _tmp4_ = FALSE; - gboolean _tmp5_ = FALSE; - gboolean _tmp6_ = FALSE; - gint _tmp7_; - const gchar* _tmp17_; - const gchar* _tmp18_; - gchar* _tmp19_; -#line 644 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp2_ = current_char; -#line 644 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - current_char_value = (gint) g_utf8_get_char_validated (_tmp2_, (gssize) -1); -#line 647 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp3_ = current_char_value; -#line 647 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - if (_tmp3_ < 1) { -#line 648 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - break; -#line 5907 "RESTSupport.c" - } -#line 652 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp7_ = current_char_value; -#line 652 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - if (_tmp7_ < 128) { -#line 5913 "RESTSupport.c" - gint _tmp8_; -#line 652 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp8_ = current_char_value; -#line 652 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp6_ = _tmp8_ != ((gint) '&'); -#line 5919 "RESTSupport.c" - } else { -#line 652 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp6_ = FALSE; -#line 5923 "RESTSupport.c" - } -#line 652 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - if (_tmp6_) { -#line 5927 "RESTSupport.c" - gint _tmp9_; -#line 652 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp9_ = current_char_value; -#line 652 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp5_ = _tmp9_ != ((gint) '<'); -#line 5933 "RESTSupport.c" - } else { -#line 652 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp5_ = FALSE; -#line 5937 "RESTSupport.c" - } -#line 652 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - if (_tmp5_) { -#line 5941 "RESTSupport.c" - gint _tmp10_; -#line 653 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp10_ = current_char_value; -#line 653 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp4_ = _tmp10_ != ((gint) '>'); -#line 5947 "RESTSupport.c" - } else { -#line 652 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp4_ = FALSE; -#line 5951 "RESTSupport.c" - } -#line 652 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - if (_tmp4_) { -#line 5955 "RESTSupport.c" - GString* _tmp11_; - const gchar* _tmp12_; -#line 654 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp11_ = encoded_str_builder; -#line 654 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp12_ = current_char; -#line 654 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_string_append_unichar (_tmp11_, g_utf8_get_char_validated (_tmp12_, (gssize) -1)); -#line 5964 "RESTSupport.c" - } else { - GString* _tmp13_; - gint _tmp14_; - gchar* _tmp15_; - gchar* _tmp16_; -#line 656 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp13_ = encoded_str_builder; -#line 656 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp14_ = current_char_value; -#line 656 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp15_ = g_strdup_printf ("&#%d;", _tmp14_); -#line 656 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp16_ = _tmp15_; -#line 656 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_string_append (_tmp13_, _tmp16_); -#line 656 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _g_free0 (_tmp16_); -#line 5982 "RESTSupport.c" - } -#line 658 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp17_ = current_char; -#line 658 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp18_ = g_utf8_next_char (_tmp17_); -#line 658 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp19_ = g_strdup (_tmp18_); -#line 658 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _g_free0 (current_char); -#line 658 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - current_char = _tmp19_; -#line 5994 "RESTSupport.c" - } -#line 661 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp20_ = encoded_str_builder; -#line 661 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp21_ = _tmp20_->str; -#line 661 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp22_ = g_strdup (_tmp21_); -#line 661 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - result = _tmp22_; -#line 661 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _g_free0 (current_char); -#line 661 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _g_string_free0 (encoded_str_builder); -#line 661 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - return result; -#line 6010 "RESTSupport.c" -} - - -static SpitPublishingPublishable** -_vala_array_dup2 (SpitPublishingPublishable** self, - int length) -{ - SpitPublishingPublishable** result; - int i; -#line 674 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - result = g_new0 (SpitPublishingPublishable*, length + 1); -#line 674 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - for (i = 0; i < length; i++) { -#line 6024 "RESTSupport.c" - SpitPublishingPublishable* _tmp0_; -#line 674 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp0_ = _g_object_ref0 (self[i]); -#line 674 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - result[i] = _tmp0_; -#line 6030 "RESTSupport.c" - } -#line 674 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - return result; -#line 6034 "RESTSupport.c" -} - - -PublishingRESTSupportBatchUploader* -publishing_rest_support_batch_uploader_construct (GType object_type, - PublishingRESTSupportSession* session, - SpitPublishingPublishable** publishables, - int publishables_length1) -{ - PublishingRESTSupportBatchUploader* self = NULL; - SpitPublishingPublishable** _tmp0_; - gint _tmp0__length1; - PublishingRESTSupportSession* _tmp1_; -#line 673 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_return_val_if_fail (PUBLISHING_REST_SUPPORT_IS_SESSION (session), NULL); -#line 673 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - self = (PublishingRESTSupportBatchUploader*) g_type_create_instance (object_type); -#line 674 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp0_ = (publishables != NULL) ? _vala_array_dup2 (publishables, publishables_length1) : ((gpointer) publishables); -#line 674 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp0__length1 = publishables_length1; -#line 674 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - self->priv->publishables = (_vala_array_free (self->priv->publishables, self->priv->publishables_length1, (GDestroyNotify) g_object_unref), NULL); -#line 674 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - self->priv->publishables = _tmp0_; -#line 674 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - self->priv->publishables_length1 = _tmp0__length1; -#line 674 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - self->priv->_publishables_size_ = self->priv->publishables_length1; -#line 675 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp1_ = _publishing_rest_support_session_ref0 (session); -#line 675 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _publishing_rest_support_session_unref0 (self->priv->session); -#line 675 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - self->priv->session = _tmp1_; -#line 673 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - return self; -#line 6072 "RESTSupport.c" -} - - -static void -_publishing_rest_support_batch_uploader_on_chunk_transmitted_publishing_rest_support_transaction_chunk_transmitted (PublishingRESTSupportTransaction* _sender, - gint bytes_written_so_far, - gint total_bytes, - gpointer self) -{ -#line 696 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - publishing_rest_support_batch_uploader_on_chunk_transmitted ((PublishingRESTSupportBatchUploader*) self, bytes_written_so_far, total_bytes); -#line 6084 "RESTSupport.c" -} - - -static void -publishing_rest_support_batch_uploader_send_files (PublishingRESTSupportBatchUploader* self) -{ - gboolean stop = FALSE; - SpitPublishingPublishable** _tmp0_; - gint _tmp0__length1; - gboolean _tmp23_; - GError * _inner_error_ = NULL; -#line 678 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_return_if_fail (PUBLISHING_REST_SUPPORT_IS_BATCH_UPLOADER (self)); -#line 679 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - self->priv->current_file = 0; -#line 680 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - stop = FALSE; -#line 681 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp0_ = self->priv->publishables; -#line 681 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp0__length1 = self->priv->publishables_length1; -#line 6106 "RESTSupport.c" - { - SpitPublishingPublishable** publishable_collection = NULL; - gint publishable_collection_length1 = 0; - gint _publishable_collection_size_ = 0; - gint publishable_it = 0; -#line 681 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - publishable_collection = _tmp0_; -#line 681 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - publishable_collection_length1 = _tmp0__length1; -#line 681 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - for (publishable_it = 0; publishable_it < _tmp0__length1; publishable_it = publishable_it + 1) { -#line 6118 "RESTSupport.c" - SpitPublishingPublishable* _tmp1_; - SpitPublishingPublishable* publishable = NULL; -#line 681 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp1_ = _g_object_ref0 (publishable_collection[publishable_it]); -#line 681 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - publishable = _tmp1_; -#line 6125 "RESTSupport.c" - { - GFile* file = NULL; - SpitPublishingPublishable* _tmp2_; - GFile* _tmp3_; - GFile* _tmp4_; - gdouble fraction_complete = 0.0; - gint _tmp6_; - SpitPublishingPublishable** _tmp7_; - gint _tmp7__length1; - SpitPublishingProgressCallback _tmp8_; - void* _tmp8__target; - PublishingRESTSupportTransaction* txn = NULL; - SpitPublishingPublishable** _tmp12_; - gint _tmp12__length1; - gint _tmp13_; - SpitPublishingPublishable* _tmp14_; - PublishingRESTSupportTransaction* _tmp15_; - PublishingRESTSupportTransaction* _tmp16_; - PublishingRESTSupportTransaction* _tmp19_; - guint _tmp20_; - gboolean _tmp21_; - gint _tmp22_; -#line 682 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp2_ = publishable; -#line 682 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp3_ = spit_publishing_publishable_get_serialized_file (_tmp2_); -#line 682 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - file = _tmp3_; -#line 685 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp4_ = file; -#line 685 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - if (_tmp4_ == NULL) { -#line 6158 "RESTSupport.c" - gint _tmp5_; -#line 686 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp5_ = self->priv->current_file; -#line 686 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - self->priv->current_file = _tmp5_ + 1; -#line 687 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _g_object_unref0 (file); -#line 687 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _g_object_unref0 (publishable); -#line 687 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - continue; -#line 6170 "RESTSupport.c" - } -#line 690 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp6_ = self->priv->current_file; -#line 690 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp7_ = self->priv->publishables; -#line 690 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp7__length1 = self->priv->publishables_length1; -#line 690 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - fraction_complete = ((gdouble) _tmp6_) / _tmp7__length1; -#line 691 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp8_ = self->priv->status_updated; -#line 691 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp8__target = self->priv->status_updated_target; -#line 691 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - if (_tmp8_ != NULL) { -#line 6186 "RESTSupport.c" - SpitPublishingProgressCallback _tmp9_; - void* _tmp9__target; - gint _tmp10_; - gdouble _tmp11_; -#line 692 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp9_ = self->priv->status_updated; -#line 692 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp9__target = self->priv->status_updated_target; -#line 692 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp10_ = self->priv->current_file; -#line 692 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp11_ = fraction_complete; -#line 692 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp9_ (_tmp10_ + 1, _tmp11_, _tmp9__target); -#line 6201 "RESTSupport.c" - } -#line 694 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp12_ = self->priv->publishables; -#line 694 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp12__length1 = self->priv->publishables_length1; -#line 694 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp13_ = self->priv->current_file; -#line 694 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp14_ = _tmp12_[_tmp13_]; -#line 694 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp15_ = publishing_rest_support_batch_uploader_create_transaction (self, _tmp14_); -#line 694 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - txn = _tmp15_; -#line 696 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp16_ = txn; -#line 696 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_signal_connect (_tmp16_, "chunk-transmitted", (GCallback) _publishing_rest_support_batch_uploader_on_chunk_transmitted_publishing_rest_support_transaction_chunk_transmitted, self); -#line 6219 "RESTSupport.c" - { - PublishingRESTSupportTransaction* _tmp17_; -#line 699 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp17_ = txn; -#line 699 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - publishing_rest_support_transaction_execute (_tmp17_, &_inner_error_); -#line 699 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 699 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - if (_inner_error_->domain == SPIT_PUBLISHING_PUBLISHING_ERROR) { -#line 6230 "RESTSupport.c" - goto __catch3_spit_publishing_publishing_error; - } -#line 699 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _publishing_rest_support_transaction_unref0 (txn); -#line 699 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _g_object_unref0 (file); -#line 699 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _g_object_unref0 (publishable); -#line 699 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 699 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_clear_error (&_inner_error_); -#line 699 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - return; -#line 6245 "RESTSupport.c" - } - } - goto __finally3; - __catch3_spit_publishing_publishing_error: - { - GError* err = NULL; - GError* _tmp18_; -#line 698 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - err = _inner_error_; -#line 698 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _inner_error_ = NULL; -#line 701 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp18_ = err; -#line 701 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_signal_emit (self, publishing_rest_support_batch_uploader_signals[PUBLISHING_REST_SUPPORT_BATCH_UPLOADER_UPLOAD_ERROR_SIGNAL], 0, _tmp18_); -#line 702 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - stop = TRUE; -#line 698 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _g_error_free0 (err); -#line 6265 "RESTSupport.c" - } - __finally3: -#line 698 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 698 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _publishing_rest_support_transaction_unref0 (txn); -#line 698 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _g_object_unref0 (file); -#line 698 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _g_object_unref0 (publishable); -#line 698 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 698 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_clear_error (&_inner_error_); -#line 698 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - return; -#line 6282 "RESTSupport.c" - } -#line 705 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp19_ = txn; -#line 705 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_signal_parse_name ("chunk-transmitted", PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, &_tmp20_, NULL, FALSE); -#line 705 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_signal_handlers_disconnect_matched (_tmp19_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp20_, 0, NULL, (GCallback) _publishing_rest_support_batch_uploader_on_chunk_transmitted_publishing_rest_support_transaction_chunk_transmitted, self); -#line 707 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp21_ = stop; -#line 707 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - if (_tmp21_) { -#line 708 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _publishing_rest_support_transaction_unref0 (txn); -#line 708 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _g_object_unref0 (file); -#line 708 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _g_object_unref0 (publishable); -#line 708 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - break; -#line 6302 "RESTSupport.c" - } -#line 710 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp22_ = self->priv->current_file; -#line 710 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - self->priv->current_file = _tmp22_ + 1; -#line 681 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _publishing_rest_support_transaction_unref0 (txn); -#line 681 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _g_object_unref0 (file); -#line 681 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _g_object_unref0 (publishable); -#line 6314 "RESTSupport.c" - } - } - } -#line 713 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp23_ = stop; -#line 713 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - if (!_tmp23_) { -#line 6322 "RESTSupport.c" - gint _tmp24_; -#line 714 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp24_ = self->priv->current_file; -#line 714 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_signal_emit (self, publishing_rest_support_batch_uploader_signals[PUBLISHING_REST_SUPPORT_BATCH_UPLOADER_UPLOAD_COMPLETE_SIGNAL], 0, _tmp24_); -#line 6328 "RESTSupport.c" - } -} - - -static void -publishing_rest_support_batch_uploader_on_chunk_transmitted (PublishingRESTSupportBatchUploader* self, - gint bytes_written_so_far, - gint total_bytes) -{ - gdouble file_span = 0.0; - SpitPublishingPublishable** _tmp0_; - gint _tmp0__length1; - gdouble this_file_fraction_complete = 0.0; - gdouble fraction_complete = 0.0; - gint _tmp1_; - gdouble _tmp2_; - gdouble _tmp3_; - gdouble _tmp4_; - SpitPublishingProgressCallback _tmp5_; - void* _tmp5__target; -#line 717 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_return_if_fail (PUBLISHING_REST_SUPPORT_IS_BATCH_UPLOADER (self)); -#line 718 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp0_ = self->priv->publishables; -#line 718 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp0__length1 = self->priv->publishables_length1; -#line 718 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - file_span = 1.0 / _tmp0__length1; -#line 719 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - this_file_fraction_complete = ((gdouble) bytes_written_so_far) / total_bytes; -#line 720 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp1_ = self->priv->current_file; -#line 720 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp2_ = file_span; -#line 720 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp3_ = this_file_fraction_complete; -#line 720 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp4_ = file_span; -#line 720 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - fraction_complete = (_tmp1_ * _tmp2_) + (_tmp3_ * _tmp4_); -#line 723 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp5_ = self->priv->status_updated; -#line 723 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp5__target = self->priv->status_updated_target; -#line 723 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - if (_tmp5_ != NULL) { -#line 6375 "RESTSupport.c" - SpitPublishingProgressCallback _tmp6_; - void* _tmp6__target; - gint _tmp7_; - gdouble _tmp8_; -#line 724 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp6_ = self->priv->status_updated; -#line 724 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp6__target = self->priv->status_updated_target; -#line 724 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp7_ = self->priv->current_file; -#line 724 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp8_ = fraction_complete; -#line 724 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp6_ (_tmp7_ + 1, _tmp8_, _tmp6__target); -#line 6390 "RESTSupport.c" - } -} - - -PublishingRESTSupportSession* -publishing_rest_support_batch_uploader_get_session (PublishingRESTSupportBatchUploader* self) -{ - PublishingRESTSupportSession* result = NULL; - PublishingRESTSupportSession* _tmp0_; - PublishingRESTSupportSession* _tmp1_; -#line 727 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_return_val_if_fail (PUBLISHING_REST_SUPPORT_IS_BATCH_UPLOADER (self), NULL); -#line 728 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp0_ = self->priv->session; -#line 728 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp1_ = _publishing_rest_support_session_ref0 (_tmp0_); -#line 728 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - result = _tmp1_; -#line 728 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - return result; -#line 6411 "RESTSupport.c" -} - - -SpitPublishingPublishable* -publishing_rest_support_batch_uploader_get_current_publishable (PublishingRESTSupportBatchUploader* self) -{ - SpitPublishingPublishable* result = NULL; - SpitPublishingPublishable** _tmp0_; - gint _tmp0__length1; - gint _tmp1_; - SpitPublishingPublishable* _tmp2_; - SpitPublishingPublishable* _tmp3_; -#line 731 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_return_val_if_fail (PUBLISHING_REST_SUPPORT_IS_BATCH_UPLOADER (self), NULL); -#line 732 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp0_ = self->priv->publishables; -#line 732 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp0__length1 = self->priv->publishables_length1; -#line 732 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp1_ = self->priv->current_file; -#line 732 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp2_ = _tmp0_[_tmp1_]; -#line 732 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp3_ = _g_object_ref0 (_tmp2_); -#line 732 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - result = _tmp3_; -#line 732 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - return result; -#line 6440 "RESTSupport.c" -} - - -static PublishingRESTSupportTransaction* -publishing_rest_support_batch_uploader_real_create_transaction (PublishingRESTSupportBatchUploader* self, - SpitPublishingPublishable* publishable) -{ -#line 735 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_critical ("Type `%s' does not implement abstract method `publishing_rest_support_batch_uploader_create_transaction'", g_type_name (G_TYPE_FROM_INSTANCE (self))); -#line 735 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - return NULL; -#line 6452 "RESTSupport.c" -} - - -PublishingRESTSupportTransaction* -publishing_rest_support_batch_uploader_create_transaction (PublishingRESTSupportBatchUploader* self, - SpitPublishingPublishable* publishable) -{ -#line 735 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_return_val_if_fail (PUBLISHING_REST_SUPPORT_IS_BATCH_UPLOADER (self), NULL); -#line 735 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - return PUBLISHING_REST_SUPPORT_BATCH_UPLOADER_GET_CLASS (self)->create_transaction (self, publishable); -#line 6464 "RESTSupport.c" -} - - -void -publishing_rest_support_batch_uploader_upload (PublishingRESTSupportBatchUploader* self, - SpitPublishingProgressCallback status_updated, - void* status_updated_target) -{ - SpitPublishingPublishable** _tmp0_; - gint _tmp0__length1; -#line 737 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_return_if_fail (PUBLISHING_REST_SUPPORT_IS_BATCH_UPLOADER (self)); -#line 738 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - self->priv->status_updated = status_updated; -#line 738 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - self->priv->status_updated_target = status_updated_target; -#line 740 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp0_ = self->priv->publishables; -#line 740 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp0__length1 = self->priv->publishables_length1; -#line 740 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - if (_tmp0__length1 > 0) { -#line 741 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - publishing_rest_support_batch_uploader_send_files (self); -#line 6489 "RESTSupport.c" - } -} - - -static void -publishing_rest_support_value_batch_uploader_init (GValue* value) -{ -#line 664 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - value->data[0].v_pointer = NULL; -#line 6499 "RESTSupport.c" -} - - -static void -publishing_rest_support_value_batch_uploader_free_value (GValue* value) -{ -#line 664 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - if (value->data[0].v_pointer) { -#line 664 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - publishing_rest_support_batch_uploader_unref (value->data[0].v_pointer); -#line 6510 "RESTSupport.c" - } -} - - -static void -publishing_rest_support_value_batch_uploader_copy_value (const GValue* src_value, - GValue* dest_value) -{ -#line 664 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - if (src_value->data[0].v_pointer) { -#line 664 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - dest_value->data[0].v_pointer = publishing_rest_support_batch_uploader_ref (src_value->data[0].v_pointer); -#line 6523 "RESTSupport.c" - } else { -#line 664 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - dest_value->data[0].v_pointer = NULL; -#line 6527 "RESTSupport.c" - } -} - - -static gpointer -publishing_rest_support_value_batch_uploader_peek_pointer (const GValue* value) -{ -#line 664 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - return value->data[0].v_pointer; -#line 6537 "RESTSupport.c" -} - - -static gchar* -publishing_rest_support_value_batch_uploader_collect_value (GValue* value, - guint n_collect_values, - GTypeCValue* collect_values, - guint collect_flags) -{ -#line 664 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - if (collect_values[0].v_pointer) { -#line 6549 "RESTSupport.c" - PublishingRESTSupportBatchUploader * object; - object = collect_values[0].v_pointer; -#line 664 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - if (object->parent_instance.g_class == NULL) { -#line 664 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL); -#line 6556 "RESTSupport.c" - } else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) { -#line 664 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - return g_strconcat ("invalid object type `", g_type_name (G_TYPE_FROM_INSTANCE (object)), "' for value type `", G_VALUE_TYPE_NAME (value), "'", NULL); -#line 6560 "RESTSupport.c" - } -#line 664 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - value->data[0].v_pointer = publishing_rest_support_batch_uploader_ref (object); -#line 6564 "RESTSupport.c" - } else { -#line 664 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - value->data[0].v_pointer = NULL; -#line 6568 "RESTSupport.c" - } -#line 664 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - return NULL; -#line 6572 "RESTSupport.c" -} - - -static gchar* -publishing_rest_support_value_batch_uploader_lcopy_value (const GValue* value, - guint n_collect_values, - GTypeCValue* collect_values, - guint collect_flags) -{ - PublishingRESTSupportBatchUploader ** object_p; - object_p = collect_values[0].v_pointer; -#line 664 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - if (!object_p) { -#line 664 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value)); -#line 6588 "RESTSupport.c" - } -#line 664 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - if (!value->data[0].v_pointer) { -#line 664 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - *object_p = NULL; -#line 6594 "RESTSupport.c" - } else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) { -#line 664 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - *object_p = value->data[0].v_pointer; -#line 6598 "RESTSupport.c" - } else { -#line 664 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - *object_p = publishing_rest_support_batch_uploader_ref (value->data[0].v_pointer); -#line 6602 "RESTSupport.c" - } -#line 664 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - return NULL; -#line 6606 "RESTSupport.c" -} - - -GParamSpec* -publishing_rest_support_param_spec_batch_uploader (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags) -{ - PublishingRESTSupportParamSpecBatchUploader* spec; -#line 664 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_return_val_if_fail (g_type_is_a (object_type, PUBLISHING_REST_SUPPORT_TYPE_BATCH_UPLOADER), NULL); -#line 664 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags); -#line 664 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - G_PARAM_SPEC (spec)->value_type = object_type; -#line 664 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - return G_PARAM_SPEC (spec); -#line 6626 "RESTSupport.c" -} - - -gpointer -publishing_rest_support_value_get_batch_uploader (const GValue* value) -{ -#line 664 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, PUBLISHING_REST_SUPPORT_TYPE_BATCH_UPLOADER), NULL); -#line 664 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - return value->data[0].v_pointer; -#line 6637 "RESTSupport.c" -} - - -void -publishing_rest_support_value_set_batch_uploader (GValue* value, - gpointer v_object) -{ - PublishingRESTSupportBatchUploader * old; -#line 664 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, PUBLISHING_REST_SUPPORT_TYPE_BATCH_UPLOADER)); -#line 664 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - old = value->data[0].v_pointer; -#line 664 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - if (v_object) { -#line 664 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, PUBLISHING_REST_SUPPORT_TYPE_BATCH_UPLOADER)); -#line 664 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value))); -#line 664 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - value->data[0].v_pointer = v_object; -#line 664 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - publishing_rest_support_batch_uploader_ref (value->data[0].v_pointer); -#line 6660 "RESTSupport.c" - } else { -#line 664 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - value->data[0].v_pointer = NULL; -#line 6664 "RESTSupport.c" - } -#line 664 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - if (old) { -#line 664 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - publishing_rest_support_batch_uploader_unref (old); -#line 6670 "RESTSupport.c" - } -} - - -void -publishing_rest_support_value_take_batch_uploader (GValue* value, - gpointer v_object) -{ - PublishingRESTSupportBatchUploader * old; -#line 664 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, PUBLISHING_REST_SUPPORT_TYPE_BATCH_UPLOADER)); -#line 664 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - old = value->data[0].v_pointer; -#line 664 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - if (v_object) { -#line 664 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, PUBLISHING_REST_SUPPORT_TYPE_BATCH_UPLOADER)); -#line 664 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value))); -#line 664 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - value->data[0].v_pointer = v_object; -#line 6692 "RESTSupport.c" - } else { -#line 664 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - value->data[0].v_pointer = NULL; -#line 6696 "RESTSupport.c" - } -#line 664 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - if (old) { -#line 664 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - publishing_rest_support_batch_uploader_unref (old); -#line 6702 "RESTSupport.c" - } -} - - -static void -publishing_rest_support_batch_uploader_class_init (PublishingRESTSupportBatchUploaderClass * klass) -{ -#line 664 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - publishing_rest_support_batch_uploader_parent_class = g_type_class_peek_parent (klass); -#line 664 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - ((PublishingRESTSupportBatchUploaderClass *) klass)->finalize = publishing_rest_support_batch_uploader_finalize; -#line 664 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_type_class_add_private (klass, sizeof (PublishingRESTSupportBatchUploaderPrivate)); -#line 664 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - ((PublishingRESTSupportBatchUploaderClass *) klass)->create_transaction = (PublishingRESTSupportTransaction* (*) (PublishingRESTSupportBatchUploader *, SpitPublishingPublishable*)) publishing_rest_support_batch_uploader_real_create_transaction; -#line 664 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - publishing_rest_support_batch_uploader_signals[PUBLISHING_REST_SUPPORT_BATCH_UPLOADER_UPLOAD_COMPLETE_SIGNAL] = g_signal_new ("upload-complete", PUBLISHING_REST_SUPPORT_TYPE_BATCH_UPLOADER, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_marshal_VOID__INT, G_TYPE_NONE, 1, G_TYPE_INT); -#line 664 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - publishing_rest_support_batch_uploader_signals[PUBLISHING_REST_SUPPORT_BATCH_UPLOADER_UPLOAD_ERROR_SIGNAL] = g_signal_new ("upload-error", PUBLISHING_REST_SUPPORT_TYPE_BATCH_UPLOADER, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_marshal_VOID__POINTER, G_TYPE_NONE, 1, G_TYPE_POINTER); -#line 6722 "RESTSupport.c" -} - - -static void -publishing_rest_support_batch_uploader_instance_init (PublishingRESTSupportBatchUploader * self) -{ -#line 664 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - self->priv = PUBLISHING_REST_SUPPORT_BATCH_UPLOADER_GET_PRIVATE (self); -#line 665 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - self->priv->current_file = 0; -#line 666 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - self->priv->publishables = NULL; -#line 666 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - self->priv->publishables_length1 = 0; -#line 666 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - self->priv->_publishables_size_ = self->priv->publishables_length1; -#line 667 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - self->priv->session = NULL; -#line 668 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - self->priv->status_updated = NULL; -#line 668 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - self->priv->status_updated_target = self; -#line 664 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - self->ref_count = 1; -#line 6747 "RESTSupport.c" -} - - -static void -publishing_rest_support_batch_uploader_finalize (PublishingRESTSupportBatchUploader * obj) -{ - PublishingRESTSupportBatchUploader * self; -#line 664 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, PUBLISHING_REST_SUPPORT_TYPE_BATCH_UPLOADER, PublishingRESTSupportBatchUploader); -#line 664 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_signal_handlers_destroy (self); -#line 666 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - self->priv->publishables = (_vala_array_free (self->priv->publishables, self->priv->publishables_length1, (GDestroyNotify) g_object_unref), NULL); -#line 667 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _publishing_rest_support_session_unref0 (self->priv->session); -#line 6763 "RESTSupport.c" -} - - -GType -publishing_rest_support_batch_uploader_get_type (void) -{ - static volatile gsize publishing_rest_support_batch_uploader_type_id__volatile = 0; - if (g_once_init_enter (&publishing_rest_support_batch_uploader_type_id__volatile)) { - static const GTypeValueTable g_define_type_value_table = { publishing_rest_support_value_batch_uploader_init, publishing_rest_support_value_batch_uploader_free_value, publishing_rest_support_value_batch_uploader_copy_value, publishing_rest_support_value_batch_uploader_peek_pointer, "p", publishing_rest_support_value_batch_uploader_collect_value, "p", publishing_rest_support_value_batch_uploader_lcopy_value }; - static const GTypeInfo g_define_type_info = { sizeof (PublishingRESTSupportBatchUploaderClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) publishing_rest_support_batch_uploader_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PublishingRESTSupportBatchUploader), 0, (GInstanceInitFunc) publishing_rest_support_batch_uploader_instance_init, &g_define_type_value_table }; - static const GTypeFundamentalInfo g_define_type_fundamental_info = { (G_TYPE_FLAG_CLASSED | G_TYPE_FLAG_INSTANTIATABLE | G_TYPE_FLAG_DERIVABLE | G_TYPE_FLAG_DEEP_DERIVABLE) }; - GType publishing_rest_support_batch_uploader_type_id; - publishing_rest_support_batch_uploader_type_id = g_type_register_fundamental (g_type_fundamental_next (), "PublishingRESTSupportBatchUploader", &g_define_type_info, &g_define_type_fundamental_info, G_TYPE_FLAG_ABSTRACT); - g_once_init_leave (&publishing_rest_support_batch_uploader_type_id__volatile, publishing_rest_support_batch_uploader_type_id); - } - return publishing_rest_support_batch_uploader_type_id__volatile; -} - - -gpointer -publishing_rest_support_batch_uploader_ref (gpointer instance) -{ - PublishingRESTSupportBatchUploader * self; - self = instance; -#line 664 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_atomic_int_inc (&self->ref_count); -#line 664 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - return instance; -#line 6792 "RESTSupport.c" -} - - -void -publishing_rest_support_batch_uploader_unref (gpointer instance) -{ - PublishingRESTSupportBatchUploader * self; - self = instance; -#line 664 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - if (g_atomic_int_dec_and_test (&self->ref_count)) { -#line 664 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - PUBLISHING_REST_SUPPORT_BATCH_UPLOADER_GET_CLASS (self)->finalize (self); -#line 664 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_type_free_instance ((GTypeInstance *) self); -#line 6807 "RESTSupport.c" - } -} - - -static gunichar -string_get_char (const gchar* self, - glong index) -{ - gunichar result = 0U; -#line 1154 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - g_return_val_if_fail (self != NULL, 0U); -#line 1155 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - result = g_utf8_get_char (((gchar*) self) + index); -#line 1155 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - return result; -#line 6823 "RESTSupport.c" -} - - -gchar* -publishing_rest_support_asciify_string (const gchar* s) -{ - gchar* result = NULL; - gchar* t = NULL; - gchar* _tmp0_; - GString* b = NULL; - GString* _tmp1_; - GString* _tmp11_; - const gchar* _tmp12_; - gchar* _tmp13_; -#line 748 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_return_val_if_fail (s != NULL, NULL); -#line 749 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp0_ = g_utf8_normalize (s, (gssize) -1, G_NORMALIZE_DEFAULT); -#line 749 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - t = _tmp0_; -#line 751 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp1_ = g_string_new (""); -#line 751 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - b = _tmp1_; -#line 6848 "RESTSupport.c" - { - const gchar* u = NULL; - const gchar* _tmp2_; -#line 752 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp2_ = t; -#line 752 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - u = _tmp2_; -#line 6856 "RESTSupport.c" - { - gboolean _tmp3_ = FALSE; -#line 752 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp3_ = TRUE; -#line 752 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - while (TRUE) { -#line 6863 "RESTSupport.c" - const gchar* _tmp6_; - gunichar c = 0U; - const gchar* _tmp7_; - gunichar _tmp8_; -#line 752 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - if (!_tmp3_) { -#line 6870 "RESTSupport.c" - const gchar* _tmp4_; - const gchar* _tmp5_; -#line 752 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp4_ = u; -#line 752 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp5_ = g_utf8_next_char (_tmp4_); -#line 752 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - u = _tmp5_; -#line 6879 "RESTSupport.c" - } -#line 752 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp3_ = FALSE; -#line 752 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp6_ = u; -#line 752 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - if (!(string_get_char (_tmp6_, (glong) 0) != ((gunichar) 0))) { -#line 752 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - break; -#line 6889 "RESTSupport.c" - } -#line 753 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp7_ = u; -#line 753 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - c = string_get_char (_tmp7_, (glong) 0); -#line 754 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp8_ = c; -#line 754 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - if (((gint) _tmp8_) < 128) { -#line 6899 "RESTSupport.c" - GString* _tmp9_; - gunichar _tmp10_; -#line 755 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp9_ = b; -#line 755 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp10_ = c; -#line 755 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_string_append_unichar (_tmp9_, _tmp10_); -#line 6908 "RESTSupport.c" - } - } - } - } -#line 758 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp11_ = b; -#line 758 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp12_ = _tmp11_->str; -#line 758 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp13_ = g_strdup (_tmp12_); -#line 758 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - result = _tmp13_; -#line 758 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _g_string_free0 (b); -#line 758 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _g_free0 (t); -#line 758 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - return result; -#line 6927 "RESTSupport.c" -} - - -static gchar* -publishing_rest_support_google_session_real_get_user_name (PublishingRESTSupportGoogleSession* self) -{ -#line 762 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_critical ("Type `%s' does not implement abstract method `publishing_rest_support_google_session_get_user_name'", g_type_name (G_TYPE_FROM_INSTANCE (self))); -#line 762 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - return NULL; -#line 6938 "RESTSupport.c" -} - - -gchar* -publishing_rest_support_google_session_get_user_name (PublishingRESTSupportGoogleSession* self) -{ -#line 762 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_return_val_if_fail (PUBLISHING_REST_SUPPORT_IS_GOOGLE_SESSION (self), NULL); -#line 762 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - return PUBLISHING_REST_SUPPORT_GOOGLE_SESSION_GET_CLASS (self)->get_user_name (self); -#line 6949 "RESTSupport.c" -} - - -static gchar* -publishing_rest_support_google_session_real_get_access_token (PublishingRESTSupportGoogleSession* self) -{ -#line 763 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_critical ("Type `%s' does not implement abstract method `publishing_rest_support_google_session_get_access_token'", g_type_name (G_TYPE_FROM_INSTANCE (self))); -#line 763 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - return NULL; -#line 6960 "RESTSupport.c" -} - - -gchar* -publishing_rest_support_google_session_get_access_token (PublishingRESTSupportGoogleSession* self) -{ -#line 763 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_return_val_if_fail (PUBLISHING_REST_SUPPORT_IS_GOOGLE_SESSION (self), NULL); -#line 763 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - return PUBLISHING_REST_SUPPORT_GOOGLE_SESSION_GET_CLASS (self)->get_access_token (self); -#line 6971 "RESTSupport.c" -} - - -static void -publishing_rest_support_google_session_real_deauthenticate (PublishingRESTSupportGoogleSession* self) -{ -#line 764 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_critical ("Type `%s' does not implement abstract method `publishing_rest_support_google_session_deauthenticate'", g_type_name (G_TYPE_FROM_INSTANCE (self))); -#line 764 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - return; -#line 6982 "RESTSupport.c" -} - - -void -publishing_rest_support_google_session_deauthenticate (PublishingRESTSupportGoogleSession* self) -{ -#line 764 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_return_if_fail (PUBLISHING_REST_SUPPORT_IS_GOOGLE_SESSION (self)); -#line 764 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - PUBLISHING_REST_SUPPORT_GOOGLE_SESSION_GET_CLASS (self)->deauthenticate (self); -#line 6993 "RESTSupport.c" -} - - -PublishingRESTSupportGoogleSession* -publishing_rest_support_google_session_construct (GType object_type) -{ - PublishingRESTSupportGoogleSession* self = NULL; -#line 761 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - self = (PublishingRESTSupportGoogleSession*) publishing_rest_support_session_construct (object_type, NULL); -#line 761 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - return self; -#line 7005 "RESTSupport.c" -} - - -static void -publishing_rest_support_google_session_class_init (PublishingRESTSupportGoogleSessionClass * klass) -{ -#line 761 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - publishing_rest_support_google_session_parent_class = g_type_class_peek_parent (klass); -#line 761 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - ((PublishingRESTSupportGoogleSessionClass *) klass)->get_user_name = (gchar* (*) (PublishingRESTSupportGoogleSession *)) publishing_rest_support_google_session_real_get_user_name; -#line 761 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - ((PublishingRESTSupportGoogleSessionClass *) klass)->get_access_token = (gchar* (*) (PublishingRESTSupportGoogleSession *)) publishing_rest_support_google_session_real_get_access_token; -#line 761 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - ((PublishingRESTSupportGoogleSessionClass *) klass)->deauthenticate = (void (*) (PublishingRESTSupportGoogleSession *)) publishing_rest_support_google_session_real_deauthenticate; -#line 7020 "RESTSupport.c" -} - - -static void -publishing_rest_support_google_session_instance_init (PublishingRESTSupportGoogleSession * self) -{ -} - - -GType -publishing_rest_support_google_session_get_type (void) -{ - static volatile gsize publishing_rest_support_google_session_type_id__volatile = 0; - if (g_once_init_enter (&publishing_rest_support_google_session_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (PublishingRESTSupportGoogleSessionClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) publishing_rest_support_google_session_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PublishingRESTSupportGoogleSession), 0, (GInstanceInitFunc) publishing_rest_support_google_session_instance_init, NULL }; - GType publishing_rest_support_google_session_type_id; - publishing_rest_support_google_session_type_id = g_type_register_static (PUBLISHING_REST_SUPPORT_TYPE_SESSION, "PublishingRESTSupportGoogleSession", &g_define_type_info, G_TYPE_FLAG_ABSTRACT); - g_once_init_leave (&publishing_rest_support_google_session_type_id__volatile, publishing_rest_support_google_session_type_id); - } - return publishing_rest_support_google_session_type_id__volatile; -} - - -static void -_publishing_rest_support_google_publisher_on_authenticator_authenticated_spit_publishing_authenticator_authenticated (SpitPublishingAuthenticator* _sender, - gpointer self) -{ -#line 831 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - publishing_rest_support_google_publisher_on_authenticator_authenticated ((PublishingRESTSupportGooglePublisher*) self); -#line 7050 "RESTSupport.c" -} - - -PublishingRESTSupportGooglePublisher* -publishing_rest_support_google_publisher_construct (GType object_type, - SpitPublishingService* service, - SpitPublishingPluginHost* host, - const gchar* scope) -{ - PublishingRESTSupportGooglePublisher * self = NULL; - gchar* _tmp0_; - PublishingRESTSupportGooglePublisherGoogleSessionImpl* _tmp1_; - SpitPublishingAuthenticator* _tmp2_; - SpitPublishingAuthenticator* _tmp3_; -#line 824 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_return_val_if_fail (SPIT_PUBLISHING_IS_SERVICE (service), NULL); -#line 824 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_return_val_if_fail (SPIT_PUBLISHING_IS_PLUGIN_HOST (host), NULL); -#line 824 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_return_val_if_fail (scope != NULL, NULL); -#line 824 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - self = (PublishingRESTSupportGooglePublisher*) g_object_new (object_type, NULL); -#line 826 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp0_ = g_strdup (scope); -#line 826 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _g_free0 (self->priv->scope); -#line 826 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - self->priv->scope = _tmp0_; -#line 827 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp1_ = publishing_rest_support_google_publisher_google_session_impl_new (); -#line 827 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _publishing_rest_support_session_unref0 (self->priv->session); -#line 827 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - self->priv->session = _tmp1_; -#line 828 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - self->priv->service = service; -#line 829 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - self->priv->host = host; -#line 830 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp2_ = publishing_rest_support_google_publisher_get_authenticator (self); -#line 830 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _g_object_unref0 (self->priv->authenticator); -#line 830 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - self->priv->authenticator = _tmp2_; -#line 831 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp3_ = self->priv->authenticator; -#line 831 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_signal_connect_object (_tmp3_, "authenticated", (GCallback) _publishing_rest_support_google_publisher_on_authenticator_authenticated_spit_publishing_authenticator_authenticated, self, 0); -#line 824 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - return self; -#line 7101 "RESTSupport.c" -} - - -static SpitPublishingAuthenticator* -publishing_rest_support_google_publisher_real_get_authenticator (PublishingRESTSupportGooglePublisher* self) -{ -#line 834 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_critical ("Type `%s' does not implement abstract method `publishing_rest_support_google_publisher_get_authenticator'", g_type_name (G_TYPE_FROM_INSTANCE (self))); -#line 834 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - return NULL; -#line 7112 "RESTSupport.c" -} - - -SpitPublishingAuthenticator* -publishing_rest_support_google_publisher_get_authenticator (PublishingRESTSupportGooglePublisher* self) -{ -#line 834 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_return_val_if_fail (PUBLISHING_REST_SUPPORT_IS_GOOGLE_PUBLISHER (self), NULL); -#line 834 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - return PUBLISHING_REST_SUPPORT_GOOGLE_PUBLISHER_GET_CLASS (self)->get_authenticator (self); -#line 7123 "RESTSupport.c" -} - - -SpitPublishingPluginHost* -publishing_rest_support_google_publisher_get_host (PublishingRESTSupportGooglePublisher* self) -{ - SpitPublishingPluginHost* result = NULL; - SpitPublishingPluginHost* _tmp0_; -#line 836 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_return_val_if_fail (PUBLISHING_REST_SUPPORT_IS_GOOGLE_PUBLISHER (self), NULL); -#line 837 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp0_ = self->priv->host; -#line 837 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - result = _tmp0_; -#line 837 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - return result; -#line 7140 "RESTSupport.c" -} - - -PublishingRESTSupportGoogleSession* -publishing_rest_support_google_publisher_get_session (PublishingRESTSupportGooglePublisher* self) -{ - PublishingRESTSupportGoogleSession* result = NULL; - PublishingRESTSupportGooglePublisherGoogleSessionImpl* _tmp0_; - PublishingRESTSupportGoogleSession* _tmp1_; -#line 840 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_return_val_if_fail (PUBLISHING_REST_SUPPORT_IS_GOOGLE_PUBLISHER (self), NULL); -#line 841 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp0_ = self->priv->session; -#line 841 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp1_ = _publishing_rest_support_session_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, PUBLISHING_REST_SUPPORT_TYPE_GOOGLE_SESSION, PublishingRESTSupportGoogleSession)); -#line 841 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - result = _tmp1_; -#line 841 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - return result; -#line 7160 "RESTSupport.c" -} - - -static void -publishing_rest_support_google_publisher_real_on_login_flow_complete (PublishingRESTSupportGooglePublisher* self) -{ -#line 844 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_critical ("Type `%s' does not implement abstract method `publishing_rest_support_google_publisher_on_login_flow_complete'", g_type_name (G_TYPE_FROM_INSTANCE (self))); -#line 844 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - return; -#line 7171 "RESTSupport.c" -} - - -void -publishing_rest_support_google_publisher_on_login_flow_complete (PublishingRESTSupportGooglePublisher* self) -{ -#line 844 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_return_if_fail (PUBLISHING_REST_SUPPORT_IS_GOOGLE_PUBLISHER (self)); -#line 844 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - PUBLISHING_REST_SUPPORT_GOOGLE_PUBLISHER_GET_CLASS (self)->on_login_flow_complete (self); -#line 7182 "RESTSupport.c" -} - - -static void -publishing_rest_support_google_publisher_real_do_logout (PublishingRESTSupportGooglePublisher* self) -{ -#line 846 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_critical ("Type `%s' does not implement abstract method `publishing_rest_support_google_publisher_do_logout'", g_type_name (G_TYPE_FROM_INSTANCE (self))); -#line 846 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - return; -#line 7193 "RESTSupport.c" -} - - -void -publishing_rest_support_google_publisher_do_logout (PublishingRESTSupportGooglePublisher* self) -{ -#line 846 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_return_if_fail (PUBLISHING_REST_SUPPORT_IS_GOOGLE_PUBLISHER (self)); -#line 846 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - PUBLISHING_REST_SUPPORT_GOOGLE_PUBLISHER_GET_CLASS (self)->do_logout (self); -#line 7204 "RESTSupport.c" -} - - -static gboolean -publishing_rest_support_google_publisher_real_is_running (PublishingRESTSupportGooglePublisher* self) -{ - gboolean _tmp0_ = FALSE; -#line 848 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_critical ("Type `%s' does not implement abstract method `publishing_rest_support_google_publisher_is_running'", g_type_name (G_TYPE_FROM_INSTANCE (self))); -#line 848 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - return _tmp0_; -#line 7216 "RESTSupport.c" -} - - -gboolean -publishing_rest_support_google_publisher_is_running (PublishingRESTSupportGooglePublisher* self) -{ -#line 848 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_return_val_if_fail (PUBLISHING_REST_SUPPORT_IS_GOOGLE_PUBLISHER (self), FALSE); -#line 848 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - return PUBLISHING_REST_SUPPORT_GOOGLE_PUBLISHER_GET_CLASS (self)->is_running (self); -#line 7227 "RESTSupport.c" -} - - -static void -publishing_rest_support_google_publisher_real_start (PublishingRESTSupportGooglePublisher* self) -{ -#line 850 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_critical ("Type `%s' does not implement abstract method `publishing_rest_support_google_publisher_start'", g_type_name (G_TYPE_FROM_INSTANCE (self))); -#line 850 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - return; -#line 7238 "RESTSupport.c" -} - - -void -publishing_rest_support_google_publisher_start (PublishingRESTSupportGooglePublisher* self) -{ -#line 850 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_return_if_fail (PUBLISHING_REST_SUPPORT_IS_GOOGLE_PUBLISHER (self)); -#line 850 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - PUBLISHING_REST_SUPPORT_GOOGLE_PUBLISHER_GET_CLASS (self)->start (self); -#line 7249 "RESTSupport.c" -} - - -static void -publishing_rest_support_google_publisher_real_stop (PublishingRESTSupportGooglePublisher* self) -{ -#line 852 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_critical ("Type `%s' does not implement abstract method `publishing_rest_support_google_publisher_stop'", g_type_name (G_TYPE_FROM_INSTANCE (self))); -#line 852 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - return; -#line 7260 "RESTSupport.c" -} - - -void -publishing_rest_support_google_publisher_stop (PublishingRESTSupportGooglePublisher* self) -{ -#line 852 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_return_if_fail (PUBLISHING_REST_SUPPORT_IS_GOOGLE_PUBLISHER (self)); -#line 852 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - PUBLISHING_REST_SUPPORT_GOOGLE_PUBLISHER_GET_CLASS (self)->stop (self); -#line 7271 "RESTSupport.c" -} - - -static SpitPublishingService* -publishing_rest_support_google_publisher_real_get_service (SpitPublishingPublisher* base) -{ - PublishingRESTSupportGooglePublisher * self; - SpitPublishingService* result = NULL; - SpitPublishingService* _tmp0_; - SpitPublishingService* _tmp1_; -#line 854 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_REST_SUPPORT_TYPE_GOOGLE_PUBLISHER, PublishingRESTSupportGooglePublisher); -#line 855 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp0_ = self->priv->service; -#line 855 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp1_ = _g_object_ref0 (_tmp0_); -#line 855 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - result = _tmp1_; -#line 855 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - return result; -#line 7292 "RESTSupport.c" -} - - -static gpointer -_g_variant_ref0 (gpointer self) -{ -#line 864 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - return self ? g_variant_ref (self) : NULL; -#line 7301 "RESTSupport.c" -} - - -static void -publishing_rest_support_google_publisher_on_authenticator_authenticated (PublishingRESTSupportGooglePublisher* self) -{ - GHashTable* params = NULL; - SpitPublishingAuthenticator* _tmp0_; - GHashTable* _tmp1_; - GVariant* refresh_token = NULL; - GVariant* access_token = NULL; - GVariant* user_name = NULL; - gconstpointer _tmp2_ = NULL; - GVariant* _tmp3_; - gconstpointer _tmp4_ = NULL; - GVariant* _tmp5_; - gconstpointer _tmp6_ = NULL; - GVariant* _tmp7_; - PublishingRESTSupportGooglePublisherGoogleSessionImpl* _tmp8_; - GVariant* _tmp9_; - const gchar* _tmp10_; - gchar* _tmp11_; - PublishingRESTSupportGooglePublisherGoogleSessionImpl* _tmp12_; - GVariant* _tmp13_; - const gchar* _tmp14_; - gchar* _tmp15_; - PublishingRESTSupportGooglePublisherGoogleSessionImpl* _tmp16_; - GVariant* _tmp17_; - const gchar* _tmp18_; - gchar* _tmp19_; -#line 858 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_return_if_fail (PUBLISHING_REST_SUPPORT_IS_GOOGLE_PUBLISHER (self)); -#line 859 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp0_ = self->priv->authenticator; -#line 859 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp1_ = spit_publishing_authenticator_get_authentication_parameter (_tmp0_); -#line 859 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - params = _tmp1_; -#line 860 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - refresh_token = NULL; -#line 861 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - access_token = NULL; -#line 862 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - user_name = NULL; -#line 864 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_hash_table_lookup_extended (params, "RefreshToken", NULL, &_tmp2_); -#line 864 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _g_variant_unref0 (refresh_token); -#line 864 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp3_ = _g_variant_ref0 (_tmp2_); -#line 864 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - refresh_token = _tmp3_; -#line 865 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_hash_table_lookup_extended (params, "AccessToken", NULL, &_tmp4_); -#line 865 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _g_variant_unref0 (access_token); -#line 865 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp5_ = _g_variant_ref0 (_tmp4_); -#line 865 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - access_token = _tmp5_; -#line 866 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_hash_table_lookup_extended (params, "UserName", NULL, &_tmp6_); -#line 866 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _g_variant_unref0 (user_name); -#line 866 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp7_ = _g_variant_ref0 (_tmp6_); -#line 866 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - user_name = _tmp7_; -#line 868 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp8_ = self->priv->session; -#line 868 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp9_ = refresh_token; -#line 868 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp10_ = g_variant_get_string (_tmp9_, NULL); -#line 868 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp11_ = g_strdup (_tmp10_); -#line 868 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _g_free0 (_tmp8_->refresh_token); -#line 868 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp8_->refresh_token = _tmp11_; -#line 869 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp12_ = self->priv->session; -#line 869 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp13_ = access_token; -#line 869 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp14_ = g_variant_get_string (_tmp13_, NULL); -#line 869 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp15_ = g_strdup (_tmp14_); -#line 869 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _g_free0 (_tmp12_->access_token); -#line 869 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp12_->access_token = _tmp15_; -#line 870 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp16_ = self->priv->session; -#line 870 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp17_ = user_name; -#line 870 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp18_ = g_variant_get_string (_tmp17_, NULL); -#line 870 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp19_ = g_strdup (_tmp18_); -#line 870 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _g_free0 (_tmp16_->user_name); -#line 870 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp16_->user_name = _tmp19_; -#line 872 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - publishing_rest_support_google_publisher_on_login_flow_complete (self); -#line 858 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _g_variant_unref0 (user_name); -#line 858 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _g_variant_unref0 (access_token); -#line 858 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _g_variant_unref0 (refresh_token); -#line 858 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _g_hash_table_unref0 (params); -#line 7416 "RESTSupport.c" -} - - -static PublishingRESTSupportGooglePublisherGoogleSessionImpl* -publishing_rest_support_google_publisher_google_session_impl_construct (GType object_type) -{ - PublishingRESTSupportGooglePublisherGoogleSessionImpl* self = NULL; -#line 776 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - self = (PublishingRESTSupportGooglePublisherGoogleSessionImpl*) publishing_rest_support_google_session_construct (object_type); -#line 777 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _g_free0 (self->access_token); -#line 777 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - self->access_token = NULL; -#line 778 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _g_free0 (self->user_name); -#line 778 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - self->user_name = NULL; -#line 779 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _g_free0 (self->refresh_token); -#line 779 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - self->refresh_token = NULL; -#line 776 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - return self; -#line 7440 "RESTSupport.c" -} - - -static PublishingRESTSupportGooglePublisherGoogleSessionImpl* -publishing_rest_support_google_publisher_google_session_impl_new (void) -{ -#line 776 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - return publishing_rest_support_google_publisher_google_session_impl_construct (PUBLISHING_REST_SUPPORT_GOOGLE_PUBLISHER_TYPE_GOOGLE_SESSION_IMPL); -#line 7449 "RESTSupport.c" -} - - -static gboolean -publishing_rest_support_google_publisher_google_session_impl_real_is_authenticated (PublishingRESTSupportSession* base) -{ - PublishingRESTSupportGooglePublisherGoogleSessionImpl * self; - gboolean result = FALSE; - const gchar* _tmp0_; -#line 782 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_REST_SUPPORT_GOOGLE_PUBLISHER_TYPE_GOOGLE_SESSION_IMPL, PublishingRESTSupportGooglePublisherGoogleSessionImpl); -#line 783 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp0_ = self->access_token; -#line 783 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - result = _tmp0_ != NULL; -#line 783 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - return result; -#line 7467 "RESTSupport.c" -} - - -static gchar* -publishing_rest_support_google_publisher_google_session_impl_real_get_user_name (PublishingRESTSupportGoogleSession* base) -{ - PublishingRESTSupportGooglePublisherGoogleSessionImpl * self; - gchar* result = NULL; - const gchar* _tmp0_; - const gchar* _tmp1_; - gchar* _tmp2_; -#line 786 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_REST_SUPPORT_GOOGLE_PUBLISHER_TYPE_GOOGLE_SESSION_IMPL, PublishingRESTSupportGooglePublisherGoogleSessionImpl); -#line 787 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp0_ = self->user_name; -#line 787 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _vala_assert (_tmp0_ != NULL, "user_name != null"); -#line 788 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp1_ = self->user_name; -#line 788 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp2_ = g_strdup (_tmp1_); -#line 788 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - result = _tmp2_; -#line 788 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - return result; -#line 7493 "RESTSupport.c" -} - - -static gchar* -publishing_rest_support_google_publisher_google_session_impl_real_get_access_token (PublishingRESTSupportGoogleSession* base) -{ - PublishingRESTSupportGooglePublisherGoogleSessionImpl * self; - gchar* result = NULL; - const gchar* _tmp0_; - gchar* _tmp1_; -#line 791 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_REST_SUPPORT_GOOGLE_PUBLISHER_TYPE_GOOGLE_SESSION_IMPL, PublishingRESTSupportGooglePublisherGoogleSessionImpl); -#line 792 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _vala_assert (publishing_rest_support_session_is_authenticated (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_SESSION, PublishingRESTSupportSession)), "is_authenticated()"); -#line 793 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp0_ = self->access_token; -#line 793 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp1_ = g_strdup (_tmp0_); -#line 793 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - result = _tmp1_; -#line 793 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - return result; -#line 7516 "RESTSupport.c" -} - - -static void -publishing_rest_support_google_publisher_google_session_impl_real_deauthenticate (PublishingRESTSupportGoogleSession* base) -{ - PublishingRESTSupportGooglePublisherGoogleSessionImpl * self; -#line 796 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_REST_SUPPORT_GOOGLE_PUBLISHER_TYPE_GOOGLE_SESSION_IMPL, PublishingRESTSupportGooglePublisherGoogleSessionImpl); -#line 797 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _g_free0 (self->access_token); -#line 797 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - self->access_token = NULL; -#line 798 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _g_free0 (self->user_name); -#line 798 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - self->user_name = NULL; -#line 799 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _g_free0 (self->refresh_token); -#line 799 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - self->refresh_token = NULL; -#line 7538 "RESTSupport.c" -} - - -static void -publishing_rest_support_google_publisher_google_session_impl_class_init (PublishingRESTSupportGooglePublisherGoogleSessionImplClass * klass) -{ -#line 771 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - publishing_rest_support_google_publisher_google_session_impl_parent_class = g_type_class_peek_parent (klass); -#line 771 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - ((PublishingRESTSupportSessionClass *) klass)->finalize = publishing_rest_support_google_publisher_google_session_impl_finalize; -#line 771 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - ((PublishingRESTSupportSessionClass *) klass)->is_authenticated = (gboolean (*) (PublishingRESTSupportSession *)) publishing_rest_support_google_publisher_google_session_impl_real_is_authenticated; -#line 771 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - ((PublishingRESTSupportGoogleSessionClass *) klass)->get_user_name = (gchar* (*) (PublishingRESTSupportGoogleSession *)) publishing_rest_support_google_publisher_google_session_impl_real_get_user_name; -#line 771 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - ((PublishingRESTSupportGoogleSessionClass *) klass)->get_access_token = (gchar* (*) (PublishingRESTSupportGoogleSession *)) publishing_rest_support_google_publisher_google_session_impl_real_get_access_token; -#line 771 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - ((PublishingRESTSupportGoogleSessionClass *) klass)->deauthenticate = (void (*) (PublishingRESTSupportGoogleSession *)) publishing_rest_support_google_publisher_google_session_impl_real_deauthenticate; -#line 7557 "RESTSupport.c" -} - - -static void -publishing_rest_support_google_publisher_google_session_impl_instance_init (PublishingRESTSupportGooglePublisherGoogleSessionImpl * self) -{ -} - - -static void -publishing_rest_support_google_publisher_google_session_impl_finalize (PublishingRESTSupportSession * obj) -{ - PublishingRESTSupportGooglePublisherGoogleSessionImpl * self; -#line 771 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, PUBLISHING_REST_SUPPORT_GOOGLE_PUBLISHER_TYPE_GOOGLE_SESSION_IMPL, PublishingRESTSupportGooglePublisherGoogleSessionImpl); -#line 772 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _g_free0 (self->access_token); -#line 773 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _g_free0 (self->user_name); -#line 774 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _g_free0 (self->refresh_token); -#line 771 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - PUBLISHING_REST_SUPPORT_SESSION_CLASS (publishing_rest_support_google_publisher_google_session_impl_parent_class)->finalize (obj); -#line 7581 "RESTSupport.c" -} - - -static GType -publishing_rest_support_google_publisher_google_session_impl_get_type (void) -{ - static volatile gsize publishing_rest_support_google_publisher_google_session_impl_type_id__volatile = 0; - if (g_once_init_enter (&publishing_rest_support_google_publisher_google_session_impl_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (PublishingRESTSupportGooglePublisherGoogleSessionImplClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) publishing_rest_support_google_publisher_google_session_impl_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PublishingRESTSupportGooglePublisherGoogleSessionImpl), 0, (GInstanceInitFunc) publishing_rest_support_google_publisher_google_session_impl_instance_init, NULL }; - GType publishing_rest_support_google_publisher_google_session_impl_type_id; - publishing_rest_support_google_publisher_google_session_impl_type_id = g_type_register_static (PUBLISHING_REST_SUPPORT_TYPE_GOOGLE_SESSION, "PublishingRESTSupportGooglePublisherGoogleSessionImpl", &g_define_type_info, 0); - g_once_init_leave (&publishing_rest_support_google_publisher_google_session_impl_type_id__volatile, publishing_rest_support_google_publisher_google_session_impl_type_id); - } - return publishing_rest_support_google_publisher_google_session_impl_type_id__volatile; -} - - -static PublishingRESTSupportGooglePublisherAuthenticatedTransaction* -publishing_rest_support_google_publisher_authenticated_transaction_construct_with_endpoint_url (GType object_type, - PublishingRESTSupportGoogleSession* session, - const gchar* endpoint_url, - PublishingRESTSupportHttpMethod method) -{ - PublishingRESTSupportGooglePublisherAuthenticatedTransaction* self = NULL; -#line 804 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_return_val_if_fail (PUBLISHING_REST_SUPPORT_IS_GOOGLE_SESSION (session), NULL); -#line 804 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_return_val_if_fail (endpoint_url != NULL, NULL); -#line 806 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - self = (PublishingRESTSupportGooglePublisherAuthenticatedTransaction*) publishing_rest_support_transaction_construct_with_endpoint_url (object_type, G_TYPE_CHECK_INSTANCE_CAST (session, PUBLISHING_REST_SUPPORT_TYPE_SESSION, PublishingRESTSupportSession), endpoint_url, method); -#line 804 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - return self; -#line 7614 "RESTSupport.c" -} - - -static PublishingRESTSupportGooglePublisherAuthenticatedTransaction* -publishing_rest_support_google_publisher_authenticated_transaction_new_with_endpoint_url (PublishingRESTSupportGoogleSession* session, - const gchar* endpoint_url, - PublishingRESTSupportHttpMethod method) -{ -#line 804 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - return publishing_rest_support_google_publisher_authenticated_transaction_construct_with_endpoint_url (PUBLISHING_REST_SUPPORT_GOOGLE_PUBLISHER_TYPE_AUTHENTICATED_TRANSACTION, session, endpoint_url, method); -#line 7625 "RESTSupport.c" -} - - -PublishingRESTSupportGooglePublisherAuthenticatedTransaction* -publishing_rest_support_google_publisher_authenticated_transaction_construct (GType object_type, - PublishingRESTSupportGoogleSession* session, - const gchar* endpoint_url, - PublishingRESTSupportHttpMethod method) -{ - PublishingRESTSupportGooglePublisherAuthenticatedTransaction* self = NULL; - gchar* _tmp0_; - gchar* _tmp1_; - gchar* _tmp2_; - gchar* _tmp3_; -#line 809 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_return_val_if_fail (PUBLISHING_REST_SUPPORT_IS_GOOGLE_SESSION (session), NULL); -#line 809 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_return_val_if_fail (endpoint_url != NULL, NULL); -#line 811 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - self = (PublishingRESTSupportGooglePublisherAuthenticatedTransaction*) publishing_rest_support_transaction_construct_with_endpoint_url (object_type, G_TYPE_CHECK_INSTANCE_CAST (session, PUBLISHING_REST_SUPPORT_TYPE_SESSION, PublishingRESTSupportSession), endpoint_url, method); -#line 812 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _vala_assert (publishing_rest_support_session_is_authenticated (G_TYPE_CHECK_INSTANCE_CAST (session, PUBLISHING_REST_SUPPORT_TYPE_SESSION, PublishingRESTSupportSession)), "session.is_authenticated()"); -#line 814 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp0_ = publishing_rest_support_google_session_get_access_token (session); -#line 814 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp1_ = _tmp0_; -#line 814 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp2_ = g_strconcat ("Bearer ", _tmp1_, NULL); -#line 814 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp3_ = _tmp2_; -#line 814 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - publishing_rest_support_transaction_add_header (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "Authorization", _tmp3_); -#line 814 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _g_free0 (_tmp3_); -#line 814 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _g_free0 (_tmp1_); -#line 809 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - return self; -#line 7664 "RESTSupport.c" -} - - -PublishingRESTSupportGooglePublisherAuthenticatedTransaction* -publishing_rest_support_google_publisher_authenticated_transaction_new (PublishingRESTSupportGoogleSession* session, - const gchar* endpoint_url, - PublishingRESTSupportHttpMethod method) -{ -#line 809 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - return publishing_rest_support_google_publisher_authenticated_transaction_construct (PUBLISHING_REST_SUPPORT_GOOGLE_PUBLISHER_TYPE_AUTHENTICATED_TRANSACTION, session, endpoint_url, method); -#line 7675 "RESTSupport.c" -} - - -static void -publishing_rest_support_google_publisher_authenticated_transaction_class_init (PublishingRESTSupportGooglePublisherAuthenticatedTransactionClass * klass) -{ -#line 803 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - publishing_rest_support_google_publisher_authenticated_transaction_parent_class = g_type_class_peek_parent (klass); -#line 7684 "RESTSupport.c" -} - - -static void -publishing_rest_support_google_publisher_authenticated_transaction_instance_init (PublishingRESTSupportGooglePublisherAuthenticatedTransaction * self) -{ -} - - -GType -publishing_rest_support_google_publisher_authenticated_transaction_get_type (void) -{ - static volatile gsize publishing_rest_support_google_publisher_authenticated_transaction_type_id__volatile = 0; - if (g_once_init_enter (&publishing_rest_support_google_publisher_authenticated_transaction_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (PublishingRESTSupportGooglePublisherAuthenticatedTransactionClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) publishing_rest_support_google_publisher_authenticated_transaction_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PublishingRESTSupportGooglePublisherAuthenticatedTransaction), 0, (GInstanceInitFunc) publishing_rest_support_google_publisher_authenticated_transaction_instance_init, NULL }; - GType publishing_rest_support_google_publisher_authenticated_transaction_type_id; - publishing_rest_support_google_publisher_authenticated_transaction_type_id = g_type_register_static (PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, "PublishingRESTSupportGooglePublisherAuthenticatedTransaction", &g_define_type_info, 0); - g_once_init_leave (&publishing_rest_support_google_publisher_authenticated_transaction_type_id__volatile, publishing_rest_support_google_publisher_authenticated_transaction_type_id); - } - return publishing_rest_support_google_publisher_authenticated_transaction_type_id__volatile; -} - - -static void -publishing_rest_support_google_publisher_class_init (PublishingRESTSupportGooglePublisherClass * klass) -{ -#line 767 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - publishing_rest_support_google_publisher_parent_class = g_type_class_peek_parent (klass); -#line 767 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_type_class_add_private (klass, sizeof (PublishingRESTSupportGooglePublisherPrivate)); -#line 767 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - ((PublishingRESTSupportGooglePublisherClass *) klass)->get_authenticator = (SpitPublishingAuthenticator* (*) (PublishingRESTSupportGooglePublisher *)) publishing_rest_support_google_publisher_real_get_authenticator; -#line 767 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - ((PublishingRESTSupportGooglePublisherClass *) klass)->on_login_flow_complete = (void (*) (PublishingRESTSupportGooglePublisher *)) publishing_rest_support_google_publisher_real_on_login_flow_complete; -#line 767 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - ((PublishingRESTSupportGooglePublisherClass *) klass)->do_logout = (void (*) (PublishingRESTSupportGooglePublisher *)) publishing_rest_support_google_publisher_real_do_logout; -#line 767 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - ((PublishingRESTSupportGooglePublisherClass *) klass)->is_running = (gboolean (*) (PublishingRESTSupportGooglePublisher *)) publishing_rest_support_google_publisher_real_is_running; -#line 767 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - ((PublishingRESTSupportGooglePublisherClass *) klass)->start = (void (*) (PublishingRESTSupportGooglePublisher *)) publishing_rest_support_google_publisher_real_start; -#line 767 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - ((PublishingRESTSupportGooglePublisherClass *) klass)->stop = (void (*) (PublishingRESTSupportGooglePublisher *)) publishing_rest_support_google_publisher_real_stop; -#line 767 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - G_OBJECT_CLASS (klass)->finalize = publishing_rest_support_google_publisher_finalize; -#line 7729 "RESTSupport.c" -} - - -static void -publishing_rest_support_google_publisher_spit_publishing_publisher_interface_init (SpitPublishingPublisherIface * iface) -{ -#line 767 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - publishing_rest_support_google_publisher_spit_publishing_publisher_parent_iface = g_type_interface_peek_parent (iface); -#line 767 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - iface->is_running = (gboolean (*) (SpitPublishingPublisher *)) publishing_rest_support_google_publisher_is_running; -#line 767 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - iface->start = (void (*) (SpitPublishingPublisher *)) publishing_rest_support_google_publisher_start; -#line 767 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - iface->stop = (void (*) (SpitPublishingPublisher *)) publishing_rest_support_google_publisher_stop; -#line 767 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - iface->get_service = (SpitPublishingService* (*) (SpitPublishingPublisher *)) publishing_rest_support_google_publisher_real_get_service; -#line 7746 "RESTSupport.c" -} - - -static void -publishing_rest_support_google_publisher_instance_init (PublishingRESTSupportGooglePublisher * self) -{ -#line 767 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - self->priv = PUBLISHING_REST_SUPPORT_GOOGLE_PUBLISHER_GET_PRIVATE (self); -#line 7755 "RESTSupport.c" -} - - -static void -publishing_rest_support_google_publisher_finalize (GObject * obj) -{ - PublishingRESTSupportGooglePublisher * self; -#line 767 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, PUBLISHING_REST_SUPPORT_TYPE_GOOGLE_PUBLISHER, PublishingRESTSupportGooglePublisher); -#line 818 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _g_free0 (self->priv->scope); -#line 819 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _publishing_rest_support_session_unref0 (self->priv->session); -#line 822 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _g_object_unref0 (self->priv->authenticator); -#line 767 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - G_OBJECT_CLASS (publishing_rest_support_google_publisher_parent_class)->finalize (obj); -#line 7773 "RESTSupport.c" -} - - -GType -publishing_rest_support_google_publisher_get_type (void) -{ - static volatile gsize publishing_rest_support_google_publisher_type_id__volatile = 0; - if (g_once_init_enter (&publishing_rest_support_google_publisher_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (PublishingRESTSupportGooglePublisherClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) publishing_rest_support_google_publisher_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PublishingRESTSupportGooglePublisher), 0, (GInstanceInitFunc) publishing_rest_support_google_publisher_instance_init, NULL }; - static const GInterfaceInfo spit_publishing_publisher_info = { (GInterfaceInitFunc) publishing_rest_support_google_publisher_spit_publishing_publisher_interface_init, (GInterfaceFinalizeFunc) NULL, NULL}; - GType publishing_rest_support_google_publisher_type_id; - publishing_rest_support_google_publisher_type_id = g_type_register_static (G_TYPE_OBJECT, "PublishingRESTSupportGooglePublisher", &g_define_type_info, G_TYPE_FLAG_ABSTRACT); - g_type_add_interface_static (publishing_rest_support_google_publisher_type_id, SPIT_PUBLISHING_TYPE_PUBLISHER, &spit_publishing_publisher_info); - g_once_init_leave (&publishing_rest_support_google_publisher_type_id__volatile, publishing_rest_support_google_publisher_type_id); - } - return publishing_rest_support_google_publisher_type_id__volatile; -} - - -static void -_vala_array_destroy (gpointer array, - gint array_length, - GDestroyNotify destroy_func) -{ - if ((array != NULL) && (destroy_func != NULL)) { - int i; - for (i = 0; i < array_length; i = i + 1) { - if (((gpointer*) array)[i] != NULL) { - destroy_func (((gpointer*) array)[i]); - } - } - } -} - - -static void -_vala_array_free (gpointer array, - gint array_length, - GDestroyNotify destroy_func) -{ - _vala_array_destroy (array, array_length, destroy_func); - g_free (array); -} - - - diff --git a/plugins/common/RESTSupport.vala b/plugins/common/RESTSupport.vala index d92c264..482fd2c 100644 --- a/plugins/common/RESTSupport.vala +++ b/plugins/common/RESTSupport.vala @@ -190,6 +190,9 @@ public class Transaction { private void on_wrote_body_data(Soup.Buffer written_data) { bytes_written += (int) written_data.length; + while (Gtk.events_pending()) { + Gtk.main_iteration(); + } chunk_transmitted(bytes_written, (int) message.request_body.length); } diff --git a/plugins/common/Resources.c b/plugins/common/Resources.c deleted file mode 100644 index 828d6df..0000000 --- a/plugins/common/Resources.c +++ /dev/null @@ -1,444 +0,0 @@ -/* Resources.c generated by valac 0.40.4, the Vala compiler - * generated from Resources.vala, do not modify */ - -/* Copyright 2016 Software Freedom Conservancy Inc. - * - * This software is licensed under the GNU Lesser General Public License - * (version 2.1 or later). See the COPYING file in this distribution. - */ - - -#include -#include -#include -#include -#include -#include -#include - -#define _g_free0(var) (var = (g_free (var), NULL)) -#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL))) -#define _g_error_free0(var) ((var == NULL) ? NULL : (var = (g_error_free (var), NULL))) - - - -#define RESOURCES_WEBSITE_NAME _ ("Visit the Shotwell home page") -#define RESOURCES_WEBSITE_URL "https://wiki.gnome.org/Apps/Shotwell" -#define RESOURCES_LICENSE "\n" \ -"Shotwell is free software; you can redistribute it and/or modify it un" \ -"der the \n" \ -"terms of the GNU Lesser General Public License as published by the Fre" \ -"e \n" \ -"Software Foundation; either version 2.1 of the License, or (at your op" \ -"tion) \n" \ -"any later version.\n" \ -"\n" \ -"Shotwell is distributed in the hope that it will be useful, but WITHOU" \ -"T \n" \ -"ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or " \ -"FITNESS\n" \ -"FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License f" \ -"or \n" \ -"more details.\n" \ -"\n" \ -"You should have received a copy of the GNU Lesser General Public Licen" \ -"se \n" \ -"along with Shotwell; if not, write to the Free Software Foundation, In" \ -"c., \n" \ -"51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA\n" -#define RESOURCES_TRANSLATORS _ ("translator-credits") -GdkPixbuf** resources_load_icon_set (GFile* icon_file, - int* result_length1); -static void _vala_array_add4 (GdkPixbuf** * array, - int* length, - int* size, - GdkPixbuf* value); -GdkPixbuf** resources_load_from_resource (const gchar* resource_path, - int* result_length1); -static void _vala_array_add5 (GdkPixbuf** * array, - int* length, - int* size, - GdkPixbuf* value); -static void _vala_array_destroy (gpointer array, - gint array_length, - GDestroyNotify destroy_func); -static void _vala_array_free (gpointer array, - gint array_length, - GDestroyNotify destroy_func); - - -static gpointer -_g_object_ref0 (gpointer self) -{ -#line 50 "/home/jens/Source/shotwell/plugins/common/Resources.vala" - return self ? g_object_ref (self) : NULL; -#line 55 "Resources.c" -} - - -static void -_vala_array_add4 (GdkPixbuf** * array, - int* length, - int* size, - GdkPixbuf* value) -{ -#line 50 "/home/jens/Source/shotwell/plugins/common/Resources.vala" - if ((*length) == (*size)) { -#line 50 "/home/jens/Source/shotwell/plugins/common/Resources.vala" - *size = (*size) ? (2 * (*size)) : 4; -#line 50 "/home/jens/Source/shotwell/plugins/common/Resources.vala" - *array = g_renew (GdkPixbuf*, *array, (*size) + 1); -#line 71 "Resources.c" - } -#line 50 "/home/jens/Source/shotwell/plugins/common/Resources.vala" - (*array)[(*length)++] = value; -#line 50 "/home/jens/Source/shotwell/plugins/common/Resources.vala" - (*array)[*length] = NULL; -#line 77 "Resources.c" -} - - -GdkPixbuf** -resources_load_icon_set (GFile* icon_file, - int* result_length1) -{ - GdkPixbuf** result = NULL; - GdkPixbuf* icon = NULL; - GdkPixbuf* _tmp8_; - GdkPixbuf** _tmp14_; - gint _tmp14__length1; - GError * _inner_error_ = NULL; -#line 40 "/home/jens/Source/shotwell/plugins/common/Resources.vala" - g_return_val_if_fail ((icon_file == NULL) || G_IS_FILE (icon_file), NULL); -#line 41 "/home/jens/Source/shotwell/plugins/common/Resources.vala" - icon = NULL; -#line 95 "Resources.c" - { - GdkPixbuf* _tmp0_ = NULL; - gchar* _tmp1_; - gchar* _tmp2_; - GdkPixbuf* _tmp3_; - GdkPixbuf* _tmp4_; - GdkPixbuf* _tmp5_; -#line 43 "/home/jens/Source/shotwell/plugins/common/Resources.vala" - _tmp1_ = g_file_get_path (icon_file); -#line 43 "/home/jens/Source/shotwell/plugins/common/Resources.vala" - _tmp2_ = _tmp1_; -#line 43 "/home/jens/Source/shotwell/plugins/common/Resources.vala" - _tmp3_ = gdk_pixbuf_new_from_file (_tmp2_, &_inner_error_); -#line 43 "/home/jens/Source/shotwell/plugins/common/Resources.vala" - _tmp4_ = _tmp3_; -#line 43 "/home/jens/Source/shotwell/plugins/common/Resources.vala" - _g_free0 (_tmp2_); -#line 43 "/home/jens/Source/shotwell/plugins/common/Resources.vala" - _tmp0_ = _tmp4_; -#line 43 "/home/jens/Source/shotwell/plugins/common/Resources.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 117 "Resources.c" - goto __catch4_g_error; - } -#line 43 "/home/jens/Source/shotwell/plugins/common/Resources.vala" - _tmp5_ = _tmp0_; -#line 43 "/home/jens/Source/shotwell/plugins/common/Resources.vala" - _tmp0_ = NULL; -#line 43 "/home/jens/Source/shotwell/plugins/common/Resources.vala" - _g_object_unref0 (icon); -#line 43 "/home/jens/Source/shotwell/plugins/common/Resources.vala" - icon = _tmp5_; -#line 42 "/home/jens/Source/shotwell/plugins/common/Resources.vala" - _g_object_unref0 (_tmp0_); -#line 130 "Resources.c" - } - goto __finally4; - __catch4_g_error: - { - GError* err = NULL; - gchar* _tmp6_; - gchar* _tmp7_; -#line 42 "/home/jens/Source/shotwell/plugins/common/Resources.vala" - err = _inner_error_; -#line 42 "/home/jens/Source/shotwell/plugins/common/Resources.vala" - _inner_error_ = NULL; -#line 45 "/home/jens/Source/shotwell/plugins/common/Resources.vala" - _tmp6_ = g_file_get_path (icon_file); -#line 45 "/home/jens/Source/shotwell/plugins/common/Resources.vala" - _tmp7_ = _tmp6_; -#line 45 "/home/jens/Source/shotwell/plugins/common/Resources.vala" - g_warning ("Resources.vala:45: couldn't load icon set from %s.", _tmp7_); -#line 45 "/home/jens/Source/shotwell/plugins/common/Resources.vala" - _g_free0 (_tmp7_); -#line 42 "/home/jens/Source/shotwell/plugins/common/Resources.vala" - _g_error_free0 (err); -#line 152 "Resources.c" - } - __finally4: -#line 42 "/home/jens/Source/shotwell/plugins/common/Resources.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 42 "/home/jens/Source/shotwell/plugins/common/Resources.vala" - _g_object_unref0 (icon); -#line 42 "/home/jens/Source/shotwell/plugins/common/Resources.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 42 "/home/jens/Source/shotwell/plugins/common/Resources.vala" - g_clear_error (&_inner_error_); -#line 42 "/home/jens/Source/shotwell/plugins/common/Resources.vala" - return NULL; -#line 165 "Resources.c" - } -#line 48 "/home/jens/Source/shotwell/plugins/common/Resources.vala" - _tmp8_ = icon; -#line 48 "/home/jens/Source/shotwell/plugins/common/Resources.vala" - if (_tmp8_ != NULL) { -#line 171 "Resources.c" - GdkPixbuf** icon_pixbuf_set = NULL; - GdkPixbuf** _tmp9_; - gint icon_pixbuf_set_length1; - gint _icon_pixbuf_set_size_; - GdkPixbuf** _tmp10_; - gint _tmp10__length1; - GdkPixbuf* _tmp11_; - GdkPixbuf* _tmp12_; - GdkPixbuf** _tmp13_; - gint _tmp13__length1; -#line 49 "/home/jens/Source/shotwell/plugins/common/Resources.vala" - _tmp9_ = g_new0 (GdkPixbuf*, 0 + 1); -#line 49 "/home/jens/Source/shotwell/plugins/common/Resources.vala" - icon_pixbuf_set = _tmp9_; -#line 49 "/home/jens/Source/shotwell/plugins/common/Resources.vala" - icon_pixbuf_set_length1 = 0; -#line 49 "/home/jens/Source/shotwell/plugins/common/Resources.vala" - _icon_pixbuf_set_size_ = icon_pixbuf_set_length1; -#line 50 "/home/jens/Source/shotwell/plugins/common/Resources.vala" - _tmp10_ = icon_pixbuf_set; -#line 50 "/home/jens/Source/shotwell/plugins/common/Resources.vala" - _tmp10__length1 = icon_pixbuf_set_length1; -#line 50 "/home/jens/Source/shotwell/plugins/common/Resources.vala" - _tmp11_ = icon; -#line 50 "/home/jens/Source/shotwell/plugins/common/Resources.vala" - _tmp12_ = _g_object_ref0 (_tmp11_); -#line 50 "/home/jens/Source/shotwell/plugins/common/Resources.vala" - _vala_array_add4 (&icon_pixbuf_set, &icon_pixbuf_set_length1, &_icon_pixbuf_set_size_, _tmp12_); -#line 51 "/home/jens/Source/shotwell/plugins/common/Resources.vala" - _tmp13_ = icon_pixbuf_set; -#line 51 "/home/jens/Source/shotwell/plugins/common/Resources.vala" - _tmp13__length1 = icon_pixbuf_set_length1; -#line 51 "/home/jens/Source/shotwell/plugins/common/Resources.vala" - if (result_length1) { -#line 51 "/home/jens/Source/shotwell/plugins/common/Resources.vala" - *result_length1 = _tmp13__length1; -#line 208 "Resources.c" - } -#line 51 "/home/jens/Source/shotwell/plugins/common/Resources.vala" - result = _tmp13_; -#line 51 "/home/jens/Source/shotwell/plugins/common/Resources.vala" - _g_object_unref0 (icon); -#line 51 "/home/jens/Source/shotwell/plugins/common/Resources.vala" - return result; -#line 216 "Resources.c" - } -#line 54 "/home/jens/Source/shotwell/plugins/common/Resources.vala" - _tmp14_ = NULL; -#line 54 "/home/jens/Source/shotwell/plugins/common/Resources.vala" - _tmp14__length1 = 0; -#line 54 "/home/jens/Source/shotwell/plugins/common/Resources.vala" - if (result_length1) { -#line 54 "/home/jens/Source/shotwell/plugins/common/Resources.vala" - *result_length1 = _tmp14__length1; -#line 226 "Resources.c" - } -#line 54 "/home/jens/Source/shotwell/plugins/common/Resources.vala" - result = _tmp14_; -#line 54 "/home/jens/Source/shotwell/plugins/common/Resources.vala" - _g_object_unref0 (icon); -#line 54 "/home/jens/Source/shotwell/plugins/common/Resources.vala" - return result; -#line 234 "Resources.c" -} - - -static void -_vala_array_add5 (GdkPixbuf** * array, - int* length, - int* size, - GdkPixbuf* value) -{ -#line 67 "/home/jens/Source/shotwell/plugins/common/Resources.vala" - if ((*length) == (*size)) { -#line 67 "/home/jens/Source/shotwell/plugins/common/Resources.vala" - *size = (*size) ? (2 * (*size)) : 4; -#line 67 "/home/jens/Source/shotwell/plugins/common/Resources.vala" - *array = g_renew (GdkPixbuf*, *array, (*size) + 1); -#line 250 "Resources.c" - } -#line 67 "/home/jens/Source/shotwell/plugins/common/Resources.vala" - (*array)[(*length)++] = value; -#line 67 "/home/jens/Source/shotwell/plugins/common/Resources.vala" - (*array)[*length] = NULL; -#line 256 "Resources.c" -} - - -GdkPixbuf** -resources_load_from_resource (const gchar* resource_path, - int* result_length1) -{ - GdkPixbuf** result = NULL; - GdkPixbuf* icon = NULL; - GdkPixbuf* _tmp3_; - GdkPixbuf** _tmp9_; - gint _tmp9__length1; - GError * _inner_error_ = NULL; -#line 57 "/home/jens/Source/shotwell/plugins/common/Resources.vala" - g_return_val_if_fail (resource_path != NULL, NULL); -#line 58 "/home/jens/Source/shotwell/plugins/common/Resources.vala" - icon = NULL; -#line 274 "Resources.c" - { - GdkPixbuf* _tmp0_ = NULL; - GdkPixbuf* _tmp1_; - GdkPixbuf* _tmp2_; -#line 60 "/home/jens/Source/shotwell/plugins/common/Resources.vala" - _tmp1_ = gdk_pixbuf_new_from_resource (resource_path, &_inner_error_); -#line 60 "/home/jens/Source/shotwell/plugins/common/Resources.vala" - _tmp0_ = _tmp1_; -#line 60 "/home/jens/Source/shotwell/plugins/common/Resources.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 285 "Resources.c" - goto __catch5_g_error; - } -#line 60 "/home/jens/Source/shotwell/plugins/common/Resources.vala" - _tmp2_ = _tmp0_; -#line 60 "/home/jens/Source/shotwell/plugins/common/Resources.vala" - _tmp0_ = NULL; -#line 60 "/home/jens/Source/shotwell/plugins/common/Resources.vala" - _g_object_unref0 (icon); -#line 60 "/home/jens/Source/shotwell/plugins/common/Resources.vala" - icon = _tmp2_; -#line 59 "/home/jens/Source/shotwell/plugins/common/Resources.vala" - _g_object_unref0 (_tmp0_); -#line 298 "Resources.c" - } - goto __finally5; - __catch5_g_error: - { - GError* _error_ = NULL; -#line 59 "/home/jens/Source/shotwell/plugins/common/Resources.vala" - _error_ = _inner_error_; -#line 59 "/home/jens/Source/shotwell/plugins/common/Resources.vala" - _inner_error_ = NULL; -#line 62 "/home/jens/Source/shotwell/plugins/common/Resources.vala" - g_warning ("Resources.vala:62: Couldn't load icon set from %s", resource_path); -#line 59 "/home/jens/Source/shotwell/plugins/common/Resources.vala" - _g_error_free0 (_error_); -#line 312 "Resources.c" - } - __finally5: -#line 59 "/home/jens/Source/shotwell/plugins/common/Resources.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 59 "/home/jens/Source/shotwell/plugins/common/Resources.vala" - _g_object_unref0 (icon); -#line 59 "/home/jens/Source/shotwell/plugins/common/Resources.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 59 "/home/jens/Source/shotwell/plugins/common/Resources.vala" - g_clear_error (&_inner_error_); -#line 59 "/home/jens/Source/shotwell/plugins/common/Resources.vala" - return NULL; -#line 325 "Resources.c" - } -#line 65 "/home/jens/Source/shotwell/plugins/common/Resources.vala" - _tmp3_ = icon; -#line 65 "/home/jens/Source/shotwell/plugins/common/Resources.vala" - if (_tmp3_ != NULL) { -#line 331 "Resources.c" - GdkPixbuf** icon_pixbuf_set = NULL; - GdkPixbuf** _tmp4_; - gint icon_pixbuf_set_length1; - gint _icon_pixbuf_set_size_; - GdkPixbuf** _tmp5_; - gint _tmp5__length1; - GdkPixbuf* _tmp6_; - GdkPixbuf* _tmp7_; - GdkPixbuf** _tmp8_; - gint _tmp8__length1; -#line 66 "/home/jens/Source/shotwell/plugins/common/Resources.vala" - _tmp4_ = g_new0 (GdkPixbuf*, 0 + 1); -#line 66 "/home/jens/Source/shotwell/plugins/common/Resources.vala" - icon_pixbuf_set = _tmp4_; -#line 66 "/home/jens/Source/shotwell/plugins/common/Resources.vala" - icon_pixbuf_set_length1 = 0; -#line 66 "/home/jens/Source/shotwell/plugins/common/Resources.vala" - _icon_pixbuf_set_size_ = icon_pixbuf_set_length1; -#line 67 "/home/jens/Source/shotwell/plugins/common/Resources.vala" - _tmp5_ = icon_pixbuf_set; -#line 67 "/home/jens/Source/shotwell/plugins/common/Resources.vala" - _tmp5__length1 = icon_pixbuf_set_length1; -#line 67 "/home/jens/Source/shotwell/plugins/common/Resources.vala" - _tmp6_ = icon; -#line 67 "/home/jens/Source/shotwell/plugins/common/Resources.vala" - _tmp7_ = _g_object_ref0 (_tmp6_); -#line 67 "/home/jens/Source/shotwell/plugins/common/Resources.vala" - _vala_array_add5 (&icon_pixbuf_set, &icon_pixbuf_set_length1, &_icon_pixbuf_set_size_, _tmp7_); -#line 68 "/home/jens/Source/shotwell/plugins/common/Resources.vala" - _tmp8_ = icon_pixbuf_set; -#line 68 "/home/jens/Source/shotwell/plugins/common/Resources.vala" - _tmp8__length1 = icon_pixbuf_set_length1; -#line 68 "/home/jens/Source/shotwell/plugins/common/Resources.vala" - if (result_length1) { -#line 68 "/home/jens/Source/shotwell/plugins/common/Resources.vala" - *result_length1 = _tmp8__length1; -#line 368 "Resources.c" - } -#line 68 "/home/jens/Source/shotwell/plugins/common/Resources.vala" - result = _tmp8_; -#line 68 "/home/jens/Source/shotwell/plugins/common/Resources.vala" - _g_object_unref0 (icon); -#line 68 "/home/jens/Source/shotwell/plugins/common/Resources.vala" - return result; -#line 376 "Resources.c" - } -#line 71 "/home/jens/Source/shotwell/plugins/common/Resources.vala" - _tmp9_ = NULL; -#line 71 "/home/jens/Source/shotwell/plugins/common/Resources.vala" - _tmp9__length1 = 0; -#line 71 "/home/jens/Source/shotwell/plugins/common/Resources.vala" - if (result_length1) { -#line 71 "/home/jens/Source/shotwell/plugins/common/Resources.vala" - *result_length1 = _tmp9__length1; -#line 386 "Resources.c" - } -#line 71 "/home/jens/Source/shotwell/plugins/common/Resources.vala" - result = _tmp9_; -#line 71 "/home/jens/Source/shotwell/plugins/common/Resources.vala" - _g_object_unref0 (icon); -#line 71 "/home/jens/Source/shotwell/plugins/common/Resources.vala" - return result; -#line 394 "Resources.c" -} - - -static void -_vala_array_destroy (gpointer array, - gint array_length, - GDestroyNotify destroy_func) -{ - if ((array != NULL) && (destroy_func != NULL)) { - int i; - for (i = 0; i < array_length; i = i + 1) { - if (((gpointer*) array)[i] != NULL) { - destroy_func (((gpointer*) array)[i]); - } - } - } -} - - -static void -_vala_array_free (gpointer array, - gint array_length, - GDestroyNotify destroy_func) -{ - _vala_array_destroy (array, array_length, destroy_func); - g_free (array); -} - - - diff --git a/plugins/common/WebAuthenticationPane.c b/plugins/common/WebAuthenticationPane.c deleted file mode 100644 index dd556c2..0000000 --- a/plugins/common/WebAuthenticationPane.c +++ /dev/null @@ -1,637 +0,0 @@ -/* WebAuthenticationPane.c generated by valac 0.40.4, the Vala compiler - * generated from WebAuthenticationPane.vala, do not modify */ - -/* Copyright 2016 Jens Georg - * - * This software is licensed under the GNU LGPL (version 2.1 or later). - * See the COPYING file in this distribution. - */ - - -#include -#include -#include "shotwell-plugin-dev-1.0.h" -#include -#include -#include -#include -#include - - -#define SHOTWELL_PLUGINS_COMMON_TYPE_WEB_AUTHENTICATION_PANE (shotwell_plugins_common_web_authentication_pane_get_type ()) -#define SHOTWELL_PLUGINS_COMMON_WEB_AUTHENTICATION_PANE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SHOTWELL_PLUGINS_COMMON_TYPE_WEB_AUTHENTICATION_PANE, ShotwellPluginsCommonWebAuthenticationPane)) -#define SHOTWELL_PLUGINS_COMMON_WEB_AUTHENTICATION_PANE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), SHOTWELL_PLUGINS_COMMON_TYPE_WEB_AUTHENTICATION_PANE, ShotwellPluginsCommonWebAuthenticationPaneClass)) -#define SHOTWELL_PLUGINS_COMMON_IS_WEB_AUTHENTICATION_PANE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SHOTWELL_PLUGINS_COMMON_TYPE_WEB_AUTHENTICATION_PANE)) -#define SHOTWELL_PLUGINS_COMMON_IS_WEB_AUTHENTICATION_PANE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), SHOTWELL_PLUGINS_COMMON_TYPE_WEB_AUTHENTICATION_PANE)) -#define SHOTWELL_PLUGINS_COMMON_WEB_AUTHENTICATION_PANE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), SHOTWELL_PLUGINS_COMMON_TYPE_WEB_AUTHENTICATION_PANE, ShotwellPluginsCommonWebAuthenticationPaneClass)) - -typedef struct _ShotwellPluginsCommonWebAuthenticationPane ShotwellPluginsCommonWebAuthenticationPane; -typedef struct _ShotwellPluginsCommonWebAuthenticationPaneClass ShotwellPluginsCommonWebAuthenticationPaneClass; -typedef struct _ShotwellPluginsCommonWebAuthenticationPanePrivate ShotwellPluginsCommonWebAuthenticationPanePrivate; -enum { - SHOTWELL_PLUGINS_COMMON_WEB_AUTHENTICATION_PANE_0_PROPERTY, - SHOTWELL_PLUGINS_COMMON_WEB_AUTHENTICATION_PANE_PREFERRED_GEOMETRY_PROPERTY, - SHOTWELL_PLUGINS_COMMON_WEB_AUTHENTICATION_PANE_LOGIN_URI_PROPERTY, - SHOTWELL_PLUGINS_COMMON_WEB_AUTHENTICATION_PANE_NUM_PROPERTIES -}; -static GParamSpec* shotwell_plugins_common_web_authentication_pane_properties[SHOTWELL_PLUGINS_COMMON_WEB_AUTHENTICATION_PANE_NUM_PROPERTIES]; -#define _g_free0(var) (var = (g_free (var), NULL)) -#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL))) - -struct _ShotwellPluginsCommonWebAuthenticationPane { - GObject parent_instance; - ShotwellPluginsCommonWebAuthenticationPanePrivate * priv; -}; - -struct _ShotwellPluginsCommonWebAuthenticationPaneClass { - GObjectClass parent_class; - void (*on_page_load) (ShotwellPluginsCommonWebAuthenticationPane* self); -}; - -struct _ShotwellPluginsCommonWebAuthenticationPanePrivate { - SpitPublishingDialogPaneGeometryOptions _preferred_geometry; - gchar* _login_uri; - WebKitWebView* webview; -}; - - -static gpointer shotwell_plugins_common_web_authentication_pane_parent_class = NULL; -static SpitPublishingDialogPaneIface * shotwell_plugins_common_web_authentication_pane_spit_publishing_dialog_pane_parent_iface = NULL; - -GType shotwell_plugins_common_web_authentication_pane_get_type (void) G_GNUC_CONST; -#define SHOTWELL_PLUGINS_COMMON_WEB_AUTHENTICATION_PANE_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), SHOTWELL_PLUGINS_COMMON_TYPE_WEB_AUTHENTICATION_PANE, ShotwellPluginsCommonWebAuthenticationPanePrivate)) -static void shotwell_plugins_common_web_authentication_pane_real_constructed (GObject* base); -static void shotwell_plugins_common_web_authentication_pane_on_page_load_changed (ShotwellPluginsCommonWebAuthenticationPane* self, - WebKitLoadEvent load_event); -static void _shotwell_plugins_common_web_authentication_pane_on_page_load_changed_webkit_web_view_load_changed (WebKitWebView* _sender, - WebKitLoadEvent load_event, - gpointer self); -static gboolean __lambda4_ (ShotwellPluginsCommonWebAuthenticationPane* self); -static gboolean ___lambda4__webkit_web_view_context_menu (WebKitWebView* _sender, - WebKitContextMenu* context_menu, - GdkEvent* event, - WebKitHitTestResult* hit_test_result, - gpointer self); -void shotwell_plugins_common_web_authentication_pane_on_page_load (ShotwellPluginsCommonWebAuthenticationPane* self); -static void shotwell_plugins_common_web_authentication_pane_real_on_page_load (ShotwellPluginsCommonWebAuthenticationPane* self); -void shotwell_plugins_common_web_authentication_pane_set_cursor (ShotwellPluginsCommonWebAuthenticationPane* self, - GdkCursorType type); -WebKitWebView* shotwell_plugins_common_web_authentication_pane_get_view (ShotwellPluginsCommonWebAuthenticationPane* self); -static SpitPublishingDialogPaneGeometryOptions shotwell_plugins_common_web_authentication_pane_real_get_preferred_geometry (SpitPublishingDialogPane* base); -SpitPublishingDialogPaneGeometryOptions shotwell_plugins_common_web_authentication_pane_get_preferred_geometry (ShotwellPluginsCommonWebAuthenticationPane* self); -static GtkWidget* shotwell_plugins_common_web_authentication_pane_real_get_widget (SpitPublishingDialogPane* base); -static void shotwell_plugins_common_web_authentication_pane_real_on_pane_installed (SpitPublishingDialogPane* base); -gchar* shotwell_plugins_common_web_authentication_pane_get_login_uri (ShotwellPluginsCommonWebAuthenticationPane* self); -static void shotwell_plugins_common_web_authentication_pane_real_on_pane_uninstalled (SpitPublishingDialogPane* base); -ShotwellPluginsCommonWebAuthenticationPane* shotwell_plugins_common_web_authentication_pane_construct (GType object_type); -static void shotwell_plugins_common_web_authentication_pane_set_preferred_geometry (ShotwellPluginsCommonWebAuthenticationPane* self, - SpitPublishingDialogPaneGeometryOptions value); -static void shotwell_plugins_common_web_authentication_pane_set_login_uri (ShotwellPluginsCommonWebAuthenticationPane* self, - const gchar* value); -static void shotwell_plugins_common_web_authentication_pane_finalize (GObject * obj); -static void _vala_shotwell_plugins_common_web_authentication_pane_get_property (GObject * object, - guint property_id, - GValue * value, - GParamSpec * pspec); -static void _vala_shotwell_plugins_common_web_authentication_pane_set_property (GObject * object, - guint property_id, - const GValue * value, - GParamSpec * pspec); - - -static void -_shotwell_plugins_common_web_authentication_pane_on_page_load_changed_webkit_web_view_load_changed (WebKitWebView* _sender, - WebKitLoadEvent load_event, - gpointer self) -{ -#line 24 "/home/jens/Source/shotwell/plugins/common/WebAuthenticationPane.vala" - shotwell_plugins_common_web_authentication_pane_on_page_load_changed ((ShotwellPluginsCommonWebAuthenticationPane*) self, load_event); -#line 110 "WebAuthenticationPane.c" -} - - -static gboolean -__lambda4_ (ShotwellPluginsCommonWebAuthenticationPane* self) -{ - gboolean result = FALSE; -#line 25 "/home/jens/Source/shotwell/plugins/common/WebAuthenticationPane.vala" - result = FALSE; -#line 25 "/home/jens/Source/shotwell/plugins/common/WebAuthenticationPane.vala" - return result; -#line 122 "WebAuthenticationPane.c" -} - - -static gboolean -___lambda4__webkit_web_view_context_menu (WebKitWebView* _sender, - WebKitContextMenu* context_menu, - GdkEvent* event, - WebKitHitTestResult* hit_test_result, - gpointer self) -{ - gboolean result; - result = __lambda4_ ((ShotwellPluginsCommonWebAuthenticationPane*) self); -#line 25 "/home/jens/Source/shotwell/plugins/common/WebAuthenticationPane.vala" - return result; -#line 137 "WebAuthenticationPane.c" -} - - -static void -shotwell_plugins_common_web_authentication_pane_real_constructed (GObject* base) -{ - ShotwellPluginsCommonWebAuthenticationPane * self; - WebKitWebView* _tmp0_; - WebKitWebView* _tmp1_; - WebKitSettings* _tmp2_; - WebKitWebView* _tmp3_; - WebKitWebView* _tmp4_; -#line 18 "/home/jens/Source/shotwell/plugins/common/WebAuthenticationPane.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, SHOTWELL_PLUGINS_COMMON_TYPE_WEB_AUTHENTICATION_PANE, ShotwellPluginsCommonWebAuthenticationPane); -#line 19 "/home/jens/Source/shotwell/plugins/common/WebAuthenticationPane.vala" - G_OBJECT_CLASS (shotwell_plugins_common_web_authentication_pane_parent_class)->constructed (G_TYPE_CHECK_INSTANCE_CAST (self, G_TYPE_OBJECT, GObject)); -#line 21 "/home/jens/Source/shotwell/plugins/common/WebAuthenticationPane.vala" - _tmp0_ = (WebKitWebView*) webkit_web_view_new (); -#line 21 "/home/jens/Source/shotwell/plugins/common/WebAuthenticationPane.vala" - g_object_ref_sink (_tmp0_); -#line 21 "/home/jens/Source/shotwell/plugins/common/WebAuthenticationPane.vala" - _g_object_unref0 (self->priv->webview); -#line 21 "/home/jens/Source/shotwell/plugins/common/WebAuthenticationPane.vala" - self->priv->webview = _tmp0_; -#line 22 "/home/jens/Source/shotwell/plugins/common/WebAuthenticationPane.vala" - _tmp1_ = self->priv->webview; -#line 22 "/home/jens/Source/shotwell/plugins/common/WebAuthenticationPane.vala" - _tmp2_ = webkit_web_view_get_settings (_tmp1_); -#line 22 "/home/jens/Source/shotwell/plugins/common/WebAuthenticationPane.vala" - webkit_settings_set_enable_plugins (_tmp2_, FALSE); -#line 24 "/home/jens/Source/shotwell/plugins/common/WebAuthenticationPane.vala" - _tmp3_ = self->priv->webview; -#line 24 "/home/jens/Source/shotwell/plugins/common/WebAuthenticationPane.vala" - g_signal_connect_object (_tmp3_, "load-changed", (GCallback) _shotwell_plugins_common_web_authentication_pane_on_page_load_changed_webkit_web_view_load_changed, self, 0); -#line 25 "/home/jens/Source/shotwell/plugins/common/WebAuthenticationPane.vala" - _tmp4_ = self->priv->webview; -#line 25 "/home/jens/Source/shotwell/plugins/common/WebAuthenticationPane.vala" - g_signal_connect_object (_tmp4_, "context-menu", (GCallback) ___lambda4__webkit_web_view_context_menu, self, 0); -#line 176 "WebAuthenticationPane.c" -} - - -static void -shotwell_plugins_common_web_authentication_pane_real_on_page_load (ShotwellPluginsCommonWebAuthenticationPane* self) -{ -#line 28 "/home/jens/Source/shotwell/plugins/common/WebAuthenticationPane.vala" - g_critical ("Type `%s' does not implement abstract method `shotwell_plugins_common_web_authentication_pane_on_page_load'", g_type_name (G_TYPE_FROM_INSTANCE (self))); -#line 28 "/home/jens/Source/shotwell/plugins/common/WebAuthenticationPane.vala" - return; -#line 187 "WebAuthenticationPane.c" -} - - -void -shotwell_plugins_common_web_authentication_pane_on_page_load (ShotwellPluginsCommonWebAuthenticationPane* self) -{ -#line 28 "/home/jens/Source/shotwell/plugins/common/WebAuthenticationPane.vala" - g_return_if_fail (SHOTWELL_PLUGINS_COMMON_IS_WEB_AUTHENTICATION_PANE (self)); -#line 28 "/home/jens/Source/shotwell/plugins/common/WebAuthenticationPane.vala" - SHOTWELL_PLUGINS_COMMON_WEB_AUTHENTICATION_PANE_GET_CLASS (self)->on_page_load (self); -#line 198 "WebAuthenticationPane.c" -} - - -static gpointer -_g_object_ref0 (gpointer self) -{ -#line 31 "/home/jens/Source/shotwell/plugins/common/WebAuthenticationPane.vala" - return self ? g_object_ref (self) : NULL; -#line 207 "WebAuthenticationPane.c" -} - - -void -shotwell_plugins_common_web_authentication_pane_set_cursor (ShotwellPluginsCommonWebAuthenticationPane* self, - GdkCursorType type) -{ - GdkWindow* window = NULL; - WebKitWebView* _tmp0_; - GdkWindow* _tmp1_; - GdkWindow* _tmp2_; - GdkDisplay* display = NULL; - GdkDisplay* _tmp3_; - GdkDisplay* _tmp4_; - GdkCursor* cursor = NULL; - GdkCursor* _tmp5_; -#line 30 "/home/jens/Source/shotwell/plugins/common/WebAuthenticationPane.vala" - g_return_if_fail (SHOTWELL_PLUGINS_COMMON_IS_WEB_AUTHENTICATION_PANE (self)); -#line 31 "/home/jens/Source/shotwell/plugins/common/WebAuthenticationPane.vala" - _tmp0_ = self->priv->webview; -#line 31 "/home/jens/Source/shotwell/plugins/common/WebAuthenticationPane.vala" - _tmp1_ = gtk_widget_get_window (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, gtk_widget_get_type (), GtkWidget)); -#line 31 "/home/jens/Source/shotwell/plugins/common/WebAuthenticationPane.vala" - _tmp2_ = _g_object_ref0 (_tmp1_); -#line 31 "/home/jens/Source/shotwell/plugins/common/WebAuthenticationPane.vala" - window = _tmp2_; -#line 32 "/home/jens/Source/shotwell/plugins/common/WebAuthenticationPane.vala" - _tmp3_ = gdk_window_get_display (window); -#line 32 "/home/jens/Source/shotwell/plugins/common/WebAuthenticationPane.vala" - _tmp4_ = _g_object_ref0 (_tmp3_); -#line 32 "/home/jens/Source/shotwell/plugins/common/WebAuthenticationPane.vala" - display = _tmp4_; -#line 33 "/home/jens/Source/shotwell/plugins/common/WebAuthenticationPane.vala" - _tmp5_ = gdk_cursor_new_for_display (display, type); -#line 33 "/home/jens/Source/shotwell/plugins/common/WebAuthenticationPane.vala" - cursor = _tmp5_; -#line 34 "/home/jens/Source/shotwell/plugins/common/WebAuthenticationPane.vala" - gdk_window_set_cursor (window, cursor); -#line 30 "/home/jens/Source/shotwell/plugins/common/WebAuthenticationPane.vala" - _g_object_unref0 (cursor); -#line 30 "/home/jens/Source/shotwell/plugins/common/WebAuthenticationPane.vala" - _g_object_unref0 (display); -#line 30 "/home/jens/Source/shotwell/plugins/common/WebAuthenticationPane.vala" - _g_object_unref0 (window); -#line 252 "WebAuthenticationPane.c" -} - - -static void -shotwell_plugins_common_web_authentication_pane_on_page_load_changed (ShotwellPluginsCommonWebAuthenticationPane* self, - WebKitLoadEvent load_event) -{ -#line 37 "/home/jens/Source/shotwell/plugins/common/WebAuthenticationPane.vala" - g_return_if_fail (SHOTWELL_PLUGINS_COMMON_IS_WEB_AUTHENTICATION_PANE (self)); -#line 38 "/home/jens/Source/shotwell/plugins/common/WebAuthenticationPane.vala" - switch (load_event) { -#line 38 "/home/jens/Source/shotwell/plugins/common/WebAuthenticationPane.vala" - case WEBKIT_LOAD_STARTED: -#line 38 "/home/jens/Source/shotwell/plugins/common/WebAuthenticationPane.vala" - case WEBKIT_LOAD_REDIRECTED: -#line 268 "WebAuthenticationPane.c" - { -#line 41 "/home/jens/Source/shotwell/plugins/common/WebAuthenticationPane.vala" - shotwell_plugins_common_web_authentication_pane_set_cursor (self, GDK_WATCH); -#line 42 "/home/jens/Source/shotwell/plugins/common/WebAuthenticationPane.vala" - break; -#line 274 "WebAuthenticationPane.c" - } -#line 38 "/home/jens/Source/shotwell/plugins/common/WebAuthenticationPane.vala" - case WEBKIT_LOAD_FINISHED: -#line 278 "WebAuthenticationPane.c" - { -#line 44 "/home/jens/Source/shotwell/plugins/common/WebAuthenticationPane.vala" - shotwell_plugins_common_web_authentication_pane_set_cursor (self, GDK_LEFT_PTR); -#line 45 "/home/jens/Source/shotwell/plugins/common/WebAuthenticationPane.vala" - shotwell_plugins_common_web_authentication_pane_on_page_load (self); -#line 46 "/home/jens/Source/shotwell/plugins/common/WebAuthenticationPane.vala" - break; -#line 286 "WebAuthenticationPane.c" - } - default: - { -#line 48 "/home/jens/Source/shotwell/plugins/common/WebAuthenticationPane.vala" - break; -#line 292 "WebAuthenticationPane.c" - } - } -} - - -WebKitWebView* -shotwell_plugins_common_web_authentication_pane_get_view (ShotwellPluginsCommonWebAuthenticationPane* self) -{ - WebKitWebView* result = NULL; - WebKitWebView* _tmp0_; - WebKitWebView* _tmp1_; -#line 52 "/home/jens/Source/shotwell/plugins/common/WebAuthenticationPane.vala" - g_return_val_if_fail (SHOTWELL_PLUGINS_COMMON_IS_WEB_AUTHENTICATION_PANE (self), NULL); -#line 53 "/home/jens/Source/shotwell/plugins/common/WebAuthenticationPane.vala" - _tmp0_ = self->priv->webview; -#line 53 "/home/jens/Source/shotwell/plugins/common/WebAuthenticationPane.vala" - _tmp1_ = _g_object_ref0 (_tmp0_); -#line 53 "/home/jens/Source/shotwell/plugins/common/WebAuthenticationPane.vala" - result = _tmp1_; -#line 53 "/home/jens/Source/shotwell/plugins/common/WebAuthenticationPane.vala" - return result; -#line 314 "WebAuthenticationPane.c" -} - - -static SpitPublishingDialogPaneGeometryOptions -shotwell_plugins_common_web_authentication_pane_real_get_preferred_geometry (SpitPublishingDialogPane* base) -{ - ShotwellPluginsCommonWebAuthenticationPane * self; - SpitPublishingDialogPaneGeometryOptions result = 0; - SpitPublishingDialogPaneGeometryOptions _tmp0_; -#line 56 "/home/jens/Source/shotwell/plugins/common/WebAuthenticationPane.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, SHOTWELL_PLUGINS_COMMON_TYPE_WEB_AUTHENTICATION_PANE, ShotwellPluginsCommonWebAuthenticationPane); -#line 57 "/home/jens/Source/shotwell/plugins/common/WebAuthenticationPane.vala" - _tmp0_ = self->priv->_preferred_geometry; -#line 57 "/home/jens/Source/shotwell/plugins/common/WebAuthenticationPane.vala" - result = _tmp0_; -#line 57 "/home/jens/Source/shotwell/plugins/common/WebAuthenticationPane.vala" - return result; -#line 332 "WebAuthenticationPane.c" -} - - -static GtkWidget* -shotwell_plugins_common_web_authentication_pane_real_get_widget (SpitPublishingDialogPane* base) -{ - ShotwellPluginsCommonWebAuthenticationPane * self; - GtkWidget* result = NULL; - WebKitWebView* _tmp0_; - GtkWidget* _tmp1_; -#line 60 "/home/jens/Source/shotwell/plugins/common/WebAuthenticationPane.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, SHOTWELL_PLUGINS_COMMON_TYPE_WEB_AUTHENTICATION_PANE, ShotwellPluginsCommonWebAuthenticationPane); -#line 61 "/home/jens/Source/shotwell/plugins/common/WebAuthenticationPane.vala" - _tmp0_ = self->priv->webview; -#line 61 "/home/jens/Source/shotwell/plugins/common/WebAuthenticationPane.vala" - _tmp1_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, gtk_widget_get_type (), GtkWidget)); -#line 61 "/home/jens/Source/shotwell/plugins/common/WebAuthenticationPane.vala" - result = _tmp1_; -#line 61 "/home/jens/Source/shotwell/plugins/common/WebAuthenticationPane.vala" - return result; -#line 353 "WebAuthenticationPane.c" -} - - -static void -shotwell_plugins_common_web_authentication_pane_real_on_pane_installed (SpitPublishingDialogPane* base) -{ - ShotwellPluginsCommonWebAuthenticationPane * self; - WebKitWebView* _tmp0_; - WebKitWebView* _tmp1_; - gchar* _tmp2_; - gchar* _tmp3_; - gchar* _tmp4_; -#line 64 "/home/jens/Source/shotwell/plugins/common/WebAuthenticationPane.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, SHOTWELL_PLUGINS_COMMON_TYPE_WEB_AUTHENTICATION_PANE, ShotwellPluginsCommonWebAuthenticationPane); -#line 65 "/home/jens/Source/shotwell/plugins/common/WebAuthenticationPane.vala" - _tmp0_ = shotwell_plugins_common_web_authentication_pane_get_view (self); -#line 65 "/home/jens/Source/shotwell/plugins/common/WebAuthenticationPane.vala" - _tmp1_ = _tmp0_; -#line 65 "/home/jens/Source/shotwell/plugins/common/WebAuthenticationPane.vala" - _tmp2_ = shotwell_plugins_common_web_authentication_pane_get_login_uri (self); -#line 65 "/home/jens/Source/shotwell/plugins/common/WebAuthenticationPane.vala" - _tmp3_ = _tmp2_; -#line 65 "/home/jens/Source/shotwell/plugins/common/WebAuthenticationPane.vala" - _tmp4_ = _tmp3_; -#line 65 "/home/jens/Source/shotwell/plugins/common/WebAuthenticationPane.vala" - webkit_web_view_load_uri (_tmp1_, _tmp4_); -#line 65 "/home/jens/Source/shotwell/plugins/common/WebAuthenticationPane.vala" - _g_free0 (_tmp4_); -#line 65 "/home/jens/Source/shotwell/plugins/common/WebAuthenticationPane.vala" - _g_object_unref0 (_tmp1_); -#line 384 "WebAuthenticationPane.c" -} - - -static void -shotwell_plugins_common_web_authentication_pane_real_on_pane_uninstalled (SpitPublishingDialogPane* base) -{ - ShotwellPluginsCommonWebAuthenticationPane * self; -#line 68 "/home/jens/Source/shotwell/plugins/common/WebAuthenticationPane.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, SHOTWELL_PLUGINS_COMMON_TYPE_WEB_AUTHENTICATION_PANE, ShotwellPluginsCommonWebAuthenticationPane); -#line 394 "WebAuthenticationPane.c" -} - - -ShotwellPluginsCommonWebAuthenticationPane* -shotwell_plugins_common_web_authentication_pane_construct (GType object_type) -{ - ShotwellPluginsCommonWebAuthenticationPane * self = NULL; -#line 9 "/home/jens/Source/shotwell/plugins/common/WebAuthenticationPane.vala" - self = (ShotwellPluginsCommonWebAuthenticationPane*) g_object_new (object_type, NULL); -#line 9 "/home/jens/Source/shotwell/plugins/common/WebAuthenticationPane.vala" - return self; -#line 406 "WebAuthenticationPane.c" -} - - -SpitPublishingDialogPaneGeometryOptions -shotwell_plugins_common_web_authentication_pane_get_preferred_geometry (ShotwellPluginsCommonWebAuthenticationPane* self) -{ - SpitPublishingDialogPaneGeometryOptions result; - SpitPublishingDialogPaneGeometryOptions _tmp0_; -#line 11 "/home/jens/Source/shotwell/plugins/common/WebAuthenticationPane.vala" - g_return_val_if_fail (SHOTWELL_PLUGINS_COMMON_IS_WEB_AUTHENTICATION_PANE (self), 0); -#line 11 "/home/jens/Source/shotwell/plugins/common/WebAuthenticationPane.vala" - _tmp0_ = self->priv->_preferred_geometry; -#line 11 "/home/jens/Source/shotwell/plugins/common/WebAuthenticationPane.vala" - result = _tmp0_; -#line 11 "/home/jens/Source/shotwell/plugins/common/WebAuthenticationPane.vala" - return result; -#line 423 "WebAuthenticationPane.c" -} - - -static void -shotwell_plugins_common_web_authentication_pane_set_preferred_geometry (ShotwellPluginsCommonWebAuthenticationPane* self, - SpitPublishingDialogPaneGeometryOptions value) -{ -#line 11 "/home/jens/Source/shotwell/plugins/common/WebAuthenticationPane.vala" - g_return_if_fail (SHOTWELL_PLUGINS_COMMON_IS_WEB_AUTHENTICATION_PANE (self)); -#line 11 "/home/jens/Source/shotwell/plugins/common/WebAuthenticationPane.vala" - if (shotwell_plugins_common_web_authentication_pane_get_preferred_geometry (self) != value) { -#line 11 "/home/jens/Source/shotwell/plugins/common/WebAuthenticationPane.vala" - self->priv->_preferred_geometry = value; -#line 11 "/home/jens/Source/shotwell/plugins/common/WebAuthenticationPane.vala" - g_object_notify_by_pspec ((GObject *) self, shotwell_plugins_common_web_authentication_pane_properties[SHOTWELL_PLUGINS_COMMON_WEB_AUTHENTICATION_PANE_PREFERRED_GEOMETRY_PROPERTY]); -#line 439 "WebAuthenticationPane.c" - } -} - - -gchar* -shotwell_plugins_common_web_authentication_pane_get_login_uri (ShotwellPluginsCommonWebAuthenticationPane* self) -{ - gchar* result; - const gchar* _tmp0_; - gchar* _tmp1_; -#line 14 "/home/jens/Source/shotwell/plugins/common/WebAuthenticationPane.vala" - g_return_val_if_fail (SHOTWELL_PLUGINS_COMMON_IS_WEB_AUTHENTICATION_PANE (self), NULL); -#line 14 "/home/jens/Source/shotwell/plugins/common/WebAuthenticationPane.vala" - _tmp0_ = self->priv->_login_uri; -#line 14 "/home/jens/Source/shotwell/plugins/common/WebAuthenticationPane.vala" - _tmp1_ = g_strdup (_tmp0_); -#line 14 "/home/jens/Source/shotwell/plugins/common/WebAuthenticationPane.vala" - result = _tmp1_; -#line 14 "/home/jens/Source/shotwell/plugins/common/WebAuthenticationPane.vala" - return result; -#line 460 "WebAuthenticationPane.c" -} - - -static void -shotwell_plugins_common_web_authentication_pane_set_login_uri (ShotwellPluginsCommonWebAuthenticationPane* self, - const gchar* value) -{ -#line 14 "/home/jens/Source/shotwell/plugins/common/WebAuthenticationPane.vala" - g_return_if_fail (SHOTWELL_PLUGINS_COMMON_IS_WEB_AUTHENTICATION_PANE (self)); -#line 14 "/home/jens/Source/shotwell/plugins/common/WebAuthenticationPane.vala" - if (g_strcmp0 (value, shotwell_plugins_common_web_authentication_pane_get_login_uri (self)) != 0) { -#line 472 "WebAuthenticationPane.c" - gchar* _tmp0_; -#line 14 "/home/jens/Source/shotwell/plugins/common/WebAuthenticationPane.vala" - _tmp0_ = g_strdup (value); -#line 14 "/home/jens/Source/shotwell/plugins/common/WebAuthenticationPane.vala" - _g_free0 (self->priv->_login_uri); -#line 14 "/home/jens/Source/shotwell/plugins/common/WebAuthenticationPane.vala" - self->priv->_login_uri = _tmp0_; -#line 14 "/home/jens/Source/shotwell/plugins/common/WebAuthenticationPane.vala" - g_object_notify_by_pspec ((GObject *) self, shotwell_plugins_common_web_authentication_pane_properties[SHOTWELL_PLUGINS_COMMON_WEB_AUTHENTICATION_PANE_LOGIN_URI_PROPERTY]); -#line 482 "WebAuthenticationPane.c" - } -} - - -static void -shotwell_plugins_common_web_authentication_pane_class_init (ShotwellPluginsCommonWebAuthenticationPaneClass * klass) -{ -#line 9 "/home/jens/Source/shotwell/plugins/common/WebAuthenticationPane.vala" - shotwell_plugins_common_web_authentication_pane_parent_class = g_type_class_peek_parent (klass); -#line 9 "/home/jens/Source/shotwell/plugins/common/WebAuthenticationPane.vala" - g_type_class_add_private (klass, sizeof (ShotwellPluginsCommonWebAuthenticationPanePrivate)); -#line 9 "/home/jens/Source/shotwell/plugins/common/WebAuthenticationPane.vala" - ((GObjectClass *) klass)->constructed = (void (*) (GObject *)) shotwell_plugins_common_web_authentication_pane_real_constructed; -#line 9 "/home/jens/Source/shotwell/plugins/common/WebAuthenticationPane.vala" - ((ShotwellPluginsCommonWebAuthenticationPaneClass *) klass)->on_page_load = (void (*) (ShotwellPluginsCommonWebAuthenticationPane *)) shotwell_plugins_common_web_authentication_pane_real_on_page_load; -#line 9 "/home/jens/Source/shotwell/plugins/common/WebAuthenticationPane.vala" - G_OBJECT_CLASS (klass)->get_property = _vala_shotwell_plugins_common_web_authentication_pane_get_property; -#line 9 "/home/jens/Source/shotwell/plugins/common/WebAuthenticationPane.vala" - G_OBJECT_CLASS (klass)->set_property = _vala_shotwell_plugins_common_web_authentication_pane_set_property; -#line 9 "/home/jens/Source/shotwell/plugins/common/WebAuthenticationPane.vala" - G_OBJECT_CLASS (klass)->finalize = shotwell_plugins_common_web_authentication_pane_finalize; -#line 9 "/home/jens/Source/shotwell/plugins/common/WebAuthenticationPane.vala" - g_object_class_install_property (G_OBJECT_CLASS (klass), SHOTWELL_PLUGINS_COMMON_WEB_AUTHENTICATION_PANE_PREFERRED_GEOMETRY_PROPERTY, shotwell_plugins_common_web_authentication_pane_properties[SHOTWELL_PLUGINS_COMMON_WEB_AUTHENTICATION_PANE_PREFERRED_GEOMETRY_PROPERTY] = g_param_spec_enum ("preferred-geometry", "preferred-geometry", "preferred-geometry", SPIT_PUBLISHING_DIALOG_PANE_TYPE_GEOMETRY_OPTIONS, SPIT_PUBLISHING_DIALOG_PANE_GEOMETRY_OPTIONS_NONE, G_PARAM_STATIC_STRINGS | G_PARAM_READABLE | G_PARAM_WRITABLE | G_PARAM_CONSTRUCT_ONLY)); -#line 9 "/home/jens/Source/shotwell/plugins/common/WebAuthenticationPane.vala" - g_object_class_install_property (G_OBJECT_CLASS (klass), SHOTWELL_PLUGINS_COMMON_WEB_AUTHENTICATION_PANE_LOGIN_URI_PROPERTY, shotwell_plugins_common_web_authentication_pane_properties[SHOTWELL_PLUGINS_COMMON_WEB_AUTHENTICATION_PANE_LOGIN_URI_PROPERTY] = g_param_spec_string ("login-uri", "login-uri", "login-uri", NULL, G_PARAM_STATIC_STRINGS | G_PARAM_READABLE | G_PARAM_WRITABLE | G_PARAM_CONSTRUCT_ONLY)); -#line 508 "WebAuthenticationPane.c" -} - - -static void -shotwell_plugins_common_web_authentication_pane_spit_publishing_dialog_pane_interface_init (SpitPublishingDialogPaneIface * iface) -{ -#line 9 "/home/jens/Source/shotwell/plugins/common/WebAuthenticationPane.vala" - shotwell_plugins_common_web_authentication_pane_spit_publishing_dialog_pane_parent_iface = g_type_interface_peek_parent (iface); -#line 9 "/home/jens/Source/shotwell/plugins/common/WebAuthenticationPane.vala" - iface->get_preferred_geometry = (SpitPublishingDialogPaneGeometryOptions (*) (SpitPublishingDialogPane *)) shotwell_plugins_common_web_authentication_pane_real_get_preferred_geometry; -#line 9 "/home/jens/Source/shotwell/plugins/common/WebAuthenticationPane.vala" - iface->get_widget = (GtkWidget* (*) (SpitPublishingDialogPane *)) shotwell_plugins_common_web_authentication_pane_real_get_widget; -#line 9 "/home/jens/Source/shotwell/plugins/common/WebAuthenticationPane.vala" - iface->on_pane_installed = (void (*) (SpitPublishingDialogPane *)) shotwell_plugins_common_web_authentication_pane_real_on_pane_installed; -#line 9 "/home/jens/Source/shotwell/plugins/common/WebAuthenticationPane.vala" - iface->on_pane_uninstalled = (void (*) (SpitPublishingDialogPane *)) shotwell_plugins_common_web_authentication_pane_real_on_pane_uninstalled; -#line 525 "WebAuthenticationPane.c" -} - - -static void -shotwell_plugins_common_web_authentication_pane_instance_init (ShotwellPluginsCommonWebAuthenticationPane * self) -{ -#line 9 "/home/jens/Source/shotwell/plugins/common/WebAuthenticationPane.vala" - self->priv = SHOTWELL_PLUGINS_COMMON_WEB_AUTHENTICATION_PANE_GET_PRIVATE (self); -#line 10 "/home/jens/Source/shotwell/plugins/common/WebAuthenticationPane.vala" - self->priv->_preferred_geometry = SPIT_PUBLISHING_DIALOG_PANE_GEOMETRY_OPTIONS_NONE; -#line 536 "WebAuthenticationPane.c" -} - - -static void -shotwell_plugins_common_web_authentication_pane_finalize (GObject * obj) -{ - ShotwellPluginsCommonWebAuthenticationPane * self; -#line 9 "/home/jens/Source/shotwell/plugins/common/WebAuthenticationPane.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, SHOTWELL_PLUGINS_COMMON_TYPE_WEB_AUTHENTICATION_PANE, ShotwellPluginsCommonWebAuthenticationPane); -#line 14 "/home/jens/Source/shotwell/plugins/common/WebAuthenticationPane.vala" - _g_free0 (self->priv->_login_uri); -#line 16 "/home/jens/Source/shotwell/plugins/common/WebAuthenticationPane.vala" - _g_object_unref0 (self->priv->webview); -#line 9 "/home/jens/Source/shotwell/plugins/common/WebAuthenticationPane.vala" - G_OBJECT_CLASS (shotwell_plugins_common_web_authentication_pane_parent_class)->finalize (obj); -#line 552 "WebAuthenticationPane.c" -} - - -GType -shotwell_plugins_common_web_authentication_pane_get_type (void) -{ - static volatile gsize shotwell_plugins_common_web_authentication_pane_type_id__volatile = 0; - if (g_once_init_enter (&shotwell_plugins_common_web_authentication_pane_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (ShotwellPluginsCommonWebAuthenticationPaneClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) shotwell_plugins_common_web_authentication_pane_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (ShotwellPluginsCommonWebAuthenticationPane), 0, (GInstanceInitFunc) shotwell_plugins_common_web_authentication_pane_instance_init, NULL }; - static const GInterfaceInfo spit_publishing_dialog_pane_info = { (GInterfaceInitFunc) shotwell_plugins_common_web_authentication_pane_spit_publishing_dialog_pane_interface_init, (GInterfaceFinalizeFunc) NULL, NULL}; - GType shotwell_plugins_common_web_authentication_pane_type_id; - shotwell_plugins_common_web_authentication_pane_type_id = g_type_register_static (G_TYPE_OBJECT, "ShotwellPluginsCommonWebAuthenticationPane", &g_define_type_info, G_TYPE_FLAG_ABSTRACT); - g_type_add_interface_static (shotwell_plugins_common_web_authentication_pane_type_id, SPIT_PUBLISHING_TYPE_DIALOG_PANE, &spit_publishing_dialog_pane_info); - g_once_init_leave (&shotwell_plugins_common_web_authentication_pane_type_id__volatile, shotwell_plugins_common_web_authentication_pane_type_id); - } - return shotwell_plugins_common_web_authentication_pane_type_id__volatile; -} - - -static void -_vala_shotwell_plugins_common_web_authentication_pane_get_property (GObject * object, - guint property_id, - GValue * value, - GParamSpec * pspec) -{ - ShotwellPluginsCommonWebAuthenticationPane * self; - self = G_TYPE_CHECK_INSTANCE_CAST (object, SHOTWELL_PLUGINS_COMMON_TYPE_WEB_AUTHENTICATION_PANE, ShotwellPluginsCommonWebAuthenticationPane); -#line 9 "/home/jens/Source/shotwell/plugins/common/WebAuthenticationPane.vala" - switch (property_id) { -#line 9 "/home/jens/Source/shotwell/plugins/common/WebAuthenticationPane.vala" - case SHOTWELL_PLUGINS_COMMON_WEB_AUTHENTICATION_PANE_PREFERRED_GEOMETRY_PROPERTY: -#line 9 "/home/jens/Source/shotwell/plugins/common/WebAuthenticationPane.vala" - g_value_set_enum (value, shotwell_plugins_common_web_authentication_pane_get_preferred_geometry (self)); -#line 9 "/home/jens/Source/shotwell/plugins/common/WebAuthenticationPane.vala" - break; -#line 9 "/home/jens/Source/shotwell/plugins/common/WebAuthenticationPane.vala" - case SHOTWELL_PLUGINS_COMMON_WEB_AUTHENTICATION_PANE_LOGIN_URI_PROPERTY: -#line 9 "/home/jens/Source/shotwell/plugins/common/WebAuthenticationPane.vala" - g_value_take_string (value, shotwell_plugins_common_web_authentication_pane_get_login_uri (self)); -#line 9 "/home/jens/Source/shotwell/plugins/common/WebAuthenticationPane.vala" - break; -#line 594 "WebAuthenticationPane.c" - default: -#line 9 "/home/jens/Source/shotwell/plugins/common/WebAuthenticationPane.vala" - G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec); -#line 9 "/home/jens/Source/shotwell/plugins/common/WebAuthenticationPane.vala" - break; -#line 600 "WebAuthenticationPane.c" - } -} - - -static void -_vala_shotwell_plugins_common_web_authentication_pane_set_property (GObject * object, - guint property_id, - const GValue * value, - GParamSpec * pspec) -{ - ShotwellPluginsCommonWebAuthenticationPane * self; - self = G_TYPE_CHECK_INSTANCE_CAST (object, SHOTWELL_PLUGINS_COMMON_TYPE_WEB_AUTHENTICATION_PANE, ShotwellPluginsCommonWebAuthenticationPane); -#line 9 "/home/jens/Source/shotwell/plugins/common/WebAuthenticationPane.vala" - switch (property_id) { -#line 9 "/home/jens/Source/shotwell/plugins/common/WebAuthenticationPane.vala" - case SHOTWELL_PLUGINS_COMMON_WEB_AUTHENTICATION_PANE_PREFERRED_GEOMETRY_PROPERTY: -#line 9 "/home/jens/Source/shotwell/plugins/common/WebAuthenticationPane.vala" - shotwell_plugins_common_web_authentication_pane_set_preferred_geometry (self, g_value_get_enum (value)); -#line 9 "/home/jens/Source/shotwell/plugins/common/WebAuthenticationPane.vala" - break; -#line 9 "/home/jens/Source/shotwell/plugins/common/WebAuthenticationPane.vala" - case SHOTWELL_PLUGINS_COMMON_WEB_AUTHENTICATION_PANE_LOGIN_URI_PROPERTY: -#line 9 "/home/jens/Source/shotwell/plugins/common/WebAuthenticationPane.vala" - shotwell_plugins_common_web_authentication_pane_set_login_uri (self, g_value_get_string (value)); -#line 9 "/home/jens/Source/shotwell/plugins/common/WebAuthenticationPane.vala" - break; -#line 627 "WebAuthenticationPane.c" - default: -#line 9 "/home/jens/Source/shotwell/plugins/common/WebAuthenticationPane.vala" - G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec); -#line 9 "/home/jens/Source/shotwell/plugins/common/WebAuthenticationPane.vala" - break; -#line 633 "WebAuthenticationPane.c" - } -} - - - diff --git a/plugins/meson.build b/plugins/meson.build index 66096c7..9abc0c8 100644 --- a/plugins/meson.build +++ b/plugins/meson.build @@ -18,7 +18,7 @@ sw_plugin_common_dep = declare_dependency(include_directories : include_director subdir('authenticator') subdir('shotwell-publishing') -if get_option('enable-extra-plugins') +if get_option('extra-plugins') subdir('shotwell-publishing-extras') endif subdir('shotwell-transitions') diff --git a/plugins/shotwell-plugin-common.h b/plugins/shotwell-plugin-common.h deleted file mode 100644 index f1561a0..0000000 --- a/plugins/shotwell-plugin-common.h +++ /dev/null @@ -1,670 +0,0 @@ -/* shotwell-plugin-common.h generated by valac 0.40.4, the Vala compiler, do not modify */ - - -#ifndef __PLUGINS_SHOTWELL_PLUGIN_COMMON_H__ -#define __PLUGINS_SHOTWELL_PLUGIN_COMMON_H__ - -#include -#include -#include -#include -#include -#include "shotwell-plugin-dev-1.0.h" -#include -#include -#include -#include -#include -#include -#include - -G_BEGIN_DECLS - - -#define PUBLISHING_REST_SUPPORT_TYPE_SESSION (publishing_rest_support_session_get_type ()) -#define PUBLISHING_REST_SUPPORT_SESSION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_REST_SUPPORT_TYPE_SESSION, PublishingRESTSupportSession)) -#define PUBLISHING_REST_SUPPORT_SESSION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_REST_SUPPORT_TYPE_SESSION, PublishingRESTSupportSessionClass)) -#define PUBLISHING_REST_SUPPORT_IS_SESSION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_REST_SUPPORT_TYPE_SESSION)) -#define PUBLISHING_REST_SUPPORT_IS_SESSION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_REST_SUPPORT_TYPE_SESSION)) -#define PUBLISHING_REST_SUPPORT_SESSION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_REST_SUPPORT_TYPE_SESSION, PublishingRESTSupportSessionClass)) - -typedef struct _PublishingRESTSupportSession PublishingRESTSupportSession; -typedef struct _PublishingRESTSupportSessionClass PublishingRESTSupportSessionClass; -typedef struct _PublishingRESTSupportSessionPrivate PublishingRESTSupportSessionPrivate; - -#define PUBLISHING_REST_SUPPORT_TYPE_HTTP_METHOD (publishing_rest_support_http_method_get_type ()) - -#define PUBLISHING_REST_SUPPORT_TYPE_ARGUMENT (publishing_rest_support_argument_get_type ()) -#define PUBLISHING_REST_SUPPORT_ARGUMENT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_REST_SUPPORT_TYPE_ARGUMENT, PublishingRESTSupportArgument)) -#define PUBLISHING_REST_SUPPORT_ARGUMENT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_REST_SUPPORT_TYPE_ARGUMENT, PublishingRESTSupportArgumentClass)) -#define PUBLISHING_REST_SUPPORT_IS_ARGUMENT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_REST_SUPPORT_TYPE_ARGUMENT)) -#define PUBLISHING_REST_SUPPORT_IS_ARGUMENT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_REST_SUPPORT_TYPE_ARGUMENT)) -#define PUBLISHING_REST_SUPPORT_ARGUMENT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_REST_SUPPORT_TYPE_ARGUMENT, PublishingRESTSupportArgumentClass)) - -typedef struct _PublishingRESTSupportArgument PublishingRESTSupportArgument; -typedef struct _PublishingRESTSupportArgumentClass PublishingRESTSupportArgumentClass; -typedef struct _PublishingRESTSupportArgumentPrivate PublishingRESTSupportArgumentPrivate; - -#define PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION (publishing_rest_support_transaction_get_type ()) -#define PUBLISHING_REST_SUPPORT_TRANSACTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction)) -#define PUBLISHING_REST_SUPPORT_TRANSACTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransactionClass)) -#define PUBLISHING_REST_SUPPORT_IS_TRANSACTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION)) -#define PUBLISHING_REST_SUPPORT_IS_TRANSACTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION)) -#define PUBLISHING_REST_SUPPORT_TRANSACTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransactionClass)) - -typedef struct _PublishingRESTSupportTransaction PublishingRESTSupportTransaction; -typedef struct _PublishingRESTSupportTransactionClass PublishingRESTSupportTransactionClass; -typedef struct _PublishingRESTSupportTransactionPrivate PublishingRESTSupportTransactionPrivate; - -#define PUBLISHING_REST_SUPPORT_TYPE_UPLOAD_TRANSACTION (publishing_rest_support_upload_transaction_get_type ()) -#define PUBLISHING_REST_SUPPORT_UPLOAD_TRANSACTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_REST_SUPPORT_TYPE_UPLOAD_TRANSACTION, PublishingRESTSupportUploadTransaction)) -#define PUBLISHING_REST_SUPPORT_UPLOAD_TRANSACTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_REST_SUPPORT_TYPE_UPLOAD_TRANSACTION, PublishingRESTSupportUploadTransactionClass)) -#define PUBLISHING_REST_SUPPORT_IS_UPLOAD_TRANSACTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_REST_SUPPORT_TYPE_UPLOAD_TRANSACTION)) -#define PUBLISHING_REST_SUPPORT_IS_UPLOAD_TRANSACTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_REST_SUPPORT_TYPE_UPLOAD_TRANSACTION)) -#define PUBLISHING_REST_SUPPORT_UPLOAD_TRANSACTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_REST_SUPPORT_TYPE_UPLOAD_TRANSACTION, PublishingRESTSupportUploadTransactionClass)) - -typedef struct _PublishingRESTSupportUploadTransaction PublishingRESTSupportUploadTransaction; -typedef struct _PublishingRESTSupportUploadTransactionClass PublishingRESTSupportUploadTransactionClass; -typedef struct _PublishingRESTSupportUploadTransactionPrivate PublishingRESTSupportUploadTransactionPrivate; - -#define PUBLISHING_REST_SUPPORT_TYPE_XML_DOCUMENT (publishing_rest_support_xml_document_get_type ()) -#define PUBLISHING_REST_SUPPORT_XML_DOCUMENT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_REST_SUPPORT_TYPE_XML_DOCUMENT, PublishingRESTSupportXmlDocument)) -#define PUBLISHING_REST_SUPPORT_XML_DOCUMENT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_REST_SUPPORT_TYPE_XML_DOCUMENT, PublishingRESTSupportXmlDocumentClass)) -#define PUBLISHING_REST_SUPPORT_IS_XML_DOCUMENT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_REST_SUPPORT_TYPE_XML_DOCUMENT)) -#define PUBLISHING_REST_SUPPORT_IS_XML_DOCUMENT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_REST_SUPPORT_TYPE_XML_DOCUMENT)) -#define PUBLISHING_REST_SUPPORT_XML_DOCUMENT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_REST_SUPPORT_TYPE_XML_DOCUMENT, PublishingRESTSupportXmlDocumentClass)) - -typedef struct _PublishingRESTSupportXmlDocument PublishingRESTSupportXmlDocument; -typedef struct _PublishingRESTSupportXmlDocumentClass PublishingRESTSupportXmlDocumentClass; -typedef struct _PublishingRESTSupportXmlDocumentPrivate PublishingRESTSupportXmlDocumentPrivate; - -#define PUBLISHING_REST_SUPPORT_TYPE_BATCH_UPLOADER (publishing_rest_support_batch_uploader_get_type ()) -#define PUBLISHING_REST_SUPPORT_BATCH_UPLOADER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_REST_SUPPORT_TYPE_BATCH_UPLOADER, PublishingRESTSupportBatchUploader)) -#define PUBLISHING_REST_SUPPORT_BATCH_UPLOADER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_REST_SUPPORT_TYPE_BATCH_UPLOADER, PublishingRESTSupportBatchUploaderClass)) -#define PUBLISHING_REST_SUPPORT_IS_BATCH_UPLOADER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_REST_SUPPORT_TYPE_BATCH_UPLOADER)) -#define PUBLISHING_REST_SUPPORT_IS_BATCH_UPLOADER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_REST_SUPPORT_TYPE_BATCH_UPLOADER)) -#define PUBLISHING_REST_SUPPORT_BATCH_UPLOADER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_REST_SUPPORT_TYPE_BATCH_UPLOADER, PublishingRESTSupportBatchUploaderClass)) - -typedef struct _PublishingRESTSupportBatchUploader PublishingRESTSupportBatchUploader; -typedef struct _PublishingRESTSupportBatchUploaderClass PublishingRESTSupportBatchUploaderClass; -typedef struct _PublishingRESTSupportBatchUploaderPrivate PublishingRESTSupportBatchUploaderPrivate; - -#define PUBLISHING_REST_SUPPORT_TYPE_GOOGLE_SESSION (publishing_rest_support_google_session_get_type ()) -#define PUBLISHING_REST_SUPPORT_GOOGLE_SESSION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_REST_SUPPORT_TYPE_GOOGLE_SESSION, PublishingRESTSupportGoogleSession)) -#define PUBLISHING_REST_SUPPORT_GOOGLE_SESSION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_REST_SUPPORT_TYPE_GOOGLE_SESSION, PublishingRESTSupportGoogleSessionClass)) -#define PUBLISHING_REST_SUPPORT_IS_GOOGLE_SESSION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_REST_SUPPORT_TYPE_GOOGLE_SESSION)) -#define PUBLISHING_REST_SUPPORT_IS_GOOGLE_SESSION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_REST_SUPPORT_TYPE_GOOGLE_SESSION)) -#define PUBLISHING_REST_SUPPORT_GOOGLE_SESSION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_REST_SUPPORT_TYPE_GOOGLE_SESSION, PublishingRESTSupportGoogleSessionClass)) - -typedef struct _PublishingRESTSupportGoogleSession PublishingRESTSupportGoogleSession; -typedef struct _PublishingRESTSupportGoogleSessionClass PublishingRESTSupportGoogleSessionClass; -typedef struct _PublishingRESTSupportGoogleSessionPrivate PublishingRESTSupportGoogleSessionPrivate; - -#define PUBLISHING_REST_SUPPORT_TYPE_GOOGLE_PUBLISHER (publishing_rest_support_google_publisher_get_type ()) -#define PUBLISHING_REST_SUPPORT_GOOGLE_PUBLISHER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_REST_SUPPORT_TYPE_GOOGLE_PUBLISHER, PublishingRESTSupportGooglePublisher)) -#define PUBLISHING_REST_SUPPORT_GOOGLE_PUBLISHER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_REST_SUPPORT_TYPE_GOOGLE_PUBLISHER, PublishingRESTSupportGooglePublisherClass)) -#define PUBLISHING_REST_SUPPORT_IS_GOOGLE_PUBLISHER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_REST_SUPPORT_TYPE_GOOGLE_PUBLISHER)) -#define PUBLISHING_REST_SUPPORT_IS_GOOGLE_PUBLISHER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_REST_SUPPORT_TYPE_GOOGLE_PUBLISHER)) -#define PUBLISHING_REST_SUPPORT_GOOGLE_PUBLISHER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_REST_SUPPORT_TYPE_GOOGLE_PUBLISHER, PublishingRESTSupportGooglePublisherClass)) - -typedef struct _PublishingRESTSupportGooglePublisher PublishingRESTSupportGooglePublisher; -typedef struct _PublishingRESTSupportGooglePublisherClass PublishingRESTSupportGooglePublisherClass; -typedef struct _PublishingRESTSupportGooglePublisherPrivate PublishingRESTSupportGooglePublisherPrivate; - -#define PUBLISHING_REST_SUPPORT_GOOGLE_PUBLISHER_TYPE_AUTHENTICATED_TRANSACTION (publishing_rest_support_google_publisher_authenticated_transaction_get_type ()) -#define PUBLISHING_REST_SUPPORT_GOOGLE_PUBLISHER_AUTHENTICATED_TRANSACTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_REST_SUPPORT_GOOGLE_PUBLISHER_TYPE_AUTHENTICATED_TRANSACTION, PublishingRESTSupportGooglePublisherAuthenticatedTransaction)) -#define PUBLISHING_REST_SUPPORT_GOOGLE_PUBLISHER_AUTHENTICATED_TRANSACTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_REST_SUPPORT_GOOGLE_PUBLISHER_TYPE_AUTHENTICATED_TRANSACTION, PublishingRESTSupportGooglePublisherAuthenticatedTransactionClass)) -#define PUBLISHING_REST_SUPPORT_GOOGLE_PUBLISHER_IS_AUTHENTICATED_TRANSACTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_REST_SUPPORT_GOOGLE_PUBLISHER_TYPE_AUTHENTICATED_TRANSACTION)) -#define PUBLISHING_REST_SUPPORT_GOOGLE_PUBLISHER_IS_AUTHENTICATED_TRANSACTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_REST_SUPPORT_GOOGLE_PUBLISHER_TYPE_AUTHENTICATED_TRANSACTION)) -#define PUBLISHING_REST_SUPPORT_GOOGLE_PUBLISHER_AUTHENTICATED_TRANSACTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_REST_SUPPORT_GOOGLE_PUBLISHER_TYPE_AUTHENTICATED_TRANSACTION, PublishingRESTSupportGooglePublisherAuthenticatedTransactionClass)) - -typedef struct _PublishingRESTSupportGooglePublisherAuthenticatedTransaction PublishingRESTSupportGooglePublisherAuthenticatedTransaction; -typedef struct _PublishingRESTSupportGooglePublisherAuthenticatedTransactionClass PublishingRESTSupportGooglePublisherAuthenticatedTransactionClass; -typedef struct _PublishingRESTSupportGooglePublisherAuthenticatedTransactionPrivate PublishingRESTSupportGooglePublisherAuthenticatedTransactionPrivate; - -#define PUBLISHING_REST_SUPPORT_OAUTH1_TYPE_SESSION (publishing_rest_support_oauth1_session_get_type ()) -#define PUBLISHING_REST_SUPPORT_OAUTH1_SESSION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_REST_SUPPORT_OAUTH1_TYPE_SESSION, PublishingRESTSupportOAuth1Session)) -#define PUBLISHING_REST_SUPPORT_OAUTH1_SESSION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_REST_SUPPORT_OAUTH1_TYPE_SESSION, PublishingRESTSupportOAuth1SessionClass)) -#define PUBLISHING_REST_SUPPORT_OAUTH1_IS_SESSION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_REST_SUPPORT_OAUTH1_TYPE_SESSION)) -#define PUBLISHING_REST_SUPPORT_OAUTH1_IS_SESSION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_REST_SUPPORT_OAUTH1_TYPE_SESSION)) -#define PUBLISHING_REST_SUPPORT_OAUTH1_SESSION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_REST_SUPPORT_OAUTH1_TYPE_SESSION, PublishingRESTSupportOAuth1SessionClass)) - -typedef struct _PublishingRESTSupportOAuth1Session PublishingRESTSupportOAuth1Session; -typedef struct _PublishingRESTSupportOAuth1SessionClass PublishingRESTSupportOAuth1SessionClass; -typedef struct _PublishingRESTSupportOAuth1SessionPrivate PublishingRESTSupportOAuth1SessionPrivate; - -#define PUBLISHING_REST_SUPPORT_OAUTH1_TYPE_TRANSACTION (publishing_rest_support_oauth1_transaction_get_type ()) -#define PUBLISHING_REST_SUPPORT_OAUTH1_TRANSACTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_REST_SUPPORT_OAUTH1_TYPE_TRANSACTION, PublishingRESTSupportOAuth1Transaction)) -#define PUBLISHING_REST_SUPPORT_OAUTH1_TRANSACTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_REST_SUPPORT_OAUTH1_TYPE_TRANSACTION, PublishingRESTSupportOAuth1TransactionClass)) -#define PUBLISHING_REST_SUPPORT_OAUTH1_IS_TRANSACTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_REST_SUPPORT_OAUTH1_TYPE_TRANSACTION)) -#define PUBLISHING_REST_SUPPORT_OAUTH1_IS_TRANSACTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_REST_SUPPORT_OAUTH1_TYPE_TRANSACTION)) -#define PUBLISHING_REST_SUPPORT_OAUTH1_TRANSACTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_REST_SUPPORT_OAUTH1_TYPE_TRANSACTION, PublishingRESTSupportOAuth1TransactionClass)) - -typedef struct _PublishingRESTSupportOAuth1Transaction PublishingRESTSupportOAuth1Transaction; -typedef struct _PublishingRESTSupportOAuth1TransactionClass PublishingRESTSupportOAuth1TransactionClass; -typedef struct _PublishingRESTSupportOAuth1TransactionPrivate PublishingRESTSupportOAuth1TransactionPrivate; - -#define PUBLISHING_REST_SUPPORT_OAUTH1_TYPE_UPLOAD_TRANSACTION (publishing_rest_support_oauth1_upload_transaction_get_type ()) -#define PUBLISHING_REST_SUPPORT_OAUTH1_UPLOAD_TRANSACTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_REST_SUPPORT_OAUTH1_TYPE_UPLOAD_TRANSACTION, PublishingRESTSupportOAuth1UploadTransaction)) -#define PUBLISHING_REST_SUPPORT_OAUTH1_UPLOAD_TRANSACTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_REST_SUPPORT_OAUTH1_TYPE_UPLOAD_TRANSACTION, PublishingRESTSupportOAuth1UploadTransactionClass)) -#define PUBLISHING_REST_SUPPORT_OAUTH1_IS_UPLOAD_TRANSACTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_REST_SUPPORT_OAUTH1_TYPE_UPLOAD_TRANSACTION)) -#define PUBLISHING_REST_SUPPORT_OAUTH1_IS_UPLOAD_TRANSACTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_REST_SUPPORT_OAUTH1_TYPE_UPLOAD_TRANSACTION)) -#define PUBLISHING_REST_SUPPORT_OAUTH1_UPLOAD_TRANSACTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_REST_SUPPORT_OAUTH1_TYPE_UPLOAD_TRANSACTION, PublishingRESTSupportOAuth1UploadTransactionClass)) - -typedef struct _PublishingRESTSupportOAuth1UploadTransaction PublishingRESTSupportOAuth1UploadTransaction; -typedef struct _PublishingRESTSupportOAuth1UploadTransactionClass PublishingRESTSupportOAuth1UploadTransactionClass; -typedef struct _PublishingRESTSupportOAuth1UploadTransactionPrivate PublishingRESTSupportOAuth1UploadTransactionPrivate; - -#define SHOTWELL_PLUGINS_COMMON_TYPE_WEB_AUTHENTICATION_PANE (shotwell_plugins_common_web_authentication_pane_get_type ()) -#define SHOTWELL_PLUGINS_COMMON_WEB_AUTHENTICATION_PANE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SHOTWELL_PLUGINS_COMMON_TYPE_WEB_AUTHENTICATION_PANE, ShotwellPluginsCommonWebAuthenticationPane)) -#define SHOTWELL_PLUGINS_COMMON_WEB_AUTHENTICATION_PANE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), SHOTWELL_PLUGINS_COMMON_TYPE_WEB_AUTHENTICATION_PANE, ShotwellPluginsCommonWebAuthenticationPaneClass)) -#define SHOTWELL_PLUGINS_COMMON_IS_WEB_AUTHENTICATION_PANE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SHOTWELL_PLUGINS_COMMON_TYPE_WEB_AUTHENTICATION_PANE)) -#define SHOTWELL_PLUGINS_COMMON_IS_WEB_AUTHENTICATION_PANE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), SHOTWELL_PLUGINS_COMMON_TYPE_WEB_AUTHENTICATION_PANE)) -#define SHOTWELL_PLUGINS_COMMON_WEB_AUTHENTICATION_PANE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), SHOTWELL_PLUGINS_COMMON_TYPE_WEB_AUTHENTICATION_PANE, ShotwellPluginsCommonWebAuthenticationPaneClass)) - -typedef struct _ShotwellPluginsCommonWebAuthenticationPane ShotwellPluginsCommonWebAuthenticationPane; -typedef struct _ShotwellPluginsCommonWebAuthenticationPaneClass ShotwellPluginsCommonWebAuthenticationPaneClass; -typedef struct _ShotwellPluginsCommonWebAuthenticationPanePrivate ShotwellPluginsCommonWebAuthenticationPanePrivate; - -#define SHOTWELL_PLUGINS_COMMON_TYPE_BUILDER_PANE (shotwell_plugins_common_builder_pane_get_type ()) -#define SHOTWELL_PLUGINS_COMMON_BUILDER_PANE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SHOTWELL_PLUGINS_COMMON_TYPE_BUILDER_PANE, ShotwellPluginsCommonBuilderPane)) -#define SHOTWELL_PLUGINS_COMMON_BUILDER_PANE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), SHOTWELL_PLUGINS_COMMON_TYPE_BUILDER_PANE, ShotwellPluginsCommonBuilderPaneClass)) -#define SHOTWELL_PLUGINS_COMMON_IS_BUILDER_PANE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SHOTWELL_PLUGINS_COMMON_TYPE_BUILDER_PANE)) -#define SHOTWELL_PLUGINS_COMMON_IS_BUILDER_PANE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), SHOTWELL_PLUGINS_COMMON_TYPE_BUILDER_PANE)) -#define SHOTWELL_PLUGINS_COMMON_BUILDER_PANE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), SHOTWELL_PLUGINS_COMMON_TYPE_BUILDER_PANE, ShotwellPluginsCommonBuilderPaneClass)) - -typedef struct _ShotwellPluginsCommonBuilderPane ShotwellPluginsCommonBuilderPane; -typedef struct _ShotwellPluginsCommonBuilderPaneClass ShotwellPluginsCommonBuilderPaneClass; -typedef struct _ShotwellPluginsCommonBuilderPanePrivate ShotwellPluginsCommonBuilderPanePrivate; - -struct _PublishingRESTSupportSession { - GTypeInstance parent_instance; - volatile int ref_count; - PublishingRESTSupportSessionPrivate * priv; -}; - -struct _PublishingRESTSupportSessionClass { - GTypeClass parent_class; - void (*finalize) (PublishingRESTSupportSession *self); - gboolean (*is_authenticated) (PublishingRESTSupportSession* self); -}; - -typedef enum { - PUBLISHING_REST_SUPPORT_HTTP_METHOD_GET, - PUBLISHING_REST_SUPPORT_HTTP_METHOD_POST, - PUBLISHING_REST_SUPPORT_HTTP_METHOD_PUT -} PublishingRESTSupportHttpMethod; - -struct _PublishingRESTSupportArgument { - GTypeInstance parent_instance; - volatile int ref_count; - PublishingRESTSupportArgumentPrivate * priv; - gchar* key; - gchar* value; -}; - -struct _PublishingRESTSupportArgumentClass { - GTypeClass parent_class; - void (*finalize) (PublishingRESTSupportArgument *self); -}; - -struct _PublishingRESTSupportTransaction { - GTypeInstance parent_instance; - volatile int ref_count; - PublishingRESTSupportTransactionPrivate * priv; -}; - -struct _PublishingRESTSupportTransactionClass { - GTypeClass parent_class; - void (*finalize) (PublishingRESTSupportTransaction *self); - void (*add_header) (PublishingRESTSupportTransaction* self, const gchar* key, const gchar* value); - void (*execute) (PublishingRESTSupportTransaction* self, GError** error); -}; - -struct _PublishingRESTSupportUploadTransaction { - PublishingRESTSupportTransaction parent_instance; - PublishingRESTSupportUploadTransactionPrivate * priv; - GHashTable* binary_disposition_table; - SpitPublishingPublishable* publishable; - gchar* mime_type; - GeeHashMap* message_headers; -}; - -struct _PublishingRESTSupportUploadTransactionClass { - PublishingRESTSupportTransactionClass parent_class; -}; - -struct _PublishingRESTSupportXmlDocument { - GTypeInstance parent_instance; - volatile int ref_count; - PublishingRESTSupportXmlDocumentPrivate * priv; -}; - -struct _PublishingRESTSupportXmlDocumentClass { - GTypeClass parent_class; - void (*finalize) (PublishingRESTSupportXmlDocument *self); -}; - -typedef gchar* (*PublishingRESTSupportXmlDocumentCheckForErrorResponse) (PublishingRESTSupportXmlDocument* doc, void* user_data); -struct _PublishingRESTSupportBatchUploader { - GTypeInstance parent_instance; - volatile int ref_count; - PublishingRESTSupportBatchUploaderPrivate * priv; -}; - -struct _PublishingRESTSupportBatchUploaderClass { - GTypeClass parent_class; - void (*finalize) (PublishingRESTSupportBatchUploader *self); - PublishingRESTSupportTransaction* (*create_transaction) (PublishingRESTSupportBatchUploader* self, SpitPublishingPublishable* publishable); -}; - -struct _PublishingRESTSupportGoogleSession { - PublishingRESTSupportSession parent_instance; - PublishingRESTSupportGoogleSessionPrivate * priv; -}; - -struct _PublishingRESTSupportGoogleSessionClass { - PublishingRESTSupportSessionClass parent_class; - gchar* (*get_user_name) (PublishingRESTSupportGoogleSession* self); - gchar* (*get_access_token) (PublishingRESTSupportGoogleSession* self); - void (*deauthenticate) (PublishingRESTSupportGoogleSession* self); -}; - -struct _PublishingRESTSupportGooglePublisher { - GObject parent_instance; - PublishingRESTSupportGooglePublisherPrivate * priv; -}; - -struct _PublishingRESTSupportGooglePublisherClass { - GObjectClass parent_class; - SpitPublishingAuthenticator* (*get_authenticator) (PublishingRESTSupportGooglePublisher* self); - void (*on_login_flow_complete) (PublishingRESTSupportGooglePublisher* self); - void (*do_logout) (PublishingRESTSupportGooglePublisher* self); - gboolean (*is_running) (PublishingRESTSupportGooglePublisher* self); - void (*start) (PublishingRESTSupportGooglePublisher* self); - void (*stop) (PublishingRESTSupportGooglePublisher* self); -}; - -struct _PublishingRESTSupportGooglePublisherAuthenticatedTransaction { - PublishingRESTSupportTransaction parent_instance; - PublishingRESTSupportGooglePublisherAuthenticatedTransactionPrivate * priv; -}; - -struct _PublishingRESTSupportGooglePublisherAuthenticatedTransactionClass { - PublishingRESTSupportTransactionClass parent_class; -}; - -struct _PublishingRESTSupportOAuth1Session { - PublishingRESTSupportSession parent_instance; - PublishingRESTSupportOAuth1SessionPrivate * priv; -}; - -struct _PublishingRESTSupportOAuth1SessionClass { - PublishingRESTSupportSessionClass parent_class; -}; - -struct _PublishingRESTSupportOAuth1Transaction { - PublishingRESTSupportTransaction parent_instance; - PublishingRESTSupportOAuth1TransactionPrivate * priv; -}; - -struct _PublishingRESTSupportOAuth1TransactionClass { - PublishingRESTSupportTransactionClass parent_class; -}; - -struct _PublishingRESTSupportOAuth1UploadTransaction { - PublishingRESTSupportUploadTransaction parent_instance; - PublishingRESTSupportOAuth1UploadTransactionPrivate * priv; - PublishingRESTSupportOAuth1Session* session; -}; - -struct _PublishingRESTSupportOAuth1UploadTransactionClass { - PublishingRESTSupportUploadTransactionClass parent_class; -}; - -struct _ShotwellPluginsCommonWebAuthenticationPane { - GObject parent_instance; - ShotwellPluginsCommonWebAuthenticationPanePrivate * priv; -}; - -struct _ShotwellPluginsCommonWebAuthenticationPaneClass { - GObjectClass parent_class; - void (*on_page_load) (ShotwellPluginsCommonWebAuthenticationPane* self); -}; - -struct _ShotwellPluginsCommonBuilderPane { - GObject parent_instance; - ShotwellPluginsCommonBuilderPanePrivate * priv; -}; - -struct _ShotwellPluginsCommonBuilderPaneClass { - GObjectClass parent_class; - GtkWidget* (*get_default_widget) (ShotwellPluginsCommonBuilderPane* self); - void (*on_pane_installed) (ShotwellPluginsCommonBuilderPane* self); - void (*on_pane_uninstalled) (ShotwellPluginsCommonBuilderPane* self); -}; - - -gchar* publishing_rest_support_hmac_sha1 (const gchar* key, - const gchar* message); -gpointer publishing_rest_support_session_ref (gpointer instance); -void publishing_rest_support_session_unref (gpointer instance); -GParamSpec* publishing_rest_support_param_spec_session (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void publishing_rest_support_value_set_session (GValue* value, - gpointer v_object); -void publishing_rest_support_value_take_session (GValue* value, - gpointer v_object); -gpointer publishing_rest_support_value_get_session (const GValue* value); -GType publishing_rest_support_session_get_type (void) G_GNUC_CONST; -PublishingRESTSupportSession* publishing_rest_support_session_construct (GType object_type, - const gchar* endpoint_url); -void publishing_rest_support_session_notify_wire_message_unqueued (PublishingRESTSupportSession* self, - SoupMessage* message); -void publishing_rest_support_session_notify_authenticated (PublishingRESTSupportSession* self); -void publishing_rest_support_session_notify_authentication_failed (PublishingRESTSupportSession* self, - GError* err); -gboolean publishing_rest_support_session_is_authenticated (PublishingRESTSupportSession* self); -gchar* publishing_rest_support_session_get_endpoint_url (PublishingRESTSupportSession* self); -void publishing_rest_support_session_stop_transactions (PublishingRESTSupportSession* self); -gboolean publishing_rest_support_session_are_transactions_stopped (PublishingRESTSupportSession* self); -void publishing_rest_support_session_send_wire_message (PublishingRESTSupportSession* self, - SoupMessage* message); -void publishing_rest_support_session_set_insecure (PublishingRESTSupportSession* self); -GType publishing_rest_support_http_method_get_type (void) G_GNUC_CONST; -gchar* publishing_rest_support_http_method_to_string (PublishingRESTSupportHttpMethod self); -PublishingRESTSupportHttpMethod publishing_rest_support_http_method_from_string (const gchar* str); -gpointer publishing_rest_support_argument_ref (gpointer instance); -void publishing_rest_support_argument_unref (gpointer instance); -GParamSpec* publishing_rest_support_param_spec_argument (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void publishing_rest_support_value_set_argument (GValue* value, - gpointer v_object); -void publishing_rest_support_value_take_argument (GValue* value, - gpointer v_object); -gpointer publishing_rest_support_value_get_argument (const GValue* value); -GType publishing_rest_support_argument_get_type (void) G_GNUC_CONST; -PublishingRESTSupportArgument* publishing_rest_support_argument_new (const gchar* key, - const gchar* value); -PublishingRESTSupportArgument* publishing_rest_support_argument_construct (GType object_type, - const gchar* key, - const gchar* value); -gchar* publishing_rest_support_argument_serialize_list (PublishingRESTSupportArgument** args, - int args_length1, - gboolean escape, - const gchar* separator); -gint publishing_rest_support_argument_compare (PublishingRESTSupportArgument* arg1, - PublishingRESTSupportArgument* arg2); -PublishingRESTSupportArgument** publishing_rest_support_argument_sort (PublishingRESTSupportArgument** inputArray, - int inputArray_length1, - int* result_length1); -gchar* publishing_rest_support_argument_to_string (PublishingRESTSupportArgument* self, - gboolean escape); -gpointer publishing_rest_support_transaction_ref (gpointer instance); -void publishing_rest_support_transaction_unref (gpointer instance); -GParamSpec* publishing_rest_support_param_spec_transaction (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void publishing_rest_support_value_set_transaction (GValue* value, - gpointer v_object); -void publishing_rest_support_value_take_transaction (GValue* value, - gpointer v_object); -gpointer publishing_rest_support_value_get_transaction (const GValue* value); -GType publishing_rest_support_transaction_get_type (void) G_GNUC_CONST; -PublishingRESTSupportTransaction* publishing_rest_support_transaction_new (PublishingRESTSupportSession* parent_session, - PublishingRESTSupportHttpMethod method); -PublishingRESTSupportTransaction* publishing_rest_support_transaction_construct (GType object_type, - PublishingRESTSupportSession* parent_session, - PublishingRESTSupportHttpMethod method); -PublishingRESTSupportTransaction* publishing_rest_support_transaction_new_with_endpoint_url (PublishingRESTSupportSession* parent_session, - const gchar* endpoint_url, - PublishingRESTSupportHttpMethod method); -PublishingRESTSupportTransaction* publishing_rest_support_transaction_construct_with_endpoint_url (GType object_type, - PublishingRESTSupportSession* parent_session, - const gchar* endpoint_url, - PublishingRESTSupportHttpMethod method); -gchar* publishing_rest_support_transaction_detailed_error_from_tls_flags (PublishingRESTSupportTransaction* self, - GTlsCertificate* * cert); -void publishing_rest_support_transaction_check_response (PublishingRESTSupportTransaction* self, - SoupMessage* message, - GError** error); -PublishingRESTSupportArgument** publishing_rest_support_transaction_get_arguments (PublishingRESTSupportTransaction* self, - int* result_length1); -PublishingRESTSupportArgument** publishing_rest_support_transaction_get_sorted_arguments (PublishingRESTSupportTransaction* self, - int* result_length1); -void publishing_rest_support_transaction_set_is_executed (PublishingRESTSupportTransaction* self, - gboolean is_executed); -void publishing_rest_support_transaction_send (PublishingRESTSupportTransaction* self, - GError** error); -PublishingRESTSupportHttpMethod publishing_rest_support_transaction_get_method (PublishingRESTSupportTransaction* self); -void publishing_rest_support_transaction_add_header (PublishingRESTSupportTransaction* self, - const gchar* key, - const gchar* value); -void publishing_rest_support_transaction_set_custom_payload (PublishingRESTSupportTransaction* self, - const gchar* custom_payload, - const gchar* payload_content_type, - gulong payload_length); -void publishing_rest_support_transaction_set_message (PublishingRESTSupportTransaction* self, - SoupMessage* message); -gboolean publishing_rest_support_transaction_get_is_executed (PublishingRESTSupportTransaction* self); -guint publishing_rest_support_transaction_get_status_code (PublishingRESTSupportTransaction* self); -void publishing_rest_support_transaction_execute (PublishingRESTSupportTransaction* self, - GError** error); -gchar* publishing_rest_support_transaction_get_response (PublishingRESTSupportTransaction* self); -SoupMessageHeaders* publishing_rest_support_transaction_get_response_headers (PublishingRESTSupportTransaction* self); -SoupMessage* publishing_rest_support_transaction_get_message (PublishingRESTSupportTransaction* self); -void publishing_rest_support_transaction_add_argument (PublishingRESTSupportTransaction* self, - const gchar* name, - const gchar* value); -gchar* publishing_rest_support_transaction_get_endpoint_url (PublishingRESTSupportTransaction* self); -PublishingRESTSupportSession* publishing_rest_support_transaction_get_parent_session (PublishingRESTSupportTransaction* self); -GType publishing_rest_support_upload_transaction_get_type (void) G_GNUC_CONST; -PublishingRESTSupportUploadTransaction* publishing_rest_support_upload_transaction_new (PublishingRESTSupportSession* session, - SpitPublishingPublishable* publishable); -PublishingRESTSupportUploadTransaction* publishing_rest_support_upload_transaction_construct (GType object_type, - PublishingRESTSupportSession* session, - SpitPublishingPublishable* publishable); -PublishingRESTSupportUploadTransaction* publishing_rest_support_upload_transaction_new_with_endpoint_url (PublishingRESTSupportSession* session, - SpitPublishingPublishable* publishable, - const gchar* endpoint_url); -PublishingRESTSupportUploadTransaction* publishing_rest_support_upload_transaction_construct_with_endpoint_url (GType object_type, - PublishingRESTSupportSession* session, - SpitPublishingPublishable* publishable, - const gchar* endpoint_url); -void publishing_rest_support_upload_transaction_set_binary_disposition_table (PublishingRESTSupportUploadTransaction* self, - GHashTable* new_disp_table); -gpointer publishing_rest_support_xml_document_ref (gpointer instance); -void publishing_rest_support_xml_document_unref (gpointer instance); -GParamSpec* publishing_rest_support_param_spec_xml_document (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void publishing_rest_support_value_set_xml_document (GValue* value, - gpointer v_object); -void publishing_rest_support_value_take_xml_document (GValue* value, - gpointer v_object); -gpointer publishing_rest_support_value_get_xml_document (const GValue* value); -GType publishing_rest_support_xml_document_get_type (void) G_GNUC_CONST; -xmlNode* publishing_rest_support_xml_document_get_root_node (PublishingRESTSupportXmlDocument* self); -xmlNode* publishing_rest_support_xml_document_get_named_child (PublishingRESTSupportXmlDocument* self, - xmlNode* parent, - const gchar* child_name, - GError** error); -gchar* publishing_rest_support_xml_document_get_property_value (PublishingRESTSupportXmlDocument* self, - xmlNode* node, - const gchar* property_key, - GError** error); -PublishingRESTSupportXmlDocument* publishing_rest_support_xml_document_parse_string (const gchar* input_string, - PublishingRESTSupportXmlDocumentCheckForErrorResponse check_for_error_response, - void* check_for_error_response_target, - GError** error); -gchar* publishing_rest_support_decimal_entity_encode (const gchar* source); -gpointer publishing_rest_support_batch_uploader_ref (gpointer instance); -void publishing_rest_support_batch_uploader_unref (gpointer instance); -GParamSpec* publishing_rest_support_param_spec_batch_uploader (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void publishing_rest_support_value_set_batch_uploader (GValue* value, - gpointer v_object); -void publishing_rest_support_value_take_batch_uploader (GValue* value, - gpointer v_object); -gpointer publishing_rest_support_value_get_batch_uploader (const GValue* value); -GType publishing_rest_support_batch_uploader_get_type (void) G_GNUC_CONST; -PublishingRESTSupportBatchUploader* publishing_rest_support_batch_uploader_construct (GType object_type, - PublishingRESTSupportSession* session, - SpitPublishingPublishable** publishables, - int publishables_length1); -PublishingRESTSupportSession* publishing_rest_support_batch_uploader_get_session (PublishingRESTSupportBatchUploader* self); -SpitPublishingPublishable* publishing_rest_support_batch_uploader_get_current_publishable (PublishingRESTSupportBatchUploader* self); -PublishingRESTSupportTransaction* publishing_rest_support_batch_uploader_create_transaction (PublishingRESTSupportBatchUploader* self, - SpitPublishingPublishable* publishable); -void publishing_rest_support_batch_uploader_upload (PublishingRESTSupportBatchUploader* self, - SpitPublishingProgressCallback status_updated, - void* status_updated_target); -gchar* publishing_rest_support_asciify_string (const gchar* s); -GType publishing_rest_support_google_session_get_type (void) G_GNUC_CONST; -gchar* publishing_rest_support_google_session_get_user_name (PublishingRESTSupportGoogleSession* self); -gchar* publishing_rest_support_google_session_get_access_token (PublishingRESTSupportGoogleSession* self); -void publishing_rest_support_google_session_deauthenticate (PublishingRESTSupportGoogleSession* self); -PublishingRESTSupportGoogleSession* publishing_rest_support_google_session_construct (GType object_type); -GType publishing_rest_support_google_publisher_get_type (void) G_GNUC_CONST; -PublishingRESTSupportGooglePublisher* publishing_rest_support_google_publisher_construct (GType object_type, - SpitPublishingService* service, - SpitPublishingPluginHost* host, - const gchar* scope); -SpitPublishingAuthenticator* publishing_rest_support_google_publisher_get_authenticator (PublishingRESTSupportGooglePublisher* self); -SpitPublishingPluginHost* publishing_rest_support_google_publisher_get_host (PublishingRESTSupportGooglePublisher* self); -PublishingRESTSupportGoogleSession* publishing_rest_support_google_publisher_get_session (PublishingRESTSupportGooglePublisher* self); -void publishing_rest_support_google_publisher_on_login_flow_complete (PublishingRESTSupportGooglePublisher* self); -void publishing_rest_support_google_publisher_do_logout (PublishingRESTSupportGooglePublisher* self); -gboolean publishing_rest_support_google_publisher_is_running (PublishingRESTSupportGooglePublisher* self); -void publishing_rest_support_google_publisher_start (PublishingRESTSupportGooglePublisher* self); -void publishing_rest_support_google_publisher_stop (PublishingRESTSupportGooglePublisher* self); -GType publishing_rest_support_google_publisher_authenticated_transaction_get_type (void) G_GNUC_CONST; -PublishingRESTSupportGooglePublisherAuthenticatedTransaction* publishing_rest_support_google_publisher_authenticated_transaction_new (PublishingRESTSupportGoogleSession* session, - const gchar* endpoint_url, - PublishingRESTSupportHttpMethod method); -PublishingRESTSupportGooglePublisherAuthenticatedTransaction* publishing_rest_support_google_publisher_authenticated_transaction_construct (GType object_type, - PublishingRESTSupportGoogleSession* session, - const gchar* endpoint_url, - PublishingRESTSupportHttpMethod method); -GType publishing_rest_support_oauth1_session_get_type (void) G_GNUC_CONST; -PublishingRESTSupportOAuth1Session* publishing_rest_support_oauth1_session_new (const gchar* endpoint_uri); -PublishingRESTSupportOAuth1Session* publishing_rest_support_oauth1_session_construct (GType object_type, - const gchar* endpoint_uri); -void publishing_rest_support_oauth1_session_authenticate_from_persistent_credentials (PublishingRESTSupportOAuth1Session* self, - const gchar* token, - const gchar* secret, - const gchar* username); -void publishing_rest_support_oauth1_session_deauthenticate (PublishingRESTSupportOAuth1Session* self); -void publishing_rest_support_oauth1_session_set_api_credentials (PublishingRESTSupportOAuth1Session* self, - const gchar* consumer_key, - const gchar* consumer_secret); -gchar* publishing_rest_support_oauth1_session_sign_transaction (PublishingRESTSupportOAuth1Session* self, - PublishingRESTSupportTransaction* txn, - PublishingRESTSupportArgument** extra_arguments, - int extra_arguments_length1); -void publishing_rest_support_oauth1_session_set_request_phase_credentials (PublishingRESTSupportOAuth1Session* self, - const gchar* token, - const gchar* secret); -void publishing_rest_support_oauth1_session_set_access_phase_credentials (PublishingRESTSupportOAuth1Session* self, - const gchar* token, - const gchar* secret, - const gchar* username); -gchar* publishing_rest_support_oauth1_session_get_oauth_nonce (PublishingRESTSupportOAuth1Session* self); -gchar* publishing_rest_support_oauth1_session_get_oauth_timestamp (PublishingRESTSupportOAuth1Session* self); -gchar* publishing_rest_support_oauth1_session_get_consumer_key (PublishingRESTSupportOAuth1Session* self); -gchar* publishing_rest_support_oauth1_session_get_request_phase_token (PublishingRESTSupportOAuth1Session* self); -gchar* publishing_rest_support_oauth1_session_get_access_phase_token (PublishingRESTSupportOAuth1Session* self); -gboolean publishing_rest_support_oauth1_session_has_access_phase_token (PublishingRESTSupportOAuth1Session* self); -gchar* publishing_rest_support_oauth1_session_get_access_phase_token_secret (PublishingRESTSupportOAuth1Session* self); -gchar* publishing_rest_support_oauth1_session_get_username (PublishingRESTSupportOAuth1Session* self); -GType publishing_rest_support_oauth1_transaction_get_type (void) G_GNUC_CONST; -PublishingRESTSupportOAuth1Transaction* publishing_rest_support_oauth1_transaction_new (PublishingRESTSupportOAuth1Session* session, - PublishingRESTSupportHttpMethod method); -PublishingRESTSupportOAuth1Transaction* publishing_rest_support_oauth1_transaction_construct (GType object_type, - PublishingRESTSupportOAuth1Session* session, - PublishingRESTSupportHttpMethod method); -PublishingRESTSupportOAuth1Transaction* publishing_rest_support_oauth1_transaction_new_with_uri (PublishingRESTSupportOAuth1Session* session, - const gchar* uri, - PublishingRESTSupportHttpMethod method); -PublishingRESTSupportOAuth1Transaction* publishing_rest_support_oauth1_transaction_construct_with_uri (GType object_type, - PublishingRESTSupportOAuth1Session* session, - const gchar* uri, - PublishingRESTSupportHttpMethod method); -GType publishing_rest_support_oauth1_upload_transaction_get_type (void) G_GNUC_CONST; -PublishingRESTSupportOAuth1UploadTransaction* publishing_rest_support_oauth1_upload_transaction_new (PublishingRESTSupportOAuth1Session* session, - SpitPublishingPublishable* publishable, - const gchar* endpoint_uri); -PublishingRESTSupportOAuth1UploadTransaction* publishing_rest_support_oauth1_upload_transaction_construct (GType object_type, - PublishingRESTSupportOAuth1Session* session, - SpitPublishingPublishable* publishable, - const gchar* endpoint_uri); -void publishing_rest_support_oauth1_upload_transaction_add_authorization_header_field (PublishingRESTSupportOAuth1UploadTransaction* self, - const gchar* key, - const gchar* value); -gchar* publishing_rest_support_oauth1_upload_transaction_get_authorization_header_string (PublishingRESTSupportOAuth1UploadTransaction* self); -void publishing_rest_support_oauth1_upload_transaction_authorize (PublishingRESTSupportOAuth1UploadTransaction* self); -#define RESOURCES_WEBSITE_NAME _ ("Visit the Shotwell home page") -#define RESOURCES_WEBSITE_URL "https://wiki.gnome.org/Apps/Shotwell" -#define RESOURCES_LICENSE "\n" \ -"Shotwell is free software; you can redistribute it and/or modify it un" \ -"der the \n" \ -"terms of the GNU Lesser General Public License as published by the Fre" \ -"e \n" \ -"Software Foundation; either version 2.1 of the License, or (at your op" \ -"tion) \n" \ -"any later version.\n" \ -"\n" \ -"Shotwell is distributed in the hope that it will be useful, but WITHOU" \ -"T \n" \ -"ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or " \ -"FITNESS\n" \ -"FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License f" \ -"or \n" \ -"more details.\n" \ -"\n" \ -"You should have received a copy of the GNU Lesser General Public Licen" \ -"se \n" \ -"along with Shotwell; if not, write to the Free Software Foundation, In" \ -"c., \n" \ -"51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA\n" -#define RESOURCES_TRANSLATORS _ ("translator-credits") -GdkPixbuf** resources_load_icon_set (GFile* icon_file, - int* result_length1); -GdkPixbuf** resources_load_from_resource (const gchar* resource_path, - int* result_length1); -GType shotwell_plugins_common_web_authentication_pane_get_type (void) G_GNUC_CONST; -void shotwell_plugins_common_web_authentication_pane_on_page_load (ShotwellPluginsCommonWebAuthenticationPane* self); -void shotwell_plugins_common_web_authentication_pane_set_cursor (ShotwellPluginsCommonWebAuthenticationPane* self, - GdkCursorType type); -WebKitWebView* shotwell_plugins_common_web_authentication_pane_get_view (ShotwellPluginsCommonWebAuthenticationPane* self); -ShotwellPluginsCommonWebAuthenticationPane* shotwell_plugins_common_web_authentication_pane_construct (GType object_type); -SpitPublishingDialogPaneGeometryOptions shotwell_plugins_common_web_authentication_pane_get_preferred_geometry (ShotwellPluginsCommonWebAuthenticationPane* self); -gchar* shotwell_plugins_common_web_authentication_pane_get_login_uri (ShotwellPluginsCommonWebAuthenticationPane* self); -GType shotwell_plugins_common_builder_pane_get_type (void) G_GNUC_CONST; -GtkBuilder* shotwell_plugins_common_builder_pane_get_builder (ShotwellPluginsCommonBuilderPane* self); -GtkWidget* shotwell_plugins_common_builder_pane_get_default_widget (ShotwellPluginsCommonBuilderPane* self); -void shotwell_plugins_common_builder_pane_on_pane_installed (ShotwellPluginsCommonBuilderPane* self); -void shotwell_plugins_common_builder_pane_on_pane_uninstalled (ShotwellPluginsCommonBuilderPane* self); -ShotwellPluginsCommonBuilderPane* shotwell_plugins_common_builder_pane_construct (GType object_type); -SpitPublishingDialogPaneGeometryOptions shotwell_plugins_common_builder_pane_get_preferred_geometry (ShotwellPluginsCommonBuilderPane* self); -gchar* shotwell_plugins_common_builder_pane_get_resource_path (ShotwellPluginsCommonBuilderPane* self); -gboolean shotwell_plugins_common_builder_pane_get_connect_signals (ShotwellPluginsCommonBuilderPane* self); -gchar* shotwell_plugins_common_builder_pane_get_default_id (ShotwellPluginsCommonBuilderPane* self); - - -G_END_DECLS - -#endif diff --git a/plugins/shotwell-plugin-common.vapi b/plugins/shotwell-plugin-common.vapi deleted file mode 100644 index b8e327f..0000000 --- a/plugins/shotwell-plugin-common.vapi +++ /dev/null @@ -1,205 +0,0 @@ -/* shotwell-plugin-common.vapi generated by valac 0.40.4, do not modify. */ - -namespace Publishing { - namespace RESTSupport { - namespace OAuth1 { - [CCode (cheader_filename = "shotwell-plugin-common.h")] - public class Session : Publishing.RESTSupport.Session { - public Session (string? endpoint_uri = null); - public void authenticate_from_persistent_credentials (string token, string secret, string username); - public void deauthenticate (); - public string get_access_phase_token (); - public string get_access_phase_token_secret (); - public string get_consumer_key (); - public string get_oauth_nonce (); - public string get_oauth_timestamp (); - public string get_request_phase_token (); - public string get_username (); - public bool has_access_phase_token (); - public override bool is_authenticated (); - public void set_access_phase_credentials (string token, string secret, string username); - public void set_api_credentials (string consumer_key, string consumer_secret); - public void set_request_phase_credentials (string token, string secret); - public string sign_transaction (Publishing.RESTSupport.Transaction txn, Publishing.RESTSupport.Argument[]? extra_arguments = null); - } - [CCode (cheader_filename = "shotwell-plugin-common.h")] - public class Transaction : Publishing.RESTSupport.Transaction { - public Transaction (Publishing.RESTSupport.OAuth1.Session session, Publishing.RESTSupport.HttpMethod method = Publishing.RESTSupport.HttpMethod.POST); - public override void execute () throws Spit.Publishing.PublishingError; - public Transaction.with_uri (Publishing.RESTSupport.OAuth1.Session session, string uri, Publishing.RESTSupport.HttpMethod method = Publishing.RESTSupport.HttpMethod.POST); - } - [CCode (cheader_filename = "shotwell-plugin-common.h")] - public class UploadTransaction : Publishing.RESTSupport.UploadTransaction { - protected weak Publishing.RESTSupport.OAuth1.Session session; - public UploadTransaction (Publishing.RESTSupport.OAuth1.Session session, Spit.Publishing.Publishable publishable, string endpoint_uri); - public void add_authorization_header_field (string key, string value); - public void authorize (); - public string get_authorization_header_string (); - } - } - [CCode (cheader_filename = "shotwell-plugin-common.h")] - public class Argument { - public string key; - public string value; - public Argument (string key, string value); - public static int compare (Publishing.RESTSupport.Argument arg1, Publishing.RESTSupport.Argument arg2); - public static string serialize_list (Publishing.RESTSupport.Argument[] args, bool escape = false, string? separator = "&"); - public static Publishing.RESTSupport.Argument[] sort (Publishing.RESTSupport.Argument[] inputArray); - public string to_string (bool escape = false); - } - [CCode (cheader_filename = "shotwell-plugin-common.h")] - public abstract class BatchUploader { - public BatchUploader (Publishing.RESTSupport.Session session, Spit.Publishing.Publishable[] publishables); - protected abstract Publishing.RESTSupport.Transaction create_transaction (Spit.Publishing.Publishable publishable); - protected Spit.Publishing.Publishable get_current_publishable (); - protected Publishing.RESTSupport.Session get_session (); - public void upload (Spit.Publishing.ProgressCallback? status_updated = null); - public signal void upload_complete (int num_photos_published); - public signal void upload_error (Spit.Publishing.PublishingError err); - } - [CCode (cheader_filename = "shotwell-plugin-common.h")] - public abstract class GooglePublisher : GLib.Object, Spit.Publishing.Publisher { - public class AuthenticatedTransaction : Publishing.RESTSupport.Transaction { - public AuthenticatedTransaction (Publishing.RESTSupport.GoogleSession session, string endpoint_url, Publishing.RESTSupport.HttpMethod method); - } - protected GooglePublisher (Spit.Publishing.Service service, Spit.Publishing.PluginHost host, string scope); - protected abstract void do_logout (); - protected abstract Spit.Publishing.Authenticator get_authenticator (); - protected unowned Spit.Publishing.PluginHost get_host (); - protected Publishing.RESTSupport.GoogleSession get_session (); - public abstract bool is_running (); - protected abstract void on_login_flow_complete (); - public abstract void start (); - public abstract void stop (); - } - [CCode (cheader_filename = "shotwell-plugin-common.h")] - public abstract class GoogleSession : Publishing.RESTSupport.Session { - public GoogleSession (); - public abstract void deauthenticate (); - public abstract string get_access_token (); - public abstract string get_user_name (); - } - [CCode (cheader_filename = "shotwell-plugin-common.h")] - public abstract class Session { - public Session (string? endpoint_url = null); - public bool are_transactions_stopped (); - public string? get_endpoint_url (); - public abstract bool is_authenticated (); - protected void notify_authenticated (); - protected void notify_authentication_failed (Spit.Publishing.PublishingError err); - protected void notify_wire_message_unqueued (Soup.Message message); - public void send_wire_message (Soup.Message message); - public void set_insecure (); - public void stop_transactions (); - public signal void authenticated (); - public signal void authentication_failed (Spit.Publishing.PublishingError err); - public signal void wire_message_unqueued (Soup.Message message); - } - [CCode (cheader_filename = "shotwell-plugin-common.h")] - public class Transaction { - public Transaction (Publishing.RESTSupport.Session parent_session, Publishing.RESTSupport.HttpMethod method = HttpMethod.POST); - public void add_argument (string name, string value); - protected virtual void add_header (string key, string value); - protected void check_response (Soup.Message message) throws Spit.Publishing.PublishingError; - public string detailed_error_from_tls_flags (out GLib.TlsCertificate cert); - public virtual void execute () throws Spit.Publishing.PublishingError; - public Publishing.RESTSupport.Argument[] get_arguments (); - public string? get_endpoint_url (); - public bool get_is_executed (); - public Soup.Message get_message (); - public Publishing.RESTSupport.HttpMethod get_method (); - public Publishing.RESTSupport.Session get_parent_session (); - public string get_response (); - public unowned Soup.MessageHeaders get_response_headers (); - public Publishing.RESTSupport.Argument[] get_sorted_arguments (); - public uint get_status_code (); - protected void send () throws Spit.Publishing.PublishingError; - protected void set_custom_payload (string? custom_payload, string payload_content_type, ulong payload_length = 0); - protected void set_is_executed (bool is_executed); - protected void set_message (Soup.Message message); - public Transaction.with_endpoint_url (Publishing.RESTSupport.Session parent_session, string endpoint_url, Publishing.RESTSupport.HttpMethod method = HttpMethod.POST); - public signal void chunk_transmitted (int bytes_written_so_far, int total_bytes); - public signal void completed (); - public signal void network_error (Spit.Publishing.PublishingError err); - } - [CCode (cheader_filename = "shotwell-plugin-common.h")] - public class UploadTransaction : Publishing.RESTSupport.Transaction { - protected GLib.HashTable binary_disposition_table; - protected Gee.HashMap message_headers; - protected string mime_type; - protected Spit.Publishing.Publishable publishable; - public UploadTransaction (Publishing.RESTSupport.Session session, Spit.Publishing.Publishable publishable); - protected override void add_header (string key, string value); - public override void execute () throws Spit.Publishing.PublishingError; - protected void set_binary_disposition_table (GLib.HashTable new_disp_table); - public UploadTransaction.with_endpoint_url (Publishing.RESTSupport.Session session, Spit.Publishing.Publishable publishable, string endpoint_url); - } - [CCode (cheader_filename = "shotwell-plugin-common.h")] - public class XmlDocument { - public delegate string? CheckForErrorResponse (Publishing.RESTSupport.XmlDocument doc); - public Xml.Node* get_named_child (Xml.Node* parent, string child_name) throws Spit.Publishing.PublishingError; - public string get_property_value (Xml.Node* node, string property_key) throws Spit.Publishing.PublishingError; - public Xml.Node* get_root_node (); - public static Publishing.RESTSupport.XmlDocument parse_string (string? input_string, Publishing.RESTSupport.XmlDocument.CheckForErrorResponse check_for_error_response) throws Spit.Publishing.PublishingError; - } - [CCode (cheader_filename = "shotwell-plugin-common.h")] - public enum HttpMethod { - GET, - POST, - PUT; - public string to_string (); - public static Publishing.RESTSupport.HttpMethod from_string (string str); - } - [CCode (cheader_filename = "shotwell-plugin-common.h")] - public static string asciify_string (string s); - [CCode (cheader_filename = "shotwell-plugin-common.h")] - public static string decimal_entity_encode (string source); - [CCode (cheader_filename = "shotwell-plugin-common.h")] - public static string hmac_sha1 (string key, string message); - } -} -namespace Resources { - [CCode (cheader_filename = "shotwell-plugin-common.h")] - public const string LICENSE; - [CCode (cheader_filename = "shotwell-plugin-common.h", cname = "PLUGIN_RESOURCE_PATH")] - public const string RESOURCE_PATH; - [CCode (cheader_filename = "shotwell-plugin-common.h")] - public const string TRANSLATORS; - [CCode (cheader_filename = "shotwell-plugin-common.h")] - public const string WEBSITE_NAME; - [CCode (cheader_filename = "shotwell-plugin-common.h")] - public const string WEBSITE_URL; - [CCode (cheader_filename = "shotwell-plugin-common.h")] - public static Gdk.Pixbuf[]? load_from_resource (string resource_path); - [CCode (cheader_filename = "shotwell-plugin-common.h")] - public static Gdk.Pixbuf[]? load_icon_set (GLib.File? icon_file); -} -namespace Shotwell { - namespace Plugins { - namespace Common { - [CCode (cheader_filename = "shotwell-plugin-common.h")] - public abstract class BuilderPane : Spit.Publishing.DialogPane, GLib.Object { - public BuilderPane (); - public override void constructed (); - public Gtk.Builder get_builder (); - public virtual Gtk.Widget get_default_widget (); - public virtual void on_pane_installed (); - public virtual void on_pane_uninstalled (); - public bool connect_signals { get; construct; } - public string default_id { owned get; construct; } - public Spit.Publishing.DialogPane.GeometryOptions preferred_geometry { get; construct; } - public string resource_path { owned get; construct; } - } - [CCode (cheader_filename = "shotwell-plugin-common.h")] - public abstract class WebAuthenticationPane : Spit.Publishing.DialogPane, GLib.Object { - public WebAuthenticationPane (); - public override void constructed (); - public WebKit.WebView get_view (); - public abstract void on_page_load (); - protected void set_cursor (Gdk.CursorType type); - public string login_uri { owned get; construct; } - public Spit.Publishing.DialogPane.GeometryOptions preferred_geometry { get; construct; } - } - } - } -} diff --git a/plugins/shotwell-plugin-dev-1.0.h b/plugins/shotwell-plugin-dev-1.0.h deleted file mode 100644 index 77913ed..0000000 --- a/plugins/shotwell-plugin-dev-1.0.h +++ /dev/null @@ -1,1046 +0,0 @@ -/* shotwell-plugin-dev-1.0.h generated by valac 0.40.4, the Vala compiler, do not modify */ - - -#ifndef __PLUGINS_SHOTWELL_PLUGIN_DEV_1_0_H__ -#define __PLUGINS_SHOTWELL_PLUGIN_DEV_1_0_H__ - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include - -G_BEGIN_DECLS - - -#define SPIT_TYPE_ENTRY_POINT_PARAMS (spit_entry_point_params_get_type ()) -typedef struct _SpitEntryPointParams SpitEntryPointParams; - -#define SPIT_TYPE_MODULE (spit_module_get_type ()) -#define SPIT_MODULE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SPIT_TYPE_MODULE, SpitModule)) -#define SPIT_IS_MODULE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SPIT_TYPE_MODULE)) -#define SPIT_MODULE_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), SPIT_TYPE_MODULE, SpitModuleIface)) - -typedef struct _SpitModule SpitModule; -typedef struct _SpitModuleIface SpitModuleIface; - -#define SPIT_TYPE_PLUGGABLE (spit_pluggable_get_type ()) -#define SPIT_PLUGGABLE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SPIT_TYPE_PLUGGABLE, SpitPluggable)) -#define SPIT_IS_PLUGGABLE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SPIT_TYPE_PLUGGABLE)) -#define SPIT_PLUGGABLE_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), SPIT_TYPE_PLUGGABLE, SpitPluggableIface)) - -typedef struct _SpitPluggable SpitPluggable; -typedef struct _SpitPluggableIface SpitPluggableIface; - -#define SPIT_TYPE_PLUGGABLE_INFO (spit_pluggable_info_get_type ()) -typedef struct _SpitPluggableInfo SpitPluggableInfo; - -#define SPIT_TYPE_HOST_INTERFACE (spit_host_interface_get_type ()) -#define SPIT_HOST_INTERFACE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SPIT_TYPE_HOST_INTERFACE, SpitHostInterface)) -#define SPIT_IS_HOST_INTERFACE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SPIT_TYPE_HOST_INTERFACE)) -#define SPIT_HOST_INTERFACE_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), SPIT_TYPE_HOST_INTERFACE, SpitHostInterfaceIface)) - -typedef struct _SpitHostInterface SpitHostInterface; -typedef struct _SpitHostInterfaceIface SpitHostInterfaceIface; - -#define SPIT_TRANSITIONS_TYPE_DIRECTION (spit_transitions_direction_get_type ()) - -#define SPIT_TRANSITIONS_TYPE_VISUALS (spit_transitions_visuals_get_type ()) -#define SPIT_TRANSITIONS_VISUALS(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SPIT_TRANSITIONS_TYPE_VISUALS, SpitTransitionsVisuals)) -#define SPIT_TRANSITIONS_VISUALS_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), SPIT_TRANSITIONS_TYPE_VISUALS, SpitTransitionsVisualsClass)) -#define SPIT_TRANSITIONS_IS_VISUALS(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SPIT_TRANSITIONS_TYPE_VISUALS)) -#define SPIT_TRANSITIONS_IS_VISUALS_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), SPIT_TRANSITIONS_TYPE_VISUALS)) -#define SPIT_TRANSITIONS_VISUALS_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), SPIT_TRANSITIONS_TYPE_VISUALS, SpitTransitionsVisualsClass)) - -typedef struct _SpitTransitionsVisuals SpitTransitionsVisuals; -typedef struct _SpitTransitionsVisualsClass SpitTransitionsVisualsClass; -typedef struct _SpitTransitionsVisualsPrivate SpitTransitionsVisualsPrivate; - -#define SPIT_TRANSITIONS_TYPE_MOTION (spit_transitions_motion_get_type ()) -#define SPIT_TRANSITIONS_MOTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SPIT_TRANSITIONS_TYPE_MOTION, SpitTransitionsMotion)) -#define SPIT_TRANSITIONS_MOTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), SPIT_TRANSITIONS_TYPE_MOTION, SpitTransitionsMotionClass)) -#define SPIT_TRANSITIONS_IS_MOTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SPIT_TRANSITIONS_TYPE_MOTION)) -#define SPIT_TRANSITIONS_IS_MOTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), SPIT_TRANSITIONS_TYPE_MOTION)) -#define SPIT_TRANSITIONS_MOTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), SPIT_TRANSITIONS_TYPE_MOTION, SpitTransitionsMotionClass)) - -typedef struct _SpitTransitionsMotion SpitTransitionsMotion; -typedef struct _SpitTransitionsMotionClass SpitTransitionsMotionClass; -typedef struct _SpitTransitionsMotionPrivate SpitTransitionsMotionPrivate; - -#define SPIT_TRANSITIONS_TYPE_DESCRIPTOR (spit_transitions_descriptor_get_type ()) -#define SPIT_TRANSITIONS_DESCRIPTOR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SPIT_TRANSITIONS_TYPE_DESCRIPTOR, SpitTransitionsDescriptor)) -#define SPIT_TRANSITIONS_IS_DESCRIPTOR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SPIT_TRANSITIONS_TYPE_DESCRIPTOR)) -#define SPIT_TRANSITIONS_DESCRIPTOR_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), SPIT_TRANSITIONS_TYPE_DESCRIPTOR, SpitTransitionsDescriptorIface)) - -typedef struct _SpitTransitionsDescriptor SpitTransitionsDescriptor; -typedef struct _SpitTransitionsDescriptorIface SpitTransitionsDescriptorIface; - -#define SPIT_TRANSITIONS_TYPE_EFFECT (spit_transitions_effect_get_type ()) -#define SPIT_TRANSITIONS_EFFECT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SPIT_TRANSITIONS_TYPE_EFFECT, SpitTransitionsEffect)) -#define SPIT_TRANSITIONS_IS_EFFECT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SPIT_TRANSITIONS_TYPE_EFFECT)) -#define SPIT_TRANSITIONS_EFFECT_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), SPIT_TRANSITIONS_TYPE_EFFECT, SpitTransitionsEffectIface)) - -typedef struct _SpitTransitionsEffect SpitTransitionsEffect; -typedef struct _SpitTransitionsEffectIface SpitTransitionsEffectIface; - -#define SPIT_PUBLISHING_TYPE_PUBLISHER (spit_publishing_publisher_get_type ()) -#define SPIT_PUBLISHING_PUBLISHER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SPIT_PUBLISHING_TYPE_PUBLISHER, SpitPublishingPublisher)) -#define SPIT_PUBLISHING_IS_PUBLISHER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SPIT_PUBLISHING_TYPE_PUBLISHER)) -#define SPIT_PUBLISHING_PUBLISHER_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), SPIT_PUBLISHING_TYPE_PUBLISHER, SpitPublishingPublisherIface)) - -typedef struct _SpitPublishingPublisher SpitPublishingPublisher; -typedef struct _SpitPublishingPublisherIface SpitPublishingPublisherIface; - -#define SPIT_PUBLISHING_TYPE_SERVICE (spit_publishing_service_get_type ()) -#define SPIT_PUBLISHING_SERVICE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SPIT_PUBLISHING_TYPE_SERVICE, SpitPublishingService)) -#define SPIT_PUBLISHING_IS_SERVICE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SPIT_PUBLISHING_TYPE_SERVICE)) -#define SPIT_PUBLISHING_SERVICE_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), SPIT_PUBLISHING_TYPE_SERVICE, SpitPublishingServiceIface)) - -typedef struct _SpitPublishingService SpitPublishingService; -typedef struct _SpitPublishingServiceIface SpitPublishingServiceIface; - -#define SPIT_PUBLISHING_TYPE_PLUGIN_HOST (spit_publishing_plugin_host_get_type ()) -#define SPIT_PUBLISHING_PLUGIN_HOST(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SPIT_PUBLISHING_TYPE_PLUGIN_HOST, SpitPublishingPluginHost)) -#define SPIT_PUBLISHING_IS_PLUGIN_HOST(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SPIT_PUBLISHING_TYPE_PLUGIN_HOST)) -#define SPIT_PUBLISHING_PLUGIN_HOST_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), SPIT_PUBLISHING_TYPE_PLUGIN_HOST, SpitPublishingPluginHostIface)) - -typedef struct _SpitPublishingPluginHost SpitPublishingPluginHost; -typedef struct _SpitPublishingPluginHostIface SpitPublishingPluginHostIface; - -#define SPIT_PUBLISHING_TYPE_DIALOG_PANE (spit_publishing_dialog_pane_get_type ()) -#define SPIT_PUBLISHING_DIALOG_PANE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SPIT_PUBLISHING_TYPE_DIALOG_PANE, SpitPublishingDialogPane)) -#define SPIT_PUBLISHING_IS_DIALOG_PANE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SPIT_PUBLISHING_TYPE_DIALOG_PANE)) -#define SPIT_PUBLISHING_DIALOG_PANE_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), SPIT_PUBLISHING_TYPE_DIALOG_PANE, SpitPublishingDialogPaneIface)) - -typedef struct _SpitPublishingDialogPane SpitPublishingDialogPane; -typedef struct _SpitPublishingDialogPaneIface SpitPublishingDialogPaneIface; - -#define SPIT_PUBLISHING_DIALOG_PANE_TYPE_GEOMETRY_OPTIONS (spit_publishing_dialog_pane_geometry_options_get_type ()) - -#define SPIT_PUBLISHING_PLUGIN_HOST_TYPE_BUTTON_MODE (spit_publishing_plugin_host_button_mode_get_type ()) - -#define SPIT_PUBLISHING_TYPE_PUBLISHABLE (spit_publishing_publishable_get_type ()) -#define SPIT_PUBLISHING_PUBLISHABLE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SPIT_PUBLISHING_TYPE_PUBLISHABLE, SpitPublishingPublishable)) -#define SPIT_PUBLISHING_IS_PUBLISHABLE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SPIT_PUBLISHING_TYPE_PUBLISHABLE)) -#define SPIT_PUBLISHING_PUBLISHABLE_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), SPIT_PUBLISHING_TYPE_PUBLISHABLE, SpitPublishingPublishableIface)) - -typedef struct _SpitPublishingPublishable SpitPublishingPublishable; -typedef struct _SpitPublishingPublishableIface SpitPublishingPublishableIface; - -#define SPIT_PUBLISHING_PUBLISHER_TYPE_MEDIA_TYPE (spit_publishing_publisher_media_type_get_type ()) - -#define SPIT_PUBLISHING_TYPE_AUTHENTICATOR (spit_publishing_authenticator_get_type ()) -#define SPIT_PUBLISHING_AUTHENTICATOR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SPIT_PUBLISHING_TYPE_AUTHENTICATOR, SpitPublishingAuthenticator)) -#define SPIT_PUBLISHING_IS_AUTHENTICATOR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SPIT_PUBLISHING_TYPE_AUTHENTICATOR)) -#define SPIT_PUBLISHING_AUTHENTICATOR_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), SPIT_PUBLISHING_TYPE_AUTHENTICATOR, SpitPublishingAuthenticatorIface)) - -typedef struct _SpitPublishingAuthenticator SpitPublishingAuthenticator; -typedef struct _SpitPublishingAuthenticatorIface SpitPublishingAuthenticatorIface; - -#define SPIT_PUBLISHING_TYPE_AUTHENTICATOR_FACTORY (spit_publishing_authenticator_factory_get_type ()) -#define SPIT_PUBLISHING_AUTHENTICATOR_FACTORY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SPIT_PUBLISHING_TYPE_AUTHENTICATOR_FACTORY, SpitPublishingAuthenticatorFactory)) -#define SPIT_PUBLISHING_IS_AUTHENTICATOR_FACTORY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SPIT_PUBLISHING_TYPE_AUTHENTICATOR_FACTORY)) -#define SPIT_PUBLISHING_AUTHENTICATOR_FACTORY_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), SPIT_PUBLISHING_TYPE_AUTHENTICATOR_FACTORY, SpitPublishingAuthenticatorFactoryIface)) - -typedef struct _SpitPublishingAuthenticatorFactory SpitPublishingAuthenticatorFactory; -typedef struct _SpitPublishingAuthenticatorFactoryIface SpitPublishingAuthenticatorFactoryIface; - -#define SPIT_DATA_IMPORTS_TYPE_DATA_IMPORTER (spit_data_imports_data_importer_get_type ()) -#define SPIT_DATA_IMPORTS_DATA_IMPORTER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SPIT_DATA_IMPORTS_TYPE_DATA_IMPORTER, SpitDataImportsDataImporter)) -#define SPIT_DATA_IMPORTS_IS_DATA_IMPORTER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SPIT_DATA_IMPORTS_TYPE_DATA_IMPORTER)) -#define SPIT_DATA_IMPORTS_DATA_IMPORTER_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), SPIT_DATA_IMPORTS_TYPE_DATA_IMPORTER, SpitDataImportsDataImporterIface)) - -typedef struct _SpitDataImportsDataImporter SpitDataImportsDataImporter; -typedef struct _SpitDataImportsDataImporterIface SpitDataImportsDataImporterIface; - -#define SPIT_DATA_IMPORTS_TYPE_SERVICE (spit_data_imports_service_get_type ()) -#define SPIT_DATA_IMPORTS_SERVICE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SPIT_DATA_IMPORTS_TYPE_SERVICE, SpitDataImportsService)) -#define SPIT_DATA_IMPORTS_IS_SERVICE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SPIT_DATA_IMPORTS_TYPE_SERVICE)) -#define SPIT_DATA_IMPORTS_SERVICE_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), SPIT_DATA_IMPORTS_TYPE_SERVICE, SpitDataImportsServiceIface)) - -typedef struct _SpitDataImportsService SpitDataImportsService; -typedef struct _SpitDataImportsServiceIface SpitDataImportsServiceIface; - -#define SPIT_DATA_IMPORTS_TYPE_PLUGIN_HOST (spit_data_imports_plugin_host_get_type ()) -#define SPIT_DATA_IMPORTS_PLUGIN_HOST(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SPIT_DATA_IMPORTS_TYPE_PLUGIN_HOST, SpitDataImportsPluginHost)) -#define SPIT_DATA_IMPORTS_IS_PLUGIN_HOST(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SPIT_DATA_IMPORTS_TYPE_PLUGIN_HOST)) -#define SPIT_DATA_IMPORTS_PLUGIN_HOST_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), SPIT_DATA_IMPORTS_TYPE_PLUGIN_HOST, SpitDataImportsPluginHostIface)) - -typedef struct _SpitDataImportsPluginHost SpitDataImportsPluginHost; -typedef struct _SpitDataImportsPluginHostIface SpitDataImportsPluginHostIface; - -#define SPIT_DATA_IMPORTS_TYPE_DIALOG_PANE (spit_data_imports_dialog_pane_get_type ()) -#define SPIT_DATA_IMPORTS_DIALOG_PANE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SPIT_DATA_IMPORTS_TYPE_DIALOG_PANE, SpitDataImportsDialogPane)) -#define SPIT_DATA_IMPORTS_IS_DIALOG_PANE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SPIT_DATA_IMPORTS_TYPE_DIALOG_PANE)) -#define SPIT_DATA_IMPORTS_DIALOG_PANE_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), SPIT_DATA_IMPORTS_TYPE_DIALOG_PANE, SpitDataImportsDialogPaneIface)) - -typedef struct _SpitDataImportsDialogPane SpitDataImportsDialogPane; -typedef struct _SpitDataImportsDialogPaneIface SpitDataImportsDialogPaneIface; - -#define SPIT_DATA_IMPORTS_DIALOG_PANE_TYPE_GEOMETRY_OPTIONS (spit_data_imports_dialog_pane_geometry_options_get_type ()) - -#define SPIT_DATA_IMPORTS_PLUGIN_HOST_TYPE_BUTTON_MODE (spit_data_imports_plugin_host_button_mode_get_type ()) - -#define SPIT_DATA_IMPORTS_TYPE_IMPORTABLE_LIBRARY (spit_data_imports_importable_library_get_type ()) -#define SPIT_DATA_IMPORTS_IMPORTABLE_LIBRARY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SPIT_DATA_IMPORTS_TYPE_IMPORTABLE_LIBRARY, SpitDataImportsImportableLibrary)) -#define SPIT_DATA_IMPORTS_IS_IMPORTABLE_LIBRARY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SPIT_DATA_IMPORTS_TYPE_IMPORTABLE_LIBRARY)) -#define SPIT_DATA_IMPORTS_IMPORTABLE_LIBRARY_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), SPIT_DATA_IMPORTS_TYPE_IMPORTABLE_LIBRARY, SpitDataImportsImportableLibraryIface)) - -typedef struct _SpitDataImportsImportableLibrary SpitDataImportsImportableLibrary; -typedef struct _SpitDataImportsImportableLibraryIface SpitDataImportsImportableLibraryIface; - -#define SPIT_DATA_IMPORTS_TYPE_IMPORTABLE_MEDIA_ITEM (spit_data_imports_importable_media_item_get_type ()) -#define SPIT_DATA_IMPORTS_IMPORTABLE_MEDIA_ITEM(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SPIT_DATA_IMPORTS_TYPE_IMPORTABLE_MEDIA_ITEM, SpitDataImportsImportableMediaItem)) -#define SPIT_DATA_IMPORTS_IS_IMPORTABLE_MEDIA_ITEM(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SPIT_DATA_IMPORTS_TYPE_IMPORTABLE_MEDIA_ITEM)) -#define SPIT_DATA_IMPORTS_IMPORTABLE_MEDIA_ITEM_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), SPIT_DATA_IMPORTS_TYPE_IMPORTABLE_MEDIA_ITEM, SpitDataImportsImportableMediaItemIface)) - -typedef struct _SpitDataImportsImportableMediaItem SpitDataImportsImportableMediaItem; -typedef struct _SpitDataImportsImportableMediaItemIface SpitDataImportsImportableMediaItemIface; - -#define SPIT_DATA_IMPORTS_TYPE_IMPORTABLE_TAG (spit_data_imports_importable_tag_get_type ()) -#define SPIT_DATA_IMPORTS_IMPORTABLE_TAG(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SPIT_DATA_IMPORTS_TYPE_IMPORTABLE_TAG, SpitDataImportsImportableTag)) -#define SPIT_DATA_IMPORTS_IS_IMPORTABLE_TAG(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SPIT_DATA_IMPORTS_TYPE_IMPORTABLE_TAG)) -#define SPIT_DATA_IMPORTS_IMPORTABLE_TAG_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), SPIT_DATA_IMPORTS_TYPE_IMPORTABLE_TAG, SpitDataImportsImportableTagIface)) - -typedef struct _SpitDataImportsImportableTag SpitDataImportsImportableTag; -typedef struct _SpitDataImportsImportableTagIface SpitDataImportsImportableTagIface; - -#define SPIT_DATA_IMPORTS_TYPE_IMPORTABLE_EVENT (spit_data_imports_importable_event_get_type ()) -#define SPIT_DATA_IMPORTS_IMPORTABLE_EVENT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SPIT_DATA_IMPORTS_TYPE_IMPORTABLE_EVENT, SpitDataImportsImportableEvent)) -#define SPIT_DATA_IMPORTS_IS_IMPORTABLE_EVENT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SPIT_DATA_IMPORTS_TYPE_IMPORTABLE_EVENT)) -#define SPIT_DATA_IMPORTS_IMPORTABLE_EVENT_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), SPIT_DATA_IMPORTS_TYPE_IMPORTABLE_EVENT, SpitDataImportsImportableEventIface)) - -typedef struct _SpitDataImportsImportableEvent SpitDataImportsImportableEvent; -typedef struct _SpitDataImportsImportableEventIface SpitDataImportsImportableEventIface; - -#define SPIT_DATA_IMPORTS_TYPE_IMPORTABLE_RATING (spit_data_imports_importable_rating_get_type ()) -#define SPIT_DATA_IMPORTS_IMPORTABLE_RATING(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SPIT_DATA_IMPORTS_TYPE_IMPORTABLE_RATING, SpitDataImportsImportableRating)) -#define SPIT_DATA_IMPORTS_IS_IMPORTABLE_RATING(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SPIT_DATA_IMPORTS_TYPE_IMPORTABLE_RATING)) -#define SPIT_DATA_IMPORTS_IMPORTABLE_RATING_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), SPIT_DATA_IMPORTS_TYPE_IMPORTABLE_RATING, SpitDataImportsImportableRatingIface)) - -typedef struct _SpitDataImportsImportableRating SpitDataImportsImportableRating; -typedef struct _SpitDataImportsImportableRatingIface SpitDataImportsImportableRatingIface; - -struct _SpitEntryPointParams { - gint host_min_spit_interface; - gint host_max_spit_interface; - gint module_spit_interface; - GFile* module_file; -}; - -struct _SpitPluggableInfo { - gchar* version; - gchar* brief_description; - gchar* authors; - gchar* copyright; - gchar* license; - gboolean is_license_wordwrapped; - gchar* website_url; - gchar* website_name; - gchar* translators; - GdkPixbuf** icons; - gint icons_length1; -}; - -struct _SpitPluggableIface { - GTypeInterface parent_iface; - gint (*get_pluggable_interface) (SpitPluggable* self, gint min_host_interface, gint max_host_interface); - const gchar* (*get_id) (SpitPluggable* self); - const gchar* (*get_pluggable_name) (SpitPluggable* self); - void (*get_info) (SpitPluggable* self, SpitPluggableInfo* info); - void (*activation) (SpitPluggable* self, gboolean enabled); - void (*reserved0) (SpitPluggable* self); - void (*reserved1) (SpitPluggable* self); - void (*reserved2) (SpitPluggable* self); - void (*reserved3) (SpitPluggable* self); - void (*reserved4) (SpitPluggable* self); - void (*reserved5) (SpitPluggable* self); - void (*reserved6) (SpitPluggable* self); - void (*reserved7) (SpitPluggable* self); -}; - -struct _SpitModuleIface { - GTypeInterface parent_iface; - const gchar* (*get_module_name) (SpitModule* self); - const gchar* (*get_version) (SpitModule* self); - const gchar* (*get_id) (SpitModule* self); - SpitPluggable** (*get_pluggables) (SpitModule* self, int* result_length1); - void (*reserved0) (SpitModule* self); - void (*reserved1) (SpitModule* self); - void (*reserved2) (SpitModule* self); - void (*reserved3) (SpitModule* self); - void (*reserved4) (SpitModule* self); - void (*reserved5) (SpitModule* self); - void (*reserved6) (SpitModule* self); - void (*reserved7) (SpitModule* self); -}; - -typedef SpitModule* (*SpitEntryPoint) (SpitEntryPointParams* params); -struct _SpitHostInterfaceIface { - GTypeInterface parent_iface; - GFile* (*get_module_file) (SpitHostInterface* self); - gboolean (*get_config_bool) (SpitHostInterface* self, const gchar* key, gboolean def); - void (*set_config_bool) (SpitHostInterface* self, const gchar* key, gboolean val); - gint (*get_config_int) (SpitHostInterface* self, const gchar* key, gint def); - void (*set_config_int) (SpitHostInterface* self, const gchar* key, gint val); - gchar* (*get_config_string) (SpitHostInterface* self, const gchar* key, const gchar* def); - void (*set_config_string) (SpitHostInterface* self, const gchar* key, const gchar* val); - gdouble (*get_config_double) (SpitHostInterface* self, const gchar* key, gdouble def); - void (*set_config_double) (SpitHostInterface* self, const gchar* key, gdouble val); - void (*unset_config_key) (SpitHostInterface* self, const gchar* key); - void (*reserved0) (SpitHostInterface* self); - void (*reserved1) (SpitHostInterface* self); - void (*reserved2) (SpitHostInterface* self); - void (*reserved3) (SpitHostInterface* self); - void (*reserved4) (SpitHostInterface* self); - void (*reserved5) (SpitHostInterface* self); - void (*reserved6) (SpitHostInterface* self); - void (*reserved7) (SpitHostInterface* self); -}; - -typedef enum { - SPIT_TRANSITIONS_DIRECTION_LEFT = 0, - SPIT_TRANSITIONS_DIRECTION_RIGHT = 1, - SPIT_TRANSITIONS_DIRECTION_FORWARD = SPIT_TRANSITIONS_DIRECTION_LEFT, - SPIT_TRANSITIONS_DIRECTION_BACKWARD = SPIT_TRANSITIONS_DIRECTION_RIGHT -} SpitTransitionsDirection; - -struct _SpitTransitionsVisuals { - GObject parent_instance; - SpitTransitionsVisualsPrivate * priv; -}; - -struct _SpitTransitionsVisualsClass { - GObjectClass parent_class; - void (*reserved0) (SpitTransitionsVisuals* self); - void (*reserved1) (SpitTransitionsVisuals* self); - void (*reserved2) (SpitTransitionsVisuals* self); - void (*reserved3) (SpitTransitionsVisuals* self); - void (*reserved4) (SpitTransitionsVisuals* self); - void (*reserved5) (SpitTransitionsVisuals* self); - void (*reserved6) (SpitTransitionsVisuals* self); - void (*reserved7) (SpitTransitionsVisuals* self); -}; - -struct _SpitTransitionsMotion { - GObject parent_instance; - SpitTransitionsMotionPrivate * priv; -}; - -struct _SpitTransitionsMotionClass { - GObjectClass parent_class; - void (*reserved0) (SpitTransitionsMotion* self); - void (*reserved1) (SpitTransitionsMotion* self); - void (*reserved2) (SpitTransitionsMotion* self); - void (*reserved3) (SpitTransitionsMotion* self); - void (*reserved4) (SpitTransitionsMotion* self); - void (*reserved5) (SpitTransitionsMotion* self); - void (*reserved6) (SpitTransitionsMotion* self); - void (*reserved7) (SpitTransitionsMotion* self); -}; - -struct _SpitTransitionsEffectIface { - GTypeInterface parent_iface; - void (*get_fps) (SpitTransitionsEffect* self, gint* desired_fps, gint* min_fps); - void (*start) (SpitTransitionsEffect* self, SpitTransitionsVisuals* visuals, SpitTransitionsMotion* motion); - gboolean (*needs_clear_background) (SpitTransitionsEffect* self); - void (*paint) (SpitTransitionsEffect* self, SpitTransitionsVisuals* visuals, SpitTransitionsMotion* motion, cairo_t* ctx, gint width, gint height, gint frame_number); - void (*advance) (SpitTransitionsEffect* self, SpitTransitionsVisuals* visuals, SpitTransitionsMotion* motion, gint frame_number); - void (*cancel) (SpitTransitionsEffect* self); - void (*reserved0) (SpitTransitionsEffect* self); - void (*reserved1) (SpitTransitionsEffect* self); - void (*reserved2) (SpitTransitionsEffect* self); - void (*reserved3) (SpitTransitionsEffect* self); - void (*reserved4) (SpitTransitionsEffect* self); - void (*reserved5) (SpitTransitionsEffect* self); - void (*reserved6) (SpitTransitionsEffect* self); - void (*reserved7) (SpitTransitionsEffect* self); -}; - -struct _SpitTransitionsDescriptorIface { - GTypeInterface parent_iface; - SpitTransitionsEffect* (*create) (SpitTransitionsDescriptor* self, SpitHostInterface* host); - void (*reserved0) (SpitTransitionsDescriptor* self); - void (*reserved1) (SpitTransitionsDescriptor* self); - void (*reserved2) (SpitTransitionsDescriptor* self); - void (*reserved3) (SpitTransitionsDescriptor* self); - void (*reserved4) (SpitTransitionsDescriptor* self); - void (*reserved5) (SpitTransitionsDescriptor* self); - void (*reserved6) (SpitTransitionsDescriptor* self); - void (*reserved7) (SpitTransitionsDescriptor* self); -}; - -typedef enum { - SPIT_PUBLISHING_PUBLISHING_ERROR_NO_ANSWER, - SPIT_PUBLISHING_PUBLISHING_ERROR_COMMUNICATION_FAILED, - SPIT_PUBLISHING_PUBLISHING_ERROR_PROTOCOL_ERROR, - SPIT_PUBLISHING_PUBLISHING_ERROR_SERVICE_ERROR, - SPIT_PUBLISHING_PUBLISHING_ERROR_MALFORMED_RESPONSE, - SPIT_PUBLISHING_PUBLISHING_ERROR_LOCAL_FILE_ERROR, - SPIT_PUBLISHING_PUBLISHING_ERROR_EXPIRED_SESSION, - SPIT_PUBLISHING_PUBLISHING_ERROR_SSL_FAILED -} SpitPublishingPublishingError; -#define SPIT_PUBLISHING_PUBLISHING_ERROR spit_publishing_publishing_error_quark () -typedef enum { - SPIT_PUBLISHING_DIALOG_PANE_GEOMETRY_OPTIONS_NONE = 0, - SPIT_PUBLISHING_DIALOG_PANE_GEOMETRY_OPTIONS_EXTENDED_SIZE = 1 << 0, - SPIT_PUBLISHING_DIALOG_PANE_GEOMETRY_OPTIONS_RESIZABLE = 1 << 1, - SPIT_PUBLISHING_DIALOG_PANE_GEOMETRY_OPTIONS_COLOSSAL_SIZE = 1 << 2 -} SpitPublishingDialogPaneGeometryOptions; - -struct _SpitPublishingDialogPaneIface { - GTypeInterface parent_iface; - GtkWidget* (*get_widget) (SpitPublishingDialogPane* self); - SpitPublishingDialogPaneGeometryOptions (*get_preferred_geometry) (SpitPublishingDialogPane* self); - void (*on_pane_installed) (SpitPublishingDialogPane* self); - void (*on_pane_uninstalled) (SpitPublishingDialogPane* self); - void (*reserved0) (SpitPublishingDialogPane* self); - void (*reserved1) (SpitPublishingDialogPane* self); - void (*reserved2) (SpitPublishingDialogPane* self); - void (*reserved3) (SpitPublishingDialogPane* self); - void (*reserved4) (SpitPublishingDialogPane* self); - void (*reserved5) (SpitPublishingDialogPane* self); - void (*reserved6) (SpitPublishingDialogPane* self); - void (*reserved7) (SpitPublishingDialogPane* self); -}; - -typedef enum { - SPIT_PUBLISHING_PLUGIN_HOST_BUTTON_MODE_CLOSE = 0, - SPIT_PUBLISHING_PLUGIN_HOST_BUTTON_MODE_CANCEL = 1 -} SpitPublishingPluginHostButtonMode; - -typedef void (*SpitPublishingLoginCallback) (void* user_data); -typedef enum { - SPIT_PUBLISHING_PUBLISHER_MEDIA_TYPE_NONE = 0, - SPIT_PUBLISHING_PUBLISHER_MEDIA_TYPE_PHOTO = 1 << 0, - SPIT_PUBLISHING_PUBLISHER_MEDIA_TYPE_VIDEO = 1 << 1 -} SpitPublishingPublisherMediaType; - -struct _SpitPublishingPublishableIface { - GTypeInterface parent_iface; - GFile* (*get_serialized_file) (SpitPublishingPublishable* self); - gchar* (*get_publishing_name) (SpitPublishingPublishable* self); - gchar* (*get_param_string) (SpitPublishingPublishable* self, const gchar* name); - gchar** (*get_publishing_keywords) (SpitPublishingPublishable* self, int* result_length1); - SpitPublishingPublisherMediaType (*get_media_type) (SpitPublishingPublishable* self); - GDateTime* (*get_exposure_date_time) (SpitPublishingPublishable* self); - void (*reserved0) (SpitPublishingPublishable* self); - void (*reserved1) (SpitPublishingPublishable* self); - void (*reserved2) (SpitPublishingPublishable* self); - void (*reserved3) (SpitPublishingPublishable* self); - void (*reserved4) (SpitPublishingPublishable* self); - void (*reserved5) (SpitPublishingPublishable* self); - void (*reserved6) (SpitPublishingPublishable* self); - void (*reserved7) (SpitPublishingPublishable* self); -}; - -typedef void (*SpitPublishingProgressCallback) (gint file_number, gdouble fraction_complete, void* user_data); -struct _SpitPublishingPluginHostIface { - GTypeInterface parent_iface; - void (*post_error) (SpitPublishingPluginHost* self, GError* err); - void (*stop_publishing) (SpitPublishingPluginHost* self); - SpitPublishingPublisher* (*get_publisher) (SpitPublishingPluginHost* self); - void (*install_dialog_pane) (SpitPublishingPluginHost* self, SpitPublishingDialogPane* pane, SpitPublishingPluginHostButtonMode mode); - void (*install_static_message_pane) (SpitPublishingPluginHost* self, const gchar* message, SpitPublishingPluginHostButtonMode mode); - void (*install_pango_message_pane) (SpitPublishingPluginHost* self, const gchar* markup, SpitPublishingPluginHostButtonMode mode); - void (*install_success_pane) (SpitPublishingPluginHost* self); - void (*install_account_fetch_wait_pane) (SpitPublishingPluginHost* self); - void (*install_login_wait_pane) (SpitPublishingPluginHost* self); - void (*install_welcome_pane) (SpitPublishingPluginHost* self, const gchar* welcome_message, SpitPublishingLoginCallback on_login_clicked, void* on_login_clicked_target); - void (*set_service_locked) (SpitPublishingPluginHost* self, gboolean is_locked); - void (*set_dialog_default_widget) (SpitPublishingPluginHost* self, GtkWidget* widget); - SpitPublishingPublishable** (*get_publishables) (SpitPublishingPluginHost* self, int* result_length1); - SpitPublishingProgressCallback (*serialize_publishables) (SpitPublishingPluginHost* self, gint content_major_axis, gboolean strip_metadata, void** result_target, GDestroyNotify* result_target_destroy_notify); - SpitPublishingPublisherMediaType (*get_publishable_media_type) (SpitPublishingPluginHost* self); - void (*reserved0) (SpitPublishingPluginHost* self); - void (*reserved1) (SpitPublishingPluginHost* self); - void (*reserved2) (SpitPublishingPluginHost* self); - void (*reserved3) (SpitPublishingPluginHost* self); - void (*reserved4) (SpitPublishingPluginHost* self); - void (*reserved5) (SpitPublishingPluginHost* self); - void (*reserved6) (SpitPublishingPluginHost* self); - void (*reserved7) (SpitPublishingPluginHost* self); -}; - -struct _SpitPublishingServiceIface { - GTypeInterface parent_iface; - SpitPublishingPublisher* (*create_publisher) (SpitPublishingService* self, SpitPublishingPluginHost* host); - SpitPublishingPublisherMediaType (*get_supported_media) (SpitPublishingService* self); - void (*reserved0) (SpitPublishingService* self); - void (*reserved1) (SpitPublishingService* self); - void (*reserved2) (SpitPublishingService* self); - void (*reserved3) (SpitPublishingService* self); - void (*reserved4) (SpitPublishingService* self); - void (*reserved5) (SpitPublishingService* self); - void (*reserved6) (SpitPublishingService* self); - void (*reserved7) (SpitPublishingService* self); -}; - -struct _SpitPublishingPublisherIface { - GTypeInterface parent_iface; - SpitPublishingService* (*get_service) (SpitPublishingPublisher* self); - void (*start) (SpitPublishingPublisher* self); - gboolean (*is_running) (SpitPublishingPublisher* self); - void (*stop) (SpitPublishingPublisher* self); - void (*reserved0) (SpitPublishingPublisher* self); - void (*reserved1) (SpitPublishingPublisher* self); - void (*reserved2) (SpitPublishingPublisher* self); - void (*reserved3) (SpitPublishingPublisher* self); - void (*reserved4) (SpitPublishingPublisher* self); - void (*reserved5) (SpitPublishingPublisher* self); - void (*reserved6) (SpitPublishingPublisher* self); - void (*reserved7) (SpitPublishingPublisher* self); -}; - -struct _SpitPublishingAuthenticatorIface { - GTypeInterface parent_iface; - void (*authenticate) (SpitPublishingAuthenticator* self); - gboolean (*can_logout) (SpitPublishingAuthenticator* self); - void (*logout) (SpitPublishingAuthenticator* self); - void (*refresh) (SpitPublishingAuthenticator* self); - GHashTable* (*get_authentication_parameter) (SpitPublishingAuthenticator* self); -}; - -struct _SpitPublishingAuthenticatorFactoryIface { - GTypeInterface parent_iface; - GeeList* (*get_available_authenticators) (SpitPublishingAuthenticatorFactory* self); - SpitPublishingAuthenticator* (*create) (SpitPublishingAuthenticatorFactory* self, const gchar* provider, SpitPublishingPluginHost* host); -}; - -typedef enum { - SPIT_DATA_IMPORTS_DATA_IMPORT_ERROR_UNSUPPORTED_VERSION -} SpitDataImportsDataImportError; -#define SPIT_DATA_IMPORTS_DATA_IMPORT_ERROR spit_data_imports_data_import_error_quark () -typedef enum { - SPIT_DATA_IMPORTS_DIALOG_PANE_GEOMETRY_OPTIONS_NONE = 0, - SPIT_DATA_IMPORTS_DIALOG_PANE_GEOMETRY_OPTIONS_EXTENDED_SIZE = 1 << 0, - SPIT_DATA_IMPORTS_DIALOG_PANE_GEOMETRY_OPTIONS_RESIZABLE = 1 << 1, - SPIT_DATA_IMPORTS_DIALOG_PANE_GEOMETRY_OPTIONS_COLOSSAL_SIZE = 1 << 2 -} SpitDataImportsDialogPaneGeometryOptions; - -struct _SpitDataImportsDialogPaneIface { - GTypeInterface parent_iface; - GtkWidget* (*get_widget) (SpitDataImportsDialogPane* self); - SpitDataImportsDialogPaneGeometryOptions (*get_preferred_geometry) (SpitDataImportsDialogPane* self); - void (*on_pane_installed) (SpitDataImportsDialogPane* self); - void (*on_pane_uninstalled) (SpitDataImportsDialogPane* self); - void (*reserved0) (SpitDataImportsDialogPane* self); - void (*reserved1) (SpitDataImportsDialogPane* self); - void (*reserved2) (SpitDataImportsDialogPane* self); - void (*reserved3) (SpitDataImportsDialogPane* self); - void (*reserved4) (SpitDataImportsDialogPane* self); - void (*reserved5) (SpitDataImportsDialogPane* self); - void (*reserved6) (SpitDataImportsDialogPane* self); - void (*reserved7) (SpitDataImportsDialogPane* self); -}; - -typedef enum { - SPIT_DATA_IMPORTS_PLUGIN_HOST_BUTTON_MODE_CLOSE = 0, - SPIT_DATA_IMPORTS_PLUGIN_HOST_BUTTON_MODE_CANCEL = 1 -} SpitDataImportsPluginHostButtonMode; - -struct _SpitDataImportsImportableLibraryIface { - GTypeInterface parent_iface; - gchar* (*get_display_name) (SpitDataImportsImportableLibrary* self); -}; - -struct _SpitDataImportsImportableTagIface { - GTypeInterface parent_iface; - gchar* (*get_name) (SpitDataImportsImportableTag* self); - SpitDataImportsImportableTag* (*get_parent) (SpitDataImportsImportableTag* self); -}; - -struct _SpitDataImportsImportableEventIface { - GTypeInterface parent_iface; - gchar* (*get_name) (SpitDataImportsImportableEvent* self); -}; - -struct _SpitDataImportsImportableRatingIface { - GTypeInterface parent_iface; - gboolean (*is_unrated) (SpitDataImportsImportableRating* self); - gboolean (*is_rejected) (SpitDataImportsImportableRating* self); - gint (*get_value) (SpitDataImportsImportableRating* self); -}; - -struct _SpitDataImportsImportableMediaItemIface { - GTypeInterface parent_iface; - SpitDataImportsImportableTag** (*get_tags) (SpitDataImportsImportableMediaItem* self, int* result_length1); - SpitDataImportsImportableEvent* (*get_event) (SpitDataImportsImportableMediaItem* self); - SpitDataImportsImportableRating* (*get_rating) (SpitDataImportsImportableMediaItem* self); - gchar* (*get_title) (SpitDataImportsImportableMediaItem* self); - gchar* (*get_folder_path) (SpitDataImportsImportableMediaItem* self); - gchar* (*get_filename) (SpitDataImportsImportableMediaItem* self); - time_t* (*get_exposure_time) (SpitDataImportsImportableMediaItem* self); -}; - -typedef void (*SpitDataImportsImportedItemsCountCallback) (gint imported_items_count, void* user_data); -struct _SpitDataImportsPluginHostIface { - GTypeInterface parent_iface; - void (*post_error) (SpitDataImportsPluginHost* self, GError* err); - void (*post_error_message) (SpitDataImportsPluginHost* self, const gchar* msg); - void (*start_importing) (SpitDataImportsPluginHost* self); - void (*stop_importing) (SpitDataImportsPluginHost* self); - SpitDataImportsDataImporter* (*get_data_importer) (SpitDataImportsPluginHost* self); - void (*install_dialog_pane) (SpitDataImportsPluginHost* self, SpitDataImportsDialogPane* pane, SpitDataImportsPluginHostButtonMode mode); - void (*install_static_message_pane) (SpitDataImportsPluginHost* self, const gchar* message, SpitDataImportsPluginHostButtonMode mode); - void (*install_library_selection_pane) (SpitDataImportsPluginHost* self, const gchar* welcome_message, SpitDataImportsImportableLibrary** discovered_libraries, int discovered_libraries_length1, const gchar* file_select_label); - void (*install_import_progress_pane) (SpitDataImportsPluginHost* self, const gchar* message); - void (*update_import_progress_pane) (SpitDataImportsPluginHost* self, gdouble progress, const gchar* progress_message); - void (*prepare_media_items_for_import) (SpitDataImportsPluginHost* self, SpitDataImportsImportableMediaItem** items, int items_length1, gdouble progress, gdouble host_progress_delta, const gchar* progress_message); - void (*finalize_import) (SpitDataImportsPluginHost* self, SpitDataImportsImportedItemsCountCallback report_imported_items_count, void* report_imported_items_count_target, const gchar* finalize_message); - void (*reserved0) (SpitDataImportsPluginHost* self); - void (*reserved1) (SpitDataImportsPluginHost* self); - void (*reserved2) (SpitDataImportsPluginHost* self); - void (*reserved3) (SpitDataImportsPluginHost* self); - void (*reserved4) (SpitDataImportsPluginHost* self); - void (*reserved5) (SpitDataImportsPluginHost* self); - void (*reserved6) (SpitDataImportsPluginHost* self); - void (*reserved7) (SpitDataImportsPluginHost* self); -}; - -struct _SpitDataImportsServiceIface { - GTypeInterface parent_iface; - SpitDataImportsDataImporter* (*create_data_importer) (SpitDataImportsService* self, SpitDataImportsPluginHost* host); - void (*reserved0) (SpitDataImportsService* self); - void (*reserved1) (SpitDataImportsService* self); - void (*reserved2) (SpitDataImportsService* self); - void (*reserved3) (SpitDataImportsService* self); - void (*reserved4) (SpitDataImportsService* self); - void (*reserved5) (SpitDataImportsService* self); - void (*reserved6) (SpitDataImportsService* self); - void (*reserved7) (SpitDataImportsService* self); -}; - -struct _SpitDataImportsDataImporterIface { - GTypeInterface parent_iface; - SpitDataImportsService* (*get_service) (SpitDataImportsDataImporter* self); - void (*start) (SpitDataImportsDataImporter* self); - gboolean (*is_running) (SpitDataImportsDataImporter* self); - void (*stop) (SpitDataImportsDataImporter* self); - void (*on_library_selected) (SpitDataImportsDataImporter* self, SpitDataImportsImportableLibrary* library); - void (*on_file_selected) (SpitDataImportsDataImporter* self, GFile* file); - void (*reserved0) (SpitDataImportsDataImporter* self); - void (*reserved1) (SpitDataImportsDataImporter* self); - void (*reserved2) (SpitDataImportsDataImporter* self); - void (*reserved3) (SpitDataImportsDataImporter* self); - void (*reserved4) (SpitDataImportsDataImporter* self); - void (*reserved5) (SpitDataImportsDataImporter* self); - void (*reserved6) (SpitDataImportsDataImporter* self); - void (*reserved7) (SpitDataImportsDataImporter* self); -}; - - -#define SPIT_UNSUPPORTED_INTERFACE -1 -#define SPIT_CURRENT_INTERFACE 0 -gint spit_negotiate_interfaces (gint min_host_interface, - gint max_host_interface, - gint plugin_interface); -GType spit_entry_point_params_get_type (void) G_GNUC_CONST; -SpitEntryPointParams* spit_entry_point_params_dup (const SpitEntryPointParams* self); -void spit_entry_point_params_free (SpitEntryPointParams* self); -void spit_entry_point_params_copy (const SpitEntryPointParams* self, - SpitEntryPointParams* dest); -void spit_entry_point_params_destroy (SpitEntryPointParams* self); -GType spit_pluggable_info_get_type (void) G_GNUC_CONST; -SpitPluggableInfo* spit_pluggable_info_dup (const SpitPluggableInfo* self); -void spit_pluggable_info_free (SpitPluggableInfo* self); -void spit_pluggable_info_copy (const SpitPluggableInfo* self, - SpitPluggableInfo* dest); -void spit_pluggable_info_destroy (SpitPluggableInfo* self); -GType spit_pluggable_get_type (void) G_GNUC_CONST; -GType spit_module_get_type (void) G_GNUC_CONST; -#define SPIT_ENTRY_POINT_NAME "spit_entry_point" -const gchar* spit_module_get_module_name (SpitModule* self); -const gchar* spit_module_get_version (SpitModule* self); -const gchar* spit_module_get_id (SpitModule* self); -SpitPluggable** spit_module_get_pluggables (SpitModule* self, - int* result_length1); -void spit_module_reserved0 (SpitModule* self); -void spit_module_reserved1 (SpitModule* self); -void spit_module_reserved2 (SpitModule* self); -void spit_module_reserved3 (SpitModule* self); -void spit_module_reserved4 (SpitModule* self); -void spit_module_reserved5 (SpitModule* self); -void spit_module_reserved6 (SpitModule* self); -void spit_module_reserved7 (SpitModule* self); -gint spit_pluggable_get_pluggable_interface (SpitPluggable* self, - gint min_host_interface, - gint max_host_interface); -const gchar* spit_pluggable_get_id (SpitPluggable* self); -const gchar* spit_pluggable_get_pluggable_name (SpitPluggable* self); -void spit_pluggable_get_info (SpitPluggable* self, - SpitPluggableInfo* info); -void spit_pluggable_activation (SpitPluggable* self, - gboolean enabled); -void spit_pluggable_reserved0 (SpitPluggable* self); -void spit_pluggable_reserved1 (SpitPluggable* self); -void spit_pluggable_reserved2 (SpitPluggable* self); -void spit_pluggable_reserved3 (SpitPluggable* self); -void spit_pluggable_reserved4 (SpitPluggable* self); -void spit_pluggable_reserved5 (SpitPluggable* self); -void spit_pluggable_reserved6 (SpitPluggable* self); -void spit_pluggable_reserved7 (SpitPluggable* self); -GType spit_host_interface_get_type (void) G_GNUC_CONST; -GFile* spit_host_interface_get_module_file (SpitHostInterface* self); -gboolean spit_host_interface_get_config_bool (SpitHostInterface* self, - const gchar* key, - gboolean def); -void spit_host_interface_set_config_bool (SpitHostInterface* self, - const gchar* key, - gboolean val); -gint spit_host_interface_get_config_int (SpitHostInterface* self, - const gchar* key, - gint def); -void spit_host_interface_set_config_int (SpitHostInterface* self, - const gchar* key, - gint val); -gchar* spit_host_interface_get_config_string (SpitHostInterface* self, - const gchar* key, - const gchar* def); -void spit_host_interface_set_config_string (SpitHostInterface* self, - const gchar* key, - const gchar* val); -gdouble spit_host_interface_get_config_double (SpitHostInterface* self, - const gchar* key, - gdouble def); -void spit_host_interface_set_config_double (SpitHostInterface* self, - const gchar* key, - gdouble val); -void spit_host_interface_unset_config_key (SpitHostInterface* self, - const gchar* key); -void spit_host_interface_reserved0 (SpitHostInterface* self); -void spit_host_interface_reserved1 (SpitHostInterface* self); -void spit_host_interface_reserved2 (SpitHostInterface* self); -void spit_host_interface_reserved3 (SpitHostInterface* self); -void spit_host_interface_reserved4 (SpitHostInterface* self); -void spit_host_interface_reserved5 (SpitHostInterface* self); -void spit_host_interface_reserved6 (SpitHostInterface* self); -void spit_host_interface_reserved7 (SpitHostInterface* self); -#define SPIT_TRANSITIONS_CURRENT_INTERFACE 0 -GType spit_transitions_direction_get_type (void) G_GNUC_CONST; -GType spit_transitions_visuals_get_type (void) G_GNUC_CONST; -SpitTransitionsVisuals* spit_transitions_visuals_new (GdkPixbuf* from_pixbuf, - GdkRectangle* from_pos, - GdkPixbuf* to_pixbuf, - GdkRectangle* to_pos, - GdkRGBA* bg_color); -SpitTransitionsVisuals* spit_transitions_visuals_construct (GType object_type, - GdkPixbuf* from_pixbuf, - GdkRectangle* from_pos, - GdkPixbuf* to_pixbuf, - GdkRectangle* to_pos, - GdkRGBA* bg_color); -void spit_transitions_visuals_reserved0 (SpitTransitionsVisuals* self); -void spit_transitions_visuals_reserved1 (SpitTransitionsVisuals* self); -void spit_transitions_visuals_reserved2 (SpitTransitionsVisuals* self); -void spit_transitions_visuals_reserved3 (SpitTransitionsVisuals* self); -void spit_transitions_visuals_reserved4 (SpitTransitionsVisuals* self); -void spit_transitions_visuals_reserved5 (SpitTransitionsVisuals* self); -void spit_transitions_visuals_reserved6 (SpitTransitionsVisuals* self); -void spit_transitions_visuals_reserved7 (SpitTransitionsVisuals* self); -GdkPixbuf* spit_transitions_visuals_get_from_pixbuf (SpitTransitionsVisuals* self); -void spit_transitions_visuals_get_from_pos (SpitTransitionsVisuals* self, - GdkRectangle * result); -GdkPixbuf* spit_transitions_visuals_get_to_pixbuf (SpitTransitionsVisuals* self); -void spit_transitions_visuals_get_to_pos (SpitTransitionsVisuals* self, - GdkRectangle * result); -void spit_transitions_visuals_get_bg_color (SpitTransitionsVisuals* self, - GdkRGBA * result); -GType spit_transitions_motion_get_type (void) G_GNUC_CONST; -SpitTransitionsMotion* spit_transitions_motion_new (SpitTransitionsDirection direction, - gint fps, - gint duration_msec); -SpitTransitionsMotion* spit_transitions_motion_construct (GType object_type, - SpitTransitionsDirection direction, - gint fps, - gint duration_msec); -gdouble spit_transitions_motion_get_alpha (SpitTransitionsMotion* self, - gint frame_number); -void spit_transitions_motion_reserved0 (SpitTransitionsMotion* self); -void spit_transitions_motion_reserved1 (SpitTransitionsMotion* self); -void spit_transitions_motion_reserved2 (SpitTransitionsMotion* self); -void spit_transitions_motion_reserved3 (SpitTransitionsMotion* self); -void spit_transitions_motion_reserved4 (SpitTransitionsMotion* self); -void spit_transitions_motion_reserved5 (SpitTransitionsMotion* self); -void spit_transitions_motion_reserved6 (SpitTransitionsMotion* self); -void spit_transitions_motion_reserved7 (SpitTransitionsMotion* self); -SpitTransitionsDirection spit_transitions_motion_get_direction (SpitTransitionsMotion* self); -gint spit_transitions_motion_get_fps (SpitTransitionsMotion* self); -gint spit_transitions_motion_get_duration_msec (SpitTransitionsMotion* self); -gint spit_transitions_motion_get_total_frames (SpitTransitionsMotion* self); -gint spit_transitions_motion_get_tick_msec (SpitTransitionsMotion* self); -GType spit_transitions_effect_get_type (void) G_GNUC_CONST; -GType spit_transitions_descriptor_get_type (void) G_GNUC_CONST; -SpitTransitionsEffect* spit_transitions_descriptor_create (SpitTransitionsDescriptor* self, - SpitHostInterface* host); -void spit_transitions_descriptor_reserved0 (SpitTransitionsDescriptor* self); -void spit_transitions_descriptor_reserved1 (SpitTransitionsDescriptor* self); -void spit_transitions_descriptor_reserved2 (SpitTransitionsDescriptor* self); -void spit_transitions_descriptor_reserved3 (SpitTransitionsDescriptor* self); -void spit_transitions_descriptor_reserved4 (SpitTransitionsDescriptor* self); -void spit_transitions_descriptor_reserved5 (SpitTransitionsDescriptor* self); -void spit_transitions_descriptor_reserved6 (SpitTransitionsDescriptor* self); -void spit_transitions_descriptor_reserved7 (SpitTransitionsDescriptor* self); -void spit_transitions_effect_get_fps (SpitTransitionsEffect* self, - gint* desired_fps, - gint* min_fps); -void spit_transitions_effect_start (SpitTransitionsEffect* self, - SpitTransitionsVisuals* visuals, - SpitTransitionsMotion* motion); -gboolean spit_transitions_effect_needs_clear_background (SpitTransitionsEffect* self); -void spit_transitions_effect_paint (SpitTransitionsEffect* self, - SpitTransitionsVisuals* visuals, - SpitTransitionsMotion* motion, - cairo_t* ctx, - gint width, - gint height, - gint frame_number); -void spit_transitions_effect_advance (SpitTransitionsEffect* self, - SpitTransitionsVisuals* visuals, - SpitTransitionsMotion* motion, - gint frame_number); -void spit_transitions_effect_cancel (SpitTransitionsEffect* self); -void spit_transitions_effect_reserved0 (SpitTransitionsEffect* self); -void spit_transitions_effect_reserved1 (SpitTransitionsEffect* self); -void spit_transitions_effect_reserved2 (SpitTransitionsEffect* self); -void spit_transitions_effect_reserved3 (SpitTransitionsEffect* self); -void spit_transitions_effect_reserved4 (SpitTransitionsEffect* self); -void spit_transitions_effect_reserved5 (SpitTransitionsEffect* self); -void spit_transitions_effect_reserved6 (SpitTransitionsEffect* self); -void spit_transitions_effect_reserved7 (SpitTransitionsEffect* self); -#define SPIT_PUBLISHING_CURRENT_INTERFACE 0 -GQuark spit_publishing_publishing_error_quark (void); -GType spit_publishing_dialog_pane_geometry_options_get_type (void) G_GNUC_CONST; -GType spit_publishing_dialog_pane_get_type (void) G_GNUC_CONST; -GType spit_publishing_plugin_host_button_mode_get_type (void) G_GNUC_CONST; -GType spit_publishing_publisher_media_type_get_type (void) G_GNUC_CONST; -GType spit_publishing_publishable_get_type (void) G_GNUC_CONST; -GType spit_publishing_plugin_host_get_type (void) G_GNUC_CONST; -GType spit_publishing_service_get_type (void) G_GNUC_CONST; -GType spit_publishing_publisher_get_type (void) G_GNUC_CONST; -SpitPublishingService* spit_publishing_publisher_get_service (SpitPublishingPublisher* self); -void spit_publishing_publisher_start (SpitPublishingPublisher* self); -gboolean spit_publishing_publisher_is_running (SpitPublishingPublisher* self); -void spit_publishing_publisher_stop (SpitPublishingPublisher* self); -void spit_publishing_publisher_reserved0 (SpitPublishingPublisher* self); -void spit_publishing_publisher_reserved1 (SpitPublishingPublisher* self); -void spit_publishing_publisher_reserved2 (SpitPublishingPublisher* self); -void spit_publishing_publisher_reserved3 (SpitPublishingPublisher* self); -void spit_publishing_publisher_reserved4 (SpitPublishingPublisher* self); -void spit_publishing_publisher_reserved5 (SpitPublishingPublisher* self); -void spit_publishing_publisher_reserved6 (SpitPublishingPublisher* self); -void spit_publishing_publisher_reserved7 (SpitPublishingPublisher* self); -GtkWidget* spit_publishing_dialog_pane_get_widget (SpitPublishingDialogPane* self); -SpitPublishingDialogPaneGeometryOptions spit_publishing_dialog_pane_get_preferred_geometry (SpitPublishingDialogPane* self); -void spit_publishing_dialog_pane_on_pane_installed (SpitPublishingDialogPane* self); -void spit_publishing_dialog_pane_on_pane_uninstalled (SpitPublishingDialogPane* self); -void spit_publishing_dialog_pane_reserved0 (SpitPublishingDialogPane* self); -void spit_publishing_dialog_pane_reserved1 (SpitPublishingDialogPane* self); -void spit_publishing_dialog_pane_reserved2 (SpitPublishingDialogPane* self); -void spit_publishing_dialog_pane_reserved3 (SpitPublishingDialogPane* self); -void spit_publishing_dialog_pane_reserved4 (SpitPublishingDialogPane* self); -void spit_publishing_dialog_pane_reserved5 (SpitPublishingDialogPane* self); -void spit_publishing_dialog_pane_reserved6 (SpitPublishingDialogPane* self); -void spit_publishing_dialog_pane_reserved7 (SpitPublishingDialogPane* self); -void spit_publishing_plugin_host_post_error (SpitPublishingPluginHost* self, - GError* err); -void spit_publishing_plugin_host_stop_publishing (SpitPublishingPluginHost* self); -SpitPublishingPublisher* spit_publishing_plugin_host_get_publisher (SpitPublishingPluginHost* self); -void spit_publishing_plugin_host_install_dialog_pane (SpitPublishingPluginHost* self, - SpitPublishingDialogPane* pane, - SpitPublishingPluginHostButtonMode mode); -void spit_publishing_plugin_host_install_static_message_pane (SpitPublishingPluginHost* self, - const gchar* message, - SpitPublishingPluginHostButtonMode mode); -void spit_publishing_plugin_host_install_pango_message_pane (SpitPublishingPluginHost* self, - const gchar* markup, - SpitPublishingPluginHostButtonMode mode); -void spit_publishing_plugin_host_install_success_pane (SpitPublishingPluginHost* self); -void spit_publishing_plugin_host_install_account_fetch_wait_pane (SpitPublishingPluginHost* self); -void spit_publishing_plugin_host_install_login_wait_pane (SpitPublishingPluginHost* self); -void spit_publishing_plugin_host_install_welcome_pane (SpitPublishingPluginHost* self, - const gchar* welcome_message, - SpitPublishingLoginCallback on_login_clicked, - void* on_login_clicked_target); -void spit_publishing_plugin_host_set_service_locked (SpitPublishingPluginHost* self, - gboolean is_locked); -void spit_publishing_plugin_host_set_dialog_default_widget (SpitPublishingPluginHost* self, - GtkWidget* widget); -SpitPublishingPublishable** spit_publishing_plugin_host_get_publishables (SpitPublishingPluginHost* self, - int* result_length1); -SpitPublishingProgressCallback spit_publishing_plugin_host_serialize_publishables (SpitPublishingPluginHost* self, - gint content_major_axis, - gboolean strip_metadata, - void** result_target, - GDestroyNotify* result_target_destroy_notify); -SpitPublishingPublisherMediaType spit_publishing_plugin_host_get_publishable_media_type (SpitPublishingPluginHost* self); -void spit_publishing_plugin_host_reserved0 (SpitPublishingPluginHost* self); -void spit_publishing_plugin_host_reserved1 (SpitPublishingPluginHost* self); -void spit_publishing_plugin_host_reserved2 (SpitPublishingPluginHost* self); -void spit_publishing_plugin_host_reserved3 (SpitPublishingPluginHost* self); -void spit_publishing_plugin_host_reserved4 (SpitPublishingPluginHost* self); -void spit_publishing_plugin_host_reserved5 (SpitPublishingPluginHost* self); -void spit_publishing_plugin_host_reserved6 (SpitPublishingPluginHost* self); -void spit_publishing_plugin_host_reserved7 (SpitPublishingPluginHost* self); -GFile* spit_publishing_publishable_get_serialized_file (SpitPublishingPublishable* self); -gchar* spit_publishing_publishable_get_publishing_name (SpitPublishingPublishable* self); -gchar* spit_publishing_publishable_get_param_string (SpitPublishingPublishable* self, - const gchar* name); -gchar** spit_publishing_publishable_get_publishing_keywords (SpitPublishingPublishable* self, - int* result_length1); -SpitPublishingPublisherMediaType spit_publishing_publishable_get_media_type (SpitPublishingPublishable* self); -GDateTime* spit_publishing_publishable_get_exposure_date_time (SpitPublishingPublishable* self); -void spit_publishing_publishable_reserved0 (SpitPublishingPublishable* self); -void spit_publishing_publishable_reserved1 (SpitPublishingPublishable* self); -void spit_publishing_publishable_reserved2 (SpitPublishingPublishable* self); -void spit_publishing_publishable_reserved3 (SpitPublishingPublishable* self); -void spit_publishing_publishable_reserved4 (SpitPublishingPublishable* self); -void spit_publishing_publishable_reserved5 (SpitPublishingPublishable* self); -void spit_publishing_publishable_reserved6 (SpitPublishingPublishable* self); -void spit_publishing_publishable_reserved7 (SpitPublishingPublishable* self); -#define SPIT_PUBLISHING_PUBLISHABLE_PARAM_STRING_BASENAME "basename" -#define SPIT_PUBLISHING_PUBLISHABLE_PARAM_STRING_TITLE "title" -#define SPIT_PUBLISHING_PUBLISHABLE_PARAM_STRING_COMMENT "comment" -#define SPIT_PUBLISHING_PUBLISHABLE_PARAM_STRING_EVENTCOMMENT "eventcomment" -SpitPublishingPublisher* spit_publishing_service_create_publisher (SpitPublishingService* self, - SpitPublishingPluginHost* host); -SpitPublishingPublisherMediaType spit_publishing_service_get_supported_media (SpitPublishingService* self); -void spit_publishing_service_reserved0 (SpitPublishingService* self); -void spit_publishing_service_reserved1 (SpitPublishingService* self); -void spit_publishing_service_reserved2 (SpitPublishingService* self); -void spit_publishing_service_reserved3 (SpitPublishingService* self); -void spit_publishing_service_reserved4 (SpitPublishingService* self); -void spit_publishing_service_reserved5 (SpitPublishingService* self); -void spit_publishing_service_reserved6 (SpitPublishingService* self); -void spit_publishing_service_reserved7 (SpitPublishingService* self); -GType spit_publishing_authenticator_get_type (void) G_GNUC_CONST; -void spit_publishing_authenticator_authenticate (SpitPublishingAuthenticator* self); -gboolean spit_publishing_authenticator_can_logout (SpitPublishingAuthenticator* self); -void spit_publishing_authenticator_logout (SpitPublishingAuthenticator* self); -void spit_publishing_authenticator_refresh (SpitPublishingAuthenticator* self); -GHashTable* spit_publishing_authenticator_get_authentication_parameter (SpitPublishingAuthenticator* self); -GType spit_publishing_authenticator_factory_get_type (void) G_GNUC_CONST; -GeeList* spit_publishing_authenticator_factory_get_available_authenticators (SpitPublishingAuthenticatorFactory* self); -SpitPublishingAuthenticator* spit_publishing_authenticator_factory_create (SpitPublishingAuthenticatorFactory* self, - const gchar* provider, - SpitPublishingPluginHost* host); -#define SPIT_DATA_IMPORTS_CURRENT_INTERFACE 0 -GQuark spit_data_imports_data_import_error_quark (void); -GType spit_data_imports_dialog_pane_geometry_options_get_type (void) G_GNUC_CONST; -GType spit_data_imports_dialog_pane_get_type (void) G_GNUC_CONST; -GType spit_data_imports_plugin_host_button_mode_get_type (void) G_GNUC_CONST; -GType spit_data_imports_importable_library_get_type (void) G_GNUC_CONST; -GType spit_data_imports_importable_tag_get_type (void) G_GNUC_CONST; -GType spit_data_imports_importable_event_get_type (void) G_GNUC_CONST; -GType spit_data_imports_importable_rating_get_type (void) G_GNUC_CONST; -GType spit_data_imports_importable_media_item_get_type (void) G_GNUC_CONST; -GType spit_data_imports_plugin_host_get_type (void) G_GNUC_CONST; -GType spit_data_imports_service_get_type (void) G_GNUC_CONST; -GType spit_data_imports_data_importer_get_type (void) G_GNUC_CONST; -SpitDataImportsService* spit_data_imports_data_importer_get_service (SpitDataImportsDataImporter* self); -void spit_data_imports_data_importer_start (SpitDataImportsDataImporter* self); -gboolean spit_data_imports_data_importer_is_running (SpitDataImportsDataImporter* self); -void spit_data_imports_data_importer_stop (SpitDataImportsDataImporter* self); -void spit_data_imports_data_importer_on_library_selected (SpitDataImportsDataImporter* self, - SpitDataImportsImportableLibrary* library); -void spit_data_imports_data_importer_on_file_selected (SpitDataImportsDataImporter* self, - GFile* file); -void spit_data_imports_data_importer_reserved0 (SpitDataImportsDataImporter* self); -void spit_data_imports_data_importer_reserved1 (SpitDataImportsDataImporter* self); -void spit_data_imports_data_importer_reserved2 (SpitDataImportsDataImporter* self); -void spit_data_imports_data_importer_reserved3 (SpitDataImportsDataImporter* self); -void spit_data_imports_data_importer_reserved4 (SpitDataImportsDataImporter* self); -void spit_data_imports_data_importer_reserved5 (SpitDataImportsDataImporter* self); -void spit_data_imports_data_importer_reserved6 (SpitDataImportsDataImporter* self); -void spit_data_imports_data_importer_reserved7 (SpitDataImportsDataImporter* self); -gchar* spit_data_imports_importable_library_get_display_name (SpitDataImportsImportableLibrary* self); -SpitDataImportsImportableTag** spit_data_imports_importable_media_item_get_tags (SpitDataImportsImportableMediaItem* self, - int* result_length1); -SpitDataImportsImportableEvent* spit_data_imports_importable_media_item_get_event (SpitDataImportsImportableMediaItem* self); -SpitDataImportsImportableRating* spit_data_imports_importable_media_item_get_rating (SpitDataImportsImportableMediaItem* self); -gchar* spit_data_imports_importable_media_item_get_title (SpitDataImportsImportableMediaItem* self); -gchar* spit_data_imports_importable_media_item_get_folder_path (SpitDataImportsImportableMediaItem* self); -gchar* spit_data_imports_importable_media_item_get_filename (SpitDataImportsImportableMediaItem* self); -time_t* spit_data_imports_importable_media_item_get_exposure_time (SpitDataImportsImportableMediaItem* self); -gchar* spit_data_imports_importable_tag_get_name (SpitDataImportsImportableTag* self); -SpitDataImportsImportableTag* spit_data_imports_importable_tag_get_parent (SpitDataImportsImportableTag* self); -gchar* spit_data_imports_importable_event_get_name (SpitDataImportsImportableEvent* self); -gboolean spit_data_imports_importable_rating_is_unrated (SpitDataImportsImportableRating* self); -gboolean spit_data_imports_importable_rating_is_rejected (SpitDataImportsImportableRating* self); -gint spit_data_imports_importable_rating_get_value (SpitDataImportsImportableRating* self); -GtkWidget* spit_data_imports_dialog_pane_get_widget (SpitDataImportsDialogPane* self); -SpitDataImportsDialogPaneGeometryOptions spit_data_imports_dialog_pane_get_preferred_geometry (SpitDataImportsDialogPane* self); -void spit_data_imports_dialog_pane_on_pane_installed (SpitDataImportsDialogPane* self); -void spit_data_imports_dialog_pane_on_pane_uninstalled (SpitDataImportsDialogPane* self); -void spit_data_imports_dialog_pane_reserved0 (SpitDataImportsDialogPane* self); -void spit_data_imports_dialog_pane_reserved1 (SpitDataImportsDialogPane* self); -void spit_data_imports_dialog_pane_reserved2 (SpitDataImportsDialogPane* self); -void spit_data_imports_dialog_pane_reserved3 (SpitDataImportsDialogPane* self); -void spit_data_imports_dialog_pane_reserved4 (SpitDataImportsDialogPane* self); -void spit_data_imports_dialog_pane_reserved5 (SpitDataImportsDialogPane* self); -void spit_data_imports_dialog_pane_reserved6 (SpitDataImportsDialogPane* self); -void spit_data_imports_dialog_pane_reserved7 (SpitDataImportsDialogPane* self); -void spit_data_imports_plugin_host_post_error (SpitDataImportsPluginHost* self, - GError* err); -void spit_data_imports_plugin_host_post_error_message (SpitDataImportsPluginHost* self, - const gchar* msg); -void spit_data_imports_plugin_host_start_importing (SpitDataImportsPluginHost* self); -void spit_data_imports_plugin_host_stop_importing (SpitDataImportsPluginHost* self); -SpitDataImportsDataImporter* spit_data_imports_plugin_host_get_data_importer (SpitDataImportsPluginHost* self); -void spit_data_imports_plugin_host_install_dialog_pane (SpitDataImportsPluginHost* self, - SpitDataImportsDialogPane* pane, - SpitDataImportsPluginHostButtonMode mode); -void spit_data_imports_plugin_host_install_static_message_pane (SpitDataImportsPluginHost* self, - const gchar* message, - SpitDataImportsPluginHostButtonMode mode); -void spit_data_imports_plugin_host_install_library_selection_pane (SpitDataImportsPluginHost* self, - const gchar* welcome_message, - SpitDataImportsImportableLibrary** discovered_libraries, - int discovered_libraries_length1, - const gchar* file_select_label); -void spit_data_imports_plugin_host_install_import_progress_pane (SpitDataImportsPluginHost* self, - const gchar* message); -void spit_data_imports_plugin_host_update_import_progress_pane (SpitDataImportsPluginHost* self, - gdouble progress, - const gchar* progress_message); -void spit_data_imports_plugin_host_prepare_media_items_for_import (SpitDataImportsPluginHost* self, - SpitDataImportsImportableMediaItem** items, - int items_length1, - gdouble progress, - gdouble host_progress_delta, - const gchar* progress_message); -void spit_data_imports_plugin_host_finalize_import (SpitDataImportsPluginHost* self, - SpitDataImportsImportedItemsCountCallback report_imported_items_count, - void* report_imported_items_count_target, - const gchar* finalize_message); -void spit_data_imports_plugin_host_reserved0 (SpitDataImportsPluginHost* self); -void spit_data_imports_plugin_host_reserved1 (SpitDataImportsPluginHost* self); -void spit_data_imports_plugin_host_reserved2 (SpitDataImportsPluginHost* self); -void spit_data_imports_plugin_host_reserved3 (SpitDataImportsPluginHost* self); -void spit_data_imports_plugin_host_reserved4 (SpitDataImportsPluginHost* self); -void spit_data_imports_plugin_host_reserved5 (SpitDataImportsPluginHost* self); -void spit_data_imports_plugin_host_reserved6 (SpitDataImportsPluginHost* self); -void spit_data_imports_plugin_host_reserved7 (SpitDataImportsPluginHost* self); -SpitDataImportsDataImporter* spit_data_imports_service_create_data_importer (SpitDataImportsService* self, - SpitDataImportsPluginHost* host); -void spit_data_imports_service_reserved0 (SpitDataImportsService* self); -void spit_data_imports_service_reserved1 (SpitDataImportsService* self); -void spit_data_imports_service_reserved2 (SpitDataImportsService* self); -void spit_data_imports_service_reserved3 (SpitDataImportsService* self); -void spit_data_imports_service_reserved4 (SpitDataImportsService* self); -void spit_data_imports_service_reserved5 (SpitDataImportsService* self); -void spit_data_imports_service_reserved6 (SpitDataImportsService* self); -void spit_data_imports_service_reserved7 (SpitDataImportsService* self); - - -G_END_DECLS - -#endif diff --git a/plugins/shotwell-plugin-dev-1.0.vapi b/plugins/shotwell-plugin-dev-1.0.vapi deleted file mode 100644 index e297926..0000000 --- a/plugins/shotwell-plugin-dev-1.0.vapi +++ /dev/null @@ -1,416 +0,0 @@ -/* shotwell-plugin-dev-1.0.vapi generated by valac 0.40.4, do not modify. */ - -namespace Spit { - namespace DataImports { - [CCode (cheader_filename = "shotwell-plugin-dev-1.0.h")] - public interface DataImporter : GLib.Object { - public abstract Spit.DataImports.Service get_service (); - public abstract bool is_running (); - public abstract void on_file_selected (GLib.File file); - public abstract void on_library_selected (Spit.DataImports.ImportableLibrary library); - protected virtual void reserved0 (); - protected virtual void reserved1 (); - protected virtual void reserved2 (); - protected virtual void reserved3 (); - protected virtual void reserved4 (); - protected virtual void reserved5 (); - protected virtual void reserved6 (); - protected virtual void reserved7 (); - public abstract void start (); - public abstract void stop (); - } - [CCode (cheader_filename = "shotwell-plugin-dev-1.0.h")] - public interface DialogPane : GLib.Object { - public enum GeometryOptions { - NONE, - EXTENDED_SIZE, - RESIZABLE, - COLOSSAL_SIZE - } - public abstract Spit.DataImports.DialogPane.GeometryOptions get_preferred_geometry (); - public abstract Gtk.Widget get_widget (); - public abstract void on_pane_installed (); - public abstract void on_pane_uninstalled (); - protected virtual void reserved0 (); - protected virtual void reserved1 (); - protected virtual void reserved2 (); - protected virtual void reserved3 (); - protected virtual void reserved4 (); - protected virtual void reserved5 (); - protected virtual void reserved6 (); - protected virtual void reserved7 (); - } - [CCode (cheader_filename = "shotwell-plugin-dev-1.0.h")] - public interface ImportableEvent : GLib.Object { - public abstract string get_name (); - } - [CCode (cheader_filename = "shotwell-plugin-dev-1.0.h")] - public interface ImportableLibrary : GLib.Object { - public abstract string get_display_name (); - } - [CCode (cheader_filename = "shotwell-plugin-dev-1.0.h")] - public interface ImportableMediaItem : GLib.Object { - public abstract Spit.DataImports.ImportableEvent? get_event (); - public abstract time_t? get_exposure_time (); - public abstract string get_filename (); - public abstract string get_folder_path (); - public abstract Spit.DataImports.ImportableRating get_rating (); - public abstract Spit.DataImports.ImportableTag[] get_tags (); - public abstract string? get_title (); - } - [CCode (cheader_filename = "shotwell-plugin-dev-1.0.h")] - public interface ImportableRating : GLib.Object { - public abstract int get_value (); - public abstract bool is_rejected (); - public abstract bool is_unrated (); - } - [CCode (cheader_filename = "shotwell-plugin-dev-1.0.h")] - public interface ImportableTag : GLib.Object { - public abstract string get_name (); - public abstract Spit.DataImports.ImportableTag? get_parent (); - } - [CCode (cheader_filename = "shotwell-plugin-dev-1.0.h")] - public interface PluginHost : GLib.Object, Spit.HostInterface { - public enum ButtonMode { - CLOSE, - CANCEL - } - public abstract void finalize_import (Spit.DataImports.ImportedItemsCountCallback report_imported_items_count, string? finalize_message = null); - public abstract Spit.DataImports.DataImporter get_data_importer (); - public abstract void install_dialog_pane (Spit.DataImports.DialogPane pane, Spit.DataImports.PluginHost.ButtonMode mode = ButtonMode.CANCEL); - public abstract void install_import_progress_pane (string message); - public abstract void install_library_selection_pane (string welcome_message, Spit.DataImports.ImportableLibrary[] discovered_libraries, string? file_select_label); - public abstract void install_static_message_pane (string message, Spit.DataImports.PluginHost.ButtonMode mode = ButtonMode.CANCEL); - public abstract void post_error (GLib.Error err); - public abstract void post_error_message (string msg); - public abstract void prepare_media_items_for_import (Spit.DataImports.ImportableMediaItem[] items, double progress, double host_progress_delta = 0.0, string? progress_message = null); - protected virtual void reserved0 (); - protected virtual void reserved1 (); - protected virtual void reserved2 (); - protected virtual void reserved3 (); - protected virtual void reserved4 (); - protected virtual void reserved5 (); - protected virtual void reserved6 (); - protected virtual void reserved7 (); - public abstract void start_importing (); - public abstract void stop_importing (); - public abstract void update_import_progress_pane (double progress, string? progress_message = null); - } - [CCode (cheader_filename = "shotwell-plugin-dev-1.0.h")] - public interface Service : GLib.Object, Spit.Pluggable { - public abstract Spit.DataImports.DataImporter create_data_importer (Spit.DataImports.PluginHost host); - protected virtual void reserved0 (); - protected virtual void reserved1 (); - protected virtual void reserved2 (); - protected virtual void reserved3 (); - protected virtual void reserved4 (); - protected virtual void reserved5 (); - protected virtual void reserved6 (); - protected virtual void reserved7 (); - } - [CCode (cheader_filename = "shotwell-plugin-dev-1.0.h")] - public errordomain DataImportError { - UNSUPPORTED_VERSION - } - [CCode (cheader_filename = "shotwell-plugin-dev-1.0.h")] - public delegate void ImportedItemsCountCallback (int imported_items_count); - [CCode (cheader_filename = "shotwell-plugin-dev-1.0.h")] - public const int CURRENT_INTERFACE; - } - namespace Publishing { - [CCode (cheader_filename = "shotwell-plugin-dev-1.0.h")] - public interface Authenticator : GLib.Object { - public abstract void authenticate (); - public abstract bool can_logout (); - public abstract GLib.HashTable get_authentication_parameter (); - public abstract void logout (); - public abstract void refresh (); - public signal void authenticated (); - public signal void authentication_failed (); - } - [CCode (cheader_filename = "shotwell-plugin-dev-1.0.h")] - public interface AuthenticatorFactory : GLib.Object { - public abstract Spit.Publishing.Authenticator? create (string provider, Spit.Publishing.PluginHost host); - public abstract Gee.List get_available_authenticators (); - } - [CCode (cheader_filename = "shotwell-plugin-dev-1.0.h")] - public interface DialogPane : GLib.Object { - public enum GeometryOptions { - NONE, - EXTENDED_SIZE, - RESIZABLE, - COLOSSAL_SIZE - } - public abstract Spit.Publishing.DialogPane.GeometryOptions get_preferred_geometry (); - public abstract Gtk.Widget get_widget (); - public abstract void on_pane_installed (); - public abstract void on_pane_uninstalled (); - protected virtual void reserved0 (); - protected virtual void reserved1 (); - protected virtual void reserved2 (); - protected virtual void reserved3 (); - protected virtual void reserved4 (); - protected virtual void reserved5 (); - protected virtual void reserved6 (); - protected virtual void reserved7 (); - } - [CCode (cheader_filename = "shotwell-plugin-dev-1.0.h")] - public interface PluginHost : GLib.Object, Spit.HostInterface { - public enum ButtonMode { - CLOSE, - CANCEL - } - public abstract Spit.Publishing.Publisher.MediaType get_publishable_media_type (); - public abstract Spit.Publishing.Publishable[] get_publishables (); - public abstract Spit.Publishing.Publisher get_publisher (); - public abstract void install_account_fetch_wait_pane (); - public abstract void install_dialog_pane (Spit.Publishing.DialogPane pane, Spit.Publishing.PluginHost.ButtonMode mode = ButtonMode.CANCEL); - public abstract void install_login_wait_pane (); - public abstract void install_pango_message_pane (string markup, Spit.Publishing.PluginHost.ButtonMode mode = ButtonMode.CANCEL); - public abstract void install_static_message_pane (string message, Spit.Publishing.PluginHost.ButtonMode mode = ButtonMode.CANCEL); - public abstract void install_success_pane (); - public abstract void install_welcome_pane (string welcome_message, Spit.Publishing.LoginCallback on_login_clicked); - public abstract void post_error (GLib.Error err); - protected virtual void reserved0 (); - protected virtual void reserved1 (); - protected virtual void reserved2 (); - protected virtual void reserved3 (); - protected virtual void reserved4 (); - protected virtual void reserved5 (); - protected virtual void reserved6 (); - protected virtual void reserved7 (); - public abstract Spit.Publishing.ProgressCallback? serialize_publishables (int content_major_axis, bool strip_metadata = false); - public abstract void set_dialog_default_widget (Gtk.Widget widget); - public abstract void set_service_locked (bool is_locked); - public abstract void stop_publishing (); - } - [CCode (cheader_filename = "shotwell-plugin-dev-1.0.h")] - public interface Publishable : GLib.Object { - public const string PARAM_STRING_BASENAME; - public const string PARAM_STRING_COMMENT; - public const string PARAM_STRING_EVENTCOMMENT; - public const string PARAM_STRING_TITLE; - public abstract GLib.DateTime get_exposure_date_time (); - public abstract Spit.Publishing.Publisher.MediaType get_media_type (); - public abstract string? get_param_string (string name); - public abstract string[] get_publishing_keywords (); - public abstract string get_publishing_name (); - public abstract GLib.File? get_serialized_file (); - protected virtual void reserved0 (); - protected virtual void reserved1 (); - protected virtual void reserved2 (); - protected virtual void reserved3 (); - protected virtual void reserved4 (); - protected virtual void reserved5 (); - protected virtual void reserved6 (); - protected virtual void reserved7 (); - } - [CCode (cheader_filename = "shotwell-plugin-dev-1.0.h")] - public interface Publisher : GLib.Object { - public enum MediaType { - NONE, - PHOTO, - VIDEO - } - public abstract Spit.Publishing.Service get_service (); - public abstract bool is_running (); - protected virtual void reserved0 (); - protected virtual void reserved1 (); - protected virtual void reserved2 (); - protected virtual void reserved3 (); - protected virtual void reserved4 (); - protected virtual void reserved5 (); - protected virtual void reserved6 (); - protected virtual void reserved7 (); - public abstract void start (); - public abstract void stop (); - } - [CCode (cheader_filename = "shotwell-plugin-dev-1.0.h")] - public interface Service : GLib.Object, Spit.Pluggable { - public abstract Spit.Publishing.Publisher create_publisher (Spit.Publishing.PluginHost host); - public abstract Spit.Publishing.Publisher.MediaType get_supported_media (); - protected virtual void reserved0 (); - protected virtual void reserved1 (); - protected virtual void reserved2 (); - protected virtual void reserved3 (); - protected virtual void reserved4 (); - protected virtual void reserved5 (); - protected virtual void reserved6 (); - protected virtual void reserved7 (); - } - [CCode (cheader_filename = "shotwell-plugin-dev-1.0.h")] - public errordomain PublishingError { - NO_ANSWER, - COMMUNICATION_FAILED, - PROTOCOL_ERROR, - SERVICE_ERROR, - MALFORMED_RESPONSE, - LOCAL_FILE_ERROR, - EXPIRED_SESSION, - SSL_FAILED - } - [CCode (cheader_filename = "shotwell-plugin-dev-1.0.h")] - public delegate void LoginCallback (); - [CCode (cheader_filename = "shotwell-plugin-dev-1.0.h")] - public delegate void ProgressCallback (int file_number, double fraction_complete); - [CCode (cheader_filename = "shotwell-plugin-dev-1.0.h")] - public const int CURRENT_INTERFACE; - } - namespace Transitions { - [CCode (cheader_filename = "shotwell-plugin-dev-1.0.h")] - public class Motion : GLib.Object { - public Motion (Spit.Transitions.Direction direction, int fps, int duration_msec); - public double get_alpha (int frame_number); - protected virtual void reserved0 (); - protected virtual void reserved1 (); - protected virtual void reserved2 (); - protected virtual void reserved3 (); - protected virtual void reserved4 (); - protected virtual void reserved5 (); - protected virtual void reserved6 (); - protected virtual void reserved7 (); - public Spit.Transitions.Direction direction { get; private set; } - public int duration_msec { get; private set; } - public int fps { get; private set; } - public int tick_msec { get; } - public int total_frames { get; } - } - [CCode (cheader_filename = "shotwell-plugin-dev-1.0.h")] - public class Visuals : GLib.Object { - public Visuals (Gdk.Pixbuf? from_pixbuf, Gdk.Rectangle from_pos, Gdk.Pixbuf? to_pixbuf, Gdk.Rectangle to_pos, Gdk.RGBA bg_color); - protected virtual void reserved0 (); - protected virtual void reserved1 (); - protected virtual void reserved2 (); - protected virtual void reserved3 (); - protected virtual void reserved4 (); - protected virtual void reserved5 (); - protected virtual void reserved6 (); - protected virtual void reserved7 (); - public Gdk.RGBA bg_color { get; private set; } - public Gdk.Pixbuf? from_pixbuf { get; private set; } - public Gdk.Rectangle from_pos { get; private set; } - public Gdk.Pixbuf? to_pixbuf { get; private set; } - public Gdk.Rectangle to_pos { get; private set; } - } - [CCode (cheader_filename = "shotwell-plugin-dev-1.0.h")] - public interface Descriptor : GLib.Object, Spit.Pluggable { - public abstract Spit.Transitions.Effect create (Spit.HostInterface host); - protected virtual void reserved0 (); - protected virtual void reserved1 (); - protected virtual void reserved2 (); - protected virtual void reserved3 (); - protected virtual void reserved4 (); - protected virtual void reserved5 (); - protected virtual void reserved6 (); - protected virtual void reserved7 (); - } - [CCode (cheader_filename = "shotwell-plugin-dev-1.0.h")] - public interface Effect : GLib.Object { - public abstract void advance (Spit.Transitions.Visuals visuals, Spit.Transitions.Motion motion, int frame_number); - public abstract void cancel (); - public abstract void get_fps (out int desired_fps, out int min_fps); - public abstract bool needs_clear_background (); - public abstract void paint (Spit.Transitions.Visuals visuals, Spit.Transitions.Motion motion, Cairo.Context ctx, int width, int height, int frame_number); - protected virtual void reserved0 (); - protected virtual void reserved1 (); - protected virtual void reserved2 (); - protected virtual void reserved3 (); - protected virtual void reserved4 (); - protected virtual void reserved5 (); - protected virtual void reserved6 (); - protected virtual void reserved7 (); - public abstract void start (Spit.Transitions.Visuals visuals, Spit.Transitions.Motion motion); - } - [CCode (cheader_filename = "shotwell-plugin-dev-1.0.h")] - public enum Direction { - LEFT, - RIGHT, - FORWARD, - BACKWARD - } - [CCode (cheader_filename = "shotwell-plugin-dev-1.0.h")] - public const int CURRENT_INTERFACE; - } - [CCode (cheader_filename = "shotwell-plugin-dev-1.0.h")] - public interface HostInterface : GLib.Object { - public abstract bool get_config_bool (string key, bool def); - public abstract double get_config_double (string key, double def); - public abstract int get_config_int (string key, int def); - public abstract string? get_config_string (string key, string? def); - public abstract GLib.File get_module_file (); - protected virtual void reserved0 (); - protected virtual void reserved1 (); - protected virtual void reserved2 (); - protected virtual void reserved3 (); - protected virtual void reserved4 (); - protected virtual void reserved5 (); - protected virtual void reserved6 (); - protected virtual void reserved7 (); - public abstract void set_config_bool (string key, bool val); - public abstract void set_config_double (string key, double val); - public abstract void set_config_int (string key, int val); - public abstract void set_config_string (string key, string? val); - public abstract void unset_config_key (string key); - } - [CCode (cheader_filename = "shotwell-plugin-dev-1.0.h")] - public interface Module : GLib.Object { - public abstract unowned string get_id (); - public abstract unowned string get_module_name (); - public abstract unowned Spit.Pluggable[]? get_pluggables (); - public abstract unowned string get_version (); - protected virtual void reserved0 (); - protected virtual void reserved1 (); - protected virtual void reserved2 (); - protected virtual void reserved3 (); - protected virtual void reserved4 (); - protected virtual void reserved5 (); - protected virtual void reserved6 (); - protected virtual void reserved7 (); - } - [CCode (cheader_filename = "shotwell-plugin-dev-1.0.h")] - public interface Pluggable : GLib.Object { - public abstract void activation (bool enabled); - public abstract unowned string get_id (); - public abstract void get_info (ref Spit.PluggableInfo info); - public abstract int get_pluggable_interface (int min_host_interface, int max_host_interface); - public abstract unowned string get_pluggable_name (); - protected virtual void reserved0 (); - protected virtual void reserved1 (); - protected virtual void reserved2 (); - protected virtual void reserved3 (); - protected virtual void reserved4 (); - protected virtual void reserved5 (); - protected virtual void reserved6 (); - protected virtual void reserved7 (); - } - [CCode (cheader_filename = "shotwell-plugin-dev-1.0.h")] - public struct EntryPointParams { - public int host_min_spit_interface; - public int host_max_spit_interface; - public int module_spit_interface; - public GLib.File module_file; - } - [CCode (cheader_filename = "shotwell-plugin-dev-1.0.h")] - public struct PluggableInfo { - public string? version; - public string? brief_description; - public string? authors; - public string? copyright; - public string? license; - public bool is_license_wordwrapped; - public string? website_url; - public string? website_name; - public string? translators; - public Gdk.Pixbuf[]? icons; - } - [CCode (cheader_filename = "shotwell-plugin-dev-1.0.h", has_target = false)] - public delegate Spit.Module? EntryPoint (Spit.EntryPointParams* @params); - [CCode (cheader_filename = "shotwell-plugin-dev-1.0.h")] - public const int CURRENT_INTERFACE; - [CCode (cheader_filename = "shotwell-plugin-dev-1.0.h")] - public const string ENTRY_POINT_NAME; - [CCode (cheader_filename = "shotwell-plugin-dev-1.0.h")] - public const int UNSUPPORTED_INTERFACE; - [CCode (cheader_filename = "shotwell-plugin-dev-1.0.h")] - public static int negotiate_interfaces (int min_host_interface, int max_host_interface, int plugin_interface); -} diff --git a/plugins/shotwell-publishing-extras/GalleryConnector.c b/plugins/shotwell-publishing-extras/GalleryConnector.c deleted file mode 100644 index bd25726..0000000 --- a/plugins/shotwell-publishing-extras/GalleryConnector.c +++ /dev/null @@ -1,13133 +0,0 @@ -/* GalleryConnector.c generated by valac 0.40.4, the Vala compiler - * generated from GalleryConnector.vala, do not modify */ - -/* Copyright 2012-2013 Joe Sapp nixphoeni@gentoo.org - * - * This software is licensed under the GNU LGPL (version 2.1 or later). - * See the COPYING file in this distribution. - */ - - -#include -#include -#include -#include -#include -#include -#include -#include -#include "shotwell-plugin-common.h" -#include -#include -#include -#include -#include - - -#define TYPE_SHOTWELL_PUBLISHING_GALLERY3 (shotwell_publishing_gallery3_get_type ()) -#define SHOTWELL_PUBLISHING_GALLERY3(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SHOTWELL_PUBLISHING_GALLERY3, ShotwellPublishingGallery3)) -#define SHOTWELL_PUBLISHING_GALLERY3_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SHOTWELL_PUBLISHING_GALLERY3, ShotwellPublishingGallery3Class)) -#define IS_SHOTWELL_PUBLISHING_GALLERY3(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SHOTWELL_PUBLISHING_GALLERY3)) -#define IS_SHOTWELL_PUBLISHING_GALLERY3_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SHOTWELL_PUBLISHING_GALLERY3)) -#define SHOTWELL_PUBLISHING_GALLERY3_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SHOTWELL_PUBLISHING_GALLERY3, ShotwellPublishingGallery3Class)) - -typedef struct _ShotwellPublishingGallery3 ShotwellPublishingGallery3; -typedef struct _ShotwellPublishingGallery3Class ShotwellPublishingGallery3Class; -typedef struct _ShotwellPublishingGallery3Private ShotwellPublishingGallery3Private; -enum { - SHOTWELL_PUBLISHING_GALLERY3_0_PROPERTY, - SHOTWELL_PUBLISHING_GALLERY3_NUM_PROPERTIES -}; -static GParamSpec* shotwell_publishing_gallery3_properties[SHOTWELL_PUBLISHING_GALLERY3_NUM_PROPERTIES]; - -#define TYPE_GALLERY3_SERVICE (gallery3_service_get_type ()) -#define GALLERY3_SERVICE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_GALLERY3_SERVICE, Gallery3Service)) -#define GALLERY3_SERVICE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_GALLERY3_SERVICE, Gallery3ServiceClass)) -#define IS_GALLERY3_SERVICE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_GALLERY3_SERVICE)) -#define IS_GALLERY3_SERVICE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_GALLERY3_SERVICE)) -#define GALLERY3_SERVICE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_GALLERY3_SERVICE, Gallery3ServiceClass)) - -typedef struct _Gallery3Service Gallery3Service; -typedef struct _Gallery3ServiceClass Gallery3ServiceClass; -#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL))) -typedef struct _Gallery3ServicePrivate Gallery3ServicePrivate; -enum { - GALLERY3_SERVICE_0_PROPERTY, - GALLERY3_SERVICE_NUM_PROPERTIES -}; -static GParamSpec* gallery3_service_properties[GALLERY3_SERVICE_NUM_PROPERTIES]; -#define _g_free0(var) (var = (g_free (var), NULL)) - -#define PUBLISHING_GALLERY3_TYPE_GALLERY_PUBLISHER (publishing_gallery3_gallery_publisher_get_type ()) -#define PUBLISHING_GALLERY3_GALLERY_PUBLISHER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_GALLERY3_TYPE_GALLERY_PUBLISHER, PublishingGallery3GalleryPublisher)) -#define PUBLISHING_GALLERY3_GALLERY_PUBLISHER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_GALLERY3_TYPE_GALLERY_PUBLISHER, PublishingGallery3GalleryPublisherClass)) -#define PUBLISHING_GALLERY3_IS_GALLERY_PUBLISHER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_GALLERY3_TYPE_GALLERY_PUBLISHER)) -#define PUBLISHING_GALLERY3_IS_GALLERY_PUBLISHER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_GALLERY3_TYPE_GALLERY_PUBLISHER)) -#define PUBLISHING_GALLERY3_GALLERY_PUBLISHER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_GALLERY3_TYPE_GALLERY_PUBLISHER, PublishingGallery3GalleryPublisherClass)) - -typedef struct _PublishingGallery3GalleryPublisher PublishingGallery3GalleryPublisher; -typedef struct _PublishingGallery3GalleryPublisherClass PublishingGallery3GalleryPublisherClass; - -#define PUBLISHING_GALLERY3_TYPE_ALBUM (publishing_gallery3_album_get_type ()) -#define PUBLISHING_GALLERY3_ALBUM(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_GALLERY3_TYPE_ALBUM, PublishingGallery3Album)) -#define PUBLISHING_GALLERY3_ALBUM_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_GALLERY3_TYPE_ALBUM, PublishingGallery3AlbumClass)) -#define PUBLISHING_GALLERY3_IS_ALBUM(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_GALLERY3_TYPE_ALBUM)) -#define PUBLISHING_GALLERY3_IS_ALBUM_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_GALLERY3_TYPE_ALBUM)) -#define PUBLISHING_GALLERY3_ALBUM_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_GALLERY3_TYPE_ALBUM, PublishingGallery3AlbumClass)) - -typedef struct _PublishingGallery3Album PublishingGallery3Album; -typedef struct _PublishingGallery3AlbumClass PublishingGallery3AlbumClass; -typedef struct _PublishingGallery3AlbumPrivate PublishingGallery3AlbumPrivate; -typedef struct _PublishingGallery3ParamSpecAlbum PublishingGallery3ParamSpecAlbum; - -#define PUBLISHING_GALLERY3_TYPE_BASE_GALLERY_TRANSACTION (publishing_gallery3_base_gallery_transaction_get_type ()) -#define PUBLISHING_GALLERY3_BASE_GALLERY_TRANSACTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_GALLERY3_TYPE_BASE_GALLERY_TRANSACTION, PublishingGallery3BaseGalleryTransaction)) -#define PUBLISHING_GALLERY3_BASE_GALLERY_TRANSACTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_GALLERY3_TYPE_BASE_GALLERY_TRANSACTION, PublishingGallery3BaseGalleryTransactionClass)) -#define PUBLISHING_GALLERY3_IS_BASE_GALLERY_TRANSACTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_GALLERY3_TYPE_BASE_GALLERY_TRANSACTION)) -#define PUBLISHING_GALLERY3_IS_BASE_GALLERY_TRANSACTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_GALLERY3_TYPE_BASE_GALLERY_TRANSACTION)) -#define PUBLISHING_GALLERY3_BASE_GALLERY_TRANSACTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_GALLERY3_TYPE_BASE_GALLERY_TRANSACTION, PublishingGallery3BaseGalleryTransactionClass)) - -typedef struct _PublishingGallery3BaseGalleryTransaction PublishingGallery3BaseGalleryTransaction; -typedef struct _PublishingGallery3BaseGalleryTransactionClass PublishingGallery3BaseGalleryTransactionClass; -typedef struct _PublishingGallery3BaseGalleryTransactionPrivate PublishingGallery3BaseGalleryTransactionPrivate; - -#define PUBLISHING_GALLERY3_TYPE_SESSION (publishing_gallery3_session_get_type ()) -#define PUBLISHING_GALLERY3_SESSION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_GALLERY3_TYPE_SESSION, PublishingGallery3Session)) -#define PUBLISHING_GALLERY3_SESSION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_GALLERY3_TYPE_SESSION, PublishingGallery3SessionClass)) -#define PUBLISHING_GALLERY3_IS_SESSION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_GALLERY3_TYPE_SESSION)) -#define PUBLISHING_GALLERY3_IS_SESSION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_GALLERY3_TYPE_SESSION)) -#define PUBLISHING_GALLERY3_SESSION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_GALLERY3_TYPE_SESSION, PublishingGallery3SessionClass)) - -typedef struct _PublishingGallery3Session PublishingGallery3Session; -typedef struct _PublishingGallery3SessionClass PublishingGallery3SessionClass; -#define _g_error_free0(var) ((var == NULL) ? NULL : (var = (g_error_free (var), NULL))) - -#define PUBLISHING_GALLERY3_TYPE_KEY_FETCH_TRANSACTION (publishing_gallery3_key_fetch_transaction_get_type ()) -#define PUBLISHING_GALLERY3_KEY_FETCH_TRANSACTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_GALLERY3_TYPE_KEY_FETCH_TRANSACTION, PublishingGallery3KeyFetchTransaction)) -#define PUBLISHING_GALLERY3_KEY_FETCH_TRANSACTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_GALLERY3_TYPE_KEY_FETCH_TRANSACTION, PublishingGallery3KeyFetchTransactionClass)) -#define PUBLISHING_GALLERY3_IS_KEY_FETCH_TRANSACTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_GALLERY3_TYPE_KEY_FETCH_TRANSACTION)) -#define PUBLISHING_GALLERY3_IS_KEY_FETCH_TRANSACTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_GALLERY3_TYPE_KEY_FETCH_TRANSACTION)) -#define PUBLISHING_GALLERY3_KEY_FETCH_TRANSACTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_GALLERY3_TYPE_KEY_FETCH_TRANSACTION, PublishingGallery3KeyFetchTransactionClass)) - -typedef struct _PublishingGallery3KeyFetchTransaction PublishingGallery3KeyFetchTransaction; -typedef struct _PublishingGallery3KeyFetchTransactionClass PublishingGallery3KeyFetchTransactionClass; -typedef struct _PublishingGallery3KeyFetchTransactionPrivate PublishingGallery3KeyFetchTransactionPrivate; - -#define PUBLISHING_GALLERY3_TYPE_GALLERY_REQUEST_TRANSACTION (publishing_gallery3_gallery_request_transaction_get_type ()) -#define PUBLISHING_GALLERY3_GALLERY_REQUEST_TRANSACTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_GALLERY3_TYPE_GALLERY_REQUEST_TRANSACTION, PublishingGallery3GalleryRequestTransaction)) -#define PUBLISHING_GALLERY3_GALLERY_REQUEST_TRANSACTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_GALLERY3_TYPE_GALLERY_REQUEST_TRANSACTION, PublishingGallery3GalleryRequestTransactionClass)) -#define PUBLISHING_GALLERY3_IS_GALLERY_REQUEST_TRANSACTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_GALLERY3_TYPE_GALLERY_REQUEST_TRANSACTION)) -#define PUBLISHING_GALLERY3_IS_GALLERY_REQUEST_TRANSACTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_GALLERY3_TYPE_GALLERY_REQUEST_TRANSACTION)) -#define PUBLISHING_GALLERY3_GALLERY_REQUEST_TRANSACTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_GALLERY3_TYPE_GALLERY_REQUEST_TRANSACTION, PublishingGallery3GalleryRequestTransactionClass)) - -typedef struct _PublishingGallery3GalleryRequestTransaction PublishingGallery3GalleryRequestTransaction; -typedef struct _PublishingGallery3GalleryRequestTransactionClass PublishingGallery3GalleryRequestTransactionClass; -typedef struct _PublishingGallery3GalleryRequestTransactionPrivate PublishingGallery3GalleryRequestTransactionPrivate; - -#define PUBLISHING_GALLERY3_TYPE_GET_ALBUM_UR_LS_TRANSACTION (publishing_gallery3_get_album_ur_ls_transaction_get_type ()) -#define PUBLISHING_GALLERY3_GET_ALBUM_UR_LS_TRANSACTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_GALLERY3_TYPE_GET_ALBUM_UR_LS_TRANSACTION, PublishingGallery3GetAlbumURLsTransaction)) -#define PUBLISHING_GALLERY3_GET_ALBUM_UR_LS_TRANSACTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_GALLERY3_TYPE_GET_ALBUM_UR_LS_TRANSACTION, PublishingGallery3GetAlbumURLsTransactionClass)) -#define PUBLISHING_GALLERY3_IS_GET_ALBUM_UR_LS_TRANSACTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_GALLERY3_TYPE_GET_ALBUM_UR_LS_TRANSACTION)) -#define PUBLISHING_GALLERY3_IS_GET_ALBUM_UR_LS_TRANSACTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_GALLERY3_TYPE_GET_ALBUM_UR_LS_TRANSACTION)) -#define PUBLISHING_GALLERY3_GET_ALBUM_UR_LS_TRANSACTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_GALLERY3_TYPE_GET_ALBUM_UR_LS_TRANSACTION, PublishingGallery3GetAlbumURLsTransactionClass)) - -typedef struct _PublishingGallery3GetAlbumURLsTransaction PublishingGallery3GetAlbumURLsTransaction; -typedef struct _PublishingGallery3GetAlbumURLsTransactionClass PublishingGallery3GetAlbumURLsTransactionClass; -typedef struct _PublishingGallery3GetAlbumURLsTransactionPrivate PublishingGallery3GetAlbumURLsTransactionPrivate; - -#define PUBLISHING_GALLERY3_TYPE_GET_ALBUMS_TRANSACTION (publishing_gallery3_get_albums_transaction_get_type ()) -#define PUBLISHING_GALLERY3_GET_ALBUMS_TRANSACTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_GALLERY3_TYPE_GET_ALBUMS_TRANSACTION, PublishingGallery3GetAlbumsTransaction)) -#define PUBLISHING_GALLERY3_GET_ALBUMS_TRANSACTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_GALLERY3_TYPE_GET_ALBUMS_TRANSACTION, PublishingGallery3GetAlbumsTransactionClass)) -#define PUBLISHING_GALLERY3_IS_GET_ALBUMS_TRANSACTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_GALLERY3_TYPE_GET_ALBUMS_TRANSACTION)) -#define PUBLISHING_GALLERY3_IS_GET_ALBUMS_TRANSACTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_GALLERY3_TYPE_GET_ALBUMS_TRANSACTION)) -#define PUBLISHING_GALLERY3_GET_ALBUMS_TRANSACTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_GALLERY3_TYPE_GET_ALBUMS_TRANSACTION, PublishingGallery3GetAlbumsTransactionClass)) - -typedef struct _PublishingGallery3GetAlbumsTransaction PublishingGallery3GetAlbumsTransaction; -typedef struct _PublishingGallery3GetAlbumsTransactionClass PublishingGallery3GetAlbumsTransactionClass; -typedef struct _PublishingGallery3GetAlbumsTransactionPrivate PublishingGallery3GetAlbumsTransactionPrivate; -#define _publishing_gallery3_album_unref0(var) ((var == NULL) ? NULL : (var = (publishing_gallery3_album_unref (var), NULL))) - -#define PUBLISHING_GALLERY3_TYPE_GALLERY_GET_TAG_TRANSACTION (publishing_gallery3_gallery_get_tag_transaction_get_type ()) -#define PUBLISHING_GALLERY3_GALLERY_GET_TAG_TRANSACTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_GALLERY3_TYPE_GALLERY_GET_TAG_TRANSACTION, PublishingGallery3GalleryGetTagTransaction)) -#define PUBLISHING_GALLERY3_GALLERY_GET_TAG_TRANSACTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_GALLERY3_TYPE_GALLERY_GET_TAG_TRANSACTION, PublishingGallery3GalleryGetTagTransactionClass)) -#define PUBLISHING_GALLERY3_IS_GALLERY_GET_TAG_TRANSACTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_GALLERY3_TYPE_GALLERY_GET_TAG_TRANSACTION)) -#define PUBLISHING_GALLERY3_IS_GALLERY_GET_TAG_TRANSACTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_GALLERY3_TYPE_GALLERY_GET_TAG_TRANSACTION)) -#define PUBLISHING_GALLERY3_GALLERY_GET_TAG_TRANSACTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_GALLERY3_TYPE_GALLERY_GET_TAG_TRANSACTION, PublishingGallery3GalleryGetTagTransactionClass)) - -typedef struct _PublishingGallery3GalleryGetTagTransaction PublishingGallery3GalleryGetTagTransaction; -typedef struct _PublishingGallery3GalleryGetTagTransactionClass PublishingGallery3GalleryGetTagTransactionClass; -typedef struct _PublishingGallery3GalleryGetTagTransactionPrivate PublishingGallery3GalleryGetTagTransactionPrivate; -#define _json_object_unref0(var) ((var == NULL) ? NULL : (var = (json_object_unref (var), NULL))) -#define __vala_JsonNode_free0(var) ((var == NULL) ? NULL : (var = (_vala_JsonNode_free (var), NULL))) - -#define PUBLISHING_GALLERY3_TYPE_GALLERY_GET_ITEM_TAGS_UR_LS_TRANSACTION (publishing_gallery3_gallery_get_item_tags_ur_ls_transaction_get_type ()) -#define PUBLISHING_GALLERY3_GALLERY_GET_ITEM_TAGS_UR_LS_TRANSACTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_GALLERY3_TYPE_GALLERY_GET_ITEM_TAGS_UR_LS_TRANSACTION, PublishingGallery3GalleryGetItemTagsURLsTransaction)) -#define PUBLISHING_GALLERY3_GALLERY_GET_ITEM_TAGS_UR_LS_TRANSACTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_GALLERY3_TYPE_GALLERY_GET_ITEM_TAGS_UR_LS_TRANSACTION, PublishingGallery3GalleryGetItemTagsURLsTransactionClass)) -#define PUBLISHING_GALLERY3_IS_GALLERY_GET_ITEM_TAGS_UR_LS_TRANSACTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_GALLERY3_TYPE_GALLERY_GET_ITEM_TAGS_UR_LS_TRANSACTION)) -#define PUBLISHING_GALLERY3_IS_GALLERY_GET_ITEM_TAGS_UR_LS_TRANSACTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_GALLERY3_TYPE_GALLERY_GET_ITEM_TAGS_UR_LS_TRANSACTION)) -#define PUBLISHING_GALLERY3_GALLERY_GET_ITEM_TAGS_UR_LS_TRANSACTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_GALLERY3_TYPE_GALLERY_GET_ITEM_TAGS_UR_LS_TRANSACTION, PublishingGallery3GalleryGetItemTagsURLsTransactionClass)) - -typedef struct _PublishingGallery3GalleryGetItemTagsURLsTransaction PublishingGallery3GalleryGetItemTagsURLsTransaction; -typedef struct _PublishingGallery3GalleryGetItemTagsURLsTransactionClass PublishingGallery3GalleryGetItemTagsURLsTransactionClass; -typedef struct _PublishingGallery3GalleryGetItemTagsURLsTransactionPrivate PublishingGallery3GalleryGetItemTagsURLsTransactionPrivate; - -#define PUBLISHING_GALLERY3_TYPE_GALLERY_SET_TAG_RELATIONSHIP_TRANSACTION (publishing_gallery3_gallery_set_tag_relationship_transaction_get_type ()) -#define PUBLISHING_GALLERY3_GALLERY_SET_TAG_RELATIONSHIP_TRANSACTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_GALLERY3_TYPE_GALLERY_SET_TAG_RELATIONSHIP_TRANSACTION, PublishingGallery3GallerySetTagRelationshipTransaction)) -#define PUBLISHING_GALLERY3_GALLERY_SET_TAG_RELATIONSHIP_TRANSACTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_GALLERY3_TYPE_GALLERY_SET_TAG_RELATIONSHIP_TRANSACTION, PublishingGallery3GallerySetTagRelationshipTransactionClass)) -#define PUBLISHING_GALLERY3_IS_GALLERY_SET_TAG_RELATIONSHIP_TRANSACTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_GALLERY3_TYPE_GALLERY_SET_TAG_RELATIONSHIP_TRANSACTION)) -#define PUBLISHING_GALLERY3_IS_GALLERY_SET_TAG_RELATIONSHIP_TRANSACTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_GALLERY3_TYPE_GALLERY_SET_TAG_RELATIONSHIP_TRANSACTION)) -#define PUBLISHING_GALLERY3_GALLERY_SET_TAG_RELATIONSHIP_TRANSACTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_GALLERY3_TYPE_GALLERY_SET_TAG_RELATIONSHIP_TRANSACTION, PublishingGallery3GallerySetTagRelationshipTransactionClass)) - -typedef struct _PublishingGallery3GallerySetTagRelationshipTransaction PublishingGallery3GallerySetTagRelationshipTransaction; -typedef struct _PublishingGallery3GallerySetTagRelationshipTransactionClass PublishingGallery3GallerySetTagRelationshipTransactionClass; -typedef struct _PublishingGallery3GallerySetTagRelationshipTransactionPrivate PublishingGallery3GallerySetTagRelationshipTransactionPrivate; - -#define PUBLISHING_GALLERY3_TYPE_GALLERY_ALBUM_CREATE_TRANSACTION (publishing_gallery3_gallery_album_create_transaction_get_type ()) -#define PUBLISHING_GALLERY3_GALLERY_ALBUM_CREATE_TRANSACTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_GALLERY3_TYPE_GALLERY_ALBUM_CREATE_TRANSACTION, PublishingGallery3GalleryAlbumCreateTransaction)) -#define PUBLISHING_GALLERY3_GALLERY_ALBUM_CREATE_TRANSACTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_GALLERY3_TYPE_GALLERY_ALBUM_CREATE_TRANSACTION, PublishingGallery3GalleryAlbumCreateTransactionClass)) -#define PUBLISHING_GALLERY3_IS_GALLERY_ALBUM_CREATE_TRANSACTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_GALLERY3_TYPE_GALLERY_ALBUM_CREATE_TRANSACTION)) -#define PUBLISHING_GALLERY3_IS_GALLERY_ALBUM_CREATE_TRANSACTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_GALLERY3_TYPE_GALLERY_ALBUM_CREATE_TRANSACTION)) -#define PUBLISHING_GALLERY3_GALLERY_ALBUM_CREATE_TRANSACTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_GALLERY3_TYPE_GALLERY_ALBUM_CREATE_TRANSACTION, PublishingGallery3GalleryAlbumCreateTransactionClass)) - -typedef struct _PublishingGallery3GalleryAlbumCreateTransaction PublishingGallery3GalleryAlbumCreateTransaction; -typedef struct _PublishingGallery3GalleryAlbumCreateTransactionClass PublishingGallery3GalleryAlbumCreateTransactionClass; -typedef struct _PublishingGallery3GalleryAlbumCreateTransactionPrivate PublishingGallery3GalleryAlbumCreateTransactionPrivate; - -#define PUBLISHING_GALLERY3_TYPE_PUBLISHING_PARAMETERS (publishing_gallery3_publishing_parameters_get_type ()) -#define PUBLISHING_GALLERY3_PUBLISHING_PARAMETERS(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_GALLERY3_TYPE_PUBLISHING_PARAMETERS, PublishingGallery3PublishingParameters)) -#define PUBLISHING_GALLERY3_PUBLISHING_PARAMETERS_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_GALLERY3_TYPE_PUBLISHING_PARAMETERS, PublishingGallery3PublishingParametersClass)) -#define PUBLISHING_GALLERY3_IS_PUBLISHING_PARAMETERS(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_GALLERY3_TYPE_PUBLISHING_PARAMETERS)) -#define PUBLISHING_GALLERY3_IS_PUBLISHING_PARAMETERS_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_GALLERY3_TYPE_PUBLISHING_PARAMETERS)) -#define PUBLISHING_GALLERY3_PUBLISHING_PARAMETERS_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_GALLERY3_TYPE_PUBLISHING_PARAMETERS, PublishingGallery3PublishingParametersClass)) - -typedef struct _PublishingGallery3PublishingParameters PublishingGallery3PublishingParameters; -typedef struct _PublishingGallery3PublishingParametersClass PublishingGallery3PublishingParametersClass; -#define _publishing_gallery3_publishing_parameters_unref0(var) ((var == NULL) ? NULL : (var = (publishing_gallery3_publishing_parameters_unref (var), NULL))) - -#define PUBLISHING_GALLERY3_TYPE_GALLERY_UPLOAD_TRANSACTION (publishing_gallery3_gallery_upload_transaction_get_type ()) -#define PUBLISHING_GALLERY3_GALLERY_UPLOAD_TRANSACTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_GALLERY3_TYPE_GALLERY_UPLOAD_TRANSACTION, PublishingGallery3GalleryUploadTransaction)) -#define PUBLISHING_GALLERY3_GALLERY_UPLOAD_TRANSACTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_GALLERY3_TYPE_GALLERY_UPLOAD_TRANSACTION, PublishingGallery3GalleryUploadTransactionClass)) -#define PUBLISHING_GALLERY3_IS_GALLERY_UPLOAD_TRANSACTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_GALLERY3_TYPE_GALLERY_UPLOAD_TRANSACTION)) -#define PUBLISHING_GALLERY3_IS_GALLERY_UPLOAD_TRANSACTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_GALLERY3_TYPE_GALLERY_UPLOAD_TRANSACTION)) -#define PUBLISHING_GALLERY3_GALLERY_UPLOAD_TRANSACTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_GALLERY3_TYPE_GALLERY_UPLOAD_TRANSACTION, PublishingGallery3GalleryUploadTransactionClass)) - -typedef struct _PublishingGallery3GalleryUploadTransaction PublishingGallery3GalleryUploadTransaction; -typedef struct _PublishingGallery3GalleryUploadTransactionClass PublishingGallery3GalleryUploadTransactionClass; -typedef struct _PublishingGallery3GalleryUploadTransactionPrivate PublishingGallery3GalleryUploadTransactionPrivate; -#define _publishing_rest_support_session_unref0(var) ((var == NULL) ? NULL : (var = (publishing_rest_support_session_unref (var), NULL))) -#define _g_hash_table_unref0(var) ((var == NULL) ? NULL : (var = (g_hash_table_unref (var), NULL))) -#define _publishing_rest_support_transaction_unref0(var) ((var == NULL) ? NULL : (var = (publishing_rest_support_transaction_unref (var), NULL))) -typedef struct _PublishingGallery3GalleryPublisherPrivate PublishingGallery3GalleryPublisherPrivate; - -#define PUBLISHING_GALLERY3_TYPE_PUBLISHING_OPTIONS_PANE (publishing_gallery3_publishing_options_pane_get_type ()) -#define PUBLISHING_GALLERY3_PUBLISHING_OPTIONS_PANE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_GALLERY3_TYPE_PUBLISHING_OPTIONS_PANE, PublishingGallery3PublishingOptionsPane)) -#define PUBLISHING_GALLERY3_PUBLISHING_OPTIONS_PANE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_GALLERY3_TYPE_PUBLISHING_OPTIONS_PANE, PublishingGallery3PublishingOptionsPaneClass)) -#define PUBLISHING_GALLERY3_IS_PUBLISHING_OPTIONS_PANE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_GALLERY3_TYPE_PUBLISHING_OPTIONS_PANE)) -#define PUBLISHING_GALLERY3_IS_PUBLISHING_OPTIONS_PANE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_GALLERY3_TYPE_PUBLISHING_OPTIONS_PANE)) -#define PUBLISHING_GALLERY3_PUBLISHING_OPTIONS_PANE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_GALLERY3_TYPE_PUBLISHING_OPTIONS_PANE, PublishingGallery3PublishingOptionsPaneClass)) - -typedef struct _PublishingGallery3PublishingOptionsPane PublishingGallery3PublishingOptionsPane; -typedef struct _PublishingGallery3PublishingOptionsPaneClass PublishingGallery3PublishingOptionsPaneClass; -enum { - PUBLISHING_GALLERY3_GALLERY_PUBLISHER_0_PROPERTY, - PUBLISHING_GALLERY3_GALLERY_PUBLISHER_NUM_PROPERTIES -}; -static GParamSpec* publishing_gallery3_gallery_publisher_properties[PUBLISHING_GALLERY3_GALLERY_PUBLISHER_NUM_PROPERTIES]; - -#define PUBLISHING_GALLERY3_CREDENTIALS_PANE_TYPE_MODE (publishing_gallery3_credentials_pane_mode_get_type ()) - -#define PUBLISHING_GALLERY3_TYPE_CREDENTIALS_PANE (publishing_gallery3_credentials_pane_get_type ()) -#define PUBLISHING_GALLERY3_CREDENTIALS_PANE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_GALLERY3_TYPE_CREDENTIALS_PANE, PublishingGallery3CredentialsPane)) -#define PUBLISHING_GALLERY3_CREDENTIALS_PANE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_GALLERY3_TYPE_CREDENTIALS_PANE, PublishingGallery3CredentialsPaneClass)) -#define PUBLISHING_GALLERY3_IS_CREDENTIALS_PANE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_GALLERY3_TYPE_CREDENTIALS_PANE)) -#define PUBLISHING_GALLERY3_IS_CREDENTIALS_PANE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_GALLERY3_TYPE_CREDENTIALS_PANE)) -#define PUBLISHING_GALLERY3_CREDENTIALS_PANE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_GALLERY3_TYPE_CREDENTIALS_PANE, PublishingGallery3CredentialsPaneClass)) - -typedef struct _PublishingGallery3CredentialsPane PublishingGallery3CredentialsPane; -typedef struct _PublishingGallery3CredentialsPaneClass PublishingGallery3CredentialsPaneClass; - -#define PUBLISHING_GALLERY3_TYPE_UPLOADER (publishing_gallery3_uploader_get_type ()) -#define PUBLISHING_GALLERY3_UPLOADER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_GALLERY3_TYPE_UPLOADER, PublishingGallery3Uploader)) -#define PUBLISHING_GALLERY3_UPLOADER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_GALLERY3_TYPE_UPLOADER, PublishingGallery3UploaderClass)) -#define PUBLISHING_GALLERY3_IS_UPLOADER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_GALLERY3_TYPE_UPLOADER)) -#define PUBLISHING_GALLERY3_IS_UPLOADER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_GALLERY3_TYPE_UPLOADER)) -#define PUBLISHING_GALLERY3_UPLOADER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_GALLERY3_TYPE_UPLOADER, PublishingGallery3UploaderClass)) - -typedef struct _PublishingGallery3Uploader PublishingGallery3Uploader; -typedef struct _PublishingGallery3UploaderClass PublishingGallery3UploaderClass; -#define _publishing_rest_support_batch_uploader_unref0(var) ((var == NULL) ? NULL : (var = (publishing_rest_support_batch_uploader_unref (var), NULL))) -typedef struct _PublishingGallery3PublishingOptionsPanePrivate PublishingGallery3PublishingOptionsPanePrivate; -enum { - PUBLISHING_GALLERY3_PUBLISHING_OPTIONS_PANE_0_PROPERTY, - PUBLISHING_GALLERY3_PUBLISHING_OPTIONS_PANE_NUM_PROPERTIES -}; -static GParamSpec* publishing_gallery3_publishing_options_pane_properties[PUBLISHING_GALLERY3_PUBLISHING_OPTIONS_PANE_NUM_PROPERTIES]; -#define _g_slist_free0(var) ((var == NULL) ? NULL : (var = (g_slist_free (var), NULL))) -enum { - PUBLISHING_GALLERY3_PUBLISHING_OPTIONS_PANE_PUBLISH_SIGNAL, - PUBLISHING_GALLERY3_PUBLISHING_OPTIONS_PANE_LOGOUT_SIGNAL, - PUBLISHING_GALLERY3_PUBLISHING_OPTIONS_PANE_NUM_SIGNALS -}; -static guint publishing_gallery3_publishing_options_pane_signals[PUBLISHING_GALLERY3_PUBLISHING_OPTIONS_PANE_NUM_SIGNALS] = {0}; -typedef struct _PublishingGallery3PublishingParametersPrivate PublishingGallery3PublishingParametersPrivate; -typedef struct _PublishingGallery3ParamSpecPublishingParameters PublishingGallery3ParamSpecPublishingParameters; -typedef struct _PublishingGallery3CredentialsPanePrivate PublishingGallery3CredentialsPanePrivate; - -#define PUBLISHING_GALLERY3_TYPE_CREDENTIALS_GRID (publishing_gallery3_credentials_grid_get_type ()) -#define PUBLISHING_GALLERY3_CREDENTIALS_GRID(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_GALLERY3_TYPE_CREDENTIALS_GRID, PublishingGallery3CredentialsGrid)) -#define PUBLISHING_GALLERY3_CREDENTIALS_GRID_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_GALLERY3_TYPE_CREDENTIALS_GRID, PublishingGallery3CredentialsGridClass)) -#define PUBLISHING_GALLERY3_IS_CREDENTIALS_GRID(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_GALLERY3_TYPE_CREDENTIALS_GRID)) -#define PUBLISHING_GALLERY3_IS_CREDENTIALS_GRID_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_GALLERY3_TYPE_CREDENTIALS_GRID)) -#define PUBLISHING_GALLERY3_CREDENTIALS_GRID_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_GALLERY3_TYPE_CREDENTIALS_GRID, PublishingGallery3CredentialsGridClass)) - -typedef struct _PublishingGallery3CredentialsGrid PublishingGallery3CredentialsGrid; -typedef struct _PublishingGallery3CredentialsGridClass PublishingGallery3CredentialsGridClass; -enum { - PUBLISHING_GALLERY3_CREDENTIALS_PANE_0_PROPERTY, - PUBLISHING_GALLERY3_CREDENTIALS_PANE_NUM_PROPERTIES -}; -static GParamSpec* publishing_gallery3_credentials_pane_properties[PUBLISHING_GALLERY3_CREDENTIALS_PANE_NUM_PROPERTIES]; -enum { - PUBLISHING_GALLERY3_CREDENTIALS_PANE_GO_BACK_SIGNAL, - PUBLISHING_GALLERY3_CREDENTIALS_PANE_LOGIN_SIGNAL, - PUBLISHING_GALLERY3_CREDENTIALS_PANE_NUM_SIGNALS -}; -static guint publishing_gallery3_credentials_pane_signals[PUBLISHING_GALLERY3_CREDENTIALS_PANE_NUM_SIGNALS] = {0}; -typedef struct _PublishingGallery3CredentialsGridPrivate PublishingGallery3CredentialsGridPrivate; -enum { - PUBLISHING_GALLERY3_CREDENTIALS_GRID_0_PROPERTY, - PUBLISHING_GALLERY3_CREDENTIALS_GRID_PANE_WIDGET_PROPERTY, - PUBLISHING_GALLERY3_CREDENTIALS_GRID_NUM_PROPERTIES -}; -static GParamSpec* publishing_gallery3_credentials_grid_properties[PUBLISHING_GALLERY3_CREDENTIALS_GRID_NUM_PROPERTIES]; -enum { - PUBLISHING_GALLERY3_CREDENTIALS_GRID_GO_BACK_SIGNAL, - PUBLISHING_GALLERY3_CREDENTIALS_GRID_LOGIN_SIGNAL, - PUBLISHING_GALLERY3_CREDENTIALS_GRID_NUM_SIGNALS -}; -static guint publishing_gallery3_credentials_grid_signals[PUBLISHING_GALLERY3_CREDENTIALS_GRID_NUM_SIGNALS] = {0}; -typedef struct _PublishingGallery3SessionPrivate PublishingGallery3SessionPrivate; -typedef struct _PublishingGallery3UploaderPrivate PublishingGallery3UploaderPrivate; -#define _vala_assert(expr, msg) if G_LIKELY (expr) ; else g_assertion_message_expr (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg); -#define _vala_return_if_fail(expr, msg) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return; } -#define _vala_return_val_if_fail(expr, msg, val) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return val; } -#define _vala_warn_if_fail(expr, msg) if G_LIKELY (expr) ; else g_warn_message (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg); - -struct _ShotwellPublishingGallery3 { - GObject parent_instance; - ShotwellPublishingGallery3Private * priv; -}; - -struct _ShotwellPublishingGallery3Class { - GObjectClass parent_class; -}; - -struct _ShotwellPublishingGallery3Private { - SpitPluggable** pluggables; - gint pluggables_length1; - gint _pluggables_size_; -}; - -struct _Gallery3Service { - GObject parent_instance; - Gallery3ServicePrivate * priv; -}; - -struct _Gallery3ServiceClass { - GObjectClass parent_class; -}; - -struct _PublishingGallery3Album { - GTypeInstance parent_instance; - volatile int ref_count; - PublishingGallery3AlbumPrivate * priv; -}; - -struct _PublishingGallery3AlbumClass { - GTypeClass parent_class; - void (*finalize) (PublishingGallery3Album *self); -}; - -struct _PublishingGallery3AlbumPrivate { - gchar* _name; - gchar* _title; - gchar* _summary; - gchar* _parentname; - gchar* _url; - gchar* _path; - gboolean _editable; -}; - -struct _PublishingGallery3ParamSpecAlbum { - GParamSpec parent_instance; -}; - -struct _PublishingGallery3BaseGalleryTransaction { - PublishingRESTSupportTransaction parent_instance; - PublishingGallery3BaseGalleryTransactionPrivate * priv; - JsonParser* parser; -}; - -struct _PublishingGallery3BaseGalleryTransactionClass { - PublishingRESTSupportTransactionClass parent_class; -}; - -struct _PublishingGallery3KeyFetchTransaction { - PublishingGallery3BaseGalleryTransaction parent_instance; - PublishingGallery3KeyFetchTransactionPrivate * priv; -}; - -struct _PublishingGallery3KeyFetchTransactionClass { - PublishingGallery3BaseGalleryTransactionClass parent_class; -}; - -struct _PublishingGallery3KeyFetchTransactionPrivate { - gchar* key; -}; - -struct _PublishingGallery3GalleryRequestTransaction { - PublishingGallery3BaseGalleryTransaction parent_instance; - PublishingGallery3GalleryRequestTransactionPrivate * priv; -}; - -struct _PublishingGallery3GalleryRequestTransactionClass { - PublishingGallery3BaseGalleryTransactionClass parent_class; -}; - -struct _PublishingGallery3GetAlbumURLsTransaction { - PublishingGallery3GalleryRequestTransaction parent_instance; - PublishingGallery3GetAlbumURLsTransactionPrivate * priv; -}; - -struct _PublishingGallery3GetAlbumURLsTransactionClass { - PublishingGallery3GalleryRequestTransactionClass parent_class; -}; - -struct _PublishingGallery3GetAlbumsTransaction { - PublishingGallery3GalleryRequestTransaction parent_instance; - PublishingGallery3GetAlbumsTransactionPrivate * priv; -}; - -struct _PublishingGallery3GetAlbumsTransactionClass { - PublishingGallery3GalleryRequestTransactionClass parent_class; -}; - -struct _PublishingGallery3GetAlbumsTransactionPrivate { - gchar** _album_urls; - gint _album_urls_length1; - gint __album_urls_size_; - guint _urls_sent; - gboolean _more_urls; -}; - -struct _PublishingGallery3GalleryGetTagTransaction { - PublishingGallery3BaseGalleryTransaction parent_instance; - PublishingGallery3GalleryGetTagTransactionPrivate * priv; -}; - -struct _PublishingGallery3GalleryGetTagTransactionClass { - PublishingGallery3BaseGalleryTransactionClass parent_class; -}; - -struct _PublishingGallery3GalleryGetItemTagsURLsTransaction { - PublishingGallery3GalleryRequestTransaction parent_instance; - PublishingGallery3GalleryGetItemTagsURLsTransactionPrivate * priv; -}; - -struct _PublishingGallery3GalleryGetItemTagsURLsTransactionClass { - PublishingGallery3GalleryRequestTransactionClass parent_class; -}; - -struct _PublishingGallery3GalleryGetItemTagsURLsTransactionPrivate { - gchar* item_tags_path; -}; - -struct _PublishingGallery3GallerySetTagRelationshipTransaction { - PublishingGallery3BaseGalleryTransaction parent_instance; - PublishingGallery3GallerySetTagRelationshipTransactionPrivate * priv; -}; - -struct _PublishingGallery3GallerySetTagRelationshipTransactionClass { - PublishingGallery3BaseGalleryTransactionClass parent_class; -}; - -struct _PublishingGallery3GalleryAlbumCreateTransaction { - PublishingGallery3BaseGalleryTransaction parent_instance; - PublishingGallery3GalleryAlbumCreateTransactionPrivate * priv; -}; - -struct _PublishingGallery3GalleryAlbumCreateTransactionClass { - PublishingGallery3BaseGalleryTransactionClass parent_class; -}; - -struct _PublishingGallery3GalleryAlbumCreateTransactionPrivate { - PublishingGallery3PublishingParameters* _parameters; - gchar* session_url; -}; - -struct _PublishingGallery3GalleryUploadTransaction { - PublishingRESTSupportUploadTransaction parent_instance; - PublishingGallery3GalleryUploadTransactionPrivate * priv; -}; - -struct _PublishingGallery3GalleryUploadTransactionClass { - PublishingRESTSupportUploadTransactionClass parent_class; -}; - -struct _PublishingGallery3GalleryUploadTransactionPrivate { - PublishingGallery3Session* session; - JsonGenerator* generator; - PublishingGallery3PublishingParameters* parameters; - gchar* item_url; - gchar* item_path; - gchar* item_tags_path; -}; - -struct _PublishingGallery3GalleryPublisher { - GObject parent_instance; - PublishingGallery3GalleryPublisherPrivate * priv; -}; - -struct _PublishingGallery3GalleryPublisherClass { - GObjectClass parent_class; -}; - -struct _PublishingGallery3GalleryPublisherPrivate { - SpitPublishingPluginHost* host; - SpitPublishingProgressCallback progress_reporter; - gpointer progress_reporter_target; - GDestroyNotify progress_reporter_target_destroy_notify; - SpitPublishingService* service; - PublishingGallery3Session* session; - gboolean running; - PublishingGallery3Album** albums; - gint albums_length1; - gint _albums_size_; - gchar* key; - PublishingGallery3PublishingOptionsPane* publishing_options_pane; -}; - -typedef enum { - PUBLISHING_GALLERY3_CREDENTIALS_PANE_MODE_INTRO, - PUBLISHING_GALLERY3_CREDENTIALS_PANE_MODE_FAILED_RETRY, - PUBLISHING_GALLERY3_CREDENTIALS_PANE_MODE_NOT_GALLERY_URL -} PublishingGallery3CredentialsPaneMode; - -struct _PublishingGallery3PublishingOptionsPane { - GObject parent_instance; - PublishingGallery3PublishingOptionsPanePrivate * priv; -}; - -struct _PublishingGallery3PublishingOptionsPaneClass { - GObjectClass parent_class; -}; - -struct _PublishingGallery3PublishingOptionsPanePrivate { - GtkBuilder* builder; - GtkGrid* pane_widget; - GtkLabel* title_label; - GtkRadioButton* use_existing_radio; - GtkComboBoxText* existing_albums_combo; - GtkRadioButton* create_new_radio; - GtkEntry* new_album_entry; - GtkComboBoxText* scaling_combo; - GtkEntry* pixels; - GtkCheckButton* strip_metadata_check; - GtkButton* publish_button; - GtkButton* logout_button; - PublishingGallery3Album** albums; - gint albums_length1; - gint _albums_size_; - SpitPublishingPluginHost* host; -}; - -struct _PublishingGallery3PublishingParameters { - GTypeInstance parent_instance; - volatile int ref_count; - PublishingGallery3PublishingParametersPrivate * priv; -}; - -struct _PublishingGallery3PublishingParametersClass { - GTypeClass parent_class; - void (*finalize) (PublishingGallery3PublishingParameters *self); -}; - -struct _PublishingGallery3PublishingParametersPrivate { - gchar* _album_title; - gchar* _album_name; - gchar* _album_path; - gchar* _entity_title; - gint _photo_major_axis_size; - gboolean _strip_metadata; -}; - -struct _PublishingGallery3ParamSpecPublishingParameters { - GParamSpec parent_instance; -}; - -struct _PublishingGallery3CredentialsPane { - GObject parent_instance; - PublishingGallery3CredentialsPanePrivate * priv; -}; - -struct _PublishingGallery3CredentialsPaneClass { - GObjectClass parent_class; -}; - -struct _PublishingGallery3CredentialsPanePrivate { - PublishingGallery3CredentialsGrid* frame; - GtkWidget* grid_widget; -}; - -struct _PublishingGallery3CredentialsGrid { - GObject parent_instance; - PublishingGallery3CredentialsGridPrivate * priv; -}; - -struct _PublishingGallery3CredentialsGridClass { - GObjectClass parent_class; -}; - -struct _PublishingGallery3CredentialsGridPrivate { - GtkGrid* _pane_widget; - SpitPublishingPluginHost* host; - GtkBuilder* builder; - GtkLabel* intro_message_label; - GtkEntry* url_entry; - GtkEntry* username_entry; - GtkEntry* password_entry; - GtkEntry* key_entry; - GtkButton* login_button; - GtkButton* go_back_button; - gchar* url; - gchar* username; - gchar* key; -}; - -struct _PublishingGallery3Session { - PublishingRESTSupportSession parent_instance; - PublishingGallery3SessionPrivate * priv; -}; - -struct _PublishingGallery3SessionClass { - PublishingRESTSupportSessionClass parent_class; -}; - -struct _PublishingGallery3SessionPrivate { - gchar* _url; - gchar* _username; - gchar* _key; -}; - -struct _PublishingGallery3Uploader { - PublishingRESTSupportBatchUploader parent_instance; - PublishingGallery3UploaderPrivate * priv; -}; - -struct _PublishingGallery3UploaderClass { - PublishingRESTSupportBatchUploaderClass parent_class; -}; - -struct _PublishingGallery3UploaderPrivate { - PublishingGallery3PublishingParameters* parameters; - gchar* _current_publishable_name; - SpitPublishingPublisherMediaType _current_media_type; - PublishingRESTSupportTransaction* _current_transaction; -}; - - -static gpointer shotwell_publishing_gallery3_parent_class = NULL; -static SpitModuleIface * shotwell_publishing_gallery3_spit_module_parent_iface = NULL; -static gpointer gallery3_service_parent_class = NULL; -static GdkPixbuf** gallery3_service_icon_pixbuf_set; -static gint gallery3_service_icon_pixbuf_set_length1; -static GdkPixbuf** gallery3_service_icon_pixbuf_set = NULL; -static gint gallery3_service_icon_pixbuf_set_length1 = 0; -static gint _gallery3_service_icon_pixbuf_set_size_ = 0; -static SpitPluggableIface * gallery3_service_spit_pluggable_parent_iface = NULL; -static SpitPublishingServiceIface * gallery3_service_spit_publishing_service_parent_iface = NULL; -static gpointer publishing_gallery3_album_parent_class = NULL; -static gpointer publishing_gallery3_base_gallery_transaction_parent_class = NULL; -static gpointer publishing_gallery3_key_fetch_transaction_parent_class = NULL; -static gpointer publishing_gallery3_gallery_request_transaction_parent_class = NULL; -static gpointer publishing_gallery3_get_album_ur_ls_transaction_parent_class = NULL; -static gpointer publishing_gallery3_get_albums_transaction_parent_class = NULL; -static gpointer publishing_gallery3_gallery_get_tag_transaction_parent_class = NULL; -static gpointer publishing_gallery3_gallery_get_item_tags_ur_ls_transaction_parent_class = NULL; -static gpointer publishing_gallery3_gallery_set_tag_relationship_transaction_parent_class = NULL; -static gpointer publishing_gallery3_gallery_album_create_transaction_parent_class = NULL; -static gpointer publishing_gallery3_gallery_upload_transaction_parent_class = NULL; -static gpointer publishing_gallery3_gallery_publisher_parent_class = NULL; -static SpitPublishingPublisherIface * publishing_gallery3_gallery_publisher_spit_publishing_publisher_parent_iface = NULL; -static gpointer publishing_gallery3_publishing_options_pane_parent_class = NULL; -static SpitPublishingDialogPaneIface * publishing_gallery3_publishing_options_pane_spit_publishing_dialog_pane_parent_iface = NULL; -static gpointer publishing_gallery3_publishing_parameters_parent_class = NULL; -static gpointer publishing_gallery3_credentials_pane_parent_class = NULL; -static SpitPublishingDialogPaneIface * publishing_gallery3_credentials_pane_spit_publishing_dialog_pane_parent_iface = NULL; -static gpointer publishing_gallery3_credentials_grid_parent_class = NULL; -static gpointer publishing_gallery3_session_parent_class = NULL; -static gpointer publishing_gallery3_uploader_parent_class = NULL; - -#define G3_VERSION "0.1" -#define G3_LICENSE "\n" \ -"The Gallery3Publishing module is free software; you can redistribute i" \ -"t\n" \ -"and/or modify it under the terms of the GNU Lesser General Public\n" \ -"License as published by the Free Software Foundation; either version 2" \ -".1\n" \ -"of the License, or (at your option) any later version.\n" \ -"\n" \ -"The Gallery3Publishing module is distributed in the hope that it will " \ -"be\n" \ -"useful, but WITHOUT ANY WARRANTY; without even the implied warranty of" \ -"\n" \ -"MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Less" \ -"er\n" \ -"General Public License for more details.\n" \ -"\n" \ -"You should have received a copy of the GNU Lesser General Public Licen" \ -"se\n" \ -"along with The Gallery3Publishing module; if not, write to the Free\n" \ -"Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA\n" \ -"02110-1301 USA\n" -#define WEBSITE_URL "https://github.com/sappjw/shotwell-gallery3" -GType shotwell_publishing_gallery3_get_type (void) G_GNUC_CONST; -#define SHOTWELL_PUBLISHING_GALLERY3_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_SHOTWELL_PUBLISHING_GALLERY3, ShotwellPublishingGallery3Private)) -ShotwellPublishingGallery3* shotwell_publishing_gallery3_new (GFile* module_file); -ShotwellPublishingGallery3* shotwell_publishing_gallery3_construct (GType object_type, - GFile* module_file); -Gallery3Service* gallery3_service_new (GFile* resource_directory); -Gallery3Service* gallery3_service_construct (GType object_type, - GFile* resource_directory); -GType gallery3_service_get_type (void) G_GNUC_CONST; -static void _vala_array_add1 (SpitPluggable** * array, - int* length, - int* size, - SpitPluggable* value); -static const gchar* shotwell_publishing_gallery3_real_get_module_name (SpitModule* base); -static const gchar* shotwell_publishing_gallery3_real_get_version (SpitModule* base); -static const gchar* shotwell_publishing_gallery3_real_get_id (SpitModule* base); -static SpitPluggable** shotwell_publishing_gallery3_real_get_pluggables (SpitModule* base, - int* result_length1); -static void shotwell_publishing_gallery3_finalize (GObject * obj); -#define GALLERY3_SERVICE_ICON_FILENAME "gallery3.png" -static gint gallery3_service_real_get_pluggable_interface (SpitPluggable* base, - gint min_host_interface, - gint max_host_interface); -static const gchar* gallery3_service_real_get_id (SpitPluggable* base); -static const gchar* gallery3_service_real_get_pluggable_name (SpitPluggable* base); -static void gallery3_service_real_get_info (SpitPluggable* base, - SpitPluggableInfo* info); -static GdkPixbuf** _vala_array_dup1 (GdkPixbuf** self, - int length); -static void gallery3_service_real_activation (SpitPluggable* base, - gboolean enabled); -static SpitPublishingPublisher* gallery3_service_real_create_publisher (SpitPublishingService* base, - SpitPublishingPluginHost* host); -PublishingGallery3GalleryPublisher* publishing_gallery3_gallery_publisher_new (SpitPublishingService* service, - SpitPublishingPluginHost* host); -PublishingGallery3GalleryPublisher* publishing_gallery3_gallery_publisher_construct (GType object_type, - SpitPublishingService* service, - SpitPublishingPluginHost* host); -GType publishing_gallery3_gallery_publisher_get_type (void) G_GNUC_CONST; -static SpitPublishingPublisherMediaType gallery3_service_real_get_supported_media (SpitPublishingService* base); -static void gallery3_service_finalize (GObject * obj); -#define PUBLISHING_GALLERY3_SERVICE_NAME "Gallery3" -#define PUBLISHING_GALLERY3_SERVICE_WELCOME_MESSAGE _ ("You are not currently logged into your Gallery.\n" \ -"\n" \ -"You must have already signed up for a Gallery3 account to complete the" \ -" login process.") -#define PUBLISHING_GALLERY3_DEFAULT_ALBUM_DIR _ ("Shotwell") -#define PUBLISHING_GALLERY3_DEFAULT_ALBUM_TITLE _ ("Shotwell default directory") -#define PUBLISHING_GALLERY3_REST_PATH "/index.php/rest" -gpointer publishing_gallery3_album_ref (gpointer instance); -void publishing_gallery3_album_unref (gpointer instance); -GParamSpec* publishing_gallery3_param_spec_album (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void publishing_gallery3_value_set_album (GValue* value, - gpointer v_object); -void publishing_gallery3_value_take_album (GValue* value, - gpointer v_object); -gpointer publishing_gallery3_value_get_album (const GValue* value); -GType publishing_gallery3_album_get_type (void) G_GNUC_CONST; -#define PUBLISHING_GALLERY3_ALBUM_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), PUBLISHING_GALLERY3_TYPE_ALBUM, PublishingGallery3AlbumPrivate)) -PublishingGallery3Album* publishing_gallery3_album_new (JsonObject* collection); -PublishingGallery3Album* publishing_gallery3_album_construct (GType object_type, - JsonObject* collection); -static void publishing_gallery3_album_set_title (PublishingGallery3Album* self, - const gchar* value); -static void publishing_gallery3_album_set_name (PublishingGallery3Album* self, - const gchar* value); -static void publishing_gallery3_album_set_parentname (PublishingGallery3Album* self, - const gchar* value); -static void publishing_gallery3_album_set_url (PublishingGallery3Album* self, - const gchar* value); -static void publishing_gallery3_album_set_editable (PublishingGallery3Album* self, - gboolean value); -gchar* publishing_gallery3_strip_session_url (const gchar* url); -const gchar* publishing_gallery3_album_get_url (PublishingGallery3Album* self); -static void publishing_gallery3_album_set_path (PublishingGallery3Album* self, - const gchar* value); -const gchar* publishing_gallery3_album_get_name (PublishingGallery3Album* self); -const gchar* publishing_gallery3_album_get_title (PublishingGallery3Album* self); -const gchar* publishing_gallery3_album_get_summary (PublishingGallery3Album* self); -static void publishing_gallery3_album_set_summary (PublishingGallery3Album* self, - const gchar* value); -const gchar* publishing_gallery3_album_get_parentname (PublishingGallery3Album* self); -const gchar* publishing_gallery3_album_get_path (PublishingGallery3Album* self); -gboolean publishing_gallery3_album_get_editable (PublishingGallery3Album* self); -static void publishing_gallery3_album_finalize (PublishingGallery3Album * obj); -GType publishing_gallery3_base_gallery_transaction_get_type (void) G_GNUC_CONST; -GType publishing_gallery3_session_get_type (void) G_GNUC_CONST; -PublishingGallery3BaseGalleryTransaction* publishing_gallery3_base_gallery_transaction_new (PublishingGallery3Session* session, - const gchar* endpoint_url, - const gchar* item_path, - PublishingRESTSupportHttpMethod method); -PublishingGallery3BaseGalleryTransaction* publishing_gallery3_base_gallery_transaction_construct (GType object_type, - PublishingGallery3Session* session, - const gchar* endpoint_url, - const gchar* item_path, - PublishingRESTSupportHttpMethod method); -JsonNode* publishing_gallery3_base_gallery_transaction_get_root_node (PublishingGallery3BaseGalleryTransaction* self, - GError** error); -static void publishing_gallery3_base_gallery_transaction_finalize (PublishingRESTSupportTransaction * obj); -GType publishing_gallery3_key_fetch_transaction_get_type (void) G_GNUC_CONST; -#define PUBLISHING_GALLERY3_KEY_FETCH_TRANSACTION_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), PUBLISHING_GALLERY3_TYPE_KEY_FETCH_TRANSACTION, PublishingGallery3KeyFetchTransactionPrivate)) -PublishingGallery3KeyFetchTransaction* publishing_gallery3_key_fetch_transaction_new (PublishingGallery3Session* session, - const gchar* url, - const gchar* username, - const gchar* password); -PublishingGallery3KeyFetchTransaction* publishing_gallery3_key_fetch_transaction_construct (GType object_type, - PublishingGallery3Session* session, - const gchar* url, - const gchar* username, - const gchar* password); -gchar* publishing_gallery3_key_fetch_transaction_get_key (PublishingGallery3KeyFetchTransaction* self); -static void publishing_gallery3_key_fetch_transaction_finalize (PublishingRESTSupportTransaction * obj); -GType publishing_gallery3_gallery_request_transaction_get_type (void) G_GNUC_CONST; -PublishingGallery3GalleryRequestTransaction* publishing_gallery3_gallery_request_transaction_new (PublishingGallery3Session* session, - const gchar* item, - PublishingRESTSupportHttpMethod method); -PublishingGallery3GalleryRequestTransaction* publishing_gallery3_gallery_request_transaction_construct (GType object_type, - PublishingGallery3Session* session, - const gchar* item, - PublishingRESTSupportHttpMethod method); -const gchar* publishing_gallery3_session_get_url (PublishingGallery3Session* self); -const gchar* publishing_gallery3_session_get_key (PublishingGallery3Session* self); -GType publishing_gallery3_get_album_ur_ls_transaction_get_type (void) G_GNUC_CONST; -PublishingGallery3GetAlbumURLsTransaction* publishing_gallery3_get_album_ur_ls_transaction_new (PublishingGallery3Session* session); -PublishingGallery3GetAlbumURLsTransaction* publishing_gallery3_get_album_ur_ls_transaction_construct (GType object_type, - PublishingGallery3Session* session); -gchar** publishing_gallery3_get_album_ur_ls_transaction_get_album_urls (PublishingGallery3GetAlbumURLsTransaction* self, - int* result_length1); -static void _vala_array_add2 (gchar** * array, - int* length, - int* size, - gchar* value); -GType publishing_gallery3_get_albums_transaction_get_type (void) G_GNUC_CONST; -#define PUBLISHING_GALLERY3_GET_ALBUMS_TRANSACTION_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), PUBLISHING_GALLERY3_TYPE_GET_ALBUMS_TRANSACTION, PublishingGallery3GetAlbumsTransactionPrivate)) -PublishingGallery3GetAlbumsTransaction* publishing_gallery3_get_albums_transaction_new (PublishingGallery3Session* session, - gchar** _album_urls, - int _album_urls_length1, - guint start); -PublishingGallery3GetAlbumsTransaction* publishing_gallery3_get_albums_transaction_construct (GType object_type, - PublishingGallery3Session* session, - gchar** _album_urls, - int _album_urls_length1, - guint start); -static void publishing_gallery3_get_albums_transaction_set_album_urls (PublishingGallery3GetAlbumsTransaction* self, - gchar** value, - int value_length1); -gchar** publishing_gallery3_get_albums_transaction_get_album_urls (PublishingGallery3GetAlbumsTransaction* self, - int* result_length1); -static void publishing_gallery3_get_albums_transaction_set_urls_sent (PublishingGallery3GetAlbumsTransaction* self, - guint value); -guint publishing_gallery3_get_albums_transaction_get_urls_sent (PublishingGallery3GetAlbumsTransaction* self); -static void _vala_array_add3 (gchar** * array, - int* length, - int* size, - gchar* value); -static void publishing_gallery3_get_albums_transaction_set_more_urls (PublishingGallery3GetAlbumsTransaction* self, - gboolean value); -PublishingGallery3Album** publishing_gallery3_get_albums_transaction_get_albums (PublishingGallery3GetAlbumsTransaction* self, - int* result_length1, - GError** error); -static void _vala_array_add4 (PublishingGallery3Album** * array, - int* length, - int* size, - PublishingGallery3Album* value); -static gchar** _vala_array_dup2 (gchar** self, - int length); -gboolean publishing_gallery3_get_albums_transaction_get_more_urls (PublishingGallery3GetAlbumsTransaction* self); -static void publishing_gallery3_get_albums_transaction_finalize (PublishingRESTSupportTransaction * obj); -GType publishing_gallery3_gallery_get_tag_transaction_get_type (void) G_GNUC_CONST; -PublishingGallery3GalleryGetTagTransaction* publishing_gallery3_gallery_get_tag_transaction_new (PublishingGallery3Session* session, - const gchar* tag_name); -PublishingGallery3GalleryGetTagTransaction* publishing_gallery3_gallery_get_tag_transaction_construct (GType object_type, - PublishingGallery3Session* session, - const gchar* tag_name); -static void _vala_JsonNode_free (JsonNode* self); -gchar* publishing_gallery3_gallery_get_tag_transaction_tag_url (PublishingGallery3GalleryGetTagTransaction* self); -GType publishing_gallery3_gallery_get_item_tags_ur_ls_transaction_get_type (void) G_GNUC_CONST; -#define PUBLISHING_GALLERY3_GALLERY_GET_ITEM_TAGS_UR_LS_TRANSACTION_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), PUBLISHING_GALLERY3_TYPE_GALLERY_GET_ITEM_TAGS_UR_LS_TRANSACTION, PublishingGallery3GalleryGetItemTagsURLsTransactionPrivate)) -PublishingGallery3GalleryGetItemTagsURLsTransaction* publishing_gallery3_gallery_get_item_tags_ur_ls_transaction_new (PublishingGallery3Session* session, - const gchar* item_url); -PublishingGallery3GalleryGetItemTagsURLsTransaction* publishing_gallery3_gallery_get_item_tags_ur_ls_transaction_construct (GType object_type, - PublishingGallery3Session* session, - const gchar* item_url); -gchar* publishing_gallery3_gallery_get_item_tags_ur_ls_transaction_get_item_tags_path (PublishingGallery3GalleryGetItemTagsURLsTransaction* self); -static void publishing_gallery3_gallery_get_item_tags_ur_ls_transaction_finalize (PublishingRESTSupportTransaction * obj); -GType publishing_gallery3_gallery_set_tag_relationship_transaction_get_type (void) G_GNUC_CONST; -PublishingGallery3GallerySetTagRelationshipTransaction* publishing_gallery3_gallery_set_tag_relationship_transaction_new (PublishingGallery3Session* session, - const gchar* item_tags_path, - const gchar* tag_url, - const gchar* item_url); -PublishingGallery3GallerySetTagRelationshipTransaction* publishing_gallery3_gallery_set_tag_relationship_transaction_construct (GType object_type, - PublishingGallery3Session* session, - const gchar* item_tags_path, - const gchar* tag_url, - const gchar* item_url); -GType publishing_gallery3_gallery_album_create_transaction_get_type (void) G_GNUC_CONST; -gpointer publishing_gallery3_publishing_parameters_ref (gpointer instance); -void publishing_gallery3_publishing_parameters_unref (gpointer instance); -GParamSpec* publishing_gallery3_param_spec_publishing_parameters (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void publishing_gallery3_value_set_publishing_parameters (GValue* value, - gpointer v_object); -void publishing_gallery3_value_take_publishing_parameters (GValue* value, - gpointer v_object); -gpointer publishing_gallery3_value_get_publishing_parameters (const GValue* value); -GType publishing_gallery3_publishing_parameters_get_type (void) G_GNUC_CONST; -#define PUBLISHING_GALLERY3_GALLERY_ALBUM_CREATE_TRANSACTION_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), PUBLISHING_GALLERY3_TYPE_GALLERY_ALBUM_CREATE_TRANSACTION, PublishingGallery3GalleryAlbumCreateTransactionPrivate)) -PublishingGallery3GalleryAlbumCreateTransaction* publishing_gallery3_gallery_album_create_transaction_new (PublishingGallery3Session* session, - PublishingGallery3PublishingParameters* parameters); -PublishingGallery3GalleryAlbumCreateTransaction* publishing_gallery3_gallery_album_create_transaction_construct (GType object_type, - PublishingGallery3Session* session, - PublishingGallery3PublishingParameters* parameters); -static void publishing_gallery3_gallery_album_create_transaction_set_parameters (PublishingGallery3GalleryAlbumCreateTransaction* self, - PublishingGallery3PublishingParameters* value); -const gchar* publishing_gallery3_publishing_parameters_get_album_name (PublishingGallery3PublishingParameters* self); -const gchar* publishing_gallery3_publishing_parameters_get_album_title (PublishingGallery3PublishingParameters* self); -gchar* publishing_gallery3_gallery_album_create_transaction_get_new_album_path (PublishingGallery3GalleryAlbumCreateTransaction* self); -PublishingGallery3PublishingParameters* publishing_gallery3_gallery_album_create_transaction_get_parameters (PublishingGallery3GalleryAlbumCreateTransaction* self); -static void publishing_gallery3_gallery_album_create_transaction_finalize (PublishingRESTSupportTransaction * obj); -GType publishing_gallery3_gallery_upload_transaction_get_type (void) G_GNUC_CONST; -#define PUBLISHING_GALLERY3_GALLERY_UPLOAD_TRANSACTION_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), PUBLISHING_GALLERY3_TYPE_GALLERY_UPLOAD_TRANSACTION, PublishingGallery3GalleryUploadTransactionPrivate)) -PublishingGallery3GalleryUploadTransaction* publishing_gallery3_gallery_upload_transaction_new (PublishingGallery3Session* session, - PublishingGallery3PublishingParameters* parameters, - SpitPublishingPublishable* publishable); -PublishingGallery3GalleryUploadTransaction* publishing_gallery3_gallery_upload_transaction_construct (GType object_type, - PublishingGallery3Session* session, - PublishingGallery3PublishingParameters* parameters, - SpitPublishingPublishable* publishable); -const gchar* publishing_gallery3_publishing_parameters_get_album_path (PublishingGallery3PublishingParameters* self); -static void _g_free0_ (gpointer var); -static gchar* publishing_gallery3_gallery_upload_transaction_get_new_item_url (PublishingGallery3GalleryUploadTransaction* self); -static void publishing_gallery3_gallery_upload_transaction_do_set_tag_relationship (PublishingGallery3GalleryUploadTransaction* self, - const gchar* tag_url, - GError** error); -static gchar* publishing_gallery3_gallery_upload_transaction_get_new_item_tags_path (PublishingGallery3GalleryUploadTransaction* self); -static gchar* publishing_gallery3_gallery_upload_transaction_get_tag_url (PublishingGallery3GalleryUploadTransaction* self, - const gchar* tag); -static void publishing_gallery3_gallery_upload_transaction_on_upload_completed (PublishingGallery3GalleryUploadTransaction* self, - GError** error); -gboolean publishing_gallery3_publishing_parameters_get_strip_metadata (PublishingGallery3PublishingParameters* self); -static void publishing_gallery3_gallery_upload_transaction_real_execute (PublishingRESTSupportTransaction* base, - GError** error); -static void publishing_gallery3_gallery_upload_transaction_finalize (PublishingRESTSupportTransaction * obj); -GType publishing_gallery3_publishing_options_pane_get_type (void) G_GNUC_CONST; -#define PUBLISHING_GALLERY3_GALLERY_PUBLISHER_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), PUBLISHING_GALLERY3_TYPE_GALLERY_PUBLISHER, PublishingGallery3GalleryPublisherPrivate)) -#define PUBLISHING_GALLERY3_GALLERY_PUBLISHER_BAD_FILE_MSG _ ("\n" \ -"\n" \ -"The file “%s” may not be supported by or may be too large for this ins" \ -"tance of Gallery3.") -#define PUBLISHING_GALLERY3_GALLERY_PUBLISHER_BAD_MOVIE_MSG _ ("\n" \ -"Note that Gallery3 only supports the video types that Flowplayer does.") -PublishingGallery3Session* publishing_gallery3_session_new (void); -PublishingGallery3Session* publishing_gallery3_session_construct (GType object_type); -static gboolean publishing_gallery3_gallery_publisher_real_is_running (SpitPublishingPublisher* base); -static SpitPublishingService* publishing_gallery3_gallery_publisher_real_get_service (SpitPublishingPublisher* base); -static void publishing_gallery3_gallery_publisher_real_start (SpitPublishingPublisher* base); -gchar* publishing_gallery3_gallery_publisher_get_api_key (PublishingGallery3GalleryPublisher* self); -static void publishing_gallery3_gallery_publisher_do_show_service_welcome_pane (PublishingGallery3GalleryPublisher* self); -gchar* publishing_gallery3_gallery_publisher_get_gallery_url (PublishingGallery3GalleryPublisher* self); -gchar* publishing_gallery3_gallery_publisher_get_gallery_username (PublishingGallery3GalleryPublisher* self); -void publishing_gallery3_session_authenticate (PublishingGallery3Session* self, - const gchar* gallery_url, - const gchar* username, - const gchar* key); -static void publishing_gallery3_gallery_publisher_do_fetch_album_urls (PublishingGallery3GalleryPublisher* self); -static void publishing_gallery3_gallery_publisher_real_stop (SpitPublishingPublisher* base); -void publishing_gallery3_gallery_publisher_set_api_key (PublishingGallery3GalleryPublisher* self, - const gchar* key); -void publishing_gallery3_gallery_publisher_set_gallery_url (PublishingGallery3GalleryPublisher* self, - const gchar* url); -void publishing_gallery3_gallery_publisher_set_gallery_username (PublishingGallery3GalleryPublisher* self, - const gchar* username); -gboolean* publishing_gallery3_gallery_publisher_get_persistent_strip_metadata (PublishingGallery3GalleryPublisher* self); -static gboolean* _bool_dup (gboolean* self); -void publishing_gallery3_gallery_publisher_set_persistent_strip_metadata (PublishingGallery3GalleryPublisher* self, - gboolean strip_metadata); -gint* publishing_gallery3_gallery_publisher_get_scaling_constraint_id (PublishingGallery3GalleryPublisher* self); -static gint* _int_dup (gint* self); -void publishing_gallery3_gallery_publisher_set_scaling_constraint_id (PublishingGallery3GalleryPublisher* self, - gint constraint); -gint* publishing_gallery3_gallery_publisher_get_scaling_pixels (PublishingGallery3GalleryPublisher* self); -void publishing_gallery3_gallery_publisher_set_scaling_pixels (PublishingGallery3GalleryPublisher* self, - gint pixels); -static void publishing_gallery3_gallery_publisher_on_service_welcome_login (PublishingGallery3GalleryPublisher* self); -static void _publishing_gallery3_gallery_publisher_on_service_welcome_login_spit_publishing_login_callback (gpointer self); -GType publishing_gallery3_credentials_pane_mode_get_type (void) G_GNUC_CONST; -static void publishing_gallery3_gallery_publisher_do_show_credentials_pane (PublishingGallery3GalleryPublisher* self, - PublishingGallery3CredentialsPaneMode mode); -gchar* publishing_gallery3_credentials_pane_mode_to_string (PublishingGallery3CredentialsPaneMode self); -void publishing_gallery3_session_deauthenticate (PublishingGallery3Session* self); -GType publishing_gallery3_credentials_pane_get_type (void) G_GNUC_CONST; -PublishingGallery3CredentialsPane* publishing_gallery3_credentials_pane_new (SpitPublishingPluginHost* host, - PublishingGallery3CredentialsPaneMode mode, - const gchar* url, - const gchar* username, - const gchar* key); -PublishingGallery3CredentialsPane* publishing_gallery3_credentials_pane_construct (GType object_type, - SpitPublishingPluginHost* host, - PublishingGallery3CredentialsPaneMode mode, - const gchar* url, - const gchar* username, - const gchar* key); -static void publishing_gallery3_gallery_publisher_on_credentials_go_back (PublishingGallery3GalleryPublisher* self); -static void _publishing_gallery3_gallery_publisher_on_credentials_go_back_publishing_gallery3_credentials_pane_go_back (PublishingGallery3CredentialsPane* _sender, - gpointer self); -static void publishing_gallery3_gallery_publisher_on_credentials_login (PublishingGallery3GalleryPublisher* self, - const gchar* url, - const gchar* username, - const gchar* password); -static void _publishing_gallery3_gallery_publisher_on_credentials_login_publishing_gallery3_credentials_pane_login (PublishingGallery3CredentialsPane* _sender, - const gchar* url, - const gchar* uname, - const gchar* password, - const gchar* key, - gpointer self); -static void publishing_gallery3_gallery_publisher_do_network_login (PublishingGallery3GalleryPublisher* self, - const gchar* url, - const gchar* username, - const gchar* password); -static void publishing_gallery3_gallery_publisher_on_key_fetch_error (PublishingGallery3GalleryPublisher* self, - PublishingRESTSupportTransaction* bad_txn, - GError* err); -static void _publishing_gallery3_gallery_publisher_on_key_fetch_error_publishing_rest_support_transaction_network_error (PublishingRESTSupportTransaction* _sender, - GError* err, - gpointer self); -static void publishing_gallery3_gallery_publisher_on_key_fetch_complete (PublishingGallery3GalleryPublisher* self, - PublishingRESTSupportTransaction* txn); -static void _publishing_gallery3_gallery_publisher_on_key_fetch_complete_publishing_rest_support_transaction_completed (PublishingRESTSupportTransaction* _sender, - gpointer self); -static void publishing_gallery3_gallery_publisher_on_album_urls_fetch_error (PublishingGallery3GalleryPublisher* self, - PublishingRESTSupportTransaction* bad_txn, - GError* err); -static void _publishing_gallery3_gallery_publisher_on_album_urls_fetch_error_publishing_rest_support_transaction_network_error (PublishingRESTSupportTransaction* _sender, - GError* err, - gpointer self); -static void publishing_gallery3_gallery_publisher_on_album_urls_fetch_complete (PublishingGallery3GalleryPublisher* self, - PublishingRESTSupportTransaction* txn); -static void _publishing_gallery3_gallery_publisher_on_album_urls_fetch_complete_publishing_rest_support_transaction_completed (PublishingRESTSupportTransaction* _sender, - gpointer self); -static void publishing_gallery3_gallery_publisher_do_fetch_albums (PublishingGallery3GalleryPublisher* self, - gchar** album_urls, - int album_urls_length1, - guint start); -static void publishing_gallery3_gallery_publisher_on_album_fetch_error (PublishingGallery3GalleryPublisher* self, - PublishingRESTSupportTransaction* bad_txn, - GError* err); -static void _publishing_gallery3_gallery_publisher_on_album_fetch_error_publishing_rest_support_transaction_network_error (PublishingRESTSupportTransaction* _sender, - GError* err, - gpointer self); -static void publishing_gallery3_gallery_publisher_on_album_fetch_complete (PublishingGallery3GalleryPublisher* self, - PublishingRESTSupportTransaction* txn); -static void _publishing_gallery3_gallery_publisher_on_album_fetch_complete_publishing_rest_support_transaction_completed (PublishingRESTSupportTransaction* _sender, - gpointer self); -static void publishing_gallery3_gallery_publisher_do_show_publishing_options_pane (PublishingGallery3GalleryPublisher* self, - const gchar* url, - const gchar* username); -PublishingGallery3PublishingOptionsPane* publishing_gallery3_publishing_options_pane_new (SpitPublishingPluginHost* host, - const gchar* url, - const gchar* username, - PublishingGallery3Album** albums, - int albums_length1, - GtkBuilder* builder, - gboolean strip_metadata, - gint scaling_id, - gint scaling_pixels); -PublishingGallery3PublishingOptionsPane* publishing_gallery3_publishing_options_pane_construct (GType object_type, - SpitPublishingPluginHost* host, - const gchar* url, - const gchar* username, - PublishingGallery3Album** albums, - int albums_length1, - GtkBuilder* builder, - gboolean strip_metadata, - gint scaling_id, - gint scaling_pixels); -static void publishing_gallery3_gallery_publisher_on_publishing_options_pane_publish (PublishingGallery3GalleryPublisher* self, - PublishingGallery3PublishingParameters* parameters); -static void _publishing_gallery3_gallery_publisher_on_publishing_options_pane_publish_publishing_gallery3_publishing_options_pane_publish (PublishingGallery3PublishingOptionsPane* _sender, - PublishingGallery3PublishingParameters* parameters, - gpointer self); -static void publishing_gallery3_gallery_publisher_on_publishing_options_pane_logout (PublishingGallery3GalleryPublisher* self); -static void _publishing_gallery3_gallery_publisher_on_publishing_options_pane_logout_publishing_gallery3_publishing_options_pane_logout (PublishingGallery3PublishingOptionsPane* _sender, - gpointer self); -static void publishing_gallery3_gallery_publisher_do_create_album (PublishingGallery3GalleryPublisher* self, - PublishingGallery3PublishingParameters* parameters); -static void publishing_gallery3_gallery_publisher_on_album_create_error (PublishingGallery3GalleryPublisher* self, - PublishingRESTSupportTransaction* bad_txn, - GError* err); -static void _publishing_gallery3_gallery_publisher_on_album_create_error_publishing_rest_support_transaction_network_error (PublishingRESTSupportTransaction* _sender, - GError* err, - gpointer self); -static void publishing_gallery3_gallery_publisher_on_album_create_complete (PublishingGallery3GalleryPublisher* self, - PublishingRESTSupportTransaction* txn); -static void _publishing_gallery3_gallery_publisher_on_album_create_complete_publishing_rest_support_transaction_completed (PublishingRESTSupportTransaction* _sender, - gpointer self); -static void publishing_gallery3_gallery_publisher_do_publish (PublishingGallery3GalleryPublisher* self, - PublishingGallery3PublishingParameters* parameters); -gint publishing_gallery3_publishing_parameters_get_photo_major_axis_size (PublishingGallery3PublishingParameters* self); -GType publishing_gallery3_uploader_get_type (void) G_GNUC_CONST; -PublishingGallery3Uploader* publishing_gallery3_uploader_new (PublishingGallery3Session* session, - SpitPublishingPublishable** publishables, - int publishables_length1, - PublishingGallery3PublishingParameters* parameters); -PublishingGallery3Uploader* publishing_gallery3_uploader_construct (GType object_type, - PublishingGallery3Session* session, - SpitPublishingPublishable** publishables, - int publishables_length1, - PublishingGallery3PublishingParameters* parameters); -static void publishing_gallery3_gallery_publisher_on_publish_complete (PublishingGallery3GalleryPublisher* self, - PublishingRESTSupportBatchUploader* uploader, - gint num_published); -static void _publishing_gallery3_gallery_publisher_on_publish_complete_publishing_rest_support_batch_uploader_upload_complete (PublishingRESTSupportBatchUploader* _sender, - gint num_photos_published, - gpointer self); -static void publishing_gallery3_gallery_publisher_on_publish_error (PublishingGallery3GalleryPublisher* self, - PublishingRESTSupportBatchUploader* _uploader, - GError* err); -static void _publishing_gallery3_gallery_publisher_on_publish_error_publishing_rest_support_batch_uploader_upload_error (PublishingRESTSupportBatchUploader* _sender, - GError* err, - gpointer self); -static void publishing_gallery3_gallery_publisher_on_upload_status_updated (PublishingGallery3GalleryPublisher* self, - gint file_number, - gdouble completed_fraction); -static void _publishing_gallery3_gallery_publisher_on_upload_status_updated_spit_publishing_progress_callback (gint file_number, - gdouble fraction_complete, - gpointer self); -static void publishing_gallery3_gallery_publisher_do_show_success_pane (PublishingGallery3GalleryPublisher* self); -const gchar* publishing_gallery3_session_get_username (PublishingGallery3Session* self); -static void _vala_array_add5 (PublishingGallery3Album** * array, - int* length, - int* size, - PublishingGallery3Album* value); -void publishing_gallery3_publishing_parameters_set_album_path (PublishingGallery3PublishingParameters* self, - const gchar* value); -const gchar* publishing_gallery3_uploader_get_current_publishable_name (PublishingGallery3Uploader* self); -guint publishing_gallery3_uploader_get_status_code (PublishingGallery3Uploader* self); -SpitPublishingPublisherMediaType publishing_gallery3_uploader_get_current_publishable_type (PublishingGallery3Uploader* self); -gboolean publishing_gallery3_publishing_parameters_is_to_new_album (PublishingGallery3PublishingParameters* self); -static void publishing_gallery3_gallery_publisher_finalize (GObject * obj); -#define PUBLISHING_GALLERY3_PUBLISHING_OPTIONS_PANE_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), PUBLISHING_GALLERY3_TYPE_PUBLISHING_OPTIONS_PANE, PublishingGallery3PublishingOptionsPanePrivate)) -#define PUBLISHING_GALLERY3_PUBLISHING_OPTIONS_PANE_DEFAULT_ALBUM_NAME "" -#define PUBLISHING_GALLERY3_PUBLISHING_OPTIONS_PANE_LAST_ALBUM_CONFIG_KEY "last-album" -static PublishingGallery3Album** _vala_array_dup3 (PublishingGallery3Album** self, - int length); -static void publishing_gallery3_publishing_options_pane_on_use_existing_radio_clicked (PublishingGallery3PublishingOptionsPane* self); -static void _publishing_gallery3_publishing_options_pane_on_use_existing_radio_clicked_gtk_button_clicked (GtkButton* _sender, - gpointer self); -static void publishing_gallery3_publishing_options_pane_on_create_new_radio_clicked (PublishingGallery3PublishingOptionsPane* self); -static void _publishing_gallery3_publishing_options_pane_on_create_new_radio_clicked_gtk_button_clicked (GtkButton* _sender, - gpointer self); -static void publishing_gallery3_publishing_options_pane_on_new_album_entry_changed (PublishingGallery3PublishingOptionsPane* self); -static void _publishing_gallery3_publishing_options_pane_on_new_album_entry_changed_gtk_editable_changed (GtkEditable* _sender, - gpointer self); -static void publishing_gallery3_publishing_options_pane_on_scaling_constraint_changed (PublishingGallery3PublishingOptionsPane* self); -static void _publishing_gallery3_publishing_options_pane_on_scaling_constraint_changed_gtk_combo_box_changed (GtkComboBox* _sender, - gpointer self); -static void publishing_gallery3_publishing_options_pane_on_pixels_changed (PublishingGallery3PublishingOptionsPane* self); -static void _publishing_gallery3_publishing_options_pane_on_pixels_changed_gtk_editable_changed (GtkEditable* _sender, - gpointer self); -static void publishing_gallery3_publishing_options_pane_on_logout_clicked (PublishingGallery3PublishingOptionsPane* self); -static void _publishing_gallery3_publishing_options_pane_on_logout_clicked_gtk_button_clicked (GtkButton* _sender, - gpointer self); -static void publishing_gallery3_publishing_options_pane_on_publish_clicked (PublishingGallery3PublishingOptionsPane* self); -static void _publishing_gallery3_publishing_options_pane_on_publish_clicked_gtk_button_clicked (GtkButton* _sender, - gpointer self); -PublishingGallery3PublishingParameters* publishing_gallery3_publishing_parameters_new_to_new_album (const gchar* album_title); -PublishingGallery3PublishingParameters* publishing_gallery3_publishing_parameters_construct_to_new_album (GType object_type, - const gchar* album_title); -PublishingGallery3PublishingParameters* publishing_gallery3_publishing_parameters_new_to_existing_album (const gchar* album_path); -PublishingGallery3PublishingParameters* publishing_gallery3_publishing_parameters_construct_to_existing_album (GType object_type, - const gchar* album_path); -void publishing_gallery3_publishing_parameters_set_photo_major_axis_size (PublishingGallery3PublishingParameters* self, - gint value); -void publishing_gallery3_publishing_parameters_set_strip_metadata (PublishingGallery3PublishingParameters* self, - gboolean value); -static void publishing_gallery3_publishing_options_pane_update_publish_button_sensitivity (PublishingGallery3PublishingOptionsPane* self); -static void publishing_gallery3_publishing_options_pane_update_pixel_entry_sensitivity (PublishingGallery3PublishingOptionsPane* self); -void publishing_gallery3_publishing_options_pane_installed (PublishingGallery3PublishingOptionsPane* self); -static GtkWidget* publishing_gallery3_publishing_options_pane_real_get_widget (SpitPublishingDialogPane* base); -static SpitPublishingDialogPaneGeometryOptions publishing_gallery3_publishing_options_pane_real_get_preferred_geometry (SpitPublishingDialogPane* base); -static void publishing_gallery3_publishing_options_pane_real_on_pane_installed (SpitPublishingDialogPane* base); -static void publishing_gallery3_publishing_options_pane_real_on_pane_uninstalled (SpitPublishingDialogPane* base); -static void g_cclosure_user_marshal_VOID__PUBLISHING_GALLERY3_PUBLISHING_PARAMETERS (GClosure * closure, - GValue * return_value, - guint n_param_values, - const GValue * param_values, - gpointer invocation_hint, - gpointer marshal_data); -static void publishing_gallery3_publishing_options_pane_finalize (GObject * obj); -#define PUBLISHING_GALLERY3_PUBLISHING_PARAMETERS_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), PUBLISHING_GALLERY3_TYPE_PUBLISHING_PARAMETERS, PublishingGallery3PublishingParametersPrivate)) -static PublishingGallery3PublishingParameters* publishing_gallery3_publishing_parameters_new (void); -static PublishingGallery3PublishingParameters* publishing_gallery3_publishing_parameters_construct (GType object_type); -static void publishing_gallery3_publishing_parameters_set_album_name (PublishingGallery3PublishingParameters* self, - const gchar* value); -static void publishing_gallery3_publishing_parameters_set_album_title (PublishingGallery3PublishingParameters* self, - const gchar* value); -const gchar* publishing_gallery3_publishing_parameters_get_entity_title (PublishingGallery3PublishingParameters* self); -static void publishing_gallery3_publishing_parameters_set_entity_title (PublishingGallery3PublishingParameters* self, - const gchar* value); -static void publishing_gallery3_publishing_parameters_finalize (PublishingGallery3PublishingParameters * obj); -GType publishing_gallery3_credentials_grid_get_type (void) G_GNUC_CONST; -#define PUBLISHING_GALLERY3_CREDENTIALS_PANE_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), PUBLISHING_GALLERY3_TYPE_CREDENTIALS_PANE, PublishingGallery3CredentialsPanePrivate)) -PublishingGallery3CredentialsGrid* publishing_gallery3_credentials_grid_new (SpitPublishingPluginHost* host, - PublishingGallery3CredentialsPaneMode mode, - const gchar* url, - const gchar* username, - const gchar* key, - GtkBuilder* builder); -PublishingGallery3CredentialsGrid* publishing_gallery3_credentials_grid_construct (GType object_type, - SpitPublishingPluginHost* host, - PublishingGallery3CredentialsPaneMode mode, - const gchar* url, - const gchar* username, - const gchar* key, - GtkBuilder* builder); -GtkGrid* publishing_gallery3_credentials_grid_get_pane_widget (PublishingGallery3CredentialsGrid* self); -void publishing_gallery3_credentials_pane_notify_go_back (PublishingGallery3CredentialsPane* self); -void publishing_gallery3_credentials_pane_notify_login (PublishingGallery3CredentialsPane* self, - const gchar* url, - const gchar* uname, - const gchar* password, - const gchar* key); -static GtkWidget* publishing_gallery3_credentials_pane_real_get_widget (SpitPublishingDialogPane* base); -static SpitPublishingDialogPaneGeometryOptions publishing_gallery3_credentials_pane_real_get_preferred_geometry (SpitPublishingDialogPane* base); -static void publishing_gallery3_credentials_pane_real_on_pane_installed (SpitPublishingDialogPane* base); -static void _publishing_gallery3_credentials_pane_notify_go_back_publishing_gallery3_credentials_grid_go_back (PublishingGallery3CredentialsGrid* _sender, - gpointer self); -static void _publishing_gallery3_credentials_pane_notify_login_publishing_gallery3_credentials_grid_login (PublishingGallery3CredentialsGrid* _sender, - const gchar* url, - const gchar* username, - const gchar* password, - const gchar* key, - gpointer self); -void publishing_gallery3_credentials_grid_installed (PublishingGallery3CredentialsGrid* self); -static void publishing_gallery3_credentials_pane_real_on_pane_uninstalled (SpitPublishingDialogPane* base); -static void g_cclosure_user_marshal_VOID__STRING_STRING_STRING_STRING (GClosure * closure, - GValue * return_value, - guint n_param_values, - const GValue * param_values, - gpointer invocation_hint, - gpointer marshal_data); -static void publishing_gallery3_credentials_pane_finalize (GObject * obj); -#define PUBLISHING_GALLERY3_CREDENTIALS_GRID_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), PUBLISHING_GALLERY3_TYPE_CREDENTIALS_GRID, PublishingGallery3CredentialsGridPrivate)) -#define PUBLISHING_GALLERY3_CREDENTIALS_GRID_INTRO_MESSAGE _ ("Enter the URL for your Gallery3 site and the username and password (or" \ -" API key) for your Gallery3 account.") -#define PUBLISHING_GALLERY3_CREDENTIALS_GRID_FAILED_RETRY_MESSAGE _ ("The username and password or API key were incorrect. To try again, re-" \ -"enter your username and password below.") -#define PUBLISHING_GALLERY3_CREDENTIALS_GRID_NOT_GALLERY_URL_MESSAGE _ ("The URL entered does not appear to be the main directory of a Gallery3" \ -" instance. Please make sure you typed it correctly and it does not hav" \ -"e any trailing components (e.g., index.php).") -static void publishing_gallery3_credentials_grid_set_pane_widget (PublishingGallery3CredentialsGrid* self, - GtkGrid* value); -static void publishing_gallery3_credentials_grid_on_url_or_username_changed (PublishingGallery3CredentialsGrid* self); -static void _publishing_gallery3_credentials_grid_on_url_or_username_changed_gtk_editable_changed (GtkEditable* _sender, - gpointer self); -static void publishing_gallery3_credentials_grid_on_go_back_button_clicked (PublishingGallery3CredentialsGrid* self); -static void _publishing_gallery3_credentials_grid_on_go_back_button_clicked_gtk_button_clicked (GtkButton* _sender, - gpointer self); -static void publishing_gallery3_credentials_grid_on_login_button_clicked (PublishingGallery3CredentialsGrid* self); -static void _publishing_gallery3_credentials_grid_on_login_button_clicked_gtk_button_clicked (GtkButton* _sender, - gpointer self); -static void publishing_gallery3_credentials_grid_finalize (GObject * obj); -static void _vala_publishing_gallery3_credentials_grid_get_property (GObject * object, - guint property_id, - GValue * value, - GParamSpec * pspec); -static void _vala_publishing_gallery3_credentials_grid_set_property (GObject * object, - guint property_id, - const GValue * value, - GParamSpec * pspec); -#define PUBLISHING_GALLERY3_SESSION_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), PUBLISHING_GALLERY3_TYPE_SESSION, PublishingGallery3SessionPrivate)) -static gboolean publishing_gallery3_session_real_is_authenticated (PublishingRESTSupportSession* base); -static void publishing_gallery3_session_set_url (PublishingGallery3Session* self, - const gchar* value); -static void publishing_gallery3_session_set_username (PublishingGallery3Session* self, - const gchar* value); -static void publishing_gallery3_session_set_key (PublishingGallery3Session* self, - const gchar* value); -static void publishing_gallery3_session_finalize (PublishingRESTSupportSession * obj); -#define PUBLISHING_GALLERY3_UPLOADER_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), PUBLISHING_GALLERY3_TYPE_UPLOADER, PublishingGallery3UploaderPrivate)) -static PublishingRESTSupportTransaction* publishing_gallery3_uploader_real_create_transaction (PublishingRESTSupportBatchUploader* base, - SpitPublishingPublishable* publishable); -static void publishing_gallery3_uploader_finalize (PublishingRESTSupportBatchUploader * obj); -static void _vala_array_destroy (gpointer array, - gint array_length, - GDestroyNotify destroy_func); -static void _vala_array_free (gpointer array, - gint array_length, - GDestroyNotify destroy_func); - - -static void -_vala_array_add1 (SpitPluggable** * array, - int* length, - int* size, - SpitPluggable* value) -{ -#line 37 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - if ((*length) == (*size)) { -#line 37 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - *size = (*size) ? (2 * (*size)) : 4; -#line 37 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - *array = g_renew (SpitPluggable*, *array, (*size) + 1); -#line 1274 "GalleryConnector.c" - } -#line 37 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - (*array)[(*length)++] = value; -#line 37 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - (*array)[*length] = NULL; -#line 1280 "GalleryConnector.c" -} - - -ShotwellPublishingGallery3* -shotwell_publishing_gallery3_construct (GType object_type, - GFile* module_file) -{ - ShotwellPublishingGallery3 * self = NULL; - GFile* resource_directory = NULL; - GFile* _tmp0_; - SpitPluggable** _tmp1_; - gint _tmp1__length1; - Gallery3Service* _tmp2_; -#line 34 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_return_val_if_fail (G_IS_FILE (module_file), NULL); -#line 34 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self = (ShotwellPublishingGallery3*) g_object_new (object_type, NULL); -#line 35 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp0_ = g_file_get_parent (module_file); -#line 35 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - resource_directory = _tmp0_; -#line 37 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp1_ = self->priv->pluggables; -#line 37 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp1__length1 = self->priv->pluggables_length1; -#line 37 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp2_ = gallery3_service_new (resource_directory); -#line 37 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _vala_array_add1 (&self->priv->pluggables, &self->priv->pluggables_length1, &self->priv->_pluggables_size_, G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, SPIT_TYPE_PLUGGABLE, SpitPluggable)); -#line 34 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_object_unref0 (resource_directory); -#line 34 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - return self; -#line 1314 "GalleryConnector.c" -} - - -ShotwellPublishingGallery3* -shotwell_publishing_gallery3_new (GFile* module_file) -{ -#line 34 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - return shotwell_publishing_gallery3_construct (TYPE_SHOTWELL_PUBLISHING_GALLERY3, module_file); -#line 1323 "GalleryConnector.c" -} - - -static const gchar* -shotwell_publishing_gallery3_real_get_module_name (SpitModule* base) -{ - ShotwellPublishingGallery3 * self; - const gchar* result = NULL; -#line 40 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_SHOTWELL_PUBLISHING_GALLERY3, ShotwellPublishingGallery3); -#line 41 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - result = _ ("Gallery3 publishing module"); -#line 41 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - return result; -#line 1338 "GalleryConnector.c" -} - - -static const gchar* -shotwell_publishing_gallery3_real_get_version (SpitModule* base) -{ - ShotwellPublishingGallery3 * self; - const gchar* result = NULL; -#line 44 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_SHOTWELL_PUBLISHING_GALLERY3, ShotwellPublishingGallery3); -#line 45 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - result = G3_VERSION; -#line 45 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - return result; -#line 1353 "GalleryConnector.c" -} - - -static const gchar* -shotwell_publishing_gallery3_real_get_id (SpitModule* base) -{ - ShotwellPublishingGallery3 * self; - const gchar* result = NULL; -#line 48 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_SHOTWELL_PUBLISHING_GALLERY3, ShotwellPublishingGallery3); -#line 49 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - result = "org.yorba.shotwell.sharing.gallery3"; -#line 49 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - return result; -#line 1368 "GalleryConnector.c" -} - - -static SpitPluggable** -shotwell_publishing_gallery3_real_get_pluggables (SpitModule* base, - int* result_length1) -{ - ShotwellPublishingGallery3 * self; - SpitPluggable** result = NULL; - SpitPluggable** _tmp0_; - gint _tmp0__length1; - SpitPluggable** _tmp1_; - gint _tmp1__length1; -#line 52 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_SHOTWELL_PUBLISHING_GALLERY3, ShotwellPublishingGallery3); -#line 53 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp0_ = self->priv->pluggables; -#line 53 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp0__length1 = self->priv->pluggables_length1; -#line 53 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp1_ = _tmp0_; -#line 53 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp1__length1 = _tmp0__length1; -#line 53 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - if (result_length1) { -#line 53 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - *result_length1 = _tmp1__length1; -#line 1396 "GalleryConnector.c" - } -#line 53 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - result = _tmp1_; -#line 53 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - return result; -#line 1402 "GalleryConnector.c" -} - - -static void -shotwell_publishing_gallery3_class_init (ShotwellPublishingGallery3Class * klass) -{ -#line 31 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - shotwell_publishing_gallery3_parent_class = g_type_class_peek_parent (klass); -#line 31 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_type_class_add_private (klass, sizeof (ShotwellPublishingGallery3Private)); -#line 31 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - G_OBJECT_CLASS (klass)->finalize = shotwell_publishing_gallery3_finalize; -#line 1415 "GalleryConnector.c" -} - - -static void -shotwell_publishing_gallery3_spit_module_interface_init (SpitModuleIface * iface) -{ -#line 31 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - shotwell_publishing_gallery3_spit_module_parent_iface = g_type_interface_peek_parent (iface); -#line 31 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - iface->get_module_name = (const gchar* (*) (SpitModule *)) shotwell_publishing_gallery3_real_get_module_name; -#line 31 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - iface->get_version = (const gchar* (*) (SpitModule *)) shotwell_publishing_gallery3_real_get_version; -#line 31 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - iface->get_id = (const gchar* (*) (SpitModule *)) shotwell_publishing_gallery3_real_get_id; -#line 31 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - iface->get_pluggables = (SpitPluggable** (*) (SpitModule *, int*)) shotwell_publishing_gallery3_real_get_pluggables; -#line 1432 "GalleryConnector.c" -} - - -static void -shotwell_publishing_gallery3_instance_init (ShotwellPublishingGallery3 * self) -{ - SpitPluggable** _tmp0_; -#line 31 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self->priv = SHOTWELL_PUBLISHING_GALLERY3_GET_PRIVATE (self); -#line 32 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp0_ = g_new0 (SpitPluggable*, 0 + 1); -#line 32 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self->priv->pluggables = _tmp0_; -#line 32 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self->priv->pluggables_length1 = 0; -#line 32 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self->priv->_pluggables_size_ = self->priv->pluggables_length1; -#line 1450 "GalleryConnector.c" -} - - -static void -shotwell_publishing_gallery3_finalize (GObject * obj) -{ - ShotwellPublishingGallery3 * self; -#line 31 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_SHOTWELL_PUBLISHING_GALLERY3, ShotwellPublishingGallery3); -#line 32 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self->priv->pluggables = (_vala_array_free (self->priv->pluggables, self->priv->pluggables_length1, (GDestroyNotify) g_object_unref), NULL); -#line 31 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - G_OBJECT_CLASS (shotwell_publishing_gallery3_parent_class)->finalize (obj); -#line 1464 "GalleryConnector.c" -} - - -GType -shotwell_publishing_gallery3_get_type (void) -{ - static volatile gsize shotwell_publishing_gallery3_type_id__volatile = 0; - if (g_once_init_enter (&shotwell_publishing_gallery3_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (ShotwellPublishingGallery3Class), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) shotwell_publishing_gallery3_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (ShotwellPublishingGallery3), 0, (GInstanceInitFunc) shotwell_publishing_gallery3_instance_init, NULL }; - static const GInterfaceInfo spit_module_info = { (GInterfaceInitFunc) shotwell_publishing_gallery3_spit_module_interface_init, (GInterfaceFinalizeFunc) NULL, NULL}; - GType shotwell_publishing_gallery3_type_id; - shotwell_publishing_gallery3_type_id = g_type_register_static (G_TYPE_OBJECT, "ShotwellPublishingGallery3", &g_define_type_info, 0); - g_type_add_interface_static (shotwell_publishing_gallery3_type_id, SPIT_TYPE_MODULE, &spit_module_info); - g_once_init_leave (&shotwell_publishing_gallery3_type_id__volatile, shotwell_publishing_gallery3_type_id); - } - return shotwell_publishing_gallery3_type_id__volatile; -} - - -Gallery3Service* -gallery3_service_construct (GType object_type, - GFile* resource_directory) -{ - Gallery3Service * self = NULL; - GdkPixbuf** _tmp0_; - gint _tmp0__length1; -#line 64 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_return_val_if_fail (G_IS_FILE (resource_directory), NULL); -#line 64 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self = (Gallery3Service*) g_object_new (object_type, NULL); -#line 65 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp0_ = gallery3_service_icon_pixbuf_set; -#line 65 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp0__length1 = gallery3_service_icon_pixbuf_set_length1; -#line 65 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - if (_tmp0_ == NULL) { -#line 1501 "GalleryConnector.c" - gint _tmp1_; - GdkPixbuf** _tmp2_; -#line 66 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp2_ = resources_load_from_resource (PLUGIN_RESOURCE_PATH "/" GALLERY3_SERVICE_ICON_FILENAME, &_tmp1_); -#line 66 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - gallery3_service_icon_pixbuf_set = (_vala_array_free (gallery3_service_icon_pixbuf_set, gallery3_service_icon_pixbuf_set_length1, (GDestroyNotify) g_object_unref), NULL); -#line 66 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - gallery3_service_icon_pixbuf_set = _tmp2_; -#line 66 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - gallery3_service_icon_pixbuf_set_length1 = _tmp1_; -#line 66 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _gallery3_service_icon_pixbuf_set_size_ = gallery3_service_icon_pixbuf_set_length1; -#line 1514 "GalleryConnector.c" - } -#line 64 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - return self; -#line 1518 "GalleryConnector.c" -} - - -Gallery3Service* -gallery3_service_new (GFile* resource_directory) -{ -#line 64 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - return gallery3_service_construct (TYPE_GALLERY3_SERVICE, resource_directory); -#line 1527 "GalleryConnector.c" -} - - -static gint -gallery3_service_real_get_pluggable_interface (SpitPluggable* base, - gint min_host_interface, - gint max_host_interface) -{ - Gallery3Service * self; - gint result = 0; -#line 70 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_GALLERY3_SERVICE, Gallery3Service); -#line 72 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - result = spit_negotiate_interfaces (min_host_interface, max_host_interface, SPIT_PUBLISHING_CURRENT_INTERFACE); -#line 72 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - return result; -#line 1544 "GalleryConnector.c" -} - - -static const gchar* -gallery3_service_real_get_id (SpitPluggable* base) -{ - Gallery3Service * self; - const gchar* result = NULL; -#line 77 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_GALLERY3_SERVICE, Gallery3Service); -#line 78 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - result = "publishing-gallery3"; -#line 78 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - return result; -#line 1559 "GalleryConnector.c" -} - - -static const gchar* -gallery3_service_real_get_pluggable_name (SpitPluggable* base) -{ - Gallery3Service * self; - const gchar* result = NULL; -#line 81 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_GALLERY3_SERVICE, Gallery3Service); -#line 82 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - result = "Gallery3"; -#line 82 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - return result; -#line 1574 "GalleryConnector.c" -} - - -static gpointer -_g_object_ref0 (gpointer self) -{ -#line 93 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - return self ? g_object_ref (self) : NULL; -#line 1583 "GalleryConnector.c" -} - - -static GdkPixbuf** -_vala_array_dup1 (GdkPixbuf** self, - int length) -{ - GdkPixbuf** result; - int i; -#line 93 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - result = g_new0 (GdkPixbuf*, length + 1); -#line 93 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - for (i = 0; i < length; i++) { -#line 1597 "GalleryConnector.c" - GdkPixbuf* _tmp0_; -#line 93 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp0_ = _g_object_ref0 (self[i]); -#line 93 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - result[i] = _tmp0_; -#line 1603 "GalleryConnector.c" - } -#line 93 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - return result; -#line 1607 "GalleryConnector.c" -} - - -static void -gallery3_service_real_get_info (SpitPluggable* base, - SpitPluggableInfo* info) -{ - Gallery3Service * self; - gchar* _tmp0_; - gchar* _tmp1_; - gchar* _tmp2_; - gchar* _tmp3_; - gchar* _tmp4_; - gchar* _tmp5_; - GdkPixbuf** _tmp6_; - gint _tmp6__length1; - GdkPixbuf** _tmp7_; - gint _tmp7__length1; -#line 85 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_GALLERY3_SERVICE, Gallery3Service); -#line 85 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_return_if_fail (info != NULL); -#line 86 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp0_ = g_strdup ("Joe Sapp"); -#line 86 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_free0 ((*info).authors); -#line 86 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - (*info).authors = _tmp0_; -#line 87 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp1_ = g_strdup ("2012-2013 Joe Sapp"); -#line 87 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_free0 ((*info).copyright); -#line 87 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - (*info).copyright = _tmp1_; -#line 88 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp2_ = g_strdup (RESOURCES_TRANSLATORS); -#line 88 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_free0 ((*info).translators); -#line 88 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - (*info).translators = _tmp2_; -#line 89 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp3_ = g_strdup (G3_VERSION); -#line 89 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_free0 ((*info).version); -#line 89 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - (*info).version = _tmp3_; -#line 90 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp4_ = g_strdup (WEBSITE_URL); -#line 90 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_free0 ((*info).website_url); -#line 90 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - (*info).website_url = _tmp4_; -#line 91 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - (*info).is_license_wordwrapped = FALSE; -#line 92 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp5_ = g_strdup (G3_LICENSE); -#line 92 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_free0 ((*info).license); -#line 92 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - (*info).license = _tmp5_; -#line 93 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp6_ = gallery3_service_icon_pixbuf_set; -#line 93 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp6__length1 = gallery3_service_icon_pixbuf_set_length1; -#line 93 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp7_ = (_tmp6_ != NULL) ? _vala_array_dup1 (_tmp6_, _tmp6__length1) : ((gpointer) _tmp6_); -#line 93 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp7__length1 = _tmp6__length1; -#line 93 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - (*info).icons = (_vala_array_free ((*info).icons, (*info).icons_length1, (GDestroyNotify) g_object_unref), NULL); -#line 93 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - (*info).icons = _tmp7_; -#line 93 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - (*info).icons_length1 = _tmp7__length1; -#line 1682 "GalleryConnector.c" -} - - -static void -gallery3_service_real_activation (SpitPluggable* base, - gboolean enabled) -{ - Gallery3Service * self; -#line 96 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_GALLERY3_SERVICE, Gallery3Service); -#line 1693 "GalleryConnector.c" -} - - -static SpitPublishingPublisher* -gallery3_service_real_create_publisher (SpitPublishingService* base, - SpitPublishingPluginHost* host) -{ - Gallery3Service * self; - SpitPublishingPublisher* result = NULL; - PublishingGallery3GalleryPublisher* _tmp0_; -#line 99 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_GALLERY3_SERVICE, Gallery3Service); -#line 99 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_return_val_if_fail (SPIT_PUBLISHING_IS_PLUGIN_HOST (host), NULL); -#line 101 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp0_ = publishing_gallery3_gallery_publisher_new (G_TYPE_CHECK_INSTANCE_CAST (self, SPIT_PUBLISHING_TYPE_SERVICE, SpitPublishingService), host); -#line 101 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - result = G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, SPIT_PUBLISHING_TYPE_PUBLISHER, SpitPublishingPublisher); -#line 101 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - return result; -#line 1714 "GalleryConnector.c" -} - - -static SpitPublishingPublisherMediaType -gallery3_service_real_get_supported_media (SpitPublishingService* base) -{ - Gallery3Service * self; - SpitPublishingPublisherMediaType result = 0; -#line 104 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_GALLERY3_SERVICE, Gallery3Service); -#line 105 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - result = SPIT_PUBLISHING_PUBLISHER_MEDIA_TYPE_PHOTO | SPIT_PUBLISHING_PUBLISHER_MEDIA_TYPE_VIDEO; -#line 105 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - return result; -#line 1729 "GalleryConnector.c" -} - - -static void -gallery3_service_class_init (Gallery3ServiceClass * klass) -{ -#line 58 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - gallery3_service_parent_class = g_type_class_peek_parent (klass); -#line 58 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - G_OBJECT_CLASS (klass)->finalize = gallery3_service_finalize; -#line 1740 "GalleryConnector.c" -} - - -static void -gallery3_service_spit_pluggable_interface_init (SpitPluggableIface * iface) -{ -#line 58 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - gallery3_service_spit_pluggable_parent_iface = g_type_interface_peek_parent (iface); -#line 58 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - iface->get_pluggable_interface = (gint (*) (SpitPluggable *, gint, gint)) gallery3_service_real_get_pluggable_interface; -#line 58 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - iface->get_id = (const gchar* (*) (SpitPluggable *)) gallery3_service_real_get_id; -#line 58 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - iface->get_pluggable_name = (const gchar* (*) (SpitPluggable *)) gallery3_service_real_get_pluggable_name; -#line 58 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - iface->get_info = (void (*) (SpitPluggable *, SpitPluggableInfo*)) gallery3_service_real_get_info; -#line 58 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - iface->activation = (void (*) (SpitPluggable *, gboolean)) gallery3_service_real_activation; -#line 1759 "GalleryConnector.c" -} - - -static void -gallery3_service_spit_publishing_service_interface_init (SpitPublishingServiceIface * iface) -{ -#line 58 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - gallery3_service_spit_publishing_service_parent_iface = g_type_interface_peek_parent (iface); -#line 58 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - iface->create_publisher = (SpitPublishingPublisher* (*) (SpitPublishingService *, SpitPublishingPluginHost*)) gallery3_service_real_create_publisher; -#line 58 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - iface->get_supported_media = (SpitPublishingPublisherMediaType (*) (SpitPublishingService *)) gallery3_service_real_get_supported_media; -#line 1772 "GalleryConnector.c" -} - - -static void -gallery3_service_instance_init (Gallery3Service * self) -{ -} - - -static void -gallery3_service_finalize (GObject * obj) -{ - Gallery3Service * self; -#line 58 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_GALLERY3_SERVICE, Gallery3Service); -#line 58 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - G_OBJECT_CLASS (gallery3_service_parent_class)->finalize (obj); -#line 1790 "GalleryConnector.c" -} - - -GType -gallery3_service_get_type (void) -{ - static volatile gsize gallery3_service_type_id__volatile = 0; - if (g_once_init_enter (&gallery3_service_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (Gallery3ServiceClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) gallery3_service_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (Gallery3Service), 0, (GInstanceInitFunc) gallery3_service_instance_init, NULL }; - static const GInterfaceInfo spit_pluggable_info = { (GInterfaceInitFunc) gallery3_service_spit_pluggable_interface_init, (GInterfaceFinalizeFunc) NULL, NULL}; - static const GInterfaceInfo spit_publishing_service_info = { (GInterfaceInitFunc) gallery3_service_spit_publishing_service_interface_init, (GInterfaceFinalizeFunc) NULL, NULL}; - GType gallery3_service_type_id; - gallery3_service_type_id = g_type_register_static (G_TYPE_OBJECT, "Gallery3Service", &g_define_type_info, 0); - g_type_add_interface_static (gallery3_service_type_id, SPIT_TYPE_PLUGGABLE, &spit_pluggable_info); - g_type_add_interface_static (gallery3_service_type_id, SPIT_PUBLISHING_TYPE_SERVICE, &spit_publishing_service_info); - g_once_init_leave (&gallery3_service_type_id__volatile, gallery3_service_type_id); - } - return gallery3_service_type_id__volatile; -} - - -PublishingGallery3Album* -publishing_gallery3_album_construct (GType object_type, - JsonObject* collection) -{ - PublishingGallery3Album* self = NULL; - JsonObject* entity = NULL; - JsonObject* _tmp0_; - const gchar* _tmp1_; - const gchar* _tmp2_; - const gchar* _tmp3_; - const gchar* _tmp4_; - const gchar* _tmp5_; - gchar* _tmp6_; - gchar* _tmp7_; -#line 132 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_return_val_if_fail (collection != NULL, NULL); -#line 132 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self = (PublishingGallery3Album*) g_type_create_instance (object_type); -#line 134 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp0_ = json_object_get_object_member (collection, "entity"); -#line 134 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - entity = _tmp0_; -#line 137 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp1_ = json_object_get_string_member (entity, "title"); -#line 137 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - publishing_gallery3_album_set_title (self, _tmp1_); -#line 138 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp2_ = json_object_get_string_member (entity, "name"); -#line 138 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - publishing_gallery3_album_set_name (self, _tmp2_); -#line 139 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp3_ = json_object_get_string_member (entity, "parent"); -#line 139 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - publishing_gallery3_album_set_parentname (self, _tmp3_); -#line 140 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp4_ = json_object_get_string_member (collection, "url"); -#line 140 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - publishing_gallery3_album_set_url (self, _tmp4_); -#line 141 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - publishing_gallery3_album_set_editable (self, json_object_get_boolean_member (entity, "can_edit")); -#line 145 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp5_ = self->priv->_url; -#line 145 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp6_ = publishing_gallery3_strip_session_url (_tmp5_); -#line 145 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp7_ = _tmp6_; -#line 145 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - publishing_gallery3_album_set_path (self, _tmp7_); -#line 145 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_free0 (_tmp7_); -#line 132 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - return self; -#line 1864 "GalleryConnector.c" -} - - -PublishingGallery3Album* -publishing_gallery3_album_new (JsonObject* collection) -{ -#line 132 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - return publishing_gallery3_album_construct (PUBLISHING_GALLERY3_TYPE_ALBUM, collection); -#line 1873 "GalleryConnector.c" -} - - -const gchar* -publishing_gallery3_album_get_name (PublishingGallery3Album* self) -{ - const gchar* result; - const gchar* _tmp0_; -#line 123 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_return_val_if_fail (PUBLISHING_GALLERY3_IS_ALBUM (self), NULL); -#line 123 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp0_ = self->priv->_name; -#line 123 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - result = _tmp0_; -#line 123 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - return result; -#line 1890 "GalleryConnector.c" -} - - -static void -publishing_gallery3_album_set_name (PublishingGallery3Album* self, - const gchar* value) -{ - gchar* _tmp0_; -#line 123 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_return_if_fail (PUBLISHING_GALLERY3_IS_ALBUM (self)); -#line 123 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp0_ = g_strdup (value); -#line 123 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_free0 (self->priv->_name); -#line 123 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self->priv->_name = _tmp0_; -#line 1907 "GalleryConnector.c" -} - - -const gchar* -publishing_gallery3_album_get_title (PublishingGallery3Album* self) -{ - const gchar* result; - const gchar* _tmp0_; -#line 124 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_return_val_if_fail (PUBLISHING_GALLERY3_IS_ALBUM (self), NULL); -#line 124 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp0_ = self->priv->_title; -#line 124 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - result = _tmp0_; -#line 124 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - return result; -#line 1924 "GalleryConnector.c" -} - - -static void -publishing_gallery3_album_set_title (PublishingGallery3Album* self, - const gchar* value) -{ - gchar* _tmp0_; -#line 124 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_return_if_fail (PUBLISHING_GALLERY3_IS_ALBUM (self)); -#line 124 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp0_ = g_strdup (value); -#line 124 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_free0 (self->priv->_title); -#line 124 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self->priv->_title = _tmp0_; -#line 1941 "GalleryConnector.c" -} - - -const gchar* -publishing_gallery3_album_get_summary (PublishingGallery3Album* self) -{ - const gchar* result; - const gchar* _tmp0_; -#line 125 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_return_val_if_fail (PUBLISHING_GALLERY3_IS_ALBUM (self), NULL); -#line 125 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp0_ = self->priv->_summary; -#line 125 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - result = _tmp0_; -#line 125 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - return result; -#line 1958 "GalleryConnector.c" -} - - -static void -publishing_gallery3_album_set_summary (PublishingGallery3Album* self, - const gchar* value) -{ - gchar* _tmp0_; -#line 125 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_return_if_fail (PUBLISHING_GALLERY3_IS_ALBUM (self)); -#line 125 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp0_ = g_strdup (value); -#line 125 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_free0 (self->priv->_summary); -#line 125 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self->priv->_summary = _tmp0_; -#line 1975 "GalleryConnector.c" -} - - -const gchar* -publishing_gallery3_album_get_parentname (PublishingGallery3Album* self) -{ - const gchar* result; - const gchar* _tmp0_; -#line 126 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_return_val_if_fail (PUBLISHING_GALLERY3_IS_ALBUM (self), NULL); -#line 126 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp0_ = self->priv->_parentname; -#line 126 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - result = _tmp0_; -#line 126 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - return result; -#line 1992 "GalleryConnector.c" -} - - -static void -publishing_gallery3_album_set_parentname (PublishingGallery3Album* self, - const gchar* value) -{ - gchar* _tmp0_; -#line 126 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_return_if_fail (PUBLISHING_GALLERY3_IS_ALBUM (self)); -#line 126 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp0_ = g_strdup (value); -#line 126 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_free0 (self->priv->_parentname); -#line 126 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self->priv->_parentname = _tmp0_; -#line 2009 "GalleryConnector.c" -} - - -const gchar* -publishing_gallery3_album_get_url (PublishingGallery3Album* self) -{ - const gchar* result; - const gchar* _tmp0_; -#line 127 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_return_val_if_fail (PUBLISHING_GALLERY3_IS_ALBUM (self), NULL); -#line 127 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp0_ = self->priv->_url; -#line 127 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - result = _tmp0_; -#line 127 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - return result; -#line 2026 "GalleryConnector.c" -} - - -static void -publishing_gallery3_album_set_url (PublishingGallery3Album* self, - const gchar* value) -{ - gchar* _tmp0_; -#line 127 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_return_if_fail (PUBLISHING_GALLERY3_IS_ALBUM (self)); -#line 127 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp0_ = g_strdup (value); -#line 127 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_free0 (self->priv->_url); -#line 127 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self->priv->_url = _tmp0_; -#line 2043 "GalleryConnector.c" -} - - -const gchar* -publishing_gallery3_album_get_path (PublishingGallery3Album* self) -{ - const gchar* result; - const gchar* _tmp0_; -#line 128 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_return_val_if_fail (PUBLISHING_GALLERY3_IS_ALBUM (self), NULL); -#line 128 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp0_ = self->priv->_path; -#line 128 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - result = _tmp0_; -#line 128 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - return result; -#line 2060 "GalleryConnector.c" -} - - -static void -publishing_gallery3_album_set_path (PublishingGallery3Album* self, - const gchar* value) -{ - gchar* _tmp0_; -#line 128 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_return_if_fail (PUBLISHING_GALLERY3_IS_ALBUM (self)); -#line 128 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp0_ = g_strdup (value); -#line 128 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_free0 (self->priv->_path); -#line 128 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self->priv->_path = _tmp0_; -#line 2077 "GalleryConnector.c" -} - - -gboolean -publishing_gallery3_album_get_editable (PublishingGallery3Album* self) -{ - gboolean result; - gboolean _tmp0_; -#line 129 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_return_val_if_fail (PUBLISHING_GALLERY3_IS_ALBUM (self), FALSE); -#line 129 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp0_ = self->priv->_editable; -#line 129 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - result = _tmp0_; -#line 129 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - return result; -#line 2094 "GalleryConnector.c" -} - - -static void -publishing_gallery3_album_set_editable (PublishingGallery3Album* self, - gboolean value) -{ -#line 129 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_return_if_fail (PUBLISHING_GALLERY3_IS_ALBUM (self)); -#line 129 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self->priv->_editable = value; -#line 2106 "GalleryConnector.c" -} - - -static void -publishing_gallery3_value_album_init (GValue* value) -{ -#line 120 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - value->data[0].v_pointer = NULL; -#line 2115 "GalleryConnector.c" -} - - -static void -publishing_gallery3_value_album_free_value (GValue* value) -{ -#line 120 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - if (value->data[0].v_pointer) { -#line 120 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - publishing_gallery3_album_unref (value->data[0].v_pointer); -#line 2126 "GalleryConnector.c" - } -} - - -static void -publishing_gallery3_value_album_copy_value (const GValue* src_value, - GValue* dest_value) -{ -#line 120 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - if (src_value->data[0].v_pointer) { -#line 120 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - dest_value->data[0].v_pointer = publishing_gallery3_album_ref (src_value->data[0].v_pointer); -#line 2139 "GalleryConnector.c" - } else { -#line 120 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - dest_value->data[0].v_pointer = NULL; -#line 2143 "GalleryConnector.c" - } -} - - -static gpointer -publishing_gallery3_value_album_peek_pointer (const GValue* value) -{ -#line 120 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - return value->data[0].v_pointer; -#line 2153 "GalleryConnector.c" -} - - -static gchar* -publishing_gallery3_value_album_collect_value (GValue* value, - guint n_collect_values, - GTypeCValue* collect_values, - guint collect_flags) -{ -#line 120 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - if (collect_values[0].v_pointer) { -#line 2165 "GalleryConnector.c" - PublishingGallery3Album * object; - object = collect_values[0].v_pointer; -#line 120 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - if (object->parent_instance.g_class == NULL) { -#line 120 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL); -#line 2172 "GalleryConnector.c" - } else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) { -#line 120 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - return g_strconcat ("invalid object type `", g_type_name (G_TYPE_FROM_INSTANCE (object)), "' for value type `", G_VALUE_TYPE_NAME (value), "'", NULL); -#line 2176 "GalleryConnector.c" - } -#line 120 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - value->data[0].v_pointer = publishing_gallery3_album_ref (object); -#line 2180 "GalleryConnector.c" - } else { -#line 120 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - value->data[0].v_pointer = NULL; -#line 2184 "GalleryConnector.c" - } -#line 120 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - return NULL; -#line 2188 "GalleryConnector.c" -} - - -static gchar* -publishing_gallery3_value_album_lcopy_value (const GValue* value, - guint n_collect_values, - GTypeCValue* collect_values, - guint collect_flags) -{ - PublishingGallery3Album ** object_p; - object_p = collect_values[0].v_pointer; -#line 120 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - if (!object_p) { -#line 120 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value)); -#line 2204 "GalleryConnector.c" - } -#line 120 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - if (!value->data[0].v_pointer) { -#line 120 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - *object_p = NULL; -#line 2210 "GalleryConnector.c" - } else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) { -#line 120 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - *object_p = value->data[0].v_pointer; -#line 2214 "GalleryConnector.c" - } else { -#line 120 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - *object_p = publishing_gallery3_album_ref (value->data[0].v_pointer); -#line 2218 "GalleryConnector.c" - } -#line 120 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - return NULL; -#line 2222 "GalleryConnector.c" -} - - -GParamSpec* -publishing_gallery3_param_spec_album (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags) -{ - PublishingGallery3ParamSpecAlbum* spec; -#line 120 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_return_val_if_fail (g_type_is_a (object_type, PUBLISHING_GALLERY3_TYPE_ALBUM), NULL); -#line 120 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags); -#line 120 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - G_PARAM_SPEC (spec)->value_type = object_type; -#line 120 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - return G_PARAM_SPEC (spec); -#line 2242 "GalleryConnector.c" -} - - -gpointer -publishing_gallery3_value_get_album (const GValue* value) -{ -#line 120 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, PUBLISHING_GALLERY3_TYPE_ALBUM), NULL); -#line 120 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - return value->data[0].v_pointer; -#line 2253 "GalleryConnector.c" -} - - -void -publishing_gallery3_value_set_album (GValue* value, - gpointer v_object) -{ - PublishingGallery3Album * old; -#line 120 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, PUBLISHING_GALLERY3_TYPE_ALBUM)); -#line 120 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - old = value->data[0].v_pointer; -#line 120 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - if (v_object) { -#line 120 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, PUBLISHING_GALLERY3_TYPE_ALBUM)); -#line 120 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value))); -#line 120 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - value->data[0].v_pointer = v_object; -#line 120 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - publishing_gallery3_album_ref (value->data[0].v_pointer); -#line 2276 "GalleryConnector.c" - } else { -#line 120 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - value->data[0].v_pointer = NULL; -#line 2280 "GalleryConnector.c" - } -#line 120 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - if (old) { -#line 120 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - publishing_gallery3_album_unref (old); -#line 2286 "GalleryConnector.c" - } -} - - -void -publishing_gallery3_value_take_album (GValue* value, - gpointer v_object) -{ - PublishingGallery3Album * old; -#line 120 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, PUBLISHING_GALLERY3_TYPE_ALBUM)); -#line 120 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - old = value->data[0].v_pointer; -#line 120 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - if (v_object) { -#line 120 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, PUBLISHING_GALLERY3_TYPE_ALBUM)); -#line 120 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value))); -#line 120 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - value->data[0].v_pointer = v_object; -#line 2308 "GalleryConnector.c" - } else { -#line 120 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - value->data[0].v_pointer = NULL; -#line 2312 "GalleryConnector.c" - } -#line 120 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - if (old) { -#line 120 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - publishing_gallery3_album_unref (old); -#line 2318 "GalleryConnector.c" - } -} - - -static void -publishing_gallery3_album_class_init (PublishingGallery3AlbumClass * klass) -{ -#line 120 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - publishing_gallery3_album_parent_class = g_type_class_peek_parent (klass); -#line 120 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - ((PublishingGallery3AlbumClass *) klass)->finalize = publishing_gallery3_album_finalize; -#line 120 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_type_class_add_private (klass, sizeof (PublishingGallery3AlbumPrivate)); -#line 2332 "GalleryConnector.c" -} - - -static void -publishing_gallery3_album_instance_init (PublishingGallery3Album * self) -{ - gchar* _tmp0_; - gchar* _tmp1_; - gchar* _tmp2_; - gchar* _tmp3_; - gchar* _tmp4_; - gchar* _tmp5_; -#line 120 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self->priv = PUBLISHING_GALLERY3_ALBUM_GET_PRIVATE (self); -#line 123 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp0_ = g_strdup (""); -#line 123 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self->priv->_name = _tmp0_; -#line 124 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp1_ = g_strdup (""); -#line 124 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self->priv->_title = _tmp1_; -#line 125 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp2_ = g_strdup (""); -#line 125 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self->priv->_summary = _tmp2_; -#line 126 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp3_ = g_strdup (""); -#line 126 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self->priv->_parentname = _tmp3_; -#line 127 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp4_ = g_strdup (""); -#line 127 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self->priv->_url = _tmp4_; -#line 128 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp5_ = g_strdup (""); -#line 128 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self->priv->_path = _tmp5_; -#line 129 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self->priv->_editable = FALSE; -#line 120 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self->ref_count = 1; -#line 2375 "GalleryConnector.c" -} - - -static void -publishing_gallery3_album_finalize (PublishingGallery3Album * obj) -{ - PublishingGallery3Album * self; -#line 120 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, PUBLISHING_GALLERY3_TYPE_ALBUM, PublishingGallery3Album); -#line 120 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_signal_handlers_destroy (self); -#line 123 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_free0 (self->priv->_name); -#line 124 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_free0 (self->priv->_title); -#line 125 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_free0 (self->priv->_summary); -#line 126 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_free0 (self->priv->_parentname); -#line 127 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_free0 (self->priv->_url); -#line 128 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_free0 (self->priv->_path); -#line 2399 "GalleryConnector.c" -} - - -GType -publishing_gallery3_album_get_type (void) -{ - static volatile gsize publishing_gallery3_album_type_id__volatile = 0; - if (g_once_init_enter (&publishing_gallery3_album_type_id__volatile)) { - static const GTypeValueTable g_define_type_value_table = { publishing_gallery3_value_album_init, publishing_gallery3_value_album_free_value, publishing_gallery3_value_album_copy_value, publishing_gallery3_value_album_peek_pointer, "p", publishing_gallery3_value_album_collect_value, "p", publishing_gallery3_value_album_lcopy_value }; - static const GTypeInfo g_define_type_info = { sizeof (PublishingGallery3AlbumClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) publishing_gallery3_album_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PublishingGallery3Album), 0, (GInstanceInitFunc) publishing_gallery3_album_instance_init, &g_define_type_value_table }; - static const GTypeFundamentalInfo g_define_type_fundamental_info = { (G_TYPE_FLAG_CLASSED | G_TYPE_FLAG_INSTANTIATABLE | G_TYPE_FLAG_DERIVABLE | G_TYPE_FLAG_DEEP_DERIVABLE) }; - GType publishing_gallery3_album_type_id; - publishing_gallery3_album_type_id = g_type_register_fundamental (g_type_fundamental_next (), "PublishingGallery3Album", &g_define_type_info, &g_define_type_fundamental_info, 0); - g_once_init_leave (&publishing_gallery3_album_type_id__volatile, publishing_gallery3_album_type_id); - } - return publishing_gallery3_album_type_id__volatile; -} - - -gpointer -publishing_gallery3_album_ref (gpointer instance) -{ - PublishingGallery3Album * self; - self = instance; -#line 120 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_atomic_int_inc (&self->ref_count); -#line 120 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - return instance; -#line 2428 "GalleryConnector.c" -} - - -void -publishing_gallery3_album_unref (gpointer instance) -{ - PublishingGallery3Album * self; - self = instance; -#line 120 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - if (g_atomic_int_dec_and_test (&self->ref_count)) { -#line 120 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - PUBLISHING_GALLERY3_ALBUM_GET_CLASS (self)->finalize (self); -#line 120 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_type_free_instance ((GTypeInstance *) self); -#line 2443 "GalleryConnector.c" - } -} - - -static gchar -string_get (const gchar* self, - glong index) -{ - gchar result = '\0'; - gchar _tmp0_; -#line 1124 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - g_return_val_if_fail (self != NULL, '\0'); -#line 1125 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp0_ = ((gchar*) self)[index]; -#line 1125 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - result = _tmp0_; -#line 1125 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - return result; -#line 2462 "GalleryConnector.c" -} - - -PublishingGallery3BaseGalleryTransaction* -publishing_gallery3_base_gallery_transaction_construct (GType object_type, - PublishingGallery3Session* session, - const gchar* endpoint_url, - const gchar* item_path, - PublishingRESTSupportHttpMethod method) -{ - PublishingGallery3BaseGalleryTransaction* self = NULL; - gboolean _tmp0_ = FALSE; - gchar* _tmp1_; - gchar* _tmp2_; - gchar* _tmp3_; - gchar* _tmp4_; - JsonParser* _tmp5_; -#line 157 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_return_val_if_fail (PUBLISHING_GALLERY3_IS_SESSION (session), NULL); -#line 157 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_return_val_if_fail (endpoint_url != NULL, NULL); -#line 157 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_return_val_if_fail (item_path != NULL, NULL); -#line 163 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - if (g_strcmp0 (item_path, "") != 0) { -#line 163 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp0_ = string_get (item_path, (glong) 0) != '/'; -#line 2490 "GalleryConnector.c" - } else { -#line 163 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp0_ = FALSE; -#line 2494 "GalleryConnector.c" - } -#line 163 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - if (_tmp0_) { -#line 164 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_warning ("GalleryConnector.vala:164: Bad item path, this is a bug!"); -#line 165 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_error ("GalleryConnector.vala:165: %s", item_path); -#line 2502 "GalleryConnector.c" - } -#line 168 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp1_ = g_strconcat (endpoint_url, PUBLISHING_GALLERY3_REST_PATH, NULL); -#line 168 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp2_ = _tmp1_; -#line 168 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp3_ = g_strconcat (_tmp2_, item_path, NULL); -#line 168 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp4_ = _tmp3_; -#line 168 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self = (PublishingGallery3BaseGalleryTransaction*) publishing_rest_support_transaction_construct_with_endpoint_url (object_type, G_TYPE_CHECK_INSTANCE_CAST (session, PUBLISHING_REST_SUPPORT_TYPE_SESSION, PublishingRESTSupportSession), _tmp4_, method); -#line 168 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_free0 (_tmp4_); -#line 168 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_free0 (_tmp2_); -#line 172 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp5_ = json_parser_new (); -#line 172 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_object_unref0 (self->parser); -#line 172 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self->parser = _tmp5_; -#line 157 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - return self; -#line 2526 "GalleryConnector.c" -} - - -PublishingGallery3BaseGalleryTransaction* -publishing_gallery3_base_gallery_transaction_new (PublishingGallery3Session* session, - const gchar* endpoint_url, - const gchar* item_path, - PublishingRESTSupportHttpMethod method) -{ -#line 157 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - return publishing_gallery3_base_gallery_transaction_construct (PUBLISHING_GALLERY3_TYPE_BASE_GALLERY_TRANSACTION, session, endpoint_url, item_path, method); -#line 2538 "GalleryConnector.c" -} - - -JsonNode* -publishing_gallery3_base_gallery_transaction_get_root_node (PublishingGallery3BaseGalleryTransaction* self, - GError** error) -{ - JsonNode* result = NULL; - gchar* json_object = NULL; - JsonNode* root_node = NULL; - gchar* _tmp0_; - gboolean _tmp1_ = FALSE; - const gchar* _tmp2_; - JsonParser* _tmp15_; - JsonNode* _tmp16_; - GError * _inner_error_ = NULL; -#line 176 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_return_val_if_fail (PUBLISHING_GALLERY3_IS_BASE_GALLERY_TRANSACTION (self), NULL); -#line 182 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp0_ = publishing_rest_support_transaction_get_response (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction)); -#line 182 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_free0 (json_object); -#line 182 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - json_object = _tmp0_; -#line 184 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp2_ = json_object; -#line 184 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - if (NULL == _tmp2_) { -#line 184 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp1_ = TRUE; -#line 2569 "GalleryConnector.c" - } else { - const gchar* _tmp3_; - gint _tmp4_; - gint _tmp5_; -#line 184 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp3_ = json_object; -#line 184 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp4_ = strlen (_tmp3_); -#line 184 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp5_ = _tmp4_; -#line 184 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp1_ = 0 == _tmp5_; -#line 2582 "GalleryConnector.c" - } -#line 184 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - if (_tmp1_) { -#line 2586 "GalleryConnector.c" - gchar* _tmp6_; - gchar* _tmp7_; - GError* _tmp8_; - GError* _tmp9_; -#line 185 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp6_ = publishing_rest_support_transaction_get_endpoint_url (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction)); -#line 185 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp7_ = _tmp6_; -#line 185 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp8_ = g_error_new (SPIT_PUBLISHING_PUBLISHING_ERROR, SPIT_PUBLISHING_PUBLISHING_ERROR_MALFORMED_RESPONSE, "No response data from %s", _tmp7_); -#line 185 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp9_ = _tmp8_; -#line 185 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_free0 (_tmp7_); -#line 185 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _inner_error_ = _tmp9_; -#line 185 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - if (_inner_error_->domain == SPIT_PUBLISHING_PUBLISHING_ERROR) { -#line 185 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_propagate_error (error, _inner_error_); -#line 185 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_free0 (json_object); -#line 185 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - return NULL; -#line 2611 "GalleryConnector.c" - } else { -#line 185 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_free0 (json_object); -#line 185 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 185 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_clear_error (&_inner_error_); -#line 185 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - return NULL; -#line 2621 "GalleryConnector.c" - } - } - { - JsonParser* _tmp10_; - const gchar* _tmp11_; -#line 189 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp10_ = self->parser; -#line 189 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp11_ = json_object; -#line 189 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - json_parser_load_from_data (_tmp10_, _tmp11_, (gssize) -1, &_inner_error_); -#line 189 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 2635 "GalleryConnector.c" - goto __catch0_g_error; - } - } - goto __finally0; - __catch0_g_error: - { - GError* e = NULL; - GError* _tmp12_; - const gchar* _tmp13_; - GError* _tmp14_; -#line 188 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - e = _inner_error_; -#line 188 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _inner_error_ = NULL; -#line 193 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_warning ("GalleryConnector.vala:193: ERROR: didn't load JSON data"); -#line 194 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - publishing_rest_support_transaction_set_is_executed (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), FALSE); -#line 195 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp12_ = e; -#line 195 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp13_ = _tmp12_->message; -#line 195 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp14_ = g_error_new_literal (SPIT_PUBLISHING_PUBLISHING_ERROR, SPIT_PUBLISHING_PUBLISHING_ERROR_PROTOCOL_ERROR, _tmp13_); -#line 195 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _inner_error_ = _tmp14_; -#line 195 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_error_free0 (e); -#line 2664 "GalleryConnector.c" - goto __finally0; - } - __finally0: -#line 188 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 188 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - if (_inner_error_->domain == SPIT_PUBLISHING_PUBLISHING_ERROR) { -#line 188 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_propagate_error (error, _inner_error_); -#line 188 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_free0 (json_object); -#line 188 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - return NULL; -#line 2678 "GalleryConnector.c" - } else { -#line 188 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_free0 (json_object); -#line 188 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 188 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_clear_error (&_inner_error_); -#line 188 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - return NULL; -#line 2688 "GalleryConnector.c" - } - } -#line 198 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp15_ = self->parser; -#line 198 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp16_ = json_parser_get_root (_tmp15_); -#line 198 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - root_node = _tmp16_; -#line 199 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - if (json_node_is_null (root_node)) { -#line 2699 "GalleryConnector.c" - GError* _tmp17_; -#line 200 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp17_ = g_error_new_literal (SPIT_PUBLISHING_PUBLISHING_ERROR, SPIT_PUBLISHING_PUBLISHING_ERROR_MALFORMED_RESPONSE, "Root node is null, doesn't appear to be JSON data"); -#line 200 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _inner_error_ = _tmp17_; -#line 200 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - if (_inner_error_->domain == SPIT_PUBLISHING_PUBLISHING_ERROR) { -#line 200 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_propagate_error (error, _inner_error_); -#line 200 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_free0 (json_object); -#line 200 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - return NULL; -#line 2713 "GalleryConnector.c" - } else { -#line 200 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_free0 (json_object); -#line 200 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 200 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_clear_error (&_inner_error_); -#line 200 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - return NULL; -#line 2723 "GalleryConnector.c" - } - } -#line 203 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - result = root_node; -#line 203 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_free0 (json_object); -#line 203 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - return result; -#line 2732 "GalleryConnector.c" -} - - -static void -publishing_gallery3_base_gallery_transaction_class_init (PublishingGallery3BaseGalleryTransactionClass * klass) -{ -#line 151 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - publishing_gallery3_base_gallery_transaction_parent_class = g_type_class_peek_parent (klass); -#line 151 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - ((PublishingRESTSupportTransactionClass *) klass)->finalize = publishing_gallery3_base_gallery_transaction_finalize; -#line 2743 "GalleryConnector.c" -} - - -static void -publishing_gallery3_base_gallery_transaction_instance_init (PublishingGallery3BaseGalleryTransaction * self) -{ -} - - -static void -publishing_gallery3_base_gallery_transaction_finalize (PublishingRESTSupportTransaction * obj) -{ - PublishingGallery3BaseGalleryTransaction * self; -#line 151 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, PUBLISHING_GALLERY3_TYPE_BASE_GALLERY_TRANSACTION, PublishingGallery3BaseGalleryTransaction); -#line 154 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_object_unref0 (self->parser); -#line 151 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - PUBLISHING_REST_SUPPORT_TRANSACTION_CLASS (publishing_gallery3_base_gallery_transaction_parent_class)->finalize (obj); -#line 2763 "GalleryConnector.c" -} - - -GType -publishing_gallery3_base_gallery_transaction_get_type (void) -{ - static volatile gsize publishing_gallery3_base_gallery_transaction_type_id__volatile = 0; - if (g_once_init_enter (&publishing_gallery3_base_gallery_transaction_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (PublishingGallery3BaseGalleryTransactionClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) publishing_gallery3_base_gallery_transaction_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PublishingGallery3BaseGalleryTransaction), 0, (GInstanceInitFunc) publishing_gallery3_base_gallery_transaction_instance_init, NULL }; - GType publishing_gallery3_base_gallery_transaction_type_id; - publishing_gallery3_base_gallery_transaction_type_id = g_type_register_static (PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, "PublishingGallery3BaseGalleryTransaction", &g_define_type_info, 0); - g_once_init_leave (&publishing_gallery3_base_gallery_transaction_type_id__volatile, publishing_gallery3_base_gallery_transaction_type_id); - } - return publishing_gallery3_base_gallery_transaction_type_id__volatile; -} - - -PublishingGallery3KeyFetchTransaction* -publishing_gallery3_key_fetch_transaction_construct (GType object_type, - PublishingGallery3Session* session, - const gchar* url, - const gchar* username, - const gchar* password) -{ - PublishingGallery3KeyFetchTransaction* self = NULL; -#line 216 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_return_val_if_fail (PUBLISHING_GALLERY3_IS_SESSION (session), NULL); -#line 216 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_return_val_if_fail (url != NULL, NULL); -#line 216 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_return_val_if_fail (username != NULL, NULL); -#line 216 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_return_val_if_fail (password != NULL, NULL); -#line 218 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self = (PublishingGallery3KeyFetchTransaction*) publishing_gallery3_base_gallery_transaction_construct (object_type, session, url, "", PUBLISHING_REST_SUPPORT_HTTP_METHOD_POST); -#line 219 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - publishing_rest_support_transaction_add_argument (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "user", username); -#line 220 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - publishing_rest_support_transaction_add_argument (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "password", password); -#line 216 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - return self; -#line 2805 "GalleryConnector.c" -} - - -PublishingGallery3KeyFetchTransaction* -publishing_gallery3_key_fetch_transaction_new (PublishingGallery3Session* session, - const gchar* url, - const gchar* username, - const gchar* password) -{ -#line 216 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - return publishing_gallery3_key_fetch_transaction_construct (PUBLISHING_GALLERY3_TYPE_KEY_FETCH_TRANSACTION, session, url, username, password); -#line 2817 "GalleryConnector.c" -} - - -static gchar* -string_slice (const gchar* self, - glong start, - glong end) -{ - gchar* result = NULL; - glong string_length = 0L; - gint _tmp0_; - gint _tmp1_; - gboolean _tmp4_ = FALSE; - gboolean _tmp6_ = FALSE; - gchar* _tmp8_; -#line 1369 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - g_return_val_if_fail (self != NULL, NULL); -#line 1370 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp0_ = strlen (self); -#line 1370 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp1_ = _tmp0_; -#line 1370 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - string_length = (glong) _tmp1_; -#line 1371 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - if (start < ((glong) 0)) { -#line 2843 "GalleryConnector.c" - glong _tmp2_; -#line 1372 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp2_ = string_length; -#line 1372 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - start = _tmp2_ + start; -#line 2849 "GalleryConnector.c" - } -#line 1374 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - if (end < ((glong) 0)) { -#line 2853 "GalleryConnector.c" - glong _tmp3_; -#line 1375 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp3_ = string_length; -#line 1375 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - end = _tmp3_ + end; -#line 2859 "GalleryConnector.c" - } -#line 1377 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - if (start >= ((glong) 0)) { -#line 2863 "GalleryConnector.c" - glong _tmp5_; -#line 1377 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp5_ = string_length; -#line 1377 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp4_ = start <= _tmp5_; -#line 2869 "GalleryConnector.c" - } else { -#line 1377 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp4_ = FALSE; -#line 2873 "GalleryConnector.c" - } -#line 1377 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - g_return_val_if_fail (_tmp4_, NULL); -#line 1378 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - if (end >= ((glong) 0)) { -#line 2879 "GalleryConnector.c" - glong _tmp7_; -#line 1378 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp7_ = string_length; -#line 1378 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp6_ = end <= _tmp7_; -#line 2885 "GalleryConnector.c" - } else { -#line 1378 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp6_ = FALSE; -#line 2889 "GalleryConnector.c" - } -#line 1378 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - g_return_val_if_fail (_tmp6_, NULL); -#line 1379 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - g_return_val_if_fail (start <= end, NULL); -#line 1380 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp8_ = g_strndup (((gchar*) self) + start, (gsize) (end - start)); -#line 1380 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - result = _tmp8_; -#line 1380 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - return result; -#line 2901 "GalleryConnector.c" -} - - -gchar* -publishing_gallery3_key_fetch_transaction_get_key (PublishingGallery3KeyFetchTransaction* self) -{ - gchar* result = NULL; - const gchar* _tmp0_; - gchar* _tmp3_; - gboolean _tmp4_ = FALSE; - gboolean _tmp5_ = FALSE; - const gchar* _tmp6_; - const gchar* _tmp14_; - gchar* _tmp15_; - const gchar* _tmp16_; - gchar* _tmp17_; -#line 223 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_return_val_if_fail (PUBLISHING_GALLERY3_IS_KEY_FETCH_TRANSACTION (self), NULL); -#line 225 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp0_ = self->priv->key; -#line 225 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - if (g_strcmp0 (_tmp0_, "") != 0) { -#line 2924 "GalleryConnector.c" - const gchar* _tmp1_; - gchar* _tmp2_; -#line 226 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp1_ = self->priv->key; -#line 226 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp2_ = g_strdup (_tmp1_); -#line 226 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - result = _tmp2_; -#line 226 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - return result; -#line 2935 "GalleryConnector.c" - } -#line 228 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp3_ = publishing_rest_support_transaction_get_response (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction)); -#line 228 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_free0 (self->priv->key); -#line 228 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self->priv->key = _tmp3_; -#line 231 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp6_ = self->priv->key; -#line 231 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - if (NULL == _tmp6_) { -#line 231 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp5_ = TRUE; -#line 2949 "GalleryConnector.c" - } else { - const gchar* _tmp7_; -#line 231 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp7_ = self->priv->key; -#line 231 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp5_ = g_strcmp0 ("", _tmp7_) == 0; -#line 2956 "GalleryConnector.c" - } -#line 231 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - if (_tmp5_) { -#line 231 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp4_ = TRUE; -#line 2962 "GalleryConnector.c" - } else { - const gchar* _tmp8_; - gint _tmp9_; - gint _tmp10_; -#line 231 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp8_ = self->priv->key; -#line 231 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp9_ = strlen (_tmp8_); -#line 231 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp10_ = _tmp9_; -#line 231 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp4_ = 0 == _tmp10_; -#line 2975 "GalleryConnector.c" - } -#line 231 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - if (_tmp4_) { -#line 2979 "GalleryConnector.c" - gchar* _tmp11_; - gchar* _tmp12_; - gchar* _tmp13_; -#line 232 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp11_ = publishing_rest_support_transaction_get_endpoint_url (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction)); -#line 232 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp12_ = _tmp11_; -#line 232 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_warning ("GalleryConnector.vala:232: No response data from \"%s\"", _tmp12_); -#line 232 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_free0 (_tmp12_); -#line 233 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp13_ = g_strdup (""); -#line 233 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - result = _tmp13_; -#line 233 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - return result; -#line 2997 "GalleryConnector.c" - } -#line 237 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp14_ = self->priv->key; -#line 237 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp15_ = string_slice (_tmp14_, (glong) 1, (glong) -1); -#line 237 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_free0 (self->priv->key); -#line 237 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self->priv->key = _tmp15_; -#line 239 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp16_ = self->priv->key; -#line 239 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp17_ = g_strdup (_tmp16_); -#line 239 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - result = _tmp17_; -#line 239 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - return result; -#line 3015 "GalleryConnector.c" -} - - -static void -publishing_gallery3_key_fetch_transaction_class_init (PublishingGallery3KeyFetchTransactionClass * klass) -{ -#line 209 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - publishing_gallery3_key_fetch_transaction_parent_class = g_type_class_peek_parent (klass); -#line 209 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - ((PublishingRESTSupportTransactionClass *) klass)->finalize = publishing_gallery3_key_fetch_transaction_finalize; -#line 209 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_type_class_add_private (klass, sizeof (PublishingGallery3KeyFetchTransactionPrivate)); -#line 3028 "GalleryConnector.c" -} - - -static void -publishing_gallery3_key_fetch_transaction_instance_init (PublishingGallery3KeyFetchTransaction * self) -{ - gchar* _tmp0_; -#line 209 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self->priv = PUBLISHING_GALLERY3_KEY_FETCH_TRANSACTION_GET_PRIVATE (self); -#line 211 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp0_ = g_strdup (""); -#line 211 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self->priv->key = _tmp0_; -#line 3042 "GalleryConnector.c" -} - - -static void -publishing_gallery3_key_fetch_transaction_finalize (PublishingRESTSupportTransaction * obj) -{ - PublishingGallery3KeyFetchTransaction * self; -#line 209 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, PUBLISHING_GALLERY3_TYPE_KEY_FETCH_TRANSACTION, PublishingGallery3KeyFetchTransaction); -#line 211 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_free0 (self->priv->key); -#line 209 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - PUBLISHING_REST_SUPPORT_TRANSACTION_CLASS (publishing_gallery3_key_fetch_transaction_parent_class)->finalize (obj); -#line 3056 "GalleryConnector.c" -} - - -GType -publishing_gallery3_key_fetch_transaction_get_type (void) -{ - static volatile gsize publishing_gallery3_key_fetch_transaction_type_id__volatile = 0; - if (g_once_init_enter (&publishing_gallery3_key_fetch_transaction_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (PublishingGallery3KeyFetchTransactionClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) publishing_gallery3_key_fetch_transaction_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PublishingGallery3KeyFetchTransaction), 0, (GInstanceInitFunc) publishing_gallery3_key_fetch_transaction_instance_init, NULL }; - GType publishing_gallery3_key_fetch_transaction_type_id; - publishing_gallery3_key_fetch_transaction_type_id = g_type_register_static (PUBLISHING_GALLERY3_TYPE_BASE_GALLERY_TRANSACTION, "PublishingGallery3KeyFetchTransaction", &g_define_type_info, 0); - g_once_init_leave (&publishing_gallery3_key_fetch_transaction_type_id__volatile, publishing_gallery3_key_fetch_transaction_type_id); - } - return publishing_gallery3_key_fetch_transaction_type_id__volatile; -} - - -PublishingGallery3GalleryRequestTransaction* -publishing_gallery3_gallery_request_transaction_construct (GType object_type, - PublishingGallery3Session* session, - const gchar* item, - PublishingRESTSupportHttpMethod method) -{ - PublishingGallery3GalleryRequestTransaction* self = NULL; -#line 249 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_return_val_if_fail (PUBLISHING_GALLERY3_IS_SESSION (session), NULL); -#line 249 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_return_val_if_fail (item != NULL, NULL); -#line 253 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - if (!publishing_rest_support_session_is_authenticated (G_TYPE_CHECK_INSTANCE_CAST (session, PUBLISHING_REST_SUPPORT_TYPE_SESSION, PublishingRESTSupportSession))) { -#line 254 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_error ("GalleryConnector.vala:254: Not authenticated"); -#line 3089 "GalleryConnector.c" - } else { - const gchar* _tmp0_; - const gchar* _tmp1_; - const gchar* _tmp2_; - const gchar* _tmp3_; -#line 257 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp0_ = publishing_gallery3_session_get_url (session); -#line 257 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp1_ = _tmp0_; -#line 257 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self = (PublishingGallery3GalleryRequestTransaction*) publishing_gallery3_base_gallery_transaction_construct (object_type, session, _tmp1_, item, method); -#line 258 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp2_ = publishing_gallery3_session_get_key (session); -#line 258 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp3_ = _tmp2_; -#line 258 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - publishing_rest_support_transaction_add_header (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "X-Gallery-Request-Key", _tmp3_); -#line 259 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - publishing_rest_support_transaction_add_header (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "X-Gallery-Request-Method", "GET"); -#line 3109 "GalleryConnector.c" - } -#line 249 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - return self; -#line 3113 "GalleryConnector.c" -} - - -PublishingGallery3GalleryRequestTransaction* -publishing_gallery3_gallery_request_transaction_new (PublishingGallery3Session* session, - const gchar* item, - PublishingRESTSupportHttpMethod method) -{ -#line 249 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - return publishing_gallery3_gallery_request_transaction_construct (PUBLISHING_GALLERY3_TYPE_GALLERY_REQUEST_TRANSACTION, session, item, method); -#line 3124 "GalleryConnector.c" -} - - -static void -publishing_gallery3_gallery_request_transaction_class_init (PublishingGallery3GalleryRequestTransactionClass * klass) -{ -#line 244 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - publishing_gallery3_gallery_request_transaction_parent_class = g_type_class_peek_parent (klass); -#line 3133 "GalleryConnector.c" -} - - -static void -publishing_gallery3_gallery_request_transaction_instance_init (PublishingGallery3GalleryRequestTransaction * self) -{ -} - - -GType -publishing_gallery3_gallery_request_transaction_get_type (void) -{ - static volatile gsize publishing_gallery3_gallery_request_transaction_type_id__volatile = 0; - if (g_once_init_enter (&publishing_gallery3_gallery_request_transaction_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (PublishingGallery3GalleryRequestTransactionClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) publishing_gallery3_gallery_request_transaction_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PublishingGallery3GalleryRequestTransaction), 0, (GInstanceInitFunc) publishing_gallery3_gallery_request_transaction_instance_init, NULL }; - GType publishing_gallery3_gallery_request_transaction_type_id; - publishing_gallery3_gallery_request_transaction_type_id = g_type_register_static (PUBLISHING_GALLERY3_TYPE_BASE_GALLERY_TRANSACTION, "PublishingGallery3GalleryRequestTransaction", &g_define_type_info, 0); - g_once_init_leave (&publishing_gallery3_gallery_request_transaction_type_id__volatile, publishing_gallery3_gallery_request_transaction_type_id); - } - return publishing_gallery3_gallery_request_transaction_type_id__volatile; -} - - -PublishingGallery3GetAlbumURLsTransaction* -publishing_gallery3_get_album_ur_ls_transaction_construct (GType object_type, - PublishingGallery3Session* session) -{ - PublishingGallery3GetAlbumURLsTransaction* self = NULL; -#line 268 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_return_val_if_fail (PUBLISHING_GALLERY3_IS_SESSION (session), NULL); -#line 270 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self = (PublishingGallery3GetAlbumURLsTransaction*) publishing_gallery3_gallery_request_transaction_construct (object_type, session, "/item/1", PUBLISHING_REST_SUPPORT_HTTP_METHOD_GET); -#line 271 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - publishing_rest_support_transaction_add_argument (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "type", "album"); -#line 272 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - publishing_rest_support_transaction_add_argument (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "scope", "all"); -#line 268 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - return self; -#line 3172 "GalleryConnector.c" -} - - -PublishingGallery3GetAlbumURLsTransaction* -publishing_gallery3_get_album_ur_ls_transaction_new (PublishingGallery3Session* session) -{ -#line 268 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - return publishing_gallery3_get_album_ur_ls_transaction_construct (PUBLISHING_GALLERY3_TYPE_GET_ALBUM_UR_LS_TRANSACTION, session); -#line 3181 "GalleryConnector.c" -} - - -static void -_vala_array_add2 (gchar** * array, - int* length, - int* size, - gchar* value) -{ -#line 294 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - if ((*length) == (*size)) { -#line 294 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - *size = (*size) ? (2 * (*size)) : 4; -#line 294 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - *array = g_renew (gchar*, *array, (*size) + 1); -#line 3197 "GalleryConnector.c" - } -#line 294 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - (*array)[(*length)++] = value; -#line 294 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - (*array)[*length] = NULL; -#line 3203 "GalleryConnector.c" -} - - -gchar** -publishing_gallery3_get_album_ur_ls_transaction_get_album_urls (PublishingGallery3GetAlbumURLsTransaction* self, - int* result_length1) -{ - gchar** result = NULL; - JsonNode* root_node = NULL; - JsonArray* all_members = NULL; - JsonObject* _tmp2_; - JsonArray* _tmp3_; - gchar** member_urls = NULL; - gint member_urls_length1; - gint _member_urls_size_; - gchar** _tmp13_; - gint _tmp13__length1; - GError * _inner_error_ = NULL; -#line 276 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_return_val_if_fail (PUBLISHING_GALLERY3_IS_GET_ALBUM_UR_LS_TRANSACTION (self), NULL); -#line 3224 "GalleryConnector.c" - { - JsonNode* _tmp0_ = NULL; - JsonNode* _tmp1_; -#line 282 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp1_ = publishing_gallery3_base_gallery_transaction_get_root_node (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_GALLERY3_TYPE_BASE_GALLERY_TRANSACTION, PublishingGallery3BaseGalleryTransaction), &_inner_error_); -#line 282 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp0_ = _tmp1_; -#line 282 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 282 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - if (_inner_error_->domain == SPIT_PUBLISHING_PUBLISHING_ERROR) { -#line 3236 "GalleryConnector.c" - goto __catch1_spit_publishing_publishing_error; - } -#line 282 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 282 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_clear_error (&_inner_error_); -#line 282 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - return NULL; -#line 3245 "GalleryConnector.c" - } -#line 282 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - root_node = _tmp0_; -#line 3249 "GalleryConnector.c" - } - goto __finally1; - __catch1_spit_publishing_publishing_error: - { - GError* e = NULL; -#line 281 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - e = _inner_error_; -#line 281 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _inner_error_ = NULL; -#line 285 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_error ("GalleryConnector.vala:285: Could not get root node"); -#line 281 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_error_free0 (e); -#line 3263 "GalleryConnector.c" - } - __finally1: -#line 281 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 281 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 281 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_clear_error (&_inner_error_); -#line 281 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - return NULL; -#line 3274 "GalleryConnector.c" - } -#line 288 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp2_ = json_node_get_object (root_node); -#line 288 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp3_ = json_object_get_array_member (_tmp2_, "members"); -#line 288 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - all_members = _tmp3_; -#line 291 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - member_urls = NULL; -#line 291 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - member_urls_length1 = 0; -#line 291 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _member_urls_size_ = member_urls_length1; -#line 3288 "GalleryConnector.c" - { - guint i = 0U; -#line 293 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - i = (guint) 0; -#line 3293 "GalleryConnector.c" - { - gboolean _tmp4_ = FALSE; -#line 293 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp4_ = TRUE; -#line 293 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - while (TRUE) { -#line 3300 "GalleryConnector.c" - guint _tmp6_; - JsonArray* _tmp7_; - gchar** _tmp8_; - gint _tmp8__length1; - JsonArray* _tmp9_; - guint _tmp10_; - const gchar* _tmp11_; - gchar* _tmp12_; -#line 293 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - if (!_tmp4_) { -#line 3311 "GalleryConnector.c" - guint _tmp5_; -#line 293 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp5_ = i; -#line 293 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - i = _tmp5_ + 1; -#line 3317 "GalleryConnector.c" - } -#line 293 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp4_ = FALSE; -#line 293 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp6_ = i; -#line 293 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp7_ = all_members; -#line 293 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - if (!(_tmp6_ <= (json_array_get_length (_tmp7_) - 1))) { -#line 293 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - break; -#line 3329 "GalleryConnector.c" - } -#line 294 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp8_ = member_urls; -#line 294 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp8__length1 = member_urls_length1; -#line 294 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp9_ = all_members; -#line 294 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp10_ = i; -#line 294 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp11_ = json_array_get_string_element (_tmp9_, _tmp10_); -#line 294 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp12_ = g_strdup (_tmp11_); -#line 294 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _vala_array_add2 (&member_urls, &member_urls_length1, &_member_urls_size_, _tmp12_); -#line 3345 "GalleryConnector.c" - } - } - } -#line 296 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp13_ = member_urls; -#line 296 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp13__length1 = member_urls_length1; -#line 296 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - if (result_length1) { -#line 296 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - *result_length1 = _tmp13__length1; -#line 3357 "GalleryConnector.c" - } -#line 296 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - result = _tmp13_; -#line 296 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - return result; -#line 3363 "GalleryConnector.c" -} - - -static void -publishing_gallery3_get_album_ur_ls_transaction_class_init (PublishingGallery3GetAlbumURLsTransactionClass * klass) -{ -#line 266 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - publishing_gallery3_get_album_ur_ls_transaction_parent_class = g_type_class_peek_parent (klass); -#line 3372 "GalleryConnector.c" -} - - -static void -publishing_gallery3_get_album_ur_ls_transaction_instance_init (PublishingGallery3GetAlbumURLsTransaction * self) -{ -} - - -GType -publishing_gallery3_get_album_ur_ls_transaction_get_type (void) -{ - static volatile gsize publishing_gallery3_get_album_ur_ls_transaction_type_id__volatile = 0; - if (g_once_init_enter (&publishing_gallery3_get_album_ur_ls_transaction_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (PublishingGallery3GetAlbumURLsTransactionClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) publishing_gallery3_get_album_ur_ls_transaction_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PublishingGallery3GetAlbumURLsTransaction), 0, (GInstanceInitFunc) publishing_gallery3_get_album_ur_ls_transaction_instance_init, NULL }; - GType publishing_gallery3_get_album_ur_ls_transaction_type_id; - publishing_gallery3_get_album_ur_ls_transaction_type_id = g_type_register_static (PUBLISHING_GALLERY3_TYPE_GALLERY_REQUEST_TRANSACTION, "PublishingGallery3GetAlbumURLsTransaction", &g_define_type_info, 0); - g_once_init_leave (&publishing_gallery3_get_album_ur_ls_transaction_type_id__volatile, publishing_gallery3_get_album_ur_ls_transaction_type_id); - } - return publishing_gallery3_get_album_ur_ls_transaction_type_id__volatile; -} - - -static void -_vala_array_add3 (gchar** * array, - int* length, - int* size, - gchar* value) -{ -#line 340 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - if ((*length) == (*size)) { -#line 340 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - *size = (*size) ? (2 * (*size)) : 4; -#line 340 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - *array = g_renew (gchar*, *array, (*size) + 1); -#line 3408 "GalleryConnector.c" - } -#line 340 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - (*array)[(*length)++] = value; -#line 340 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - (*array)[*length] = NULL; -#line 3414 "GalleryConnector.c" -} - - -static gchar* -_vala_g_strjoinv (const gchar* separator, - gchar** str_array, - int str_array_length1) -{ - gchar* result = NULL; - 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 3429 "GalleryConnector.c" - } -#line 1095 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - if (str_array != NULL) { -#line 3433 "GalleryConnector.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 3439 "GalleryConnector.c" - } else { - gboolean _tmp2_ = FALSE; -#line 1095 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - if (str_array_length1 == -1) { -#line 3444 "GalleryConnector.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 3450 "GalleryConnector.c" - } else { -#line 1095 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp2_ = FALSE; -#line 3454 "GalleryConnector.c" - } -#line 1095 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp1_ = _tmp2_; -#line 3458 "GalleryConnector.c" - } -#line 1095 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp0_ = _tmp1_; -#line 3462 "GalleryConnector.c" - } else { -#line 1095 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp0_ = FALSE; -#line 3466 "GalleryConnector.c" - } -#line 1095 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - if (_tmp0_) { -#line 3470 "GalleryConnector.c" - gint i = 0; - gsize len = 0UL; - gint _tmp20_; - gint _tmp22_; - gint _tmp23_; - gsize _tmp24_; - gint _tmp25_; - gint _tmp26_; - gint _tmp27_; - const gchar* res = NULL; - gsize _tmp28_; - void* _tmp29_; - void* ptr = NULL; - 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 3490 "GalleryConnector.c" - { - gboolean _tmp4_ = FALSE; -#line 1098 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - i = 0; -#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 3499 "GalleryConnector.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 3508 "GalleryConnector.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 3514 "GalleryConnector.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 3520 "GalleryConnector.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 3526 "GalleryConnector.c" - } else { -#line 1098 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp7_ = FALSE; -#line 3530 "GalleryConnector.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 3536 "GalleryConnector.c" - } else { - gboolean _tmp9_ = FALSE; -#line 1098 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - if (str_array_length1 == -1) { -#line 3541 "GalleryConnector.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 3550 "GalleryConnector.c" - } else { -#line 1098 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp9_ = FALSE; -#line 3554 "GalleryConnector.c" - } -#line 1098 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp6_ = _tmp9_; -#line 3558 "GalleryConnector.c" - } -#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 3564 "GalleryConnector.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 3572 "GalleryConnector.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 3587 "GalleryConnector.c" - } else { -#line 1099 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp12_ = 0; -#line 3591 "GalleryConnector.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 3597 "GalleryConnector.c" - } - } -#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 3604 "GalleryConnector.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 3612 "GalleryConnector.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 3644 "GalleryConnector.c" - { - gboolean _tmp33_ = FALSE; -#line 1109 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - i = 1; -#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 3653 "GalleryConnector.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 3664 "GalleryConnector.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 3670 "GalleryConnector.c" - } -#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 3680 "GalleryConnector.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 3694 "GalleryConnector.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 3703 "GalleryConnector.c" - } else { -#line 1111 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp38_ = ""; -#line 3707 "GalleryConnector.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 3715 "GalleryConnector.c" - } - } -#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 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 3726 "GalleryConnector.c" - } else { - 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 3735 "GalleryConnector.c" - } -} - - -PublishingGallery3GetAlbumsTransaction* -publishing_gallery3_get_albums_transaction_construct (GType object_type, - PublishingGallery3Session* session, - gchar** _album_urls, - int _album_urls_length1, - guint start) -{ - PublishingGallery3GetAlbumsTransaction* self = NULL; - gchar* url_list = NULL; - gchar* _tmp0_; - gchar** my_album_urls = NULL; - gint my_album_urls_length1; - gint _my_album_urls_size_; - gchar* endpoint_url = NULL; - gchar* _tmp1_; - gint _tmp2_ = 0; - const gchar* _tmp3_; - gint url_length = 0; - gint _tmp7_; - gchar** _tmp8_; - gint _tmp8__length1; - gchar** _tmp9_; - gint _tmp9__length1; - const gchar* _tmp46_; - gchar* _tmp47_; - const gchar* _tmp48_; -#line 312 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_return_val_if_fail (PUBLISHING_GALLERY3_IS_SESSION (session), NULL); -#line 315 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self = (PublishingGallery3GetAlbumsTransaction*) publishing_gallery3_gallery_request_transaction_construct (object_type, session, "/items", PUBLISHING_REST_SUPPORT_HTTP_METHOD_GET); -#line 316 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - publishing_rest_support_transaction_add_argument (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "scope", "all"); -#line 319 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - publishing_gallery3_get_albums_transaction_set_album_urls (self, _album_urls, _album_urls_length1); -#line 328 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp0_ = g_strdup ("["); -#line 328 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - url_list = _tmp0_; -#line 329 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - my_album_urls = NULL; -#line 329 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - my_album_urls_length1 = 0; -#line 329 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _my_album_urls_size_ = my_album_urls_length1; -#line 330 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp1_ = publishing_rest_support_session_get_endpoint_url (G_TYPE_CHECK_INSTANCE_CAST (session, PUBLISHING_REST_SUPPORT_TYPE_SESSION, PublishingRESTSupportSession)); -#line 330 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - endpoint_url = _tmp1_; -#line 331 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp3_ = endpoint_url; -#line 331 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - if (NULL != _tmp3_) { -#line 3792 "GalleryConnector.c" - const gchar* _tmp4_; - gint _tmp5_; - gint _tmp6_; -#line 332 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp4_ = endpoint_url; -#line 332 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp5_ = strlen (_tmp4_); -#line 332 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp6_ = _tmp5_; -#line 332 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp2_ = _tmp6_; -#line 3804 "GalleryConnector.c" - } else { -#line 332 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp2_ = 0; -#line 3808 "GalleryConnector.c" - } -#line 331 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - url_length = _tmp2_; -#line 333 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp7_ = url_length; -#line 333 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - url_length = _tmp7_ + 18; -#line 336 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp8_ = publishing_gallery3_get_albums_transaction_get_album_urls (self, &_tmp8__length1); -#line 336 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp9_ = _tmp8_; -#line 336 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp9__length1 = _tmp8__length1; -#line 336 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - if (start <= ((guint) (_tmp9__length1 - 1))) { -#line 3824 "GalleryConnector.c" - const gchar* _tmp38_; - gchar** _tmp39_; - gint _tmp39__length1; - gchar* _tmp40_; - gchar* _tmp41_; - gchar* _tmp42_; - guint _tmp43_; - gchar** _tmp44_; - gint _tmp44__length1; - gchar** _tmp45_; - gint _tmp45__length1; -#line 338 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - publishing_gallery3_get_albums_transaction_set_urls_sent (self, start); -#line 3838 "GalleryConnector.c" - { - gboolean _tmp10_ = FALSE; -#line 339 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp10_ = TRUE; -#line 339 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - while (TRUE) { -#line 3845 "GalleryConnector.c" - gchar** _tmp22_; - gint _tmp22__length1; - gchar** _tmp23_; - gint _tmp23__length1; - gchar** _tmp24_; - gint _tmp24__length1; - guint _tmp25_; - const gchar* _tmp26_; - gchar* _tmp27_; - gchar* _tmp28_; - gchar* _tmp29_; - gint _tmp30_; - gchar** _tmp31_; - gint _tmp31__length1; - gchar** _tmp32_; - gint _tmp32__length1; - guint _tmp33_; - const gchar* _tmp34_; - gint _tmp35_; - gint _tmp36_; - guint _tmp37_; -#line 339 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - if (!_tmp10_) { -#line 3869 "GalleryConnector.c" - gboolean _tmp11_ = FALSE; - guint _tmp12_; - gchar** _tmp13_; - gint _tmp13__length1; - gchar** _tmp14_; - gint _tmp14__length1; -#line 344 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp12_ = self->priv->_urls_sent; -#line 344 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp13_ = publishing_gallery3_get_albums_transaction_get_album_urls (self, &_tmp13__length1); -#line 344 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp14_ = _tmp13_; -#line 344 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp14__length1 = _tmp13__length1; -#line 344 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - if (_tmp12_ <= ((guint) (_tmp14__length1 - 1))) { -#line 3886 "GalleryConnector.c" - gint _tmp15_; - gchar** _tmp16_; - gint _tmp16__length1; - gchar** _tmp17_; - gint _tmp17__length1; - guint _tmp18_; - const gchar* _tmp19_; - gint _tmp20_; - gint _tmp21_; -#line 345 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp15_ = url_length; -#line 345 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp16_ = publishing_gallery3_get_albums_transaction_get_album_urls (self, &_tmp16__length1); -#line 345 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp17_ = _tmp16_; -#line 345 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp17__length1 = _tmp16__length1; -#line 345 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp18_ = self->priv->_urls_sent; -#line 345 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp19_ = _tmp17_[_tmp18_]; -#line 345 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp20_ = strlen (_tmp19_); -#line 345 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp21_ = _tmp20_; -#line 345 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp11_ = ((_tmp15_ + _tmp21_) + 3) <= 255; -#line 3914 "GalleryConnector.c" - } else { -#line 344 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp11_ = FALSE; -#line 3918 "GalleryConnector.c" - } -#line 344 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - if (!_tmp11_) { -#line 344 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - break; -#line 3924 "GalleryConnector.c" - } - } -#line 339 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp10_ = FALSE; -#line 340 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp22_ = my_album_urls; -#line 340 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp22__length1 = my_album_urls_length1; -#line 340 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp23_ = publishing_gallery3_get_albums_transaction_get_album_urls (self, &_tmp23__length1); -#line 340 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp24_ = _tmp23_; -#line 340 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp24__length1 = _tmp23__length1; -#line 340 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp25_ = self->priv->_urls_sent; -#line 340 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp26_ = _tmp24_[_tmp25_]; -#line 340 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp27_ = g_strconcat ("\"", _tmp26_, NULL); -#line 340 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp28_ = _tmp27_; -#line 340 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp29_ = g_strconcat (_tmp28_, "\"", NULL); -#line 340 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _vala_array_add3 (&my_album_urls, &my_album_urls_length1, &_my_album_urls_size_, _tmp29_); -#line 340 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_free0 (_tmp28_); -#line 342 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp30_ = url_length; -#line 342 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp31_ = publishing_gallery3_get_albums_transaction_get_album_urls (self, &_tmp31__length1); -#line 342 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp32_ = _tmp31_; -#line 342 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp32__length1 = _tmp31__length1; -#line 342 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp33_ = self->priv->_urls_sent; -#line 342 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp34_ = _tmp32_[_tmp33_]; -#line 342 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp35_ = strlen (_tmp34_); -#line 342 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp36_ = _tmp35_; -#line 342 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - url_length = _tmp30_ + (_tmp36_ + 3); -#line 343 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp37_ = self->priv->_urls_sent; -#line 343 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - publishing_gallery3_get_albums_transaction_set_urls_sent (self, _tmp37_ + 1); -#line 3975 "GalleryConnector.c" - } - } -#line 347 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp38_ = url_list; -#line 347 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp39_ = my_album_urls; -#line 347 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp39__length1 = my_album_urls_length1; -#line 347 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp40_ = _vala_g_strjoinv (",", _tmp39_, _tmp39__length1); -#line 347 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp41_ = _tmp40_; -#line 347 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp42_ = g_strconcat (_tmp38_, _tmp41_, NULL); -#line 347 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_free0 (url_list); -#line 347 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - url_list = _tmp42_; -#line 347 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_free0 (_tmp41_); -#line 349 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp43_ = self->priv->_urls_sent; -#line 349 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp44_ = publishing_gallery3_get_albums_transaction_get_album_urls (self, &_tmp44__length1); -#line 349 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp45_ = _tmp44_; -#line 349 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp45__length1 = _tmp44__length1; -#line 349 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - publishing_gallery3_get_albums_transaction_set_more_urls (self, _tmp43_ <= ((guint) (_tmp45__length1 - 1))); -#line 4006 "GalleryConnector.c" - } -#line 352 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp46_ = url_list; -#line 352 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp47_ = g_strconcat (_tmp46_, "]", NULL); -#line 352 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_free0 (url_list); -#line 352 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - url_list = _tmp47_; -#line 354 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp48_ = url_list; -#line 354 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - publishing_rest_support_transaction_add_argument (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "urls", _tmp48_); -#line 312 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_free0 (endpoint_url); -#line 312 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - my_album_urls = (_vala_array_free (my_album_urls, my_album_urls_length1, (GDestroyNotify) g_free), NULL); -#line 312 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_free0 (url_list); -#line 312 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - return self; -#line 4028 "GalleryConnector.c" -} - - -PublishingGallery3GetAlbumsTransaction* -publishing_gallery3_get_albums_transaction_new (PublishingGallery3Session* session, - gchar** _album_urls, - int _album_urls_length1, - guint start) -{ -#line 312 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - return publishing_gallery3_get_albums_transaction_construct (PUBLISHING_GALLERY3_TYPE_GET_ALBUMS_TRANSACTION, session, _album_urls, _album_urls_length1, start); -#line 4040 "GalleryConnector.c" -} - - -static gpointer -_publishing_gallery3_album_ref0 (gpointer self) -{ -#line 371 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - return self ? publishing_gallery3_album_ref (self) : NULL; -#line 4049 "GalleryConnector.c" -} - - -static void -_vala_array_add4 (PublishingGallery3Album** * array, - int* length, - int* size, - PublishingGallery3Album* value) -{ -#line 371 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - if ((*length) == (*size)) { -#line 371 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - *size = (*size) ? (2 * (*size)) : 4; -#line 371 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - *array = g_renew (PublishingGallery3Album*, *array, (*size) + 1); -#line 4065 "GalleryConnector.c" - } -#line 371 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - (*array)[(*length)++] = value; -#line 371 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - (*array)[*length] = NULL; -#line 4071 "GalleryConnector.c" -} - - -static const gchar* -string_to_string (const gchar* self) -{ - const gchar* result = NULL; -#line 1456 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - g_return_val_if_fail (self != NULL, NULL); -#line 1457 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - result = self; -#line 1457 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - return result; -#line 4085 "GalleryConnector.c" -} - - -PublishingGallery3Album** -publishing_gallery3_get_albums_transaction_get_albums (PublishingGallery3GetAlbumsTransaction* self, - int* result_length1, - GError** error) -{ - PublishingGallery3Album** result = NULL; - PublishingGallery3Album** albums = NULL; - gint albums_length1; - gint _albums_size_; - PublishingGallery3Album* tmp_album = NULL; - JsonNode* root_node = NULL; - JsonNode* _tmp0_; - JsonArray* members = NULL; - JsonArray* _tmp1_; - PublishingGallery3Album** _tmp22_; - gint _tmp22__length1; - GError * _inner_error_ = NULL; -#line 358 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_return_val_if_fail (PUBLISHING_GALLERY3_IS_GET_ALBUMS_TRANSACTION (self), NULL); -#line 361 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - albums = NULL; -#line 361 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - albums_length1 = 0; -#line 361 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _albums_size_ = albums_length1; -#line 363 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp0_ = publishing_gallery3_base_gallery_transaction_get_root_node (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_GALLERY3_TYPE_BASE_GALLERY_TRANSACTION, PublishingGallery3BaseGalleryTransaction), &_inner_error_); -#line 363 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - root_node = _tmp0_; -#line 363 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 363 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - if (_inner_error_->domain == SPIT_PUBLISHING_PUBLISHING_ERROR) { -#line 363 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_propagate_error (error, _inner_error_); -#line 363 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _publishing_gallery3_album_unref0 (tmp_album); -#line 363 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - albums = (_vala_array_free (albums, albums_length1, (GDestroyNotify) publishing_gallery3_album_unref), NULL); -#line 363 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - return NULL; -#line 4130 "GalleryConnector.c" - } else { -#line 363 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _publishing_gallery3_album_unref0 (tmp_album); -#line 363 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - albums = (_vala_array_free (albums, albums_length1, (GDestroyNotify) publishing_gallery3_album_unref), NULL); -#line 363 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 363 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_clear_error (&_inner_error_); -#line 363 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - return NULL; -#line 4142 "GalleryConnector.c" - } - } -#line 364 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp1_ = json_node_get_array (root_node); -#line 364 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - members = _tmp1_; -#line 4149 "GalleryConnector.c" - { - guint i = 0U; -#line 367 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - i = (guint) 0; -#line 4154 "GalleryConnector.c" - { - gboolean _tmp2_ = FALSE; -#line 367 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp2_ = TRUE; -#line 367 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - while (TRUE) { -#line 4161 "GalleryConnector.c" - guint _tmp4_; - JsonArray* _tmp5_; - JsonArray* _tmp6_; - guint _tmp7_; - JsonObject* _tmp8_; - PublishingGallery3Album* _tmp9_; - PublishingGallery3Album* _tmp10_; - gboolean _tmp11_; - gboolean _tmp12_; -#line 367 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - if (!_tmp2_) { -#line 4173 "GalleryConnector.c" - guint _tmp3_; -#line 367 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp3_ = i; -#line 367 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - i = _tmp3_ + 1; -#line 4179 "GalleryConnector.c" - } -#line 367 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp2_ = FALSE; -#line 367 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp4_ = i; -#line 367 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp5_ = members; -#line 367 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - if (!(_tmp4_ <= (json_array_get_length (_tmp5_) - 1))) { -#line 367 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - break; -#line 4191 "GalleryConnector.c" - } -#line 368 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp6_ = members; -#line 368 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp7_ = i; -#line 368 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp8_ = json_array_get_object_element (_tmp6_, _tmp7_); -#line 368 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp9_ = publishing_gallery3_album_new (_tmp8_); -#line 368 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _publishing_gallery3_album_unref0 (tmp_album); -#line 368 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - tmp_album = _tmp9_; -#line 370 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp10_ = tmp_album; -#line 370 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp11_ = publishing_gallery3_album_get_editable (_tmp10_); -#line 370 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp12_ = _tmp11_; -#line 370 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - if (_tmp12_) { -#line 4213 "GalleryConnector.c" - PublishingGallery3Album** _tmp13_; - gint _tmp13__length1; - PublishingGallery3Album* _tmp14_; - PublishingGallery3Album* _tmp15_; -#line 371 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp13_ = albums; -#line 371 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp13__length1 = albums_length1; -#line 371 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp14_ = tmp_album; -#line 371 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp15_ = _publishing_gallery3_album_ref0 (_tmp14_); -#line 371 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _vala_array_add4 (&albums, &albums_length1, &_albums_size_, _tmp15_); -#line 4228 "GalleryConnector.c" - } else { - PublishingGallery3Album* _tmp16_; - const gchar* _tmp17_; - const gchar* _tmp18_; - const gchar* _tmp19_; - gchar* _tmp20_; - gchar* _tmp21_; -#line 373 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp16_ = tmp_album; -#line 373 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp17_ = publishing_gallery3_album_get_title (_tmp16_); -#line 373 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp18_ = _tmp17_; -#line 373 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp19_ = string_to_string (_tmp18_); -#line 373 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp20_ = g_strconcat ("Album \"", _tmp19_, "\" is not editable", NULL); -#line 373 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp21_ = _tmp20_; -#line 373 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_warning ("GalleryConnector.vala:373: %s", _tmp21_); -#line 373 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_free0 (_tmp21_); -#line 4252 "GalleryConnector.c" - } - } - } - } -#line 376 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp22_ = albums; -#line 376 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp22__length1 = albums_length1; -#line 376 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - if (result_length1) { -#line 376 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - *result_length1 = _tmp22__length1; -#line 4265 "GalleryConnector.c" - } -#line 376 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - result = _tmp22_; -#line 376 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _publishing_gallery3_album_unref0 (tmp_album); -#line 376 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - return result; -#line 4273 "GalleryConnector.c" -} - - -gchar** -publishing_gallery3_get_albums_transaction_get_album_urls (PublishingGallery3GetAlbumsTransaction* self, - int* result_length1) -{ - gchar** result; - gchar** _tmp0_; - gint _tmp0__length1; - gchar** _tmp1_; - gint _tmp1__length1; -#line 306 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_return_val_if_fail (PUBLISHING_GALLERY3_IS_GET_ALBUMS_TRANSACTION (self), NULL); -#line 306 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp0_ = self->priv->_album_urls; -#line 306 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp0__length1 = self->priv->_album_urls_length1; -#line 306 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp1_ = _tmp0_; -#line 306 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp1__length1 = _tmp0__length1; -#line 306 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - if (result_length1) { -#line 306 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - *result_length1 = _tmp1__length1; -#line 4300 "GalleryConnector.c" - } -#line 306 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - result = _tmp1_; -#line 306 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - return result; -#line 4306 "GalleryConnector.c" -} - - -static gchar** -_vala_array_dup2 (gchar** self, - int length) -{ - gchar** result; - int i; -#line 306 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - result = g_new0 (gchar*, length + 1); -#line 306 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - for (i = 0; i < length; i++) { -#line 4320 "GalleryConnector.c" - gchar* _tmp0_; -#line 306 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp0_ = g_strdup (self[i]); -#line 306 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - result[i] = _tmp0_; -#line 4326 "GalleryConnector.c" - } -#line 306 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - return result; -#line 4330 "GalleryConnector.c" -} - - -static void -publishing_gallery3_get_albums_transaction_set_album_urls (PublishingGallery3GetAlbumsTransaction* self, - gchar** value, - int value_length1) -{ - gchar** _tmp0_; - gint _tmp0__length1; -#line 306 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_return_if_fail (PUBLISHING_GALLERY3_IS_GET_ALBUMS_TRANSACTION (self)); -#line 306 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp0_ = (value != NULL) ? _vala_array_dup2 (value, value_length1) : ((gpointer) value); -#line 306 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp0__length1 = value_length1; -#line 306 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self->priv->_album_urls = (_vala_array_free (self->priv->_album_urls, self->priv->_album_urls_length1, (GDestroyNotify) g_free), NULL); -#line 306 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self->priv->_album_urls = _tmp0_; -#line 306 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self->priv->_album_urls_length1 = _tmp0__length1; -#line 306 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self->priv->__album_urls_size_ = self->priv->_album_urls_length1; -#line 4355 "GalleryConnector.c" -} - - -guint -publishing_gallery3_get_albums_transaction_get_urls_sent (PublishingGallery3GetAlbumsTransaction* self) -{ - guint result; - guint _tmp0_; -#line 308 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_return_val_if_fail (PUBLISHING_GALLERY3_IS_GET_ALBUMS_TRANSACTION (self), 0U); -#line 308 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp0_ = self->priv->_urls_sent; -#line 308 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - result = _tmp0_; -#line 308 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - return result; -#line 4372 "GalleryConnector.c" -} - - -static void -publishing_gallery3_get_albums_transaction_set_urls_sent (PublishingGallery3GetAlbumsTransaction* self, - guint value) -{ -#line 308 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_return_if_fail (PUBLISHING_GALLERY3_IS_GET_ALBUMS_TRANSACTION (self)); -#line 308 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self->priv->_urls_sent = value; -#line 4384 "GalleryConnector.c" -} - - -gboolean -publishing_gallery3_get_albums_transaction_get_more_urls (PublishingGallery3GetAlbumsTransaction* self) -{ - gboolean result; - gboolean _tmp0_; -#line 310 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_return_val_if_fail (PUBLISHING_GALLERY3_IS_GET_ALBUMS_TRANSACTION (self), FALSE); -#line 310 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp0_ = self->priv->_more_urls; -#line 310 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - result = _tmp0_; -#line 310 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - return result; -#line 4401 "GalleryConnector.c" -} - - -static void -publishing_gallery3_get_albums_transaction_set_more_urls (PublishingGallery3GetAlbumsTransaction* self, - gboolean value) -{ -#line 310 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_return_if_fail (PUBLISHING_GALLERY3_IS_GET_ALBUMS_TRANSACTION (self)); -#line 310 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self->priv->_more_urls = value; -#line 4413 "GalleryConnector.c" -} - - -static void -publishing_gallery3_get_albums_transaction_class_init (PublishingGallery3GetAlbumsTransactionClass * klass) -{ -#line 302 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - publishing_gallery3_get_albums_transaction_parent_class = g_type_class_peek_parent (klass); -#line 302 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - ((PublishingRESTSupportTransactionClass *) klass)->finalize = publishing_gallery3_get_albums_transaction_finalize; -#line 302 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_type_class_add_private (klass, sizeof (PublishingGallery3GetAlbumsTransactionPrivate)); -#line 4426 "GalleryConnector.c" -} - - -static void -publishing_gallery3_get_albums_transaction_instance_init (PublishingGallery3GetAlbumsTransaction * self) -{ -#line 302 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self->priv = PUBLISHING_GALLERY3_GET_ALBUMS_TRANSACTION_GET_PRIVATE (self); -#line 306 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self->priv->_album_urls = NULL; -#line 306 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self->priv->_album_urls_length1 = 0; -#line 306 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self->priv->__album_urls_size_ = self->priv->_album_urls_length1; -#line 308 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self->priv->_urls_sent = (guint) 0; -#line 310 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self->priv->_more_urls = FALSE; -#line 4445 "GalleryConnector.c" -} - - -static void -publishing_gallery3_get_albums_transaction_finalize (PublishingRESTSupportTransaction * obj) -{ - PublishingGallery3GetAlbumsTransaction * self; -#line 302 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, PUBLISHING_GALLERY3_TYPE_GET_ALBUMS_TRANSACTION, PublishingGallery3GetAlbumsTransaction); -#line 306 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self->priv->_album_urls = (_vala_array_free (self->priv->_album_urls, self->priv->_album_urls_length1, (GDestroyNotify) g_free), NULL); -#line 302 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - PUBLISHING_REST_SUPPORT_TRANSACTION_CLASS (publishing_gallery3_get_albums_transaction_parent_class)->finalize (obj); -#line 4459 "GalleryConnector.c" -} - - -GType -publishing_gallery3_get_albums_transaction_get_type (void) -{ - static volatile gsize publishing_gallery3_get_albums_transaction_type_id__volatile = 0; - if (g_once_init_enter (&publishing_gallery3_get_albums_transaction_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (PublishingGallery3GetAlbumsTransactionClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) publishing_gallery3_get_albums_transaction_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PublishingGallery3GetAlbumsTransaction), 0, (GInstanceInitFunc) publishing_gallery3_get_albums_transaction_instance_init, NULL }; - GType publishing_gallery3_get_albums_transaction_type_id; - publishing_gallery3_get_albums_transaction_type_id = g_type_register_static (PUBLISHING_GALLERY3_TYPE_GALLERY_REQUEST_TRANSACTION, "PublishingGallery3GetAlbumsTransaction", &g_define_type_info, 0); - g_once_init_leave (&publishing_gallery3_get_albums_transaction_type_id__volatile, publishing_gallery3_get_albums_transaction_type_id); - } - return publishing_gallery3_get_albums_transaction_type_id__volatile; -} - - -static void -_vala_JsonNode_free (JsonNode* self) -{ -#line 388 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_boxed_free (json_node_get_type (), self); -#line 4482 "GalleryConnector.c" -} - - -PublishingGallery3GalleryGetTagTransaction* -publishing_gallery3_gallery_get_tag_transaction_construct (GType object_type, - PublishingGallery3Session* session, - const gchar* tag_name) -{ - PublishingGallery3GalleryGetTagTransaction* self = NULL; -#line 386 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_return_val_if_fail (PUBLISHING_GALLERY3_IS_SESSION (session), NULL); -#line 386 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_return_val_if_fail (tag_name != NULL, NULL); -#line 388 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - if (!publishing_rest_support_session_is_authenticated (G_TYPE_CHECK_INSTANCE_CAST (session, PUBLISHING_REST_SUPPORT_TYPE_SESSION, PublishingRESTSupportSession))) { -#line 389 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_error ("GalleryConnector.vala:389: Not authenticated"); -#line 4500 "GalleryConnector.c" - } else { - JsonGenerator* entity = NULL; - JsonGenerator* _tmp0_; - JsonNode* root_node = NULL; - JsonNode* _tmp1_; - JsonObject* obj = NULL; - JsonObject* _tmp2_; - const gchar* _tmp3_; - const gchar* _tmp4_; - const gchar* _tmp5_; - const gchar* _tmp6_; - gsize entity_length = 0UL; - gchar* entity_value = NULL; - gsize _tmp7_ = 0UL; - gchar* _tmp8_; -#line 392 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp0_ = json_generator_new (); -#line 392 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - entity = _tmp0_; -#line 393 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp1_ = json_node_new (JSON_NODE_OBJECT); -#line 393 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - root_node = _tmp1_; -#line 394 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp2_ = json_object_new (); -#line 394 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - obj = _tmp2_; -#line 396 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp3_ = publishing_gallery3_session_get_url (session); -#line 396 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp4_ = _tmp3_; -#line 396 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self = (PublishingGallery3GalleryGetTagTransaction*) publishing_gallery3_base_gallery_transaction_construct (object_type, session, _tmp4_, "/tags", PUBLISHING_REST_SUPPORT_HTTP_METHOD_POST); -#line 399 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp5_ = publishing_gallery3_session_get_key (session); -#line 399 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp6_ = _tmp5_; -#line 399 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - publishing_rest_support_transaction_add_header (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "X-Gallery-Request-Key", _tmp6_); -#line 400 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - publishing_rest_support_transaction_add_header (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "X-Gallery-Request-Method", "POST"); -#line 402 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - json_object_set_string_member (obj, "name", tag_name); -#line 403 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - json_node_set_object (root_node, obj); -#line 404 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - json_generator_set_root (entity, root_node); -#line 407 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp8_ = json_generator_to_data (entity, &_tmp7_); -#line 407 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - entity_length = _tmp7_; -#line 407 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - entity_value = _tmp8_; -#line 409 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_debug ("GalleryConnector.vala:409: created entity: %s", entity_value); -#line 411 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - publishing_rest_support_transaction_add_argument (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "entity", entity_value); -#line 388 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_free0 (entity_value); -#line 388 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _json_object_unref0 (obj); -#line 388 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - __vala_JsonNode_free0 (root_node); -#line 388 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_object_unref0 (entity); -#line 4566 "GalleryConnector.c" - } -#line 386 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - return self; -#line 4570 "GalleryConnector.c" -} - - -PublishingGallery3GalleryGetTagTransaction* -publishing_gallery3_gallery_get_tag_transaction_new (PublishingGallery3Session* session, - const gchar* tag_name) -{ -#line 386 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - return publishing_gallery3_gallery_get_tag_transaction_construct (PUBLISHING_GALLERY3_TYPE_GALLERY_GET_TAG_TRANSACTION, session, tag_name); -#line 4580 "GalleryConnector.c" -} - - -gchar* -publishing_gallery3_gallery_get_tag_transaction_tag_url (PublishingGallery3GalleryGetTagTransaction* self) -{ - gchar* result = NULL; - JsonNode* root_node = NULL; - gchar* url = NULL; - JsonObject* _tmp2_; - const gchar* _tmp3_; - gchar* _tmp4_; - GError * _inner_error_ = NULL; -#line 416 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_return_val_if_fail (PUBLISHING_GALLERY3_IS_GALLERY_GET_TAG_TRANSACTION (self), NULL); -#line 4596 "GalleryConnector.c" - { - JsonNode* _tmp0_ = NULL; - JsonNode* _tmp1_; -#line 422 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp1_ = publishing_gallery3_base_gallery_transaction_get_root_node (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_GALLERY3_TYPE_BASE_GALLERY_TRANSACTION, PublishingGallery3BaseGalleryTransaction), &_inner_error_); -#line 422 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp0_ = _tmp1_; -#line 422 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 422 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - if (_inner_error_->domain == SPIT_PUBLISHING_PUBLISHING_ERROR) { -#line 4608 "GalleryConnector.c" - goto __catch2_spit_publishing_publishing_error; - } -#line 422 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_free0 (url); -#line 422 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 422 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_clear_error (&_inner_error_); -#line 422 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - return NULL; -#line 4619 "GalleryConnector.c" - } -#line 422 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - root_node = _tmp0_; -#line 4623 "GalleryConnector.c" - } - goto __finally2; - __catch2_spit_publishing_publishing_error: - { - GError* e = NULL; -#line 421 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - e = _inner_error_; -#line 421 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _inner_error_ = NULL; -#line 425 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_error ("GalleryConnector.vala:425: Could not get root node"); -#line 421 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_error_free0 (e); -#line 4637 "GalleryConnector.c" - } - __finally2: -#line 421 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 421 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_free0 (url); -#line 421 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 421 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_clear_error (&_inner_error_); -#line 421 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - return NULL; -#line 4650 "GalleryConnector.c" - } -#line 428 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp2_ = json_node_get_object (root_node); -#line 428 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp3_ = json_object_get_string_member (_tmp2_, "url"); -#line 428 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp4_ = g_strdup (_tmp3_); -#line 428 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_free0 (url); -#line 428 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - url = _tmp4_; -#line 431 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - result = url; -#line 431 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - return result; -#line 4666 "GalleryConnector.c" -} - - -static void -publishing_gallery3_gallery_get_tag_transaction_class_init (PublishingGallery3GalleryGetTagTransactionClass * klass) -{ -#line 384 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - publishing_gallery3_gallery_get_tag_transaction_parent_class = g_type_class_peek_parent (klass); -#line 4675 "GalleryConnector.c" -} - - -static void -publishing_gallery3_gallery_get_tag_transaction_instance_init (PublishingGallery3GalleryGetTagTransaction * self) -{ -} - - -GType -publishing_gallery3_gallery_get_tag_transaction_get_type (void) -{ - static volatile gsize publishing_gallery3_gallery_get_tag_transaction_type_id__volatile = 0; - if (g_once_init_enter (&publishing_gallery3_gallery_get_tag_transaction_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (PublishingGallery3GalleryGetTagTransactionClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) publishing_gallery3_gallery_get_tag_transaction_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PublishingGallery3GalleryGetTagTransaction), 0, (GInstanceInitFunc) publishing_gallery3_gallery_get_tag_transaction_instance_init, NULL }; - GType publishing_gallery3_gallery_get_tag_transaction_type_id; - publishing_gallery3_gallery_get_tag_transaction_type_id = g_type_register_static (PUBLISHING_GALLERY3_TYPE_BASE_GALLERY_TRANSACTION, "PublishingGallery3GalleryGetTagTransaction", &g_define_type_info, 0); - g_once_init_leave (&publishing_gallery3_gallery_get_tag_transaction_type_id__volatile, publishing_gallery3_gallery_get_tag_transaction_type_id); - } - return publishing_gallery3_gallery_get_tag_transaction_type_id__volatile; -} - - -PublishingGallery3GalleryGetItemTagsURLsTransaction* -publishing_gallery3_gallery_get_item_tags_ur_ls_transaction_construct (GType object_type, - PublishingGallery3Session* session, - const gchar* item_url) -{ - PublishingGallery3GalleryGetItemTagsURLsTransaction* self = NULL; -#line 443 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_return_val_if_fail (PUBLISHING_GALLERY3_IS_SESSION (session), NULL); -#line 443 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_return_val_if_fail (item_url != NULL, NULL); -#line 446 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self = (PublishingGallery3GalleryGetItemTagsURLsTransaction*) publishing_gallery3_gallery_request_transaction_construct (object_type, session, item_url, PUBLISHING_REST_SUPPORT_HTTP_METHOD_GET); -#line 443 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - return self; -#line 4713 "GalleryConnector.c" -} - - -PublishingGallery3GalleryGetItemTagsURLsTransaction* -publishing_gallery3_gallery_get_item_tags_ur_ls_transaction_new (PublishingGallery3Session* session, - const gchar* item_url) -{ -#line 443 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - return publishing_gallery3_gallery_get_item_tags_ur_ls_transaction_construct (PUBLISHING_GALLERY3_TYPE_GALLERY_GET_ITEM_TAGS_UR_LS_TRANSACTION, session, item_url); -#line 4723 "GalleryConnector.c" -} - - -gchar* -publishing_gallery3_gallery_get_item_tags_ur_ls_transaction_get_item_tags_path (PublishingGallery3GalleryGetItemTagsURLsTransaction* self) -{ - gchar* result = NULL; - JsonNode* root_node = NULL; - JsonObject* relationships = NULL; - JsonObject* tags = NULL; - const gchar* _tmp0_; - const gchar* _tmp13_; - gchar* _tmp14_; - GError * _inner_error_ = NULL; -#line 450 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_return_val_if_fail (PUBLISHING_GALLERY3_IS_GALLERY_GET_ITEM_TAGS_UR_LS_TRANSACTION (self), NULL); -#line 455 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp0_ = self->priv->item_tags_path; -#line 455 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - if (g_strcmp0 ("", _tmp0_) == 0) { -#line 4744 "GalleryConnector.c" - JsonNode* _tmp3_; - JsonObject* _tmp4_; - JsonObject* _tmp5_; - JsonObject* _tmp6_; - JsonObject* _tmp7_; - JsonObject* _tmp8_; - const gchar* _tmp9_; - gchar* _tmp10_; - const gchar* _tmp11_; - gchar* _tmp12_; - { - JsonNode* _tmp1_ = NULL; - JsonNode* _tmp2_; -#line 458 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp2_ = publishing_gallery3_base_gallery_transaction_get_root_node (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_GALLERY3_TYPE_BASE_GALLERY_TRANSACTION, PublishingGallery3BaseGalleryTransaction), &_inner_error_); -#line 458 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp1_ = _tmp2_; -#line 458 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 458 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - if (_inner_error_->domain == SPIT_PUBLISHING_PUBLISHING_ERROR) { -#line 4766 "GalleryConnector.c" - goto __catch3_spit_publishing_publishing_error; - } -#line 458 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 458 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_clear_error (&_inner_error_); -#line 458 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - return NULL; -#line 4775 "GalleryConnector.c" - } -#line 458 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - root_node = _tmp1_; -#line 4779 "GalleryConnector.c" - } - goto __finally3; - __catch3_spit_publishing_publishing_error: - { - GError* e = NULL; -#line 457 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - e = _inner_error_; -#line 457 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _inner_error_ = NULL; -#line 461 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_error ("GalleryConnector.vala:461: Could not get root node"); -#line 457 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_error_free0 (e); -#line 4793 "GalleryConnector.c" - } - __finally3: -#line 457 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 457 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 457 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_clear_error (&_inner_error_); -#line 457 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - return NULL; -#line 4804 "GalleryConnector.c" - } -#line 464 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp3_ = root_node; -#line 464 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp4_ = json_node_get_object (_tmp3_); -#line 464 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp5_ = json_object_get_object_member (_tmp4_, "relationships"); -#line 464 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - relationships = _tmp5_; -#line 466 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp6_ = relationships; -#line 466 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp7_ = json_object_get_object_member (_tmp6_, "tags"); -#line 466 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - tags = _tmp7_; -#line 468 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp8_ = tags; -#line 468 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp9_ = json_object_get_string_member (_tmp8_, "url"); -#line 468 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp10_ = g_strdup (_tmp9_); -#line 468 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_free0 (self->priv->item_tags_path); -#line 468 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self->priv->item_tags_path = _tmp10_; -#line 471 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp11_ = self->priv->item_tags_path; -#line 471 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp12_ = publishing_gallery3_strip_session_url (_tmp11_); -#line 471 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_free0 (self->priv->item_tags_path); -#line 471 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self->priv->item_tags_path = _tmp12_; -#line 4838 "GalleryConnector.c" - } -#line 475 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp13_ = self->priv->item_tags_path; -#line 475 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp14_ = g_strdup (_tmp13_); -#line 475 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - result = _tmp14_; -#line 475 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - return result; -#line 4848 "GalleryConnector.c" -} - - -static void -publishing_gallery3_gallery_get_item_tags_ur_ls_transaction_class_init (PublishingGallery3GalleryGetItemTagsURLsTransactionClass * klass) -{ -#line 438 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - publishing_gallery3_gallery_get_item_tags_ur_ls_transaction_parent_class = g_type_class_peek_parent (klass); -#line 438 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - ((PublishingRESTSupportTransactionClass *) klass)->finalize = publishing_gallery3_gallery_get_item_tags_ur_ls_transaction_finalize; -#line 438 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_type_class_add_private (klass, sizeof (PublishingGallery3GalleryGetItemTagsURLsTransactionPrivate)); -#line 4861 "GalleryConnector.c" -} - - -static void -publishing_gallery3_gallery_get_item_tags_ur_ls_transaction_instance_init (PublishingGallery3GalleryGetItemTagsURLsTransaction * self) -{ - gchar* _tmp0_; -#line 438 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self->priv = PUBLISHING_GALLERY3_GALLERY_GET_ITEM_TAGS_UR_LS_TRANSACTION_GET_PRIVATE (self); -#line 441 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp0_ = g_strdup (""); -#line 441 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self->priv->item_tags_path = _tmp0_; -#line 4875 "GalleryConnector.c" -} - - -static void -publishing_gallery3_gallery_get_item_tags_ur_ls_transaction_finalize (PublishingRESTSupportTransaction * obj) -{ - PublishingGallery3GalleryGetItemTagsURLsTransaction * self; -#line 438 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, PUBLISHING_GALLERY3_TYPE_GALLERY_GET_ITEM_TAGS_UR_LS_TRANSACTION, PublishingGallery3GalleryGetItemTagsURLsTransaction); -#line 441 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_free0 (self->priv->item_tags_path); -#line 438 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - PUBLISHING_REST_SUPPORT_TRANSACTION_CLASS (publishing_gallery3_gallery_get_item_tags_ur_ls_transaction_parent_class)->finalize (obj); -#line 4889 "GalleryConnector.c" -} - - -GType -publishing_gallery3_gallery_get_item_tags_ur_ls_transaction_get_type (void) -{ - static volatile gsize publishing_gallery3_gallery_get_item_tags_ur_ls_transaction_type_id__volatile = 0; - if (g_once_init_enter (&publishing_gallery3_gallery_get_item_tags_ur_ls_transaction_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (PublishingGallery3GalleryGetItemTagsURLsTransactionClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) publishing_gallery3_gallery_get_item_tags_ur_ls_transaction_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PublishingGallery3GalleryGetItemTagsURLsTransaction), 0, (GInstanceInitFunc) publishing_gallery3_gallery_get_item_tags_ur_ls_transaction_instance_init, NULL }; - GType publishing_gallery3_gallery_get_item_tags_ur_ls_transaction_type_id; - publishing_gallery3_gallery_get_item_tags_ur_ls_transaction_type_id = g_type_register_static (PUBLISHING_GALLERY3_TYPE_GALLERY_REQUEST_TRANSACTION, "PublishingGallery3GalleryGetItemTagsURLsTransaction", &g_define_type_info, 0); - g_once_init_leave (&publishing_gallery3_gallery_get_item_tags_ur_ls_transaction_type_id__volatile, publishing_gallery3_gallery_get_item_tags_ur_ls_transaction_type_id); - } - return publishing_gallery3_gallery_get_item_tags_ur_ls_transaction_type_id__volatile; -} - - -PublishingGallery3GallerySetTagRelationshipTransaction* -publishing_gallery3_gallery_set_tag_relationship_transaction_construct (GType object_type, - PublishingGallery3Session* session, - const gchar* item_tags_path, - const gchar* tag_url, - const gchar* item_url) -{ - PublishingGallery3GallerySetTagRelationshipTransaction* self = NULL; -#line 485 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_return_val_if_fail (PUBLISHING_GALLERY3_IS_SESSION (session), NULL); -#line 485 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_return_val_if_fail (item_tags_path != NULL, NULL); -#line 485 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_return_val_if_fail (tag_url != NULL, NULL); -#line 485 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_return_val_if_fail (item_url != NULL, NULL); -#line 488 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - if (!publishing_rest_support_session_is_authenticated (G_TYPE_CHECK_INSTANCE_CAST (session, PUBLISHING_REST_SUPPORT_TYPE_SESSION, PublishingRESTSupportSession))) { -#line 489 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_error ("GalleryConnector.vala:489: Not authenticated"); -#line 4927 "GalleryConnector.c" - } else { - JsonGenerator* entity = NULL; - JsonGenerator* _tmp0_; - JsonNode* root_node = NULL; - JsonNode* _tmp1_; - JsonObject* obj = NULL; - JsonObject* _tmp2_; - const gchar* _tmp3_; - const gchar* _tmp4_; - const gchar* _tmp5_; - const gchar* _tmp6_; - gsize entity_length = 0UL; - gchar* entity_value = NULL; - gsize _tmp7_ = 0UL; - gchar* _tmp8_; -#line 492 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp0_ = json_generator_new (); -#line 492 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - entity = _tmp0_; -#line 493 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp1_ = json_node_new (JSON_NODE_OBJECT); -#line 493 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - root_node = _tmp1_; -#line 494 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp2_ = json_object_new (); -#line 494 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - obj = _tmp2_; -#line 496 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp3_ = publishing_gallery3_session_get_url (session); -#line 496 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp4_ = _tmp3_; -#line 496 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self = (PublishingGallery3GallerySetTagRelationshipTransaction*) publishing_gallery3_base_gallery_transaction_construct (object_type, session, _tmp4_, item_tags_path, PUBLISHING_REST_SUPPORT_HTTP_METHOD_POST); -#line 499 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp5_ = publishing_gallery3_session_get_key (session); -#line 499 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp6_ = _tmp5_; -#line 499 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - publishing_rest_support_transaction_add_header (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "X-Gallery-Request-Key", _tmp6_); -#line 500 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - publishing_rest_support_transaction_add_header (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "X-Gallery-Request-Method", "POST"); -#line 502 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - json_object_set_string_member (obj, "tag", tag_url); -#line 503 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - json_object_set_string_member (obj, "item", item_url); -#line 504 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - json_node_set_object (root_node, obj); -#line 505 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - json_generator_set_root (entity, root_node); -#line 508 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp8_ = json_generator_to_data (entity, &_tmp7_); -#line 508 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - entity_length = _tmp7_; -#line 508 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - entity_value = _tmp8_; -#line 510 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_debug ("GalleryConnector.vala:510: created entity: %s", entity_value); -#line 512 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - publishing_rest_support_transaction_add_argument (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "entity", entity_value); -#line 488 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_free0 (entity_value); -#line 488 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _json_object_unref0 (obj); -#line 488 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - __vala_JsonNode_free0 (root_node); -#line 488 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_object_unref0 (entity); -#line 4995 "GalleryConnector.c" - } -#line 485 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - return self; -#line 4999 "GalleryConnector.c" -} - - -PublishingGallery3GallerySetTagRelationshipTransaction* -publishing_gallery3_gallery_set_tag_relationship_transaction_new (PublishingGallery3Session* session, - const gchar* item_tags_path, - const gchar* tag_url, - const gchar* item_url) -{ -#line 485 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - return publishing_gallery3_gallery_set_tag_relationship_transaction_construct (PUBLISHING_GALLERY3_TYPE_GALLERY_SET_TAG_RELATIONSHIP_TRANSACTION, session, item_tags_path, tag_url, item_url); -#line 5011 "GalleryConnector.c" -} - - -static void -publishing_gallery3_gallery_set_tag_relationship_transaction_class_init (PublishingGallery3GallerySetTagRelationshipTransactionClass * klass) -{ -#line 482 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - publishing_gallery3_gallery_set_tag_relationship_transaction_parent_class = g_type_class_peek_parent (klass); -#line 5020 "GalleryConnector.c" -} - - -static void -publishing_gallery3_gallery_set_tag_relationship_transaction_instance_init (PublishingGallery3GallerySetTagRelationshipTransaction * self) -{ -} - - -GType -publishing_gallery3_gallery_set_tag_relationship_transaction_get_type (void) -{ - static volatile gsize publishing_gallery3_gallery_set_tag_relationship_transaction_type_id__volatile = 0; - if (g_once_init_enter (&publishing_gallery3_gallery_set_tag_relationship_transaction_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (PublishingGallery3GallerySetTagRelationshipTransactionClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) publishing_gallery3_gallery_set_tag_relationship_transaction_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PublishingGallery3GallerySetTagRelationshipTransaction), 0, (GInstanceInitFunc) publishing_gallery3_gallery_set_tag_relationship_transaction_instance_init, NULL }; - GType publishing_gallery3_gallery_set_tag_relationship_transaction_type_id; - publishing_gallery3_gallery_set_tag_relationship_transaction_type_id = g_type_register_static (PUBLISHING_GALLERY3_TYPE_BASE_GALLERY_TRANSACTION, "PublishingGallery3GallerySetTagRelationshipTransaction", &g_define_type_info, 0); - g_once_init_leave (&publishing_gallery3_gallery_set_tag_relationship_transaction_type_id__volatile, publishing_gallery3_gallery_set_tag_relationship_transaction_type_id); - } - return publishing_gallery3_gallery_set_tag_relationship_transaction_type_id__volatile; -} - - -PublishingGallery3GalleryAlbumCreateTransaction* -publishing_gallery3_gallery_album_create_transaction_construct (GType object_type, - PublishingGallery3Session* session, - PublishingGallery3PublishingParameters* parameters) -{ - PublishingGallery3GalleryAlbumCreateTransaction* self = NULL; -#line 529 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_return_val_if_fail (PUBLISHING_GALLERY3_IS_SESSION (session), NULL); -#line 529 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_return_val_if_fail (PUBLISHING_GALLERY3_IS_PUBLISHING_PARAMETERS (parameters), NULL); -#line 532 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - if (!publishing_rest_support_session_is_authenticated (G_TYPE_CHECK_INSTANCE_CAST (session, PUBLISHING_REST_SUPPORT_TYPE_SESSION, PublishingRESTSupportSession))) { -#line 533 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_error ("GalleryConnector.vala:533: Not authenticated"); -#line 5058 "GalleryConnector.c" - } else { - JsonGenerator* entity = NULL; - JsonGenerator* _tmp0_; - JsonNode* root_node = NULL; - JsonNode* _tmp1_; - JsonObject* obj = NULL; - JsonObject* _tmp2_; - const gchar* _tmp3_; - const gchar* _tmp4_; - const gchar* _tmp5_; - const gchar* _tmp6_; - const gchar* _tmp7_; - const gchar* _tmp8_; - gchar* _tmp9_; - const gchar* _tmp10_; - const gchar* _tmp11_; - const gchar* _tmp12_; - const gchar* _tmp13_; - gchar* entity_value = NULL; - gchar* _tmp14_; -#line 536 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp0_ = json_generator_new (); -#line 536 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - entity = _tmp0_; -#line 537 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp1_ = json_node_new (JSON_NODE_OBJECT); -#line 537 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - root_node = _tmp1_; -#line 538 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp2_ = json_object_new (); -#line 538 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - obj = _tmp2_; -#line 540 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp3_ = publishing_gallery3_session_get_url (session); -#line 540 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp4_ = _tmp3_; -#line 540 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self = (PublishingGallery3GalleryAlbumCreateTransaction*) publishing_gallery3_base_gallery_transaction_construct (object_type, session, _tmp4_, "/item/1", PUBLISHING_REST_SUPPORT_HTTP_METHOD_POST); -#line 542 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp5_ = publishing_gallery3_session_get_key (session); -#line 542 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp6_ = _tmp5_; -#line 542 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - publishing_rest_support_transaction_add_header (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "X-Gallery-Request-Key", _tmp6_); -#line 543 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - publishing_rest_support_transaction_add_header (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "X-Gallery-Request-Method", "POST"); -#line 545 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp7_ = publishing_gallery3_session_get_url (session); -#line 545 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp8_ = _tmp7_; -#line 545 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp9_ = g_strdup (_tmp8_); -#line 545 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_free0 (self->priv->session_url); -#line 545 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self->priv->session_url = _tmp9_; -#line 546 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - publishing_gallery3_gallery_album_create_transaction_set_parameters (self, parameters); -#line 548 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp10_ = publishing_gallery3_publishing_parameters_get_album_name (parameters); -#line 548 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp11_ = _tmp10_; -#line 548 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - json_object_set_string_member (obj, "name", _tmp11_); -#line 549 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - json_object_set_string_member (obj, "type", "album"); -#line 550 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp12_ = publishing_gallery3_publishing_parameters_get_album_title (parameters); -#line 550 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp13_ = _tmp12_; -#line 550 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - json_object_set_string_member (obj, "title", _tmp13_); -#line 551 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - json_node_set_object (root_node, obj); -#line 552 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - json_generator_set_root (entity, root_node); -#line 554 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp14_ = json_generator_to_data (entity, NULL); -#line 554 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - entity_value = _tmp14_; -#line 556 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_debug ("GalleryConnector.vala:556: created entity: %s", entity_value); -#line 558 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - publishing_rest_support_transaction_add_argument (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "entity", entity_value); -#line 532 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_free0 (entity_value); -#line 532 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _json_object_unref0 (obj); -#line 532 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - __vala_JsonNode_free0 (root_node); -#line 532 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_object_unref0 (entity); -#line 5151 "GalleryConnector.c" - } -#line 529 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - return self; -#line 5155 "GalleryConnector.c" -} - - -PublishingGallery3GalleryAlbumCreateTransaction* -publishing_gallery3_gallery_album_create_transaction_new (PublishingGallery3Session* session, - PublishingGallery3PublishingParameters* parameters) -{ -#line 529 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - return publishing_gallery3_gallery_album_create_transaction_construct (PUBLISHING_GALLERY3_TYPE_GALLERY_ALBUM_CREATE_TRANSACTION, session, parameters); -#line 5165 "GalleryConnector.c" -} - - -gchar* -publishing_gallery3_gallery_album_create_transaction_get_new_album_path (PublishingGallery3GalleryAlbumCreateTransaction* self) -{ - gchar* result = NULL; - JsonNode* root_node = NULL; - gchar* new_path = NULL; - JsonObject* _tmp2_; - const gchar* _tmp3_; - gchar* _tmp4_; - const gchar* _tmp5_; - gchar* _tmp6_; - GError * _inner_error_ = NULL; -#line 563 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_return_val_if_fail (PUBLISHING_GALLERY3_IS_GALLERY_ALBUM_CREATE_TRANSACTION (self), NULL); -#line 5183 "GalleryConnector.c" - { - JsonNode* _tmp0_ = NULL; - JsonNode* _tmp1_; -#line 569 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp1_ = publishing_gallery3_base_gallery_transaction_get_root_node (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_GALLERY3_TYPE_BASE_GALLERY_TRANSACTION, PublishingGallery3BaseGalleryTransaction), &_inner_error_); -#line 569 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp0_ = _tmp1_; -#line 569 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 569 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - if (_inner_error_->domain == SPIT_PUBLISHING_PUBLISHING_ERROR) { -#line 5195 "GalleryConnector.c" - goto __catch4_spit_publishing_publishing_error; - } -#line 569 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_free0 (new_path); -#line 569 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 569 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_clear_error (&_inner_error_); -#line 569 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - return NULL; -#line 5206 "GalleryConnector.c" - } -#line 569 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - root_node = _tmp0_; -#line 5210 "GalleryConnector.c" - } - goto __finally4; - __catch4_spit_publishing_publishing_error: - { - GError* e = NULL; -#line 568 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - e = _inner_error_; -#line 568 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _inner_error_ = NULL; -#line 572 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_error ("GalleryConnector.vala:572: Could not get root node"); -#line 568 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_error_free0 (e); -#line 5224 "GalleryConnector.c" - } - __finally4: -#line 568 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 568 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_free0 (new_path); -#line 568 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 568 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_clear_error (&_inner_error_); -#line 568 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - return NULL; -#line 5237 "GalleryConnector.c" - } -#line 575 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp2_ = json_node_get_object (root_node); -#line 575 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp3_ = json_object_get_string_member (_tmp2_, "url"); -#line 575 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp4_ = g_strdup (_tmp3_); -#line 575 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_free0 (new_path); -#line 575 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - new_path = _tmp4_; -#line 577 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp5_ = new_path; -#line 577 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp6_ = publishing_gallery3_strip_session_url (_tmp5_); -#line 577 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_free0 (new_path); -#line 577 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - new_path = _tmp6_; -#line 579 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - result = new_path; -#line 579 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - return result; -#line 5261 "GalleryConnector.c" -} - - -PublishingGallery3PublishingParameters* -publishing_gallery3_gallery_album_create_transaction_get_parameters (PublishingGallery3GalleryAlbumCreateTransaction* self) -{ - PublishingGallery3PublishingParameters* result; - PublishingGallery3PublishingParameters* _tmp0_; -#line 522 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_return_val_if_fail (PUBLISHING_GALLERY3_IS_GALLERY_ALBUM_CREATE_TRANSACTION (self), NULL); -#line 522 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp0_ = self->priv->_parameters; -#line 522 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - result = _tmp0_; -#line 522 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - return result; -#line 5278 "GalleryConnector.c" -} - - -static gpointer -_publishing_gallery3_publishing_parameters_ref0 (gpointer self) -{ -#line 522 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - return self ? publishing_gallery3_publishing_parameters_ref (self) : NULL; -#line 5287 "GalleryConnector.c" -} - - -static void -publishing_gallery3_gallery_album_create_transaction_set_parameters (PublishingGallery3GalleryAlbumCreateTransaction* self, - PublishingGallery3PublishingParameters* value) -{ - PublishingGallery3PublishingParameters* _tmp0_; -#line 522 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_return_if_fail (PUBLISHING_GALLERY3_IS_GALLERY_ALBUM_CREATE_TRANSACTION (self)); -#line 522 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp0_ = _publishing_gallery3_publishing_parameters_ref0 (value); -#line 522 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _publishing_gallery3_publishing_parameters_unref0 (self->priv->_parameters); -#line 522 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self->priv->_parameters = _tmp0_; -#line 5304 "GalleryConnector.c" -} - - -static void -publishing_gallery3_gallery_album_create_transaction_class_init (PublishingGallery3GalleryAlbumCreateTransactionClass * klass) -{ -#line 519 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - publishing_gallery3_gallery_album_create_transaction_parent_class = g_type_class_peek_parent (klass); -#line 519 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - ((PublishingRESTSupportTransactionClass *) klass)->finalize = publishing_gallery3_gallery_album_create_transaction_finalize; -#line 519 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_type_class_add_private (klass, sizeof (PublishingGallery3GalleryAlbumCreateTransactionPrivate)); -#line 5317 "GalleryConnector.c" -} - - -static void -publishing_gallery3_gallery_album_create_transaction_instance_init (PublishingGallery3GalleryAlbumCreateTransaction * self) -{ -#line 519 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self->priv = PUBLISHING_GALLERY3_GALLERY_ALBUM_CREATE_TRANSACTION_GET_PRIVATE (self); -#line 5326 "GalleryConnector.c" -} - - -static void -publishing_gallery3_gallery_album_create_transaction_finalize (PublishingRESTSupportTransaction * obj) -{ - PublishingGallery3GalleryAlbumCreateTransaction * self; -#line 519 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, PUBLISHING_GALLERY3_TYPE_GALLERY_ALBUM_CREATE_TRANSACTION, PublishingGallery3GalleryAlbumCreateTransaction); -#line 522 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _publishing_gallery3_publishing_parameters_unref0 (self->priv->_parameters); -#line 524 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_free0 (self->priv->session_url); -#line 519 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - PUBLISHING_REST_SUPPORT_TRANSACTION_CLASS (publishing_gallery3_gallery_album_create_transaction_parent_class)->finalize (obj); -#line 5342 "GalleryConnector.c" -} - - -GType -publishing_gallery3_gallery_album_create_transaction_get_type (void) -{ - static volatile gsize publishing_gallery3_gallery_album_create_transaction_type_id__volatile = 0; - if (g_once_init_enter (&publishing_gallery3_gallery_album_create_transaction_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (PublishingGallery3GalleryAlbumCreateTransactionClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) publishing_gallery3_gallery_album_create_transaction_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PublishingGallery3GalleryAlbumCreateTransaction), 0, (GInstanceInitFunc) publishing_gallery3_gallery_album_create_transaction_instance_init, NULL }; - GType publishing_gallery3_gallery_album_create_transaction_type_id; - publishing_gallery3_gallery_album_create_transaction_type_id = g_type_register_static (PUBLISHING_GALLERY3_TYPE_BASE_GALLERY_TRANSACTION, "PublishingGallery3GalleryAlbumCreateTransaction", &g_define_type_info, 0); - g_once_init_leave (&publishing_gallery3_gallery_album_create_transaction_type_id__volatile, publishing_gallery3_gallery_album_create_transaction_type_id); - } - return publishing_gallery3_gallery_album_create_transaction_type_id__volatile; -} - - -static gpointer -_publishing_rest_support_session_ref0 (gpointer self) -{ -#line 609 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - return self ? publishing_rest_support_session_ref (self) : NULL; -#line 5365 "GalleryConnector.c" -} - - -static void -_g_free0_ (gpointer var) -{ -#line 614 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - var = (g_free (var), NULL); -#line 5374 "GalleryConnector.c" -} - - -PublishingGallery3GalleryUploadTransaction* -publishing_gallery3_gallery_upload_transaction_construct (GType object_type, - PublishingGallery3Session* session, - PublishingGallery3PublishingParameters* parameters, - SpitPublishingPublishable* publishable) -{ - PublishingGallery3GalleryUploadTransaction* self = NULL; - const gchar* _tmp0_; - const gchar* _tmp1_; - const gchar* _tmp4_; - const gchar* _tmp5_; - gchar* _tmp6_; - gchar* _tmp7_; - const gchar* _tmp8_; - const gchar* _tmp9_; - gchar* _tmp10_; - gchar* _tmp11_; - PublishingGallery3PublishingParameters* _tmp12_; - PublishingGallery3Session* _tmp13_; - const gchar* _tmp14_; - const gchar* _tmp15_; - GHashTable* disposition_table = NULL; - GHashFunc _tmp16_; - GEqualFunc _tmp17_; - GHashTable* _tmp18_; - gchar* title = NULL; - gchar* _tmp19_; - gchar* filename = NULL; - gchar* _tmp20_; - gboolean _tmp21_ = FALSE; - const gchar* _tmp22_; - GHashTable* _tmp26_; - gchar* _tmp27_; - const gchar* _tmp28_; - const gchar* _tmp29_; - gchar* _tmp30_; - GHashTable* _tmp31_; - gchar* _tmp32_; - gchar* _tmp33_; - GHashTable* _tmp34_; - JsonGenerator* _tmp35_; - gchar* desc = NULL; - gchar* _tmp36_; - const gchar* _tmp37_ = NULL; - gchar* type = NULL; - gchar* _tmp38_; - JsonNode* root_node = NULL; - JsonNode* _tmp39_; - JsonObject* obj = NULL; - JsonObject* _tmp40_; - const gchar* _tmp41_; - const gchar* _tmp42_; - const gchar* _tmp43_; - JsonGenerator* _tmp44_; - JsonGenerator* _tmp45_; - gchar* _tmp46_; - gchar* _tmp47_; -#line 595 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_return_val_if_fail (PUBLISHING_GALLERY3_IS_SESSION (session), NULL); -#line 595 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_return_val_if_fail (PUBLISHING_GALLERY3_IS_PUBLISHING_PARAMETERS (parameters), NULL); -#line 595 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_return_val_if_fail (SPIT_PUBLISHING_IS_PUBLISHABLE (publishable), NULL); -#line 600 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp0_ = publishing_gallery3_publishing_parameters_get_album_path (parameters); -#line 600 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp1_ = _tmp0_; -#line 600 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - if (string_get (_tmp1_, (glong) 0) != '/') { -#line 5447 "GalleryConnector.c" - const gchar* _tmp2_; - const gchar* _tmp3_; -#line 601 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_warning ("GalleryConnector.vala:601: Bad upload item path, this is a bug!"); -#line 602 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp2_ = publishing_gallery3_publishing_parameters_get_album_path (parameters); -#line 602 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp3_ = _tmp2_; -#line 602 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_error ("GalleryConnector.vala:602: %s", _tmp3_); -#line 5458 "GalleryConnector.c" - } -#line 605 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp4_ = publishing_gallery3_session_get_url (session); -#line 605 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp5_ = _tmp4_; -#line 605 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp6_ = g_strconcat (_tmp5_, PUBLISHING_GALLERY3_REST_PATH, NULL); -#line 605 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp7_ = _tmp6_; -#line 605 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp8_ = publishing_gallery3_publishing_parameters_get_album_path (parameters); -#line 605 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp9_ = _tmp8_; -#line 605 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp10_ = g_strconcat (_tmp7_, _tmp9_, NULL); -#line 605 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp11_ = _tmp10_; -#line 605 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self = (PublishingGallery3GalleryUploadTransaction*) publishing_rest_support_upload_transaction_construct_with_endpoint_url (object_type, G_TYPE_CHECK_INSTANCE_CAST (session, PUBLISHING_REST_SUPPORT_TYPE_SESSION, PublishingRESTSupportSession), publishable, _tmp11_); -#line 605 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_free0 (_tmp11_); -#line 605 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_free0 (_tmp7_); -#line 608 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp12_ = _publishing_gallery3_publishing_parameters_ref0 (parameters); -#line 608 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _publishing_gallery3_publishing_parameters_unref0 (self->priv->parameters); -#line 608 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self->priv->parameters = _tmp12_; -#line 609 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp13_ = _publishing_rest_support_session_ref0 (session); -#line 609 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _publishing_rest_support_session_unref0 (self->priv->session); -#line 609 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self->priv->session = _tmp13_; -#line 611 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp14_ = publishing_gallery3_session_get_key (session); -#line 611 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp15_ = _tmp14_; -#line 611 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - publishing_rest_support_transaction_add_header (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "X-Gallery-Request-Key", _tmp15_); -#line 612 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - publishing_rest_support_transaction_add_header (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "X-Gallery-Request-Method", "POST"); -#line 614 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp16_ = g_str_hash; -#line 614 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp17_ = g_str_equal; -#line 614 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp18_ = g_hash_table_new_full (_tmp16_, _tmp17_, _g_free0_, _g_free0_); -#line 614 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - disposition_table = _tmp18_; -#line 617 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp19_ = spit_publishing_publishable_get_publishing_name (publishable); -#line 617 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - title = _tmp19_; -#line 618 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp20_ = spit_publishing_publishable_get_param_string (publishable, SPIT_PUBLISHING_PUBLISHABLE_PARAM_STRING_BASENAME); -#line 618 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - filename = _tmp20_; -#line 620 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp22_ = title; -#line 620 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - if (_tmp22_ == NULL) { -#line 620 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp21_ = TRUE; -#line 5524 "GalleryConnector.c" - } else { - const gchar* _tmp23_; -#line 620 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp23_ = title; -#line 620 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp21_ = g_strcmp0 (_tmp23_, "") == 0; -#line 5531 "GalleryConnector.c" - } -#line 620 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - if (_tmp21_) { -#line 5535 "GalleryConnector.c" - const gchar* _tmp24_; - gchar* _tmp25_; -#line 622 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp24_ = filename; -#line 622 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp25_ = g_strdup (_tmp24_); -#line 622 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_free0 (title); -#line 622 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - title = _tmp25_; -#line 5546 "GalleryConnector.c" - } -#line 624 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp26_ = disposition_table; -#line 624 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp27_ = g_strdup ("filename"); -#line 624 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp28_ = filename; -#line 624 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp29_ = string_to_string (_tmp28_); -#line 624 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp30_ = g_strdup (_tmp29_); -#line 624 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_hash_table_insert (_tmp26_, _tmp27_, _tmp30_); -#line 625 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp31_ = disposition_table; -#line 625 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp32_ = g_strdup ("name"); -#line 625 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp33_ = g_strdup ("file"); -#line 625 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_hash_table_insert (_tmp31_, _tmp32_, _tmp33_); -#line 627 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp34_ = disposition_table; -#line 627 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - publishing_rest_support_upload_transaction_set_binary_disposition_table (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_UPLOAD_TRANSACTION, PublishingRESTSupportUploadTransaction), _tmp34_); -#line 630 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp35_ = json_generator_new (); -#line 630 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_object_unref0 (self->priv->generator); -#line 630 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self->priv->generator = _tmp35_; -#line 631 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp36_ = spit_publishing_publishable_get_param_string (publishable, SPIT_PUBLISHING_PUBLISHABLE_PARAM_STRING_COMMENT); -#line 631 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - desc = _tmp36_; -#line 633 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - if (spit_publishing_publishable_get_media_type (publishable) == SPIT_PUBLISHING_PUBLISHER_MEDIA_TYPE_VIDEO) { -#line 635 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp37_ = "movie"; -#line 5586 "GalleryConnector.c" - } else { -#line 635 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp37_ = "photo"; -#line 5590 "GalleryConnector.c" - } -#line 633 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp38_ = g_strdup (_tmp37_); -#line 633 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - type = _tmp38_; -#line 637 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp39_ = json_node_new (JSON_NODE_OBJECT); -#line 637 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - root_node = _tmp39_; -#line 638 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp40_ = json_object_new (); -#line 638 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - obj = _tmp40_; -#line 639 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp41_ = filename; -#line 639 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - json_object_set_string_member (obj, "name", _tmp41_); -#line 640 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - json_object_set_string_member (obj, "type", type); -#line 641 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp42_ = title; -#line 641 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - json_object_set_string_member (obj, "title", _tmp42_); -#line 642 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp43_ = desc; -#line 642 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - json_object_set_string_member (obj, "description", _tmp43_); -#line 644 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - json_node_set_object (root_node, obj); -#line 645 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp44_ = self->priv->generator; -#line 645 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - json_generator_set_root (_tmp44_, root_node); -#line 647 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp45_ = self->priv->generator; -#line 647 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp46_ = json_generator_to_data (_tmp45_, NULL); -#line 647 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp47_ = _tmp46_; -#line 647 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - publishing_rest_support_transaction_add_argument (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "entity", _tmp47_); -#line 647 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_free0 (_tmp47_); -#line 595 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _json_object_unref0 (obj); -#line 595 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - __vala_JsonNode_free0 (root_node); -#line 595 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_free0 (type); -#line 595 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_free0 (desc); -#line 595 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_free0 (filename); -#line 595 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_free0 (title); -#line 595 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_hash_table_unref0 (disposition_table); -#line 595 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - return self; -#line 5650 "GalleryConnector.c" -} - - -PublishingGallery3GalleryUploadTransaction* -publishing_gallery3_gallery_upload_transaction_new (PublishingGallery3Session* session, - PublishingGallery3PublishingParameters* parameters, - SpitPublishingPublishable* publishable) -{ -#line 595 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - return publishing_gallery3_gallery_upload_transaction_construct (PUBLISHING_GALLERY3_TYPE_GALLERY_UPLOAD_TRANSACTION, session, parameters, publishable); -#line 5661 "GalleryConnector.c" -} - - -static gchar* -publishing_gallery3_gallery_upload_transaction_get_new_item_url (PublishingGallery3GalleryUploadTransaction* self) -{ - gchar* result = NULL; - gchar* json_object = NULL; - gchar* new_url = NULL; - JsonNode* root_node = NULL; - JsonParser* parser = NULL; - JsonParser* _tmp0_; - gchar* _tmp1_; - gboolean _tmp2_ = FALSE; - const gchar* _tmp3_; - const gchar* _tmp10_; - JsonParser* _tmp14_; - JsonNode* _tmp15_; - JsonNode* _tmp16_; - JsonNode* _tmp18_; - JsonObject* _tmp19_; - const gchar* _tmp20_; - gchar* _tmp21_; - GError * _inner_error_ = NULL; -#line 650 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_return_val_if_fail (PUBLISHING_GALLERY3_IS_GALLERY_UPLOAD_TRANSACTION (self), NULL); -#line 655 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp0_ = json_parser_new (); -#line 655 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - parser = _tmp0_; -#line 657 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp1_ = publishing_rest_support_transaction_get_response (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction)); -#line 657 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_free0 (json_object); -#line 657 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - json_object = _tmp1_; -#line 659 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp3_ = json_object; -#line 659 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - if (NULL == _tmp3_) { -#line 659 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp2_ = TRUE; -#line 5704 "GalleryConnector.c" - } else { - const gchar* _tmp4_; - gint _tmp5_; - gint _tmp6_; -#line 659 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp4_ = json_object; -#line 659 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp5_ = strlen (_tmp4_); -#line 659 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp6_ = _tmp5_; -#line 659 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp2_ = 0 == _tmp6_; -#line 5717 "GalleryConnector.c" - } -#line 659 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - if (_tmp2_) { -#line 5721 "GalleryConnector.c" - gchar* _tmp7_; - gchar* _tmp8_; - gchar* _tmp9_; -#line 660 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp7_ = publishing_rest_support_transaction_get_endpoint_url (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction)); -#line 660 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp8_ = _tmp7_; -#line 660 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_warning ("GalleryConnector.vala:660: No response data from %s", _tmp8_); -#line 660 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_free0 (_tmp8_); -#line 661 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp9_ = g_strdup (""); -#line 661 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - result = _tmp9_; -#line 661 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_object_unref0 (parser); -#line 661 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_free0 (new_url); -#line 661 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_free0 (json_object); -#line 661 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - return result; -#line 5745 "GalleryConnector.c" - } -#line 664 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp10_ = json_object; -#line 664 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_debug ("GalleryConnector.vala:664: json_object: %s", _tmp10_); -#line 5751 "GalleryConnector.c" - { - JsonParser* _tmp11_; - const gchar* _tmp12_; -#line 667 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp11_ = parser; -#line 667 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp12_ = json_object; -#line 667 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - json_parser_load_from_data (_tmp11_, _tmp12_, (gssize) -1, &_inner_error_); -#line 667 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 5763 "GalleryConnector.c" - goto __catch5_g_error; - } - } - goto __finally5; - __catch5_g_error: - { - GError* e = NULL; - const gchar* _tmp13_; -#line 666 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - e = _inner_error_; -#line 666 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _inner_error_ = NULL; -#line 672 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_warning ("GalleryConnector.vala:672: ERROR: didn't load JSON data"); -#line 673 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - publishing_rest_support_transaction_set_is_executed (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), FALSE); -#line 674 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp13_ = e->message; -#line 674 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_error ("GalleryConnector.vala:674: %s", _tmp13_); -#line 666 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_error_free0 (e); -#line 5786 "GalleryConnector.c" - } - __finally5: -#line 666 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 666 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_object_unref0 (parser); -#line 666 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_free0 (new_url); -#line 666 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_free0 (json_object); -#line 666 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 666 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_clear_error (&_inner_error_); -#line 666 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - return NULL; -#line 5803 "GalleryConnector.c" - } -#line 677 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp14_ = parser; -#line 677 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp15_ = json_parser_get_root (_tmp14_); -#line 677 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - root_node = _tmp15_; -#line 678 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp16_ = root_node; -#line 678 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - if (json_node_is_null (_tmp16_)) { -#line 5815 "GalleryConnector.c" - gchar* _tmp17_; -#line 679 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_warning ("GalleryConnector.vala:679: Root node is null, doesn't appear to be JSO" \ -"N data"); -#line 680 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp17_ = g_strdup (""); -#line 680 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - result = _tmp17_; -#line 680 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_object_unref0 (parser); -#line 680 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_free0 (new_url); -#line 680 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_free0 (json_object); -#line 680 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - return result; -#line 5831 "GalleryConnector.c" - } -#line 683 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp18_ = root_node; -#line 683 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp19_ = json_node_get_object (_tmp18_); -#line 683 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp20_ = json_object_get_string_member (_tmp19_, "url"); -#line 683 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp21_ = g_strdup (_tmp20_); -#line 683 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_free0 (new_url); -#line 683 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - new_url = _tmp21_; -#line 686 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - result = new_url; -#line 686 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_object_unref0 (parser); -#line 686 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_free0 (json_object); -#line 686 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - return result; -#line 5853 "GalleryConnector.c" -} - - -static void -publishing_gallery3_gallery_upload_transaction_do_set_tag_relationship (PublishingGallery3GalleryUploadTransaction* self, - const gchar* tag_url, - GError** error) -{ - PublishingGallery3GallerySetTagRelationshipTransaction* tag_txn = NULL; - PublishingRESTSupportSession* _tmp0_; - PublishingGallery3Session* _tmp1_; - const gchar* _tmp2_; - const gchar* _tmp3_; - PublishingGallery3GallerySetTagRelationshipTransaction* _tmp4_; - PublishingGallery3GallerySetTagRelationshipTransaction* _tmp5_; - gchar* _tmp6_; - gchar* _tmp7_; - GError * _inner_error_ = NULL; -#line 690 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_return_if_fail (PUBLISHING_GALLERY3_IS_GALLERY_UPLOAD_TRANSACTION (self)); -#line 690 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_return_if_fail (tag_url != NULL); -#line 692 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp0_ = publishing_rest_support_transaction_get_parent_session (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction)); -#line 692 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp1_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, PUBLISHING_GALLERY3_TYPE_SESSION, PublishingGallery3Session); -#line 692 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp2_ = self->priv->item_tags_path; -#line 692 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp3_ = self->priv->item_url; -#line 692 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp4_ = publishing_gallery3_gallery_set_tag_relationship_transaction_new (_tmp1_, _tmp2_, tag_url, _tmp3_); -#line 692 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp5_ = _tmp4_; -#line 692 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _publishing_rest_support_session_unref0 (_tmp1_); -#line 692 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - tag_txn = _tmp5_; -#line 697 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - publishing_rest_support_transaction_execute (G_TYPE_CHECK_INSTANCE_CAST (tag_txn, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), &_inner_error_); -#line 697 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 697 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - if (_inner_error_->domain == SPIT_PUBLISHING_PUBLISHING_ERROR) { -#line 697 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_propagate_error (error, _inner_error_); -#line 697 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _publishing_rest_support_transaction_unref0 (tag_txn); -#line 697 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - return; -#line 5904 "GalleryConnector.c" - } else { -#line 697 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _publishing_rest_support_transaction_unref0 (tag_txn); -#line 697 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 697 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_clear_error (&_inner_error_); -#line 697 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - return; -#line 5914 "GalleryConnector.c" - } - } -#line 699 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp6_ = publishing_rest_support_transaction_get_response (G_TYPE_CHECK_INSTANCE_CAST (tag_txn, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction)); -#line 699 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp7_ = _tmp6_; -#line 699 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_debug ("GalleryConnector.vala:699: Response from setting tag relationship: %s", _tmp7_); -#line 699 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_free0 (_tmp7_); -#line 690 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _publishing_rest_support_transaction_unref0 (tag_txn); -#line 5927 "GalleryConnector.c" -} - - -static gchar* -publishing_gallery3_gallery_upload_transaction_get_new_item_tags_path (PublishingGallery3GalleryUploadTransaction* self) -{ - gchar* result = NULL; - PublishingGallery3GalleryGetItemTagsURLsTransaction* tag_urls_txn = NULL; - PublishingRESTSupportSession* _tmp0_; - PublishingGallery3Session* _tmp1_; - const gchar* _tmp2_; - PublishingGallery3GalleryGetItemTagsURLsTransaction* _tmp3_; - PublishingGallery3GalleryGetItemTagsURLsTransaction* _tmp4_; - PublishingGallery3GalleryGetItemTagsURLsTransaction* _tmp9_; - gchar* _tmp10_; - GError * _inner_error_ = NULL; -#line 703 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_return_val_if_fail (PUBLISHING_GALLERY3_IS_GALLERY_UPLOAD_TRANSACTION (self), NULL); -#line 704 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp0_ = publishing_rest_support_transaction_get_parent_session (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction)); -#line 704 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp1_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, PUBLISHING_GALLERY3_TYPE_SESSION, PublishingGallery3Session); -#line 704 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp2_ = self->priv->item_path; -#line 704 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp3_ = publishing_gallery3_gallery_get_item_tags_ur_ls_transaction_new (_tmp1_, _tmp2_); -#line 704 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp4_ = _tmp3_; -#line 704 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _publishing_rest_support_session_unref0 (_tmp1_); -#line 704 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - tag_urls_txn = _tmp4_; -#line 5960 "GalleryConnector.c" - { - PublishingGallery3GalleryGetItemTagsURLsTransaction* _tmp5_; -#line 709 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp5_ = tag_urls_txn; -#line 709 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - publishing_rest_support_transaction_execute (G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), &_inner_error_); -#line 709 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 709 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - if (_inner_error_->domain == SPIT_PUBLISHING_PUBLISHING_ERROR) { -#line 5971 "GalleryConnector.c" - goto __catch6_spit_publishing_publishing_error; - } -#line 709 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _publishing_rest_support_transaction_unref0 (tag_urls_txn); -#line 709 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 709 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_clear_error (&_inner_error_); -#line 709 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - return NULL; -#line 5982 "GalleryConnector.c" - } - } - goto __finally6; - __catch6_spit_publishing_publishing_error: - { - GError* err = NULL; - GError* _tmp6_; - const gchar* _tmp7_; - gchar* _tmp8_; -#line 708 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - err = _inner_error_; -#line 708 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _inner_error_ = NULL; -#line 711 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp6_ = err; -#line 711 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp7_ = _tmp6_->message; -#line 711 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_debug ("GalleryConnector.vala:711: Problem getting the item_tags URL: %s", _tmp7_); -#line 713 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp8_ = g_strdup (""); -#line 713 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - result = _tmp8_; -#line 713 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_error_free0 (err); -#line 713 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _publishing_rest_support_transaction_unref0 (tag_urls_txn); -#line 713 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - return result; -#line 6012 "GalleryConnector.c" - } - __finally6: -#line 708 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 708 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _publishing_rest_support_transaction_unref0 (tag_urls_txn); -#line 708 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 708 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_clear_error (&_inner_error_); -#line 708 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - return NULL; -#line 6025 "GalleryConnector.c" - } -#line 716 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp9_ = tag_urls_txn; -#line 716 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp10_ = publishing_gallery3_gallery_get_item_tags_ur_ls_transaction_get_item_tags_path (_tmp9_); -#line 716 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - result = _tmp10_; -#line 716 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _publishing_rest_support_transaction_unref0 (tag_urls_txn); -#line 716 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - return result; -#line 6037 "GalleryConnector.c" -} - - -static gchar* -publishing_gallery3_gallery_upload_transaction_get_tag_url (PublishingGallery3GalleryUploadTransaction* self, - const gchar* tag) -{ - gchar* result = NULL; - PublishingGallery3GalleryGetTagTransaction* tag_txn = NULL; - PublishingRESTSupportSession* _tmp0_; - PublishingGallery3Session* _tmp1_; - PublishingGallery3GalleryGetTagTransaction* _tmp2_; - PublishingGallery3GalleryGetTagTransaction* _tmp3_; - PublishingGallery3GalleryGetTagTransaction* _tmp8_; - gchar* _tmp9_; - GError * _inner_error_ = NULL; -#line 719 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_return_val_if_fail (PUBLISHING_GALLERY3_IS_GALLERY_UPLOAD_TRANSACTION (self), NULL); -#line 719 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_return_val_if_fail (tag != NULL, NULL); -#line 721 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp0_ = publishing_rest_support_transaction_get_parent_session (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction)); -#line 721 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp1_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, PUBLISHING_GALLERY3_TYPE_SESSION, PublishingGallery3Session); -#line 721 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp2_ = publishing_gallery3_gallery_get_tag_transaction_new (_tmp1_, tag); -#line 721 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp3_ = _tmp2_; -#line 721 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _publishing_rest_support_session_unref0 (_tmp1_); -#line 721 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - tag_txn = _tmp3_; -#line 6070 "GalleryConnector.c" - { - PublishingGallery3GalleryGetTagTransaction* _tmp4_; -#line 726 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp4_ = tag_txn; -#line 726 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - publishing_rest_support_transaction_execute (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), &_inner_error_); -#line 726 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 726 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - if (_inner_error_->domain == SPIT_PUBLISHING_PUBLISHING_ERROR) { -#line 6081 "GalleryConnector.c" - goto __catch7_spit_publishing_publishing_error; - } -#line 726 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _publishing_rest_support_transaction_unref0 (tag_txn); -#line 726 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 726 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_clear_error (&_inner_error_); -#line 726 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - return NULL; -#line 6092 "GalleryConnector.c" - } - } - goto __finally7; - __catch7_spit_publishing_publishing_error: - { - GError* err = NULL; - GError* _tmp5_; - const gchar* _tmp6_; - gchar* _tmp7_; -#line 725 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - err = _inner_error_; -#line 725 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _inner_error_ = NULL; -#line 728 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp5_ = err; -#line 728 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp6_ = _tmp5_->message; -#line 728 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_debug ("GalleryConnector.vala:728: Problem getting the tags URL: %s", _tmp6_); -#line 730 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp7_ = g_strdup (""); -#line 730 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - result = _tmp7_; -#line 730 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_error_free0 (err); -#line 730 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _publishing_rest_support_transaction_unref0 (tag_txn); -#line 730 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - return result; -#line 6122 "GalleryConnector.c" - } - __finally7: -#line 725 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 725 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _publishing_rest_support_transaction_unref0 (tag_txn); -#line 725 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 725 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_clear_error (&_inner_error_); -#line 725 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - return NULL; -#line 6135 "GalleryConnector.c" - } -#line 733 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp8_ = tag_txn; -#line 733 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp9_ = publishing_gallery3_gallery_get_tag_transaction_tag_url (_tmp8_); -#line 733 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - result = _tmp9_; -#line 733 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _publishing_rest_support_transaction_unref0 (tag_txn); -#line 733 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - return result; -#line 6147 "GalleryConnector.c" -} - - -static gpointer -_g_error_copy0 (gpointer self) -{ -#line 781 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - return self ? g_error_copy (self) : NULL; -#line 6156 "GalleryConnector.c" -} - - -static void -publishing_gallery3_gallery_upload_transaction_on_upload_completed (PublishingGallery3GalleryUploadTransaction* self, - GError** error) -{ - PublishingGallery3PublishingParameters* _tmp0_; - gboolean _tmp1_; - gboolean _tmp2_; - GError * _inner_error_ = NULL; -#line 737 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_return_if_fail (PUBLISHING_GALLERY3_IS_GALLERY_UPLOAD_TRANSACTION (self)); -#line 740 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_debug ("GalleryConnector.vala:740: EVENT: upload completed"); -#line 742 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp0_ = self->priv->parameters; -#line 742 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp1_ = publishing_gallery3_publishing_parameters_get_strip_metadata (_tmp0_); -#line 742 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp2_ = _tmp1_; -#line 742 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - if (!_tmp2_) { -#line 6180 "GalleryConnector.c" - gchar** keywords = NULL; - gint keywords_length1 = 0; - gint _keywords_size_ = 0; - SpitPublishingPublishable* _tmp3_; - gint _tmp4_; - gchar** _tmp5_; - gchar** _tmp6_; - gint _tmp6__length1; - gchar* _tmp7_; - const gchar* _tmp8_; - gchar* _tmp9_; - gchar* _tmp10_; - const gchar* _tmp11_; - const gchar* _tmp12_; - gboolean _tmp13_ = FALSE; - const gchar* _tmp14_; - gchar** _tmp17_; - gint _tmp17__length1; -#line 746 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_debug ("GalleryConnector.vala:746: EVENT: evaluating tags"); -#line 748 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp3_ = G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_UPLOAD_TRANSACTION, PublishingRESTSupportUploadTransaction)->publishable; -#line 748 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp5_ = spit_publishing_publishable_get_publishing_keywords (_tmp3_, &_tmp4_); -#line 748 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - keywords = (_vala_array_free (keywords, keywords_length1, (GDestroyNotify) g_free), NULL); -#line 748 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - keywords = _tmp5_; -#line 748 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - keywords_length1 = _tmp4_; -#line 748 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _keywords_size_ = keywords_length1; -#line 751 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp6_ = keywords; -#line 751 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp6__length1 = keywords_length1; -#line 751 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - if (NULL == _tmp6_) { -#line 752 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_debug ("GalleryConnector.vala:752: No tags"); -#line 753 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - keywords = (_vala_array_free (keywords, keywords_length1, (GDestroyNotify) g_free), NULL); -#line 753 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - return; -#line 6225 "GalleryConnector.c" - } -#line 757 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp7_ = publishing_gallery3_gallery_upload_transaction_get_new_item_url (self); -#line 757 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_free0 (self->priv->item_url); -#line 757 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self->priv->item_url = _tmp7_; -#line 758 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp8_ = self->priv->item_url; -#line 758 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp9_ = publishing_gallery3_strip_session_url (_tmp8_); -#line 758 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_free0 (self->priv->item_path); -#line 758 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self->priv->item_path = _tmp9_; -#line 759 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp10_ = publishing_gallery3_gallery_upload_transaction_get_new_item_tags_path (self); -#line 759 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_free0 (self->priv->item_tags_path); -#line 759 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self->priv->item_tags_path = _tmp10_; -#line 760 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp11_ = self->priv->item_path; -#line 760 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_debug ("GalleryConnector.vala:760: new item path is %s", _tmp11_); -#line 761 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp12_ = self->priv->item_tags_path; -#line 761 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_debug ("GalleryConnector.vala:761: item_tags path is %s", _tmp12_); -#line 764 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp14_ = self->priv->item_path; -#line 764 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - if (g_strcmp0 ("", _tmp14_) == 0) { -#line 764 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp13_ = TRUE; -#line 6261 "GalleryConnector.c" - } else { - const gchar* _tmp15_; -#line 764 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp15_ = self->priv->item_tags_path; -#line 764 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp13_ = g_strcmp0 ("", _tmp15_) == 0; -#line 6268 "GalleryConnector.c" - } -#line 764 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - if (_tmp13_) { -#line 6272 "GalleryConnector.c" - GError* _tmp16_; -#line 765 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp16_ = g_error_new_literal (SPIT_PUBLISHING_PUBLISHING_ERROR, SPIT_PUBLISHING_PUBLISHING_ERROR_COMMUNICATION_FAILED, "Could not obtain URL of uploaded item or its " "\"item_tags\" relationship URL"); -#line 765 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _inner_error_ = _tmp16_; -#line 765 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - if (_inner_error_->domain == SPIT_PUBLISHING_PUBLISHING_ERROR) { -#line 765 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_propagate_error (error, _inner_error_); -#line 765 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - keywords = (_vala_array_free (keywords, keywords_length1, (GDestroyNotify) g_free), NULL); -#line 765 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - return; -#line 6286 "GalleryConnector.c" - } else { -#line 765 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - keywords = (_vala_array_free (keywords, keywords_length1, (GDestroyNotify) g_free), NULL); -#line 765 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 765 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_clear_error (&_inner_error_); -#line 765 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - return; -#line 6296 "GalleryConnector.c" - } - } -#line 772 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp17_ = keywords; -#line 772 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp17__length1 = keywords_length1; -#line 6303 "GalleryConnector.c" - { - gchar** tag_collection = NULL; - gint tag_collection_length1 = 0; - gint _tag_collection_size_ = 0; - gint tag_it = 0; -#line 772 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - tag_collection = _tmp17_; -#line 772 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - tag_collection_length1 = _tmp17__length1; -#line 772 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - for (tag_it = 0; tag_it < _tmp17__length1; tag_it = tag_it + 1) { -#line 6315 "GalleryConnector.c" - gchar* _tmp18_; - gchar* tag = NULL; -#line 772 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp18_ = g_strdup (tag_collection[tag_it]); -#line 772 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - tag = _tmp18_; -#line 6322 "GalleryConnector.c" - { - const gchar* _tmp19_; - const gchar* _tmp20_; - gchar* _tmp21_; - gchar* _tmp22_; - gchar* new_tag_url = NULL; - const gchar* _tmp23_; - gchar* _tmp24_; -#line 773 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp19_ = tag; -#line 773 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp20_ = string_to_string (_tmp19_); -#line 773 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp21_ = g_strconcat ("Found tag: ", _tmp20_, NULL); -#line 773 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp22_ = _tmp21_; -#line 773 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_debug ("GalleryConnector.vala:773: %s", _tmp22_); -#line 773 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_free0 (_tmp22_); -#line 774 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp23_ = tag; -#line 774 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp24_ = publishing_gallery3_gallery_upload_transaction_get_tag_url (self, _tmp23_); -#line 774 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - new_tag_url = _tmp24_; -#line 6349 "GalleryConnector.c" - { - const gchar* _tmp25_; -#line 777 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp25_ = new_tag_url; -#line 777 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - publishing_gallery3_gallery_upload_transaction_do_set_tag_relationship (self, _tmp25_, &_inner_error_); -#line 777 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 777 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - if (_inner_error_->domain == SPIT_PUBLISHING_PUBLISHING_ERROR) { -#line 6360 "GalleryConnector.c" - goto __catch8_spit_publishing_publishing_error; - } -#line 777 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_free0 (new_tag_url); -#line 777 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_free0 (tag); -#line 777 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - keywords = (_vala_array_free (keywords, keywords_length1, (GDestroyNotify) g_free), NULL); -#line 777 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 777 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_clear_error (&_inner_error_); -#line 777 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - return; -#line 6375 "GalleryConnector.c" - } - } - goto __finally8; - __catch8_spit_publishing_publishing_error: - { - GError* err = NULL; - GError* _tmp26_; - const gchar* _tmp27_; - GError* _tmp28_; - GError* _tmp29_; -#line 776 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - err = _inner_error_; -#line 776 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _inner_error_ = NULL; -#line 779 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp26_ = err; -#line 779 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp27_ = _tmp26_->message; -#line 779 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_debug ("Problem setting the relationship between tag " "and item: %s", _tmp27_); -#line 781 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp28_ = err; -#line 781 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp29_ = _g_error_copy0 (_tmp28_); -#line 781 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _inner_error_ = _tmp29_; -#line 781 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_error_free0 (err); -#line 6404 "GalleryConnector.c" - goto __finally8; - } - __finally8: -#line 776 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 776 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - if (_inner_error_->domain == SPIT_PUBLISHING_PUBLISHING_ERROR) { -#line 776 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_propagate_error (error, _inner_error_); -#line 776 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_free0 (new_tag_url); -#line 776 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_free0 (tag); -#line 776 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - keywords = (_vala_array_free (keywords, keywords_length1, (GDestroyNotify) g_free), NULL); -#line 776 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - return; -#line 6422 "GalleryConnector.c" - } else { -#line 776 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_free0 (new_tag_url); -#line 776 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_free0 (tag); -#line 776 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - keywords = (_vala_array_free (keywords, keywords_length1, (GDestroyNotify) g_free), NULL); -#line 776 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 776 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_clear_error (&_inner_error_); -#line 776 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - return; -#line 6436 "GalleryConnector.c" - } - } -#line 772 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_free0 (new_tag_url); -#line 772 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_free0 (tag); -#line 6443 "GalleryConnector.c" - } - } - } -#line 742 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - keywords = (_vala_array_free (keywords, keywords_length1, (GDestroyNotify) g_free), NULL); -#line 6449 "GalleryConnector.c" - } -} - - -static void -publishing_gallery3_gallery_upload_transaction_real_execute (PublishingRESTSupportTransaction* base, - GError** error) -{ - PublishingGallery3GalleryUploadTransaction * self; - GError * _inner_error_ = NULL; -#line 789 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_GALLERY3_TYPE_GALLERY_UPLOAD_TRANSACTION, PublishingGallery3GalleryUploadTransaction); -#line 791 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - PUBLISHING_REST_SUPPORT_TRANSACTION_CLASS (publishing_gallery3_gallery_upload_transaction_parent_class)->execute (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_UPLOAD_TRANSACTION, PublishingRESTSupportUploadTransaction), PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), &_inner_error_); -#line 791 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 791 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - if (_inner_error_->domain == SPIT_PUBLISHING_PUBLISHING_ERROR) { -#line 791 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_propagate_error (error, _inner_error_); -#line 791 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - return; -#line 6472 "GalleryConnector.c" - } else { -#line 791 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 791 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_clear_error (&_inner_error_); -#line 791 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - return; -#line 6480 "GalleryConnector.c" - } - } -#line 794 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - publishing_gallery3_gallery_upload_transaction_on_upload_completed (self, &_inner_error_); -#line 794 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 794 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - if (_inner_error_->domain == SPIT_PUBLISHING_PUBLISHING_ERROR) { -#line 794 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_propagate_error (error, _inner_error_); -#line 794 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - return; -#line 6493 "GalleryConnector.c" - } else { -#line 794 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 794 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_clear_error (&_inner_error_); -#line 794 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - return; -#line 6501 "GalleryConnector.c" - } - } -} - - -static void -publishing_gallery3_gallery_upload_transaction_class_init (PublishingGallery3GalleryUploadTransactionClass * klass) -{ -#line 585 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - publishing_gallery3_gallery_upload_transaction_parent_class = g_type_class_peek_parent (klass); -#line 585 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - ((PublishingRESTSupportTransactionClass *) klass)->finalize = publishing_gallery3_gallery_upload_transaction_finalize; -#line 585 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_type_class_add_private (klass, sizeof (PublishingGallery3GalleryUploadTransactionPrivate)); -#line 585 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - ((PublishingRESTSupportTransactionClass *) klass)->execute = (void (*) (PublishingRESTSupportTransaction *, GError**)) publishing_gallery3_gallery_upload_transaction_real_execute; -#line 6518 "GalleryConnector.c" -} - - -static void -publishing_gallery3_gallery_upload_transaction_instance_init (PublishingGallery3GalleryUploadTransaction * self) -{ -#line 585 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self->priv = PUBLISHING_GALLERY3_GALLERY_UPLOAD_TRANSACTION_GET_PRIVATE (self); -#line 6527 "GalleryConnector.c" -} - - -static void -publishing_gallery3_gallery_upload_transaction_finalize (PublishingRESTSupportTransaction * obj) -{ - PublishingGallery3GalleryUploadTransaction * self; -#line 585 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, PUBLISHING_GALLERY3_TYPE_GALLERY_UPLOAD_TRANSACTION, PublishingGallery3GalleryUploadTransaction); -#line 588 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _publishing_rest_support_session_unref0 (self->priv->session); -#line 589 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_object_unref0 (self->priv->generator); -#line 590 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _publishing_gallery3_publishing_parameters_unref0 (self->priv->parameters); -#line 591 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_free0 (self->priv->item_url); -#line 592 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_free0 (self->priv->item_path); -#line 593 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_free0 (self->priv->item_tags_path); -#line 585 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - PUBLISHING_REST_SUPPORT_TRANSACTION_CLASS (publishing_gallery3_gallery_upload_transaction_parent_class)->finalize (obj); -#line 6551 "GalleryConnector.c" -} - - -GType -publishing_gallery3_gallery_upload_transaction_get_type (void) -{ - static volatile gsize publishing_gallery3_gallery_upload_transaction_type_id__volatile = 0; - if (g_once_init_enter (&publishing_gallery3_gallery_upload_transaction_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (PublishingGallery3GalleryUploadTransactionClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) publishing_gallery3_gallery_upload_transaction_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PublishingGallery3GalleryUploadTransaction), 0, (GInstanceInitFunc) publishing_gallery3_gallery_upload_transaction_instance_init, NULL }; - GType publishing_gallery3_gallery_upload_transaction_type_id; - publishing_gallery3_gallery_upload_transaction_type_id = g_type_register_static (PUBLISHING_REST_SUPPORT_TYPE_UPLOAD_TRANSACTION, "PublishingGallery3GalleryUploadTransaction", &g_define_type_info, 0); - g_once_init_leave (&publishing_gallery3_gallery_upload_transaction_type_id__volatile, publishing_gallery3_gallery_upload_transaction_type_id); - } - return publishing_gallery3_gallery_upload_transaction_type_id__volatile; -} - - -PublishingGallery3GalleryPublisher* -publishing_gallery3_gallery_publisher_construct (GType object_type, - SpitPublishingService* service, - SpitPublishingPluginHost* host) -{ - PublishingGallery3GalleryPublisher * self = NULL; - PublishingGallery3Session* _tmp0_; -#line 814 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_return_val_if_fail (SPIT_PUBLISHING_IS_SERVICE (service), NULL); -#line 814 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_return_val_if_fail (SPIT_PUBLISHING_IS_PLUGIN_HOST (host), NULL); -#line 814 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self = (PublishingGallery3GalleryPublisher*) g_object_new (object_type, NULL); -#line 816 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self->priv->service = service; -#line 817 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self->priv->host = host; -#line 818 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp0_ = publishing_gallery3_session_new (); -#line 818 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _publishing_rest_support_session_unref0 (self->priv->session); -#line 818 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self->priv->session = _tmp0_; -#line 814 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - return self; -#line 6594 "GalleryConnector.c" -} - - -PublishingGallery3GalleryPublisher* -publishing_gallery3_gallery_publisher_new (SpitPublishingService* service, - SpitPublishingPluginHost* host) -{ -#line 814 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - return publishing_gallery3_gallery_publisher_construct (PUBLISHING_GALLERY3_TYPE_GALLERY_PUBLISHER, service, host); -#line 6604 "GalleryConnector.c" -} - - -static gboolean -publishing_gallery3_gallery_publisher_real_is_running (SpitPublishingPublisher* base) -{ - PublishingGallery3GalleryPublisher * self; - gboolean result = FALSE; - gboolean _tmp0_; -#line 821 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_GALLERY3_TYPE_GALLERY_PUBLISHER, PublishingGallery3GalleryPublisher); -#line 822 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp0_ = self->priv->running; -#line 822 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - result = _tmp0_; -#line 822 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - return result; -#line 6622 "GalleryConnector.c" -} - - -static SpitPublishingService* -publishing_gallery3_gallery_publisher_real_get_service (SpitPublishingPublisher* base) -{ - PublishingGallery3GalleryPublisher * self; - SpitPublishingService* result = NULL; - SpitPublishingService* _tmp0_; - SpitPublishingService* _tmp1_; -#line 825 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_GALLERY3_TYPE_GALLERY_PUBLISHER, PublishingGallery3GalleryPublisher); -#line 826 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp0_ = self->priv->service; -#line 826 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp1_ = _g_object_ref0 (_tmp0_); -#line 826 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - result = _tmp1_; -#line 826 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - return result; -#line 6643 "GalleryConnector.c" -} - - -static void -publishing_gallery3_gallery_publisher_real_start (SpitPublishingPublisher* base) -{ - PublishingGallery3GalleryPublisher * self; - SpitPublishingPluginHost* _tmp0_; - gchar* _tmp1_; - gboolean _tmp2_ = FALSE; - const gchar* _tmp3_; -#line 829 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_GALLERY3_TYPE_GALLERY_PUBLISHER, PublishingGallery3GalleryPublisher); -#line 830 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - if (spit_publishing_publisher_is_running (G_TYPE_CHECK_INSTANCE_CAST (self, SPIT_PUBLISHING_TYPE_PUBLISHER, SpitPublishingPublisher))) { -#line 831 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - return; -#line 6661 "GalleryConnector.c" - } -#line 833 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp0_ = self->priv->host; -#line 833 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - if (_tmp0_ == NULL) { -#line 834 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_error ("GalleryConnector.vala:834: %s", "GalleryPublisher: start( ): can't start; this " "publisher is not restartable."); -#line 6669 "GalleryConnector.c" - } -#line 837 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_debug ("GalleryConnector.vala:837: GalleryPublisher: starting interaction."); -#line 839 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self->priv->running = TRUE; -#line 841 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp1_ = publishing_gallery3_gallery_publisher_get_api_key (self); -#line 841 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_free0 (self->priv->key); -#line 841 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self->priv->key = _tmp1_; -#line 843 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp3_ = self->priv->key; -#line 843 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - if (NULL == _tmp3_) { -#line 843 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp2_ = TRUE; -#line 6687 "GalleryConnector.c" - } else { - const gchar* _tmp4_; -#line 843 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp4_ = self->priv->key; -#line 843 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp2_ = g_strcmp0 ("", _tmp4_) == 0; -#line 6694 "GalleryConnector.c" - } -#line 843 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - if (_tmp2_) { -#line 844 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - publishing_gallery3_gallery_publisher_do_show_service_welcome_pane (self); -#line 6700 "GalleryConnector.c" - } else { - gchar* url = NULL; - gchar* _tmp5_; - gchar* username = NULL; - gchar* _tmp6_; - gboolean _tmp7_ = FALSE; - gboolean _tmp8_ = FALSE; - const gchar* _tmp9_; -#line 846 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp5_ = publishing_gallery3_gallery_publisher_get_gallery_url (self); -#line 846 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - url = _tmp5_; -#line 847 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp6_ = publishing_gallery3_gallery_publisher_get_gallery_username (self); -#line 847 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - username = _tmp6_; -#line 849 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp9_ = username; -#line 849 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - if (NULL == _tmp9_) { -#line 849 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp8_ = TRUE; -#line 6723 "GalleryConnector.c" - } else { - const gchar* _tmp10_; -#line 849 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp10_ = self->priv->key; -#line 849 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp8_ = NULL == _tmp10_; -#line 6730 "GalleryConnector.c" - } -#line 849 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - if (_tmp8_) { -#line 849 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp7_ = TRUE; -#line 6736 "GalleryConnector.c" - } else { - const gchar* _tmp11_; -#line 849 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp11_ = url; -#line 849 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp7_ = NULL == _tmp11_; -#line 6743 "GalleryConnector.c" - } -#line 849 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - if (_tmp7_) { -#line 850 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - publishing_gallery3_gallery_publisher_do_show_service_welcome_pane (self); -#line 6749 "GalleryConnector.c" - } else { - const gchar* _tmp12_; - const gchar* _tmp13_; - SpitPublishingPluginHost* _tmp14_; - PublishingGallery3Session* _tmp15_; - const gchar* _tmp16_; - const gchar* _tmp17_; - const gchar* _tmp18_; -#line 852 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp12_ = username; -#line 852 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp13_ = url; -#line 852 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_debug ("ACTION: attempting network login for user " "'%s' at URL '%s' from saved credentials.", _tmp12_, _tmp13_); -#line 856 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp14_ = self->priv->host; -#line 856 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - spit_publishing_plugin_host_install_account_fetch_wait_pane (_tmp14_); -#line 858 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp15_ = self->priv->session; -#line 858 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp16_ = url; -#line 858 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp17_ = username; -#line 858 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp18_ = self->priv->key; -#line 858 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - publishing_gallery3_session_authenticate (_tmp15_, _tmp16_, _tmp17_, _tmp18_); -#line 861 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - publishing_gallery3_gallery_publisher_do_fetch_album_urls (self); -#line 6780 "GalleryConnector.c" - } -#line 843 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_free0 (username); -#line 843 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_free0 (url); -#line 6786 "GalleryConnector.c" - } -} - - -static void -publishing_gallery3_gallery_publisher_real_stop (SpitPublishingPublisher* base) -{ - PublishingGallery3GalleryPublisher * self; -#line 866 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_GALLERY3_TYPE_GALLERY_PUBLISHER, PublishingGallery3GalleryPublisher); -#line 867 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_debug ("GalleryConnector.vala:867: GalleryPublisher: stop( ) invoked."); -#line 869 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self->priv->running = FALSE; -#line 6801 "GalleryConnector.c" -} - - -gchar* -publishing_gallery3_gallery_publisher_get_api_key (PublishingGallery3GalleryPublisher* self) -{ - gchar* result = NULL; - SpitPublishingPluginHost* _tmp0_; - gchar* _tmp1_; -#line 874 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_return_val_if_fail (PUBLISHING_GALLERY3_IS_GALLERY_PUBLISHER (self), NULL); -#line 875 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp0_ = self->priv->host; -#line 875 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp1_ = spit_host_interface_get_config_string (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, SPIT_TYPE_HOST_INTERFACE, SpitHostInterface), "api-key", NULL); -#line 875 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - result = _tmp1_; -#line 875 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - return result; -#line 6821 "GalleryConnector.c" -} - - -void -publishing_gallery3_gallery_publisher_set_api_key (PublishingGallery3GalleryPublisher* self, - const gchar* key) -{ - SpitPublishingPluginHost* _tmp0_; -#line 878 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_return_if_fail (PUBLISHING_GALLERY3_IS_GALLERY_PUBLISHER (self)); -#line 878 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_return_if_fail (key != NULL); -#line 879 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp0_ = self->priv->host; -#line 879 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - spit_host_interface_set_config_string (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, SPIT_TYPE_HOST_INTERFACE, SpitHostInterface), "api-key", key); -#line 6838 "GalleryConnector.c" -} - - -gchar* -publishing_gallery3_gallery_publisher_get_gallery_url (PublishingGallery3GalleryPublisher* self) -{ - gchar* result = NULL; - SpitPublishingPluginHost* _tmp0_; - gchar* _tmp1_; -#line 883 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_return_val_if_fail (PUBLISHING_GALLERY3_IS_GALLERY_PUBLISHER (self), NULL); -#line 884 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp0_ = self->priv->host; -#line 884 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp1_ = spit_host_interface_get_config_string (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, SPIT_TYPE_HOST_INTERFACE, SpitHostInterface), "url", NULL); -#line 884 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - result = _tmp1_; -#line 884 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - return result; -#line 6858 "GalleryConnector.c" -} - - -void -publishing_gallery3_gallery_publisher_set_gallery_url (PublishingGallery3GalleryPublisher* self, - const gchar* url) -{ - SpitPublishingPluginHost* _tmp0_; -#line 887 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_return_if_fail (PUBLISHING_GALLERY3_IS_GALLERY_PUBLISHER (self)); -#line 887 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_return_if_fail (url != NULL); -#line 888 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp0_ = self->priv->host; -#line 888 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - spit_host_interface_set_config_string (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, SPIT_TYPE_HOST_INTERFACE, SpitHostInterface), "url", url); -#line 6875 "GalleryConnector.c" -} - - -gchar* -publishing_gallery3_gallery_publisher_get_gallery_username (PublishingGallery3GalleryPublisher* self) -{ - gchar* result = NULL; - SpitPublishingPluginHost* _tmp0_; - gchar* _tmp1_; -#line 892 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_return_val_if_fail (PUBLISHING_GALLERY3_IS_GALLERY_PUBLISHER (self), NULL); -#line 893 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp0_ = self->priv->host; -#line 893 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp1_ = spit_host_interface_get_config_string (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, SPIT_TYPE_HOST_INTERFACE, SpitHostInterface), "username", NULL); -#line 893 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - result = _tmp1_; -#line 893 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - return result; -#line 6895 "GalleryConnector.c" -} - - -void -publishing_gallery3_gallery_publisher_set_gallery_username (PublishingGallery3GalleryPublisher* self, - const gchar* username) -{ - SpitPublishingPluginHost* _tmp0_; -#line 896 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_return_if_fail (PUBLISHING_GALLERY3_IS_GALLERY_PUBLISHER (self)); -#line 896 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_return_if_fail (username != NULL); -#line 897 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp0_ = self->priv->host; -#line 897 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - spit_host_interface_set_config_string (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, SPIT_TYPE_HOST_INTERFACE, SpitHostInterface), "username", username); -#line 6912 "GalleryConnector.c" -} - - -static gboolean* -_bool_dup (gboolean* self) -{ - gboolean* dup; -#line 901 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - dup = g_new0 (gboolean, 1); -#line 901 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - memcpy (dup, self, sizeof (gboolean)); -#line 901 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - return dup; -#line 6926 "GalleryConnector.c" -} - - -static gpointer -__bool_dup0 (gpointer self) -{ -#line 901 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - return self ? _bool_dup (self) : NULL; -#line 6935 "GalleryConnector.c" -} - - -gboolean* -publishing_gallery3_gallery_publisher_get_persistent_strip_metadata (PublishingGallery3GalleryPublisher* self) -{ - gboolean* result = NULL; - SpitPublishingPluginHost* _tmp0_; - gboolean _tmp1_; - gboolean* _tmp2_; -#line 900 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_return_val_if_fail (PUBLISHING_GALLERY3_IS_GALLERY_PUBLISHER (self), NULL); -#line 901 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp0_ = self->priv->host; -#line 901 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp1_ = spit_host_interface_get_config_bool (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, SPIT_TYPE_HOST_INTERFACE, SpitHostInterface), "strip-metadata", FALSE); -#line 901 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp2_ = __bool_dup0 (&_tmp1_); -#line 901 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - result = _tmp2_; -#line 901 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - return result; -#line 6958 "GalleryConnector.c" -} - - -void -publishing_gallery3_gallery_publisher_set_persistent_strip_metadata (PublishingGallery3GalleryPublisher* self, - gboolean strip_metadata) -{ - SpitPublishingPluginHost* _tmp0_; -#line 904 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_return_if_fail (PUBLISHING_GALLERY3_IS_GALLERY_PUBLISHER (self)); -#line 905 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp0_ = self->priv->host; -#line 905 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - spit_host_interface_set_config_bool (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, SPIT_TYPE_HOST_INTERFACE, SpitHostInterface), "strip-metadata", strip_metadata); -#line 6973 "GalleryConnector.c" -} - - -static gint* -_int_dup (gint* self) -{ - gint* dup; -#line 909 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - dup = g_new0 (gint, 1); -#line 909 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - memcpy (dup, self, sizeof (gint)); -#line 909 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - return dup; -#line 6987 "GalleryConnector.c" -} - - -static gpointer -__int_dup0 (gpointer self) -{ -#line 909 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - return self ? _int_dup (self) : NULL; -#line 6996 "GalleryConnector.c" -} - - -gint* -publishing_gallery3_gallery_publisher_get_scaling_constraint_id (PublishingGallery3GalleryPublisher* self) -{ - gint* result = NULL; - SpitPublishingPluginHost* _tmp0_; - gint _tmp1_; - gint* _tmp2_; -#line 908 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_return_val_if_fail (PUBLISHING_GALLERY3_IS_GALLERY_PUBLISHER (self), NULL); -#line 909 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp0_ = self->priv->host; -#line 909 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp1_ = spit_host_interface_get_config_int (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, SPIT_TYPE_HOST_INTERFACE, SpitHostInterface), "scaling-constraint-id", 0); -#line 909 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp2_ = __int_dup0 (&_tmp1_); -#line 909 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - result = _tmp2_; -#line 909 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - return result; -#line 7019 "GalleryConnector.c" -} - - -void -publishing_gallery3_gallery_publisher_set_scaling_constraint_id (PublishingGallery3GalleryPublisher* self, - gint constraint) -{ - SpitPublishingPluginHost* _tmp0_; -#line 912 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_return_if_fail (PUBLISHING_GALLERY3_IS_GALLERY_PUBLISHER (self)); -#line 913 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp0_ = self->priv->host; -#line 913 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - spit_host_interface_set_config_int (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, SPIT_TYPE_HOST_INTERFACE, SpitHostInterface), "scaling-constraint-id", constraint); -#line 7034 "GalleryConnector.c" -} - - -gint* -publishing_gallery3_gallery_publisher_get_scaling_pixels (PublishingGallery3GalleryPublisher* self) -{ - gint* result = NULL; - SpitPublishingPluginHost* _tmp0_; - gint _tmp1_; - gint* _tmp2_; -#line 916 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_return_val_if_fail (PUBLISHING_GALLERY3_IS_GALLERY_PUBLISHER (self), NULL); -#line 917 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp0_ = self->priv->host; -#line 917 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp1_ = spit_host_interface_get_config_int (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, SPIT_TYPE_HOST_INTERFACE, SpitHostInterface), "scaling-pixels", 1024); -#line 917 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp2_ = __int_dup0 (&_tmp1_); -#line 917 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - result = _tmp2_; -#line 917 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - return result; -#line 7057 "GalleryConnector.c" -} - - -void -publishing_gallery3_gallery_publisher_set_scaling_pixels (PublishingGallery3GalleryPublisher* self, - gint pixels) -{ - SpitPublishingPluginHost* _tmp0_; -#line 920 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_return_if_fail (PUBLISHING_GALLERY3_IS_GALLERY_PUBLISHER (self)); -#line 921 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp0_ = self->priv->host; -#line 921 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - spit_host_interface_set_config_int (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, SPIT_TYPE_HOST_INTERFACE, SpitHostInterface), "scaling-pixels", pixels); -#line 7072 "GalleryConnector.c" -} - - -static void -_publishing_gallery3_gallery_publisher_on_service_welcome_login_spit_publishing_login_callback (gpointer self) -{ -#line 928 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - publishing_gallery3_gallery_publisher_on_service_welcome_login ((PublishingGallery3GalleryPublisher*) self); -#line 7081 "GalleryConnector.c" -} - - -static void -publishing_gallery3_gallery_publisher_do_show_service_welcome_pane (PublishingGallery3GalleryPublisher* self) -{ - SpitPublishingPluginHost* _tmp0_; -#line 925 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_return_if_fail (PUBLISHING_GALLERY3_IS_GALLERY_PUBLISHER (self)); -#line 926 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_debug ("GalleryConnector.vala:926: ACTION: showing service welcome pane."); -#line 928 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp0_ = self->priv->host; -#line 928 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - spit_publishing_plugin_host_install_welcome_pane (_tmp0_, PUBLISHING_GALLERY3_SERVICE_WELCOME_MESSAGE, _publishing_gallery3_gallery_publisher_on_service_welcome_login_spit_publishing_login_callback, self); -#line 7097 "GalleryConnector.c" -} - - -static void -_publishing_gallery3_gallery_publisher_on_credentials_go_back_publishing_gallery3_credentials_pane_go_back (PublishingGallery3CredentialsPane* _sender, - gpointer self) -{ -#line 941 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - publishing_gallery3_gallery_publisher_on_credentials_go_back ((PublishingGallery3GalleryPublisher*) self); -#line 7107 "GalleryConnector.c" -} - - -static void -_publishing_gallery3_gallery_publisher_on_credentials_login_publishing_gallery3_credentials_pane_login (PublishingGallery3CredentialsPane* _sender, - const gchar* url, - const gchar* uname, - const gchar* password, - const gchar* key, - gpointer self) -{ -#line 942 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - publishing_gallery3_gallery_publisher_on_credentials_login ((PublishingGallery3GalleryPublisher*) self, url, uname, password); -#line 7121 "GalleryConnector.c" -} - - -static void -publishing_gallery3_gallery_publisher_do_show_credentials_pane (PublishingGallery3GalleryPublisher* self, - PublishingGallery3CredentialsPaneMode mode) -{ - gchar* _tmp0_; - gchar* _tmp1_; - PublishingGallery3Session* _tmp2_; - PublishingGallery3CredentialsPane* creds_pane = NULL; - SpitPublishingPluginHost* _tmp3_; - gchar* _tmp4_; - gchar* _tmp5_; - gchar* _tmp6_; - gchar* _tmp7_; - gchar* _tmp8_; - gchar* _tmp9_; - PublishingGallery3CredentialsPane* _tmp10_; - PublishingGallery3CredentialsPane* _tmp11_; - SpitPublishingPluginHost* _tmp12_; -#line 932 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_return_if_fail (PUBLISHING_GALLERY3_IS_GALLERY_PUBLISHER (self)); -#line 933 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp0_ = publishing_gallery3_credentials_pane_mode_to_string (mode); -#line 933 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp1_ = _tmp0_; -#line 933 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_debug ("GalleryConnector.vala:933: ACTION: showing credentials capture pane in" \ -" %s mode.", _tmp1_); -#line 933 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_free0 (_tmp1_); -#line 936 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp2_ = self->priv->session; -#line 936 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - publishing_gallery3_session_deauthenticate (_tmp2_); -#line 938 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp3_ = self->priv->host; -#line 938 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp4_ = publishing_gallery3_gallery_publisher_get_gallery_url (self); -#line 938 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp5_ = _tmp4_; -#line 938 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp6_ = publishing_gallery3_gallery_publisher_get_gallery_username (self); -#line 938 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp7_ = _tmp6_; -#line 938 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp8_ = publishing_gallery3_gallery_publisher_get_api_key (self); -#line 938 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp9_ = _tmp8_; -#line 938 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp10_ = publishing_gallery3_credentials_pane_new (_tmp3_, mode, _tmp5_, _tmp7_, _tmp9_); -#line 938 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp11_ = _tmp10_; -#line 938 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_free0 (_tmp9_); -#line 938 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_free0 (_tmp7_); -#line 938 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_free0 (_tmp5_); -#line 938 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - creds_pane = _tmp11_; -#line 941 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_signal_connect_object (creds_pane, "go-back", (GCallback) _publishing_gallery3_gallery_publisher_on_credentials_go_back_publishing_gallery3_credentials_pane_go_back, self, 0); -#line 942 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_signal_connect_object (creds_pane, "login", (GCallback) _publishing_gallery3_gallery_publisher_on_credentials_login_publishing_gallery3_credentials_pane_login, self, 0); -#line 944 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp12_ = self->priv->host; -#line 944 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - spit_publishing_plugin_host_install_dialog_pane (_tmp12_, G_TYPE_CHECK_INSTANCE_CAST (creds_pane, SPIT_PUBLISHING_TYPE_DIALOG_PANE, SpitPublishingDialogPane), SPIT_PUBLISHING_PLUGIN_HOST_BUTTON_MODE_CANCEL); -#line 932 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_object_unref0 (creds_pane); -#line 7193 "GalleryConnector.c" -} - - -static void -_publishing_gallery3_gallery_publisher_on_key_fetch_error_publishing_rest_support_transaction_network_error (PublishingRESTSupportTransaction* _sender, - GError* err, - gpointer self) -{ -#line 956 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - publishing_gallery3_gallery_publisher_on_key_fetch_error ((PublishingGallery3GalleryPublisher*) self, _sender, err); -#line 7204 "GalleryConnector.c" -} - - -static void -_publishing_gallery3_gallery_publisher_on_key_fetch_complete_publishing_rest_support_transaction_completed (PublishingRESTSupportTransaction* _sender, - gpointer self) -{ -#line 957 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - publishing_gallery3_gallery_publisher_on_key_fetch_complete ((PublishingGallery3GalleryPublisher*) self, _sender); -#line 7214 "GalleryConnector.c" -} - - -static void -publishing_gallery3_gallery_publisher_do_network_login (PublishingGallery3GalleryPublisher* self, - const gchar* url, - const gchar* username, - const gchar* password) -{ - SpitPublishingPluginHost* _tmp0_; - PublishingGallery3KeyFetchTransaction* fetch_trans = NULL; - PublishingGallery3Session* _tmp1_; - PublishingGallery3KeyFetchTransaction* _tmp2_; - GError * _inner_error_ = NULL; -#line 947 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_return_if_fail (PUBLISHING_GALLERY3_IS_GALLERY_PUBLISHER (self)); -#line 947 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_return_if_fail (url != NULL); -#line 947 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_return_if_fail (username != NULL); -#line 947 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_return_if_fail (password != NULL); -#line 949 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_debug ("ACTION: attempting network login for user '%s' at URL " "'%s'.", username, url); -#line 952 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp0_ = self->priv->host; -#line 952 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - spit_publishing_plugin_host_install_login_wait_pane (_tmp0_); -#line 954 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp1_ = self->priv->session; -#line 954 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp2_ = publishing_gallery3_key_fetch_transaction_new (_tmp1_, url, username, password); -#line 954 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - fetch_trans = _tmp2_; -#line 956 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (fetch_trans, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "network-error", (GCallback) _publishing_gallery3_gallery_publisher_on_key_fetch_error_publishing_rest_support_transaction_network_error, self, 0); -#line 957 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (fetch_trans, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "completed", (GCallback) _publishing_gallery3_gallery_publisher_on_key_fetch_complete_publishing_rest_support_transaction_completed, self, 0); -#line 7253 "GalleryConnector.c" - { -#line 960 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - publishing_rest_support_transaction_execute (G_TYPE_CHECK_INSTANCE_CAST (fetch_trans, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), &_inner_error_); -#line 960 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 960 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - if (_inner_error_->domain == SPIT_PUBLISHING_PUBLISHING_ERROR) { -#line 7261 "GalleryConnector.c" - goto __catch9_spit_publishing_publishing_error; - } -#line 960 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _publishing_rest_support_transaction_unref0 (fetch_trans); -#line 960 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 960 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_clear_error (&_inner_error_); -#line 960 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - return; -#line 7272 "GalleryConnector.c" - } - } - goto __finally9; - __catch9_spit_publishing_publishing_error: - { - GError* err = NULL; - GError* _tmp3_; -#line 959 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - err = _inner_error_; -#line 959 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _inner_error_ = NULL; -#line 962 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_debug ("GalleryConnector.vala:962: Caught an error attempting to login"); -#line 965 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp3_ = err; -#line 965 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - publishing_gallery3_gallery_publisher_on_key_fetch_error (self, G_TYPE_CHECK_INSTANCE_CAST (fetch_trans, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), _tmp3_); -#line 959 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_error_free0 (err); -#line 7292 "GalleryConnector.c" - } - __finally9: -#line 959 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 959 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _publishing_rest_support_transaction_unref0 (fetch_trans); -#line 959 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 959 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_clear_error (&_inner_error_); -#line 959 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - return; -#line 7305 "GalleryConnector.c" - } -#line 947 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _publishing_rest_support_transaction_unref0 (fetch_trans); -#line 7309 "GalleryConnector.c" -} - - -static void -_publishing_gallery3_gallery_publisher_on_album_urls_fetch_error_publishing_rest_support_transaction_network_error (PublishingRESTSupportTransaction* _sender, - GError* err, - gpointer self) -{ -#line 975 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - publishing_gallery3_gallery_publisher_on_album_urls_fetch_error ((PublishingGallery3GalleryPublisher*) self, _sender, err); -#line 7320 "GalleryConnector.c" -} - - -static void -_publishing_gallery3_gallery_publisher_on_album_urls_fetch_complete_publishing_rest_support_transaction_completed (PublishingRESTSupportTransaction* _sender, - gpointer self) -{ -#line 976 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - publishing_gallery3_gallery_publisher_on_album_urls_fetch_complete ((PublishingGallery3GalleryPublisher*) self, _sender); -#line 7330 "GalleryConnector.c" -} - - -static void -publishing_gallery3_gallery_publisher_do_fetch_album_urls (PublishingGallery3GalleryPublisher* self) -{ - SpitPublishingPluginHost* _tmp0_; - PublishingGallery3GetAlbumURLsTransaction* album_trans = NULL; - PublishingGallery3Session* _tmp1_; - PublishingGallery3GetAlbumURLsTransaction* _tmp2_; - GError * _inner_error_ = NULL; -#line 969 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_return_if_fail (PUBLISHING_GALLERY3_IS_GALLERY_PUBLISHER (self)); -#line 971 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp0_ = self->priv->host; -#line 971 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - spit_publishing_plugin_host_install_account_fetch_wait_pane (_tmp0_); -#line 973 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp1_ = self->priv->session; -#line 973 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp2_ = publishing_gallery3_get_album_ur_ls_transaction_new (_tmp1_); -#line 973 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - album_trans = _tmp2_; -#line 975 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (album_trans, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "network-error", (GCallback) _publishing_gallery3_gallery_publisher_on_album_urls_fetch_error_publishing_rest_support_transaction_network_error, self, 0); -#line 976 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (album_trans, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "completed", (GCallback) _publishing_gallery3_gallery_publisher_on_album_urls_fetch_complete_publishing_rest_support_transaction_completed, self, 0); -#line 7358 "GalleryConnector.c" - { -#line 979 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - publishing_rest_support_transaction_execute (G_TYPE_CHECK_INSTANCE_CAST (album_trans, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), &_inner_error_); -#line 979 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 979 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - if (_inner_error_->domain == SPIT_PUBLISHING_PUBLISHING_ERROR) { -#line 7366 "GalleryConnector.c" - goto __catch10_spit_publishing_publishing_error; - } -#line 979 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _publishing_rest_support_transaction_unref0 (album_trans); -#line 979 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 979 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_clear_error (&_inner_error_); -#line 979 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - return; -#line 7377 "GalleryConnector.c" - } - } - goto __finally10; - __catch10_spit_publishing_publishing_error: - { - GError* err = NULL; - GError* _tmp3_; -#line 978 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - err = _inner_error_; -#line 978 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _inner_error_ = NULL; -#line 981 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_debug ("GalleryConnector.vala:981: Caught an error attempting to fetch albums"); -#line 984 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp3_ = err; -#line 984 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - publishing_gallery3_gallery_publisher_on_album_urls_fetch_error (self, G_TYPE_CHECK_INSTANCE_CAST (album_trans, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), _tmp3_); -#line 978 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_error_free0 (err); -#line 7397 "GalleryConnector.c" - } - __finally10: -#line 978 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 978 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _publishing_rest_support_transaction_unref0 (album_trans); -#line 978 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 978 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_clear_error (&_inner_error_); -#line 978 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - return; -#line 7410 "GalleryConnector.c" - } -#line 969 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _publishing_rest_support_transaction_unref0 (album_trans); -#line 7414 "GalleryConnector.c" -} - - -static void -_publishing_gallery3_gallery_publisher_on_album_fetch_error_publishing_rest_support_transaction_network_error (PublishingRESTSupportTransaction* _sender, - GError* err, - gpointer self) -{ -#line 993 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - publishing_gallery3_gallery_publisher_on_album_fetch_error ((PublishingGallery3GalleryPublisher*) self, _sender, err); -#line 7425 "GalleryConnector.c" -} - - -static void -_publishing_gallery3_gallery_publisher_on_album_fetch_complete_publishing_rest_support_transaction_completed (PublishingRESTSupportTransaction* _sender, - gpointer self) -{ -#line 994 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - publishing_gallery3_gallery_publisher_on_album_fetch_complete ((PublishingGallery3GalleryPublisher*) self, _sender); -#line 7435 "GalleryConnector.c" -} - - -static void -publishing_gallery3_gallery_publisher_do_fetch_albums (PublishingGallery3GalleryPublisher* self, - gchar** album_urls, - int album_urls_length1, - guint start) -{ - PublishingGallery3GetAlbumsTransaction* album_trans = NULL; - PublishingGallery3Session* _tmp0_; - PublishingGallery3GetAlbumsTransaction* _tmp1_; - GError * _inner_error_ = NULL; -#line 989 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_return_if_fail (PUBLISHING_GALLERY3_IS_GALLERY_PUBLISHER (self)); -#line 991 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp0_ = self->priv->session; -#line 991 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp1_ = publishing_gallery3_get_albums_transaction_new (_tmp0_, album_urls, album_urls_length1, start); -#line 991 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - album_trans = _tmp1_; -#line 993 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (album_trans, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "network-error", (GCallback) _publishing_gallery3_gallery_publisher_on_album_fetch_error_publishing_rest_support_transaction_network_error, self, 0); -#line 994 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (album_trans, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "completed", (GCallback) _publishing_gallery3_gallery_publisher_on_album_fetch_complete_publishing_rest_support_transaction_completed, self, 0); -#line 7461 "GalleryConnector.c" - { -#line 997 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - publishing_rest_support_transaction_execute (G_TYPE_CHECK_INSTANCE_CAST (album_trans, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), &_inner_error_); -#line 997 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 997 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - if (_inner_error_->domain == SPIT_PUBLISHING_PUBLISHING_ERROR) { -#line 7469 "GalleryConnector.c" - goto __catch11_spit_publishing_publishing_error; - } -#line 997 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _publishing_rest_support_transaction_unref0 (album_trans); -#line 997 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 997 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_clear_error (&_inner_error_); -#line 997 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - return; -#line 7480 "GalleryConnector.c" - } - } - goto __finally11; - __catch11_spit_publishing_publishing_error: - { - GError* err = NULL; - GError* _tmp2_; -#line 996 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - err = _inner_error_; -#line 996 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _inner_error_ = NULL; -#line 1001 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp2_ = err; -#line 1001 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - publishing_gallery3_gallery_publisher_on_album_fetch_error (self, G_TYPE_CHECK_INSTANCE_CAST (album_trans, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), _tmp2_); -#line 996 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_error_free0 (err); -#line 7498 "GalleryConnector.c" - } - __finally11: -#line 996 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 996 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _publishing_rest_support_transaction_unref0 (album_trans); -#line 996 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 996 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_clear_error (&_inner_error_); -#line 996 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - return; -#line 7511 "GalleryConnector.c" - } -#line 989 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _publishing_rest_support_transaction_unref0 (album_trans); -#line 7515 "GalleryConnector.c" -} - - -static void -_publishing_gallery3_gallery_publisher_on_publishing_options_pane_publish_publishing_gallery3_publishing_options_pane_publish (PublishingGallery3PublishingOptionsPane* _sender, - PublishingGallery3PublishingParameters* parameters, - gpointer self) -{ -#line 1032 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - publishing_gallery3_gallery_publisher_on_publishing_options_pane_publish ((PublishingGallery3GalleryPublisher*) self, parameters); -#line 7526 "GalleryConnector.c" -} - - -static void -_publishing_gallery3_gallery_publisher_on_publishing_options_pane_logout_publishing_gallery3_publishing_options_pane_logout (PublishingGallery3PublishingOptionsPane* _sender, - gpointer self) -{ -#line 1034 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - publishing_gallery3_gallery_publisher_on_publishing_options_pane_logout ((PublishingGallery3GalleryPublisher*) self); -#line 7536 "GalleryConnector.c" -} - - -static void -publishing_gallery3_gallery_publisher_do_show_publishing_options_pane (PublishingGallery3GalleryPublisher* self, - const gchar* url, - const gchar* username) -{ - GtkBuilder* builder = NULL; - GtkBuilder* _tmp0_; - SpitPublishingPluginHost* _tmp9_; - PublishingGallery3Album** _tmp10_; - gint _tmp10__length1; - GtkBuilder* _tmp11_; - gboolean* _tmp12_; - gboolean* _tmp13_; - gint* _tmp14_; - gint* _tmp15_; - gint* _tmp16_; - gint* _tmp17_; - PublishingGallery3PublishingOptionsPane* _tmp18_; - PublishingGallery3PublishingOptionsPane* _tmp19_; - PublishingGallery3PublishingOptionsPane* _tmp20_; - SpitPublishingPluginHost* _tmp21_; - PublishingGallery3PublishingOptionsPane* _tmp22_; - GError * _inner_error_ = NULL; -#line 1006 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_return_if_fail (PUBLISHING_GALLERY3_IS_GALLERY_PUBLISHER (self)); -#line 1006 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_return_if_fail (url != NULL); -#line 1006 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_return_if_fail (username != NULL); -#line 1009 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_debug ("GalleryConnector.vala:1009: ACTION: showing publishing options pane"); -#line 1011 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp0_ = gtk_builder_new (); -#line 1011 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - builder = _tmp0_; -#line 7575 "GalleryConnector.c" - { - GtkBuilder* _tmp1_; -#line 1014 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp1_ = builder; -#line 1014 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - gtk_builder_add_from_resource (_tmp1_, PLUGIN_RESOURCE_PATH "/gallery3_publishing_options_pane.ui", &_inner_error_); -#line 1014 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 7584 "GalleryConnector.c" - goto __catch12_g_error; - } - } - goto __finally12; - __catch12_g_error: - { - GError* e = NULL; - GError* _tmp2_; - const gchar* _tmp3_; - SpitPublishingPluginHost* _tmp4_; - gchar* _tmp5_; - gchar* _tmp6_; - GError* _tmp7_; - GError* _tmp8_; -#line 1013 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - e = _inner_error_; -#line 1013 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _inner_error_ = NULL; -#line 1018 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp2_ = e; -#line 1018 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp3_ = _tmp2_->message; -#line 1018 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_warning ("GalleryConnector.vala:1018: Could not parse UI file! Error: %s.", _tmp3_); -#line 1019 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp4_ = self->priv->host; -#line 1019 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp5_ = g_strdup_printf (_ ("A file required for publishing is unavailable. Publishing to %s can’t " \ -"continue."), PUBLISHING_GALLERY3_SERVICE_NAME); -#line 1019 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp6_ = _tmp5_; -#line 1019 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp7_ = g_error_new_literal (SPIT_PUBLISHING_PUBLISHING_ERROR, SPIT_PUBLISHING_PUBLISHING_ERROR_LOCAL_FILE_ERROR, _tmp6_); -#line 1019 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp8_ = _tmp7_; -#line 1019 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - spit_publishing_plugin_host_post_error (_tmp4_, _tmp8_); -#line 1019 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_error_free0 (_tmp8_); -#line 1019 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_free0 (_tmp6_); -#line 1025 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_error_free0 (e); -#line 1025 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_object_unref0 (builder); -#line 1025 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - return; -#line 7631 "GalleryConnector.c" - } - __finally12: -#line 1013 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 1013 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_object_unref0 (builder); -#line 1013 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 1013 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_clear_error (&_inner_error_); -#line 1013 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - return; -#line 7644 "GalleryConnector.c" - } -#line 1028 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp9_ = self->priv->host; -#line 1028 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp10_ = self->priv->albums; -#line 1028 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp10__length1 = self->priv->albums_length1; -#line 1028 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp11_ = builder; -#line 1028 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp12_ = publishing_gallery3_gallery_publisher_get_persistent_strip_metadata (self); -#line 1028 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp13_ = _tmp12_; -#line 1028 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp14_ = publishing_gallery3_gallery_publisher_get_scaling_constraint_id (self); -#line 1028 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp15_ = _tmp14_; -#line 1028 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp16_ = publishing_gallery3_gallery_publisher_get_scaling_pixels (self); -#line 1028 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp17_ = _tmp16_; -#line 1028 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp18_ = publishing_gallery3_publishing_options_pane_new (_tmp9_, url, username, _tmp10_, _tmp10__length1, _tmp11_, *_tmp13_, *_tmp15_, *_tmp17_); -#line 1028 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_object_unref0 (self->priv->publishing_options_pane); -#line 1028 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self->priv->publishing_options_pane = _tmp18_; -#line 1028 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_free0 (_tmp17_); -#line 1028 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_free0 (_tmp15_); -#line 1028 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_free0 (_tmp13_); -#line 1032 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp19_ = self->priv->publishing_options_pane; -#line 1032 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_signal_connect_object (_tmp19_, "publish", (GCallback) _publishing_gallery3_gallery_publisher_on_publishing_options_pane_publish_publishing_gallery3_publishing_options_pane_publish, self, 0); -#line 1034 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp20_ = self->priv->publishing_options_pane; -#line 1034 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_signal_connect_object (_tmp20_, "logout", (GCallback) _publishing_gallery3_gallery_publisher_on_publishing_options_pane_logout_publishing_gallery3_publishing_options_pane_logout, self, 0); -#line 1036 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp21_ = self->priv->host; -#line 1036 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp22_ = self->priv->publishing_options_pane; -#line 1036 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - spit_publishing_plugin_host_install_dialog_pane (_tmp21_, G_TYPE_CHECK_INSTANCE_CAST (_tmp22_, SPIT_PUBLISHING_TYPE_DIALOG_PANE, SpitPublishingDialogPane), SPIT_PUBLISHING_PLUGIN_HOST_BUTTON_MODE_CANCEL); -#line 1006 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_object_unref0 (builder); -#line 7694 "GalleryConnector.c" -} - - -static void -_publishing_gallery3_gallery_publisher_on_album_create_error_publishing_rest_support_transaction_network_error (PublishingRESTSupportTransaction* _sender, - GError* err, - gpointer self) -{ -#line 1046 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - publishing_gallery3_gallery_publisher_on_album_create_error ((PublishingGallery3GalleryPublisher*) self, _sender, err); -#line 7705 "GalleryConnector.c" -} - - -static void -_publishing_gallery3_gallery_publisher_on_album_create_complete_publishing_rest_support_transaction_completed (PublishingRESTSupportTransaction* _sender, - gpointer self) -{ -#line 1047 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - publishing_gallery3_gallery_publisher_on_album_create_complete ((PublishingGallery3GalleryPublisher*) self, _sender); -#line 7715 "GalleryConnector.c" -} - - -static void -publishing_gallery3_gallery_publisher_do_create_album (PublishingGallery3GalleryPublisher* self, - PublishingGallery3PublishingParameters* parameters) -{ - PublishingGallery3GalleryAlbumCreateTransaction* album_trans = NULL; - PublishingGallery3Session* _tmp0_; - PublishingGallery3GalleryAlbumCreateTransaction* _tmp1_; - GError * _inner_error_ = NULL; -#line 1040 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_return_if_fail (PUBLISHING_GALLERY3_IS_GALLERY_PUBLISHER (self)); -#line 1040 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_return_if_fail (PUBLISHING_GALLERY3_IS_PUBLISHING_PARAMETERS (parameters)); -#line 1042 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_debug ("GalleryConnector.vala:1042: ACTION: creating album"); -#line 1044 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp0_ = self->priv->session; -#line 1044 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp1_ = publishing_gallery3_gallery_album_create_transaction_new (_tmp0_, parameters); -#line 1044 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - album_trans = _tmp1_; -#line 1046 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (album_trans, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "network-error", (GCallback) _publishing_gallery3_gallery_publisher_on_album_create_error_publishing_rest_support_transaction_network_error, self, 0); -#line 1047 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (album_trans, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "completed", (GCallback) _publishing_gallery3_gallery_publisher_on_album_create_complete_publishing_rest_support_transaction_completed, self, 0); -#line 7743 "GalleryConnector.c" - { -#line 1050 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - publishing_rest_support_transaction_execute (G_TYPE_CHECK_INSTANCE_CAST (album_trans, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), &_inner_error_); -#line 1050 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 1050 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - if (_inner_error_->domain == SPIT_PUBLISHING_PUBLISHING_ERROR) { -#line 7751 "GalleryConnector.c" - goto __catch13_spit_publishing_publishing_error; - } -#line 1050 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _publishing_rest_support_transaction_unref0 (album_trans); -#line 1050 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 1050 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_clear_error (&_inner_error_); -#line 1050 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - return; -#line 7762 "GalleryConnector.c" - } - } - goto __finally13; - __catch13_spit_publishing_publishing_error: - { - GError* err = NULL; - GError* _tmp2_; -#line 1049 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - err = _inner_error_; -#line 1049 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _inner_error_ = NULL; -#line 1054 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp2_ = err; -#line 1054 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - publishing_gallery3_gallery_publisher_on_album_create_error (self, G_TYPE_CHECK_INSTANCE_CAST (album_trans, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), _tmp2_); -#line 1049 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_error_free0 (err); -#line 7780 "GalleryConnector.c" - } - __finally13: -#line 1049 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 1049 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _publishing_rest_support_transaction_unref0 (album_trans); -#line 1049 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 1049 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_clear_error (&_inner_error_); -#line 1049 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - return; -#line 7793 "GalleryConnector.c" - } -#line 1040 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _publishing_rest_support_transaction_unref0 (album_trans); -#line 7797 "GalleryConnector.c" -} - - -static void -_publishing_gallery3_gallery_publisher_on_publish_complete_publishing_rest_support_batch_uploader_upload_complete (PublishingRESTSupportBatchUploader* _sender, - gint num_photos_published, - gpointer self) -{ -#line 1083 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - publishing_gallery3_gallery_publisher_on_publish_complete ((PublishingGallery3GalleryPublisher*) self, _sender, num_photos_published); -#line 7808 "GalleryConnector.c" -} - - -static void -_publishing_gallery3_gallery_publisher_on_publish_error_publishing_rest_support_batch_uploader_upload_error (PublishingRESTSupportBatchUploader* _sender, - GError* err, - gpointer self) -{ -#line 1084 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - publishing_gallery3_gallery_publisher_on_publish_error ((PublishingGallery3GalleryPublisher*) self, _sender, err); -#line 7819 "GalleryConnector.c" -} - - -static void -_publishing_gallery3_gallery_publisher_on_upload_status_updated_spit_publishing_progress_callback (gint file_number, - gdouble fraction_complete, - gpointer self) -{ -#line 1085 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - publishing_gallery3_gallery_publisher_on_upload_status_updated ((PublishingGallery3GalleryPublisher*) self, file_number, fraction_complete); -#line 7830 "GalleryConnector.c" -} - - -static void -publishing_gallery3_gallery_publisher_do_publish (PublishingGallery3GalleryPublisher* self, - PublishingGallery3PublishingParameters* parameters) -{ - gboolean _tmp0_; - gboolean _tmp1_; - gint _tmp2_ = 0; - gint _tmp3_; - gint _tmp4_; - gint _tmp5_; - gint _tmp6_; - SpitPublishingPluginHost* _tmp7_; - SpitPublishingPluginHost* _tmp8_; - gint _tmp9_; - gint _tmp10_; - gboolean _tmp11_; - gboolean _tmp12_; - void* _tmp13_; - GDestroyNotify _tmp14_; - SpitPublishingProgressCallback _tmp15_; - PublishingGallery3Uploader* uploader = NULL; - PublishingGallery3Session* _tmp16_; - SpitPublishingPluginHost* _tmp17_; - gint _tmp18_; - SpitPublishingPublishable** _tmp19_; - SpitPublishingPublishable** _tmp20_; - gint _tmp20__length1; - PublishingGallery3Uploader* _tmp21_; - PublishingGallery3Uploader* _tmp22_; - PublishingGallery3Uploader* _tmp23_; - PublishingGallery3Uploader* _tmp24_; - PublishingGallery3Uploader* _tmp25_; -#line 1059 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_return_if_fail (PUBLISHING_GALLERY3_IS_GALLERY_PUBLISHER (self)); -#line 1059 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_return_if_fail (PUBLISHING_GALLERY3_IS_PUBLISHING_PARAMETERS (parameters)); -#line 1061 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_debug ("GalleryConnector.vala:1061: ACTION: publishing items"); -#line 1063 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp0_ = publishing_gallery3_publishing_parameters_get_strip_metadata (parameters); -#line 1063 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp1_ = _tmp0_; -#line 1063 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - publishing_gallery3_gallery_publisher_set_persistent_strip_metadata (self, _tmp1_); -#line 1065 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp3_ = publishing_gallery3_publishing_parameters_get_photo_major_axis_size (parameters); -#line 1065 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp4_ = _tmp3_; -#line 1065 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - if (_tmp4_ <= 0) { -#line 1065 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp2_ = 0; -#line 7886 "GalleryConnector.c" - } else { -#line 1065 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp2_ = 1; -#line 7890 "GalleryConnector.c" - } -#line 1064 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - publishing_gallery3_gallery_publisher_set_scaling_constraint_id (self, _tmp2_); -#line 1066 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp5_ = publishing_gallery3_publishing_parameters_get_photo_major_axis_size (parameters); -#line 1066 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp6_ = _tmp5_; -#line 1066 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - publishing_gallery3_gallery_publisher_set_scaling_pixels (self, _tmp6_); -#line 1067 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp7_ = self->priv->host; -#line 1067 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - spit_publishing_plugin_host_set_service_locked (_tmp7_, TRUE); -#line 1068 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp8_ = self->priv->host; -#line 1068 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp9_ = publishing_gallery3_publishing_parameters_get_photo_major_axis_size (parameters); -#line 1068 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp10_ = _tmp9_; -#line 1068 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp11_ = publishing_gallery3_publishing_parameters_get_strip_metadata (parameters); -#line 1068 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp12_ = _tmp11_; -#line 1068 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp15_ = spit_publishing_plugin_host_serialize_publishables (_tmp8_, _tmp10_, _tmp12_, &_tmp13_, &_tmp14_); -#line 1068 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - (self->priv->progress_reporter_target_destroy_notify == NULL) ? NULL : (self->priv->progress_reporter_target_destroy_notify (self->priv->progress_reporter_target), NULL); -#line 1068 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self->priv->progress_reporter = NULL; -#line 1068 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self->priv->progress_reporter_target = NULL; -#line 1068 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self->priv->progress_reporter_target_destroy_notify = NULL; -#line 1068 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self->priv->progress_reporter = _tmp15_; -#line 1068 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self->priv->progress_reporter_target = _tmp13_; -#line 1068 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self->priv->progress_reporter_target_destroy_notify = _tmp14_; -#line 1077 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - if (!spit_publishing_publisher_is_running (G_TYPE_CHECK_INSTANCE_CAST (self, SPIT_PUBLISHING_TYPE_PUBLISHER, SpitPublishingPublisher))) { -#line 1078 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - return; -#line 7934 "GalleryConnector.c" - } -#line 1080 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp16_ = self->priv->session; -#line 1080 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp17_ = self->priv->host; -#line 1080 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp19_ = spit_publishing_plugin_host_get_publishables (_tmp17_, &_tmp18_); -#line 1080 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp20_ = _tmp19_; -#line 1080 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp20__length1 = _tmp18_; -#line 1080 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp21_ = publishing_gallery3_uploader_new (_tmp16_, _tmp20_, _tmp18_, parameters); -#line 1080 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp22_ = _tmp21_; -#line 1080 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp20_ = (_vala_array_free (_tmp20_, _tmp20__length1, (GDestroyNotify) g_object_unref), NULL); -#line 1080 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - uploader = _tmp22_; -#line 1083 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp23_ = uploader; -#line 1083 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp23_, PUBLISHING_REST_SUPPORT_TYPE_BATCH_UPLOADER, PublishingRESTSupportBatchUploader), "upload-complete", (GCallback) _publishing_gallery3_gallery_publisher_on_publish_complete_publishing_rest_support_batch_uploader_upload_complete, self, 0); -#line 1084 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp24_ = uploader; -#line 1084 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp24_, PUBLISHING_REST_SUPPORT_TYPE_BATCH_UPLOADER, PublishingRESTSupportBatchUploader), "upload-error", (GCallback) _publishing_gallery3_gallery_publisher_on_publish_error_publishing_rest_support_batch_uploader_upload_error, self, 0); -#line 1085 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp25_ = uploader; -#line 1085 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - publishing_rest_support_batch_uploader_upload (G_TYPE_CHECK_INSTANCE_CAST (_tmp25_, PUBLISHING_REST_SUPPORT_TYPE_BATCH_UPLOADER, PublishingRESTSupportBatchUploader), _publishing_gallery3_gallery_publisher_on_upload_status_updated_spit_publishing_progress_callback, self); -#line 1059 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _publishing_rest_support_batch_uploader_unref0 (uploader); -#line 7968 "GalleryConnector.c" -} - - -static void -publishing_gallery3_gallery_publisher_do_show_success_pane (PublishingGallery3GalleryPublisher* self) -{ - SpitPublishingPluginHost* _tmp0_; - SpitPublishingPluginHost* _tmp1_; -#line 1089 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_return_if_fail (PUBLISHING_GALLERY3_IS_GALLERY_PUBLISHER (self)); -#line 1090 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_debug ("GalleryConnector.vala:1090: ACTION: showing success pane."); -#line 1092 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp0_ = self->priv->host; -#line 1092 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - spit_publishing_plugin_host_set_service_locked (_tmp0_, FALSE); -#line 1093 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp1_ = self->priv->host; -#line 1093 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - spit_publishing_plugin_host_install_success_pane (_tmp1_); -#line 7989 "GalleryConnector.c" -} - - -static void -publishing_gallery3_gallery_publisher_on_service_welcome_login (PublishingGallery3GalleryPublisher* self) -{ -#line 1097 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_return_if_fail (PUBLISHING_GALLERY3_IS_GALLERY_PUBLISHER (self)); -#line 1098 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - if (!spit_publishing_publisher_is_running (G_TYPE_CHECK_INSTANCE_CAST (self, SPIT_PUBLISHING_TYPE_PUBLISHER, SpitPublishingPublisher))) { -#line 1099 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - return; -#line 8002 "GalleryConnector.c" - } -#line 1101 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_debug ("GalleryConnector.vala:1101: EVENT: user clicked 'Login' in welcome pan" \ -"e."); -#line 1103 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - publishing_gallery3_gallery_publisher_do_show_credentials_pane (self, PUBLISHING_GALLERY3_CREDENTIALS_PANE_MODE_INTRO); -#line 8008 "GalleryConnector.c" -} - - -static void -publishing_gallery3_gallery_publisher_on_credentials_login (PublishingGallery3GalleryPublisher* self, - const gchar* url, - const gchar* username, - const gchar* password) -{ -#line 1106 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_return_if_fail (PUBLISHING_GALLERY3_IS_GALLERY_PUBLISHER (self)); -#line 1106 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_return_if_fail (url != NULL); -#line 1106 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_return_if_fail (username != NULL); -#line 1106 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_return_if_fail (password != NULL); -#line 1108 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - if (!spit_publishing_publisher_is_running (G_TYPE_CHECK_INSTANCE_CAST (self, SPIT_PUBLISHING_TYPE_PUBLISHER, SpitPublishingPublisher))) { -#line 1109 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - return; -#line 8030 "GalleryConnector.c" - } -#line 1111 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_debug ("GalleryConnector.vala:1111: EVENT: user '%s' clicked 'Login' in creden" \ -"tials pane.", username); -#line 1114 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - publishing_gallery3_gallery_publisher_set_gallery_url (self, url); -#line 1115 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - publishing_gallery3_gallery_publisher_set_gallery_username (self, username); -#line 1116 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - publishing_gallery3_gallery_publisher_do_network_login (self, url, username, password); -#line 8040 "GalleryConnector.c" -} - - -static void -publishing_gallery3_gallery_publisher_on_credentials_go_back (PublishingGallery3GalleryPublisher* self) -{ -#line 1119 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_return_if_fail (PUBLISHING_GALLERY3_IS_GALLERY_PUBLISHER (self)); -#line 1120 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - if (!spit_publishing_publisher_is_running (G_TYPE_CHECK_INSTANCE_CAST (self, SPIT_PUBLISHING_TYPE_PUBLISHER, SpitPublishingPublisher))) { -#line 1121 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - return; -#line 8053 "GalleryConnector.c" - } -#line 1123 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_debug ("GalleryConnector.vala:1123: EVENT: user is attempting to go back."); -#line 1125 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - publishing_gallery3_gallery_publisher_do_show_service_welcome_pane (self); -#line 8059 "GalleryConnector.c" -} - - -static void -publishing_gallery3_gallery_publisher_on_key_fetch_error (PublishingGallery3GalleryPublisher* self, - PublishingRESTSupportTransaction* bad_txn, - GError* err) -{ - guint _tmp0_; - guint _tmp1_; - PublishingGallery3Session* _tmp2_; - gchar* _tmp3_; - gchar* _tmp4_; -#line 1128 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_return_if_fail (PUBLISHING_GALLERY3_IS_GALLERY_PUBLISHER (self)); -#line 1128 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_return_if_fail (PUBLISHING_REST_SUPPORT_IS_TRANSACTION (bad_txn)); -#line 1131 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_signal_parse_name ("completed", PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, &_tmp0_, NULL, FALSE); -#line 1131 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_signal_handlers_disconnect_matched (bad_txn, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp0_, 0, NULL, (GCallback) _publishing_gallery3_gallery_publisher_on_key_fetch_complete_publishing_rest_support_transaction_completed, self); -#line 1132 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_signal_parse_name ("network-error", PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, &_tmp1_, NULL, FALSE); -#line 1132 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_signal_handlers_disconnect_matched (bad_txn, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp1_, 0, NULL, (GCallback) _publishing_gallery3_gallery_publisher_on_key_fetch_error_publishing_rest_support_transaction_network_error, self); -#line 1134 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - if (!spit_publishing_publisher_is_running (G_TYPE_CHECK_INSTANCE_CAST (self, SPIT_PUBLISHING_TYPE_PUBLISHER, SpitPublishingPublisher))) { -#line 1135 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - return; -#line 8089 "GalleryConnector.c" - } -#line 1138 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp2_ = self->priv->session; -#line 1138 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - if (publishing_rest_support_session_is_authenticated (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, PUBLISHING_REST_SUPPORT_TYPE_SESSION, PublishingRESTSupportSession))) { -#line 1139 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - return; -#line 8097 "GalleryConnector.c" - } -#line 1141 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp3_ = publishing_rest_support_transaction_get_response (bad_txn); -#line 1141 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp4_ = _tmp3_; -#line 1141 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_debug ("EVENT: network transaction to fetch key for login " "failed; response = '%s'.", _tmp4_); -#line 1141 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_free0 (_tmp4_); -#line 1150 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - if (publishing_rest_support_transaction_get_status_code (bad_txn) == ((guint) 403)) { -#line 1152 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - publishing_gallery3_gallery_publisher_do_show_credentials_pane (self, PUBLISHING_GALLERY3_CREDENTIALS_PANE_MODE_FAILED_RETRY); -#line 8111 "GalleryConnector.c" - } else { -#line 1154 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - if (publishing_rest_support_transaction_get_status_code (bad_txn) == ((guint) 400)) { -#line 1157 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - publishing_gallery3_gallery_publisher_do_show_credentials_pane (self, PUBLISHING_GALLERY3_CREDENTIALS_PANE_MODE_NOT_GALLERY_URL); -#line 8117 "GalleryConnector.c" - } else { - SpitPublishingPluginHost* _tmp5_; -#line 1160 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp5_ = self->priv->host; -#line 1160 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - spit_publishing_plugin_host_post_error (_tmp5_, err); -#line 8124 "GalleryConnector.c" - } - } -} - - -static void -publishing_gallery3_gallery_publisher_on_key_fetch_complete (PublishingGallery3GalleryPublisher* self, - PublishingRESTSupportTransaction* txn) -{ - guint _tmp0_; - guint _tmp1_; - PublishingGallery3Session* _tmp2_; - gchar* _tmp3_; - const gchar* _tmp4_; -#line 1164 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_return_if_fail (PUBLISHING_GALLERY3_IS_GALLERY_PUBLISHER (self)); -#line 1164 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_return_if_fail (PUBLISHING_REST_SUPPORT_IS_TRANSACTION (txn)); -#line 1166 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_signal_parse_name ("completed", PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, &_tmp0_, NULL, FALSE); -#line 1166 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_signal_handlers_disconnect_matched (txn, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp0_, 0, NULL, (GCallback) _publishing_gallery3_gallery_publisher_on_key_fetch_complete_publishing_rest_support_transaction_completed, self); -#line 1167 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_signal_parse_name ("network-error", PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, &_tmp1_, NULL, FALSE); -#line 1167 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_signal_handlers_disconnect_matched (txn, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp1_, 0, NULL, (GCallback) _publishing_gallery3_gallery_publisher_on_key_fetch_error_publishing_rest_support_transaction_network_error, self); -#line 1169 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - if (!spit_publishing_publisher_is_running (G_TYPE_CHECK_INSTANCE_CAST (self, SPIT_PUBLISHING_TYPE_PUBLISHER, SpitPublishingPublisher))) { -#line 1170 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - return; -#line 8155 "GalleryConnector.c" - } -#line 1173 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp2_ = self->priv->session; -#line 1173 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - if (publishing_rest_support_session_is_authenticated (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, PUBLISHING_REST_SUPPORT_TYPE_SESSION, PublishingRESTSupportSession))) { -#line 1174 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - return; -#line 8163 "GalleryConnector.c" - } -#line 1176 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp3_ = publishing_gallery3_key_fetch_transaction_get_key (G_TYPE_CHECK_INSTANCE_TYPE (txn, PUBLISHING_GALLERY3_TYPE_KEY_FETCH_TRANSACTION) ? ((PublishingGallery3KeyFetchTransaction*) txn) : NULL); -#line 1176 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_free0 (self->priv->key); -#line 1176 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self->priv->key = _tmp3_; -#line 1178 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp4_ = self->priv->key; -#line 1178 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - if (_tmp4_ == NULL) { -#line 1178 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_error ("GalleryConnector.vala:1178: key doesn\'t exist"); -#line 8177 "GalleryConnector.c" - } else { - gchar* url = NULL; - gchar* _tmp5_; - gchar* username = NULL; - gchar* _tmp6_; - const gchar* _tmp7_; - PublishingGallery3Session* _tmp8_; - const gchar* _tmp9_; - const gchar* _tmp10_; - const gchar* _tmp11_; -#line 1180 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp5_ = publishing_gallery3_gallery_publisher_get_gallery_url (self); -#line 1180 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - url = _tmp5_; -#line 1181 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp6_ = publishing_gallery3_gallery_publisher_get_gallery_username (self); -#line 1181 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - username = _tmp6_; -#line 1183 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_debug ("GalleryConnector.vala:1183: %s", "EVENT: network transaction to fetch key completed " "successfully."); -#line 1186 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp7_ = self->priv->key; -#line 1186 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - publishing_gallery3_gallery_publisher_set_api_key (self, _tmp7_); -#line 1187 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp8_ = self->priv->session; -#line 1187 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp9_ = url; -#line 1187 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp10_ = username; -#line 1187 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp11_ = self->priv->key; -#line 1187 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - publishing_gallery3_session_authenticate (_tmp8_, _tmp9_, _tmp10_, _tmp11_); -#line 1190 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - publishing_gallery3_gallery_publisher_do_fetch_album_urls (self); -#line 1178 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_free0 (username); -#line 1178 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_free0 (url); -#line 8218 "GalleryConnector.c" - } -} - - -static void -publishing_gallery3_gallery_publisher_on_album_urls_fetch_error (PublishingGallery3GalleryPublisher* self, - PublishingRESTSupportTransaction* bad_txn, - GError* err) -{ - guint _tmp0_; - guint _tmp1_; - PublishingGallery3Session* _tmp2_; - gchar* _tmp3_; - gchar* _tmp4_; -#line 1194 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_return_if_fail (PUBLISHING_GALLERY3_IS_GALLERY_PUBLISHER (self)); -#line 1194 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_return_if_fail (PUBLISHING_REST_SUPPORT_IS_TRANSACTION (bad_txn)); -#line 1197 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_signal_parse_name ("completed", PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, &_tmp0_, NULL, FALSE); -#line 1197 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_signal_handlers_disconnect_matched (bad_txn, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp0_, 0, NULL, (GCallback) _publishing_gallery3_gallery_publisher_on_album_urls_fetch_complete_publishing_rest_support_transaction_completed, self); -#line 1198 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_signal_parse_name ("network-error", PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, &_tmp1_, NULL, FALSE); -#line 1198 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_signal_handlers_disconnect_matched (bad_txn, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp1_, 0, NULL, (GCallback) _publishing_gallery3_gallery_publisher_on_album_urls_fetch_error_publishing_rest_support_transaction_network_error, self); -#line 1200 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - if (!spit_publishing_publisher_is_running (G_TYPE_CHECK_INSTANCE_CAST (self, SPIT_PUBLISHING_TYPE_PUBLISHER, SpitPublishingPublisher))) { -#line 1201 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - return; -#line 8249 "GalleryConnector.c" - } -#line 1204 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp2_ = self->priv->session; -#line 1204 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - if (!publishing_rest_support_session_is_authenticated (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, PUBLISHING_REST_SUPPORT_TYPE_SESSION, PublishingRESTSupportSession))) { -#line 1205 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - return; -#line 8257 "GalleryConnector.c" - } -#line 1207 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp3_ = publishing_rest_support_transaction_get_response (bad_txn); -#line 1207 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp4_ = _tmp3_; -#line 1207 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_debug ("EVENT: network transaction to fetch album URLs " "failed; response = \'%s\'.", _tmp4_); -#line 1207 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_free0 (_tmp4_); -#line 1216 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - if (publishing_rest_support_transaction_get_status_code (bad_txn) == ((guint) 403)) { -#line 1218 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - publishing_gallery3_gallery_publisher_do_show_credentials_pane (self, PUBLISHING_GALLERY3_CREDENTIALS_PANE_MODE_FAILED_RETRY); -#line 8271 "GalleryConnector.c" - } else { -#line 1220 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - if (publishing_rest_support_transaction_get_status_code (bad_txn) == ((guint) 400)) { -#line 1223 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - publishing_gallery3_gallery_publisher_do_show_credentials_pane (self, PUBLISHING_GALLERY3_CREDENTIALS_PANE_MODE_NOT_GALLERY_URL); -#line 8277 "GalleryConnector.c" - } else { - SpitPublishingPluginHost* _tmp5_; -#line 1226 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp5_ = self->priv->host; -#line 1226 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - spit_publishing_plugin_host_post_error (_tmp5_, err); -#line 8284 "GalleryConnector.c" - } - } -} - - -static void -publishing_gallery3_gallery_publisher_on_album_urls_fetch_complete (PublishingGallery3GalleryPublisher* self, - PublishingRESTSupportTransaction* txn) -{ - guint _tmp0_; - guint _tmp1_; - PublishingGallery3Session* _tmp2_; - gchar** album_urls = NULL; - gint _tmp3_; - gchar** _tmp4_; - gint album_urls_length1; - gint _album_urls_size_; - gchar** _tmp5_; - gint _tmp5__length1; -#line 1230 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_return_if_fail (PUBLISHING_GALLERY3_IS_GALLERY_PUBLISHER (self)); -#line 1230 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_return_if_fail (PUBLISHING_REST_SUPPORT_IS_TRANSACTION (txn)); -#line 1232 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_signal_parse_name ("completed", PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, &_tmp0_, NULL, FALSE); -#line 1232 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_signal_handlers_disconnect_matched (txn, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp0_, 0, NULL, (GCallback) _publishing_gallery3_gallery_publisher_on_album_urls_fetch_complete_publishing_rest_support_transaction_completed, self); -#line 1233 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_signal_parse_name ("network-error", PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, &_tmp1_, NULL, FALSE); -#line 1233 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_signal_handlers_disconnect_matched (txn, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp1_, 0, NULL, (GCallback) _publishing_gallery3_gallery_publisher_on_album_urls_fetch_error_publishing_rest_support_transaction_network_error, self); -#line 1235 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - if (!spit_publishing_publisher_is_running (G_TYPE_CHECK_INSTANCE_CAST (self, SPIT_PUBLISHING_TYPE_PUBLISHER, SpitPublishingPublisher))) { -#line 1236 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - return; -#line 8320 "GalleryConnector.c" - } -#line 1239 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp2_ = self->priv->session; -#line 1239 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - if (!publishing_rest_support_session_is_authenticated (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, PUBLISHING_REST_SUPPORT_TYPE_SESSION, PublishingRESTSupportSession))) { -#line 1240 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - return; -#line 8328 "GalleryConnector.c" - } -#line 1242 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_debug ("GalleryConnector.vala:1242: EVENT: retrieving all album URLs."); -#line 1244 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp4_ = publishing_gallery3_get_album_ur_ls_transaction_get_album_urls (G_TYPE_CHECK_INSTANCE_TYPE (txn, PUBLISHING_GALLERY3_TYPE_GET_ALBUM_UR_LS_TRANSACTION) ? ((PublishingGallery3GetAlbumURLsTransaction*) txn) : NULL, &_tmp3_); -#line 1244 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - album_urls = _tmp4_; -#line 1244 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - album_urls_length1 = _tmp3_; -#line 1244 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _album_urls_size_ = album_urls_length1; -#line 1247 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp5_ = album_urls; -#line 1247 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp5__length1 = album_urls_length1; -#line 1247 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - if (NULL == _tmp5_) { -#line 8346 "GalleryConnector.c" - gchar* url = NULL; - PublishingGallery3Session* _tmp6_; - const gchar* _tmp7_; - const gchar* _tmp8_; - gchar* _tmp9_; - gchar* username = NULL; - PublishingGallery3Session* _tmp10_; - const gchar* _tmp11_; - const gchar* _tmp12_; - gchar* _tmp13_; - const gchar* _tmp14_; - const gchar* _tmp15_; -#line 1249 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp6_ = self->priv->session; -#line 1249 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp7_ = publishing_gallery3_session_get_url (_tmp6_); -#line 1249 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp8_ = _tmp7_; -#line 1249 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp9_ = g_strdup (_tmp8_); -#line 1249 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - url = _tmp9_; -#line 1250 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp10_ = self->priv->session; -#line 1250 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp11_ = publishing_gallery3_session_get_username (_tmp10_); -#line 1250 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp12_ = _tmp11_; -#line 1250 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp13_ = g_strdup (_tmp12_); -#line 1250 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - username = _tmp13_; -#line 1252 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp14_ = url; -#line 1252 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp15_ = username; -#line 1252 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - publishing_gallery3_gallery_publisher_do_show_publishing_options_pane (self, _tmp14_, _tmp15_); -#line 1247 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_free0 (username); -#line 1247 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_free0 (url); -#line 8389 "GalleryConnector.c" - } else { - gchar** _tmp16_; - gint _tmp16__length1; -#line 1256 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp16_ = album_urls; -#line 1256 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp16__length1 = album_urls_length1; -#line 1256 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - publishing_gallery3_gallery_publisher_do_fetch_albums (self, _tmp16_, _tmp16__length1, (guint) 0); -#line 8399 "GalleryConnector.c" - } -#line 1230 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - album_urls = (_vala_array_free (album_urls, album_urls_length1, (GDestroyNotify) g_free), NULL); -#line 8403 "GalleryConnector.c" -} - - -static void -publishing_gallery3_gallery_publisher_on_album_fetch_error (PublishingGallery3GalleryPublisher* self, - PublishingRESTSupportTransaction* bad_txn, - GError* err) -{ - guint _tmp0_; - guint _tmp1_; - PublishingGallery3Session* _tmp2_; - gchar* _tmp3_; - gchar* _tmp4_; -#line 1259 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_return_if_fail (PUBLISHING_GALLERY3_IS_GALLERY_PUBLISHER (self)); -#line 1259 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_return_if_fail (PUBLISHING_REST_SUPPORT_IS_TRANSACTION (bad_txn)); -#line 1262 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_signal_parse_name ("completed", PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, &_tmp0_, NULL, FALSE); -#line 1262 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_signal_handlers_disconnect_matched (bad_txn, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp0_, 0, NULL, (GCallback) _publishing_gallery3_gallery_publisher_on_album_fetch_complete_publishing_rest_support_transaction_completed, self); -#line 1263 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_signal_parse_name ("network-error", PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, &_tmp1_, NULL, FALSE); -#line 1263 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_signal_handlers_disconnect_matched (bad_txn, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp1_, 0, NULL, (GCallback) _publishing_gallery3_gallery_publisher_on_album_fetch_error_publishing_rest_support_transaction_network_error, self); -#line 1265 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - if (!spit_publishing_publisher_is_running (G_TYPE_CHECK_INSTANCE_CAST (self, SPIT_PUBLISHING_TYPE_PUBLISHER, SpitPublishingPublisher))) { -#line 1266 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - return; -#line 8433 "GalleryConnector.c" - } -#line 1269 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp2_ = self->priv->session; -#line 1269 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - if (!publishing_rest_support_session_is_authenticated (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, PUBLISHING_REST_SUPPORT_TYPE_SESSION, PublishingRESTSupportSession))) { -#line 1270 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - return; -#line 8441 "GalleryConnector.c" - } -#line 1272 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp3_ = publishing_rest_support_transaction_get_response (bad_txn); -#line 1272 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp4_ = _tmp3_; -#line 1272 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_debug ("EVENT: network transaction to fetch albums " "failed; response = \'%s\'.", _tmp4_); -#line 1272 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_free0 (_tmp4_); -#line 1281 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - if (publishing_rest_support_transaction_get_status_code (bad_txn) == ((guint) 403)) { -#line 1283 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - publishing_gallery3_gallery_publisher_do_show_credentials_pane (self, PUBLISHING_GALLERY3_CREDENTIALS_PANE_MODE_FAILED_RETRY); -#line 8455 "GalleryConnector.c" - } else { -#line 1285 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - if (publishing_rest_support_transaction_get_status_code (bad_txn) == ((guint) 400)) { -#line 1288 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - publishing_gallery3_gallery_publisher_do_show_credentials_pane (self, PUBLISHING_GALLERY3_CREDENTIALS_PANE_MODE_NOT_GALLERY_URL); -#line 8461 "GalleryConnector.c" - } else { - SpitPublishingPluginHost* _tmp5_; -#line 1291 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp5_ = self->priv->host; -#line 1291 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - spit_publishing_plugin_host_post_error (_tmp5_, err); -#line 8468 "GalleryConnector.c" - } - } -} - - -static void -_vala_array_add5 (PublishingGallery3Album** * array, - int* length, - int* size, - PublishingGallery3Album* value) -{ -#line 1320 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - if ((*length) == (*size)) { -#line 1320 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - *size = (*size) ? (2 * (*size)) : 4; -#line 1320 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - *array = g_renew (PublishingGallery3Album*, *array, (*size) + 1); -#line 8486 "GalleryConnector.c" - } -#line 1320 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - (*array)[(*length)++] = value; -#line 1320 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - (*array)[*length] = NULL; -#line 8492 "GalleryConnector.c" -} - - -static void -publishing_gallery3_gallery_publisher_on_album_fetch_complete (PublishingGallery3GalleryPublisher* self, - PublishingRESTSupportTransaction* txn) -{ - guint _tmp0_; - guint _tmp1_; - PublishingGallery3Album** new_albums = NULL; - gint new_albums_length1; - gint _new_albums_size_; - PublishingGallery3Session* _tmp2_; - gboolean _tmp17_; - gboolean _tmp18_; - GError * _inner_error_ = NULL; -#line 1295 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_return_if_fail (PUBLISHING_GALLERY3_IS_GALLERY_PUBLISHER (self)); -#line 1295 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_return_if_fail (PUBLISHING_REST_SUPPORT_IS_TRANSACTION (txn)); -#line 1297 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_signal_parse_name ("completed", PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, &_tmp0_, NULL, FALSE); -#line 1297 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_signal_handlers_disconnect_matched (txn, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp0_, 0, NULL, (GCallback) _publishing_gallery3_gallery_publisher_on_album_fetch_complete_publishing_rest_support_transaction_completed, self); -#line 1298 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_signal_parse_name ("network-error", PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, &_tmp1_, NULL, FALSE); -#line 1298 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_signal_handlers_disconnect_matched (txn, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp1_, 0, NULL, (GCallback) _publishing_gallery3_gallery_publisher_on_album_fetch_error_publishing_rest_support_transaction_network_error, self); -#line 1300 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - new_albums = NULL; -#line 1300 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - new_albums_length1 = 0; -#line 1300 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _new_albums_size_ = new_albums_length1; -#line 1302 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - if (!spit_publishing_publisher_is_running (G_TYPE_CHECK_INSTANCE_CAST (self, SPIT_PUBLISHING_TYPE_PUBLISHER, SpitPublishingPublisher))) { -#line 1303 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - new_albums = (_vala_array_free (new_albums, new_albums_length1, (GDestroyNotify) publishing_gallery3_album_unref), NULL); -#line 1303 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - return; -#line 8533 "GalleryConnector.c" - } -#line 1306 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp2_ = self->priv->session; -#line 1306 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - if (!publishing_rest_support_session_is_authenticated (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, PUBLISHING_REST_SUPPORT_TYPE_SESSION, PublishingRESTSupportSession))) { -#line 1307 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - new_albums = (_vala_array_free (new_albums, new_albums_length1, (GDestroyNotify) publishing_gallery3_album_unref), NULL); -#line 1307 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - return; -#line 8543 "GalleryConnector.c" - } -#line 1309 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_debug ("GalleryConnector.vala:1309: EVENT: user is attempting to populate the " \ -"album list."); -#line 8547 "GalleryConnector.c" - { - PublishingGallery3Album** _tmp3_ = NULL; - gint _tmp4_; - PublishingGallery3Album** _tmp5_; - gint _tmp3__length1; - gint __tmp3__size_; - PublishingGallery3Album** _tmp6_; - gint _tmp6__length1; -#line 1313 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp5_ = publishing_gallery3_get_albums_transaction_get_albums (G_TYPE_CHECK_INSTANCE_TYPE (txn, PUBLISHING_GALLERY3_TYPE_GET_ALBUMS_TRANSACTION) ? ((PublishingGallery3GetAlbumsTransaction*) txn) : NULL, &_tmp4_, &_inner_error_); -#line 1313 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp3_ = _tmp5_; -#line 1313 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp3__length1 = _tmp4_; -#line 1313 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - __tmp3__size_ = _tmp3__length1; -#line 1313 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 1313 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - if (_inner_error_->domain == SPIT_PUBLISHING_PUBLISHING_ERROR) { -#line 8568 "GalleryConnector.c" - goto __catch14_spit_publishing_publishing_error; - } -#line 1313 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - new_albums = (_vala_array_free (new_albums, new_albums_length1, (GDestroyNotify) publishing_gallery3_album_unref), NULL); -#line 1313 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 1313 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_clear_error (&_inner_error_); -#line 1313 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - return; -#line 8579 "GalleryConnector.c" - } -#line 1312 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp6_ = _tmp3_; -#line 1312 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp6__length1 = _tmp3__length1; -#line 1312 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp3_ = NULL; -#line 1312 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp3__length1 = 0; -#line 1312 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - new_albums = (_vala_array_free (new_albums, new_albums_length1, (GDestroyNotify) publishing_gallery3_album_unref), NULL); -#line 1312 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - new_albums = _tmp6_; -#line 1312 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - new_albums_length1 = _tmp6__length1; -#line 1312 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _new_albums_size_ = new_albums_length1; -#line 1311 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp3_ = (_vala_array_free (_tmp3_, _tmp3__length1, (GDestroyNotify) publishing_gallery3_album_unref), NULL); -#line 8599 "GalleryConnector.c" - } - goto __finally14; - __catch14_spit_publishing_publishing_error: - { - GError* err = NULL; - GError* _tmp7_; -#line 1311 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - err = _inner_error_; -#line 1311 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _inner_error_ = NULL; -#line 1315 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp7_ = err; -#line 1315 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - publishing_gallery3_gallery_publisher_on_album_fetch_error (self, txn, _tmp7_); -#line 1311 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_error_free0 (err); -#line 8616 "GalleryConnector.c" - } - __finally14: -#line 1311 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 1311 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - new_albums = (_vala_array_free (new_albums, new_albums_length1, (GDestroyNotify) publishing_gallery3_album_unref), NULL); -#line 1311 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 1311 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_clear_error (&_inner_error_); -#line 1311 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - return; -#line 8629 "GalleryConnector.c" - } - { - gint i = 0; -#line 1319 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - i = 0; -#line 8635 "GalleryConnector.c" - { - gboolean _tmp8_ = FALSE; -#line 1319 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp8_ = TRUE; -#line 1319 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - while (TRUE) { -#line 8642 "GalleryConnector.c" - gint _tmp10_; - PublishingGallery3Album** _tmp11_; - gint _tmp11__length1; - PublishingGallery3Album** _tmp12_; - gint _tmp12__length1; - PublishingGallery3Album** _tmp13_; - gint _tmp13__length1; - gint _tmp14_; - PublishingGallery3Album* _tmp15_; - PublishingGallery3Album* _tmp16_; -#line 1319 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - if (!_tmp8_) { -#line 8655 "GalleryConnector.c" - gint _tmp9_; -#line 1319 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp9_ = i; -#line 1319 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - i = _tmp9_ + 1; -#line 8661 "GalleryConnector.c" - } -#line 1319 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp8_ = FALSE; -#line 1319 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp10_ = i; -#line 1319 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp11_ = new_albums; -#line 1319 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp11__length1 = new_albums_length1; -#line 1319 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - if (!(_tmp10_ <= (_tmp11__length1 - 1))) { -#line 1319 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - break; -#line 8675 "GalleryConnector.c" - } -#line 1320 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp12_ = self->priv->albums; -#line 1320 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp12__length1 = self->priv->albums_length1; -#line 1320 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp13_ = new_albums; -#line 1320 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp13__length1 = new_albums_length1; -#line 1320 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp14_ = i; -#line 1320 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp15_ = _tmp13_[_tmp14_]; -#line 1320 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp16_ = _publishing_gallery3_album_ref0 (_tmp15_); -#line 1320 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _vala_array_add5 (&self->priv->albums, &self->priv->albums_length1, &self->priv->_albums_size_, _tmp16_); -#line 8693 "GalleryConnector.c" - } - } - } -#line 1322 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp17_ = publishing_gallery3_get_albums_transaction_get_more_urls (G_TYPE_CHECK_INSTANCE_TYPE (txn, PUBLISHING_GALLERY3_TYPE_GET_ALBUMS_TRANSACTION) ? ((PublishingGallery3GetAlbumsTransaction*) txn) : NULL); -#line 1322 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp18_ = _tmp17_; -#line 1322 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - if (_tmp18_) { -#line 8703 "GalleryConnector.c" - gchar** _tmp19_; - gint _tmp19__length1; - gchar** _tmp20_; - gint _tmp20__length1; - guint _tmp21_; - guint _tmp22_; -#line 1324 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp19_ = publishing_gallery3_get_albums_transaction_get_album_urls (G_TYPE_CHECK_INSTANCE_TYPE (txn, PUBLISHING_GALLERY3_TYPE_GET_ALBUMS_TRANSACTION) ? ((PublishingGallery3GetAlbumsTransaction*) txn) : NULL, &_tmp19__length1); -#line 1324 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp20_ = _tmp19_; -#line 1324 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp20__length1 = _tmp19__length1; -#line 1324 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp21_ = publishing_gallery3_get_albums_transaction_get_urls_sent (G_TYPE_CHECK_INSTANCE_TYPE (txn, PUBLISHING_GALLERY3_TYPE_GET_ALBUMS_TRANSACTION) ? ((PublishingGallery3GetAlbumsTransaction*) txn) : NULL); -#line 1324 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp22_ = _tmp21_; -#line 1324 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - publishing_gallery3_gallery_publisher_do_fetch_albums (self, _tmp20_, _tmp20__length1, _tmp22_); -#line 8722 "GalleryConnector.c" - } else { - gchar* url = NULL; - PublishingGallery3Session* _tmp23_; - const gchar* _tmp24_; - const gchar* _tmp25_; - gchar* _tmp26_; - gchar* username = NULL; - PublishingGallery3Session* _tmp27_; - const gchar* _tmp28_; - const gchar* _tmp29_; - gchar* _tmp30_; - const gchar* _tmp31_; - const gchar* _tmp32_; -#line 1330 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp23_ = self->priv->session; -#line 1330 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp24_ = publishing_gallery3_session_get_url (_tmp23_); -#line 1330 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp25_ = _tmp24_; -#line 1330 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp26_ = g_strdup (_tmp25_); -#line 1330 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - url = _tmp26_; -#line 1331 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp27_ = self->priv->session; -#line 1331 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp28_ = publishing_gallery3_session_get_username (_tmp27_); -#line 1331 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp29_ = _tmp28_; -#line 1331 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp30_ = g_strdup (_tmp29_); -#line 1331 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - username = _tmp30_; -#line 1333 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp31_ = url; -#line 1333 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp32_ = username; -#line 1333 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - publishing_gallery3_gallery_publisher_do_show_publishing_options_pane (self, _tmp31_, _tmp32_); -#line 1322 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_free0 (username); -#line 1322 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_free0 (url); -#line 8766 "GalleryConnector.c" - } -#line 1295 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - new_albums = (_vala_array_free (new_albums, new_albums_length1, (GDestroyNotify) publishing_gallery3_album_unref), NULL); -#line 8770 "GalleryConnector.c" -} - - -static void -publishing_gallery3_gallery_publisher_on_album_create_error (PublishingGallery3GalleryPublisher* self, - PublishingRESTSupportTransaction* bad_txn, - GError* err) -{ - guint _tmp0_; - guint _tmp1_; - PublishingGallery3Session* _tmp2_; - gchar* _tmp3_; - gchar* _tmp4_; -#line 1338 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_return_if_fail (PUBLISHING_GALLERY3_IS_GALLERY_PUBLISHER (self)); -#line 1338 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_return_if_fail (PUBLISHING_REST_SUPPORT_IS_TRANSACTION (bad_txn)); -#line 1341 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_signal_parse_name ("completed", PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, &_tmp0_, NULL, FALSE); -#line 1341 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_signal_handlers_disconnect_matched (bad_txn, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp0_, 0, NULL, (GCallback) _publishing_gallery3_gallery_publisher_on_album_create_complete_publishing_rest_support_transaction_completed, self); -#line 1342 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_signal_parse_name ("network-error", PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, &_tmp1_, NULL, FALSE); -#line 1342 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_signal_handlers_disconnect_matched (bad_txn, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp1_, 0, NULL, (GCallback) _publishing_gallery3_gallery_publisher_on_album_create_error_publishing_rest_support_transaction_network_error, self); -#line 1344 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - if (!spit_publishing_publisher_is_running (G_TYPE_CHECK_INSTANCE_CAST (self, SPIT_PUBLISHING_TYPE_PUBLISHER, SpitPublishingPublisher))) { -#line 1345 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - return; -#line 8800 "GalleryConnector.c" - } -#line 1348 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp2_ = self->priv->session; -#line 1348 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - if (!publishing_rest_support_session_is_authenticated (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, PUBLISHING_REST_SUPPORT_TYPE_SESSION, PublishingRESTSupportSession))) { -#line 1349 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - return; -#line 8808 "GalleryConnector.c" - } -#line 1351 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp3_ = publishing_rest_support_transaction_get_response (bad_txn); -#line 1351 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp4_ = _tmp3_; -#line 1351 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_debug ("EVENT: network transaction to create an album " "failed; response = \'%s\'.", _tmp4_); -#line 1351 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_free0 (_tmp4_); -#line 1360 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - if (publishing_rest_support_transaction_get_status_code (bad_txn) == ((guint) 403)) { -#line 1362 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - publishing_gallery3_gallery_publisher_do_show_credentials_pane (self, PUBLISHING_GALLERY3_CREDENTIALS_PANE_MODE_FAILED_RETRY); -#line 8822 "GalleryConnector.c" - } else { -#line 1364 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - if (publishing_rest_support_transaction_get_status_code (bad_txn) == ((guint) 400)) { -#line 1367 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - publishing_gallery3_gallery_publisher_do_show_credentials_pane (self, PUBLISHING_GALLERY3_CREDENTIALS_PANE_MODE_NOT_GALLERY_URL); -#line 8828 "GalleryConnector.c" - } else { - SpitPublishingPluginHost* _tmp5_; -#line 1370 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp5_ = self->priv->host; -#line 1370 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - spit_publishing_plugin_host_post_error (_tmp5_, err); -#line 8835 "GalleryConnector.c" - } - } -} - - -static void -publishing_gallery3_gallery_publisher_on_album_create_complete (PublishingGallery3GalleryPublisher* self, - PublishingRESTSupportTransaction* txn) -{ - guint _tmp0_; - guint _tmp1_; - PublishingGallery3Session* _tmp2_; - PublishingGallery3PublishingParameters* new_params = NULL; - PublishingGallery3PublishingParameters* _tmp3_; - PublishingGallery3PublishingParameters* _tmp4_; - PublishingGallery3PublishingParameters* _tmp5_; - PublishingGallery3PublishingParameters* _tmp6_; - gchar* _tmp7_; - gchar* _tmp8_; - PublishingGallery3PublishingParameters* _tmp9_; - const gchar* _tmp10_; - const gchar* _tmp11_; - PublishingGallery3PublishingParameters* _tmp12_; -#line 1374 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_return_if_fail (PUBLISHING_GALLERY3_IS_GALLERY_PUBLISHER (self)); -#line 1374 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_return_if_fail (PUBLISHING_REST_SUPPORT_IS_TRANSACTION (txn)); -#line 1376 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_signal_parse_name ("completed", PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, &_tmp0_, NULL, FALSE); -#line 1376 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_signal_handlers_disconnect_matched (txn, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp0_, 0, NULL, (GCallback) _publishing_gallery3_gallery_publisher_on_album_create_complete_publishing_rest_support_transaction_completed, self); -#line 1377 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_signal_parse_name ("network-error", PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, &_tmp1_, NULL, FALSE); -#line 1377 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_signal_handlers_disconnect_matched (txn, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp1_, 0, NULL, (GCallback) _publishing_gallery3_gallery_publisher_on_album_create_error_publishing_rest_support_transaction_network_error, self); -#line 1379 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - if (!spit_publishing_publisher_is_running (G_TYPE_CHECK_INSTANCE_CAST (self, SPIT_PUBLISHING_TYPE_PUBLISHER, SpitPublishingPublisher))) { -#line 1380 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - return; -#line 8875 "GalleryConnector.c" - } -#line 1383 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp2_ = self->priv->session; -#line 1383 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - if (!publishing_rest_support_session_is_authenticated (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, PUBLISHING_REST_SUPPORT_TYPE_SESSION, PublishingRESTSupportSession))) { -#line 1384 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - return; -#line 8883 "GalleryConnector.c" - } -#line 1386 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp3_ = publishing_gallery3_gallery_album_create_transaction_get_parameters (G_TYPE_CHECK_INSTANCE_TYPE (txn, PUBLISHING_GALLERY3_TYPE_GALLERY_ALBUM_CREATE_TRANSACTION) ? ((PublishingGallery3GalleryAlbumCreateTransaction*) txn) : NULL); -#line 1386 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp4_ = _tmp3_; -#line 1386 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp5_ = _publishing_gallery3_publishing_parameters_ref0 (_tmp4_); -#line 1386 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - new_params = _tmp5_; -#line 1388 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp6_ = new_params; -#line 1388 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp7_ = publishing_gallery3_gallery_album_create_transaction_get_new_album_path (G_TYPE_CHECK_INSTANCE_TYPE (txn, PUBLISHING_GALLERY3_TYPE_GALLERY_ALBUM_CREATE_TRANSACTION) ? ((PublishingGallery3GalleryAlbumCreateTransaction*) txn) : NULL); -#line 1388 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp8_ = _tmp7_; -#line 1388 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - publishing_gallery3_publishing_parameters_set_album_path (_tmp6_, _tmp8_); -#line 1388 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_free0 (_tmp8_); -#line 1391 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp9_ = new_params; -#line 1391 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp10_ = publishing_gallery3_publishing_parameters_get_album_path (_tmp9_); -#line 1391 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp11_ = _tmp10_; -#line 1391 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_debug ("GalleryConnector.vala:1391: EVENT: user has created an album at \"%s\"" \ -".", _tmp11_); -#line 1394 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp12_ = new_params; -#line 1394 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - publishing_gallery3_gallery_publisher_do_publish (self, _tmp12_); -#line 1374 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _publishing_gallery3_publishing_parameters_unref0 (new_params); -#line 8917 "GalleryConnector.c" -} - - -static gpointer -_publishing_rest_support_batch_uploader_ref0 (gpointer self) -{ -#line 1403 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - return self ? publishing_rest_support_batch_uploader_ref (self) : NULL; -#line 8926 "GalleryConnector.c" -} - - -static void -publishing_gallery3_gallery_publisher_on_publish_error (PublishingGallery3GalleryPublisher* self, - PublishingRESTSupportBatchUploader* _uploader, - GError* err) -{ - PublishingGallery3Uploader* uploader = NULL; - PublishingGallery3Uploader* _tmp0_; - GError* g3_err = NULL; - GError* _tmp1_; - const gchar* _tmp2_; - PublishingGallery3Uploader* _tmp3_; - const gchar* _tmp4_; - const gchar* _tmp5_; - PublishingGallery3Uploader* _tmp6_; - guint _tmp7_; - guint _tmp8_; - PublishingGallery3Uploader* _tmp9_; - guint _tmp10_; - PublishingGallery3Uploader* _tmp11_; - guint _tmp12_; - PublishingGallery3Uploader* _tmp13_; - guint _tmp14_; - guint _tmp15_; - SpitPublishingPluginHost* _tmp32_; - GError* _tmp33_; -#line 1397 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_return_if_fail (PUBLISHING_GALLERY3_IS_GALLERY_PUBLISHER (self)); -#line 1397 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_return_if_fail (PUBLISHING_REST_SUPPORT_IS_BATCH_UPLOADER (_uploader)); -#line 1400 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - if (!spit_publishing_publisher_is_running (G_TYPE_CHECK_INSTANCE_CAST (self, SPIT_PUBLISHING_TYPE_PUBLISHER, SpitPublishingPublisher))) { -#line 1401 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - return; -#line 8963 "GalleryConnector.c" - } -#line 1403 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp0_ = _publishing_rest_support_batch_uploader_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_uploader, PUBLISHING_GALLERY3_TYPE_UPLOADER) ? ((PublishingGallery3Uploader*) _uploader) : NULL); -#line 1403 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - uploader = _tmp0_; -#line 1404 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp1_ = g_error_copy (err); -#line 1404 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g3_err = _tmp1_; -#line 1406 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp2_ = err->message; -#line 1406 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp3_ = uploader; -#line 1406 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp4_ = publishing_gallery3_uploader_get_current_publishable_name (_tmp3_); -#line 1406 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp5_ = _tmp4_; -#line 1406 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp6_ = uploader; -#line 1406 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp7_ = publishing_gallery3_uploader_get_status_code (_tmp6_); -#line 1406 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp8_ = _tmp7_; -#line 1406 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_debug ("EVENT: uploader reports upload error = '%s' " "for file '%s' (code %d)", _tmp2_, _tmp5_, _tmp8_); -#line 1410 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp9_ = uploader; -#line 1410 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_signal_parse_name ("upload-complete", PUBLISHING_REST_SUPPORT_TYPE_BATCH_UPLOADER, &_tmp10_, NULL, FALSE); -#line 1410 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_signal_handlers_disconnect_matched (G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, PUBLISHING_REST_SUPPORT_TYPE_BATCH_UPLOADER, PublishingRESTSupportBatchUploader), G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp10_, 0, NULL, (GCallback) _publishing_gallery3_gallery_publisher_on_publish_complete_publishing_rest_support_batch_uploader_upload_complete, self); -#line 1411 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp11_ = uploader; -#line 1411 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_signal_parse_name ("upload-error", PUBLISHING_REST_SUPPORT_TYPE_BATCH_UPLOADER, &_tmp12_, NULL, FALSE); -#line 1411 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_signal_handlers_disconnect_matched (G_TYPE_CHECK_INSTANCE_CAST (_tmp11_, PUBLISHING_REST_SUPPORT_TYPE_BATCH_UPLOADER, PublishingRESTSupportBatchUploader), G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp12_, 0, NULL, (GCallback) _publishing_gallery3_gallery_publisher_on_publish_error_publishing_rest_support_batch_uploader_upload_error, self); -#line 1414 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp13_ = uploader; -#line 1414 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp14_ = publishing_gallery3_uploader_get_status_code (_tmp13_); -#line 1414 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp15_ = _tmp14_; -#line 1414 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - if (_tmp15_ == ((guint) 400)) { -#line 9009 "GalleryConnector.c" - GError* _tmp16_; - GError* _tmp17_; - const gchar* _tmp18_; - PublishingGallery3Uploader* _tmp19_; - const gchar* _tmp20_; - const gchar* _tmp21_; - gchar* _tmp22_; - gchar* _tmp23_; - gchar* _tmp24_; - PublishingGallery3Uploader* _tmp25_; - SpitPublishingPublisherMediaType _tmp26_; - SpitPublishingPublisherMediaType _tmp27_; -#line 1415 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp16_ = g3_err; -#line 1415 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp17_ = g3_err; -#line 1415 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp18_ = _tmp17_->message; -#line 1415 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp19_ = uploader; -#line 1415 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp20_ = publishing_gallery3_uploader_get_current_publishable_name (_tmp19_); -#line 1415 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp21_ = _tmp20_; -#line 1415 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp22_ = g_strdup_printf (PUBLISHING_GALLERY3_GALLERY_PUBLISHER_BAD_FILE_MSG, _tmp21_); -#line 1415 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp23_ = _tmp22_; -#line 1415 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp24_ = g_strconcat (_tmp18_, _tmp23_, NULL); -#line 1415 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_free0 (_tmp17_->message); -#line 1415 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp17_->message = _tmp24_; -#line 1415 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_free0 (_tmp23_); -#line 1419 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp25_ = uploader; -#line 1419 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp26_ = publishing_gallery3_uploader_get_current_publishable_type (_tmp25_); -#line 1419 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp27_ = _tmp26_; -#line 1419 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - if (_tmp27_ == SPIT_PUBLISHING_PUBLISHER_MEDIA_TYPE_VIDEO) { -#line 9054 "GalleryConnector.c" - GError* _tmp28_; - GError* _tmp29_; - const gchar* _tmp30_; - gchar* _tmp31_; -#line 1421 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp28_ = g3_err; -#line 1421 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp29_ = g3_err; -#line 1421 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp30_ = _tmp29_->message; -#line 1421 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp31_ = g_strconcat (_tmp30_, PUBLISHING_GALLERY3_GALLERY_PUBLISHER_BAD_MOVIE_MSG, NULL); -#line 1421 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_free0 (_tmp29_->message); -#line 1421 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp29_->message = _tmp31_; -#line 9071 "GalleryConnector.c" - } - } -#line 1423 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp32_ = self->priv->host; -#line 1423 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp33_ = g3_err; -#line 1423 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - spit_publishing_plugin_host_post_error (_tmp32_, _tmp33_); -#line 1397 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_error_free0 (g3_err); -#line 1397 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _publishing_rest_support_batch_uploader_unref0 (uploader); -#line 9084 "GalleryConnector.c" -} - - -static void -publishing_gallery3_gallery_publisher_on_upload_status_updated (PublishingGallery3GalleryPublisher* self, - gint file_number, - gdouble completed_fraction) -{ - SpitPublishingProgressCallback _tmp0_; - void* _tmp0__target; - SpitPublishingProgressCallback _tmp1_; - void* _tmp1__target; -#line 1426 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_return_if_fail (PUBLISHING_GALLERY3_IS_GALLERY_PUBLISHER (self)); -#line 1429 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - if (!spit_publishing_publisher_is_running (G_TYPE_CHECK_INSTANCE_CAST (self, SPIT_PUBLISHING_TYPE_PUBLISHER, SpitPublishingPublisher))) { -#line 1430 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - return; -#line 9103 "GalleryConnector.c" - } -#line 1432 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_debug ("GalleryConnector.vala:1432: EVENT: uploader reports upload %.2f percen" \ -"t complete.", 100.0 * completed_fraction); -#line 1435 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp0_ = self->priv->progress_reporter; -#line 1435 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp0__target = self->priv->progress_reporter_target; -#line 1435 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _vala_assert (_tmp0_ != NULL, "progress_reporter != null"); -#line 1437 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp1_ = self->priv->progress_reporter; -#line 1437 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp1__target = self->priv->progress_reporter_target; -#line 1437 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp1_ (file_number, completed_fraction, _tmp1__target); -#line 9119 "GalleryConnector.c" -} - - -static void -publishing_gallery3_gallery_publisher_on_publish_complete (PublishingGallery3GalleryPublisher* self, - PublishingRESTSupportBatchUploader* uploader, - gint num_published) -{ - guint _tmp0_; - guint _tmp1_; - PublishingGallery3Session* _tmp2_; -#line 1441 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_return_if_fail (PUBLISHING_GALLERY3_IS_GALLERY_PUBLISHER (self)); -#line 1441 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_return_if_fail (PUBLISHING_REST_SUPPORT_IS_BATCH_UPLOADER (uploader)); -#line 1444 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_signal_parse_name ("upload-complete", PUBLISHING_REST_SUPPORT_TYPE_BATCH_UPLOADER, &_tmp0_, NULL, FALSE); -#line 1444 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_signal_handlers_disconnect_matched (uploader, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp0_, 0, NULL, (GCallback) _publishing_gallery3_gallery_publisher_on_publish_complete_publishing_rest_support_batch_uploader_upload_complete, self); -#line 1445 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_signal_parse_name ("upload-error", PUBLISHING_REST_SUPPORT_TYPE_BATCH_UPLOADER, &_tmp1_, NULL, FALSE); -#line 1445 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_signal_handlers_disconnect_matched (uploader, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp1_, 0, NULL, (GCallback) _publishing_gallery3_gallery_publisher_on_publish_error_publishing_rest_support_batch_uploader_upload_error, self); -#line 1447 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - if (!spit_publishing_publisher_is_running (G_TYPE_CHECK_INSTANCE_CAST (self, SPIT_PUBLISHING_TYPE_PUBLISHER, SpitPublishingPublisher))) { -#line 1448 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - return; -#line 9147 "GalleryConnector.c" - } -#line 1451 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp2_ = self->priv->session; -#line 1451 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - if (!publishing_rest_support_session_is_authenticated (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, PUBLISHING_REST_SUPPORT_TYPE_SESSION, PublishingRESTSupportSession))) { -#line 1452 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - return; -#line 9155 "GalleryConnector.c" - } -#line 1454 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_debug ("GalleryConnector.vala:1454: EVENT: publishing complete; %d items publi" \ -"shed", num_published); -#line 1457 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - publishing_gallery3_gallery_publisher_do_show_success_pane (self); -#line 9161 "GalleryConnector.c" -} - - -static void -publishing_gallery3_gallery_publisher_on_publishing_options_pane_logout (PublishingGallery3GalleryPublisher* self) -{ - PublishingGallery3PublishingOptionsPane* _tmp0_; - guint _tmp1_; - PublishingGallery3PublishingOptionsPane* _tmp2_; - guint _tmp3_; - PublishingGallery3Session* _tmp4_; -#line 1461 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_return_if_fail (PUBLISHING_GALLERY3_IS_GALLERY_PUBLISHER (self)); -#line 1462 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp0_ = self->priv->publishing_options_pane; -#line 1462 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_signal_parse_name ("publish", PUBLISHING_GALLERY3_TYPE_PUBLISHING_OPTIONS_PANE, &_tmp1_, NULL, FALSE); -#line 1462 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_signal_handlers_disconnect_matched (_tmp0_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp1_, 0, NULL, (GCallback) _publishing_gallery3_gallery_publisher_on_publishing_options_pane_publish_publishing_gallery3_publishing_options_pane_publish, self); -#line 1464 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp2_ = self->priv->publishing_options_pane; -#line 1464 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_signal_parse_name ("logout", PUBLISHING_GALLERY3_TYPE_PUBLISHING_OPTIONS_PANE, &_tmp3_, NULL, FALSE); -#line 1464 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_signal_handlers_disconnect_matched (_tmp2_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp3_, 0, NULL, (GCallback) _publishing_gallery3_gallery_publisher_on_publishing_options_pane_logout_publishing_gallery3_publishing_options_pane_logout, self); -#line 1467 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - if (!spit_publishing_publisher_is_running (G_TYPE_CHECK_INSTANCE_CAST (self, SPIT_PUBLISHING_TYPE_PUBLISHER, SpitPublishingPublisher))) { -#line 1468 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - return; -#line 9191 "GalleryConnector.c" - } -#line 1470 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_debug ("GalleryConnector.vala:1470: EVENT: user is attempting to log out."); -#line 1472 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp4_ = self->priv->session; -#line 1472 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - publishing_gallery3_session_deauthenticate (_tmp4_); -#line 1473 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - publishing_gallery3_gallery_publisher_do_show_service_welcome_pane (self); -#line 9201 "GalleryConnector.c" -} - - -static void -publishing_gallery3_gallery_publisher_on_publishing_options_pane_publish (PublishingGallery3GalleryPublisher* self, - PublishingGallery3PublishingParameters* parameters) -{ - PublishingGallery3PublishingOptionsPane* _tmp0_; - guint _tmp1_; - PublishingGallery3PublishingOptionsPane* _tmp2_; - guint _tmp3_; -#line 1476 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_return_if_fail (PUBLISHING_GALLERY3_IS_GALLERY_PUBLISHER (self)); -#line 1476 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_return_if_fail (PUBLISHING_GALLERY3_IS_PUBLISHING_PARAMETERS (parameters)); -#line 1477 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp0_ = self->priv->publishing_options_pane; -#line 1477 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_signal_parse_name ("publish", PUBLISHING_GALLERY3_TYPE_PUBLISHING_OPTIONS_PANE, &_tmp1_, NULL, FALSE); -#line 1477 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_signal_handlers_disconnect_matched (_tmp0_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp1_, 0, NULL, (GCallback) _publishing_gallery3_gallery_publisher_on_publishing_options_pane_publish_publishing_gallery3_publishing_options_pane_publish, self); -#line 1479 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp2_ = self->priv->publishing_options_pane; -#line 1479 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_signal_parse_name ("logout", PUBLISHING_GALLERY3_TYPE_PUBLISHING_OPTIONS_PANE, &_tmp3_, NULL, FALSE); -#line 1479 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_signal_handlers_disconnect_matched (_tmp2_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp3_, 0, NULL, (GCallback) _publishing_gallery3_gallery_publisher_on_publishing_options_pane_logout_publishing_gallery3_publishing_options_pane_logout, self); -#line 1482 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - if (!spit_publishing_publisher_is_running (G_TYPE_CHECK_INSTANCE_CAST (self, SPIT_PUBLISHING_TYPE_PUBLISHER, SpitPublishingPublisher))) { -#line 1483 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - return; -#line 9233 "GalleryConnector.c" - } -#line 1485 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_debug ("GalleryConnector.vala:1485: EVENT: user is attempting to publish somet" \ -"hing."); -#line 1487 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - if (publishing_gallery3_publishing_parameters_is_to_new_album (parameters)) { -#line 9239 "GalleryConnector.c" - const gchar* _tmp4_; - const gchar* _tmp5_; -#line 1488 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp4_ = publishing_gallery3_publishing_parameters_get_album_name (parameters); -#line 1488 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp5_ = _tmp4_; -#line 1488 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_debug ("GalleryConnector.vala:1488: EVENT: must create new album \"%s\" first.", _tmp5_); -#line 1490 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - publishing_gallery3_gallery_publisher_do_create_album (self, parameters); -#line 9250 "GalleryConnector.c" - } else { -#line 1493 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - publishing_gallery3_gallery_publisher_do_publish (self, parameters); -#line 9254 "GalleryConnector.c" - } -} - - -static void -publishing_gallery3_gallery_publisher_class_init (PublishingGallery3GalleryPublisherClass * klass) -{ -#line 800 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - publishing_gallery3_gallery_publisher_parent_class = g_type_class_peek_parent (klass); -#line 800 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_type_class_add_private (klass, sizeof (PublishingGallery3GalleryPublisherPrivate)); -#line 800 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - G_OBJECT_CLASS (klass)->finalize = publishing_gallery3_gallery_publisher_finalize; -#line 9268 "GalleryConnector.c" -} - - -static void -publishing_gallery3_gallery_publisher_spit_publishing_publisher_interface_init (SpitPublishingPublisherIface * iface) -{ -#line 800 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - publishing_gallery3_gallery_publisher_spit_publishing_publisher_parent_iface = g_type_interface_peek_parent (iface); -#line 800 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - iface->is_running = (gboolean (*) (SpitPublishingPublisher *)) publishing_gallery3_gallery_publisher_real_is_running; -#line 800 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - iface->get_service = (SpitPublishingService* (*) (SpitPublishingPublisher *)) publishing_gallery3_gallery_publisher_real_get_service; -#line 800 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - iface->start = (void (*) (SpitPublishingPublisher *)) publishing_gallery3_gallery_publisher_real_start; -#line 800 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - iface->stop = (void (*) (SpitPublishingPublisher *)) publishing_gallery3_gallery_publisher_real_stop; -#line 9285 "GalleryConnector.c" -} - - -static void -publishing_gallery3_gallery_publisher_instance_init (PublishingGallery3GalleryPublisher * self) -{ -#line 800 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self->priv = PUBLISHING_GALLERY3_GALLERY_PUBLISHER_GET_PRIVATE (self); -#line 804 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self->priv->host = NULL; -#line 805 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self->priv->progress_reporter = NULL; -#line 805 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self->priv->progress_reporter_target = self; -#line 805 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self->priv->progress_reporter_target_destroy_notify = NULL; -#line 806 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self->priv->service = NULL; -#line 807 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self->priv->session = NULL; -#line 808 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self->priv->running = FALSE; -#line 809 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self->priv->albums = NULL; -#line 809 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self->priv->albums_length1 = 0; -#line 809 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self->priv->_albums_size_ = self->priv->albums_length1; -#line 810 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self->priv->key = NULL; -#line 812 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self->priv->publishing_options_pane = NULL; -#line 9318 "GalleryConnector.c" -} - - -static void -publishing_gallery3_gallery_publisher_finalize (GObject * obj) -{ - PublishingGallery3GalleryPublisher * self; -#line 800 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, PUBLISHING_GALLERY3_TYPE_GALLERY_PUBLISHER, PublishingGallery3GalleryPublisher); -#line 805 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - (self->priv->progress_reporter_target_destroy_notify == NULL) ? NULL : (self->priv->progress_reporter_target_destroy_notify (self->priv->progress_reporter_target), NULL); -#line 805 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self->priv->progress_reporter = NULL; -#line 805 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self->priv->progress_reporter_target = NULL; -#line 805 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self->priv->progress_reporter_target_destroy_notify = NULL; -#line 807 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _publishing_rest_support_session_unref0 (self->priv->session); -#line 809 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self->priv->albums = (_vala_array_free (self->priv->albums, self->priv->albums_length1, (GDestroyNotify) publishing_gallery3_album_unref), NULL); -#line 810 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_free0 (self->priv->key); -#line 812 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_object_unref0 (self->priv->publishing_options_pane); -#line 800 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - G_OBJECT_CLASS (publishing_gallery3_gallery_publisher_parent_class)->finalize (obj); -#line 9346 "GalleryConnector.c" -} - - -GType -publishing_gallery3_gallery_publisher_get_type (void) -{ - static volatile gsize publishing_gallery3_gallery_publisher_type_id__volatile = 0; - if (g_once_init_enter (&publishing_gallery3_gallery_publisher_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (PublishingGallery3GalleryPublisherClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) publishing_gallery3_gallery_publisher_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PublishingGallery3GalleryPublisher), 0, (GInstanceInitFunc) publishing_gallery3_gallery_publisher_instance_init, NULL }; - static const GInterfaceInfo spit_publishing_publisher_info = { (GInterfaceInitFunc) publishing_gallery3_gallery_publisher_spit_publishing_publisher_interface_init, (GInterfaceFinalizeFunc) NULL, NULL}; - GType publishing_gallery3_gallery_publisher_type_id; - publishing_gallery3_gallery_publisher_type_id = g_type_register_static (G_TYPE_OBJECT, "PublishingGallery3GalleryPublisher", &g_define_type_info, 0); - g_type_add_interface_static (publishing_gallery3_gallery_publisher_type_id, SPIT_PUBLISHING_TYPE_PUBLISHER, &spit_publishing_publisher_info); - g_once_init_leave (&publishing_gallery3_gallery_publisher_type_id__volatile, publishing_gallery3_gallery_publisher_type_id); - } - return publishing_gallery3_gallery_publisher_type_id__volatile; -} - - -static PublishingGallery3Album** -_vala_array_dup3 (PublishingGallery3Album** self, - int length) -{ - PublishingGallery3Album** result; - int i; -#line 1527 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - result = g_new0 (PublishingGallery3Album*, length + 1); -#line 1527 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - for (i = 0; i < length; i++) { -#line 9376 "GalleryConnector.c" - PublishingGallery3Album* _tmp0_; -#line 1527 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp0_ = _publishing_gallery3_album_ref0 (self[i]); -#line 1527 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - result[i] = _tmp0_; -#line 9382 "GalleryConnector.c" - } -#line 1527 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - return result; -#line 9386 "GalleryConnector.c" -} - - -static void -_publishing_gallery3_publishing_options_pane_on_use_existing_radio_clicked_gtk_button_clicked (GtkButton* _sender, - gpointer self) -{ -#line 1556 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - publishing_gallery3_publishing_options_pane_on_use_existing_radio_clicked ((PublishingGallery3PublishingOptionsPane*) self); -#line 9396 "GalleryConnector.c" -} - - -static void -_publishing_gallery3_publishing_options_pane_on_create_new_radio_clicked_gtk_button_clicked (GtkButton* _sender, - gpointer self) -{ -#line 1557 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - publishing_gallery3_publishing_options_pane_on_create_new_radio_clicked ((PublishingGallery3PublishingOptionsPane*) self); -#line 9406 "GalleryConnector.c" -} - - -static void -_publishing_gallery3_publishing_options_pane_on_new_album_entry_changed_gtk_editable_changed (GtkEditable* _sender, - gpointer self) -{ -#line 1558 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - publishing_gallery3_publishing_options_pane_on_new_album_entry_changed ((PublishingGallery3PublishingOptionsPane*) self); -#line 9416 "GalleryConnector.c" -} - - -static void -_publishing_gallery3_publishing_options_pane_on_scaling_constraint_changed_gtk_combo_box_changed (GtkComboBox* _sender, - gpointer self) -{ -#line 1559 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - publishing_gallery3_publishing_options_pane_on_scaling_constraint_changed ((PublishingGallery3PublishingOptionsPane*) self); -#line 9426 "GalleryConnector.c" -} - - -static void -_publishing_gallery3_publishing_options_pane_on_pixels_changed_gtk_editable_changed (GtkEditable* _sender, - gpointer self) -{ -#line 1560 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - publishing_gallery3_publishing_options_pane_on_pixels_changed ((PublishingGallery3PublishingOptionsPane*) self); -#line 9436 "GalleryConnector.c" -} - - -static void -_publishing_gallery3_publishing_options_pane_on_logout_clicked_gtk_button_clicked (GtkButton* _sender, - gpointer self) -{ -#line 1561 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - publishing_gallery3_publishing_options_pane_on_logout_clicked ((PublishingGallery3PublishingOptionsPane*) self); -#line 9446 "GalleryConnector.c" -} - - -static void -_publishing_gallery3_publishing_options_pane_on_publish_clicked_gtk_button_clicked (GtkButton* _sender, - gpointer self) -{ -#line 1562 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - publishing_gallery3_publishing_options_pane_on_publish_clicked ((PublishingGallery3PublishingOptionsPane*) self); -#line 9456 "GalleryConnector.c" -} - - -PublishingGallery3PublishingOptionsPane* -publishing_gallery3_publishing_options_pane_construct (GType object_type, - SpitPublishingPluginHost* host, - const gchar* url, - const gchar* username, - PublishingGallery3Album** albums, - int albums_length1, - GtkBuilder* builder, - gboolean strip_metadata, - gint scaling_id, - gint scaling_pixels) -{ - PublishingGallery3PublishingOptionsPane * self = NULL; - PublishingGallery3Album** _tmp0_; - gint _tmp0__length1; - GtkBuilder* _tmp1_; - GSList* _tmp2_; - GSList* _tmp3_; - GObject* _tmp4_; - GtkGrid* _tmp5_; - GObject* _tmp6_; - GtkLabel* _tmp7_; - GObject* _tmp8_; - GtkRadioButton* _tmp9_; - GObject* _tmp10_; - GtkComboBoxText* _tmp11_; - GObject* _tmp12_; - GtkComboBoxText* _tmp13_; - GObject* _tmp14_; - GtkEntry* _tmp15_; - GObject* _tmp16_; - GtkRadioButton* _tmp17_; - GObject* _tmp18_; - GtkEntry* _tmp19_; - GtkBuilder* _tmp20_; - GObject* _tmp21_; - GtkCheckButton* _tmp22_; - GObject* _tmp23_; - GtkButton* _tmp24_; - GObject* _tmp25_; - GtkButton* _tmp26_; - GtkLabel* _tmp27_; - gchar* _tmp28_; - gchar* _tmp29_; - GtkCheckButton* _tmp30_; - GtkComboBoxText* _tmp31_; - GtkEntry* _tmp32_; - gchar* _tmp33_; - gchar* _tmp34_; - GtkRadioButton* _tmp35_; - GtkRadioButton* _tmp36_; - GtkEntry* _tmp37_; - GtkComboBoxText* _tmp38_; - GtkEntry* _tmp39_; - GtkButton* _tmp40_; - GtkButton* _tmp41_; -#line 1523 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_return_val_if_fail (SPIT_PUBLISHING_IS_PLUGIN_HOST (host), NULL); -#line 1523 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_return_val_if_fail (url != NULL, NULL); -#line 1523 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_return_val_if_fail (username != NULL, NULL); -#line 1523 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_return_val_if_fail (GTK_IS_BUILDER (builder), NULL); -#line 1523 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self = (PublishingGallery3PublishingOptionsPane*) g_object_new (object_type, NULL); -#line 1527 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp0_ = (albums != NULL) ? _vala_array_dup3 (albums, albums_length1) : ((gpointer) albums); -#line 1527 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp0__length1 = albums_length1; -#line 1527 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self->priv->albums = (_vala_array_free (self->priv->albums, self->priv->albums_length1, (GDestroyNotify) publishing_gallery3_album_unref), NULL); -#line 1527 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self->priv->albums = _tmp0_; -#line 1527 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self->priv->albums_length1 = _tmp0__length1; -#line 1527 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self->priv->_albums_size_ = self->priv->albums_length1; -#line 1528 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self->priv->host = host; -#line 1530 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp1_ = _g_object_ref0 (builder); -#line 1530 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_object_unref0 (self->priv->builder); -#line 1530 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self->priv->builder = _tmp1_; -#line 1531 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _vala_assert (NULL != builder, "null != builder"); -#line 1532 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp2_ = gtk_builder_get_objects (builder); -#line 1532 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp3_ = _tmp2_; -#line 1532 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _vala_assert (g_slist_length (_tmp3_) > ((guint) 0), "builder.get_objects().length() > 0"); -#line 1532 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_slist_free0 (_tmp3_); -#line 1535 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp4_ = gtk_builder_get_object (builder, "pane_widget"); -#line 1535 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp5_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp4_, gtk_grid_get_type ()) ? ((GtkGrid*) _tmp4_) : NULL); -#line 1535 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_object_unref0 (self->priv->pane_widget); -#line 1535 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self->priv->pane_widget = _tmp5_; -#line 1536 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp6_ = gtk_builder_get_object (builder, "title_label"); -#line 1536 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp7_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp6_, gtk_label_get_type ()) ? ((GtkLabel*) _tmp6_) : NULL); -#line 1536 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_object_unref0 (self->priv->title_label); -#line 1536 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self->priv->title_label = _tmp7_; -#line 1537 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp8_ = gtk_builder_get_object (builder, "publish_to_existing_radio"); -#line 1537 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp9_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp8_, gtk_radio_button_get_type ()) ? ((GtkRadioButton*) _tmp8_) : NULL); -#line 1537 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_object_unref0 (self->priv->use_existing_radio); -#line 1537 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self->priv->use_existing_radio = _tmp9_; -#line 1538 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp10_ = gtk_builder_get_object (builder, "existing_albums_combo"); -#line 1538 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp11_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp10_, gtk_combo_box_text_get_type ()) ? ((GtkComboBoxText*) _tmp10_) : NULL); -#line 1538 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_object_unref0 (self->priv->existing_albums_combo); -#line 1538 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self->priv->existing_albums_combo = _tmp11_; -#line 1539 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp12_ = gtk_builder_get_object (builder, "scaling_constraint_combo"); -#line 1539 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp13_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp12_, gtk_combo_box_text_get_type ()) ? ((GtkComboBoxText*) _tmp12_) : NULL); -#line 1539 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_object_unref0 (self->priv->scaling_combo); -#line 1539 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self->priv->scaling_combo = _tmp13_; -#line 1540 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp14_ = gtk_builder_get_object (builder, "major_axis_pixels"); -#line 1540 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp15_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp14_, gtk_entry_get_type ()) ? ((GtkEntry*) _tmp14_) : NULL); -#line 1540 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_object_unref0 (self->priv->pixels); -#line 1540 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self->priv->pixels = _tmp15_; -#line 1541 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp16_ = gtk_builder_get_object (builder, "publish_new_radio"); -#line 1541 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp17_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp16_, gtk_radio_button_get_type ()) ? ((GtkRadioButton*) _tmp16_) : NULL); -#line 1541 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_object_unref0 (self->priv->create_new_radio); -#line 1541 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self->priv->create_new_radio = _tmp17_; -#line 1542 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp18_ = gtk_builder_get_object (builder, "new_album_name"); -#line 1542 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp19_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp18_, gtk_entry_get_type ()) ? ((GtkEntry*) _tmp18_) : NULL); -#line 1542 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_object_unref0 (self->priv->new_album_entry); -#line 1542 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self->priv->new_album_entry = _tmp19_; -#line 1543 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp20_ = self->priv->builder; -#line 1543 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp21_ = gtk_builder_get_object (_tmp20_, "strip_metadata_check"); -#line 1543 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp22_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp21_, gtk_check_button_get_type ()) ? ((GtkCheckButton*) _tmp21_) : NULL); -#line 1543 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_object_unref0 (self->priv->strip_metadata_check); -#line 1543 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self->priv->strip_metadata_check = _tmp22_; -#line 1544 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp23_ = gtk_builder_get_object (builder, "publish_button"); -#line 1544 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp24_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp23_, gtk_button_get_type ()) ? ((GtkButton*) _tmp23_) : NULL); -#line 1544 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_object_unref0 (self->priv->publish_button); -#line 1544 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self->priv->publish_button = _tmp24_; -#line 1545 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp25_ = gtk_builder_get_object (builder, "logout_button"); -#line 1545 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp26_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp25_, gtk_button_get_type ()) ? ((GtkButton*) _tmp25_) : NULL); -#line 1545 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_object_unref0 (self->priv->logout_button); -#line 1545 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self->priv->logout_button = _tmp26_; -#line 1549 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp27_ = self->priv->title_label; -#line 1549 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp28_ = g_strdup_printf (_ ("Publishing to %s as %s."), url, username); -#line 1549 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp29_ = _tmp28_; -#line 1549 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - gtk_label_set_label (_tmp27_, _tmp29_); -#line 1549 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_free0 (_tmp29_); -#line 1551 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp30_ = self->priv->strip_metadata_check; -#line 1551 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - gtk_toggle_button_set_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp30_, gtk_toggle_button_get_type (), GtkToggleButton), strip_metadata); -#line 1552 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp31_ = self->priv->scaling_combo; -#line 1552 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - gtk_combo_box_set_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp31_, gtk_combo_box_get_type (), GtkComboBox), scaling_id); -#line 1553 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp32_ = self->priv->pixels; -#line 1553 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp33_ = g_strdup_printf ("%i", scaling_pixels); -#line 1553 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp34_ = _tmp33_; -#line 1553 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - gtk_entry_set_text (_tmp32_, _tmp34_); -#line 1553 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_free0 (_tmp34_); -#line 1556 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp35_ = self->priv->use_existing_radio; -#line 1556 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp35_, gtk_button_get_type (), GtkButton), "clicked", (GCallback) _publishing_gallery3_publishing_options_pane_on_use_existing_radio_clicked_gtk_button_clicked, self, 0); -#line 1557 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp36_ = self->priv->create_new_radio; -#line 1557 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp36_, gtk_button_get_type (), GtkButton), "clicked", (GCallback) _publishing_gallery3_publishing_options_pane_on_create_new_radio_clicked_gtk_button_clicked, self, 0); -#line 1558 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp37_ = self->priv->new_album_entry; -#line 1558 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp37_, gtk_editable_get_type (), GtkEditable), "changed", (GCallback) _publishing_gallery3_publishing_options_pane_on_new_album_entry_changed_gtk_editable_changed, self, 0); -#line 1559 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp38_ = self->priv->scaling_combo; -#line 1559 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp38_, gtk_combo_box_get_type (), GtkComboBox), "changed", (GCallback) _publishing_gallery3_publishing_options_pane_on_scaling_constraint_changed_gtk_combo_box_changed, self, 0); -#line 1560 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp39_ = self->priv->pixels; -#line 1560 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp39_, gtk_editable_get_type (), GtkEditable), "changed", (GCallback) _publishing_gallery3_publishing_options_pane_on_pixels_changed_gtk_editable_changed, self, 0); -#line 1561 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp40_ = self->priv->logout_button; -#line 1561 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_signal_connect_object (_tmp40_, "clicked", (GCallback) _publishing_gallery3_publishing_options_pane_on_logout_clicked_gtk_button_clicked, self, 0); -#line 1562 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp41_ = self->priv->publish_button; -#line 1562 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_signal_connect_object (_tmp41_, "clicked", (GCallback) _publishing_gallery3_publishing_options_pane_on_publish_clicked_gtk_button_clicked, self, 0); -#line 1523 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - return self; -#line 9704 "GalleryConnector.c" -} - - -PublishingGallery3PublishingOptionsPane* -publishing_gallery3_publishing_options_pane_new (SpitPublishingPluginHost* host, - const gchar* url, - const gchar* username, - PublishingGallery3Album** albums, - int albums_length1, - GtkBuilder* builder, - gboolean strip_metadata, - gint scaling_id, - gint scaling_pixels) -{ -#line 1523 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - return publishing_gallery3_publishing_options_pane_construct (PUBLISHING_GALLERY3_TYPE_PUBLISHING_OPTIONS_PANE, host, url, username, albums, albums_length1, builder, strip_metadata, scaling_id, scaling_pixels); -#line 9721 "GalleryConnector.c" -} - - -static void -publishing_gallery3_publishing_options_pane_on_publish_clicked (PublishingGallery3PublishingOptionsPane* self) -{ - gchar* album_name = NULL; - gint _tmp0_ = 0; - GtkComboBoxText* _tmp1_; - gint photo_major_axis_size = 0; - PublishingGallery3PublishingParameters* param = NULL; - GtkRadioButton* _tmp4_; - PublishingGallery3PublishingParameters* _tmp29_; - gint _tmp30_; - PublishingGallery3PublishingParameters* _tmp31_; - GtkCheckButton* _tmp32_; - PublishingGallery3PublishingParameters* _tmp33_; -#line 1565 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_return_if_fail (PUBLISHING_GALLERY3_IS_PUBLISHING_OPTIONS_PANE (self)); -#line 1568 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp1_ = self->priv->scaling_combo; -#line 1568 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - if (gtk_combo_box_get_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, gtk_combo_box_get_type (), GtkComboBox)) == 1) { -#line 9745 "GalleryConnector.c" - GtkEntry* _tmp2_; - const gchar* _tmp3_; -#line 1569 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp2_ = self->priv->pixels; -#line 1569 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp3_ = gtk_entry_get_text (_tmp2_); -#line 1569 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp0_ = atoi (_tmp3_); -#line 9754 "GalleryConnector.c" - } else { -#line 1569 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp0_ = -1; -#line 9758 "GalleryConnector.c" - } -#line 1567 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - photo_major_axis_size = _tmp0_; -#line 1572 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp4_ = self->priv->create_new_radio; -#line 1572 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - if (gtk_toggle_button_get_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, gtk_toggle_button_get_type (), GtkToggleButton))) { -#line 9766 "GalleryConnector.c" - GtkEntry* _tmp5_; - const gchar* _tmp6_; - gchar* _tmp7_; - SpitPublishingPluginHost* _tmp8_; - const gchar* _tmp9_; - const gchar* _tmp10_; - PublishingGallery3PublishingParameters* _tmp11_; - const gchar* _tmp12_; -#line 1573 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp5_ = self->priv->new_album_entry; -#line 1573 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp6_ = gtk_entry_get_text (_tmp5_); -#line 1573 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp7_ = g_strdup (_tmp6_); -#line 1573 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_free0 (album_name); -#line 1573 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - album_name = _tmp7_; -#line 1574 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp8_ = self->priv->host; -#line 1574 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp9_ = album_name; -#line 1574 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - spit_host_interface_set_config_string (G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, SPIT_TYPE_HOST_INTERFACE, SpitHostInterface), PUBLISHING_GALLERY3_PUBLISHING_OPTIONS_PANE_LAST_ALBUM_CONFIG_KEY, _tmp9_); -#line 1575 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp10_ = album_name; -#line 1575 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp11_ = publishing_gallery3_publishing_parameters_new_to_new_album (_tmp10_); -#line 1575 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _publishing_gallery3_publishing_parameters_unref0 (param); -#line 1575 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - param = _tmp11_; -#line 1577 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp12_ = album_name; -#line 1577 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_debug ("GalleryConnector.vala:1577: Trying to publish to \"%s\"", _tmp12_); -#line 9803 "GalleryConnector.c" - } else { - PublishingGallery3Album** _tmp13_; - gint _tmp13__length1; - GtkComboBoxText* _tmp14_; - PublishingGallery3Album* _tmp15_; - const gchar* _tmp16_; - const gchar* _tmp17_; - gchar* _tmp18_; - SpitPublishingPluginHost* _tmp19_; - const gchar* _tmp20_; - gchar* album_path = NULL; - PublishingGallery3Album** _tmp21_; - gint _tmp21__length1; - GtkComboBoxText* _tmp22_; - PublishingGallery3Album* _tmp23_; - const gchar* _tmp24_; - const gchar* _tmp25_; - gchar* _tmp26_; - const gchar* _tmp27_; - PublishingGallery3PublishingParameters* _tmp28_; -#line 1579 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp13_ = self->priv->albums; -#line 1579 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp13__length1 = self->priv->albums_length1; -#line 1579 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp14_ = self->priv->existing_albums_combo; -#line 1579 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp15_ = _tmp13_[gtk_combo_box_get_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp14_, gtk_combo_box_get_type (), GtkComboBox))]; -#line 1579 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp16_ = publishing_gallery3_album_get_title (_tmp15_); -#line 1579 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp17_ = _tmp16_; -#line 1579 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp18_ = g_strdup (_tmp17_); -#line 1579 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_free0 (album_name); -#line 1579 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - album_name = _tmp18_; -#line 1581 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp19_ = self->priv->host; -#line 1581 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp20_ = album_name; -#line 1581 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - spit_host_interface_set_config_string (G_TYPE_CHECK_INSTANCE_CAST (_tmp19_, SPIT_TYPE_HOST_INTERFACE, SpitHostInterface), PUBLISHING_GALLERY3_PUBLISHING_OPTIONS_PANE_LAST_ALBUM_CONFIG_KEY, _tmp20_); -#line 1582 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp21_ = self->priv->albums; -#line 1582 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp21__length1 = self->priv->albums_length1; -#line 1582 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp22_ = self->priv->existing_albums_combo; -#line 1582 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp23_ = _tmp21_[gtk_combo_box_get_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp22_, gtk_combo_box_get_type (), GtkComboBox))]; -#line 1582 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp24_ = publishing_gallery3_album_get_path (_tmp23_); -#line 1582 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp25_ = _tmp24_; -#line 1582 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp26_ = g_strdup (_tmp25_); -#line 1582 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - album_path = _tmp26_; -#line 1584 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp27_ = album_path; -#line 1584 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp28_ = publishing_gallery3_publishing_parameters_new_to_existing_album (_tmp27_); -#line 1584 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _publishing_gallery3_publishing_parameters_unref0 (param); -#line 1584 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - param = _tmp28_; -#line 1572 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_free0 (album_path); -#line 9874 "GalleryConnector.c" - } -#line 1588 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp29_ = param; -#line 1588 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp30_ = photo_major_axis_size; -#line 1588 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - publishing_gallery3_publishing_parameters_set_photo_major_axis_size (_tmp29_, _tmp30_); -#line 1589 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp31_ = param; -#line 1589 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp32_ = self->priv->strip_metadata_check; -#line 1589 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - publishing_gallery3_publishing_parameters_set_strip_metadata (_tmp31_, gtk_toggle_button_get_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp32_, gtk_toggle_button_get_type (), GtkToggleButton))); -#line 1591 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp33_ = param; -#line 1591 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_signal_emit (self, publishing_gallery3_publishing_options_pane_signals[PUBLISHING_GALLERY3_PUBLISHING_OPTIONS_PANE_PUBLISH_SIGNAL], 0, _tmp33_); -#line 1565 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _publishing_gallery3_publishing_parameters_unref0 (param); -#line 1565 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_free0 (album_name); -#line 9896 "GalleryConnector.c" -} - - -static void -publishing_gallery3_publishing_options_pane_on_use_existing_radio_clicked (PublishingGallery3PublishingOptionsPane* self) -{ - GtkComboBoxText* _tmp0_; - GtkEntry* _tmp1_; - GtkComboBoxText* _tmp2_; -#line 1594 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_return_if_fail (PUBLISHING_GALLERY3_IS_PUBLISHING_OPTIONS_PANE (self)); -#line 1595 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp0_ = self->priv->existing_albums_combo; -#line 1595 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - gtk_widget_set_sensitive (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, gtk_widget_get_type (), GtkWidget), TRUE); -#line 1596 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp1_ = self->priv->new_album_entry; -#line 1596 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - gtk_widget_set_sensitive (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, gtk_widget_get_type (), GtkWidget), FALSE); -#line 1597 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp2_ = self->priv->existing_albums_combo; -#line 1597 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - gtk_widget_grab_focus (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, gtk_widget_get_type (), GtkWidget)); -#line 1598 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - publishing_gallery3_publishing_options_pane_update_publish_button_sensitivity (self); -#line 9922 "GalleryConnector.c" -} - - -static void -publishing_gallery3_publishing_options_pane_on_create_new_radio_clicked (PublishingGallery3PublishingOptionsPane* self) -{ - GtkEntry* _tmp0_; - GtkComboBoxText* _tmp1_; - GtkEntry* _tmp2_; -#line 1601 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_return_if_fail (PUBLISHING_GALLERY3_IS_PUBLISHING_OPTIONS_PANE (self)); -#line 1602 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp0_ = self->priv->new_album_entry; -#line 1602 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - gtk_widget_set_sensitive (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, gtk_widget_get_type (), GtkWidget), TRUE); -#line 1603 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp1_ = self->priv->existing_albums_combo; -#line 1603 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - gtk_widget_set_sensitive (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, gtk_widget_get_type (), GtkWidget), FALSE); -#line 1604 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp2_ = self->priv->new_album_entry; -#line 1604 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - gtk_widget_grab_focus (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, gtk_widget_get_type (), GtkWidget)); -#line 1605 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - publishing_gallery3_publishing_options_pane_update_publish_button_sensitivity (self); -#line 9948 "GalleryConnector.c" -} - - -static void -publishing_gallery3_publishing_options_pane_on_logout_clicked (PublishingGallery3PublishingOptionsPane* self) -{ -#line 1608 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_return_if_fail (PUBLISHING_GALLERY3_IS_PUBLISHING_OPTIONS_PANE (self)); -#line 1609 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_signal_emit (self, publishing_gallery3_publishing_options_pane_signals[PUBLISHING_GALLERY3_PUBLISHING_OPTIONS_PANE_LOGOUT_SIGNAL], 0); -#line 9959 "GalleryConnector.c" -} - - -static gchar* -string_strip (const gchar* self) -{ - gchar* result = NULL; - gchar* _result_ = NULL; - gchar* _tmp0_; - const gchar* _tmp1_; -#line 1248 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - g_return_val_if_fail (self != NULL, NULL); -#line 1249 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp0_ = g_strdup (self); -#line 1249 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _result_ = _tmp0_; -#line 1250 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp1_ = _result_; -#line 1250 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - g_strstrip (_tmp1_); -#line 1251 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - result = _result_; -#line 1251 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - return result; -#line 9984 "GalleryConnector.c" -} - - -static void -publishing_gallery3_publishing_options_pane_update_publish_button_sensitivity (PublishingGallery3PublishingOptionsPane* self) -{ - gchar* album_name = NULL; - GtkEntry* _tmp0_; - const gchar* _tmp1_; - gchar* _tmp2_; - gboolean _tmp3_ = FALSE; - const gchar* _tmp4_; - gchar* _tmp5_; - gchar* _tmp6_; - gboolean _tmp7_; - GtkButton* _tmp9_; -#line 1612 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_return_if_fail (PUBLISHING_GALLERY3_IS_PUBLISHING_OPTIONS_PANE (self)); -#line 1613 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp0_ = self->priv->new_album_entry; -#line 1613 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp1_ = gtk_entry_get_text (_tmp0_); -#line 1613 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp2_ = g_strdup (_tmp1_); -#line 1613 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - album_name = _tmp2_; -#line 1614 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp4_ = album_name; -#line 1614 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp5_ = string_strip (_tmp4_); -#line 1614 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp6_ = _tmp5_; -#line 1614 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp7_ = g_strcmp0 (_tmp6_, "") == 0; -#line 1614 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_free0 (_tmp6_); -#line 1614 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - if (_tmp7_) { -#line 10023 "GalleryConnector.c" - GtkRadioButton* _tmp8_; -#line 1615 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp8_ = self->priv->create_new_radio; -#line 1615 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp3_ = gtk_toggle_button_get_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, gtk_toggle_button_get_type (), GtkToggleButton)); -#line 10029 "GalleryConnector.c" - } else { -#line 1614 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp3_ = FALSE; -#line 10033 "GalleryConnector.c" - } -#line 1614 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp9_ = self->priv->publish_button; -#line 1614 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - gtk_widget_set_sensitive (G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, gtk_widget_get_type (), GtkWidget), !_tmp3_); -#line 1612 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_free0 (album_name); -#line 10041 "GalleryConnector.c" -} - - -static void -publishing_gallery3_publishing_options_pane_on_new_album_entry_changed (PublishingGallery3PublishingOptionsPane* self) -{ -#line 1618 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_return_if_fail (PUBLISHING_GALLERY3_IS_PUBLISHING_OPTIONS_PANE (self)); -#line 1619 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - publishing_gallery3_publishing_options_pane_update_publish_button_sensitivity (self); -#line 10052 "GalleryConnector.c" -} - - -static void -publishing_gallery3_publishing_options_pane_update_pixel_entry_sensitivity (PublishingGallery3PublishingOptionsPane* self) -{ - GtkEntry* _tmp0_; - GtkComboBoxText* _tmp1_; -#line 1622 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_return_if_fail (PUBLISHING_GALLERY3_IS_PUBLISHING_OPTIONS_PANE (self)); -#line 1623 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp0_ = self->priv->pixels; -#line 1623 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp1_ = self->priv->scaling_combo; -#line 1623 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - gtk_widget_set_sensitive (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, gtk_widget_get_type (), GtkWidget), gtk_combo_box_get_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, gtk_combo_box_get_type (), GtkComboBox)) == 1); -#line 10069 "GalleryConnector.c" -} - - -static void -publishing_gallery3_publishing_options_pane_on_scaling_constraint_changed (PublishingGallery3PublishingOptionsPane* self) -{ -#line 1626 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_return_if_fail (PUBLISHING_GALLERY3_IS_PUBLISHING_OPTIONS_PANE (self)); -#line 1627 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - publishing_gallery3_publishing_options_pane_update_pixel_entry_sensitivity (self); -#line 10080 "GalleryConnector.c" -} - - -static glong -string_strnlen (gchar* str, - glong maxlen) -{ - glong result = 0L; - gchar* end = NULL; - gchar* _tmp0_; - gchar* _tmp1_; -#line 1336 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp0_ = memchr (str, 0, (gsize) maxlen); -#line 1336 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - end = _tmp0_; -#line 1337 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp1_ = end; -#line 1337 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - if (_tmp1_ == NULL) { -#line 1338 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - result = maxlen; -#line 1338 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - return result; -#line 10104 "GalleryConnector.c" - } else { - gchar* _tmp2_; -#line 1340 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp2_ = end; -#line 1340 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - result = (glong) (_tmp2_ - str); -#line 1340 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - return result; -#line 10113 "GalleryConnector.c" - } -} - - -static gchar* -string_substring (const gchar* self, - glong offset, - glong len) -{ - gchar* result = NULL; - glong string_length = 0L; - gboolean _tmp0_ = FALSE; - glong _tmp6_; - gchar* _tmp7_; -#line 1347 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - g_return_val_if_fail (self != NULL, NULL); -#line 1349 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - if (offset >= ((glong) 0)) { -#line 1349 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp0_ = len >= ((glong) 0); -#line 10134 "GalleryConnector.c" - } else { -#line 1349 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp0_ = FALSE; -#line 10138 "GalleryConnector.c" - } -#line 1349 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - if (_tmp0_) { -#line 1351 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - string_length = string_strnlen ((gchar*) self, offset + len); -#line 10144 "GalleryConnector.c" - } else { - gint _tmp1_; - gint _tmp2_; -#line 1353 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp1_ = strlen (self); -#line 1353 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp2_ = _tmp1_; -#line 1353 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - string_length = (glong) _tmp2_; -#line 10154 "GalleryConnector.c" - } -#line 1356 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - if (offset < ((glong) 0)) { -#line 10158 "GalleryConnector.c" - glong _tmp3_; -#line 1357 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp3_ = string_length; -#line 1357 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - offset = _tmp3_ + offset; -#line 1358 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - g_return_val_if_fail (offset >= ((glong) 0), NULL); -#line 10166 "GalleryConnector.c" - } else { - glong _tmp4_; -#line 1360 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp4_ = string_length; -#line 1360 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - g_return_val_if_fail (offset <= _tmp4_, NULL); -#line 10173 "GalleryConnector.c" - } -#line 1362 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - if (len < ((glong) 0)) { -#line 10177 "GalleryConnector.c" - glong _tmp5_; -#line 1363 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp5_ = string_length; -#line 1363 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - len = _tmp5_ - offset; -#line 10183 "GalleryConnector.c" - } -#line 1365 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp6_ = string_length; -#line 1365 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - g_return_val_if_fail ((offset + len) <= _tmp6_, NULL); -#line 1366 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp7_ = g_strndup (((gchar*) self) + offset, (gsize) len); -#line 1366 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - result = _tmp7_; -#line 1366 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - return result; -#line 10195 "GalleryConnector.c" -} - - -static void -publishing_gallery3_publishing_options_pane_on_pixels_changed (PublishingGallery3PublishingOptionsPane* self) -{ - gchar* orig_text = NULL; - GtkEntry* _tmp0_; - const gchar* _tmp1_; - gchar* _tmp2_; - gchar last_char = '\0'; - const gchar* _tmp3_; - const gchar* _tmp4_; - gint _tmp5_; - gint _tmp6_; - const gchar* _tmp7_; - gint _tmp8_; - gint _tmp9_; -#line 1630 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_return_if_fail (PUBLISHING_GALLERY3_IS_PUBLISHING_OPTIONS_PANE (self)); -#line 1631 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp0_ = self->priv->pixels; -#line 1631 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp1_ = gtk_entry_get_text (_tmp0_); -#line 1631 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp2_ = g_strdup (_tmp1_); -#line 1631 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - orig_text = _tmp2_; -#line 1632 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp3_ = orig_text; -#line 1632 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp4_ = orig_text; -#line 1632 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp5_ = strlen (_tmp4_); -#line 1632 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp6_ = _tmp5_; -#line 1632 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - last_char = string_get (_tmp3_, (glong) (_tmp6_ - 1)); -#line 1634 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp7_ = orig_text; -#line 1634 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp8_ = strlen (_tmp7_); -#line 1634 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp9_ = _tmp8_; -#line 1634 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - if (_tmp9_ > 0) { -#line 10242 "GalleryConnector.c" - gchar _tmp10_; -#line 1635 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp10_ = last_char; -#line 1635 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - if (!g_ascii_isdigit (_tmp10_)) { -#line 10248 "GalleryConnector.c" - GtkEntry* _tmp11_; - const gchar* _tmp12_; - const gchar* _tmp13_; - gint _tmp14_; - gint _tmp15_; - gchar* _tmp16_; - gchar* _tmp17_; -#line 1636 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp11_ = self->priv->pixels; -#line 1636 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp12_ = orig_text; -#line 1636 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp13_ = orig_text; -#line 1636 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp14_ = strlen (_tmp13_); -#line 1636 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp15_ = _tmp14_; -#line 1636 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp16_ = string_substring (_tmp12_, (glong) 0, (glong) (_tmp15_ - 1)); -#line 1636 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp17_ = _tmp16_; -#line 1636 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - gtk_entry_set_text (_tmp11_, _tmp17_); -#line 1636 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_free0 (_tmp17_); -#line 10274 "GalleryConnector.c" - } - } -#line 1630 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_free0 (orig_text); -#line 10279 "GalleryConnector.c" -} - - -void -publishing_gallery3_publishing_options_pane_installed (PublishingGallery3PublishingOptionsPane* self) -{ - gint default_album_id = 0; - gchar* last_album = NULL; - SpitPublishingPluginHost* _tmp0_; - gchar* _tmp1_; - PublishingGallery3Album** _tmp27_; - gint _tmp27__length1; -#line 1641 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_return_if_fail (PUBLISHING_GALLERY3_IS_PUBLISHING_OPTIONS_PANE (self)); -#line 1642 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - default_album_id = -1; -#line 1643 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp0_ = self->priv->host; -#line 1643 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp1_ = spit_host_interface_get_config_string (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, SPIT_TYPE_HOST_INTERFACE, SpitHostInterface), PUBLISHING_GALLERY3_PUBLISHING_OPTIONS_PANE_LAST_ALBUM_CONFIG_KEY, ""); -#line 1643 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - last_album = _tmp1_; -#line 10302 "GalleryConnector.c" - { - gint i = 0; -#line 1645 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - i = 0; -#line 10307 "GalleryConnector.c" - { - gboolean _tmp2_ = FALSE; -#line 1645 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp2_ = TRUE; -#line 1645 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - while (TRUE) { -#line 10314 "GalleryConnector.c" - gint _tmp4_; - PublishingGallery3Album** _tmp5_; - gint _tmp5__length1; - GtkComboBoxText* _tmp6_; - PublishingGallery3Album** _tmp7_; - gint _tmp7__length1; - gint _tmp8_; - PublishingGallery3Album* _tmp9_; - const gchar* _tmp10_; - const gchar* _tmp11_; - gboolean _tmp12_ = FALSE; - PublishingGallery3Album** _tmp13_; - gint _tmp13__length1; - gint _tmp14_; - PublishingGallery3Album* _tmp15_; - const gchar* _tmp16_; - const gchar* _tmp17_; - const gchar* _tmp18_; -#line 1645 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - if (!_tmp2_) { -#line 10335 "GalleryConnector.c" - gint _tmp3_; -#line 1645 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp3_ = i; -#line 1645 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - i = _tmp3_ + 1; -#line 10341 "GalleryConnector.c" - } -#line 1645 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp2_ = FALSE; -#line 1645 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp4_ = i; -#line 1645 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp5_ = self->priv->albums; -#line 1645 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp5__length1 = self->priv->albums_length1; -#line 1645 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - if (!(_tmp4_ <= (_tmp5__length1 - 1))) { -#line 1645 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - break; -#line 10355 "GalleryConnector.c" - } -#line 1646 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp6_ = self->priv->existing_albums_combo; -#line 1646 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp7_ = self->priv->albums; -#line 1646 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp7__length1 = self->priv->albums_length1; -#line 1646 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp8_ = i; -#line 1646 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp9_ = _tmp7_[_tmp8_]; -#line 1646 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp10_ = publishing_gallery3_album_get_title (_tmp9_); -#line 1646 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp11_ = _tmp10_; -#line 1646 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - gtk_combo_box_text_append_text (_tmp6_, _tmp11_); -#line 1647 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp13_ = self->priv->albums; -#line 1647 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp13__length1 = self->priv->albums_length1; -#line 1647 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp14_ = i; -#line 1647 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp15_ = _tmp13_[_tmp14_]; -#line 1647 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp16_ = publishing_gallery3_album_get_title (_tmp15_); -#line 1647 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp17_ = _tmp16_; -#line 1647 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp18_ = last_album; -#line 1647 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - if (g_strcmp0 (_tmp17_, _tmp18_) == 0) { -#line 1647 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp12_ = TRUE; -#line 10391 "GalleryConnector.c" - } else { - gboolean _tmp19_ = FALSE; - PublishingGallery3Album** _tmp20_; - gint _tmp20__length1; - gint _tmp21_; - PublishingGallery3Album* _tmp22_; - const gchar* _tmp23_; - const gchar* _tmp24_; -#line 1648 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp20_ = self->priv->albums; -#line 1648 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp20__length1 = self->priv->albums_length1; -#line 1648 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp21_ = i; -#line 1648 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp22_ = _tmp20_[_tmp21_]; -#line 1648 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp23_ = publishing_gallery3_album_get_title (_tmp22_); -#line 1648 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp24_ = _tmp23_; -#line 1648 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - if (g_strcmp0 (PUBLISHING_GALLERY3_PUBLISHING_OPTIONS_PANE_DEFAULT_ALBUM_NAME, _tmp24_) == 0) { -#line 10414 "GalleryConnector.c" - gint _tmp25_; -#line 1649 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp25_ = default_album_id; -#line 1649 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp19_ = -1 == _tmp25_; -#line 10420 "GalleryConnector.c" - } else { -#line 1648 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp19_ = FALSE; -#line 10424 "GalleryConnector.c" - } -#line 1648 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp12_ = _tmp19_; -#line 10428 "GalleryConnector.c" - } -#line 1647 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - if (_tmp12_) { -#line 10432 "GalleryConnector.c" - gint _tmp26_; -#line 1650 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp26_ = i; -#line 1650 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - default_album_id = _tmp26_; -#line 10438 "GalleryConnector.c" - } - } - } - } -#line 1653 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp27_ = self->priv->albums; -#line 1653 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp27__length1 = self->priv->albums_length1; -#line 1653 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - if (_tmp27__length1 == 0) { -#line 10449 "GalleryConnector.c" - GtkComboBoxText* _tmp28_; - GtkRadioButton* _tmp29_; - GtkRadioButton* _tmp30_; - GtkEntry* _tmp31_; - GtkEntry* _tmp32_; -#line 1654 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp28_ = self->priv->existing_albums_combo; -#line 1654 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - gtk_widget_set_sensitive (G_TYPE_CHECK_INSTANCE_CAST (_tmp28_, gtk_widget_get_type (), GtkWidget), FALSE); -#line 1655 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp29_ = self->priv->use_existing_radio; -#line 1655 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - gtk_widget_set_sensitive (G_TYPE_CHECK_INSTANCE_CAST (_tmp29_, gtk_widget_get_type (), GtkWidget), FALSE); -#line 1656 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp30_ = self->priv->create_new_radio; -#line 1656 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - gtk_toggle_button_set_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp30_, gtk_toggle_button_get_type (), GtkToggleButton), TRUE); -#line 1657 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp31_ = self->priv->new_album_entry; -#line 1657 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - gtk_widget_grab_focus (G_TYPE_CHECK_INSTANCE_CAST (_tmp31_, gtk_widget_get_type (), GtkWidget)); -#line 1658 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp32_ = self->priv->new_album_entry; -#line 1658 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - gtk_entry_set_text (_tmp32_, PUBLISHING_GALLERY3_PUBLISHING_OPTIONS_PANE_DEFAULT_ALBUM_NAME); -#line 10475 "GalleryConnector.c" - } else { - gint _tmp33_; -#line 1660 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp33_ = default_album_id; -#line 1660 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - if (_tmp33_ >= 0) { -#line 10482 "GalleryConnector.c" - GtkRadioButton* _tmp34_; - GtkComboBoxText* _tmp35_; - gint _tmp36_; - GtkEntry* _tmp37_; -#line 1661 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp34_ = self->priv->use_existing_radio; -#line 1661 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - gtk_toggle_button_set_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp34_, gtk_toggle_button_get_type (), GtkToggleButton), TRUE); -#line 1662 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp35_ = self->priv->existing_albums_combo; -#line 1662 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp36_ = default_album_id; -#line 1662 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - gtk_combo_box_set_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp35_, gtk_combo_box_get_type (), GtkComboBox), _tmp36_); -#line 1663 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp37_ = self->priv->new_album_entry; -#line 1663 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - gtk_widget_set_sensitive (G_TYPE_CHECK_INSTANCE_CAST (_tmp37_, gtk_widget_get_type (), GtkWidget), FALSE); -#line 10501 "GalleryConnector.c" - } else { - GtkRadioButton* _tmp38_; - GtkComboBoxText* _tmp39_; - GtkEntry* _tmp40_; - GtkEntry* _tmp41_; -#line 1665 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp38_ = self->priv->create_new_radio; -#line 1665 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - gtk_toggle_button_set_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp38_, gtk_toggle_button_get_type (), GtkToggleButton), TRUE); -#line 1666 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp39_ = self->priv->existing_albums_combo; -#line 1666 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - gtk_combo_box_set_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp39_, gtk_combo_box_get_type (), GtkComboBox), 0); -#line 1667 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp40_ = self->priv->new_album_entry; -#line 1667 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - gtk_entry_set_text (_tmp40_, PUBLISHING_GALLERY3_PUBLISHING_OPTIONS_PANE_DEFAULT_ALBUM_NAME); -#line 1668 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp41_ = self->priv->new_album_entry; -#line 1668 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - gtk_widget_grab_focus (G_TYPE_CHECK_INSTANCE_CAST (_tmp41_, gtk_widget_get_type (), GtkWidget)); -#line 10523 "GalleryConnector.c" - } - } -#line 1671 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - publishing_gallery3_publishing_options_pane_update_publish_button_sensitivity (self); -#line 1672 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - publishing_gallery3_publishing_options_pane_update_pixel_entry_sensitivity (self); -#line 1641 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_free0 (last_album); -#line 10532 "GalleryConnector.c" -} - - -static GtkWidget* -publishing_gallery3_publishing_options_pane_real_get_widget (SpitPublishingDialogPane* base) -{ - PublishingGallery3PublishingOptionsPane * self; - GtkWidget* result = NULL; - GtkGrid* _tmp0_; - GtkWidget* _tmp1_; -#line 1675 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_GALLERY3_TYPE_PUBLISHING_OPTIONS_PANE, PublishingGallery3PublishingOptionsPane); -#line 1676 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp0_ = self->priv->pane_widget; -#line 1676 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp1_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, gtk_widget_get_type (), GtkWidget)); -#line 1676 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - result = _tmp1_; -#line 1676 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - return result; -#line 10553 "GalleryConnector.c" -} - - -static SpitPublishingDialogPaneGeometryOptions -publishing_gallery3_publishing_options_pane_real_get_preferred_geometry (SpitPublishingDialogPane* base) -{ - PublishingGallery3PublishingOptionsPane * self; - SpitPublishingDialogPaneGeometryOptions result = 0; -#line 1679 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_GALLERY3_TYPE_PUBLISHING_OPTIONS_PANE, PublishingGallery3PublishingOptionsPane); -#line 1680 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - result = SPIT_PUBLISHING_DIALOG_PANE_GEOMETRY_OPTIONS_NONE; -#line 1680 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - return result; -#line 10568 "GalleryConnector.c" -} - - -static void -publishing_gallery3_publishing_options_pane_real_on_pane_installed (SpitPublishingDialogPane* base) -{ - PublishingGallery3PublishingOptionsPane * self; -#line 1683 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_GALLERY3_TYPE_PUBLISHING_OPTIONS_PANE, PublishingGallery3PublishingOptionsPane); -#line 1684 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - publishing_gallery3_publishing_options_pane_installed (self); -#line 10580 "GalleryConnector.c" -} - - -static void -publishing_gallery3_publishing_options_pane_real_on_pane_uninstalled (SpitPublishingDialogPane* base) -{ - PublishingGallery3PublishingOptionsPane * self; -#line 1687 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_GALLERY3_TYPE_PUBLISHING_OPTIONS_PANE, PublishingGallery3PublishingOptionsPane); -#line 10590 "GalleryConnector.c" -} - - -static void -g_cclosure_user_marshal_VOID__PUBLISHING_GALLERY3_PUBLISHING_PARAMETERS (GClosure * closure, - GValue * return_value, - guint n_param_values, - const GValue * param_values, - gpointer invocation_hint, - gpointer marshal_data) -{ - typedef void (*GMarshalFunc_VOID__PUBLISHING_GALLERY3_PUBLISHING_PARAMETERS) (gpointer data1, gpointer arg_1, gpointer data2); - register GMarshalFunc_VOID__PUBLISHING_GALLERY3_PUBLISHING_PARAMETERS callback; - register GCClosure * cc; - register gpointer data1; - register gpointer data2; - cc = (GCClosure *) closure; -#line 1499 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_return_if_fail (n_param_values == 2); -#line 1499 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - if (G_CCLOSURE_SWAP_DATA (closure)) { -#line 1499 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - data1 = closure->data; -#line 1499 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - data2 = param_values->data[0].v_pointer; -#line 10616 "GalleryConnector.c" - } else { -#line 1499 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - data1 = param_values->data[0].v_pointer; -#line 1499 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - data2 = closure->data; -#line 10622 "GalleryConnector.c" - } -#line 1499 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - callback = (GMarshalFunc_VOID__PUBLISHING_GALLERY3_PUBLISHING_PARAMETERS) (marshal_data ? marshal_data : cc->callback); -#line 1499 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - callback (data1, publishing_gallery3_value_get_publishing_parameters (param_values + 1), data2); -#line 10628 "GalleryConnector.c" -} - - -static void -publishing_gallery3_publishing_options_pane_class_init (PublishingGallery3PublishingOptionsPaneClass * klass) -{ -#line 1499 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - publishing_gallery3_publishing_options_pane_parent_class = g_type_class_peek_parent (klass); -#line 1499 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_type_class_add_private (klass, sizeof (PublishingGallery3PublishingOptionsPanePrivate)); -#line 1499 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - G_OBJECT_CLASS (klass)->finalize = publishing_gallery3_publishing_options_pane_finalize; -#line 1499 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - publishing_gallery3_publishing_options_pane_signals[PUBLISHING_GALLERY3_PUBLISHING_OPTIONS_PANE_PUBLISH_SIGNAL] = g_signal_new ("publish", PUBLISHING_GALLERY3_TYPE_PUBLISHING_OPTIONS_PANE, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_user_marshal_VOID__PUBLISHING_GALLERY3_PUBLISHING_PARAMETERS, G_TYPE_NONE, 1, PUBLISHING_GALLERY3_TYPE_PUBLISHING_PARAMETERS); -#line 1499 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - publishing_gallery3_publishing_options_pane_signals[PUBLISHING_GALLERY3_PUBLISHING_OPTIONS_PANE_LOGOUT_SIGNAL] = g_signal_new ("logout", PUBLISHING_GALLERY3_TYPE_PUBLISHING_OPTIONS_PANE, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_marshal_VOID__VOID, G_TYPE_NONE, 0); -#line 10645 "GalleryConnector.c" -} - - -static void -publishing_gallery3_publishing_options_pane_spit_publishing_dialog_pane_interface_init (SpitPublishingDialogPaneIface * iface) -{ -#line 1499 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - publishing_gallery3_publishing_options_pane_spit_publishing_dialog_pane_parent_iface = g_type_interface_peek_parent (iface); -#line 1499 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - iface->get_widget = (GtkWidget* (*) (SpitPublishingDialogPane *)) publishing_gallery3_publishing_options_pane_real_get_widget; -#line 1499 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - iface->get_preferred_geometry = (SpitPublishingDialogPaneGeometryOptions (*) (SpitPublishingDialogPane *)) publishing_gallery3_publishing_options_pane_real_get_preferred_geometry; -#line 1499 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - iface->on_pane_installed = (void (*) (SpitPublishingDialogPane *)) publishing_gallery3_publishing_options_pane_real_on_pane_installed; -#line 1499 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - iface->on_pane_uninstalled = (void (*) (SpitPublishingDialogPane *)) publishing_gallery3_publishing_options_pane_real_on_pane_uninstalled; -#line 10662 "GalleryConnector.c" -} - - -static void -publishing_gallery3_publishing_options_pane_instance_init (PublishingGallery3PublishingOptionsPane * self) -{ -#line 1499 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self->priv = PUBLISHING_GALLERY3_PUBLISHING_OPTIONS_PANE_GET_PRIVATE (self); -#line 1503 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self->priv->builder = NULL; -#line 1505 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self->priv->pane_widget = NULL; -#line 1506 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self->priv->title_label = NULL; -#line 1507 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self->priv->use_existing_radio = NULL; -#line 1508 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self->priv->existing_albums_combo = NULL; -#line 1509 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self->priv->create_new_radio = NULL; -#line 1510 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self->priv->new_album_entry = NULL; -#line 1511 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self->priv->scaling_combo = NULL; -#line 1512 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self->priv->pixels = NULL; -#line 1513 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self->priv->strip_metadata_check = NULL; -#line 1514 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self->priv->publish_button = NULL; -#line 1515 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self->priv->logout_button = NULL; -#line 10695 "GalleryConnector.c" -} - - -static void -publishing_gallery3_publishing_options_pane_finalize (GObject * obj) -{ - PublishingGallery3PublishingOptionsPane * self; -#line 1499 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, PUBLISHING_GALLERY3_TYPE_PUBLISHING_OPTIONS_PANE, PublishingGallery3PublishingOptionsPane); -#line 1503 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_object_unref0 (self->priv->builder); -#line 1505 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_object_unref0 (self->priv->pane_widget); -#line 1506 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_object_unref0 (self->priv->title_label); -#line 1507 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_object_unref0 (self->priv->use_existing_radio); -#line 1508 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_object_unref0 (self->priv->existing_albums_combo); -#line 1509 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_object_unref0 (self->priv->create_new_radio); -#line 1510 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_object_unref0 (self->priv->new_album_entry); -#line 1511 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_object_unref0 (self->priv->scaling_combo); -#line 1512 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_object_unref0 (self->priv->pixels); -#line 1513 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_object_unref0 (self->priv->strip_metadata_check); -#line 1514 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_object_unref0 (self->priv->publish_button); -#line 1515 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_object_unref0 (self->priv->logout_button); -#line 1517 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self->priv->albums = (_vala_array_free (self->priv->albums, self->priv->albums_length1, (GDestroyNotify) publishing_gallery3_album_unref), NULL); -#line 1499 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - G_OBJECT_CLASS (publishing_gallery3_publishing_options_pane_parent_class)->finalize (obj); -#line 10733 "GalleryConnector.c" -} - - -GType -publishing_gallery3_publishing_options_pane_get_type (void) -{ - static volatile gsize publishing_gallery3_publishing_options_pane_type_id__volatile = 0; - if (g_once_init_enter (&publishing_gallery3_publishing_options_pane_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (PublishingGallery3PublishingOptionsPaneClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) publishing_gallery3_publishing_options_pane_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PublishingGallery3PublishingOptionsPane), 0, (GInstanceInitFunc) publishing_gallery3_publishing_options_pane_instance_init, NULL }; - static const GInterfaceInfo spit_publishing_dialog_pane_info = { (GInterfaceInitFunc) publishing_gallery3_publishing_options_pane_spit_publishing_dialog_pane_interface_init, (GInterfaceFinalizeFunc) NULL, NULL}; - GType publishing_gallery3_publishing_options_pane_type_id; - publishing_gallery3_publishing_options_pane_type_id = g_type_register_static (G_TYPE_OBJECT, "PublishingGallery3PublishingOptionsPane", &g_define_type_info, 0); - g_type_add_interface_static (publishing_gallery3_publishing_options_pane_type_id, SPIT_PUBLISHING_TYPE_DIALOG_PANE, &spit_publishing_dialog_pane_info); - g_once_init_leave (&publishing_gallery3_publishing_options_pane_type_id__volatile, publishing_gallery3_publishing_options_pane_type_id); - } - return publishing_gallery3_publishing_options_pane_type_id__volatile; -} - - -static PublishingGallery3PublishingParameters* -publishing_gallery3_publishing_parameters_construct (GType object_type) -{ - PublishingGallery3PublishingParameters* self = NULL; -#line 1710 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self = (PublishingGallery3PublishingParameters*) g_type_create_instance (object_type); -#line 1710 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - return self; -#line 10761 "GalleryConnector.c" -} - - -static PublishingGallery3PublishingParameters* -publishing_gallery3_publishing_parameters_new (void) -{ -#line 1710 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - return publishing_gallery3_publishing_parameters_construct (PUBLISHING_GALLERY3_TYPE_PUBLISHING_PARAMETERS); -#line 10770 "GalleryConnector.c" -} - - -static gchar* -string_delimit (const gchar* self, - const gchar* delimiters, - gchar new_delimiter) -{ - gchar* result = NULL; - gchar* _result_ = NULL; - gchar* _tmp0_; - const gchar* _tmp1_; -#line 1256 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - g_return_val_if_fail (self != NULL, NULL); -#line 1256 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - g_return_val_if_fail (delimiters != NULL, NULL); -#line 1257 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp0_ = g_strdup (self); -#line 1257 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _result_ = _tmp0_; -#line 1258 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp1_ = _result_; -#line 1258 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - g_strdelimit (_tmp1_, delimiters, new_delimiter); -#line 1259 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - result = _result_; -#line 1259 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - return result; -#line 10799 "GalleryConnector.c" -} - - -PublishingGallery3PublishingParameters* -publishing_gallery3_publishing_parameters_construct_to_new_album (GType object_type, - const gchar* album_title) -{ - PublishingGallery3PublishingParameters* self = NULL; - gchar* _tmp0_; - gchar* _tmp1_; -#line 1713 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_return_val_if_fail (album_title != NULL, NULL); -#line 1713 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self = (PublishingGallery3PublishingParameters*) g_type_create_instance (object_type); -#line 1714 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp0_ = string_delimit (album_title, " ", '-'); -#line 1714 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp1_ = _tmp0_; -#line 1714 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - publishing_gallery3_publishing_parameters_set_album_name (self, _tmp1_); -#line 1714 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_free0 (_tmp1_); -#line 1716 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - publishing_gallery3_publishing_parameters_set_album_title (self, album_title); -#line 1713 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - return self; -#line 10826 "GalleryConnector.c" -} - - -PublishingGallery3PublishingParameters* -publishing_gallery3_publishing_parameters_new_to_new_album (const gchar* album_title) -{ -#line 1713 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - return publishing_gallery3_publishing_parameters_construct_to_new_album (PUBLISHING_GALLERY3_TYPE_PUBLISHING_PARAMETERS, album_title); -#line 10835 "GalleryConnector.c" -} - - -PublishingGallery3PublishingParameters* -publishing_gallery3_publishing_parameters_construct_to_existing_album (GType object_type, - const gchar* album_path) -{ - PublishingGallery3PublishingParameters* self = NULL; -#line 1719 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_return_val_if_fail (album_path != NULL, NULL); -#line 1719 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self = (PublishingGallery3PublishingParameters*) g_type_create_instance (object_type); -#line 1720 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - publishing_gallery3_publishing_parameters_set_album_path (self, album_path); -#line 1719 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - return self; -#line 10852 "GalleryConnector.c" -} - - -PublishingGallery3PublishingParameters* -publishing_gallery3_publishing_parameters_new_to_existing_album (const gchar* album_path) -{ -#line 1719 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - return publishing_gallery3_publishing_parameters_construct_to_existing_album (PUBLISHING_GALLERY3_TYPE_PUBLISHING_PARAMETERS, album_path); -#line 10861 "GalleryConnector.c" -} - - -gboolean -publishing_gallery3_publishing_parameters_is_to_new_album (PublishingGallery3PublishingParameters* self) -{ - gboolean result = FALSE; - const gchar* _tmp0_; -#line 1723 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_return_val_if_fail (PUBLISHING_GALLERY3_IS_PUBLISHING_PARAMETERS (self), FALSE); -#line 1724 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp0_ = self->priv->_album_name; -#line 1724 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - result = g_strcmp0 (_tmp0_, "") != 0; -#line 1724 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - return result; -#line 10878 "GalleryConnector.c" -} - - -const gchar* -publishing_gallery3_publishing_parameters_get_album_title (PublishingGallery3PublishingParameters* self) -{ - const gchar* result; - const gchar* _tmp0_; -#line 1698 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_return_val_if_fail (PUBLISHING_GALLERY3_IS_PUBLISHING_PARAMETERS (self), NULL); -#line 1699 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _vala_assert (publishing_gallery3_publishing_parameters_is_to_new_album (self), "is_to_new_album()"); -#line 1700 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp0_ = self->priv->_album_title; -#line 1700 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - result = _tmp0_; -#line 1700 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - return result; -#line 10897 "GalleryConnector.c" -} - - -static void -publishing_gallery3_publishing_parameters_set_album_title (PublishingGallery3PublishingParameters* self, - const gchar* value) -{ - gchar* _tmp0_; -#line 1702 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_return_if_fail (PUBLISHING_GALLERY3_IS_PUBLISHING_PARAMETERS (self)); -#line 1702 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp0_ = g_strdup (value); -#line 1702 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_free0 (self->priv->_album_title); -#line 1702 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self->priv->_album_title = _tmp0_; -#line 10914 "GalleryConnector.c" -} - - -const gchar* -publishing_gallery3_publishing_parameters_get_album_name (PublishingGallery3PublishingParameters* self) -{ - const gchar* result; - const gchar* _tmp0_; -#line 1704 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_return_val_if_fail (PUBLISHING_GALLERY3_IS_PUBLISHING_PARAMETERS (self), NULL); -#line 1704 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp0_ = self->priv->_album_name; -#line 1704 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - result = _tmp0_; -#line 1704 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - return result; -#line 10931 "GalleryConnector.c" -} - - -static void -publishing_gallery3_publishing_parameters_set_album_name (PublishingGallery3PublishingParameters* self, - const gchar* value) -{ - gchar* _tmp0_; -#line 1704 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_return_if_fail (PUBLISHING_GALLERY3_IS_PUBLISHING_PARAMETERS (self)); -#line 1704 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp0_ = g_strdup (value); -#line 1704 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_free0 (self->priv->_album_name); -#line 1704 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self->priv->_album_name = _tmp0_; -#line 10948 "GalleryConnector.c" -} - - -const gchar* -publishing_gallery3_publishing_parameters_get_album_path (PublishingGallery3PublishingParameters* self) -{ - const gchar* result; - const gchar* _tmp0_; -#line 1705 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_return_val_if_fail (PUBLISHING_GALLERY3_IS_PUBLISHING_PARAMETERS (self), NULL); -#line 1705 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp0_ = self->priv->_album_path; -#line 1705 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - result = _tmp0_; -#line 1705 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - return result; -#line 10965 "GalleryConnector.c" -} - - -void -publishing_gallery3_publishing_parameters_set_album_path (PublishingGallery3PublishingParameters* self, - const gchar* value) -{ - gchar* _tmp0_; -#line 1705 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_return_if_fail (PUBLISHING_GALLERY3_IS_PUBLISHING_PARAMETERS (self)); -#line 1705 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp0_ = g_strdup (value); -#line 1705 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_free0 (self->priv->_album_path); -#line 1705 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self->priv->_album_path = _tmp0_; -#line 10982 "GalleryConnector.c" -} - - -const gchar* -publishing_gallery3_publishing_parameters_get_entity_title (PublishingGallery3PublishingParameters* self) -{ - const gchar* result; - const gchar* _tmp0_; -#line 1706 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_return_val_if_fail (PUBLISHING_GALLERY3_IS_PUBLISHING_PARAMETERS (self), NULL); -#line 1706 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp0_ = self->priv->_entity_title; -#line 1706 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - result = _tmp0_; -#line 1706 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - return result; -#line 10999 "GalleryConnector.c" -} - - -static void -publishing_gallery3_publishing_parameters_set_entity_title (PublishingGallery3PublishingParameters* self, - const gchar* value) -{ - gchar* _tmp0_; -#line 1706 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_return_if_fail (PUBLISHING_GALLERY3_IS_PUBLISHING_PARAMETERS (self)); -#line 1706 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp0_ = g_strdup (value); -#line 1706 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_free0 (self->priv->_entity_title); -#line 1706 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self->priv->_entity_title = _tmp0_; -#line 11016 "GalleryConnector.c" -} - - -gint -publishing_gallery3_publishing_parameters_get_photo_major_axis_size (PublishingGallery3PublishingParameters* self) -{ - gint result; - gint _tmp0_; -#line 1707 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_return_val_if_fail (PUBLISHING_GALLERY3_IS_PUBLISHING_PARAMETERS (self), 0); -#line 1707 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp0_ = self->priv->_photo_major_axis_size; -#line 1707 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - result = _tmp0_; -#line 1707 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - return result; -#line 11033 "GalleryConnector.c" -} - - -void -publishing_gallery3_publishing_parameters_set_photo_major_axis_size (PublishingGallery3PublishingParameters* self, - gint value) -{ -#line 1707 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_return_if_fail (PUBLISHING_GALLERY3_IS_PUBLISHING_PARAMETERS (self)); -#line 1707 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self->priv->_photo_major_axis_size = value; -#line 11045 "GalleryConnector.c" -} - - -gboolean -publishing_gallery3_publishing_parameters_get_strip_metadata (PublishingGallery3PublishingParameters* self) -{ - gboolean result; - gboolean _tmp0_; -#line 1708 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_return_val_if_fail (PUBLISHING_GALLERY3_IS_PUBLISHING_PARAMETERS (self), FALSE); -#line 1708 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp0_ = self->priv->_strip_metadata; -#line 1708 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - result = _tmp0_; -#line 1708 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - return result; -#line 11062 "GalleryConnector.c" -} - - -void -publishing_gallery3_publishing_parameters_set_strip_metadata (PublishingGallery3PublishingParameters* self, - gboolean value) -{ -#line 1708 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_return_if_fail (PUBLISHING_GALLERY3_IS_PUBLISHING_PARAMETERS (self)); -#line 1708 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self->priv->_strip_metadata = value; -#line 11074 "GalleryConnector.c" -} - - -static void -publishing_gallery3_value_publishing_parameters_init (GValue* value) -{ -#line 1691 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - value->data[0].v_pointer = NULL; -#line 11083 "GalleryConnector.c" -} - - -static void -publishing_gallery3_value_publishing_parameters_free_value (GValue* value) -{ -#line 1691 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - if (value->data[0].v_pointer) { -#line 1691 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - publishing_gallery3_publishing_parameters_unref (value->data[0].v_pointer); -#line 11094 "GalleryConnector.c" - } -} - - -static void -publishing_gallery3_value_publishing_parameters_copy_value (const GValue* src_value, - GValue* dest_value) -{ -#line 1691 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - if (src_value->data[0].v_pointer) { -#line 1691 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - dest_value->data[0].v_pointer = publishing_gallery3_publishing_parameters_ref (src_value->data[0].v_pointer); -#line 11107 "GalleryConnector.c" - } else { -#line 1691 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - dest_value->data[0].v_pointer = NULL; -#line 11111 "GalleryConnector.c" - } -} - - -static gpointer -publishing_gallery3_value_publishing_parameters_peek_pointer (const GValue* value) -{ -#line 1691 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - return value->data[0].v_pointer; -#line 11121 "GalleryConnector.c" -} - - -static gchar* -publishing_gallery3_value_publishing_parameters_collect_value (GValue* value, - guint n_collect_values, - GTypeCValue* collect_values, - guint collect_flags) -{ -#line 1691 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - if (collect_values[0].v_pointer) { -#line 11133 "GalleryConnector.c" - PublishingGallery3PublishingParameters * object; - object = collect_values[0].v_pointer; -#line 1691 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - if (object->parent_instance.g_class == NULL) { -#line 1691 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL); -#line 11140 "GalleryConnector.c" - } else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) { -#line 1691 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - return g_strconcat ("invalid object type `", g_type_name (G_TYPE_FROM_INSTANCE (object)), "' for value type `", G_VALUE_TYPE_NAME (value), "'", NULL); -#line 11144 "GalleryConnector.c" - } -#line 1691 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - value->data[0].v_pointer = publishing_gallery3_publishing_parameters_ref (object); -#line 11148 "GalleryConnector.c" - } else { -#line 1691 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - value->data[0].v_pointer = NULL; -#line 11152 "GalleryConnector.c" - } -#line 1691 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - return NULL; -#line 11156 "GalleryConnector.c" -} - - -static gchar* -publishing_gallery3_value_publishing_parameters_lcopy_value (const GValue* value, - guint n_collect_values, - GTypeCValue* collect_values, - guint collect_flags) -{ - PublishingGallery3PublishingParameters ** object_p; - object_p = collect_values[0].v_pointer; -#line 1691 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - if (!object_p) { -#line 1691 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value)); -#line 11172 "GalleryConnector.c" - } -#line 1691 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - if (!value->data[0].v_pointer) { -#line 1691 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - *object_p = NULL; -#line 11178 "GalleryConnector.c" - } else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) { -#line 1691 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - *object_p = value->data[0].v_pointer; -#line 11182 "GalleryConnector.c" - } else { -#line 1691 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - *object_p = publishing_gallery3_publishing_parameters_ref (value->data[0].v_pointer); -#line 11186 "GalleryConnector.c" - } -#line 1691 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - return NULL; -#line 11190 "GalleryConnector.c" -} - - -GParamSpec* -publishing_gallery3_param_spec_publishing_parameters (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags) -{ - PublishingGallery3ParamSpecPublishingParameters* spec; -#line 1691 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_return_val_if_fail (g_type_is_a (object_type, PUBLISHING_GALLERY3_TYPE_PUBLISHING_PARAMETERS), NULL); -#line 1691 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags); -#line 1691 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - G_PARAM_SPEC (spec)->value_type = object_type; -#line 1691 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - return G_PARAM_SPEC (spec); -#line 11210 "GalleryConnector.c" -} - - -gpointer -publishing_gallery3_value_get_publishing_parameters (const GValue* value) -{ -#line 1691 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, PUBLISHING_GALLERY3_TYPE_PUBLISHING_PARAMETERS), NULL); -#line 1691 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - return value->data[0].v_pointer; -#line 11221 "GalleryConnector.c" -} - - -void -publishing_gallery3_value_set_publishing_parameters (GValue* value, - gpointer v_object) -{ - PublishingGallery3PublishingParameters * old; -#line 1691 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, PUBLISHING_GALLERY3_TYPE_PUBLISHING_PARAMETERS)); -#line 1691 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - old = value->data[0].v_pointer; -#line 1691 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - if (v_object) { -#line 1691 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, PUBLISHING_GALLERY3_TYPE_PUBLISHING_PARAMETERS)); -#line 1691 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value))); -#line 1691 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - value->data[0].v_pointer = v_object; -#line 1691 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - publishing_gallery3_publishing_parameters_ref (value->data[0].v_pointer); -#line 11244 "GalleryConnector.c" - } else { -#line 1691 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - value->data[0].v_pointer = NULL; -#line 11248 "GalleryConnector.c" - } -#line 1691 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - if (old) { -#line 1691 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - publishing_gallery3_publishing_parameters_unref (old); -#line 11254 "GalleryConnector.c" - } -} - - -void -publishing_gallery3_value_take_publishing_parameters (GValue* value, - gpointer v_object) -{ - PublishingGallery3PublishingParameters * old; -#line 1691 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, PUBLISHING_GALLERY3_TYPE_PUBLISHING_PARAMETERS)); -#line 1691 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - old = value->data[0].v_pointer; -#line 1691 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - if (v_object) { -#line 1691 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, PUBLISHING_GALLERY3_TYPE_PUBLISHING_PARAMETERS)); -#line 1691 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value))); -#line 1691 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - value->data[0].v_pointer = v_object; -#line 11276 "GalleryConnector.c" - } else { -#line 1691 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - value->data[0].v_pointer = NULL; -#line 11280 "GalleryConnector.c" - } -#line 1691 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - if (old) { -#line 1691 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - publishing_gallery3_publishing_parameters_unref (old); -#line 11286 "GalleryConnector.c" - } -} - - -static void -publishing_gallery3_publishing_parameters_class_init (PublishingGallery3PublishingParametersClass * klass) -{ -#line 1691 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - publishing_gallery3_publishing_parameters_parent_class = g_type_class_peek_parent (klass); -#line 1691 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - ((PublishingGallery3PublishingParametersClass *) klass)->finalize = publishing_gallery3_publishing_parameters_finalize; -#line 1691 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_type_class_add_private (klass, sizeof (PublishingGallery3PublishingParametersPrivate)); -#line 11300 "GalleryConnector.c" -} - - -static void -publishing_gallery3_publishing_parameters_instance_init (PublishingGallery3PublishingParameters * self) -{ - gchar* _tmp0_; - gchar* _tmp1_; - gchar* _tmp2_; - gchar* _tmp3_; -#line 1691 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self->priv = PUBLISHING_GALLERY3_PUBLISHING_PARAMETERS_GET_PRIVATE (self); -#line 1694 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp0_ = g_strdup (""); -#line 1694 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self->priv->_album_title = _tmp0_; -#line 1704 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp1_ = g_strdup (""); -#line 1704 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self->priv->_album_name = _tmp1_; -#line 1705 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp2_ = g_strdup (""); -#line 1705 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self->priv->_album_path = _tmp2_; -#line 1706 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp3_ = g_strdup (""); -#line 1706 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self->priv->_entity_title = _tmp3_; -#line 1707 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self->priv->_photo_major_axis_size = -1; -#line 1708 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self->priv->_strip_metadata = FALSE; -#line 1691 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self->ref_count = 1; -#line 11335 "GalleryConnector.c" -} - - -static void -publishing_gallery3_publishing_parameters_finalize (PublishingGallery3PublishingParameters * obj) -{ - PublishingGallery3PublishingParameters * self; -#line 1691 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, PUBLISHING_GALLERY3_TYPE_PUBLISHING_PARAMETERS, PublishingGallery3PublishingParameters); -#line 1691 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_signal_handlers_destroy (self); -#line 1694 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_free0 (self->priv->_album_title); -#line 1704 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_free0 (self->priv->_album_name); -#line 1705 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_free0 (self->priv->_album_path); -#line 1706 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_free0 (self->priv->_entity_title); -#line 11355 "GalleryConnector.c" -} - - -GType -publishing_gallery3_publishing_parameters_get_type (void) -{ - static volatile gsize publishing_gallery3_publishing_parameters_type_id__volatile = 0; - if (g_once_init_enter (&publishing_gallery3_publishing_parameters_type_id__volatile)) { - static const GTypeValueTable g_define_type_value_table = { publishing_gallery3_value_publishing_parameters_init, publishing_gallery3_value_publishing_parameters_free_value, publishing_gallery3_value_publishing_parameters_copy_value, publishing_gallery3_value_publishing_parameters_peek_pointer, "p", publishing_gallery3_value_publishing_parameters_collect_value, "p", publishing_gallery3_value_publishing_parameters_lcopy_value }; - static const GTypeInfo g_define_type_info = { sizeof (PublishingGallery3PublishingParametersClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) publishing_gallery3_publishing_parameters_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PublishingGallery3PublishingParameters), 0, (GInstanceInitFunc) publishing_gallery3_publishing_parameters_instance_init, &g_define_type_value_table }; - static const GTypeFundamentalInfo g_define_type_fundamental_info = { (G_TYPE_FLAG_CLASSED | G_TYPE_FLAG_INSTANTIATABLE | G_TYPE_FLAG_DERIVABLE | G_TYPE_FLAG_DEEP_DERIVABLE) }; - GType publishing_gallery3_publishing_parameters_type_id; - publishing_gallery3_publishing_parameters_type_id = g_type_register_fundamental (g_type_fundamental_next (), "PublishingGallery3PublishingParameters", &g_define_type_info, &g_define_type_fundamental_info, 0); - g_once_init_leave (&publishing_gallery3_publishing_parameters_type_id__volatile, publishing_gallery3_publishing_parameters_type_id); - } - return publishing_gallery3_publishing_parameters_type_id__volatile; -} - - -gpointer -publishing_gallery3_publishing_parameters_ref (gpointer instance) -{ - PublishingGallery3PublishingParameters * self; - self = instance; -#line 1691 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_atomic_int_inc (&self->ref_count); -#line 1691 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - return instance; -#line 11384 "GalleryConnector.c" -} - - -void -publishing_gallery3_publishing_parameters_unref (gpointer instance) -{ - PublishingGallery3PublishingParameters * self; - self = instance; -#line 1691 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - if (g_atomic_int_dec_and_test (&self->ref_count)) { -#line 1691 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - PUBLISHING_GALLERY3_PUBLISHING_PARAMETERS_GET_CLASS (self)->finalize (self); -#line 1691 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_type_free_instance ((GTypeInstance *) self); -#line 11399 "GalleryConnector.c" - } -} - - -gchar* -publishing_gallery3_credentials_pane_mode_to_string (PublishingGallery3CredentialsPaneMode self) -{ - gchar* result = NULL; -#line 1735 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - switch (self) { -#line 1735 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - case PUBLISHING_GALLERY3_CREDENTIALS_PANE_MODE_INTRO: -#line 11412 "GalleryConnector.c" - { - gchar* _tmp0_; -#line 1737 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp0_ = g_strdup ("INTRO"); -#line 1737 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - result = _tmp0_; -#line 1737 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - return result; -#line 11421 "GalleryConnector.c" - } -#line 1735 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - case PUBLISHING_GALLERY3_CREDENTIALS_PANE_MODE_FAILED_RETRY: -#line 11425 "GalleryConnector.c" - { - gchar* _tmp1_; -#line 1740 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp1_ = g_strdup ("FAILED_RETRY"); -#line 1740 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - result = _tmp1_; -#line 1740 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - return result; -#line 11434 "GalleryConnector.c" - } -#line 1735 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - case PUBLISHING_GALLERY3_CREDENTIALS_PANE_MODE_NOT_GALLERY_URL: -#line 11438 "GalleryConnector.c" - { - gchar* _tmp2_; -#line 1743 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp2_ = g_strdup ("NOT_GALLERY_URL"); -#line 1743 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - result = _tmp2_; -#line 1743 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - return result; -#line 11447 "GalleryConnector.c" - } - default: - { -#line 1746 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_error ("GalleryConnector.vala:1746: unrecognized CredentialsPane.Mode enumerat" \ -"ion value"); -#line 11453 "GalleryConnector.c" - } - } -} - - -GType -publishing_gallery3_credentials_pane_mode_get_type (void) -{ - static volatile gsize publishing_gallery3_credentials_pane_mode_type_id__volatile = 0; - if (g_once_init_enter (&publishing_gallery3_credentials_pane_mode_type_id__volatile)) { - static const GEnumValue values[] = {{PUBLISHING_GALLERY3_CREDENTIALS_PANE_MODE_INTRO, "PUBLISHING_GALLERY3_CREDENTIALS_PANE_MODE_INTRO", "intro"}, {PUBLISHING_GALLERY3_CREDENTIALS_PANE_MODE_FAILED_RETRY, "PUBLISHING_GALLERY3_CREDENTIALS_PANE_MODE_FAILED_RETRY", "failed-retry"}, {PUBLISHING_GALLERY3_CREDENTIALS_PANE_MODE_NOT_GALLERY_URL, "PUBLISHING_GALLERY3_CREDENTIALS_PANE_MODE_NOT_GALLERY_URL", "not-gallery-url"}, {0, NULL, NULL}}; - GType publishing_gallery3_credentials_pane_mode_type_id; - publishing_gallery3_credentials_pane_mode_type_id = g_enum_register_static ("PublishingGallery3CredentialsPaneMode", values); - g_once_init_leave (&publishing_gallery3_credentials_pane_mode_type_id__volatile, publishing_gallery3_credentials_pane_mode_type_id); - } - return publishing_gallery3_credentials_pane_mode_type_id__volatile; -} - - -PublishingGallery3CredentialsPane* -publishing_gallery3_credentials_pane_construct (GType object_type, - SpitPublishingPluginHost* host, - PublishingGallery3CredentialsPaneMode mode, - const gchar* url, - const gchar* username, - const gchar* key) -{ - PublishingGallery3CredentialsPane * self = NULL; - GtkBuilder* builder = NULL; - GtkBuilder* _tmp0_; - GtkBuilder* _tmp8_; - PublishingGallery3CredentialsGrid* _tmp9_; - PublishingGallery3CredentialsGrid* _tmp10_; - GtkGrid* _tmp11_; - GtkGrid* _tmp12_; - GtkWidget* _tmp13_; - GError * _inner_error_ = NULL; -#line 1758 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_return_val_if_fail (SPIT_PUBLISHING_IS_PLUGIN_HOST (host), NULL); -#line 1758 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self = (PublishingGallery3CredentialsPane*) g_object_new (object_type, NULL); -#line 1763 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp0_ = gtk_builder_new (); -#line 1763 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - builder = _tmp0_; -#line 11499 "GalleryConnector.c" - { - GtkBuilder* _tmp1_; -#line 1766 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp1_ = builder; -#line 1766 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - gtk_builder_add_from_resource (_tmp1_, PLUGIN_RESOURCE_PATH "/gallery3_authentication_pane.ui", &_inner_error_); -#line 1766 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 11508 "GalleryConnector.c" - goto __catch15_g_error; - } - } - goto __finally15; - __catch15_g_error: - { - GError* e = NULL; - GError* _tmp2_; - const gchar* _tmp3_; - gchar* _tmp4_; - gchar* _tmp5_; - GError* _tmp6_; - GError* _tmp7_; -#line 1765 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - e = _inner_error_; -#line 1765 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _inner_error_ = NULL; -#line 1770 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp2_ = e; -#line 1770 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp3_ = _tmp2_->message; -#line 1770 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_warning ("GalleryConnector.vala:1770: Could not parse UI file! Error: %s.", _tmp3_); -#line 1771 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp4_ = g_strdup_printf (_ ("A file required for publishing is unavailable. Publishing to %s can’t " \ -"continue."), PUBLISHING_GALLERY3_SERVICE_NAME); -#line 1771 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp5_ = _tmp4_; -#line 1771 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp6_ = g_error_new_literal (SPIT_PUBLISHING_PUBLISHING_ERROR, SPIT_PUBLISHING_PUBLISHING_ERROR_LOCAL_FILE_ERROR, _tmp5_); -#line 1771 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp7_ = _tmp6_; -#line 1771 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - spit_publishing_plugin_host_post_error (host, _tmp7_); -#line 1771 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_error_free0 (_tmp7_); -#line 1771 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_free0 (_tmp5_); -#line 1778 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_error_free0 (e); -#line 1778 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_object_unref0 (builder); -#line 1778 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - return self; -#line 11552 "GalleryConnector.c" - } - __finally15: -#line 1765 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 1765 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_object_unref0 (builder); -#line 1765 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 1765 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_clear_error (&_inner_error_); -#line 1765 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - return NULL; -#line 11565 "GalleryConnector.c" - } -#line 1781 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp8_ = builder; -#line 1781 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp9_ = publishing_gallery3_credentials_grid_new (host, mode, url, username, key, _tmp8_); -#line 1781 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_object_unref0 (self->priv->frame); -#line 1781 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self->priv->frame = _tmp9_; -#line 1782 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp10_ = self->priv->frame; -#line 1782 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp11_ = publishing_gallery3_credentials_grid_get_pane_widget (_tmp10_); -#line 1782 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp12_ = _tmp11_; -#line 1782 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp13_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp12_, gtk_widget_get_type ()) ? ((GtkWidget*) _tmp12_) : NULL); -#line 1782 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_object_unref0 (self->priv->grid_widget); -#line 1782 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self->priv->grid_widget = _tmp13_; -#line 1758 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_object_unref0 (builder); -#line 1758 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - return self; -#line 11591 "GalleryConnector.c" -} - - -PublishingGallery3CredentialsPane* -publishing_gallery3_credentials_pane_new (SpitPublishingPluginHost* host, - PublishingGallery3CredentialsPaneMode mode, - const gchar* url, - const gchar* username, - const gchar* key) -{ -#line 1758 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - return publishing_gallery3_credentials_pane_construct (PUBLISHING_GALLERY3_TYPE_CREDENTIALS_PANE, host, mode, url, username, key); -#line 11604 "GalleryConnector.c" -} - - -void -publishing_gallery3_credentials_pane_notify_go_back (PublishingGallery3CredentialsPane* self) -{ -#line 1785 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_return_if_fail (PUBLISHING_GALLERY3_IS_CREDENTIALS_PANE (self)); -#line 1786 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_signal_emit (self, publishing_gallery3_credentials_pane_signals[PUBLISHING_GALLERY3_CREDENTIALS_PANE_GO_BACK_SIGNAL], 0); -#line 11615 "GalleryConnector.c" -} - - -void -publishing_gallery3_credentials_pane_notify_login (PublishingGallery3CredentialsPane* self, - const gchar* url, - const gchar* uname, - const gchar* password, - const gchar* key) -{ -#line 1789 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_return_if_fail (PUBLISHING_GALLERY3_IS_CREDENTIALS_PANE (self)); -#line 1789 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_return_if_fail (url != NULL); -#line 1789 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_return_if_fail (uname != NULL); -#line 1789 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_return_if_fail (password != NULL); -#line 1789 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_return_if_fail (key != NULL); -#line 1791 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_signal_emit (self, publishing_gallery3_credentials_pane_signals[PUBLISHING_GALLERY3_CREDENTIALS_PANE_LOGIN_SIGNAL], 0, url, uname, password, key); -#line 11638 "GalleryConnector.c" -} - - -static GtkWidget* -publishing_gallery3_credentials_pane_real_get_widget (SpitPublishingDialogPane* base) -{ - PublishingGallery3CredentialsPane * self; - GtkWidget* result = NULL; - GtkWidget* _tmp0_; - GtkWidget* _tmp1_; - GtkWidget* _tmp2_; -#line 1794 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_GALLERY3_TYPE_CREDENTIALS_PANE, PublishingGallery3CredentialsPane); -#line 1795 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp0_ = self->priv->grid_widget; -#line 1795 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _vala_assert (NULL != _tmp0_, "null != grid_widget"); -#line 1796 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp1_ = self->priv->grid_widget; -#line 1796 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp2_ = _g_object_ref0 (_tmp1_); -#line 1796 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - result = _tmp2_; -#line 1796 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - return result; -#line 11664 "GalleryConnector.c" -} - - -static SpitPublishingDialogPaneGeometryOptions -publishing_gallery3_credentials_pane_real_get_preferred_geometry (SpitPublishingDialogPane* base) -{ - PublishingGallery3CredentialsPane * self; - SpitPublishingDialogPaneGeometryOptions result = 0; -#line 1799 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_GALLERY3_TYPE_CREDENTIALS_PANE, PublishingGallery3CredentialsPane); -#line 1800 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - result = SPIT_PUBLISHING_DIALOG_PANE_GEOMETRY_OPTIONS_NONE; -#line 1800 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - return result; -#line 11679 "GalleryConnector.c" -} - - -static void -_publishing_gallery3_credentials_pane_notify_go_back_publishing_gallery3_credentials_grid_go_back (PublishingGallery3CredentialsGrid* _sender, - gpointer self) -{ -#line 1804 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - publishing_gallery3_credentials_pane_notify_go_back ((PublishingGallery3CredentialsPane*) self); -#line 11689 "GalleryConnector.c" -} - - -static void -_publishing_gallery3_credentials_pane_notify_login_publishing_gallery3_credentials_grid_login (PublishingGallery3CredentialsGrid* _sender, - const gchar* url, - const gchar* username, - const gchar* password, - const gchar* key, - gpointer self) -{ -#line 1805 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - publishing_gallery3_credentials_pane_notify_login ((PublishingGallery3CredentialsPane*) self, url, username, password, key); -#line 11703 "GalleryConnector.c" -} - - -static void -publishing_gallery3_credentials_pane_real_on_pane_installed (SpitPublishingDialogPane* base) -{ - PublishingGallery3CredentialsPane * self; - PublishingGallery3CredentialsGrid* _tmp0_; - PublishingGallery3CredentialsGrid* _tmp1_; - PublishingGallery3CredentialsGrid* _tmp2_; -#line 1803 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_GALLERY3_TYPE_CREDENTIALS_PANE, PublishingGallery3CredentialsPane); -#line 1804 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp0_ = self->priv->frame; -#line 1804 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_signal_connect_object (_tmp0_, "go-back", (GCallback) _publishing_gallery3_credentials_pane_notify_go_back_publishing_gallery3_credentials_grid_go_back, self, 0); -#line 1805 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp1_ = self->priv->frame; -#line 1805 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_signal_connect_object (_tmp1_, "login", (GCallback) _publishing_gallery3_credentials_pane_notify_login_publishing_gallery3_credentials_grid_login, self, 0); -#line 1807 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp2_ = self->priv->frame; -#line 1807 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - publishing_gallery3_credentials_grid_installed (_tmp2_); -#line 11728 "GalleryConnector.c" -} - - -static void -publishing_gallery3_credentials_pane_real_on_pane_uninstalled (SpitPublishingDialogPane* base) -{ - PublishingGallery3CredentialsPane * self; - PublishingGallery3CredentialsGrid* _tmp0_; - guint _tmp1_; - PublishingGallery3CredentialsGrid* _tmp2_; - guint _tmp3_; -#line 1810 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_GALLERY3_TYPE_CREDENTIALS_PANE, PublishingGallery3CredentialsPane); -#line 1811 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp0_ = self->priv->frame; -#line 1811 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_signal_parse_name ("go-back", PUBLISHING_GALLERY3_TYPE_CREDENTIALS_GRID, &_tmp1_, NULL, FALSE); -#line 1811 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_signal_handlers_disconnect_matched (_tmp0_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp1_, 0, NULL, (GCallback) _publishing_gallery3_credentials_pane_notify_go_back_publishing_gallery3_credentials_grid_go_back, self); -#line 1812 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp2_ = self->priv->frame; -#line 1812 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_signal_parse_name ("login", PUBLISHING_GALLERY3_TYPE_CREDENTIALS_GRID, &_tmp3_, NULL, FALSE); -#line 1812 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_signal_handlers_disconnect_matched (_tmp2_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp3_, 0, NULL, (GCallback) _publishing_gallery3_credentials_pane_notify_login_publishing_gallery3_credentials_grid_login, self); -#line 11754 "GalleryConnector.c" -} - - -static void -g_cclosure_user_marshal_VOID__STRING_STRING_STRING_STRING (GClosure * closure, - GValue * return_value, - guint n_param_values, - const GValue * param_values, - gpointer invocation_hint, - gpointer marshal_data) -{ - typedef void (*GMarshalFunc_VOID__STRING_STRING_STRING_STRING) (gpointer data1, const char* arg_1, const char* arg_2, const char* arg_3, const char* arg_4, gpointer data2); - register GMarshalFunc_VOID__STRING_STRING_STRING_STRING callback; - register GCClosure * cc; - register gpointer data1; - register gpointer data2; - cc = (GCClosure *) closure; -#line 1728 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_return_if_fail (n_param_values == 5); -#line 1728 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - if (G_CCLOSURE_SWAP_DATA (closure)) { -#line 1728 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - data1 = closure->data; -#line 1728 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - data2 = param_values->data[0].v_pointer; -#line 11780 "GalleryConnector.c" - } else { -#line 1728 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - data1 = param_values->data[0].v_pointer; -#line 1728 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - data2 = closure->data; -#line 11786 "GalleryConnector.c" - } -#line 1728 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - callback = (GMarshalFunc_VOID__STRING_STRING_STRING_STRING) (marshal_data ? marshal_data : cc->callback); -#line 1728 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - callback (data1, g_value_get_string (param_values + 1), g_value_get_string (param_values + 2), g_value_get_string (param_values + 3), g_value_get_string (param_values + 4), data2); -#line 11792 "GalleryConnector.c" -} - - -static void -publishing_gallery3_credentials_pane_class_init (PublishingGallery3CredentialsPaneClass * klass) -{ -#line 1728 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - publishing_gallery3_credentials_pane_parent_class = g_type_class_peek_parent (klass); -#line 1728 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_type_class_add_private (klass, sizeof (PublishingGallery3CredentialsPanePrivate)); -#line 1728 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - G_OBJECT_CLASS (klass)->finalize = publishing_gallery3_credentials_pane_finalize; -#line 1728 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - publishing_gallery3_credentials_pane_signals[PUBLISHING_GALLERY3_CREDENTIALS_PANE_GO_BACK_SIGNAL] = g_signal_new ("go-back", PUBLISHING_GALLERY3_TYPE_CREDENTIALS_PANE, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_marshal_VOID__VOID, G_TYPE_NONE, 0); -#line 1728 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - publishing_gallery3_credentials_pane_signals[PUBLISHING_GALLERY3_CREDENTIALS_PANE_LOGIN_SIGNAL] = g_signal_new ("login", PUBLISHING_GALLERY3_TYPE_CREDENTIALS_PANE, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_user_marshal_VOID__STRING_STRING_STRING_STRING, G_TYPE_NONE, 4, G_TYPE_STRING, G_TYPE_STRING, G_TYPE_STRING, G_TYPE_STRING); -#line 11809 "GalleryConnector.c" -} - - -static void -publishing_gallery3_credentials_pane_spit_publishing_dialog_pane_interface_init (SpitPublishingDialogPaneIface * iface) -{ -#line 1728 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - publishing_gallery3_credentials_pane_spit_publishing_dialog_pane_parent_iface = g_type_interface_peek_parent (iface); -#line 1728 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - iface->get_widget = (GtkWidget* (*) (SpitPublishingDialogPane *)) publishing_gallery3_credentials_pane_real_get_widget; -#line 1728 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - iface->get_preferred_geometry = (SpitPublishingDialogPaneGeometryOptions (*) (SpitPublishingDialogPane *)) publishing_gallery3_credentials_pane_real_get_preferred_geometry; -#line 1728 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - iface->on_pane_installed = (void (*) (SpitPublishingDialogPane *)) publishing_gallery3_credentials_pane_real_on_pane_installed; -#line 1728 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - iface->on_pane_uninstalled = (void (*) (SpitPublishingDialogPane *)) publishing_gallery3_credentials_pane_real_on_pane_uninstalled; -#line 11826 "GalleryConnector.c" -} - - -static void -publishing_gallery3_credentials_pane_instance_init (PublishingGallery3CredentialsPane * self) -{ -#line 1728 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self->priv = PUBLISHING_GALLERY3_CREDENTIALS_PANE_GET_PRIVATE (self); -#line 1751 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self->priv->frame = NULL; -#line 1752 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self->priv->grid_widget = NULL; -#line 11839 "GalleryConnector.c" -} - - -static void -publishing_gallery3_credentials_pane_finalize (GObject * obj) -{ - PublishingGallery3CredentialsPane * self; -#line 1728 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, PUBLISHING_GALLERY3_TYPE_CREDENTIALS_PANE, PublishingGallery3CredentialsPane); -#line 1751 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_object_unref0 (self->priv->frame); -#line 1752 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_object_unref0 (self->priv->grid_widget); -#line 1728 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - G_OBJECT_CLASS (publishing_gallery3_credentials_pane_parent_class)->finalize (obj); -#line 11855 "GalleryConnector.c" -} - - -GType -publishing_gallery3_credentials_pane_get_type (void) -{ - static volatile gsize publishing_gallery3_credentials_pane_type_id__volatile = 0; - if (g_once_init_enter (&publishing_gallery3_credentials_pane_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (PublishingGallery3CredentialsPaneClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) publishing_gallery3_credentials_pane_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PublishingGallery3CredentialsPane), 0, (GInstanceInitFunc) publishing_gallery3_credentials_pane_instance_init, NULL }; - static const GInterfaceInfo spit_publishing_dialog_pane_info = { (GInterfaceInitFunc) publishing_gallery3_credentials_pane_spit_publishing_dialog_pane_interface_init, (GInterfaceFinalizeFunc) NULL, NULL}; - GType publishing_gallery3_credentials_pane_type_id; - publishing_gallery3_credentials_pane_type_id = g_type_register_static (G_TYPE_OBJECT, "PublishingGallery3CredentialsPane", &g_define_type_info, 0); - g_type_add_interface_static (publishing_gallery3_credentials_pane_type_id, SPIT_PUBLISHING_TYPE_DIALOG_PANE, &spit_publishing_dialog_pane_info); - g_once_init_leave (&publishing_gallery3_credentials_pane_type_id__volatile, publishing_gallery3_credentials_pane_type_id); - } - return publishing_gallery3_credentials_pane_type_id__volatile; -} - - -static void -_publishing_gallery3_credentials_grid_on_url_or_username_changed_gtk_editable_changed (GtkEditable* _sender, - gpointer self) -{ -#line 1890 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - publishing_gallery3_credentials_grid_on_url_or_username_changed ((PublishingGallery3CredentialsGrid*) self); -#line 11881 "GalleryConnector.c" -} - - -static void -_publishing_gallery3_credentials_grid_on_go_back_button_clicked_gtk_button_clicked (GtkButton* _sender, - gpointer self) -{ -#line 1906 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - publishing_gallery3_credentials_grid_on_go_back_button_clicked ((PublishingGallery3CredentialsGrid*) self); -#line 11891 "GalleryConnector.c" -} - - -static void -_publishing_gallery3_credentials_grid_on_login_button_clicked_gtk_button_clicked (GtkButton* _sender, - gpointer self) -{ -#line 1907 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - publishing_gallery3_credentials_grid_on_login_button_clicked ((PublishingGallery3CredentialsGrid*) self); -#line 11901 "GalleryConnector.c" -} - - -PublishingGallery3CredentialsGrid* -publishing_gallery3_credentials_grid_construct (GType object_type, - SpitPublishingPluginHost* host, - PublishingGallery3CredentialsPaneMode mode, - const gchar* url, - const gchar* username, - const gchar* key, - GtkBuilder* builder) -{ - PublishingGallery3CredentialsGrid * self = NULL; - gchar* _tmp0_; - gchar* _tmp1_; - gchar* _tmp2_; - GtkBuilder* _tmp3_; - GSList* _tmp4_; - GSList* _tmp5_; - GObject* _tmp6_; - GObject* _tmp7_; - GtkLabel* _tmp8_; - GObject* _tmp9_; - GtkEntry* _tmp10_; - GObject* _tmp11_; - GtkEntry* _tmp12_; - GObject* _tmp13_; - GtkEntry* _tmp14_; - GObject* _tmp15_; - GtkEntry* _tmp16_; - GObject* _tmp17_; - GtkButton* _tmp18_; - GObject* _tmp19_; - GtkButton* _tmp20_; - GtkEntry* _tmp30_; - GtkEntry* _tmp33_; - GtkEntry* _tmp36_; - GtkButton* _tmp37_; - GtkButton* _tmp38_; - gboolean _tmp39_ = FALSE; - GtkButton* _tmp40_; -#line 1840 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_return_val_if_fail (SPIT_PUBLISHING_IS_PLUGIN_HOST (host), NULL); -#line 1840 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_return_val_if_fail (GTK_IS_BUILDER (builder), NULL); -#line 1840 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self = (PublishingGallery3CredentialsGrid*) g_object_new (object_type, NULL); -#line 1845 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self->priv->host = host; -#line 1846 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp0_ = g_strdup (url); -#line 1846 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_free0 (self->priv->url); -#line 1846 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self->priv->url = _tmp0_; -#line 1847 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp1_ = g_strdup (key); -#line 1847 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_free0 (self->priv->key); -#line 1847 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self->priv->key = _tmp1_; -#line 1848 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp2_ = g_strdup (username); -#line 1848 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_free0 (self->priv->username); -#line 1848 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self->priv->username = _tmp2_; -#line 1850 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp3_ = _g_object_ref0 (builder); -#line 1850 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_object_unref0 (self->priv->builder); -#line 1850 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self->priv->builder = _tmp3_; -#line 1851 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _vala_assert (builder != NULL, "builder != null"); -#line 1852 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp4_ = gtk_builder_get_objects (builder); -#line 1852 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp5_ = _tmp4_; -#line 1852 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _vala_assert (g_slist_length (_tmp5_) > ((guint) 0), "builder.get_objects().length() > 0"); -#line 1852 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_slist_free0 (_tmp5_); -#line 1855 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp6_ = gtk_builder_get_object (builder, "gallery3_auth_pane_widget"); -#line 1855 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - publishing_gallery3_credentials_grid_set_pane_widget (self, G_TYPE_CHECK_INSTANCE_TYPE (_tmp6_, gtk_grid_get_type ()) ? ((GtkGrid*) _tmp6_) : NULL); -#line 1856 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp7_ = gtk_builder_get_object (builder, "intro_message_label"); -#line 1856 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp8_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp7_, gtk_label_get_type ()) ? ((GtkLabel*) _tmp7_) : NULL); -#line 1856 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_object_unref0 (self->priv->intro_message_label); -#line 1856 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self->priv->intro_message_label = _tmp8_; -#line 1857 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp9_ = gtk_builder_get_object (builder, "url_entry"); -#line 1857 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp10_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp9_, gtk_entry_get_type ()) ? ((GtkEntry*) _tmp9_) : NULL); -#line 1857 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_object_unref0 (self->priv->url_entry); -#line 1857 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self->priv->url_entry = _tmp10_; -#line 1858 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp11_ = gtk_builder_get_object (builder, "username_entry"); -#line 1858 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp12_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp11_, gtk_entry_get_type ()) ? ((GtkEntry*) _tmp11_) : NULL); -#line 1858 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_object_unref0 (self->priv->username_entry); -#line 1858 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self->priv->username_entry = _tmp12_; -#line 1859 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp13_ = gtk_builder_get_object (builder, "key_entry"); -#line 1859 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp14_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp13_, gtk_entry_get_type ()) ? ((GtkEntry*) _tmp13_) : NULL); -#line 1859 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_object_unref0 (self->priv->key_entry); -#line 1859 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self->priv->key_entry = _tmp14_; -#line 1860 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp15_ = gtk_builder_get_object (builder, "password_entry"); -#line 1860 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp16_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp15_, gtk_entry_get_type ()) ? ((GtkEntry*) _tmp15_) : NULL); -#line 1860 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_object_unref0 (self->priv->password_entry); -#line 1860 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self->priv->password_entry = _tmp16_; -#line 1861 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp17_ = gtk_builder_get_object (builder, "go_back_button"); -#line 1861 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp18_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp17_, gtk_button_get_type ()) ? ((GtkButton*) _tmp17_) : NULL); -#line 1861 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_object_unref0 (self->priv->go_back_button); -#line 1861 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self->priv->go_back_button = _tmp18_; -#line 1862 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp19_ = gtk_builder_get_object (builder, "login_button"); -#line 1862 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp20_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp19_, gtk_button_get_type ()) ? ((GtkButton*) _tmp19_) : NULL); -#line 1862 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_object_unref0 (self->priv->login_button); -#line 1862 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self->priv->login_button = _tmp20_; -#line 1865 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - switch (mode) { -#line 1865 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - case PUBLISHING_GALLERY3_CREDENTIALS_PANE_MODE_INTRO: -#line 12049 "GalleryConnector.c" - { - GtkLabel* _tmp21_; -#line 1867 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp21_ = self->priv->intro_message_label; -#line 1867 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - gtk_label_set_markup (_tmp21_, PUBLISHING_GALLERY3_CREDENTIALS_GRID_INTRO_MESSAGE); -#line 1868 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - break; -#line 12058 "GalleryConnector.c" - } -#line 1865 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - case PUBLISHING_GALLERY3_CREDENTIALS_PANE_MODE_FAILED_RETRY: -#line 12062 "GalleryConnector.c" - { - GtkLabel* _tmp22_; - gchar* _tmp23_; - gchar* _tmp24_; -#line 1871 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp22_ = self->priv->intro_message_label; -#line 1871 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp23_ = g_strdup_printf ("%s\n\n%s", _ ("Unrecognized User"), PUBLISHING_GALLERY3_CREDENTIALS_GRID_FAILED_RETRY_MESSAGE); -#line 1871 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp24_ = _tmp23_; -#line 1871 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - gtk_label_set_markup (_tmp22_, _tmp24_); -#line 1871 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_free0 (_tmp24_); -#line 1873 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - break; -#line 12079 "GalleryConnector.c" - } -#line 1865 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - case PUBLISHING_GALLERY3_CREDENTIALS_PANE_MODE_NOT_GALLERY_URL: -#line 12083 "GalleryConnector.c" - { - GtkLabel* _tmp25_; - gchar* _tmp26_; - gchar* _tmp27_; -#line 1876 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp25_ = self->priv->intro_message_label; -#line 1876 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp26_ = g_strdup_printf ("%s\n\n%s", _ (PUBLISHING_GALLERY3_SERVICE_NAME " Site Not Found"), PUBLISHING_GALLERY3_CREDENTIALS_GRID_NOT_GALLERY_URL_MESSAGE); -#line 1876 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp27_ = _tmp26_; -#line 1876 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - gtk_label_set_markup (_tmp25_, _tmp27_); -#line 1876 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_free0 (_tmp27_); -#line 1879 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - break; -#line 12100 "GalleryConnector.c" - } - default: - { -#line 1882 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_error ("GalleryConnector.vala:1882: Invalid CredentialsPane mode"); -#line 12106 "GalleryConnector.c" - } - } -#line 1886 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - if (url != NULL) { -#line 12111 "GalleryConnector.c" - GtkEntry* _tmp28_; - GtkEntry* _tmp29_; -#line 1887 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp28_ = self->priv->url_entry; -#line 1887 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - gtk_entry_set_text (_tmp28_, url); -#line 1888 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp29_ = self->priv->username_entry; -#line 1888 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - gtk_widget_grab_focus (G_TYPE_CHECK_INSTANCE_CAST (_tmp29_, gtk_widget_get_type (), GtkWidget)); -#line 12122 "GalleryConnector.c" - } -#line 1890 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp30_ = self->priv->url_entry; -#line 1890 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp30_, gtk_editable_get_type (), GtkEditable), "changed", (GCallback) _publishing_gallery3_credentials_grid_on_url_or_username_changed_gtk_editable_changed, self, 0); -#line 1892 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - if (username != NULL) { -#line 12130 "GalleryConnector.c" - GtkEntry* _tmp31_; - GtkEntry* _tmp32_; -#line 1893 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp31_ = self->priv->username_entry; -#line 1893 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - gtk_entry_set_text (_tmp31_, username); -#line 1894 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp32_ = self->priv->password_entry; -#line 1894 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - gtk_widget_grab_focus (G_TYPE_CHECK_INSTANCE_CAST (_tmp32_, gtk_widget_get_type (), GtkWidget)); -#line 12141 "GalleryConnector.c" - } -#line 1896 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp33_ = self->priv->username_entry; -#line 1896 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp33_, gtk_editable_get_type (), GtkEditable), "changed", (GCallback) _publishing_gallery3_credentials_grid_on_url_or_username_changed_gtk_editable_changed, self, 0); -#line 1899 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - if (key != NULL) { -#line 12149 "GalleryConnector.c" - GtkEntry* _tmp34_; - GtkEntry* _tmp35_; -#line 1900 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp34_ = self->priv->key_entry; -#line 1900 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - gtk_entry_set_text (_tmp34_, key); -#line 1901 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp35_ = self->priv->key_entry; -#line 1901 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - gtk_widget_grab_focus (G_TYPE_CHECK_INSTANCE_CAST (_tmp35_, gtk_widget_get_type (), GtkWidget)); -#line 12160 "GalleryConnector.c" - } -#line 1903 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp36_ = self->priv->key_entry; -#line 1903 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp36_, gtk_editable_get_type (), GtkEditable), "changed", (GCallback) _publishing_gallery3_credentials_grid_on_url_or_username_changed_gtk_editable_changed, self, 0); -#line 1906 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp37_ = self->priv->go_back_button; -#line 1906 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_signal_connect_object (_tmp37_, "clicked", (GCallback) _publishing_gallery3_credentials_grid_on_go_back_button_clicked_gtk_button_clicked, self, 0); -#line 1907 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp38_ = self->priv->login_button; -#line 1907 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_signal_connect_object (_tmp38_, "clicked", (GCallback) _publishing_gallery3_credentials_grid_on_login_button_clicked_gtk_button_clicked, self, 0); -#line 1908 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - if (url != NULL) { -#line 1908 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp39_ = username != NULL; -#line 12178 "GalleryConnector.c" - } else { -#line 1908 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp39_ = FALSE; -#line 12182 "GalleryConnector.c" - } -#line 1908 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp40_ = self->priv->login_button; -#line 1908 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - gtk_widget_set_sensitive (G_TYPE_CHECK_INSTANCE_CAST (_tmp40_, gtk_widget_get_type (), GtkWidget), _tmp39_); -#line 1840 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - return self; -#line 12190 "GalleryConnector.c" -} - - -PublishingGallery3CredentialsGrid* -publishing_gallery3_credentials_grid_new (SpitPublishingPluginHost* host, - PublishingGallery3CredentialsPaneMode mode, - const gchar* url, - const gchar* username, - const gchar* key, - GtkBuilder* builder) -{ -#line 1840 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - return publishing_gallery3_credentials_grid_construct (PUBLISHING_GALLERY3_TYPE_CREDENTIALS_GRID, host, mode, url, username, key, builder); -#line 12204 "GalleryConnector.c" -} - - -static void -publishing_gallery3_credentials_grid_on_login_button_clicked (PublishingGallery3CredentialsGrid* self) -{ - GtkEntry* _tmp0_; - const gchar* _tmp1_; - GtkEntry* _tmp2_; - const gchar* _tmp3_; - GtkEntry* _tmp4_; - const gchar* _tmp5_; - GtkEntry* _tmp6_; - const gchar* _tmp7_; -#line 1911 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_return_if_fail (PUBLISHING_GALLERY3_IS_CREDENTIALS_GRID (self)); -#line 1912 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp0_ = self->priv->url_entry; -#line 1912 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp1_ = gtk_entry_get_text (_tmp0_); -#line 1912 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp2_ = self->priv->username_entry; -#line 1912 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp3_ = gtk_entry_get_text (_tmp2_); -#line 1912 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp4_ = self->priv->password_entry; -#line 1912 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp5_ = gtk_entry_get_text (_tmp4_); -#line 1912 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp6_ = self->priv->key_entry; -#line 1912 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp7_ = gtk_entry_get_text (_tmp6_); -#line 1912 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_signal_emit (self, publishing_gallery3_credentials_grid_signals[PUBLISHING_GALLERY3_CREDENTIALS_GRID_LOGIN_SIGNAL], 0, _tmp1_, _tmp3_, _tmp5_, _tmp7_); -#line 12239 "GalleryConnector.c" -} - - -static void -publishing_gallery3_credentials_grid_on_go_back_button_clicked (PublishingGallery3CredentialsGrid* self) -{ -#line 1916 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_return_if_fail (PUBLISHING_GALLERY3_IS_CREDENTIALS_GRID (self)); -#line 1917 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_signal_emit (self, publishing_gallery3_credentials_grid_signals[PUBLISHING_GALLERY3_CREDENTIALS_GRID_GO_BACK_SIGNAL], 0); -#line 12250 "GalleryConnector.c" -} - - -static void -publishing_gallery3_credentials_grid_on_url_or_username_changed (PublishingGallery3CredentialsGrid* self) -{ - gboolean _tmp0_ = FALSE; - gboolean _tmp1_ = FALSE; - GtkEntry* _tmp2_; - const gchar* _tmp3_; - GtkButton* _tmp8_; -#line 1920 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_return_if_fail (PUBLISHING_GALLERY3_IS_CREDENTIALS_GRID (self)); -#line 1922 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp2_ = self->priv->url_entry; -#line 1922 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp3_ = gtk_entry_get_text (_tmp2_); -#line 1922 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - if (g_strcmp0 (_tmp3_, "") != 0) { -#line 12270 "GalleryConnector.c" - GtkEntry* _tmp4_; - const gchar* _tmp5_; -#line 1923 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp4_ = self->priv->username_entry; -#line 1923 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp5_ = gtk_entry_get_text (_tmp4_); -#line 1923 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp1_ = g_strcmp0 (_tmp5_, "") != 0; -#line 12279 "GalleryConnector.c" - } else { -#line 1922 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp1_ = FALSE; -#line 12283 "GalleryConnector.c" - } -#line 1922 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - if (_tmp1_) { -#line 1922 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp0_ = TRUE; -#line 12289 "GalleryConnector.c" - } else { - GtkEntry* _tmp6_; - const gchar* _tmp7_; -#line 1924 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp6_ = self->priv->key_entry; -#line 1924 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp7_ = gtk_entry_get_text (_tmp6_); -#line 1924 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp0_ = g_strcmp0 (_tmp7_, "") != 0; -#line 12299 "GalleryConnector.c" - } -#line 1921 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp8_ = self->priv->login_button; -#line 1921 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - gtk_widget_set_sensitive (G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, gtk_widget_get_type (), GtkWidget), _tmp0_); -#line 12305 "GalleryConnector.c" -} - - -void -publishing_gallery3_credentials_grid_installed (PublishingGallery3CredentialsGrid* self) -{ - SpitPublishingPluginHost* _tmp0_; - SpitPublishingPluginHost* _tmp1_; - GtkButton* _tmp2_; -#line 1927 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_return_if_fail (PUBLISHING_GALLERY3_IS_CREDENTIALS_GRID (self)); -#line 1928 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp0_ = self->priv->host; -#line 1928 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - spit_publishing_plugin_host_set_service_locked (_tmp0_, FALSE); -#line 1931 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp1_ = self->priv->host; -#line 1931 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp2_ = self->priv->login_button; -#line 1931 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - spit_publishing_plugin_host_set_dialog_default_widget (_tmp1_, G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, gtk_widget_get_type (), GtkWidget)); -#line 12327 "GalleryConnector.c" -} - - -GtkGrid* -publishing_gallery3_credentials_grid_get_pane_widget (PublishingGallery3CredentialsGrid* self) -{ - GtkGrid* result; - GtkGrid* _tmp0_; -#line 1821 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_return_val_if_fail (PUBLISHING_GALLERY3_IS_CREDENTIALS_GRID (self), NULL); -#line 1821 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp0_ = self->priv->_pane_widget; -#line 1821 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - result = _tmp0_; -#line 1821 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - return result; -#line 12344 "GalleryConnector.c" -} - - -static void -publishing_gallery3_credentials_grid_set_pane_widget (PublishingGallery3CredentialsGrid* self, - GtkGrid* value) -{ -#line 1821 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_return_if_fail (PUBLISHING_GALLERY3_IS_CREDENTIALS_GRID (self)); -#line 1821 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - if (publishing_gallery3_credentials_grid_get_pane_widget (self) != value) { -#line 12356 "GalleryConnector.c" - GtkGrid* _tmp0_; -#line 1821 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp0_ = _g_object_ref0 (value); -#line 1821 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_object_unref0 (self->priv->_pane_widget); -#line 1821 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self->priv->_pane_widget = _tmp0_; -#line 1821 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_object_notify_by_pspec ((GObject *) self, publishing_gallery3_credentials_grid_properties[PUBLISHING_GALLERY3_CREDENTIALS_GRID_PANE_WIDGET_PROPERTY]); -#line 12366 "GalleryConnector.c" - } -} - - -static void -publishing_gallery3_credentials_grid_class_init (PublishingGallery3CredentialsGridClass * klass) -{ -#line 1816 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - publishing_gallery3_credentials_grid_parent_class = g_type_class_peek_parent (klass); -#line 1816 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_type_class_add_private (klass, sizeof (PublishingGallery3CredentialsGridPrivate)); -#line 1816 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - G_OBJECT_CLASS (klass)->get_property = _vala_publishing_gallery3_credentials_grid_get_property; -#line 1816 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - G_OBJECT_CLASS (klass)->set_property = _vala_publishing_gallery3_credentials_grid_set_property; -#line 1816 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - G_OBJECT_CLASS (klass)->finalize = publishing_gallery3_credentials_grid_finalize; -#line 1816 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_object_class_install_property (G_OBJECT_CLASS (klass), PUBLISHING_GALLERY3_CREDENTIALS_GRID_PANE_WIDGET_PROPERTY, publishing_gallery3_credentials_grid_properties[PUBLISHING_GALLERY3_CREDENTIALS_GRID_PANE_WIDGET_PROPERTY] = g_param_spec_object ("pane-widget", "pane-widget", "pane-widget", gtk_grid_get_type (), G_PARAM_STATIC_STRINGS | G_PARAM_READABLE)); -#line 1816 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - publishing_gallery3_credentials_grid_signals[PUBLISHING_GALLERY3_CREDENTIALS_GRID_GO_BACK_SIGNAL] = g_signal_new ("go-back", PUBLISHING_GALLERY3_TYPE_CREDENTIALS_GRID, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_marshal_VOID__VOID, G_TYPE_NONE, 0); -#line 1816 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - publishing_gallery3_credentials_grid_signals[PUBLISHING_GALLERY3_CREDENTIALS_GRID_LOGIN_SIGNAL] = g_signal_new ("login", PUBLISHING_GALLERY3_TYPE_CREDENTIALS_GRID, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_user_marshal_VOID__STRING_STRING_STRING_STRING, G_TYPE_NONE, 4, G_TYPE_STRING, G_TYPE_STRING, G_TYPE_STRING, G_TYPE_STRING); -#line 12390 "GalleryConnector.c" -} - - -static void -publishing_gallery3_credentials_grid_instance_init (PublishingGallery3CredentialsGrid * self) -{ -#line 1816 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self->priv = PUBLISHING_GALLERY3_CREDENTIALS_GRID_GET_PRIVATE (self); -#line 1821 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self->priv->_pane_widget = NULL; -#line 1823 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self->priv->host = NULL; -#line 1824 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self->priv->builder = NULL; -#line 1825 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self->priv->intro_message_label = NULL; -#line 1826 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self->priv->url_entry = NULL; -#line 1827 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self->priv->username_entry = NULL; -#line 1828 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self->priv->password_entry = NULL; -#line 1829 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self->priv->key_entry = NULL; -#line 1830 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self->priv->login_button = NULL; -#line 1831 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self->priv->go_back_button = NULL; -#line 1832 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self->priv->url = NULL; -#line 1833 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self->priv->username = NULL; -#line 1834 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self->priv->key = NULL; -#line 12425 "GalleryConnector.c" -} - - -static void -publishing_gallery3_credentials_grid_finalize (GObject * obj) -{ - PublishingGallery3CredentialsGrid * self; -#line 1816 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, PUBLISHING_GALLERY3_TYPE_CREDENTIALS_GRID, PublishingGallery3CredentialsGrid); -#line 1821 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_object_unref0 (self->priv->_pane_widget); -#line 1824 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_object_unref0 (self->priv->builder); -#line 1825 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_object_unref0 (self->priv->intro_message_label); -#line 1826 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_object_unref0 (self->priv->url_entry); -#line 1827 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_object_unref0 (self->priv->username_entry); -#line 1828 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_object_unref0 (self->priv->password_entry); -#line 1829 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_object_unref0 (self->priv->key_entry); -#line 1830 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_object_unref0 (self->priv->login_button); -#line 1831 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_object_unref0 (self->priv->go_back_button); -#line 1832 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_free0 (self->priv->url); -#line 1833 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_free0 (self->priv->username); -#line 1834 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_free0 (self->priv->key); -#line 1816 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - G_OBJECT_CLASS (publishing_gallery3_credentials_grid_parent_class)->finalize (obj); -#line 12461 "GalleryConnector.c" -} - - -GType -publishing_gallery3_credentials_grid_get_type (void) -{ - static volatile gsize publishing_gallery3_credentials_grid_type_id__volatile = 0; - if (g_once_init_enter (&publishing_gallery3_credentials_grid_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (PublishingGallery3CredentialsGridClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) publishing_gallery3_credentials_grid_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PublishingGallery3CredentialsGrid), 0, (GInstanceInitFunc) publishing_gallery3_credentials_grid_instance_init, NULL }; - GType publishing_gallery3_credentials_grid_type_id; - publishing_gallery3_credentials_grid_type_id = g_type_register_static (G_TYPE_OBJECT, "PublishingGallery3CredentialsGrid", &g_define_type_info, 0); - g_once_init_leave (&publishing_gallery3_credentials_grid_type_id__volatile, publishing_gallery3_credentials_grid_type_id); - } - return publishing_gallery3_credentials_grid_type_id__volatile; -} - - -static void -_vala_publishing_gallery3_credentials_grid_get_property (GObject * object, - guint property_id, - GValue * value, - GParamSpec * pspec) -{ - PublishingGallery3CredentialsGrid * self; - self = G_TYPE_CHECK_INSTANCE_CAST (object, PUBLISHING_GALLERY3_TYPE_CREDENTIALS_GRID, PublishingGallery3CredentialsGrid); -#line 1816 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - switch (property_id) { -#line 1816 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - case PUBLISHING_GALLERY3_CREDENTIALS_GRID_PANE_WIDGET_PROPERTY: -#line 1816 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_value_set_object (value, publishing_gallery3_credentials_grid_get_pane_widget (self)); -#line 1816 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - break; -#line 12495 "GalleryConnector.c" - default: -#line 1816 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec); -#line 1816 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - break; -#line 12501 "GalleryConnector.c" - } -} - - -static void -_vala_publishing_gallery3_credentials_grid_set_property (GObject * object, - guint property_id, - const GValue * value, - GParamSpec * pspec) -{ - PublishingGallery3CredentialsGrid * self; - self = G_TYPE_CHECK_INSTANCE_CAST (object, PUBLISHING_GALLERY3_TYPE_CREDENTIALS_GRID, PublishingGallery3CredentialsGrid); -#line 1816 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - switch (property_id) { -#line 1816 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - case PUBLISHING_GALLERY3_CREDENTIALS_GRID_PANE_WIDGET_PROPERTY: -#line 1816 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - publishing_gallery3_credentials_grid_set_pane_widget (self, g_value_get_object (value)); -#line 1816 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - break; -#line 12522 "GalleryConnector.c" - default: -#line 1816 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec); -#line 1816 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - break; -#line 12528 "GalleryConnector.c" - } -} - - -PublishingGallery3Session* -publishing_gallery3_session_construct (GType object_type) -{ - PublishingGallery3Session* self = NULL; -#line 1942 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self = (PublishingGallery3Session*) publishing_rest_support_session_construct (object_type, NULL); -#line 1942 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - return self; -#line 12541 "GalleryConnector.c" -} - - -PublishingGallery3Session* -publishing_gallery3_session_new (void) -{ -#line 1942 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - return publishing_gallery3_session_construct (PUBLISHING_GALLERY3_TYPE_SESSION); -#line 12550 "GalleryConnector.c" -} - - -static gboolean -publishing_gallery3_session_real_is_authenticated (PublishingRESTSupportSession* base) -{ - PublishingGallery3Session * self; - gboolean result = FALSE; - const gchar* _tmp0_; -#line 1945 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_GALLERY3_TYPE_SESSION, PublishingGallery3Session); -#line 1946 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp0_ = self->priv->_key; -#line 1946 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - result = NULL != _tmp0_; -#line 1946 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - return result; -#line 12568 "GalleryConnector.c" -} - - -void -publishing_gallery3_session_authenticate (PublishingGallery3Session* self, - const gchar* gallery_url, - const gchar* username, - const gchar* key) -{ -#line 1949 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_return_if_fail (PUBLISHING_GALLERY3_IS_SESSION (self)); -#line 1949 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_return_if_fail (gallery_url != NULL); -#line 1949 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_return_if_fail (username != NULL); -#line 1949 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_return_if_fail (key != NULL); -#line 1950 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - publishing_gallery3_session_set_url (self, gallery_url); -#line 1951 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - publishing_gallery3_session_set_username (self, username); -#line 1952 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - publishing_gallery3_session_set_key (self, key); -#line 1954 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - publishing_rest_support_session_notify_authenticated (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_SESSION, PublishingRESTSupportSession)); -#line 12594 "GalleryConnector.c" -} - - -void -publishing_gallery3_session_deauthenticate (PublishingGallery3Session* self) -{ -#line 1957 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_return_if_fail (PUBLISHING_GALLERY3_IS_SESSION (self)); -#line 1958 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - publishing_gallery3_session_set_url (self, NULL); -#line 1959 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - publishing_gallery3_session_set_username (self, NULL); -#line 1960 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - publishing_gallery3_session_set_key (self, NULL); -#line 12609 "GalleryConnector.c" -} - - -const gchar* -publishing_gallery3_session_get_url (PublishingGallery3Session* self) -{ - const gchar* result; - const gchar* _tmp0_; -#line 1938 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_return_val_if_fail (PUBLISHING_GALLERY3_IS_SESSION (self), NULL); -#line 1938 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp0_ = self->priv->_url; -#line 1938 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - result = _tmp0_; -#line 1938 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - return result; -#line 12626 "GalleryConnector.c" -} - - -static void -publishing_gallery3_session_set_url (PublishingGallery3Session* self, - const gchar* value) -{ - gchar* _tmp0_; -#line 1938 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_return_if_fail (PUBLISHING_GALLERY3_IS_SESSION (self)); -#line 1938 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp0_ = g_strdup (value); -#line 1938 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_free0 (self->priv->_url); -#line 1938 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self->priv->_url = _tmp0_; -#line 12643 "GalleryConnector.c" -} - - -const gchar* -publishing_gallery3_session_get_username (PublishingGallery3Session* self) -{ - const gchar* result; - const gchar* _tmp0_; -#line 1939 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_return_val_if_fail (PUBLISHING_GALLERY3_IS_SESSION (self), NULL); -#line 1939 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp0_ = self->priv->_username; -#line 1939 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - result = _tmp0_; -#line 1939 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - return result; -#line 12660 "GalleryConnector.c" -} - - -static void -publishing_gallery3_session_set_username (PublishingGallery3Session* self, - const gchar* value) -{ - gchar* _tmp0_; -#line 1939 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_return_if_fail (PUBLISHING_GALLERY3_IS_SESSION (self)); -#line 1939 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp0_ = g_strdup (value); -#line 1939 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_free0 (self->priv->_username); -#line 1939 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self->priv->_username = _tmp0_; -#line 12677 "GalleryConnector.c" -} - - -const gchar* -publishing_gallery3_session_get_key (PublishingGallery3Session* self) -{ - const gchar* result; - const gchar* _tmp0_; -#line 1940 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_return_val_if_fail (PUBLISHING_GALLERY3_IS_SESSION (self), NULL); -#line 1940 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp0_ = self->priv->_key; -#line 1940 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - result = _tmp0_; -#line 1940 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - return result; -#line 12694 "GalleryConnector.c" -} - - -static void -publishing_gallery3_session_set_key (PublishingGallery3Session* self, - const gchar* value) -{ - gchar* _tmp0_; -#line 1940 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_return_if_fail (PUBLISHING_GALLERY3_IS_SESSION (self)); -#line 1940 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp0_ = g_strdup (value); -#line 1940 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_free0 (self->priv->_key); -#line 1940 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self->priv->_key = _tmp0_; -#line 12711 "GalleryConnector.c" -} - - -static void -publishing_gallery3_session_class_init (PublishingGallery3SessionClass * klass) -{ -#line 1935 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - publishing_gallery3_session_parent_class = g_type_class_peek_parent (klass); -#line 1935 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - ((PublishingRESTSupportSessionClass *) klass)->finalize = publishing_gallery3_session_finalize; -#line 1935 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_type_class_add_private (klass, sizeof (PublishingGallery3SessionPrivate)); -#line 1935 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - ((PublishingRESTSupportSessionClass *) klass)->is_authenticated = (gboolean (*) (PublishingRESTSupportSession *)) publishing_gallery3_session_real_is_authenticated; -#line 12726 "GalleryConnector.c" -} - - -static void -publishing_gallery3_session_instance_init (PublishingGallery3Session * self) -{ -#line 1935 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self->priv = PUBLISHING_GALLERY3_SESSION_GET_PRIVATE (self); -#line 1938 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self->priv->_url = NULL; -#line 1939 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self->priv->_username = NULL; -#line 1940 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self->priv->_key = NULL; -#line 12741 "GalleryConnector.c" -} - - -static void -publishing_gallery3_session_finalize (PublishingRESTSupportSession * obj) -{ - PublishingGallery3Session * self; -#line 1935 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, PUBLISHING_GALLERY3_TYPE_SESSION, PublishingGallery3Session); -#line 1938 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_free0 (self->priv->_url); -#line 1939 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_free0 (self->priv->_username); -#line 1940 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_free0 (self->priv->_key); -#line 1935 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - PUBLISHING_REST_SUPPORT_SESSION_CLASS (publishing_gallery3_session_parent_class)->finalize (obj); -#line 12759 "GalleryConnector.c" -} - - -GType -publishing_gallery3_session_get_type (void) -{ - static volatile gsize publishing_gallery3_session_type_id__volatile = 0; - if (g_once_init_enter (&publishing_gallery3_session_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (PublishingGallery3SessionClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) publishing_gallery3_session_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PublishingGallery3Session), 0, (GInstanceInitFunc) publishing_gallery3_session_instance_init, NULL }; - GType publishing_gallery3_session_type_id; - publishing_gallery3_session_type_id = g_type_register_static (PUBLISHING_REST_SUPPORT_TYPE_SESSION, "PublishingGallery3Session", &g_define_type_info, 0); - g_once_init_leave (&publishing_gallery3_session_type_id__volatile, publishing_gallery3_session_type_id); - } - return publishing_gallery3_session_type_id__volatile; -} - - -PublishingGallery3Uploader* -publishing_gallery3_uploader_construct (GType object_type, - PublishingGallery3Session* session, - SpitPublishingPublishable** publishables, - int publishables_length1, - PublishingGallery3PublishingParameters* parameters) -{ - PublishingGallery3Uploader* self = NULL; - PublishingGallery3PublishingParameters* _tmp0_; -#line 1990 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_return_val_if_fail (PUBLISHING_GALLERY3_IS_SESSION (session), NULL); -#line 1990 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_return_val_if_fail (PUBLISHING_GALLERY3_IS_PUBLISHING_PARAMETERS (parameters), NULL); -#line 1994 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self = (PublishingGallery3Uploader*) publishing_rest_support_batch_uploader_construct (object_type, G_TYPE_CHECK_INSTANCE_CAST (session, PUBLISHING_REST_SUPPORT_TYPE_SESSION, PublishingRESTSupportSession), publishables, publishables_length1); -#line 1996 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp0_ = _publishing_gallery3_publishing_parameters_ref0 (parameters); -#line 1996 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _publishing_gallery3_publishing_parameters_unref0 (self->priv->parameters); -#line 1996 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self->priv->parameters = _tmp0_; -#line 1990 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - return self; -#line 12800 "GalleryConnector.c" -} - - -PublishingGallery3Uploader* -publishing_gallery3_uploader_new (PublishingGallery3Session* session, - SpitPublishingPublishable** publishables, - int publishables_length1, - PublishingGallery3PublishingParameters* parameters) -{ -#line 1990 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - return publishing_gallery3_uploader_construct (PUBLISHING_GALLERY3_TYPE_UPLOADER, session, publishables, publishables_length1, parameters); -#line 12812 "GalleryConnector.c" -} - - -static gpointer -_publishing_rest_support_transaction_ref0 (gpointer self) -{ -#line 2011 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - return self ? publishing_rest_support_transaction_ref (self) : NULL; -#line 12821 "GalleryConnector.c" -} - - -static PublishingRESTSupportTransaction* -publishing_gallery3_uploader_real_create_transaction (PublishingRESTSupportBatchUploader* base, - SpitPublishingPublishable* publishable) -{ - PublishingGallery3Uploader * self; - PublishingRESTSupportTransaction* result = NULL; - SpitPublishingPublishable* p = NULL; - SpitPublishingPublishable* _tmp0_; - gchar* _tmp1_; - PublishingRESTSupportSession* _tmp2_; - PublishingGallery3Session* _tmp3_; - PublishingGallery3PublishingParameters* _tmp4_; - PublishingGallery3GalleryUploadTransaction* _tmp5_; - PublishingRESTSupportTransaction* _tmp6_; - PublishingRESTSupportTransaction* _tmp7_; -#line 2000 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_GALLERY3_TYPE_UPLOADER, PublishingGallery3Uploader); -#line 2000 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_return_val_if_fail (SPIT_PUBLISHING_IS_PUBLISHABLE (publishable), NULL); -#line 2003 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp0_ = publishing_rest_support_batch_uploader_get_current_publishable (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_BATCH_UPLOADER, PublishingRESTSupportBatchUploader)); -#line 2003 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - p = _tmp0_; -#line 2004 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp1_ = spit_publishing_publishable_get_param_string (p, SPIT_PUBLISHING_PUBLISHABLE_PARAM_STRING_BASENAME); -#line 2004 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_free0 (self->priv->_current_publishable_name); -#line 2004 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self->priv->_current_publishable_name = _tmp1_; -#line 2006 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self->priv->_current_media_type = spit_publishing_publishable_get_media_type (p); -#line 2008 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp2_ = publishing_rest_support_batch_uploader_get_session (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_BATCH_UPLOADER, PublishingRESTSupportBatchUploader)); -#line 2008 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp3_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, PUBLISHING_GALLERY3_TYPE_SESSION, PublishingGallery3Session); -#line 2008 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp4_ = self->priv->parameters; -#line 2008 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp5_ = publishing_gallery3_gallery_upload_transaction_new (_tmp3_, _tmp4_, p); -#line 2008 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _publishing_rest_support_transaction_unref0 (self->priv->_current_transaction); -#line 2008 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self->priv->_current_transaction = G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction); -#line 2008 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _publishing_rest_support_session_unref0 (_tmp3_); -#line 2011 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp6_ = self->priv->_current_transaction; -#line 2011 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp7_ = _publishing_rest_support_transaction_ref0 (_tmp6_); -#line 2011 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - result = _tmp7_; -#line 2011 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_object_unref0 (p); -#line 2011 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - return result; -#line 12880 "GalleryConnector.c" -} - - -const gchar* -publishing_gallery3_uploader_get_current_publishable_name (PublishingGallery3Uploader* self) -{ - const gchar* result; - const gchar* _tmp0_; -#line 1974 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_return_val_if_fail (PUBLISHING_GALLERY3_IS_UPLOADER (self), NULL); -#line 1975 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp0_ = self->priv->_current_publishable_name; -#line 1975 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - result = _tmp0_; -#line 1975 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - return result; -#line 12897 "GalleryConnector.c" -} - - -guint -publishing_gallery3_uploader_get_status_code (PublishingGallery3Uploader* self) -{ - guint result; - PublishingRESTSupportTransaction* _tmp0_; -#line 1979 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_return_val_if_fail (PUBLISHING_GALLERY3_IS_UPLOADER (self), 0U); -#line 1980 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp0_ = self->priv->_current_transaction; -#line 1980 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - result = publishing_rest_support_transaction_get_status_code (_tmp0_); -#line 1980 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - return result; -#line 12914 "GalleryConnector.c" -} - - -SpitPublishingPublisherMediaType -publishing_gallery3_uploader_get_current_publishable_type (PublishingGallery3Uploader* self) -{ - SpitPublishingPublisherMediaType result; - SpitPublishingPublisherMediaType _tmp0_; -#line 1985 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_return_val_if_fail (PUBLISHING_GALLERY3_IS_UPLOADER (self), 0); -#line 1986 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp0_ = self->priv->_current_media_type; -#line 1986 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - result = _tmp0_; -#line 1986 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - return result; -#line 12931 "GalleryConnector.c" -} - - -static void -publishing_gallery3_uploader_class_init (PublishingGallery3UploaderClass * klass) -{ -#line 1965 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - publishing_gallery3_uploader_parent_class = g_type_class_peek_parent (klass); -#line 1965 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - ((PublishingRESTSupportBatchUploaderClass *) klass)->finalize = publishing_gallery3_uploader_finalize; -#line 1965 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_type_class_add_private (klass, sizeof (PublishingGallery3UploaderPrivate)); -#line 1965 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - ((PublishingRESTSupportBatchUploaderClass *) klass)->create_transaction = (PublishingRESTSupportTransaction* (*) (PublishingRESTSupportBatchUploader *, SpitPublishingPublishable*)) publishing_gallery3_uploader_real_create_transaction; -#line 12946 "GalleryConnector.c" -} - - -static void -publishing_gallery3_uploader_instance_init (PublishingGallery3Uploader * self) -{ -#line 1965 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self->priv = PUBLISHING_GALLERY3_UPLOADER_GET_PRIVATE (self); -#line 12955 "GalleryConnector.c" -} - - -static void -publishing_gallery3_uploader_finalize (PublishingRESTSupportBatchUploader * obj) -{ - PublishingGallery3Uploader * self; -#line 1965 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, PUBLISHING_GALLERY3_TYPE_UPLOADER, PublishingGallery3Uploader); -#line 1967 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _publishing_gallery3_publishing_parameters_unref0 (self->priv->parameters); -#line 1968 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_free0 (self->priv->_current_publishable_name); -#line 1970 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _publishing_rest_support_transaction_unref0 (self->priv->_current_transaction); -#line 1965 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - PUBLISHING_REST_SUPPORT_BATCH_UPLOADER_CLASS (publishing_gallery3_uploader_parent_class)->finalize (obj); -#line 12973 "GalleryConnector.c" -} - - -GType -publishing_gallery3_uploader_get_type (void) -{ - static volatile gsize publishing_gallery3_uploader_type_id__volatile = 0; - if (g_once_init_enter (&publishing_gallery3_uploader_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (PublishingGallery3UploaderClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) publishing_gallery3_uploader_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PublishingGallery3Uploader), 0, (GInstanceInitFunc) publishing_gallery3_uploader_instance_init, NULL }; - GType publishing_gallery3_uploader_type_id; - publishing_gallery3_uploader_type_id = g_type_register_static (PUBLISHING_REST_SUPPORT_TYPE_BATCH_UPLOADER, "PublishingGallery3Uploader", &g_define_type_info, 0); - g_once_init_leave (&publishing_gallery3_uploader_type_id__volatile, publishing_gallery3_uploader_type_id); - } - return publishing_gallery3_uploader_type_id__volatile; -} - - -static gint -string_last_index_of (const gchar* self, - const gchar* needle, - gint start_index) -{ - gint result = 0; - gchar* _result_ = NULL; - gchar* _tmp0_; - gchar* _tmp1_; -#line 1035 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - g_return_val_if_fail (self != NULL, 0); -#line 1035 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - g_return_val_if_fail (needle != NULL, 0); -#line 1036 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp0_ = g_strrstr (((gchar*) self) + start_index, (gchar*) needle); -#line 1036 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _result_ = _tmp0_; -#line 1038 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp1_ = _result_; -#line 1038 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - if (_tmp1_ != NULL) { -#line 13012 "GalleryConnector.c" - gchar* _tmp2_; -#line 1039 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp2_ = _result_; -#line 1039 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - result = (gint) (_tmp2_ - ((gchar*) self)); -#line 1039 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - return result; -#line 13020 "GalleryConnector.c" - } else { -#line 1041 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - result = -1; -#line 1041 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - return result; -#line 13026 "GalleryConnector.c" - } -} - - -gchar* -publishing_gallery3_strip_session_url (const gchar* url) -{ - gchar* result = NULL; - gint item_loc = 0; - gint _tmp0_; - gint _tmp1_; - gchar* _tmp2_; -#line 2017 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_return_val_if_fail (url != NULL, NULL); -#line 2020 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_debug ("GalleryConnector.vala:2020: Searching for \"%s\" in \"%s\"", PUBLISHING_GALLERY3_REST_PATH, url); -#line 2022 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - item_loc = string_last_index_of (url, PUBLISHING_GALLERY3_REST_PATH, 0); -#line 2025 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - if (-1 == item_loc) { -#line 2026 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_error ("Did not find \"%s\" in the base of the new item " "URL \"%s\"", PUBLISHING_GALLERY3_REST_PATH, url); -#line 13049 "GalleryConnector.c" - } -#line 2029 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp0_ = strlen (PUBLISHING_GALLERY3_REST_PATH); -#line 2029 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp1_ = _tmp0_; -#line 2029 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp2_ = string_substring (url, (glong) (item_loc + _tmp1_), (glong) -1); -#line 2029 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - result = _tmp2_; -#line 2029 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - return result; -#line 13061 "GalleryConnector.c" -} - - -static void -_vala_array_destroy (gpointer array, - gint array_length, - GDestroyNotify destroy_func) -{ - if ((array != NULL) && (destroy_func != NULL)) { - int i; - for (i = 0; i < array_length; i = i + 1) { - if (((gpointer*) array)[i] != NULL) { - destroy_func (((gpointer*) array)[i]); - } - } - } -} - - -static void -_vala_array_free (gpointer array, - gint array_length, - GDestroyNotify destroy_func) -{ - _vala_array_destroy (array, array_length, destroy_func); - g_free (array); -} - - - diff --git a/plugins/shotwell-publishing-extras/RajcePublishing.c b/plugins/shotwell-publishing-extras/RajcePublishing.c deleted file mode 100644 index c3963aa..0000000 --- a/plugins/shotwell-publishing-extras/RajcePublishing.c +++ /dev/null @@ -1,11924 +0,0 @@ -/* RajcePublishing.c generated by valac 0.40.4, the Vala compiler - * generated from RajcePublishing.vala, do not modify */ - -/* Copyright 2014 rajce.net - * - * This software is licensed under the GNU Lesser General Public License - * (version 2.1 or later). See the COPYING file in this distribution. - */ - - -#include -#include -#include -#include -#include -#include -#include -#include "shotwell-plugin-common.h" -#include -#include -#include -#include -#include -#include -#include -#include -#include - - -#define TYPE_RAJCE_SERVICE (rajce_service_get_type ()) -#define RAJCE_SERVICE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_RAJCE_SERVICE, RajceService)) -#define RAJCE_SERVICE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_RAJCE_SERVICE, RajceServiceClass)) -#define IS_RAJCE_SERVICE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_RAJCE_SERVICE)) -#define IS_RAJCE_SERVICE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_RAJCE_SERVICE)) -#define RAJCE_SERVICE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_RAJCE_SERVICE, RajceServiceClass)) - -typedef struct _RajceService RajceService; -typedef struct _RajceServiceClass RajceServiceClass; -typedef struct _RajceServicePrivate RajceServicePrivate; -enum { - RAJCE_SERVICE_0_PROPERTY, - RAJCE_SERVICE_NUM_PROPERTIES -}; -static GParamSpec* rajce_service_properties[RAJCE_SERVICE_NUM_PROPERTIES]; -#define _g_free0(var) (var = (g_free (var), NULL)) - -#define PUBLISHING_RAJCE_TYPE_RAJCE_PUBLISHER (publishing_rajce_rajce_publisher_get_type ()) -#define PUBLISHING_RAJCE_RAJCE_PUBLISHER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_RAJCE_TYPE_RAJCE_PUBLISHER, PublishingRajceRajcePublisher)) -#define PUBLISHING_RAJCE_RAJCE_PUBLISHER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_RAJCE_TYPE_RAJCE_PUBLISHER, PublishingRajceRajcePublisherClass)) -#define PUBLISHING_RAJCE_IS_RAJCE_PUBLISHER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_RAJCE_TYPE_RAJCE_PUBLISHER)) -#define PUBLISHING_RAJCE_IS_RAJCE_PUBLISHER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_RAJCE_TYPE_RAJCE_PUBLISHER)) -#define PUBLISHING_RAJCE_RAJCE_PUBLISHER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_RAJCE_TYPE_RAJCE_PUBLISHER, PublishingRajceRajcePublisherClass)) - -typedef struct _PublishingRajceRajcePublisher PublishingRajceRajcePublisher; -typedef struct _PublishingRajceRajcePublisherClass PublishingRajceRajcePublisherClass; -typedef struct _PublishingRajceRajcePublisherPrivate PublishingRajceRajcePublisherPrivate; - -#define PUBLISHING_RAJCE_TYPE_SESSION (publishing_rajce_session_get_type ()) -#define PUBLISHING_RAJCE_SESSION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_RAJCE_TYPE_SESSION, PublishingRajceSession)) -#define PUBLISHING_RAJCE_SESSION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_RAJCE_TYPE_SESSION, PublishingRajceSessionClass)) -#define PUBLISHING_RAJCE_IS_SESSION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_RAJCE_TYPE_SESSION)) -#define PUBLISHING_RAJCE_IS_SESSION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_RAJCE_TYPE_SESSION)) -#define PUBLISHING_RAJCE_SESSION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_RAJCE_TYPE_SESSION, PublishingRajceSessionClass)) - -typedef struct _PublishingRajceSession PublishingRajceSession; -typedef struct _PublishingRajceSessionClass PublishingRajceSessionClass; - -#define PUBLISHING_RAJCE_TYPE_ALBUM (publishing_rajce_album_get_type ()) -#define PUBLISHING_RAJCE_ALBUM(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_RAJCE_TYPE_ALBUM, PublishingRajceAlbum)) -#define PUBLISHING_RAJCE_ALBUM_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_RAJCE_TYPE_ALBUM, PublishingRajceAlbumClass)) -#define PUBLISHING_RAJCE_IS_ALBUM(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_RAJCE_TYPE_ALBUM)) -#define PUBLISHING_RAJCE_IS_ALBUM_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_RAJCE_TYPE_ALBUM)) -#define PUBLISHING_RAJCE_ALBUM_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_RAJCE_TYPE_ALBUM, PublishingRajceAlbumClass)) - -typedef struct _PublishingRajceAlbum PublishingRajceAlbum; -typedef struct _PublishingRajceAlbumClass PublishingRajceAlbumClass; - -#define PUBLISHING_RAJCE_TYPE_PUBLISHING_PARAMETERS (publishing_rajce_publishing_parameters_get_type ()) -#define PUBLISHING_RAJCE_PUBLISHING_PARAMETERS(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_RAJCE_TYPE_PUBLISHING_PARAMETERS, PublishingRajcePublishingParameters)) -#define PUBLISHING_RAJCE_PUBLISHING_PARAMETERS_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_RAJCE_TYPE_PUBLISHING_PARAMETERS, PublishingRajcePublishingParametersClass)) -#define PUBLISHING_RAJCE_IS_PUBLISHING_PARAMETERS(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_RAJCE_TYPE_PUBLISHING_PARAMETERS)) -#define PUBLISHING_RAJCE_IS_PUBLISHING_PARAMETERS_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_RAJCE_TYPE_PUBLISHING_PARAMETERS)) -#define PUBLISHING_RAJCE_PUBLISHING_PARAMETERS_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_RAJCE_TYPE_PUBLISHING_PARAMETERS, PublishingRajcePublishingParametersClass)) - -typedef struct _PublishingRajcePublishingParameters PublishingRajcePublishingParameters; -typedef struct _PublishingRajcePublishingParametersClass PublishingRajcePublishingParametersClass; -enum { - PUBLISHING_RAJCE_RAJCE_PUBLISHER_0_PROPERTY, - PUBLISHING_RAJCE_RAJCE_PUBLISHER_NUM_PROPERTIES -}; -static GParamSpec* publishing_rajce_rajce_publisher_properties[PUBLISHING_RAJCE_RAJCE_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 _publishing_rajce_publishing_parameters_unref0(var) ((var == NULL) ? NULL : (var = (publishing_rajce_publishing_parameters_unref (var), NULL))) - -#define PUBLISHING_RAJCE_AUTHENTICATION_PANE_TYPE_MODE (publishing_rajce_authentication_pane_mode_get_type ()) - -#define PUBLISHING_RAJCE_TYPE_AUTHENTICATION_PANE (publishing_rajce_authentication_pane_get_type ()) -#define PUBLISHING_RAJCE_AUTHENTICATION_PANE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_RAJCE_TYPE_AUTHENTICATION_PANE, PublishingRajceAuthenticationPane)) -#define PUBLISHING_RAJCE_AUTHENTICATION_PANE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_RAJCE_TYPE_AUTHENTICATION_PANE, PublishingRajceAuthenticationPaneClass)) -#define PUBLISHING_RAJCE_IS_AUTHENTICATION_PANE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_RAJCE_TYPE_AUTHENTICATION_PANE)) -#define PUBLISHING_RAJCE_IS_AUTHENTICATION_PANE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_RAJCE_TYPE_AUTHENTICATION_PANE)) -#define PUBLISHING_RAJCE_AUTHENTICATION_PANE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_RAJCE_TYPE_AUTHENTICATION_PANE, PublishingRajceAuthenticationPaneClass)) - -typedef struct _PublishingRajceAuthenticationPane PublishingRajceAuthenticationPane; -typedef struct _PublishingRajceAuthenticationPaneClass PublishingRajceAuthenticationPaneClass; - -#define PUBLISHING_RAJCE_TYPE_TRANSACTION (publishing_rajce_transaction_get_type ()) -#define PUBLISHING_RAJCE_TRANSACTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_RAJCE_TYPE_TRANSACTION, PublishingRajceTransaction)) -#define PUBLISHING_RAJCE_TRANSACTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_RAJCE_TYPE_TRANSACTION, PublishingRajceTransactionClass)) -#define PUBLISHING_RAJCE_IS_TRANSACTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_RAJCE_TYPE_TRANSACTION)) -#define PUBLISHING_RAJCE_IS_TRANSACTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_RAJCE_TYPE_TRANSACTION)) -#define PUBLISHING_RAJCE_TRANSACTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_RAJCE_TYPE_TRANSACTION, PublishingRajceTransactionClass)) - -typedef struct _PublishingRajceTransaction PublishingRajceTransaction; -typedef struct _PublishingRajceTransactionClass PublishingRajceTransactionClass; - -#define PUBLISHING_RAJCE_TYPE_SESSION_LOGIN_TRANSACTION (publishing_rajce_session_login_transaction_get_type ()) -#define PUBLISHING_RAJCE_SESSION_LOGIN_TRANSACTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_RAJCE_TYPE_SESSION_LOGIN_TRANSACTION, PublishingRajceSessionLoginTransaction)) -#define PUBLISHING_RAJCE_SESSION_LOGIN_TRANSACTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_RAJCE_TYPE_SESSION_LOGIN_TRANSACTION, PublishingRajceSessionLoginTransactionClass)) -#define PUBLISHING_RAJCE_IS_SESSION_LOGIN_TRANSACTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_RAJCE_TYPE_SESSION_LOGIN_TRANSACTION)) -#define PUBLISHING_RAJCE_IS_SESSION_LOGIN_TRANSACTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_RAJCE_TYPE_SESSION_LOGIN_TRANSACTION)) -#define PUBLISHING_RAJCE_SESSION_LOGIN_TRANSACTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_RAJCE_TYPE_SESSION_LOGIN_TRANSACTION, PublishingRajceSessionLoginTransactionClass)) - -typedef struct _PublishingRajceSessionLoginTransaction PublishingRajceSessionLoginTransaction; -typedef struct _PublishingRajceSessionLoginTransactionClass PublishingRajceSessionLoginTransactionClass; -#define _publishing_rest_support_transaction_unref0(var) ((var == NULL) ? NULL : (var = (publishing_rest_support_transaction_unref (var), NULL))) -#define _g_error_free0(var) ((var == NULL) ? NULL : (var = (g_error_free (var), NULL))) -#define _publishing_rest_support_xml_document_unref0(var) ((var == NULL) ? NULL : (var = (publishing_rest_support_xml_document_unref (var), NULL))) - -#define PUBLISHING_RAJCE_TYPE_GET_ALBUMS_TRANSACTION (publishing_rajce_get_albums_transaction_get_type ()) -#define PUBLISHING_RAJCE_GET_ALBUMS_TRANSACTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_RAJCE_TYPE_GET_ALBUMS_TRANSACTION, PublishingRajceGetAlbumsTransaction)) -#define PUBLISHING_RAJCE_GET_ALBUMS_TRANSACTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_RAJCE_TYPE_GET_ALBUMS_TRANSACTION, PublishingRajceGetAlbumsTransactionClass)) -#define PUBLISHING_RAJCE_IS_GET_ALBUMS_TRANSACTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_RAJCE_TYPE_GET_ALBUMS_TRANSACTION)) -#define PUBLISHING_RAJCE_IS_GET_ALBUMS_TRANSACTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_RAJCE_TYPE_GET_ALBUMS_TRANSACTION)) -#define PUBLISHING_RAJCE_GET_ALBUMS_TRANSACTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_RAJCE_TYPE_GET_ALBUMS_TRANSACTION, PublishingRajceGetAlbumsTransactionClass)) - -typedef struct _PublishingRajceGetAlbumsTransaction PublishingRajceGetAlbumsTransaction; -typedef struct _PublishingRajceGetAlbumsTransactionClass PublishingRajceGetAlbumsTransactionClass; -#define _publishing_rajce_album_unref0(var) ((var == NULL) ? NULL : (var = (publishing_rajce_album_unref (var), NULL))) - -#define PUBLISHING_RAJCE_TYPE_PUBLISHING_OPTIONS_PANE (publishing_rajce_publishing_options_pane_get_type ()) -#define PUBLISHING_RAJCE_PUBLISHING_OPTIONS_PANE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_RAJCE_TYPE_PUBLISHING_OPTIONS_PANE, PublishingRajcePublishingOptionsPane)) -#define PUBLISHING_RAJCE_PUBLISHING_OPTIONS_PANE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_RAJCE_TYPE_PUBLISHING_OPTIONS_PANE, PublishingRajcePublishingOptionsPaneClass)) -#define PUBLISHING_RAJCE_IS_PUBLISHING_OPTIONS_PANE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_RAJCE_TYPE_PUBLISHING_OPTIONS_PANE)) -#define PUBLISHING_RAJCE_IS_PUBLISHING_OPTIONS_PANE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_RAJCE_TYPE_PUBLISHING_OPTIONS_PANE)) -#define PUBLISHING_RAJCE_PUBLISHING_OPTIONS_PANE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_RAJCE_TYPE_PUBLISHING_OPTIONS_PANE, PublishingRajcePublishingOptionsPaneClass)) - -typedef struct _PublishingRajcePublishingOptionsPane PublishingRajcePublishingOptionsPane; -typedef struct _PublishingRajcePublishingOptionsPaneClass PublishingRajcePublishingOptionsPaneClass; -typedef struct _PublishingRajcePublishingParametersPrivate PublishingRajcePublishingParametersPrivate; - -#define PUBLISHING_RAJCE_TYPE_CREATE_ALBUM_TRANSACTION (publishing_rajce_create_album_transaction_get_type ()) -#define PUBLISHING_RAJCE_CREATE_ALBUM_TRANSACTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_RAJCE_TYPE_CREATE_ALBUM_TRANSACTION, PublishingRajceCreateAlbumTransaction)) -#define PUBLISHING_RAJCE_CREATE_ALBUM_TRANSACTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_RAJCE_TYPE_CREATE_ALBUM_TRANSACTION, PublishingRajceCreateAlbumTransactionClass)) -#define PUBLISHING_RAJCE_IS_CREATE_ALBUM_TRANSACTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_RAJCE_TYPE_CREATE_ALBUM_TRANSACTION)) -#define PUBLISHING_RAJCE_IS_CREATE_ALBUM_TRANSACTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_RAJCE_TYPE_CREATE_ALBUM_TRANSACTION)) -#define PUBLISHING_RAJCE_CREATE_ALBUM_TRANSACTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_RAJCE_TYPE_CREATE_ALBUM_TRANSACTION, PublishingRajceCreateAlbumTransactionClass)) - -typedef struct _PublishingRajceCreateAlbumTransaction PublishingRajceCreateAlbumTransaction; -typedef struct _PublishingRajceCreateAlbumTransactionClass PublishingRajceCreateAlbumTransactionClass; - -#define PUBLISHING_RAJCE_TYPE_OPEN_ALBUM_TRANSACTION (publishing_rajce_open_album_transaction_get_type ()) -#define PUBLISHING_RAJCE_OPEN_ALBUM_TRANSACTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_RAJCE_TYPE_OPEN_ALBUM_TRANSACTION, PublishingRajceOpenAlbumTransaction)) -#define PUBLISHING_RAJCE_OPEN_ALBUM_TRANSACTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_RAJCE_TYPE_OPEN_ALBUM_TRANSACTION, PublishingRajceOpenAlbumTransactionClass)) -#define PUBLISHING_RAJCE_IS_OPEN_ALBUM_TRANSACTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_RAJCE_TYPE_OPEN_ALBUM_TRANSACTION)) -#define PUBLISHING_RAJCE_IS_OPEN_ALBUM_TRANSACTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_RAJCE_TYPE_OPEN_ALBUM_TRANSACTION)) -#define PUBLISHING_RAJCE_OPEN_ALBUM_TRANSACTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_RAJCE_TYPE_OPEN_ALBUM_TRANSACTION, PublishingRajceOpenAlbumTransactionClass)) - -typedef struct _PublishingRajceOpenAlbumTransaction PublishingRajceOpenAlbumTransaction; -typedef struct _PublishingRajceOpenAlbumTransactionClass PublishingRajceOpenAlbumTransactionClass; - -#define PUBLISHING_RAJCE_TYPE_UPLOADER (publishing_rajce_uploader_get_type ()) -#define PUBLISHING_RAJCE_UPLOADER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_RAJCE_TYPE_UPLOADER, PublishingRajceUploader)) -#define PUBLISHING_RAJCE_UPLOADER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_RAJCE_TYPE_UPLOADER, PublishingRajceUploaderClass)) -#define PUBLISHING_RAJCE_IS_UPLOADER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_RAJCE_TYPE_UPLOADER)) -#define PUBLISHING_RAJCE_IS_UPLOADER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_RAJCE_TYPE_UPLOADER)) -#define PUBLISHING_RAJCE_UPLOADER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_RAJCE_TYPE_UPLOADER, PublishingRajceUploaderClass)) - -typedef struct _PublishingRajceUploader PublishingRajceUploader; -typedef struct _PublishingRajceUploaderClass PublishingRajceUploaderClass; -#define _publishing_rest_support_batch_uploader_unref0(var) ((var == NULL) ? NULL : (var = (publishing_rest_support_batch_uploader_unref (var), NULL))) - -#define PUBLISHING_RAJCE_TYPE_GET_ALBUM_URL_TRANSACTION (publishing_rajce_get_album_url_transaction_get_type ()) -#define PUBLISHING_RAJCE_GET_ALBUM_URL_TRANSACTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_RAJCE_TYPE_GET_ALBUM_URL_TRANSACTION, PublishingRajceGetAlbumUrlTransaction)) -#define PUBLISHING_RAJCE_GET_ALBUM_URL_TRANSACTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_RAJCE_TYPE_GET_ALBUM_URL_TRANSACTION, PublishingRajceGetAlbumUrlTransactionClass)) -#define PUBLISHING_RAJCE_IS_GET_ALBUM_URL_TRANSACTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_RAJCE_TYPE_GET_ALBUM_URL_TRANSACTION)) -#define PUBLISHING_RAJCE_IS_GET_ALBUM_URL_TRANSACTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_RAJCE_TYPE_GET_ALBUM_URL_TRANSACTION)) -#define PUBLISHING_RAJCE_GET_ALBUM_URL_TRANSACTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_RAJCE_TYPE_GET_ALBUM_URL_TRANSACTION, PublishingRajceGetAlbumUrlTransactionClass)) - -typedef struct _PublishingRajceGetAlbumUrlTransaction PublishingRajceGetAlbumUrlTransaction; -typedef struct _PublishingRajceGetAlbumUrlTransactionClass PublishingRajceGetAlbumUrlTransactionClass; - -#define PUBLISHING_RAJCE_TYPE_CLOSE_ALBUM_TRANSACTION (publishing_rajce_close_album_transaction_get_type ()) -#define PUBLISHING_RAJCE_CLOSE_ALBUM_TRANSACTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_RAJCE_TYPE_CLOSE_ALBUM_TRANSACTION, PublishingRajceCloseAlbumTransaction)) -#define PUBLISHING_RAJCE_CLOSE_ALBUM_TRANSACTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_RAJCE_TYPE_CLOSE_ALBUM_TRANSACTION, PublishingRajceCloseAlbumTransactionClass)) -#define PUBLISHING_RAJCE_IS_CLOSE_ALBUM_TRANSACTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_RAJCE_TYPE_CLOSE_ALBUM_TRANSACTION)) -#define PUBLISHING_RAJCE_IS_CLOSE_ALBUM_TRANSACTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_RAJCE_TYPE_CLOSE_ALBUM_TRANSACTION)) -#define PUBLISHING_RAJCE_CLOSE_ALBUM_TRANSACTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_RAJCE_TYPE_CLOSE_ALBUM_TRANSACTION, PublishingRajceCloseAlbumTransactionClass)) - -typedef struct _PublishingRajceCloseAlbumTransaction PublishingRajceCloseAlbumTransaction; -typedef struct _PublishingRajceCloseAlbumTransactionClass PublishingRajceCloseAlbumTransactionClass; -typedef struct _PublishingRajceAlbumPrivate PublishingRajceAlbumPrivate; -typedef struct _PublishingRajceParamSpecAlbum PublishingRajceParamSpecAlbum; -typedef struct _PublishingRajceUploaderPrivate PublishingRajceUploaderPrivate; - -#define PUBLISHING_RAJCE_TYPE_ADD_PHOTO_TRANSACTION (publishing_rajce_add_photo_transaction_get_type ()) -#define PUBLISHING_RAJCE_ADD_PHOTO_TRANSACTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_RAJCE_TYPE_ADD_PHOTO_TRANSACTION, PublishingRajceAddPhotoTransaction)) -#define PUBLISHING_RAJCE_ADD_PHOTO_TRANSACTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_RAJCE_TYPE_ADD_PHOTO_TRANSACTION, PublishingRajceAddPhotoTransactionClass)) -#define PUBLISHING_RAJCE_IS_ADD_PHOTO_TRANSACTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_RAJCE_TYPE_ADD_PHOTO_TRANSACTION)) -#define PUBLISHING_RAJCE_IS_ADD_PHOTO_TRANSACTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_RAJCE_TYPE_ADD_PHOTO_TRANSACTION)) -#define PUBLISHING_RAJCE_ADD_PHOTO_TRANSACTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_RAJCE_TYPE_ADD_PHOTO_TRANSACTION, PublishingRajceAddPhotoTransactionClass)) - -typedef struct _PublishingRajceAddPhotoTransaction PublishingRajceAddPhotoTransaction; -typedef struct _PublishingRajceAddPhotoTransactionClass PublishingRajceAddPhotoTransactionClass; -typedef struct _PublishingRajceAuthenticationPanePrivate PublishingRajceAuthenticationPanePrivate; -enum { - PUBLISHING_RAJCE_AUTHENTICATION_PANE_0_PROPERTY, - PUBLISHING_RAJCE_AUTHENTICATION_PANE_NUM_PROPERTIES -}; -static GParamSpec* publishing_rajce_authentication_pane_properties[PUBLISHING_RAJCE_AUTHENTICATION_PANE_NUM_PROPERTIES]; -enum { - PUBLISHING_RAJCE_AUTHENTICATION_PANE_LOGIN_SIGNAL, - PUBLISHING_RAJCE_AUTHENTICATION_PANE_NUM_SIGNALS -}; -static guint publishing_rajce_authentication_pane_signals[PUBLISHING_RAJCE_AUTHENTICATION_PANE_NUM_SIGNALS] = {0}; -typedef struct _PublishingRajcePublishingOptionsPanePrivate PublishingRajcePublishingOptionsPanePrivate; -enum { - PUBLISHING_RAJCE_PUBLISHING_OPTIONS_PANE_0_PROPERTY, - PUBLISHING_RAJCE_PUBLISHING_OPTIONS_PANE_NUM_PROPERTIES -}; -static GParamSpec* publishing_rajce_publishing_options_pane_properties[PUBLISHING_RAJCE_PUBLISHING_OPTIONS_PANE_NUM_PROPERTIES]; -enum { - PUBLISHING_RAJCE_PUBLISHING_OPTIONS_PANE_PUBLISH_SIGNAL, - PUBLISHING_RAJCE_PUBLISHING_OPTIONS_PANE_LOGOUT_SIGNAL, - PUBLISHING_RAJCE_PUBLISHING_OPTIONS_PANE_NUM_SIGNALS -}; -static guint publishing_rajce_publishing_options_pane_signals[PUBLISHING_RAJCE_PUBLISHING_OPTIONS_PANE_NUM_SIGNALS] = {0}; -typedef struct _PublishingRajceParamSpecPublishingParameters PublishingRajceParamSpecPublishingParameters; -typedef struct _PublishingRajceSessionPrivate PublishingRajceSessionPrivate; - -#define PUBLISHING_RAJCE_TYPE_ARG_ITEM (publishing_rajce_arg_item_get_type ()) -#define PUBLISHING_RAJCE_ARG_ITEM(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_RAJCE_TYPE_ARG_ITEM, PublishingRajceArgItem)) -#define PUBLISHING_RAJCE_ARG_ITEM_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_RAJCE_TYPE_ARG_ITEM, PublishingRajceArgItemClass)) -#define PUBLISHING_RAJCE_IS_ARG_ITEM(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_RAJCE_TYPE_ARG_ITEM)) -#define PUBLISHING_RAJCE_IS_ARG_ITEM_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_RAJCE_TYPE_ARG_ITEM)) -#define PUBLISHING_RAJCE_ARG_ITEM_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_RAJCE_TYPE_ARG_ITEM, PublishingRajceArgItemClass)) - -typedef struct _PublishingRajceArgItem PublishingRajceArgItem; -typedef struct _PublishingRajceArgItemClass PublishingRajceArgItemClass; -typedef struct _PublishingRajceArgItemPrivate PublishingRajceArgItemPrivate; -#define _publishing_rajce_arg_item_unref0(var) ((var == NULL) ? NULL : (var = (publishing_rajce_arg_item_unref (var), NULL))) -typedef struct _PublishingRajceParamSpecArgItem PublishingRajceParamSpecArgItem; - -#define PUBLISHING_RAJCE_TYPE_LIVE_API_REQUEST (publishing_rajce_live_api_request_get_type ()) -#define PUBLISHING_RAJCE_LIVE_API_REQUEST(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_RAJCE_TYPE_LIVE_API_REQUEST, PublishingRajceLiveApiRequest)) -#define PUBLISHING_RAJCE_LIVE_API_REQUEST_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_RAJCE_TYPE_LIVE_API_REQUEST, PublishingRajceLiveApiRequestClass)) -#define PUBLISHING_RAJCE_IS_LIVE_API_REQUEST(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_RAJCE_TYPE_LIVE_API_REQUEST)) -#define PUBLISHING_RAJCE_IS_LIVE_API_REQUEST_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_RAJCE_TYPE_LIVE_API_REQUEST)) -#define PUBLISHING_RAJCE_LIVE_API_REQUEST_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_RAJCE_TYPE_LIVE_API_REQUEST, PublishingRajceLiveApiRequestClass)) - -typedef struct _PublishingRajceLiveApiRequest PublishingRajceLiveApiRequest; -typedef struct _PublishingRajceLiveApiRequestClass PublishingRajceLiveApiRequestClass; -typedef struct _PublishingRajceLiveApiRequestPrivate PublishingRajceLiveApiRequestPrivate; -typedef struct _PublishingRajceParamSpecLiveApiRequest PublishingRajceParamSpecLiveApiRequest; -typedef struct _PublishingRajceTransactionPrivate PublishingRajceTransactionPrivate; -typedef struct _PublishingRajceSessionLoginTransactionPrivate PublishingRajceSessionLoginTransactionPrivate; -#define _publishing_rajce_live_api_request_unref0(var) ((var == NULL) ? NULL : (var = (publishing_rajce_live_api_request_unref (var), NULL))) -typedef struct _PublishingRajceGetAlbumsTransactionPrivate PublishingRajceGetAlbumsTransactionPrivate; -typedef struct _PublishingRajceCreateAlbumTransactionPrivate PublishingRajceCreateAlbumTransactionPrivate; -typedef struct _PublishingRajceOpenAlbumTransactionPrivate PublishingRajceOpenAlbumTransactionPrivate; -typedef struct _PublishingRajceGetAlbumUrlTransactionPrivate PublishingRajceGetAlbumUrlTransactionPrivate; -typedef struct _PublishingRajceCloseAlbumTransactionPrivate PublishingRajceCloseAlbumTransactionPrivate; - -#define PUBLISHING_RAJCE_TYPE_GET_CATEGORIES_TRANSACTION (publishing_rajce_get_categories_transaction_get_type ()) -#define PUBLISHING_RAJCE_GET_CATEGORIES_TRANSACTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_RAJCE_TYPE_GET_CATEGORIES_TRANSACTION, PublishingRajceGetCategoriesTransaction)) -#define PUBLISHING_RAJCE_GET_CATEGORIES_TRANSACTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_RAJCE_TYPE_GET_CATEGORIES_TRANSACTION, PublishingRajceGetCategoriesTransactionClass)) -#define PUBLISHING_RAJCE_IS_GET_CATEGORIES_TRANSACTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_RAJCE_TYPE_GET_CATEGORIES_TRANSACTION)) -#define PUBLISHING_RAJCE_IS_GET_CATEGORIES_TRANSACTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_RAJCE_TYPE_GET_CATEGORIES_TRANSACTION)) -#define PUBLISHING_RAJCE_GET_CATEGORIES_TRANSACTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_RAJCE_TYPE_GET_CATEGORIES_TRANSACTION, PublishingRajceGetCategoriesTransactionClass)) - -typedef struct _PublishingRajceGetCategoriesTransaction PublishingRajceGetCategoriesTransaction; -typedef struct _PublishingRajceGetCategoriesTransactionClass PublishingRajceGetCategoriesTransactionClass; -typedef struct _PublishingRajceGetCategoriesTransactionPrivate PublishingRajceGetCategoriesTransactionPrivate; -typedef struct _PublishingRajceAddPhotoTransactionPrivate PublishingRajceAddPhotoTransactionPrivate; -#define _g_hash_table_unref0(var) ((var == NULL) ? NULL : (var = (g_hash_table_unref (var), NULL))) -#define _vala_assert(expr, msg) if G_LIKELY (expr) ; else g_assertion_message_expr (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg); -#define _vala_return_if_fail(expr, msg) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return; } -#define _vala_return_val_if_fail(expr, msg, val) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return val; } -#define _vala_warn_if_fail(expr, msg) if G_LIKELY (expr) ; else g_warn_message (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg); - -struct _RajceService { - GObject parent_instance; - RajceServicePrivate * priv; -}; - -struct _RajceServiceClass { - GObjectClass parent_class; -}; - -struct _PublishingRajceRajcePublisher { - GObject parent_instance; - PublishingRajceRajcePublisherPrivate * priv; -}; - -struct _PublishingRajceRajcePublisherClass { - GObjectClass parent_class; -}; - -struct _PublishingRajceRajcePublisherPrivate { - SpitPublishingPluginHost* host; - SpitPublishingProgressCallback progress_reporter; - gpointer progress_reporter_target; - GDestroyNotify progress_reporter_target_destroy_notify; - SpitPublishingService* service; - gboolean running; - PublishingRajceSession* session; - PublishingRajceAlbum** albums; - gint albums_length1; - gint _albums_size_; - PublishingRajcePublishingParameters* parameters; - SpitPublishingPublisherMediaType media_type; -}; - -typedef enum { - PUBLISHING_RAJCE_AUTHENTICATION_PANE_MODE_INTRO, - PUBLISHING_RAJCE_AUTHENTICATION_PANE_MODE_FAILED_RETRY_USER -} PublishingRajceAuthenticationPaneMode; - -struct _PublishingRajcePublishingParameters { - GTypeInstance parent_instance; - volatile int ref_count; - PublishingRajcePublishingParametersPrivate * priv; - gchar* album_name; - gboolean* album_hidden; - gint* album_id; -}; - -struct _PublishingRajcePublishingParametersClass { - GTypeClass parent_class; - void (*finalize) (PublishingRajcePublishingParameters *self); -}; - -struct _PublishingRajceAlbum { - GTypeInstance parent_instance; - volatile int ref_count; - PublishingRajceAlbumPrivate * priv; - gint id; - gchar* albumName; - gchar* url; - gchar* thumbUrl; - gchar* createDate; - gchar* updateDate; - gboolean hidden; - gboolean secure; - gint photoCount; -}; - -struct _PublishingRajceAlbumClass { - GTypeClass parent_class; - void (*finalize) (PublishingRajceAlbum *self); -}; - -struct _PublishingRajceParamSpecAlbum { - GParamSpec parent_instance; -}; - -struct _PublishingRajceUploader { - PublishingRESTSupportBatchUploader parent_instance; - PublishingRajceUploaderPrivate * priv; -}; - -struct _PublishingRajceUploaderClass { - PublishingRESTSupportBatchUploaderClass parent_class; -}; - -struct _PublishingRajceUploaderPrivate { - PublishingRajcePublishingParameters* parameters; - gchar* url; -}; - -struct _PublishingRajceAuthenticationPane { - GObject parent_instance; - PublishingRajceAuthenticationPanePrivate * priv; -}; - -struct _PublishingRajceAuthenticationPaneClass { - GObjectClass parent_class; -}; - -struct _PublishingRajceAuthenticationPanePrivate { - GtkBox* pane_widget; - GtkBuilder* builder; - GtkEntry* username_entry; - GtkEntry* password_entry; - GtkCheckButton* remember_checkbutton; - GtkButton* login_button; - gboolean crypt; -}; - -struct _PublishingRajcePublishingOptionsPane { - GObject parent_instance; - PublishingRajcePublishingOptionsPanePrivate * priv; -}; - -struct _PublishingRajcePublishingOptionsPaneClass { - GObjectClass parent_class; -}; - -struct _PublishingRajcePublishingOptionsPanePrivate { - PublishingRajceRajcePublisher* publisher; - PublishingRajceAlbum** albums; - gint albums_length1; - gint _albums_size_; - gchar* username; - GtkBuilder* builder; - GtkBox* pane_widget; - GtkLabel* login_identity_label; - GtkLabel* publish_to_label; - GtkRadioButton* use_existing_radio; - GtkComboBoxText* existing_albums_combo; - GtkRadioButton* create_new_radio; - GtkEntry* new_album_entry; - GtkCheckButton* hide_check; - GtkCheckButton* show_check; - GtkButton* publish_button; - GtkButton* logout_button; -}; - -struct _PublishingRajceParamSpecPublishingParameters { - GParamSpec parent_instance; -}; - -struct _PublishingRajceSession { - PublishingRESTSupportSession parent_instance; - PublishingRajceSessionPrivate * priv; -}; - -struct _PublishingRajceSessionClass { - PublishingRESTSupportSessionClass parent_class; -}; - -struct _PublishingRajceSessionPrivate { - gchar* usertoken; - gchar* albumtoken; - gchar* albumticket; - gchar* username; - gint* userid; - gint* maxsize; - gint* quality; -}; - -struct _PublishingRajceArgItem { - GTypeInstance parent_instance; - volatile int ref_count; - PublishingRajceArgItemPrivate * priv; - gchar* key; - gchar* val; - PublishingRajceArgItem** children; - gint children_length1; - gint _children_size_; -}; - -struct _PublishingRajceArgItemClass { - GTypeClass parent_class; - void (*finalize) (PublishingRajceArgItem *self); -}; - -struct _PublishingRajceParamSpecArgItem { - GParamSpec parent_instance; -}; - -struct _PublishingRajceLiveApiRequest { - GTypeInstance parent_instance; - volatile int ref_count; - PublishingRajceLiveApiRequestPrivate * priv; -}; - -struct _PublishingRajceLiveApiRequestClass { - GTypeClass parent_class; - void (*finalize) (PublishingRajceLiveApiRequest *self); -}; - -struct _PublishingRajceLiveApiRequestPrivate { - PublishingRajceArgItem** _params; - gint _params_length1; - gint __params_size_; - gchar* _cmd; -}; - -struct _PublishingRajceParamSpecLiveApiRequest { - GParamSpec parent_instance; -}; - -struct _PublishingRajceTransaction { - PublishingRESTSupportTransaction parent_instance; - PublishingRajceTransactionPrivate * priv; -}; - -struct _PublishingRajceTransactionClass { - PublishingRESTSupportTransactionClass parent_class; -}; - -struct _PublishingRajceSessionLoginTransaction { - PublishingRajceTransaction parent_instance; - PublishingRajceSessionLoginTransactionPrivate * priv; -}; - -struct _PublishingRajceSessionLoginTransactionClass { - PublishingRajceTransactionClass parent_class; -}; - -struct _PublishingRajceGetAlbumsTransaction { - PublishingRajceTransaction parent_instance; - PublishingRajceGetAlbumsTransactionPrivate * priv; -}; - -struct _PublishingRajceGetAlbumsTransactionClass { - PublishingRajceTransactionClass parent_class; -}; - -struct _PublishingRajceCreateAlbumTransaction { - PublishingRajceTransaction parent_instance; - PublishingRajceCreateAlbumTransactionPrivate * priv; -}; - -struct _PublishingRajceCreateAlbumTransactionClass { - PublishingRajceTransactionClass parent_class; -}; - -struct _PublishingRajceOpenAlbumTransaction { - PublishingRajceTransaction parent_instance; - PublishingRajceOpenAlbumTransactionPrivate * priv; -}; - -struct _PublishingRajceOpenAlbumTransactionClass { - PublishingRajceTransactionClass parent_class; -}; - -struct _PublishingRajceGetAlbumUrlTransaction { - PublishingRajceTransaction parent_instance; - PublishingRajceGetAlbumUrlTransactionPrivate * priv; -}; - -struct _PublishingRajceGetAlbumUrlTransactionClass { - PublishingRajceTransactionClass parent_class; -}; - -struct _PublishingRajceCloseAlbumTransaction { - PublishingRajceTransaction parent_instance; - PublishingRajceCloseAlbumTransactionPrivate * priv; -}; - -struct _PublishingRajceCloseAlbumTransactionClass { - PublishingRajceTransactionClass parent_class; -}; - -struct _PublishingRajceGetCategoriesTransaction { - PublishingRajceTransaction parent_instance; - PublishingRajceGetCategoriesTransactionPrivate * priv; -}; - -struct _PublishingRajceGetCategoriesTransactionClass { - PublishingRajceTransactionClass parent_class; -}; - -struct _PublishingRajceAddPhotoTransaction { - PublishingRESTSupportUploadTransaction parent_instance; - PublishingRajceAddPhotoTransactionPrivate * priv; -}; - -struct _PublishingRajceAddPhotoTransactionClass { - PublishingRESTSupportUploadTransactionClass parent_class; -}; - -struct _PublishingRajceAddPhotoTransactionPrivate { - PublishingRajcePublishingParameters* parameters; -}; - - -static gpointer rajce_service_parent_class = NULL; -static GdkPixbuf** rajce_service_icon_pixbuf_set; -static gint rajce_service_icon_pixbuf_set_length1; -static GdkPixbuf** rajce_service_icon_pixbuf_set = NULL; -static gint rajce_service_icon_pixbuf_set_length1 = 0; -static gint _rajce_service_icon_pixbuf_set_size_ = 0; -static SpitPluggableIface * rajce_service_spit_pluggable_parent_iface = NULL; -static SpitPublishingServiceIface * rajce_service_spit_publishing_service_parent_iface = NULL; -static gpointer publishing_rajce_rajce_publisher_parent_class = NULL; -static SpitPublishingPublisherIface * publishing_rajce_rajce_publisher_spit_publishing_publisher_parent_iface = NULL; -static gpointer publishing_rajce_album_parent_class = NULL; -static gpointer publishing_rajce_uploader_parent_class = NULL; -static gpointer publishing_rajce_authentication_pane_parent_class = NULL; -static gchar* publishing_rajce_authentication_pane_INTRO_MESSAGE; -static gchar* publishing_rajce_authentication_pane_INTRO_MESSAGE = NULL; -static gchar* publishing_rajce_authentication_pane_FAILED_RETRY_USER_MESSAGE; -static gchar* publishing_rajce_authentication_pane_FAILED_RETRY_USER_MESSAGE = NULL; -static SpitPublishingDialogPaneIface * publishing_rajce_authentication_pane_spit_publishing_dialog_pane_parent_iface = NULL; -static gpointer publishing_rajce_publishing_options_pane_parent_class = NULL; -static SpitPublishingDialogPaneIface * publishing_rajce_publishing_options_pane_spit_publishing_dialog_pane_parent_iface = NULL; -static gpointer publishing_rajce_publishing_parameters_parent_class = NULL; -static gpointer publishing_rajce_session_parent_class = NULL; -static gpointer publishing_rajce_arg_item_parent_class = NULL; -static gpointer publishing_rajce_live_api_request_parent_class = NULL; -static gpointer publishing_rajce_transaction_parent_class = NULL; -static gpointer publishing_rajce_session_login_transaction_parent_class = NULL; -static gpointer publishing_rajce_get_albums_transaction_parent_class = NULL; -static gpointer publishing_rajce_create_album_transaction_parent_class = NULL; -static gpointer publishing_rajce_open_album_transaction_parent_class = NULL; -static gpointer publishing_rajce_get_album_url_transaction_parent_class = NULL; -static gpointer publishing_rajce_close_album_transaction_parent_class = NULL; -static gpointer publishing_rajce_get_categories_transaction_parent_class = NULL; -static gpointer publishing_rajce_add_photo_transaction_parent_class = NULL; - -GType rajce_service_get_type (void) G_GNUC_CONST; -#define RAJCE_SERVICE_ICON_FILENAME "rajce.png" -RajceService* rajce_service_new (GFile* resource_directory); -RajceService* rajce_service_construct (GType object_type, - GFile* resource_directory); -static gint rajce_service_real_get_pluggable_interface (SpitPluggable* base, - gint min_host_interface, - gint max_host_interface); -static const gchar* rajce_service_real_get_id (SpitPluggable* base); -static const gchar* rajce_service_real_get_pluggable_name (SpitPluggable* base); -static void rajce_service_real_get_info (SpitPluggable* base, - SpitPluggableInfo* info); -static GdkPixbuf** _vala_array_dup4 (GdkPixbuf** self, - int length); -static SpitPublishingPublisher* rajce_service_real_create_publisher (SpitPublishingService* base, - SpitPublishingPluginHost* host); -PublishingRajceRajcePublisher* publishing_rajce_rajce_publisher_new (SpitPublishingService* service, - SpitPublishingPluginHost* host); -PublishingRajceRajcePublisher* publishing_rajce_rajce_publisher_construct (GType object_type, - SpitPublishingService* service, - SpitPublishingPluginHost* host); -GType publishing_rajce_rajce_publisher_get_type (void) G_GNUC_CONST; -static SpitPublishingPublisherMediaType rajce_service_real_get_supported_media (SpitPublishingService* base); -static void rajce_service_real_activation (SpitPluggable* base, - gboolean enabled); -static void rajce_service_finalize (GObject * obj); -GType publishing_rajce_session_get_type (void) G_GNUC_CONST; -gpointer publishing_rajce_album_ref (gpointer instance); -void publishing_rajce_album_unref (gpointer instance); -GParamSpec* publishing_rajce_param_spec_album (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void publishing_rajce_value_set_album (GValue* value, - gpointer v_object); -void publishing_rajce_value_take_album (GValue* value, - gpointer v_object); -gpointer publishing_rajce_value_get_album (const GValue* value); -GType publishing_rajce_album_get_type (void) G_GNUC_CONST; -gpointer publishing_rajce_publishing_parameters_ref (gpointer instance); -void publishing_rajce_publishing_parameters_unref (gpointer instance); -GParamSpec* publishing_rajce_param_spec_publishing_parameters (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void publishing_rajce_value_set_publishing_parameters (GValue* value, - gpointer v_object); -void publishing_rajce_value_take_publishing_parameters (GValue* value, - gpointer v_object); -gpointer publishing_rajce_value_get_publishing_parameters (const GValue* value); -GType publishing_rajce_publishing_parameters_get_type (void) G_GNUC_CONST; -#define PUBLISHING_RAJCE_RAJCE_PUBLISHER_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), PUBLISHING_RAJCE_TYPE_RAJCE_PUBLISHER, PublishingRajceRajcePublisherPrivate)) -PublishingRajceSession* publishing_rajce_session_new (void); -PublishingRajceSession* publishing_rajce_session_construct (GType object_type); -static gchar* publishing_rajce_rajce_publisher_get_rajce_url (PublishingRajceRajcePublisher* self); -static SpitPublishingService* publishing_rajce_rajce_publisher_real_get_service (SpitPublishingPublisher* base); -SpitPublishingPluginHost* publishing_rajce_rajce_publisher_get_host (PublishingRajceRajcePublisher* self); -static gboolean publishing_rajce_rajce_publisher_real_is_running (SpitPublishingPublisher* base); -static void publishing_rajce_rajce_publisher_real_start (SpitPublishingPublisher* base); -static void publishing_rajce_rajce_publisher_do_fetch_albums (PublishingRajceRajcePublisher* self); -gchar* publishing_rajce_rajce_publisher_get_username (PublishingRajceRajcePublisher* self); -gchar* publishing_rajce_rajce_publisher_get_token (PublishingRajceRajcePublisher* self); -gboolean publishing_rajce_rajce_publisher_get_remember (PublishingRajceRajcePublisher* self); -static gboolean* _bool_dup (gboolean* self); -static void publishing_rajce_rajce_publisher_do_network_login (PublishingRajceRajcePublisher* self, - const gchar* username, - const gchar* token, - gboolean remember); -GType publishing_rajce_authentication_pane_mode_get_type (void) G_GNUC_CONST; -static void publishing_rajce_rajce_publisher_do_show_authentication_pane (PublishingRajceRajcePublisher* self, - PublishingRajceAuthenticationPaneMode mode); -static void publishing_rajce_rajce_publisher_real_stop (SpitPublishingPublisher* base); -gchar* publishing_rajce_rajce_publisher_get_url (PublishingRajceRajcePublisher* self); -static void publishing_rajce_rajce_publisher_set_username (PublishingRajceRajcePublisher* self, - const gchar* username); -static void publishing_rajce_rajce_publisher_set_token (PublishingRajceRajcePublisher* self, - const gchar* token); -static void publishing_rajce_rajce_publisher_set_remember (PublishingRajceRajcePublisher* self, - gboolean remember); -gboolean publishing_rajce_rajce_publisher_get_hide_album (PublishingRajceRajcePublisher* self); -void publishing_rajce_rajce_publisher_set_hide_album (PublishingRajceRajcePublisher* self, - gboolean hide_album); -gboolean publishing_rajce_rajce_publisher_get_show_album (PublishingRajceRajcePublisher* self); -void publishing_rajce_rajce_publisher_set_show_album (PublishingRajceRajcePublisher* self, - gboolean show_album); -GType publishing_rajce_authentication_pane_get_type (void) G_GNUC_CONST; -PublishingRajceAuthenticationPane* publishing_rajce_authentication_pane_new (PublishingRajceRajcePublisher* publisher, - PublishingRajceAuthenticationPaneMode mode); -PublishingRajceAuthenticationPane* publishing_rajce_authentication_pane_construct (GType object_type, - PublishingRajceRajcePublisher* publisher, - PublishingRajceAuthenticationPaneMode mode); -static void publishing_rajce_rajce_publisher_on_authentication_pane_login_clicked (PublishingRajceRajcePublisher* self, - const gchar* username, - const gchar* token, - gboolean remember); -static void _publishing_rajce_rajce_publisher_on_authentication_pane_login_clicked_publishing_rajce_authentication_pane_login (PublishingRajceAuthenticationPane* _sender, - const gchar* user, - const gchar* token, - gboolean remember, - gpointer self); -GtkWidget* publishing_rajce_authentication_pane_get_default_widget (PublishingRajceAuthenticationPane* self); -GType publishing_rajce_transaction_get_type (void) G_GNUC_CONST; -GType publishing_rajce_session_login_transaction_get_type (void) G_GNUC_CONST; -PublishingRajceSessionLoginTransaction* publishing_rajce_session_login_transaction_new (PublishingRajceSession* session, - const gchar* url, - const gchar* username, - const gchar* token); -PublishingRajceSessionLoginTransaction* publishing_rajce_session_login_transaction_construct (GType object_type, - PublishingRajceSession* session, - const gchar* url, - const gchar* username, - const gchar* token); -static void publishing_rajce_rajce_publisher_on_login_network_error (PublishingRajceRajcePublisher* self, - PublishingRESTSupportTransaction* bad_txn, - GError* err); -static void _publishing_rajce_rajce_publisher_on_login_network_error_publishing_rest_support_transaction_network_error (PublishingRESTSupportTransaction* _sender, - GError* err, - gpointer self); -static void publishing_rajce_rajce_publisher_on_login_network_complete (PublishingRajceRajcePublisher* self, - PublishingRESTSupportTransaction* txn); -static void _publishing_rajce_rajce_publisher_on_login_network_complete_publishing_rest_support_transaction_completed (PublishingRESTSupportTransaction* _sender, - gpointer self); -static void publishing_rajce_rajce_publisher_do_show_error (PublishingRajceRajcePublisher* self, - GError* e); -gchar* publishing_rajce_transaction_validate_xml (PublishingRESTSupportXmlDocument* doc); -static gchar* _publishing_rajce_transaction_validate_xml_publishing_rest_support_xml_document_check_for_error_response (PublishingRESTSupportXmlDocument* doc, - gpointer self); -void publishing_rajce_session_authenticate (PublishingRajceSession* self, - const gchar* token, - const gchar* name, - gint id, - gint maxsize, - gint quality); -GType publishing_rajce_get_albums_transaction_get_type (void) G_GNUC_CONST; -PublishingRajceGetAlbumsTransaction* publishing_rajce_get_albums_transaction_new (PublishingRajceSession* session, - const gchar* url); -PublishingRajceGetAlbumsTransaction* publishing_rajce_get_albums_transaction_construct (GType object_type, - PublishingRajceSession* session, - const gchar* url); -static void publishing_rajce_rajce_publisher_on_albums_fetch_error (PublishingRajceRajcePublisher* self, - PublishingRESTSupportTransaction* bad_txn, - GError* err); -static void _publishing_rajce_rajce_publisher_on_albums_fetch_error_publishing_rest_support_transaction_network_error (PublishingRESTSupportTransaction* _sender, - GError* err, - gpointer self); -static void publishing_rajce_rajce_publisher_on_albums_fetch_complete (PublishingRajceRajcePublisher* self, - PublishingRESTSupportTransaction* txn); -static void _publishing_rajce_rajce_publisher_on_albums_fetch_complete_publishing_rest_support_transaction_completed (PublishingRESTSupportTransaction* _sender, - gpointer self); -PublishingRajceAlbum* publishing_rajce_album_new (gint id, - const gchar* albumName, - const gchar* url, - const gchar* thumbUrl, - const gchar* createDate, - const gchar* updateDate, - gboolean hidden, - gboolean secure, - gint photoCount); -PublishingRajceAlbum* publishing_rajce_album_construct (GType object_type, - gint id, - const gchar* albumName, - const gchar* url, - const gchar* thumbUrl, - const gchar* createDate, - const gchar* updateDate, - gboolean hidden, - gboolean secure, - gint photoCount); -gint publishing_rajce_album_compare_albums (PublishingRajceAlbum* a, - PublishingRajceAlbum* b); -static gint _publishing_rajce_album_compare_albums_gcompare_data_func (gconstpointer a, - gconstpointer b, - gpointer self); -void publishing_rajce_session_set_usertoken (PublishingRajceSession* self, - const gchar* usertoken); -static void publishing_rajce_rajce_publisher_do_show_publishing_options_pane (PublishingRajceRajcePublisher* self); -static void publishing_rajce_rajce_publisher_on_network_error (PublishingRajceRajcePublisher* self, - PublishingRESTSupportTransaction* bad_txn, - GError* err); -GType publishing_rajce_publishing_options_pane_get_type (void) G_GNUC_CONST; -gchar* publishing_rajce_session_get_username (PublishingRajceSession* self); -PublishingRajcePublishingOptionsPane* publishing_rajce_publishing_options_pane_new (PublishingRajceRajcePublisher* publisher, - const gchar* username, - PublishingRajceAlbum** albums, - int albums_length1); -PublishingRajcePublishingOptionsPane* publishing_rajce_publishing_options_pane_construct (GType object_type, - PublishingRajceRajcePublisher* publisher, - const gchar* username, - PublishingRajceAlbum** albums, - int albums_length1); -static void publishing_rajce_rajce_publisher_on_publishing_options_pane_logout_clicked (PublishingRajceRajcePublisher* self); -static void _publishing_rajce_rajce_publisher_on_publishing_options_pane_logout_clicked_publishing_rajce_publishing_options_pane_logout (PublishingRajcePublishingOptionsPane* _sender, - gpointer self); -static void publishing_rajce_rajce_publisher_on_publishing_options_pane_publish_clicked (PublishingRajceRajcePublisher* self, - PublishingRajcePublishingParameters* parameters); -static void _publishing_rajce_rajce_publisher_on_publishing_options_pane_publish_clicked_publishing_rajce_publishing_options_pane_publish (PublishingRajcePublishingOptionsPane* _sender, - PublishingRajcePublishingParameters* parameters, - gpointer self); -GtkWidget* publishing_rajce_publishing_options_pane_get_default_widget (PublishingRajcePublishingOptionsPane* self); -void publishing_rajce_session_deauthenticate (PublishingRajceSession* self); -static void publishing_rajce_rajce_publisher_do_begin_upload (PublishingRajceRajcePublisher* self); -static gboolean _int_equal (const gint * s1, - const gint * s2); -GType publishing_rajce_create_album_transaction_get_type (void) G_GNUC_CONST; -PublishingRajceCreateAlbumTransaction* publishing_rajce_create_album_transaction_new (PublishingRajceSession* session, - const gchar* url, - const gchar* albumName, - gboolean hidden); -PublishingRajceCreateAlbumTransaction* publishing_rajce_create_album_transaction_construct (GType object_type, - PublishingRajceSession* session, - const gchar* url, - const gchar* albumName, - gboolean hidden); -static void publishing_rajce_rajce_publisher_on_create_album_error (PublishingRajceRajcePublisher* self, - PublishingRESTSupportTransaction* bad_txn, - GError* err); -static void _publishing_rajce_rajce_publisher_on_create_album_error_publishing_rest_support_transaction_network_error (PublishingRESTSupportTransaction* _sender, - GError* err, - gpointer self); -static void publishing_rajce_rajce_publisher_on_create_album_complete (PublishingRajceRajcePublisher* self, - PublishingRESTSupportTransaction* txn); -static void _publishing_rajce_rajce_publisher_on_create_album_complete_publishing_rest_support_transaction_completed (PublishingRESTSupportTransaction* _sender, - gpointer self); -GType publishing_rajce_open_album_transaction_get_type (void) G_GNUC_CONST; -PublishingRajceOpenAlbumTransaction* publishing_rajce_open_album_transaction_new (PublishingRajceSession* session, - const gchar* url, - gint albumID); -PublishingRajceOpenAlbumTransaction* publishing_rajce_open_album_transaction_construct (GType object_type, - PublishingRajceSession* session, - const gchar* url, - gint albumID); -static void publishing_rajce_rajce_publisher_on_open_album_error (PublishingRajceRajcePublisher* self, - PublishingRESTSupportTransaction* bad_txn, - GError* err); -static void _publishing_rajce_rajce_publisher_on_open_album_error_publishing_rest_support_transaction_network_error (PublishingRESTSupportTransaction* _sender, - GError* err, - gpointer self); -static void publishing_rajce_rajce_publisher_on_open_album_complete (PublishingRajceRajcePublisher* self, - PublishingRESTSupportTransaction* txn); -static void _publishing_rajce_rajce_publisher_on_open_album_complete_publishing_rest_support_transaction_completed (PublishingRESTSupportTransaction* _sender, - gpointer self); -static gint* _int_dup (gint* self); -void publishing_rajce_session_set_albumtoken (PublishingRajceSession* self, - const gchar* albumtoken); -static void publishing_rajce_rajce_publisher_do_upload_photos (PublishingRajceRajcePublisher* self); -gint publishing_rajce_session_get_maxsize (PublishingRajceSession* self); -GType publishing_rajce_uploader_get_type (void) G_GNUC_CONST; -PublishingRajceUploader* publishing_rajce_uploader_new (PublishingRajceSession* session, - const gchar* url, - SpitPublishingPublishable** publishables, - int publishables_length1, - PublishingRajcePublishingParameters* parameters); -PublishingRajceUploader* publishing_rajce_uploader_construct (GType object_type, - PublishingRajceSession* session, - const gchar* url, - SpitPublishingPublishable** publishables, - int publishables_length1, - PublishingRajcePublishingParameters* parameters); -static void publishing_rajce_rajce_publisher_on_upload_photos_complete (PublishingRajceRajcePublisher* self, - PublishingRESTSupportBatchUploader* uploader, - gint num_published); -static void _publishing_rajce_rajce_publisher_on_upload_photos_complete_publishing_rest_support_batch_uploader_upload_complete (PublishingRESTSupportBatchUploader* _sender, - gint num_photos_published, - gpointer self); -static void publishing_rajce_rajce_publisher_on_upload_photos_error (PublishingRajceRajcePublisher* self, - PublishingRESTSupportBatchUploader* uploader, - GError* err); -static void _publishing_rajce_rajce_publisher_on_upload_photos_error_publishing_rest_support_batch_uploader_upload_error (PublishingRESTSupportBatchUploader* _sender, - GError* err, - gpointer self); -static void publishing_rajce_rajce_publisher_on_upload_photos_status_updated (PublishingRajceRajcePublisher* self, - gint file_number, - gdouble completed_fraction); -static void _publishing_rajce_rajce_publisher_on_upload_photos_status_updated_spit_publishing_progress_callback (gint file_number, - gdouble fraction_complete, - gpointer self); -static void publishing_rajce_rajce_publisher_do_end_upload (PublishingRajceRajcePublisher* self); -static void publishing_rajce_rajce_publisher_do_get_album_url (PublishingRajceRajcePublisher* self); -static void publishing_rajce_rajce_publisher_do_close_album (PublishingRajceRajcePublisher* self); -GType publishing_rajce_get_album_url_transaction_get_type (void) G_GNUC_CONST; -PublishingRajceGetAlbumUrlTransaction* publishing_rajce_get_album_url_transaction_new (PublishingRajceSession* session, - const gchar* url); -PublishingRajceGetAlbumUrlTransaction* publishing_rajce_get_album_url_transaction_construct (GType object_type, - PublishingRajceSession* session, - const gchar* url); -static void publishing_rajce_rajce_publisher_on_get_album_url_error (PublishingRajceRajcePublisher* self, - PublishingRESTSupportTransaction* bad_txn, - GError* err); -static void _publishing_rajce_rajce_publisher_on_get_album_url_error_publishing_rest_support_transaction_network_error (PublishingRESTSupportTransaction* _sender, - GError* err, - gpointer self); -static void publishing_rajce_rajce_publisher_on_get_album_url_complete (PublishingRajceRajcePublisher* self, - PublishingRESTSupportTransaction* txn); -static void _publishing_rajce_rajce_publisher_on_get_album_url_complete_publishing_rest_support_transaction_completed (PublishingRESTSupportTransaction* _sender, - gpointer self); -void publishing_rajce_session_set_albumticket (PublishingRajceSession* self, - const gchar* albumticket); -GType publishing_rajce_close_album_transaction_get_type (void) G_GNUC_CONST; -PublishingRajceCloseAlbumTransaction* publishing_rajce_close_album_transaction_new (PublishingRajceSession* session, - const gchar* url); -PublishingRajceCloseAlbumTransaction* publishing_rajce_close_album_transaction_construct (GType object_type, - PublishingRajceSession* session, - const gchar* url); -static void publishing_rajce_rajce_publisher_on_close_album_error (PublishingRajceRajcePublisher* self, - PublishingRESTSupportTransaction* bad_txn, - GError* err); -static void _publishing_rajce_rajce_publisher_on_close_album_error_publishing_rest_support_transaction_network_error (PublishingRESTSupportTransaction* _sender, - GError* err, - gpointer self); -static void publishing_rajce_rajce_publisher_on_close_album_complete (PublishingRajceRajcePublisher* self, - PublishingRESTSupportTransaction* txn); -static void _publishing_rajce_rajce_publisher_on_close_album_complete_publishing_rest_support_transaction_completed (PublishingRESTSupportTransaction* _sender, - gpointer self); -static void publishing_rajce_rajce_publisher_do_show_success_pane (PublishingRajceRajcePublisher* self); -gchar* publishing_rajce_session_get_albumticket (PublishingRajceSession* self); -static void publishing_rajce_rajce_publisher_do_show_error_message (PublishingRajceRajcePublisher* self, - const gchar* message); -static void publishing_rajce_rajce_publisher_finalize (GObject * obj); -static void publishing_rajce_album_finalize (PublishingRajceAlbum * obj); -#define PUBLISHING_RAJCE_UPLOADER_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), PUBLISHING_RAJCE_TYPE_UPLOADER, PublishingRajceUploaderPrivate)) -static PublishingRESTSupportTransaction* publishing_rajce_uploader_real_create_transaction (PublishingRESTSupportBatchUploader* base, - SpitPublishingPublishable* publishable); -PublishingRajceAddPhotoTransaction* publishing_rajce_add_photo_transaction_new (PublishingRajceSession* session, - const gchar* url, - PublishingRajcePublishingParameters* parameters, - SpitPublishingPublishable* publishable); -PublishingRajceAddPhotoTransaction* publishing_rajce_add_photo_transaction_construct (GType object_type, - PublishingRajceSession* session, - const gchar* url, - PublishingRajcePublishingParameters* parameters, - SpitPublishingPublishable* publishable); -GType publishing_rajce_add_photo_transaction_get_type (void) G_GNUC_CONST; -static void publishing_rajce_uploader_finalize (PublishingRESTSupportBatchUploader * obj); -#define PUBLISHING_RAJCE_AUTHENTICATION_PANE_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), PUBLISHING_RAJCE_TYPE_AUTHENTICATION_PANE, PublishingRajceAuthenticationPanePrivate)) -static void publishing_rajce_authentication_pane_on_user_changed (PublishingRajceAuthenticationPane* self); -static void _publishing_rajce_authentication_pane_on_user_changed_gtk_editable_changed (GtkEditable* _sender, - gpointer self); -static void publishing_rajce_authentication_pane_on_password_changed (PublishingRajceAuthenticationPane* self); -static void _publishing_rajce_authentication_pane_on_password_changed_gtk_editable_changed (GtkEditable* _sender, - gpointer self); -static void publishing_rajce_authentication_pane_on_login_button_clicked (PublishingRajceAuthenticationPane* self); -static void _publishing_rajce_authentication_pane_on_login_button_clicked_gtk_button_clicked (GtkButton* _sender, - gpointer self); -static void publishing_rajce_authentication_pane_update_login_button_sensitivity (PublishingRajceAuthenticationPane* self); -static GtkWidget* publishing_rajce_authentication_pane_real_get_widget (SpitPublishingDialogPane* base); -static SpitPublishingDialogPaneGeometryOptions publishing_rajce_authentication_pane_real_get_preferred_geometry (SpitPublishingDialogPane* base); -static void publishing_rajce_authentication_pane_real_on_pane_installed (SpitPublishingDialogPane* base); -static void publishing_rajce_authentication_pane_real_on_pane_uninstalled (SpitPublishingDialogPane* base); -static void g_cclosure_user_marshal_VOID__STRING_STRING_BOOLEAN (GClosure * closure, - GValue * return_value, - guint n_param_values, - const GValue * param_values, - gpointer invocation_hint, - gpointer marshal_data); -static void publishing_rajce_authentication_pane_finalize (GObject * obj); -#define PUBLISHING_RAJCE_PUBLISHING_OPTIONS_PANE_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), PUBLISHING_RAJCE_TYPE_PUBLISHING_OPTIONS_PANE, PublishingRajcePublishingOptionsPanePrivate)) -static PublishingRajceAlbum** _vala_array_dup5 (PublishingRajceAlbum** self, - int length); -static void publishing_rajce_publishing_options_pane_on_use_existing_radio_clicked (PublishingRajcePublishingOptionsPane* self); -static void _publishing_rajce_publishing_options_pane_on_use_existing_radio_clicked_gtk_button_clicked (GtkButton* _sender, - gpointer self); -static void publishing_rajce_publishing_options_pane_on_create_new_radio_clicked (PublishingRajcePublishingOptionsPane* self); -static void _publishing_rajce_publishing_options_pane_on_create_new_radio_clicked_gtk_button_clicked (GtkButton* _sender, - gpointer self); -static void publishing_rajce_publishing_options_pane_on_new_album_entry_changed (PublishingRajcePublishingOptionsPane* self); -static void _publishing_rajce_publishing_options_pane_on_new_album_entry_changed_gtk_editable_changed (GtkEditable* _sender, - gpointer self); -static void publishing_rajce_publishing_options_pane_on_logout_clicked (PublishingRajcePublishingOptionsPane* self); -static void _publishing_rajce_publishing_options_pane_on_logout_clicked_gtk_button_clicked (GtkButton* _sender, - gpointer self); -static void publishing_rajce_publishing_options_pane_on_publish_clicked (PublishingRajcePublishingOptionsPane* self); -static void _publishing_rajce_publishing_options_pane_on_publish_clicked_gtk_button_clicked (GtkButton* _sender, - gpointer self); -PublishingRajcePublishingParameters* publishing_rajce_publishing_parameters_new_to_new_album (const gchar* album_name, - gboolean album_hidden); -PublishingRajcePublishingParameters* publishing_rajce_publishing_parameters_construct_to_new_album (GType object_type, - const gchar* album_name, - gboolean album_hidden); -PublishingRajcePublishingParameters* publishing_rajce_publishing_parameters_new_to_existing_album (const gchar* album_name, - gint album_id); -PublishingRajcePublishingParameters* publishing_rajce_publishing_parameters_construct_to_existing_album (GType object_type, - const gchar* album_name, - gint album_id); -static void publishing_rajce_publishing_options_pane_update_publish_button_sensitivity (PublishingRajcePublishingOptionsPane* self); -void publishing_rajce_publishing_options_pane_installed (PublishingRajcePublishingOptionsPane* self); -void publishing_rajce_publishing_options_pane_notify_publish (PublishingRajcePublishingOptionsPane* self, - PublishingRajcePublishingParameters* parameters); -void publishing_rajce_publishing_options_pane_notify_logout (PublishingRajcePublishingOptionsPane* self); -static GtkWidget* publishing_rajce_publishing_options_pane_real_get_widget (SpitPublishingDialogPane* base); -static SpitPublishingDialogPaneGeometryOptions publishing_rajce_publishing_options_pane_real_get_preferred_geometry (SpitPublishingDialogPane* base); -static void publishing_rajce_publishing_options_pane_real_on_pane_installed (SpitPublishingDialogPane* base); -static void _publishing_rajce_publishing_options_pane_notify_publish_publishing_rajce_publishing_options_pane_publish (PublishingRajcePublishingOptionsPane* _sender, - PublishingRajcePublishingParameters* parameters, - gpointer self); -static void _publishing_rajce_publishing_options_pane_notify_logout_publishing_rajce_publishing_options_pane_logout (PublishingRajcePublishingOptionsPane* _sender, - gpointer self); -static void publishing_rajce_publishing_options_pane_real_on_pane_uninstalled (SpitPublishingDialogPane* base); -static void g_cclosure_user_marshal_VOID__PUBLISHING_RAJCE_PUBLISHING_PARAMETERS (GClosure * closure, - GValue * return_value, - guint n_param_values, - const GValue * param_values, - gpointer invocation_hint, - gpointer marshal_data); -static void publishing_rajce_publishing_options_pane_finalize (GObject * obj); -static PublishingRajcePublishingParameters* publishing_rajce_publishing_parameters_new (void); -static PublishingRajcePublishingParameters* publishing_rajce_publishing_parameters_construct (GType object_type); -static void publishing_rajce_publishing_parameters_finalize (PublishingRajcePublishingParameters * obj); -#define PUBLISHING_RAJCE_SESSION_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), PUBLISHING_RAJCE_TYPE_SESSION, PublishingRajceSessionPrivate)) -static gboolean publishing_rajce_session_real_is_authenticated (PublishingRESTSupportSession* base); -gchar* publishing_rajce_session_get_usertoken (PublishingRajceSession* self); -gchar* publishing_rajce_session_get_albumtoken (PublishingRajceSession* self); -static void publishing_rajce_session_finalize (PublishingRESTSupportSession * obj); -gpointer publishing_rajce_arg_item_ref (gpointer instance); -void publishing_rajce_arg_item_unref (gpointer instance); -GParamSpec* publishing_rajce_param_spec_arg_item (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void publishing_rajce_value_set_arg_item (GValue* value, - gpointer v_object); -void publishing_rajce_value_take_arg_item (GValue* value, - gpointer v_object); -gpointer publishing_rajce_value_get_arg_item (const GValue* value); -GType publishing_rajce_arg_item_get_type (void) G_GNUC_CONST; -PublishingRajceArgItem* publishing_rajce_arg_item_new (const gchar* k, - const gchar* v); -PublishingRajceArgItem* publishing_rajce_arg_item_construct (GType object_type, - const gchar* k, - const gchar* v); -void publishing_rajce_arg_item_AddChild (PublishingRajceArgItem* self, - PublishingRajceArgItem* child); -static void _vala_array_add6 (PublishingRajceArgItem** * array, - int* length, - int* size, - PublishingRajceArgItem* value); -void publishing_rajce_arg_item_AddChildren (PublishingRajceArgItem* self, - PublishingRajceArgItem** newchildren, - int newchildren_length1); -static void publishing_rajce_arg_item_finalize (PublishingRajceArgItem * obj); -gpointer publishing_rajce_live_api_request_ref (gpointer instance); -void publishing_rajce_live_api_request_unref (gpointer instance); -GParamSpec* publishing_rajce_param_spec_live_api_request (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void publishing_rajce_value_set_live_api_request (GValue* value, - gpointer v_object); -void publishing_rajce_value_take_live_api_request (GValue* value, - gpointer v_object); -gpointer publishing_rajce_value_get_live_api_request (const GValue* value); -GType publishing_rajce_live_api_request_get_type (void) G_GNUC_CONST; -#define PUBLISHING_RAJCE_LIVE_API_REQUEST_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), PUBLISHING_RAJCE_TYPE_LIVE_API_REQUEST, PublishingRajceLiveApiRequestPrivate)) -PublishingRajceLiveApiRequest* publishing_rajce_live_api_request_new (const gchar* cmd); -PublishingRajceLiveApiRequest* publishing_rajce_live_api_request_construct (GType object_type, - const gchar* cmd); -void publishing_rajce_live_api_request_AddParam (PublishingRajceLiveApiRequest* self, - const gchar* name, - const gchar* val); -static void _vala_array_add7 (PublishingRajceArgItem** * array, - int* length, - int* size, - PublishingRajceArgItem* value); -void publishing_rajce_live_api_request_AddParamBool (PublishingRajceLiveApiRequest* self, - const gchar* name, - gboolean val); -void publishing_rajce_live_api_request_AddParamInt (PublishingRajceLiveApiRequest* self, - const gchar* name, - gint val); -void publishing_rajce_live_api_request_AddParamNode (PublishingRajceLiveApiRequest* self, - const gchar* name, - PublishingRajceArgItem** val, - int val_length1); -static void _vala_array_add8 (PublishingRajceArgItem** * array, - int* length, - int* size, - PublishingRajceArgItem* value); -gchar* publishing_rajce_live_api_request_Params2XmlString (PublishingRajceLiveApiRequest* self, - gboolean urlencode); -static void publishing_rajce_live_api_request_WriteParam (xmlNode* node, - PublishingRajceArgItem* arg); -static void publishing_rajce_live_api_request_finalize (PublishingRajceLiveApiRequest * obj); -PublishingRajceTransaction* publishing_rajce_transaction_new (PublishingRajceSession* session); -PublishingRajceTransaction* publishing_rajce_transaction_construct (GType object_type, - PublishingRajceSession* session); -static void _vala_array_add9 (PublishingRajceArgItem** * array, - int* length, - int* size, - PublishingRajceArgItem* value); -static void _vala_array_add10 (PublishingRajceArgItem** * array, - int* length, - int* size, - PublishingRajceArgItem* value); -static void _vala_array_add11 (PublishingRajceArgItem** * array, - int* length, - int* size, - PublishingRajceArgItem* value); -static void _vala_array_add12 (PublishingRajceArgItem** * array, - int* length, - int* size, - PublishingRajceArgItem* value); -static void _vala_array_add13 (PublishingRajceArgItem** * array, - int* length, - int* size, - PublishingRajceArgItem* value); -GType publishing_rajce_get_categories_transaction_get_type (void) G_GNUC_CONST; -PublishingRajceGetCategoriesTransaction* publishing_rajce_get_categories_transaction_new (PublishingRajceSession* session, - const gchar* url); -PublishingRajceGetCategoriesTransaction* publishing_rajce_get_categories_transaction_construct (GType object_type, - PublishingRajceSession* session, - const gchar* url); -#define PUBLISHING_RAJCE_ADD_PHOTO_TRANSACTION_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), PUBLISHING_RAJCE_TYPE_ADD_PHOTO_TRANSACTION, PublishingRajceAddPhotoTransactionPrivate)) -static void _g_free0_ (gpointer var); -static void publishing_rajce_add_photo_transaction_finalize (PublishingRESTSupportTransaction * obj); -static void _vala_array_destroy (gpointer array, - gint array_length, - GDestroyNotify destroy_func); -static void _vala_array_free (gpointer array, - gint array_length, - GDestroyNotify destroy_func); - - -RajceService* -rajce_service_construct (GType object_type, - GFile* resource_directory) -{ - RajceService * self = NULL; - GdkPixbuf** _tmp0_; - gint _tmp0__length1; -#line 13 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_return_val_if_fail (G_IS_FILE (resource_directory), NULL); -#line 13 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - self = (RajceService*) g_object_new (object_type, NULL); -#line 15 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp0_ = rajce_service_icon_pixbuf_set; -#line 15 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp0__length1 = rajce_service_icon_pixbuf_set_length1; -#line 15 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - if (_tmp0_ == NULL) { -#line 1158 "RajcePublishing.c" - gint _tmp1_; - GdkPixbuf** _tmp2_; -#line 16 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp2_ = resources_load_from_resource (PLUGIN_RESOURCE_PATH "/" RAJCE_SERVICE_ICON_FILENAME, &_tmp1_); -#line 16 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - rajce_service_icon_pixbuf_set = (_vala_array_free (rajce_service_icon_pixbuf_set, rajce_service_icon_pixbuf_set_length1, (GDestroyNotify) g_object_unref), NULL); -#line 16 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - rajce_service_icon_pixbuf_set = _tmp2_; -#line 16 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - rajce_service_icon_pixbuf_set_length1 = _tmp1_; -#line 16 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _rajce_service_icon_pixbuf_set_size_ = rajce_service_icon_pixbuf_set_length1; -#line 1171 "RajcePublishing.c" - } -#line 13 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - return self; -#line 1175 "RajcePublishing.c" -} - - -RajceService* -rajce_service_new (GFile* resource_directory) -{ -#line 13 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - return rajce_service_construct (TYPE_RAJCE_SERVICE, resource_directory); -#line 1184 "RajcePublishing.c" -} - - -static gint -rajce_service_real_get_pluggable_interface (SpitPluggable* base, - gint min_host_interface, - gint max_host_interface) -{ - RajceService * self; - gint result = 0; -#line 21 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_RAJCE_SERVICE, RajceService); -#line 23 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - result = spit_negotiate_interfaces (min_host_interface, max_host_interface, SPIT_PUBLISHING_CURRENT_INTERFACE); -#line 23 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - return result; -#line 1201 "RajcePublishing.c" -} - - -static const gchar* -rajce_service_real_get_id (SpitPluggable* base) -{ - RajceService * self; - const gchar* result = NULL; -#line 27 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_RAJCE_SERVICE, RajceService); -#line 29 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - result = "org.yorba.shotwell.publishing.rajce"; -#line 29 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - return result; -#line 1216 "RajcePublishing.c" -} - - -static const gchar* -rajce_service_real_get_pluggable_name (SpitPluggable* base) -{ - RajceService * self; - const gchar* result = NULL; -#line 32 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_RAJCE_SERVICE, RajceService); -#line 34 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - result = "Rajce"; -#line 34 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - return result; -#line 1231 "RajcePublishing.c" -} - - -static gpointer -_g_object_ref0 (gpointer self) -{ -#line 47 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - return self ? g_object_ref (self) : NULL; -#line 1240 "RajcePublishing.c" -} - - -static GdkPixbuf** -_vala_array_dup4 (GdkPixbuf** self, - int length) -{ - GdkPixbuf** result; - int i; -#line 47 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - result = g_new0 (GdkPixbuf*, length + 1); -#line 47 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - for (i = 0; i < length; i++) { -#line 1254 "RajcePublishing.c" - GdkPixbuf* _tmp0_; -#line 47 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp0_ = _g_object_ref0 (self[i]); -#line 47 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - result[i] = _tmp0_; -#line 1260 "RajcePublishing.c" - } -#line 47 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - return result; -#line 1264 "RajcePublishing.c" -} - - -static void -rajce_service_real_get_info (SpitPluggable* base, - SpitPluggableInfo* info) -{ - RajceService * 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 37 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_RAJCE_SERVICE, RajceService); -#line 37 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_return_if_fail (info != NULL); -#line 39 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp0_ = g_strdup ("rajce.net developers"); -#line 39 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_free0 ((*info).authors); -#line 39 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - (*info).authors = _tmp0_; -#line 40 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp1_ = g_strdup (_ ("Copyright © 2013 rajce.net")); -#line 40 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_free0 ((*info).copyright); -#line 40 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - (*info).copyright = _tmp1_; -#line 41 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp2_ = g_strdup (RESOURCES_TRANSLATORS); -#line 41 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_free0 ((*info).translators); -#line 41 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - (*info).translators = _tmp2_; -#line 42 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp3_ = g_strdup (_VERSION); -#line 42 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_free0 ((*info).version); -#line 42 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - (*info).version = _tmp3_; -#line 43 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp4_ = g_strdup (RESOURCES_WEBSITE_NAME); -#line 43 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_free0 ((*info).website_name); -#line 43 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - (*info).website_name = _tmp4_; -#line 44 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp5_ = g_strdup (RESOURCES_WEBSITE_URL); -#line 44 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_free0 ((*info).website_url); -#line 44 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - (*info).website_url = _tmp5_; -#line 45 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - (*info).is_license_wordwrapped = FALSE; -#line 46 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp6_ = g_strdup (RESOURCES_LICENSE); -#line 46 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_free0 ((*info).license); -#line 46 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - (*info).license = _tmp6_; -#line 47 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp7_ = rajce_service_icon_pixbuf_set; -#line 47 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp7__length1 = rajce_service_icon_pixbuf_set_length1; -#line 47 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp8_ = (_tmp7_ != NULL) ? _vala_array_dup4 (_tmp7_, _tmp7__length1) : ((gpointer) _tmp7_); -#line 47 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp8__length1 = _tmp7__length1; -#line 47 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - (*info).icons = (_vala_array_free ((*info).icons, (*info).icons_length1, (GDestroyNotify) g_object_unref), NULL); -#line 47 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - (*info).icons = _tmp8_; -#line 47 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - (*info).icons_length1 = _tmp8__length1; -#line 1346 "RajcePublishing.c" -} - - -static SpitPublishingPublisher* -rajce_service_real_create_publisher (SpitPublishingService* base, - SpitPublishingPluginHost* host) -{ - RajceService * self; - SpitPublishingPublisher* result = NULL; - PublishingRajceRajcePublisher* _tmp0_; -#line 50 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_RAJCE_SERVICE, RajceService); -#line 50 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_return_val_if_fail (SPIT_PUBLISHING_IS_PLUGIN_HOST (host), NULL); -#line 52 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp0_ = publishing_rajce_rajce_publisher_new (G_TYPE_CHECK_INSTANCE_CAST (self, SPIT_PUBLISHING_TYPE_SERVICE, SpitPublishingService), host); -#line 52 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - result = G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, SPIT_PUBLISHING_TYPE_PUBLISHER, SpitPublishingPublisher); -#line 52 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - return result; -#line 1367 "RajcePublishing.c" -} - - -static SpitPublishingPublisherMediaType -rajce_service_real_get_supported_media (SpitPublishingService* base) -{ - RajceService * self; - SpitPublishingPublisherMediaType result = 0; -#line 55 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_RAJCE_SERVICE, RajceService); -#line 57 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - result = SPIT_PUBLISHING_PUBLISHER_MEDIA_TYPE_PHOTO; -#line 57 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - return result; -#line 1382 "RajcePublishing.c" -} - - -static void -rajce_service_real_activation (SpitPluggable* base, - gboolean enabled) -{ - RajceService * self; -#line 60 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_RAJCE_SERVICE, RajceService); -#line 1393 "RajcePublishing.c" -} - - -static void -rajce_service_class_init (RajceServiceClass * klass) -{ -#line 7 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - rajce_service_parent_class = g_type_class_peek_parent (klass); -#line 7 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - G_OBJECT_CLASS (klass)->finalize = rajce_service_finalize; -#line 1404 "RajcePublishing.c" -} - - -static void -rajce_service_spit_pluggable_interface_init (SpitPluggableIface * iface) -{ -#line 7 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - rajce_service_spit_pluggable_parent_iface = g_type_interface_peek_parent (iface); -#line 7 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - iface->get_pluggable_interface = (gint (*) (SpitPluggable *, gint, gint)) rajce_service_real_get_pluggable_interface; -#line 7 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - iface->get_id = (const gchar* (*) (SpitPluggable *)) rajce_service_real_get_id; -#line 7 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - iface->get_pluggable_name = (const gchar* (*) (SpitPluggable *)) rajce_service_real_get_pluggable_name; -#line 7 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - iface->get_info = (void (*) (SpitPluggable *, SpitPluggableInfo*)) rajce_service_real_get_info; -#line 7 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - iface->activation = (void (*) (SpitPluggable *, gboolean)) rajce_service_real_activation; -#line 1423 "RajcePublishing.c" -} - - -static void -rajce_service_spit_publishing_service_interface_init (SpitPublishingServiceIface * iface) -{ -#line 7 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - rajce_service_spit_publishing_service_parent_iface = g_type_interface_peek_parent (iface); -#line 7 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - iface->create_publisher = (SpitPublishingPublisher* (*) (SpitPublishingService *, SpitPublishingPluginHost*)) rajce_service_real_create_publisher; -#line 7 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - iface->get_supported_media = (SpitPublishingPublisherMediaType (*) (SpitPublishingService *)) rajce_service_real_get_supported_media; -#line 1436 "RajcePublishing.c" -} - - -static void -rajce_service_instance_init (RajceService * self) -{ -} - - -static void -rajce_service_finalize (GObject * obj) -{ - RajceService * self; -#line 7 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_RAJCE_SERVICE, RajceService); -#line 7 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - G_OBJECT_CLASS (rajce_service_parent_class)->finalize (obj); -#line 1454 "RajcePublishing.c" -} - - -GType -rajce_service_get_type (void) -{ - static volatile gsize rajce_service_type_id__volatile = 0; - if (g_once_init_enter (&rajce_service_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (RajceServiceClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) rajce_service_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (RajceService), 0, (GInstanceInitFunc) rajce_service_instance_init, NULL }; - static const GInterfaceInfo spit_pluggable_info = { (GInterfaceInitFunc) rajce_service_spit_pluggable_interface_init, (GInterfaceFinalizeFunc) NULL, NULL}; - static const GInterfaceInfo spit_publishing_service_info = { (GInterfaceInitFunc) rajce_service_spit_publishing_service_interface_init, (GInterfaceFinalizeFunc) NULL, NULL}; - GType rajce_service_type_id; - rajce_service_type_id = g_type_register_static (G_TYPE_OBJECT, "RajceService", &g_define_type_info, 0); - g_type_add_interface_static (rajce_service_type_id, SPIT_TYPE_PLUGGABLE, &spit_pluggable_info); - g_type_add_interface_static (rajce_service_type_id, SPIT_PUBLISHING_TYPE_SERVICE, &spit_publishing_service_info); - g_once_init_leave (&rajce_service_type_id__volatile, rajce_service_type_id); - } - return rajce_service_type_id__volatile; -} - - -PublishingRajceRajcePublisher* -publishing_rajce_rajce_publisher_construct (GType object_type, - SpitPublishingService* service, - SpitPublishingPluginHost* host) -{ - PublishingRajceRajcePublisher * self = NULL; - SpitPublishingService* _tmp0_; - SpitPublishingPluginHost* _tmp1_; - PublishingRajceSession* _tmp2_; - gint _tmp3_; - SpitPublishingPublishable** _tmp4_; -#line 84 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_return_val_if_fail (SPIT_PUBLISHING_IS_SERVICE (service), NULL); -#line 84 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_return_val_if_fail (SPIT_PUBLISHING_IS_PLUGIN_HOST (host), NULL); -#line 84 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - self = (PublishingRajceRajcePublisher*) g_object_new (object_type, NULL); -#line 86 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_debug ("RajcePublishing.vala:86: RajcePublisher created."); -#line 87 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp0_ = _g_object_ref0 (service); -#line 87 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_object_unref0 (self->priv->service); -#line 87 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - self->priv->service = _tmp0_; -#line 88 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp1_ = _g_object_ref0 (host); -#line 88 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_object_unref0 (self->priv->host); -#line 88 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - self->priv->host = _tmp1_; -#line 89 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp2_ = publishing_rajce_session_new (); -#line 89 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _publishing_rest_support_session_unref0 (self->priv->session); -#line 89 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - self->priv->session = _tmp2_; -#line 91 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp4_ = spit_publishing_plugin_host_get_publishables (host, &_tmp3_); -#line 1515 "RajcePublishing.c" - { - SpitPublishingPublishable** p_collection = NULL; - gint p_collection_length1 = 0; - gint _p_collection_size_ = 0; - gint p_it = 0; -#line 91 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - p_collection = _tmp4_; -#line 91 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - p_collection_length1 = _tmp3_; -#line 91 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - for (p_it = 0; p_it < _tmp3_; p_it = p_it + 1) { -#line 1527 "RajcePublishing.c" - SpitPublishingPublishable* _tmp5_; - SpitPublishingPublishable* p = NULL; -#line 91 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp5_ = _g_object_ref0 (p_collection[p_it]); -#line 91 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - p = _tmp5_; -#line 1534 "RajcePublishing.c" - { - SpitPublishingPublisherMediaType _tmp6_; - SpitPublishingPublishable* _tmp7_; -#line 92 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp6_ = self->priv->media_type; -#line 92 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp7_ = p; -#line 92 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - self->priv->media_type = _tmp6_ | spit_publishing_publishable_get_media_type (_tmp7_); -#line 91 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_object_unref0 (p); -#line 1546 "RajcePublishing.c" - } - } -#line 91 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - p_collection = (_vala_array_free (p_collection, p_collection_length1, (GDestroyNotify) g_object_unref), NULL); -#line 1551 "RajcePublishing.c" - } -#line 84 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - return self; -#line 1555 "RajcePublishing.c" -} - - -PublishingRajceRajcePublisher* -publishing_rajce_rajce_publisher_new (SpitPublishingService* service, - SpitPublishingPluginHost* host) -{ -#line 84 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - return publishing_rajce_rajce_publisher_construct (PUBLISHING_RAJCE_TYPE_RAJCE_PUBLISHER, service, host); -#line 1565 "RajcePublishing.c" -} - - -static gchar* -publishing_rajce_rajce_publisher_get_rajce_url (PublishingRajceRajcePublisher* self) -{ - gchar* result = NULL; - gchar* _tmp0_; -#line 95 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_return_val_if_fail (PUBLISHING_RAJCE_IS_RAJCE_PUBLISHER (self), NULL); -#line 97 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp0_ = g_strdup ("http://www.rajce.idnes.cz/liveAPI/index.php"); -#line 97 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - result = _tmp0_; -#line 97 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - return result; -#line 1582 "RajcePublishing.c" -} - - -static SpitPublishingService* -publishing_rajce_rajce_publisher_real_get_service (SpitPublishingPublisher* base) -{ - PublishingRajceRajcePublisher * self; - SpitPublishingService* result = NULL; - SpitPublishingService* _tmp0_; - SpitPublishingService* _tmp1_; -#line 102 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_RAJCE_TYPE_RAJCE_PUBLISHER, PublishingRajceRajcePublisher); -#line 102 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp0_ = self->priv->service; -#line 102 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp1_ = _g_object_ref0 (_tmp0_); -#line 102 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - result = _tmp1_; -#line 102 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - return result; -#line 1603 "RajcePublishing.c" -} - - -SpitPublishingPluginHost* -publishing_rajce_rajce_publisher_get_host (PublishingRajceRajcePublisher* self) -{ - SpitPublishingPluginHost* result = NULL; - SpitPublishingPluginHost* _tmp0_; - SpitPublishingPluginHost* _tmp1_; -#line 103 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_return_val_if_fail (PUBLISHING_RAJCE_IS_RAJCE_PUBLISHER (self), NULL); -#line 103 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp0_ = self->priv->host; -#line 103 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp1_ = _g_object_ref0 (_tmp0_); -#line 103 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - result = _tmp1_; -#line 103 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - return result; -#line 1623 "RajcePublishing.c" -} - - -static gboolean -publishing_rajce_rajce_publisher_real_is_running (SpitPublishingPublisher* base) -{ - PublishingRajceRajcePublisher * self; - gboolean result = FALSE; - gboolean _tmp0_; -#line 104 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_RAJCE_TYPE_RAJCE_PUBLISHER, PublishingRajceRajcePublisher); -#line 104 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp0_ = self->priv->running; -#line 104 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - result = _tmp0_; -#line 104 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - return result; -#line 1641 "RajcePublishing.c" -} - - -static gboolean* -_bool_dup (gboolean* self) -{ - gboolean* dup; -#line 124 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - dup = g_new0 (gboolean, 1); -#line 124 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - memcpy (dup, self, sizeof (gboolean)); -#line 124 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - return dup; -#line 1655 "RajcePublishing.c" -} - - -static gpointer -__bool_dup0 (gpointer self) -{ -#line 124 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - return self ? _bool_dup (self) : NULL; -#line 1664 "RajcePublishing.c" -} - - -static void -publishing_rajce_rajce_publisher_real_start (SpitPublishingPublisher* base) -{ - PublishingRajceRajcePublisher * self; - PublishingRajceSession* _tmp0_; -#line 106 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_RAJCE_TYPE_RAJCE_PUBLISHER, PublishingRajceRajcePublisher); -#line 108 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - if (spit_publishing_publisher_is_running (G_TYPE_CHECK_INSTANCE_CAST (self, SPIT_PUBLISHING_TYPE_PUBLISHER, SpitPublishingPublisher))) { -#line 109 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - return; -#line 1679 "RajcePublishing.c" - } -#line 111 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_debug ("RajcePublishing.vala:111: RajcePublisher: start"); -#line 112 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - self->priv->running = TRUE; -#line 114 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp0_ = self->priv->session; -#line 114 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - if (publishing_rest_support_session_is_authenticated (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, PUBLISHING_REST_SUPPORT_TYPE_SESSION, PublishingRESTSupportSession))) { -#line 116 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_debug ("RajcePublishing.vala:116: RajcePublisher: session is authenticated."); -#line 117 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - publishing_rajce_rajce_publisher_do_fetch_albums (self); -#line 1693 "RajcePublishing.c" - } else { - gchar* persistent_username = NULL; - gchar* _tmp1_; - gchar* persistent_token = NULL; - gchar* _tmp2_; - gboolean* persistent_remember = NULL; - gboolean _tmp3_; - gboolean* _tmp4_; - gboolean _tmp5_ = FALSE; - const gchar* _tmp6_; -#line 121 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_debug ("RajcePublishing.vala:121: RajcePublisher: session is not authenticated" \ -"."); -#line 122 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp1_ = publishing_rajce_rajce_publisher_get_username (self); -#line 122 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - persistent_username = _tmp1_; -#line 123 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp2_ = publishing_rajce_rajce_publisher_get_token (self); -#line 123 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - persistent_token = _tmp2_; -#line 124 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp3_ = publishing_rajce_rajce_publisher_get_remember (self); -#line 124 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp4_ = __bool_dup0 (&_tmp3_); -#line 124 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - persistent_remember = _tmp4_; -#line 125 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp6_ = persistent_username; -#line 125 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - if (_tmp6_ != NULL) { -#line 1724 "RajcePublishing.c" - const gchar* _tmp7_; -#line 125 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp7_ = persistent_token; -#line 125 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp5_ = _tmp7_ != NULL; -#line 1730 "RajcePublishing.c" - } else { -#line 125 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp5_ = FALSE; -#line 1734 "RajcePublishing.c" - } -#line 125 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - if (_tmp5_) { -#line 1738 "RajcePublishing.c" - const gchar* _tmp8_; - const gchar* _tmp9_; - gboolean* _tmp10_; -#line 126 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp8_ = persistent_username; -#line 126 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp9_ = persistent_token; -#line 126 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp10_ = persistent_remember; -#line 126 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - publishing_rajce_rajce_publisher_do_network_login (self, _tmp8_, _tmp9_, *_tmp10_); -#line 1750 "RajcePublishing.c" - } else { -#line 128 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - publishing_rajce_rajce_publisher_do_show_authentication_pane (self, PUBLISHING_RAJCE_AUTHENTICATION_PANE_MODE_INTRO); -#line 1754 "RajcePublishing.c" - } -#line 114 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_free0 (persistent_remember); -#line 114 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_free0 (persistent_token); -#line 114 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_free0 (persistent_username); -#line 1762 "RajcePublishing.c" - } -} - - -static void -publishing_rajce_rajce_publisher_real_stop (SpitPublishingPublisher* base) -{ - PublishingRajceRajcePublisher * self; -#line 132 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_RAJCE_TYPE_RAJCE_PUBLISHER, PublishingRajceRajcePublisher); -#line 134 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_debug ("RajcePublishing.vala:134: RajcePublisher: stop"); -#line 135 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - self->priv->running = FALSE; -#line 1777 "RajcePublishing.c" -} - - -gchar* -publishing_rajce_rajce_publisher_get_url (PublishingRajceRajcePublisher* self) -{ - gchar* result = NULL; - gchar* _tmp0_; -#line 140 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_return_val_if_fail (PUBLISHING_RAJCE_IS_RAJCE_PUBLISHER (self), NULL); -#line 140 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp0_ = publishing_rajce_rajce_publisher_get_rajce_url (self); -#line 140 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - result = _tmp0_; -#line 140 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - return result; -#line 1794 "RajcePublishing.c" -} - - -gchar* -publishing_rajce_rajce_publisher_get_username (PublishingRajceRajcePublisher* self) -{ - gchar* result = NULL; - SpitPublishingPluginHost* _tmp0_; - gchar* _tmp1_; -#line 141 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_return_val_if_fail (PUBLISHING_RAJCE_IS_RAJCE_PUBLISHER (self), NULL); -#line 141 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp0_ = self->priv->host; -#line 141 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp1_ = spit_host_interface_get_config_string (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, SPIT_TYPE_HOST_INTERFACE, SpitHostInterface), "username", NULL); -#line 141 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - result = _tmp1_; -#line 141 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - return result; -#line 1814 "RajcePublishing.c" -} - - -static void -publishing_rajce_rajce_publisher_set_username (PublishingRajceRajcePublisher* self, - const gchar* username) -{ - SpitPublishingPluginHost* _tmp0_; -#line 142 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_return_if_fail (PUBLISHING_RAJCE_IS_RAJCE_PUBLISHER (self)); -#line 142 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_return_if_fail (username != NULL); -#line 142 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp0_ = self->priv->host; -#line 142 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - spit_host_interface_set_config_string (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, SPIT_TYPE_HOST_INTERFACE, SpitHostInterface), "username", username); -#line 1831 "RajcePublishing.c" -} - - -gchar* -publishing_rajce_rajce_publisher_get_token (PublishingRajceRajcePublisher* self) -{ - gchar* result = NULL; - SpitPublishingPluginHost* _tmp0_; - gchar* _tmp1_; -#line 143 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_return_val_if_fail (PUBLISHING_RAJCE_IS_RAJCE_PUBLISHER (self), NULL); -#line 143 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp0_ = self->priv->host; -#line 143 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp1_ = spit_host_interface_get_config_string (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, SPIT_TYPE_HOST_INTERFACE, SpitHostInterface), "token", NULL); -#line 143 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - result = _tmp1_; -#line 143 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - return result; -#line 1851 "RajcePublishing.c" -} - - -static void -publishing_rajce_rajce_publisher_set_token (PublishingRajceRajcePublisher* self, - const gchar* token) -{ - SpitPublishingPluginHost* _tmp0_; -#line 144 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_return_if_fail (PUBLISHING_RAJCE_IS_RAJCE_PUBLISHER (self)); -#line 144 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp0_ = self->priv->host; -#line 144 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - spit_host_interface_set_config_string (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, SPIT_TYPE_HOST_INTERFACE, SpitHostInterface), "token", token); -#line 1866 "RajcePublishing.c" -} - - -gboolean -publishing_rajce_rajce_publisher_get_remember (PublishingRajceRajcePublisher* self) -{ - gboolean result = FALSE; - SpitPublishingPluginHost* _tmp0_; -#line 147 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_return_val_if_fail (PUBLISHING_RAJCE_IS_RAJCE_PUBLISHER (self), FALSE); -#line 147 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp0_ = self->priv->host; -#line 147 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - result = spit_host_interface_get_config_bool (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, SPIT_TYPE_HOST_INTERFACE, SpitHostInterface), "remember", FALSE); -#line 147 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - return result; -#line 1883 "RajcePublishing.c" -} - - -static void -publishing_rajce_rajce_publisher_set_remember (PublishingRajceRajcePublisher* self, - gboolean remember) -{ - SpitPublishingPluginHost* _tmp0_; -#line 148 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_return_if_fail (PUBLISHING_RAJCE_IS_RAJCE_PUBLISHER (self)); -#line 148 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp0_ = self->priv->host; -#line 148 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - spit_host_interface_set_config_bool (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, SPIT_TYPE_HOST_INTERFACE, SpitHostInterface), "remember", remember); -#line 1898 "RajcePublishing.c" -} - - -gboolean -publishing_rajce_rajce_publisher_get_hide_album (PublishingRajceRajcePublisher* self) -{ - gboolean result = FALSE; - SpitPublishingPluginHost* _tmp0_; -#line 149 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_return_val_if_fail (PUBLISHING_RAJCE_IS_RAJCE_PUBLISHER (self), FALSE); -#line 149 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp0_ = self->priv->host; -#line 149 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - result = spit_host_interface_get_config_bool (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, SPIT_TYPE_HOST_INTERFACE, SpitHostInterface), "hide-album", FALSE); -#line 149 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - return result; -#line 1915 "RajcePublishing.c" -} - - -void -publishing_rajce_rajce_publisher_set_hide_album (PublishingRajceRajcePublisher* self, - gboolean hide_album) -{ - SpitPublishingPluginHost* _tmp0_; -#line 150 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_return_if_fail (PUBLISHING_RAJCE_IS_RAJCE_PUBLISHER (self)); -#line 150 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp0_ = self->priv->host; -#line 150 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - spit_host_interface_set_config_bool (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, SPIT_TYPE_HOST_INTERFACE, SpitHostInterface), "hide-album", hide_album); -#line 1930 "RajcePublishing.c" -} - - -gboolean -publishing_rajce_rajce_publisher_get_show_album (PublishingRajceRajcePublisher* self) -{ - gboolean result = FALSE; - SpitPublishingPluginHost* _tmp0_; -#line 151 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_return_val_if_fail (PUBLISHING_RAJCE_IS_RAJCE_PUBLISHER (self), FALSE); -#line 151 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp0_ = self->priv->host; -#line 151 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - result = spit_host_interface_get_config_bool (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, SPIT_TYPE_HOST_INTERFACE, SpitHostInterface), "show-album", TRUE); -#line 151 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - return result; -#line 1947 "RajcePublishing.c" -} - - -void -publishing_rajce_rajce_publisher_set_show_album (PublishingRajceRajcePublisher* self, - gboolean show_album) -{ - SpitPublishingPluginHost* _tmp0_; -#line 152 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_return_if_fail (PUBLISHING_RAJCE_IS_RAJCE_PUBLISHER (self)); -#line 152 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp0_ = self->priv->host; -#line 152 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - spit_host_interface_set_config_bool (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, SPIT_TYPE_HOST_INTERFACE, SpitHostInterface), "show-album", show_album); -#line 1962 "RajcePublishing.c" -} - - -/** - * Action that shows the authentication pane. - */ -static void -_publishing_rajce_rajce_publisher_on_authentication_pane_login_clicked_publishing_rajce_authentication_pane_login (PublishingRajceAuthenticationPane* _sender, - const gchar* user, - const gchar* token, - gboolean remember, - gpointer self) -{ -#line 167 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - publishing_rajce_rajce_publisher_on_authentication_pane_login_clicked ((PublishingRajceRajcePublisher*) self, user, token, remember); -#line 1978 "RajcePublishing.c" -} - - -static void -publishing_rajce_rajce_publisher_do_show_authentication_pane (PublishingRajceRajcePublisher* self, - PublishingRajceAuthenticationPaneMode mode) -{ - SpitPublishingPluginHost* _tmp0_; - PublishingRajceAuthenticationPane* authentication_pane = NULL; - PublishingRajceAuthenticationPane* _tmp1_; - SpitPublishingPluginHost* _tmp2_; - SpitPublishingPluginHost* _tmp3_; - GtkWidget* _tmp4_; - GtkWidget* _tmp5_; -#line 161 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_return_if_fail (PUBLISHING_RAJCE_IS_RAJCE_PUBLISHER (self)); -#line 163 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_debug ("RajcePublishing.vala:163: ACTION: installing authentication pane"); -#line 165 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp0_ = self->priv->host; -#line 165 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - spit_publishing_plugin_host_set_service_locked (_tmp0_, FALSE); -#line 166 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp1_ = publishing_rajce_authentication_pane_new (self, mode); -#line 166 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - authentication_pane = _tmp1_; -#line 167 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_signal_connect_object (authentication_pane, "login", (GCallback) _publishing_rajce_rajce_publisher_on_authentication_pane_login_clicked_publishing_rajce_authentication_pane_login, self, 0); -#line 168 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp2_ = self->priv->host; -#line 168 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - spit_publishing_plugin_host_install_dialog_pane (_tmp2_, G_TYPE_CHECK_INSTANCE_CAST (authentication_pane, SPIT_PUBLISHING_TYPE_DIALOG_PANE, SpitPublishingDialogPane), SPIT_PUBLISHING_PLUGIN_HOST_BUTTON_MODE_CLOSE); -#line 169 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp3_ = self->priv->host; -#line 169 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp4_ = publishing_rajce_authentication_pane_get_default_widget (authentication_pane); -#line 169 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp5_ = _tmp4_; -#line 169 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - spit_publishing_plugin_host_set_dialog_default_widget (_tmp3_, _tmp5_); -#line 169 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_object_unref0 (_tmp5_); -#line 161 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_object_unref0 (authentication_pane); -#line 2023 "RajcePublishing.c" -} - - -/** - * Event triggered when the login button in the authentication panel is clicked. - */ -static void -publishing_rajce_rajce_publisher_on_authentication_pane_login_clicked (PublishingRajceRajcePublisher* self, - const gchar* username, - const gchar* token, - gboolean remember) -{ - gboolean _tmp0_; -#line 175 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_return_if_fail (PUBLISHING_RAJCE_IS_RAJCE_PUBLISHER (self)); -#line 175 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_return_if_fail (username != NULL); -#line 175 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_return_if_fail (token != NULL); -#line 177 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_debug ("RajcePublishing.vala:177: EVENT: on_authentication_pane_login_clicked"); -#line 178 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp0_ = self->priv->running; -#line 178 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - if (!_tmp0_) { -#line 179 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - return; -#line 2051 "RajcePublishing.c" - } -#line 180 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - publishing_rajce_rajce_publisher_do_network_login (self, username, token, remember); -#line 2055 "RajcePublishing.c" -} - - -/** - * Action to perform a network login to a Rajce service. - */ -static void -_publishing_rajce_rajce_publisher_on_login_network_error_publishing_rest_support_transaction_network_error (PublishingRESTSupportTransaction* _sender, - GError* err, - gpointer self) -{ -#line 195 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - publishing_rajce_rajce_publisher_on_login_network_error ((PublishingRajceRajcePublisher*) self, _sender, err); -#line 2069 "RajcePublishing.c" -} - - -static void -_publishing_rajce_rajce_publisher_on_login_network_complete_publishing_rest_support_transaction_completed (PublishingRESTSupportTransaction* _sender, - gpointer self) -{ -#line 196 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - publishing_rajce_rajce_publisher_on_login_network_complete ((PublishingRajceRajcePublisher*) self, _sender); -#line 2079 "RajcePublishing.c" -} - - -static void -publishing_rajce_rajce_publisher_do_network_login (PublishingRajceRajcePublisher* self, - const gchar* username, - const gchar* token, - gboolean remember) -{ - SpitPublishingPluginHost* _tmp0_; - SpitPublishingPluginHost* _tmp1_; - const gchar* _tmp2_ = NULL; - PublishingRajceSessionLoginTransaction* login_trans = NULL; - PublishingRajceSession* _tmp3_; - gchar* _tmp4_; - gchar* _tmp5_; - PublishingRajceSessionLoginTransaction* _tmp6_; - PublishingRajceSessionLoginTransaction* _tmp7_; - GError * _inner_error_ = NULL; -#line 186 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_return_if_fail (PUBLISHING_RAJCE_IS_RAJCE_PUBLISHER (self)); -#line 186 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_return_if_fail (username != NULL); -#line 186 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_return_if_fail (token != NULL); -#line 188 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_debug ("RajcePublishing.vala:188: ACTION: logging in"); -#line 189 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp0_ = self->priv->host; -#line 189 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - spit_publishing_plugin_host_set_service_locked (_tmp0_, TRUE); -#line 190 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp1_ = self->priv->host; -#line 190 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - spit_publishing_plugin_host_install_login_wait_pane (_tmp1_); -#line 191 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - publishing_rajce_rajce_publisher_set_remember (self, remember); -#line 192 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - publishing_rajce_rajce_publisher_set_username (self, username); -#line 193 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - if (remember) { -#line 193 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp2_ = token; -#line 2123 "RajcePublishing.c" - } else { -#line 193 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp2_ = NULL; -#line 2127 "RajcePublishing.c" - } -#line 193 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - publishing_rajce_rajce_publisher_set_token (self, _tmp2_); -#line 194 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp3_ = self->priv->session; -#line 194 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp4_ = publishing_rajce_rajce_publisher_get_url (self); -#line 194 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp5_ = _tmp4_; -#line 194 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp6_ = publishing_rajce_session_login_transaction_new (_tmp3_, _tmp5_, username, token); -#line 194 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp7_ = _tmp6_; -#line 194 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_free0 (_tmp5_); -#line 194 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - login_trans = _tmp7_; -#line 195 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (login_trans, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "network-error", (GCallback) _publishing_rajce_rajce_publisher_on_login_network_error_publishing_rest_support_transaction_network_error, self, 0); -#line 196 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (login_trans, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "completed", (GCallback) _publishing_rajce_rajce_publisher_on_login_network_complete_publishing_rest_support_transaction_completed, self, 0); -#line 2149 "RajcePublishing.c" - { -#line 199 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - publishing_rest_support_transaction_execute (G_TYPE_CHECK_INSTANCE_CAST (login_trans, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), &_inner_error_); -#line 199 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 199 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - if (_inner_error_->domain == SPIT_PUBLISHING_PUBLISHING_ERROR) { -#line 2157 "RajcePublishing.c" - goto __catch16_spit_publishing_publishing_error; - } -#line 199 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _publishing_rest_support_transaction_unref0 (login_trans); -#line 199 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 199 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_clear_error (&_inner_error_); -#line 199 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - return; -#line 2168 "RajcePublishing.c" - } - } - goto __finally16; - __catch16_spit_publishing_publishing_error: - { - GError* err = NULL; - GError* _tmp8_; -#line 197 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - err = _inner_error_; -#line 197 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _inner_error_ = NULL; -#line 203 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_debug ("RajcePublishing.vala:203: ERROR: do_network_login"); -#line 204 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp8_ = err; -#line 204 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - publishing_rajce_rajce_publisher_do_show_error (self, _tmp8_); -#line 197 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_error_free0 (err); -#line 2188 "RajcePublishing.c" - } - __finally16: -#line 197 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 197 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _publishing_rest_support_transaction_unref0 (login_trans); -#line 197 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 197 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_clear_error (&_inner_error_); -#line 197 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - return; -#line 2201 "RajcePublishing.c" - } -#line 186 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _publishing_rest_support_transaction_unref0 (login_trans); -#line 2205 "RajcePublishing.c" -} - - -/** - * Event triggered when the network login action is complete and successful. - */ -static gchar* -_publishing_rajce_transaction_validate_xml_publishing_rest_support_xml_document_check_for_error_response (PublishingRESTSupportXmlDocument* doc, - gpointer self) -{ - gchar* result; - result = publishing_rajce_transaction_validate_xml (doc); -#line 219 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - return result; -#line 2220 "RajcePublishing.c" -} - - -static void -publishing_rajce_rajce_publisher_on_login_network_complete (PublishingRajceRajcePublisher* self, - PublishingRESTSupportTransaction* txn) -{ - guint _tmp0_; - guint _tmp1_; - GError * _inner_error_ = NULL; -#line 211 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_return_if_fail (PUBLISHING_RAJCE_IS_RAJCE_PUBLISHER (self)); -#line 211 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_return_if_fail (PUBLISHING_REST_SUPPORT_IS_TRANSACTION (txn)); -#line 213 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_debug ("RajcePublishing.vala:213: EVENT: on_login_network_complete"); -#line 214 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_signal_parse_name ("completed", PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, &_tmp0_, NULL, FALSE); -#line 214 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_signal_handlers_disconnect_matched (txn, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp0_, 0, NULL, (GCallback) _publishing_rajce_rajce_publisher_on_login_network_complete_publishing_rest_support_transaction_completed, self); -#line 215 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_signal_parse_name ("network-error", PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, &_tmp1_, NULL, FALSE); -#line 215 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_signal_handlers_disconnect_matched (txn, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp1_, 0, NULL, (GCallback) _publishing_rajce_rajce_publisher_on_login_network_error_publishing_rest_support_transaction_network_error, self); -#line 2245 "RajcePublishing.c" - { - PublishingRESTSupportXmlDocument* doc = NULL; - gchar* _tmp2_; - gchar* _tmp3_; - PublishingRESTSupportXmlDocument* _tmp4_; - PublishingRESTSupportXmlDocument* _tmp5_; - xmlNode* response = NULL; - PublishingRESTSupportXmlDocument* _tmp6_; - xmlNode* _tmp7_; - xmlNode* sessionToken = NULL; - PublishingRESTSupportXmlDocument* _tmp8_; - xmlNode* _tmp9_; - xmlNode* _tmp10_; - xmlNode* maxWidth = NULL; - PublishingRESTSupportXmlDocument* _tmp11_; - xmlNode* _tmp12_; - xmlNode* _tmp13_; - xmlNode* maxHeight = NULL; - PublishingRESTSupportXmlDocument* _tmp14_; - xmlNode* _tmp15_; - xmlNode* _tmp16_; - xmlNode* quality = NULL; - PublishingRESTSupportXmlDocument* _tmp17_; - xmlNode* _tmp18_; - xmlNode* _tmp19_; - xmlNode* nick = NULL; - PublishingRESTSupportXmlDocument* _tmp20_; - xmlNode* _tmp21_; - xmlNode* _tmp22_; - gint maxW = 0; - xmlNode* _tmp23_; - gchar* _tmp24_; - gchar* _tmp25_; - gint _tmp26_; - gint maxH = 0; - xmlNode* _tmp27_; - gchar* _tmp28_; - gchar* _tmp29_; - gint _tmp30_; - gint _tmp31_; - gint _tmp32_; - PublishingRajceSession* _tmp34_; - xmlNode* _tmp35_; - gchar* _tmp36_; - gchar* _tmp37_; - xmlNode* _tmp38_; - gchar* _tmp39_; - gchar* _tmp40_; - gint _tmp41_; - xmlNode* _tmp42_; - gchar* _tmp43_; - gchar* _tmp44_; -#line 219 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp2_ = publishing_rest_support_transaction_get_response (txn); -#line 219 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp3_ = _tmp2_; -#line 219 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp4_ = publishing_rest_support_xml_document_parse_string (_tmp3_, _publishing_rajce_transaction_validate_xml_publishing_rest_support_xml_document_check_for_error_response, NULL, &_inner_error_); -#line 219 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp5_ = _tmp4_; -#line 219 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_free0 (_tmp3_); -#line 219 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - doc = _tmp5_; -#line 219 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 219 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - if (_inner_error_->domain == SPIT_PUBLISHING_PUBLISHING_ERROR) { -#line 2314 "RajcePublishing.c" - goto __catch17_spit_publishing_publishing_error; - } -#line 219 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 219 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_clear_error (&_inner_error_); -#line 219 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - return; -#line 2323 "RajcePublishing.c" - } -#line 220 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp6_ = doc; -#line 220 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp7_ = publishing_rest_support_xml_document_get_root_node (_tmp6_); -#line 220 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - response = _tmp7_; -#line 221 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp8_ = doc; -#line 221 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp9_ = response; -#line 221 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp10_ = publishing_rest_support_xml_document_get_named_child (_tmp8_, _tmp9_, "sessionToken", &_inner_error_); -#line 221 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - sessionToken = _tmp10_; -#line 221 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 221 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _publishing_rest_support_xml_document_unref0 (doc); -#line 221 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - if (_inner_error_->domain == SPIT_PUBLISHING_PUBLISHING_ERROR) { -#line 2345 "RajcePublishing.c" - goto __catch17_spit_publishing_publishing_error; - } -#line 221 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _publishing_rest_support_xml_document_unref0 (doc); -#line 221 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 221 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_clear_error (&_inner_error_); -#line 221 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - return; -#line 2356 "RajcePublishing.c" - } -#line 222 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp11_ = doc; -#line 222 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp12_ = response; -#line 222 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp13_ = publishing_rest_support_xml_document_get_named_child (_tmp11_, _tmp12_, "maxWidth", &_inner_error_); -#line 222 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - maxWidth = _tmp13_; -#line 222 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 222 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _publishing_rest_support_xml_document_unref0 (doc); -#line 222 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - if (_inner_error_->domain == SPIT_PUBLISHING_PUBLISHING_ERROR) { -#line 2372 "RajcePublishing.c" - goto __catch17_spit_publishing_publishing_error; - } -#line 222 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _publishing_rest_support_xml_document_unref0 (doc); -#line 222 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 222 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_clear_error (&_inner_error_); -#line 222 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - return; -#line 2383 "RajcePublishing.c" - } -#line 223 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp14_ = doc; -#line 223 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp15_ = response; -#line 223 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp16_ = publishing_rest_support_xml_document_get_named_child (_tmp14_, _tmp15_, "maxHeight", &_inner_error_); -#line 223 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - maxHeight = _tmp16_; -#line 223 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 223 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _publishing_rest_support_xml_document_unref0 (doc); -#line 223 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - if (_inner_error_->domain == SPIT_PUBLISHING_PUBLISHING_ERROR) { -#line 2399 "RajcePublishing.c" - goto __catch17_spit_publishing_publishing_error; - } -#line 223 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _publishing_rest_support_xml_document_unref0 (doc); -#line 223 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 223 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_clear_error (&_inner_error_); -#line 223 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - return; -#line 2410 "RajcePublishing.c" - } -#line 224 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp17_ = doc; -#line 224 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp18_ = response; -#line 224 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp19_ = publishing_rest_support_xml_document_get_named_child (_tmp17_, _tmp18_, "quality", &_inner_error_); -#line 224 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - quality = _tmp19_; -#line 224 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 224 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _publishing_rest_support_xml_document_unref0 (doc); -#line 224 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - if (_inner_error_->domain == SPIT_PUBLISHING_PUBLISHING_ERROR) { -#line 2426 "RajcePublishing.c" - goto __catch17_spit_publishing_publishing_error; - } -#line 224 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _publishing_rest_support_xml_document_unref0 (doc); -#line 224 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 224 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_clear_error (&_inner_error_); -#line 224 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - return; -#line 2437 "RajcePublishing.c" - } -#line 225 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp20_ = doc; -#line 225 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp21_ = response; -#line 225 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp22_ = publishing_rest_support_xml_document_get_named_child (_tmp20_, _tmp21_, "nick", &_inner_error_); -#line 225 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - nick = _tmp22_; -#line 225 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 225 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _publishing_rest_support_xml_document_unref0 (doc); -#line 225 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - if (_inner_error_->domain == SPIT_PUBLISHING_PUBLISHING_ERROR) { -#line 2453 "RajcePublishing.c" - goto __catch17_spit_publishing_publishing_error; - } -#line 225 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _publishing_rest_support_xml_document_unref0 (doc); -#line 225 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 225 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_clear_error (&_inner_error_); -#line 225 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - return; -#line 2464 "RajcePublishing.c" - } -#line 226 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp23_ = maxWidth; -#line 226 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp24_ = (gchar*) xmlNodeGetContent (_tmp23_); -#line 226 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp25_ = _tmp24_; -#line 226 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp26_ = atoi (_tmp25_); -#line 226 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_free0 (_tmp25_); -#line 226 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - maxW = _tmp26_; -#line 227 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp27_ = maxHeight; -#line 227 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp28_ = (gchar*) xmlNodeGetContent (_tmp27_); -#line 227 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp29_ = _tmp28_; -#line 227 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp30_ = atoi (_tmp29_); -#line 227 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_free0 (_tmp29_); -#line 227 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - maxH = _tmp30_; -#line 228 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp31_ = maxW; -#line 228 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp32_ = maxH; -#line 228 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - if (_tmp31_ > _tmp32_) { -#line 2496 "RajcePublishing.c" - gint _tmp33_; -#line 230 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp33_ = maxW; -#line 230 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - maxH = _tmp33_; -#line 2502 "RajcePublishing.c" - } -#line 232 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp34_ = self->priv->session; -#line 232 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp35_ = sessionToken; -#line 232 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp36_ = (gchar*) xmlNodeGetContent (_tmp35_); -#line 232 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp37_ = _tmp36_; -#line 232 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp38_ = nick; -#line 232 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp39_ = (gchar*) xmlNodeGetContent (_tmp38_); -#line 232 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp40_ = _tmp39_; -#line 232 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp41_ = maxH; -#line 232 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp42_ = quality; -#line 232 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp43_ = (gchar*) xmlNodeGetContent (_tmp42_); -#line 232 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp44_ = _tmp43_; -#line 232 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - publishing_rajce_session_authenticate (_tmp34_, _tmp37_, _tmp40_, 0, _tmp41_, atoi (_tmp44_)); -#line 232 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_free0 (_tmp44_); -#line 232 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_free0 (_tmp40_); -#line 232 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_free0 (_tmp37_); -#line 217 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _publishing_rest_support_xml_document_unref0 (doc); -#line 2536 "RajcePublishing.c" - } - goto __finally17; - __catch17_spit_publishing_publishing_error: - { - GError* err = NULL; - gint code_int = 0; - GError* _tmp45_; - const gchar* _tmp46_; - gint _tmp47_; -#line 217 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - err = _inner_error_; -#line 217 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _inner_error_ = NULL; -#line 236 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp45_ = err; -#line 236 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp46_ = _tmp45_->message; -#line 236 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - code_int = atoi (_tmp46_); -#line 237 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp47_ = code_int; -#line 237 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - if (_tmp47_ == 999) { -#line 239 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_debug ("RajcePublishing.vala:239: ERROR: on_login_network_complete, code 999"); -#line 240 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - publishing_rajce_rajce_publisher_do_show_authentication_pane (self, PUBLISHING_RAJCE_AUTHENTICATION_PANE_MODE_FAILED_RETRY_USER); -#line 2564 "RajcePublishing.c" - } else { - GError* _tmp48_; -#line 244 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_debug ("RajcePublishing.vala:244: ERROR: on_login_network_complete"); -#line 245 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp48_ = err; -#line 245 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - publishing_rajce_rajce_publisher_do_show_error (self, _tmp48_); -#line 2573 "RajcePublishing.c" - } -#line 247 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_error_free0 (err); -#line 247 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - return; -#line 2579 "RajcePublishing.c" - } - __finally17: -#line 217 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 217 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 217 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_clear_error (&_inner_error_); -#line 217 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - return; -#line 2590 "RajcePublishing.c" - } -#line 249 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - publishing_rajce_rajce_publisher_do_fetch_albums (self); -#line 2594 "RajcePublishing.c" -} - - -/** - * Event triggered when a network login action fails due to a network error. - */ -static void -publishing_rajce_rajce_publisher_on_login_network_error (PublishingRajceRajcePublisher* self, - PublishingRESTSupportTransaction* bad_txn, - GError* err) -{ - guint _tmp0_; - guint _tmp1_; -#line 255 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_return_if_fail (PUBLISHING_RAJCE_IS_RAJCE_PUBLISHER (self)); -#line 255 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_return_if_fail (PUBLISHING_REST_SUPPORT_IS_TRANSACTION (bad_txn)); -#line 257 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_debug ("RajcePublishing.vala:257: EVENT: on_login_network_error"); -#line 258 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_signal_parse_name ("completed", PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, &_tmp0_, NULL, FALSE); -#line 258 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_signal_handlers_disconnect_matched (bad_txn, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp0_, 0, NULL, (GCallback) _publishing_rajce_rajce_publisher_on_login_network_complete_publishing_rest_support_transaction_completed, self); -#line 259 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_signal_parse_name ("network-error", PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, &_tmp1_, NULL, FALSE); -#line 259 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_signal_handlers_disconnect_matched (bad_txn, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp1_, 0, NULL, (GCallback) _publishing_rajce_rajce_publisher_on_login_network_error_publishing_rest_support_transaction_network_error, self); -#line 260 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - publishing_rajce_rajce_publisher_do_show_authentication_pane (self, PUBLISHING_RAJCE_AUTHENTICATION_PANE_MODE_FAILED_RETRY_USER); -#line 2624 "RajcePublishing.c" -} - - -/** - * Action that fetches all user albums from the Rajce. - */ -static void -_publishing_rajce_rajce_publisher_on_albums_fetch_error_publishing_rest_support_transaction_network_error (PublishingRESTSupportTransaction* _sender, - GError* err, - gpointer self) -{ -#line 273 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - publishing_rajce_rajce_publisher_on_albums_fetch_error ((PublishingRajceRajcePublisher*) self, _sender, err); -#line 2638 "RajcePublishing.c" -} - - -static void -_publishing_rajce_rajce_publisher_on_albums_fetch_complete_publishing_rest_support_transaction_completed (PublishingRESTSupportTransaction* _sender, - gpointer self) -{ -#line 274 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - publishing_rajce_rajce_publisher_on_albums_fetch_complete ((PublishingRajceRajcePublisher*) self, _sender); -#line 2648 "RajcePublishing.c" -} - - -static void -publishing_rajce_rajce_publisher_do_fetch_albums (PublishingRajceRajcePublisher* self) -{ - SpitPublishingPluginHost* _tmp0_; - SpitPublishingPluginHost* _tmp1_; - PublishingRajceGetAlbumsTransaction* get_albums_trans = NULL; - PublishingRajceSession* _tmp2_; - gchar* _tmp3_; - gchar* _tmp4_; - PublishingRajceGetAlbumsTransaction* _tmp5_; - PublishingRajceGetAlbumsTransaction* _tmp6_; - GError * _inner_error_ = NULL; -#line 266 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_return_if_fail (PUBLISHING_RAJCE_IS_RAJCE_PUBLISHER (self)); -#line 268 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_debug ("RajcePublishing.vala:268: ACTION: fetching albums"); -#line 269 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp0_ = self->priv->host; -#line 269 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - spit_publishing_plugin_host_set_service_locked (_tmp0_, TRUE); -#line 270 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp1_ = self->priv->host; -#line 270 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - spit_publishing_plugin_host_install_account_fetch_wait_pane (_tmp1_); -#line 272 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp2_ = self->priv->session; -#line 272 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp3_ = publishing_rajce_rajce_publisher_get_url (self); -#line 272 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp4_ = _tmp3_; -#line 272 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp5_ = publishing_rajce_get_albums_transaction_new (_tmp2_, _tmp4_); -#line 272 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp6_ = _tmp5_; -#line 272 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_free0 (_tmp4_); -#line 272 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - get_albums_trans = _tmp6_; -#line 273 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (get_albums_trans, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "network-error", (GCallback) _publishing_rajce_rajce_publisher_on_albums_fetch_error_publishing_rest_support_transaction_network_error, self, 0); -#line 274 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (get_albums_trans, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "completed", (GCallback) _publishing_rajce_rajce_publisher_on_albums_fetch_complete_publishing_rest_support_transaction_completed, self, 0); -#line 2694 "RajcePublishing.c" - { -#line 278 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - publishing_rest_support_transaction_execute (G_TYPE_CHECK_INSTANCE_CAST (get_albums_trans, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), &_inner_error_); -#line 278 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 278 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - if (_inner_error_->domain == SPIT_PUBLISHING_PUBLISHING_ERROR) { -#line 2702 "RajcePublishing.c" - goto __catch18_spit_publishing_publishing_error; - } -#line 278 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _publishing_rest_support_transaction_unref0 (get_albums_trans); -#line 278 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 278 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_clear_error (&_inner_error_); -#line 278 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - return; -#line 2713 "RajcePublishing.c" - } - } - goto __finally18; - __catch18_spit_publishing_publishing_error: - { - GError* err = NULL; - GError* _tmp7_; -#line 276 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - err = _inner_error_; -#line 276 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _inner_error_ = NULL; -#line 282 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_debug ("RajcePublishing.vala:282: ERROR: do_fetch_albums"); -#line 283 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp7_ = err; -#line 283 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - publishing_rajce_rajce_publisher_do_show_error (self, _tmp7_); -#line 276 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_error_free0 (err); -#line 2733 "RajcePublishing.c" - } - __finally18: -#line 276 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 276 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _publishing_rest_support_transaction_unref0 (get_albums_trans); -#line 276 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 276 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_clear_error (&_inner_error_); -#line 276 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - return; -#line 2746 "RajcePublishing.c" - } -#line 266 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _publishing_rest_support_transaction_unref0 (get_albums_trans); -#line 2750 "RajcePublishing.c" -} - - -/** - * Event triggered when the fetch albums action completes successfully. - */ -static gint -_publishing_rajce_album_compare_albums_gcompare_data_func (gconstpointer a, - gconstpointer b, - gpointer self) -{ - gint result; - result = publishing_rajce_album_compare_albums ((PublishingRajceAlbum*) a, (PublishingRajceAlbum*) b); -#line 320 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - return result; -#line 2766 "RajcePublishing.c" -} - - -static void -publishing_rajce_rajce_publisher_on_albums_fetch_complete (PublishingRajceRajcePublisher* self, - PublishingRESTSupportTransaction* txn) -{ - guint _tmp0_; - guint _tmp1_; - gchar* _tmp2_; - gchar* _tmp3_; - PublishingRajceAlbum** _tmp4_; - gint _tmp4__length1; - GeeArrayList* list = NULL; - GeeArrayList* _tmp5_; - GError * _inner_error_ = NULL; -#line 290 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_return_if_fail (PUBLISHING_RAJCE_IS_RAJCE_PUBLISHER (self)); -#line 290 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_return_if_fail (PUBLISHING_REST_SUPPORT_IS_TRANSACTION (txn)); -#line 292 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_debug ("RajcePublishing.vala:292: EVENT: on_albums_fetch_complete"); -#line 293 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_signal_parse_name ("completed", PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, &_tmp0_, NULL, FALSE); -#line 293 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_signal_handlers_disconnect_matched (txn, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp0_, 0, NULL, (GCallback) _publishing_rajce_rajce_publisher_on_albums_fetch_complete_publishing_rest_support_transaction_completed, self); -#line 294 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_signal_parse_name ("network-error", PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, &_tmp1_, NULL, FALSE); -#line 294 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_signal_handlers_disconnect_matched (txn, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp1_, 0, NULL, (GCallback) _publishing_rajce_rajce_publisher_on_albums_fetch_error_publishing_rest_support_transaction_network_error, self); -#line 295 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp2_ = publishing_rest_support_transaction_get_response (txn); -#line 295 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp3_ = _tmp2_; -#line 295 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_debug ("RajcePublishing.vala:295: RajcePlugin: list of albums: %s", _tmp3_); -#line 295 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_free0 (_tmp3_); -#line 296 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp4_ = self->priv->albums; -#line 296 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp4__length1 = self->priv->albums_length1; -#line 296 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - if (_tmp4_ != NULL) { -#line 298 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - self->priv->albums = (_vala_array_free (self->priv->albums, self->priv->albums_length1, (GDestroyNotify) publishing_rajce_album_unref), NULL); -#line 298 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - self->priv->albums = NULL; -#line 298 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - self->priv->albums_length1 = 0; -#line 298 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - self->priv->_albums_size_ = self->priv->albums_length1; -#line 2819 "RajcePublishing.c" - } -#line 300 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp5_ = gee_array_list_new (PUBLISHING_RAJCE_TYPE_ALBUM, (GBoxedCopyFunc) publishing_rajce_album_ref, (GDestroyNotify) publishing_rajce_album_unref, NULL, NULL, NULL); -#line 300 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - list = _tmp5_; -#line 2825 "RajcePublishing.c" - { - PublishingRESTSupportXmlDocument* doc = NULL; - gchar* _tmp6_; - gchar* _tmp7_; - PublishingRESTSupportXmlDocument* _tmp8_; - PublishingRESTSupportXmlDocument* _tmp9_; - xmlNode* response = NULL; - PublishingRESTSupportXmlDocument* _tmp10_; - xmlNode* _tmp11_; - xmlNode* sessionToken = NULL; - PublishingRESTSupportXmlDocument* _tmp12_; - xmlNode* _tmp13_; - xmlNode* _tmp14_; - xmlNode* nodealbums = NULL; - PublishingRESTSupportXmlDocument* _tmp15_; - xmlNode* _tmp16_; - xmlNode* _tmp17_; - GeeArrayList* _tmp88_; - GeeArrayList* _tmp89_; - gint _tmp90_; - gpointer* _tmp91_; - PublishingRajceSession* _tmp92_; - xmlNode* _tmp93_; - gchar* _tmp94_; - gchar* _tmp95_; -#line 303 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp6_ = publishing_rest_support_transaction_get_response (txn); -#line 303 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp7_ = _tmp6_; -#line 303 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp8_ = publishing_rest_support_xml_document_parse_string (_tmp7_, _publishing_rajce_transaction_validate_xml_publishing_rest_support_xml_document_check_for_error_response, NULL, &_inner_error_); -#line 303 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp9_ = _tmp8_; -#line 303 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_free0 (_tmp7_); -#line 303 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - doc = _tmp9_; -#line 303 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 303 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - if (_inner_error_->domain == SPIT_PUBLISHING_PUBLISHING_ERROR) { -#line 2867 "RajcePublishing.c" - goto __catch19_spit_publishing_publishing_error; - } -#line 303 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_object_unref0 (list); -#line 303 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 303 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_clear_error (&_inner_error_); -#line 303 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - return; -#line 2878 "RajcePublishing.c" - } -#line 304 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp10_ = doc; -#line 304 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp11_ = publishing_rest_support_xml_document_get_root_node (_tmp10_); -#line 304 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - response = _tmp11_; -#line 305 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp12_ = doc; -#line 305 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp13_ = response; -#line 305 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp14_ = publishing_rest_support_xml_document_get_named_child (_tmp12_, _tmp13_, "sessionToken", &_inner_error_); -#line 305 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - sessionToken = _tmp14_; -#line 305 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 305 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _publishing_rest_support_xml_document_unref0 (doc); -#line 305 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - if (_inner_error_->domain == SPIT_PUBLISHING_PUBLISHING_ERROR) { -#line 2900 "RajcePublishing.c" - goto __catch19_spit_publishing_publishing_error; - } -#line 305 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _publishing_rest_support_xml_document_unref0 (doc); -#line 305 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_object_unref0 (list); -#line 305 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 305 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_clear_error (&_inner_error_); -#line 305 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - return; -#line 2913 "RajcePublishing.c" - } -#line 306 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp15_ = doc; -#line 306 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp16_ = response; -#line 306 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp17_ = publishing_rest_support_xml_document_get_named_child (_tmp15_, _tmp16_, "albums", &_inner_error_); -#line 306 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - nodealbums = _tmp17_; -#line 306 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 306 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _publishing_rest_support_xml_document_unref0 (doc); -#line 306 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - if (_inner_error_->domain == SPIT_PUBLISHING_PUBLISHING_ERROR) { -#line 2929 "RajcePublishing.c" - goto __catch19_spit_publishing_publishing_error; - } -#line 306 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _publishing_rest_support_xml_document_unref0 (doc); -#line 306 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_object_unref0 (list); -#line 306 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 306 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_clear_error (&_inner_error_); -#line 306 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - return; -#line 2942 "RajcePublishing.c" - } - { - xmlNode* album = NULL; - xmlNode* _tmp18_; - xmlNode* _tmp19_; -#line 307 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp18_ = nodealbums; -#line 307 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp19_ = _tmp18_->children; -#line 307 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - album = _tmp19_; -#line 2954 "RajcePublishing.c" - { - gboolean _tmp20_ = FALSE; -#line 307 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp20_ = TRUE; -#line 307 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - while (TRUE) { -#line 2961 "RajcePublishing.c" - xmlNode* _tmp23_; - gint id = 0; - xmlNode* _tmp24_; - gchar* _tmp25_; - gchar* _tmp26_; - gint _tmp27_; - xmlNode* _tmp28_ = NULL; - PublishingRESTSupportXmlDocument* _tmp29_; - xmlNode* _tmp30_; - xmlNode* _tmp31_; - gchar* albumName = NULL; - gchar* _tmp32_; - xmlNode* _tmp33_ = NULL; - PublishingRESTSupportXmlDocument* _tmp34_; - xmlNode* _tmp35_; - xmlNode* _tmp36_; - gchar* url = NULL; - gchar* _tmp37_; - xmlNode* _tmp38_ = NULL; - PublishingRESTSupportXmlDocument* _tmp39_; - xmlNode* _tmp40_; - xmlNode* _tmp41_; - gchar* thumbUrl = NULL; - gchar* _tmp42_; - xmlNode* _tmp43_ = NULL; - PublishingRESTSupportXmlDocument* _tmp44_; - xmlNode* _tmp45_; - xmlNode* _tmp46_; - gchar* createDate = NULL; - gchar* _tmp47_; - xmlNode* _tmp48_ = NULL; - PublishingRESTSupportXmlDocument* _tmp49_; - xmlNode* _tmp50_; - xmlNode* _tmp51_; - gchar* updateDate = NULL; - gchar* _tmp52_; - gboolean _tmp53_ = FALSE; - xmlNode* _tmp54_ = NULL; - PublishingRESTSupportXmlDocument* _tmp55_; - xmlNode* _tmp56_; - xmlNode* _tmp57_; - gchar* _tmp58_; - gchar* _tmp59_; - gboolean _tmp60_; - gboolean hidden = FALSE; - gboolean _tmp61_ = FALSE; - xmlNode* _tmp62_ = NULL; - PublishingRESTSupportXmlDocument* _tmp63_; - xmlNode* _tmp64_; - xmlNode* _tmp65_; - gchar* _tmp66_; - gchar* _tmp67_; - gboolean _tmp68_; - gboolean secure = FALSE; - xmlNode* _tmp69_ = NULL; - PublishingRESTSupportXmlDocument* _tmp70_; - xmlNode* _tmp71_; - xmlNode* _tmp72_; - gint photoCount = 0; - gchar* _tmp73_; - gchar* _tmp74_; - gint _tmp75_; - GeeArrayList* _tmp76_; - gint _tmp77_; - const gchar* _tmp78_; - const gchar* _tmp79_; - const gchar* _tmp80_; - const gchar* _tmp81_; - const gchar* _tmp82_; - gboolean _tmp83_; - gboolean _tmp84_; - gint _tmp85_; - PublishingRajceAlbum* _tmp86_; - PublishingRajceAlbum* _tmp87_; -#line 307 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - if (!_tmp20_) { -#line 3038 "RajcePublishing.c" - xmlNode* _tmp21_; - xmlNode* _tmp22_; -#line 307 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp21_ = album; -#line 307 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp22_ = _tmp21_->next; -#line 307 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - album = _tmp22_; -#line 3047 "RajcePublishing.c" - } -#line 307 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp20_ = FALSE; -#line 307 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp23_ = album; -#line 307 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - if (!(_tmp23_ != NULL)) { -#line 307 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - break; -#line 3057 "RajcePublishing.c" - } -#line 309 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp24_ = album; -#line 309 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp25_ = (gchar*) xmlGetProp (_tmp24_, (xmlChar*) "id"); -#line 309 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp26_ = _tmp25_; -#line 309 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp27_ = atoi (_tmp26_); -#line 309 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_free0 (_tmp26_); -#line 309 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - id = _tmp27_; -#line 310 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp29_ = doc; -#line 310 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp30_ = album; -#line 310 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp31_ = publishing_rest_support_xml_document_get_named_child (_tmp29_, _tmp30_, "albumName", &_inner_error_); -#line 310 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp28_ = _tmp31_; -#line 310 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 310 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _publishing_rest_support_xml_document_unref0 (doc); -#line 310 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - if (_inner_error_->domain == SPIT_PUBLISHING_PUBLISHING_ERROR) { -#line 3085 "RajcePublishing.c" - goto __catch19_spit_publishing_publishing_error; - } -#line 310 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _publishing_rest_support_xml_document_unref0 (doc); -#line 310 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_object_unref0 (list); -#line 310 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 310 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_clear_error (&_inner_error_); -#line 310 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - return; -#line 3098 "RajcePublishing.c" - } -#line 310 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp32_ = (gchar*) xmlNodeGetContent (_tmp28_); -#line 310 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - albumName = _tmp32_; -#line 311 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp34_ = doc; -#line 311 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp35_ = album; -#line 311 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp36_ = publishing_rest_support_xml_document_get_named_child (_tmp34_, _tmp35_, "url", &_inner_error_); -#line 311 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp33_ = _tmp36_; -#line 311 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 311 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_free0 (albumName); -#line 311 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _publishing_rest_support_xml_document_unref0 (doc); -#line 311 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - if (_inner_error_->domain == SPIT_PUBLISHING_PUBLISHING_ERROR) { -#line 3120 "RajcePublishing.c" - goto __catch19_spit_publishing_publishing_error; - } -#line 311 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_free0 (albumName); -#line 311 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _publishing_rest_support_xml_document_unref0 (doc); -#line 311 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_object_unref0 (list); -#line 311 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 311 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_clear_error (&_inner_error_); -#line 311 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - return; -#line 3135 "RajcePublishing.c" - } -#line 311 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp37_ = (gchar*) xmlNodeGetContent (_tmp33_); -#line 311 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - url = _tmp37_; -#line 312 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp39_ = doc; -#line 312 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp40_ = album; -#line 312 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp41_ = publishing_rest_support_xml_document_get_named_child (_tmp39_, _tmp40_, "thumbUrl", &_inner_error_); -#line 312 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp38_ = _tmp41_; -#line 312 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 312 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_free0 (url); -#line 312 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_free0 (albumName); -#line 312 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _publishing_rest_support_xml_document_unref0 (doc); -#line 312 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - if (_inner_error_->domain == SPIT_PUBLISHING_PUBLISHING_ERROR) { -#line 3159 "RajcePublishing.c" - goto __catch19_spit_publishing_publishing_error; - } -#line 312 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_free0 (url); -#line 312 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_free0 (albumName); -#line 312 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _publishing_rest_support_xml_document_unref0 (doc); -#line 312 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_object_unref0 (list); -#line 312 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 312 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_clear_error (&_inner_error_); -#line 312 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - return; -#line 3176 "RajcePublishing.c" - } -#line 312 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp42_ = (gchar*) xmlNodeGetContent (_tmp38_); -#line 312 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - thumbUrl = _tmp42_; -#line 313 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp44_ = doc; -#line 313 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp45_ = album; -#line 313 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp46_ = publishing_rest_support_xml_document_get_named_child (_tmp44_, _tmp45_, "createDate", &_inner_error_); -#line 313 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp43_ = _tmp46_; -#line 313 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 313 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_free0 (thumbUrl); -#line 313 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_free0 (url); -#line 313 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_free0 (albumName); -#line 313 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _publishing_rest_support_xml_document_unref0 (doc); -#line 313 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - if (_inner_error_->domain == SPIT_PUBLISHING_PUBLISHING_ERROR) { -#line 3202 "RajcePublishing.c" - goto __catch19_spit_publishing_publishing_error; - } -#line 313 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_free0 (thumbUrl); -#line 313 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_free0 (url); -#line 313 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_free0 (albumName); -#line 313 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _publishing_rest_support_xml_document_unref0 (doc); -#line 313 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_object_unref0 (list); -#line 313 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 313 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_clear_error (&_inner_error_); -#line 313 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - return; -#line 3221 "RajcePublishing.c" - } -#line 313 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp47_ = (gchar*) xmlNodeGetContent (_tmp43_); -#line 313 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - createDate = _tmp47_; -#line 314 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp49_ = doc; -#line 314 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp50_ = album; -#line 314 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp51_ = publishing_rest_support_xml_document_get_named_child (_tmp49_, _tmp50_, "updateDate", &_inner_error_); -#line 314 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp48_ = _tmp51_; -#line 314 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 314 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_free0 (createDate); -#line 314 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_free0 (thumbUrl); -#line 314 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_free0 (url); -#line 314 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_free0 (albumName); -#line 314 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _publishing_rest_support_xml_document_unref0 (doc); -#line 314 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - if (_inner_error_->domain == SPIT_PUBLISHING_PUBLISHING_ERROR) { -#line 3249 "RajcePublishing.c" - goto __catch19_spit_publishing_publishing_error; - } -#line 314 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_free0 (createDate); -#line 314 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_free0 (thumbUrl); -#line 314 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_free0 (url); -#line 314 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_free0 (albumName); -#line 314 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _publishing_rest_support_xml_document_unref0 (doc); -#line 314 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_object_unref0 (list); -#line 314 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 314 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_clear_error (&_inner_error_); -#line 314 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - return; -#line 3270 "RajcePublishing.c" - } -#line 314 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp52_ = (gchar*) xmlNodeGetContent (_tmp48_); -#line 314 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - updateDate = _tmp52_; -#line 315 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp55_ = doc; -#line 315 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp56_ = album; -#line 315 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp57_ = publishing_rest_support_xml_document_get_named_child (_tmp55_, _tmp56_, "hidden", &_inner_error_); -#line 315 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp54_ = _tmp57_; -#line 315 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 315 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_free0 (updateDate); -#line 315 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_free0 (createDate); -#line 315 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_free0 (thumbUrl); -#line 315 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_free0 (url); -#line 315 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_free0 (albumName); -#line 315 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _publishing_rest_support_xml_document_unref0 (doc); -#line 315 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - if (_inner_error_->domain == SPIT_PUBLISHING_PUBLISHING_ERROR) { -#line 3300 "RajcePublishing.c" - goto __catch19_spit_publishing_publishing_error; - } -#line 315 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_free0 (updateDate); -#line 315 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_free0 (createDate); -#line 315 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_free0 (thumbUrl); -#line 315 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_free0 (url); -#line 315 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_free0 (albumName); -#line 315 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _publishing_rest_support_xml_document_unref0 (doc); -#line 315 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_object_unref0 (list); -#line 315 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 315 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_clear_error (&_inner_error_); -#line 315 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - return; -#line 3323 "RajcePublishing.c" - } -#line 315 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp58_ = (gchar*) xmlNodeGetContent (_tmp54_); -#line 315 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp59_ = _tmp58_; -#line 315 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp60_ = atoi (_tmp59_) > 0; -#line 315 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_free0 (_tmp59_); -#line 315 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - if (_tmp60_) { -#line 315 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp53_ = TRUE; -#line 3337 "RajcePublishing.c" - } else { -#line 315 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp53_ = FALSE; -#line 3341 "RajcePublishing.c" - } -#line 315 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - hidden = _tmp53_; -#line 316 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp63_ = doc; -#line 316 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp64_ = album; -#line 316 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp65_ = publishing_rest_support_xml_document_get_named_child (_tmp63_, _tmp64_, "secure", &_inner_error_); -#line 316 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp62_ = _tmp65_; -#line 316 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 316 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_free0 (updateDate); -#line 316 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_free0 (createDate); -#line 316 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_free0 (thumbUrl); -#line 316 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_free0 (url); -#line 316 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_free0 (albumName); -#line 316 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _publishing_rest_support_xml_document_unref0 (doc); -#line 316 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - if (_inner_error_->domain == SPIT_PUBLISHING_PUBLISHING_ERROR) { -#line 3369 "RajcePublishing.c" - goto __catch19_spit_publishing_publishing_error; - } -#line 316 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_free0 (updateDate); -#line 316 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_free0 (createDate); -#line 316 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_free0 (thumbUrl); -#line 316 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_free0 (url); -#line 316 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_free0 (albumName); -#line 316 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _publishing_rest_support_xml_document_unref0 (doc); -#line 316 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_object_unref0 (list); -#line 316 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 316 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_clear_error (&_inner_error_); -#line 316 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - return; -#line 3392 "RajcePublishing.c" - } -#line 316 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp66_ = (gchar*) xmlNodeGetContent (_tmp62_); -#line 316 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp67_ = _tmp66_; -#line 316 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp68_ = atoi (_tmp67_) > 0; -#line 316 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_free0 (_tmp67_); -#line 316 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - if (_tmp68_) { -#line 316 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp61_ = TRUE; -#line 3406 "RajcePublishing.c" - } else { -#line 316 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp61_ = FALSE; -#line 3410 "RajcePublishing.c" - } -#line 316 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - secure = _tmp61_; -#line 317 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp70_ = doc; -#line 317 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp71_ = album; -#line 317 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp72_ = publishing_rest_support_xml_document_get_named_child (_tmp70_, _tmp71_, "photoCount", &_inner_error_); -#line 317 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp69_ = _tmp72_; -#line 317 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 317 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_free0 (updateDate); -#line 317 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_free0 (createDate); -#line 317 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_free0 (thumbUrl); -#line 317 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_free0 (url); -#line 317 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_free0 (albumName); -#line 317 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _publishing_rest_support_xml_document_unref0 (doc); -#line 317 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - if (_inner_error_->domain == SPIT_PUBLISHING_PUBLISHING_ERROR) { -#line 3438 "RajcePublishing.c" - goto __catch19_spit_publishing_publishing_error; - } -#line 317 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_free0 (updateDate); -#line 317 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_free0 (createDate); -#line 317 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_free0 (thumbUrl); -#line 317 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_free0 (url); -#line 317 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_free0 (albumName); -#line 317 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _publishing_rest_support_xml_document_unref0 (doc); -#line 317 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_object_unref0 (list); -#line 317 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 317 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_clear_error (&_inner_error_); -#line 317 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - return; -#line 3461 "RajcePublishing.c" - } -#line 317 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp73_ = (gchar*) xmlNodeGetContent (_tmp69_); -#line 317 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp74_ = _tmp73_; -#line 317 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp75_ = atoi (_tmp74_); -#line 317 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_free0 (_tmp74_); -#line 317 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - photoCount = _tmp75_; -#line 318 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp76_ = list; -#line 318 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp77_ = id; -#line 318 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp78_ = albumName; -#line 318 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp79_ = url; -#line 318 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp80_ = thumbUrl; -#line 318 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp81_ = createDate; -#line 318 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp82_ = updateDate; -#line 318 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp83_ = hidden; -#line 318 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp84_ = secure; -#line 318 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp85_ = photoCount; -#line 318 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp86_ = publishing_rajce_album_new (_tmp77_, _tmp78_, _tmp79_, _tmp80_, _tmp81_, _tmp82_, _tmp83_, _tmp84_, _tmp85_); -#line 318 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp87_ = _tmp86_; -#line 318 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - gee_abstract_list_insert (G_TYPE_CHECK_INSTANCE_CAST (_tmp76_, GEE_TYPE_ABSTRACT_LIST, GeeAbstractList), 0, _tmp87_); -#line 318 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _publishing_rajce_album_unref0 (_tmp87_); -#line 307 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_free0 (updateDate); -#line 307 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_free0 (createDate); -#line 307 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_free0 (thumbUrl); -#line 307 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_free0 (url); -#line 307 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_free0 (albumName); -#line 3511 "RajcePublishing.c" - } - } - } -#line 320 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp88_ = list; -#line 320 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - gee_list_sort (G_TYPE_CHECK_INSTANCE_CAST (_tmp88_, GEE_TYPE_LIST, GeeList), _publishing_rajce_album_compare_albums_gcompare_data_func, NULL, NULL); -#line 321 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp89_ = list; -#line 321 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp91_ = gee_collection_to_array (G_TYPE_CHECK_INSTANCE_CAST (_tmp89_, GEE_TYPE_COLLECTION, GeeCollection), &_tmp90_); -#line 321 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - self->priv->albums = (_vala_array_free (self->priv->albums, self->priv->albums_length1, (GDestroyNotify) publishing_rajce_album_unref), NULL); -#line 321 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - self->priv->albums = _tmp91_; -#line 321 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - self->priv->albums_length1 = _tmp90_; -#line 321 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - self->priv->_albums_size_ = self->priv->albums_length1; -#line 322 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp92_ = self->priv->session; -#line 322 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp93_ = sessionToken; -#line 322 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp94_ = (gchar*) xmlNodeGetContent (_tmp93_); -#line 322 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp95_ = _tmp94_; -#line 322 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - publishing_rajce_session_set_usertoken (_tmp92_, _tmp95_); -#line 322 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_free0 (_tmp95_); -#line 301 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _publishing_rest_support_xml_document_unref0 (doc); -#line 3545 "RajcePublishing.c" - } - goto __finally19; - __catch19_spit_publishing_publishing_error: - { - GError* err = NULL; - GError* _tmp96_; -#line 301 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - err = _inner_error_; -#line 301 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _inner_error_ = NULL; -#line 326 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_debug ("RajcePublishing.vala:326: ERROR: on_albums_fetch_complete"); -#line 327 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp96_ = err; -#line 327 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - publishing_rajce_rajce_publisher_do_show_error (self, _tmp96_); -#line 328 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_error_free0 (err); -#line 328 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_object_unref0 (list); -#line 328 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - return; -#line 3568 "RajcePublishing.c" - } - __finally19: -#line 301 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 301 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_object_unref0 (list); -#line 301 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 301 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_clear_error (&_inner_error_); -#line 301 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - return; -#line 3581 "RajcePublishing.c" - } -#line 330 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - publishing_rajce_rajce_publisher_do_show_publishing_options_pane (self); -#line 290 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_object_unref0 (list); -#line 3587 "RajcePublishing.c" -} - - -/** - * Event triggered when the fetch albums transaction fails due to a network error. - */ -static void -publishing_rajce_rajce_publisher_on_albums_fetch_error (PublishingRajceRajcePublisher* self, - PublishingRESTSupportTransaction* bad_txn, - GError* err) -{ - guint _tmp0_; - guint _tmp1_; -#line 336 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_return_if_fail (PUBLISHING_RAJCE_IS_RAJCE_PUBLISHER (self)); -#line 336 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_return_if_fail (PUBLISHING_REST_SUPPORT_IS_TRANSACTION (bad_txn)); -#line 338 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_debug ("RajcePublishing.vala:338: EVENT: on_albums_fetch_error"); -#line 339 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_signal_parse_name ("completed", PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, &_tmp0_, NULL, FALSE); -#line 339 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_signal_handlers_disconnect_matched (bad_txn, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp0_, 0, NULL, (GCallback) _publishing_rajce_rajce_publisher_on_albums_fetch_complete_publishing_rest_support_transaction_completed, self); -#line 340 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_signal_parse_name ("network-error", PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, &_tmp1_, NULL, FALSE); -#line 340 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_signal_handlers_disconnect_matched (bad_txn, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp1_, 0, NULL, (GCallback) _publishing_rajce_rajce_publisher_on_albums_fetch_error_publishing_rest_support_transaction_network_error, self); -#line 341 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - publishing_rajce_rajce_publisher_on_network_error (self, bad_txn, err); -#line 3617 "RajcePublishing.c" -} - - -/** - * Action that shows the publishing options pane. - */ -static void -_publishing_rajce_rajce_publisher_on_publishing_options_pane_logout_clicked_publishing_rajce_publishing_options_pane_logout (PublishingRajcePublishingOptionsPane* _sender, - gpointer self) -{ -#line 352 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - publishing_rajce_rajce_publisher_on_publishing_options_pane_logout_clicked ((PublishingRajceRajcePublisher*) self); -#line 3630 "RajcePublishing.c" -} - - -static void -_publishing_rajce_rajce_publisher_on_publishing_options_pane_publish_clicked_publishing_rajce_publishing_options_pane_publish (PublishingRajcePublishingOptionsPane* _sender, - PublishingRajcePublishingParameters* parameters, - gpointer self) -{ -#line 353 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - publishing_rajce_rajce_publisher_on_publishing_options_pane_publish_clicked ((PublishingRajceRajcePublisher*) self, parameters); -#line 3641 "RajcePublishing.c" -} - - -static void -publishing_rajce_rajce_publisher_do_show_publishing_options_pane (PublishingRajceRajcePublisher* self) -{ - SpitPublishingPluginHost* _tmp0_; - PublishingRajcePublishingOptionsPane* opts_pane = NULL; - PublishingRajceSession* _tmp1_; - gchar* _tmp2_; - gchar* _tmp3_; - PublishingRajceAlbum** _tmp4_; - gint _tmp4__length1; - PublishingRajcePublishingOptionsPane* _tmp5_; - PublishingRajcePublishingOptionsPane* _tmp6_; - SpitPublishingPluginHost* _tmp7_; - SpitPublishingPluginHost* _tmp8_; - GtkWidget* _tmp9_; - GtkWidget* _tmp10_; -#line 347 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_return_if_fail (PUBLISHING_RAJCE_IS_RAJCE_PUBLISHER (self)); -#line 349 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_debug ("RajcePublishing.vala:349: ACTION: installing publishing options pane"); -#line 350 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp0_ = self->priv->host; -#line 350 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - spit_publishing_plugin_host_set_service_locked (_tmp0_, FALSE); -#line 351 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp1_ = self->priv->session; -#line 351 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp2_ = publishing_rajce_session_get_username (_tmp1_); -#line 351 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp3_ = _tmp2_; -#line 351 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp4_ = self->priv->albums; -#line 351 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp4__length1 = self->priv->albums_length1; -#line 351 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp5_ = publishing_rajce_publishing_options_pane_new (self, _tmp3_, _tmp4_, _tmp4__length1); -#line 351 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp6_ = _tmp5_; -#line 351 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_free0 (_tmp3_); -#line 351 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - opts_pane = _tmp6_; -#line 352 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_signal_connect_object (opts_pane, "logout", (GCallback) _publishing_rajce_rajce_publisher_on_publishing_options_pane_logout_clicked_publishing_rajce_publishing_options_pane_logout, self, 0); -#line 353 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_signal_connect_object (opts_pane, "publish", (GCallback) _publishing_rajce_rajce_publisher_on_publishing_options_pane_publish_clicked_publishing_rajce_publishing_options_pane_publish, self, 0); -#line 354 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp7_ = self->priv->host; -#line 354 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - spit_publishing_plugin_host_install_dialog_pane (_tmp7_, G_TYPE_CHECK_INSTANCE_CAST (opts_pane, SPIT_PUBLISHING_TYPE_DIALOG_PANE, SpitPublishingDialogPane), SPIT_PUBLISHING_PLUGIN_HOST_BUTTON_MODE_CLOSE); -#line 355 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp8_ = self->priv->host; -#line 355 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp9_ = publishing_rajce_publishing_options_pane_get_default_widget (opts_pane); -#line 355 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp10_ = _tmp9_; -#line 355 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - spit_publishing_plugin_host_set_dialog_default_widget (_tmp8_, _tmp10_); -#line 355 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_object_unref0 (_tmp10_); -#line 347 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_object_unref0 (opts_pane); -#line 3707 "RajcePublishing.c" -} - - -/** - * Event triggered when the user clicks logout in the publishing options pane. - */ -static void -publishing_rajce_rajce_publisher_on_publishing_options_pane_logout_clicked (PublishingRajceRajcePublisher* self) -{ - PublishingRajceSession* _tmp0_; -#line 361 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_return_if_fail (PUBLISHING_RAJCE_IS_RAJCE_PUBLISHER (self)); -#line 363 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_debug ("RajcePublishing.vala:363: EVENT: on_publishing_options_pane_logout_cli" \ -"cked"); -#line 364 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp0_ = self->priv->session; -#line 364 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - publishing_rajce_session_deauthenticate (_tmp0_); -#line 365 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - publishing_rajce_rajce_publisher_do_show_authentication_pane (self, PUBLISHING_RAJCE_AUTHENTICATION_PANE_MODE_INTRO); -#line 3728 "RajcePublishing.c" -} - - -/** - * Event triggered when the user clicks publish in the publishing options pane. - * - * @param parameters the publishing parameters - */ -static gpointer -_publishing_rajce_publishing_parameters_ref0 (gpointer self) -{ -#line 376 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - return self ? publishing_rajce_publishing_parameters_ref (self) : NULL; -#line 3742 "RajcePublishing.c" -} - - -static void -publishing_rajce_rajce_publisher_on_publishing_options_pane_publish_clicked (PublishingRajceRajcePublisher* self, - PublishingRajcePublishingParameters* parameters) -{ - PublishingRajcePublishingParameters* _tmp0_; -#line 373 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_return_if_fail (PUBLISHING_RAJCE_IS_RAJCE_PUBLISHER (self)); -#line 373 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_return_if_fail (PUBLISHING_RAJCE_IS_PUBLISHING_PARAMETERS (parameters)); -#line 375 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_debug ("RajcePublishing.vala:375: EVENT: on_publishing_options_pane_publish_cl" \ -"icked"); -#line 376 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp0_ = _publishing_rajce_publishing_parameters_ref0 (parameters); -#line 376 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _publishing_rajce_publishing_parameters_unref0 (self->priv->parameters); -#line 376 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - self->priv->parameters = _tmp0_; -#line 377 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - publishing_rajce_rajce_publisher_do_begin_upload (self); -#line 3765 "RajcePublishing.c" -} - - -/** - * Begin upload action: open existing album or create a new one - */ -static gboolean -_int_equal (const gint * s1, - const gint * s2) -{ -#line 386 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - if (s1 == s2) { -#line 386 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - return TRUE; -#line 3780 "RajcePublishing.c" - } -#line 386 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - if (s1 == NULL) { -#line 386 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - return FALSE; -#line 3786 "RajcePublishing.c" - } -#line 386 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - if (s2 == NULL) { -#line 386 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - return FALSE; -#line 3792 "RajcePublishing.c" - } -#line 386 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - return (*s1) == (*s2); -#line 3796 "RajcePublishing.c" -} - - -static void -_publishing_rajce_rajce_publisher_on_create_album_error_publishing_rest_support_transaction_network_error (PublishingRESTSupportTransaction* _sender, - GError* err, - gpointer self) -{ -#line 391 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - publishing_rajce_rajce_publisher_on_create_album_error ((PublishingRajceRajcePublisher*) self, _sender, err); -#line 3807 "RajcePublishing.c" -} - - -static void -_publishing_rajce_rajce_publisher_on_create_album_complete_publishing_rest_support_transaction_completed (PublishingRESTSupportTransaction* _sender, - gpointer self) -{ -#line 392 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - publishing_rajce_rajce_publisher_on_create_album_complete ((PublishingRajceRajcePublisher*) self, _sender); -#line 3817 "RajcePublishing.c" -} - - -static void -_publishing_rajce_rajce_publisher_on_open_album_error_publishing_rest_support_transaction_network_error (PublishingRESTSupportTransaction* _sender, - GError* err, - gpointer self) -{ -#line 408 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - publishing_rajce_rajce_publisher_on_open_album_error ((PublishingRajceRajcePublisher*) self, _sender, err); -#line 3828 "RajcePublishing.c" -} - - -static void -_publishing_rajce_rajce_publisher_on_open_album_complete_publishing_rest_support_transaction_completed (PublishingRESTSupportTransaction* _sender, - gpointer self) -{ -#line 409 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - publishing_rajce_rajce_publisher_on_open_album_complete ((PublishingRajceRajcePublisher*) self, _sender); -#line 3838 "RajcePublishing.c" -} - - -static void -publishing_rajce_rajce_publisher_do_begin_upload (PublishingRajceRajcePublisher* self) -{ - SpitPublishingPluginHost* _tmp0_; - PublishingRajcePublishingParameters* _tmp1_; - gint* _tmp2_; - gint _tmp3_; - GError * _inner_error_ = NULL; -#line 383 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_return_if_fail (PUBLISHING_RAJCE_IS_RAJCE_PUBLISHER (self)); -#line 385 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp0_ = self->priv->host; -#line 385 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - spit_publishing_plugin_host_set_service_locked (_tmp0_, TRUE); -#line 386 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp1_ = self->priv->parameters; -#line 386 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp2_ = _tmp1_->album_id; -#line 386 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp3_ = 0; -#line 386 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - if (_int_equal (_tmp2_, &_tmp3_) == TRUE) { -#line 3864 "RajcePublishing.c" - PublishingRajceCreateAlbumTransaction* create_album_trans = NULL; - PublishingRajceSession* _tmp4_; - gchar* _tmp5_; - gchar* _tmp6_; - PublishingRajcePublishingParameters* _tmp7_; - const gchar* _tmp8_; - PublishingRajcePublishingParameters* _tmp9_; - gboolean* _tmp10_; - PublishingRajceCreateAlbumTransaction* _tmp11_; - PublishingRajceCreateAlbumTransaction* _tmp12_; - PublishingRajceCreateAlbumTransaction* _tmp13_; - PublishingRajceCreateAlbumTransaction* _tmp14_; -#line 389 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_debug ("RajcePublishing.vala:389: ACTION: closing album"); -#line 390 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp4_ = self->priv->session; -#line 390 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp5_ = publishing_rajce_rajce_publisher_get_url (self); -#line 390 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp6_ = _tmp5_; -#line 390 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp7_ = self->priv->parameters; -#line 390 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp8_ = _tmp7_->album_name; -#line 390 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp9_ = self->priv->parameters; -#line 390 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp10_ = _tmp9_->album_hidden; -#line 390 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp11_ = publishing_rajce_create_album_transaction_new (_tmp4_, _tmp6_, _tmp8_, *_tmp10_); -#line 390 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp12_ = _tmp11_; -#line 390 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_free0 (_tmp6_); -#line 390 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - create_album_trans = _tmp12_; -#line 391 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp13_ = create_album_trans; -#line 391 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp13_, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "network-error", (GCallback) _publishing_rajce_rajce_publisher_on_create_album_error_publishing_rest_support_transaction_network_error, self, 0); -#line 392 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp14_ = create_album_trans; -#line 392 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp14_, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "completed", (GCallback) _publishing_rajce_rajce_publisher_on_create_album_complete_publishing_rest_support_transaction_completed, self, 0); -#line 3909 "RajcePublishing.c" - { - PublishingRajceCreateAlbumTransaction* _tmp15_; -#line 395 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp15_ = create_album_trans; -#line 395 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - publishing_rest_support_transaction_execute (G_TYPE_CHECK_INSTANCE_CAST (_tmp15_, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), &_inner_error_); -#line 395 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 395 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - if (_inner_error_->domain == SPIT_PUBLISHING_PUBLISHING_ERROR) { -#line 3920 "RajcePublishing.c" - goto __catch20_spit_publishing_publishing_error; - } -#line 395 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _publishing_rest_support_transaction_unref0 (create_album_trans); -#line 395 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 395 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_clear_error (&_inner_error_); -#line 395 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - return; -#line 3931 "RajcePublishing.c" - } - } - goto __finally20; - __catch20_spit_publishing_publishing_error: - { - GError* err = NULL; - GError* _tmp16_; -#line 393 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - err = _inner_error_; -#line 393 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _inner_error_ = NULL; -#line 399 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_debug ("RajcePublishing.vala:399: ERROR: create album"); -#line 400 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp16_ = err; -#line 400 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - publishing_rajce_rajce_publisher_do_show_error (self, _tmp16_); -#line 393 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_error_free0 (err); -#line 3951 "RajcePublishing.c" - } - __finally20: -#line 393 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 393 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _publishing_rest_support_transaction_unref0 (create_album_trans); -#line 393 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 393 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_clear_error (&_inner_error_); -#line 393 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - return; -#line 3964 "RajcePublishing.c" - } -#line 386 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _publishing_rest_support_transaction_unref0 (create_album_trans); -#line 3968 "RajcePublishing.c" - } else { - PublishingRajceOpenAlbumTransaction* open_album_trans = NULL; - PublishingRajceSession* _tmp17_; - gchar* _tmp18_; - gchar* _tmp19_; - PublishingRajcePublishingParameters* _tmp20_; - gint* _tmp21_; - PublishingRajceOpenAlbumTransaction* _tmp22_; - PublishingRajceOpenAlbumTransaction* _tmp23_; - PublishingRajceOpenAlbumTransaction* _tmp24_; - PublishingRajceOpenAlbumTransaction* _tmp25_; -#line 406 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_debug ("RajcePublishing.vala:406: ACTION: opening album"); -#line 407 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp17_ = self->priv->session; -#line 407 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp18_ = publishing_rajce_rajce_publisher_get_url (self); -#line 407 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp19_ = _tmp18_; -#line 407 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp20_ = self->priv->parameters; -#line 407 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp21_ = _tmp20_->album_id; -#line 407 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp22_ = publishing_rajce_open_album_transaction_new (_tmp17_, _tmp19_, *_tmp21_); -#line 407 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp23_ = _tmp22_; -#line 407 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_free0 (_tmp19_); -#line 407 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - open_album_trans = _tmp23_; -#line 408 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp24_ = open_album_trans; -#line 408 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp24_, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "network-error", (GCallback) _publishing_rajce_rajce_publisher_on_open_album_error_publishing_rest_support_transaction_network_error, self, 0); -#line 409 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp25_ = open_album_trans; -#line 409 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp25_, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "completed", (GCallback) _publishing_rajce_rajce_publisher_on_open_album_complete_publishing_rest_support_transaction_completed, self, 0); -#line 4008 "RajcePublishing.c" - { - PublishingRajceOpenAlbumTransaction* _tmp26_; -#line 412 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp26_ = open_album_trans; -#line 412 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - publishing_rest_support_transaction_execute (G_TYPE_CHECK_INSTANCE_CAST (_tmp26_, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), &_inner_error_); -#line 412 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 412 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - if (_inner_error_->domain == SPIT_PUBLISHING_PUBLISHING_ERROR) { -#line 4019 "RajcePublishing.c" - goto __catch21_spit_publishing_publishing_error; - } -#line 412 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _publishing_rest_support_transaction_unref0 (open_album_trans); -#line 412 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 412 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_clear_error (&_inner_error_); -#line 412 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - return; -#line 4030 "RajcePublishing.c" - } - } - goto __finally21; - __catch21_spit_publishing_publishing_error: - { - GError* err = NULL; - GError* _tmp27_; -#line 410 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - err = _inner_error_; -#line 410 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _inner_error_ = NULL; -#line 416 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_debug ("RajcePublishing.vala:416: ERROR: open album"); -#line 417 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp27_ = err; -#line 417 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - publishing_rajce_rajce_publisher_do_show_error (self, _tmp27_); -#line 410 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_error_free0 (err); -#line 4050 "RajcePublishing.c" - } - __finally21: -#line 410 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 410 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _publishing_rest_support_transaction_unref0 (open_album_trans); -#line 410 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 410 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_clear_error (&_inner_error_); -#line 410 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - return; -#line 4063 "RajcePublishing.c" - } -#line 386 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _publishing_rest_support_transaction_unref0 (open_album_trans); -#line 4067 "RajcePublishing.c" - } -} - - -/** - * Event triggered when the create album completes successfully. - */ -static gint* -_int_dup (gint* self) -{ - gint* dup; -#line 437 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - dup = g_new0 (gint, 1); -#line 437 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - memcpy (dup, self, sizeof (gint)); -#line 437 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - return dup; -#line 4085 "RajcePublishing.c" -} - - -static gpointer -__int_dup0 (gpointer self) -{ -#line 437 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - return self ? _int_dup (self) : NULL; -#line 4094 "RajcePublishing.c" -} - - -static void -publishing_rajce_rajce_publisher_on_create_album_complete (PublishingRajceRajcePublisher* self, - PublishingRESTSupportTransaction* txn) -{ - guint _tmp0_; - guint _tmp1_; - gchar* _tmp2_; - gchar* _tmp3_; - GError * _inner_error_ = NULL; -#line 425 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_return_if_fail (PUBLISHING_RAJCE_IS_RAJCE_PUBLISHER (self)); -#line 425 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_return_if_fail (PUBLISHING_REST_SUPPORT_IS_TRANSACTION (txn)); -#line 427 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_debug ("RajcePublishing.vala:427: EVENT: on_create_album_complete"); -#line 428 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_signal_parse_name ("completed", PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, &_tmp0_, NULL, FALSE); -#line 428 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_signal_handlers_disconnect_matched (txn, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp0_, 0, NULL, (GCallback) _publishing_rajce_rajce_publisher_on_create_album_complete_publishing_rest_support_transaction_completed, self); -#line 429 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_signal_parse_name ("network-error", PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, &_tmp1_, NULL, FALSE); -#line 429 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_signal_handlers_disconnect_matched (txn, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp1_, 0, NULL, (GCallback) _publishing_rajce_rajce_publisher_on_create_album_error_publishing_rest_support_transaction_network_error, self); -#line 430 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp2_ = publishing_rest_support_transaction_get_response (txn); -#line 430 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp3_ = _tmp2_; -#line 430 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_debug ("RajcePublishing.vala:430: RajcePlugin: create album: %s", _tmp3_); -#line 430 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_free0 (_tmp3_); -#line 4129 "RajcePublishing.c" - { - PublishingRESTSupportXmlDocument* doc = NULL; - gchar* _tmp4_; - gchar* _tmp5_; - PublishingRESTSupportXmlDocument* _tmp6_; - PublishingRESTSupportXmlDocument* _tmp7_; - xmlNode* response = NULL; - PublishingRESTSupportXmlDocument* _tmp8_; - xmlNode* _tmp9_; - xmlNode* _tmp10_ = NULL; - PublishingRESTSupportXmlDocument* _tmp11_; - xmlNode* _tmp12_; - xmlNode* _tmp13_; - gchar* sessionToken = NULL; - gchar* _tmp14_; - xmlNode* _tmp15_ = NULL; - PublishingRESTSupportXmlDocument* _tmp16_; - xmlNode* _tmp17_; - xmlNode* _tmp18_; - gchar* albumToken = NULL; - gchar* _tmp19_; - xmlNode* _tmp20_ = NULL; - PublishingRESTSupportXmlDocument* _tmp21_; - xmlNode* _tmp22_; - xmlNode* _tmp23_; - PublishingRajcePublishingParameters* _tmp24_; - gchar* _tmp25_; - gchar* _tmp26_; - gint _tmp27_; - gint* _tmp28_; - PublishingRajceSession* _tmp29_; - const gchar* _tmp30_; - PublishingRajceSession* _tmp31_; - const gchar* _tmp32_; -#line 433 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp4_ = publishing_rest_support_transaction_get_response (txn); -#line 433 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp5_ = _tmp4_; -#line 433 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp6_ = publishing_rest_support_xml_document_parse_string (_tmp5_, _publishing_rajce_transaction_validate_xml_publishing_rest_support_xml_document_check_for_error_response, NULL, &_inner_error_); -#line 433 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp7_ = _tmp6_; -#line 433 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_free0 (_tmp5_); -#line 433 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - doc = _tmp7_; -#line 433 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 433 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - if (_inner_error_->domain == SPIT_PUBLISHING_PUBLISHING_ERROR) { -#line 4180 "RajcePublishing.c" - goto __catch22_spit_publishing_publishing_error; - } -#line 433 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 433 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_clear_error (&_inner_error_); -#line 433 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - return; -#line 4189 "RajcePublishing.c" - } -#line 434 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp8_ = doc; -#line 434 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp9_ = publishing_rest_support_xml_document_get_root_node (_tmp8_); -#line 434 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - response = _tmp9_; -#line 435 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp11_ = doc; -#line 435 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp12_ = response; -#line 435 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp13_ = publishing_rest_support_xml_document_get_named_child (_tmp11_, _tmp12_, "sessionToken", &_inner_error_); -#line 435 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp10_ = _tmp13_; -#line 435 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 435 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _publishing_rest_support_xml_document_unref0 (doc); -#line 435 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - if (_inner_error_->domain == SPIT_PUBLISHING_PUBLISHING_ERROR) { -#line 4211 "RajcePublishing.c" - goto __catch22_spit_publishing_publishing_error; - } -#line 435 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _publishing_rest_support_xml_document_unref0 (doc); -#line 435 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 435 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_clear_error (&_inner_error_); -#line 435 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - return; -#line 4222 "RajcePublishing.c" - } -#line 435 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp14_ = (gchar*) xmlNodeGetContent (_tmp10_); -#line 435 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - sessionToken = _tmp14_; -#line 436 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp16_ = doc; -#line 436 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp17_ = response; -#line 436 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp18_ = publishing_rest_support_xml_document_get_named_child (_tmp16_, _tmp17_, "albumToken", &_inner_error_); -#line 436 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp15_ = _tmp18_; -#line 436 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 436 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_free0 (sessionToken); -#line 436 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _publishing_rest_support_xml_document_unref0 (doc); -#line 436 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - if (_inner_error_->domain == SPIT_PUBLISHING_PUBLISHING_ERROR) { -#line 4244 "RajcePublishing.c" - goto __catch22_spit_publishing_publishing_error; - } -#line 436 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_free0 (sessionToken); -#line 436 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _publishing_rest_support_xml_document_unref0 (doc); -#line 436 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 436 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_clear_error (&_inner_error_); -#line 436 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - return; -#line 4257 "RajcePublishing.c" - } -#line 436 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp19_ = (gchar*) xmlNodeGetContent (_tmp15_); -#line 436 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - albumToken = _tmp19_; -#line 437 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp21_ = doc; -#line 437 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp22_ = response; -#line 437 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp23_ = publishing_rest_support_xml_document_get_named_child (_tmp21_, _tmp22_, "albumID", &_inner_error_); -#line 437 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp20_ = _tmp23_; -#line 437 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 437 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_free0 (albumToken); -#line 437 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_free0 (sessionToken); -#line 437 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _publishing_rest_support_xml_document_unref0 (doc); -#line 437 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - if (_inner_error_->domain == SPIT_PUBLISHING_PUBLISHING_ERROR) { -#line 4281 "RajcePublishing.c" - goto __catch22_spit_publishing_publishing_error; - } -#line 437 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_free0 (albumToken); -#line 437 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_free0 (sessionToken); -#line 437 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _publishing_rest_support_xml_document_unref0 (doc); -#line 437 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 437 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_clear_error (&_inner_error_); -#line 437 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - return; -#line 4296 "RajcePublishing.c" - } -#line 437 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp24_ = self->priv->parameters; -#line 437 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp25_ = (gchar*) xmlNodeGetContent (_tmp20_); -#line 437 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp26_ = _tmp25_; -#line 437 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp27_ = atoi (_tmp26_); -#line 437 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp28_ = __int_dup0 (&_tmp27_); -#line 437 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_free0 (_tmp24_->album_id); -#line 437 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp24_->album_id = _tmp28_; -#line 437 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_free0 (_tmp26_); -#line 438 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp29_ = self->priv->session; -#line 438 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp30_ = sessionToken; -#line 438 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - publishing_rajce_session_set_usertoken (_tmp29_, _tmp30_); -#line 439 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp31_ = self->priv->session; -#line 439 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp32_ = albumToken; -#line 439 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - publishing_rajce_session_set_albumtoken (_tmp31_, _tmp32_); -#line 431 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_free0 (albumToken); -#line 431 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_free0 (sessionToken); -#line 431 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _publishing_rest_support_xml_document_unref0 (doc); -#line 4332 "RajcePublishing.c" - } - goto __finally22; - __catch22_spit_publishing_publishing_error: - { - GError* err = NULL; - GError* _tmp33_; -#line 431 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - err = _inner_error_; -#line 431 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _inner_error_ = NULL; -#line 443 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_debug ("RajcePublishing.vala:443: ERROR: on_create_album_complete"); -#line 444 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp33_ = err; -#line 444 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - publishing_rajce_rajce_publisher_do_show_error (self, _tmp33_); -#line 445 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_error_free0 (err); -#line 445 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - return; -#line 4353 "RajcePublishing.c" - } - __finally22: -#line 431 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 431 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 431 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_clear_error (&_inner_error_); -#line 431 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - return; -#line 4364 "RajcePublishing.c" - } -#line 447 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - publishing_rajce_rajce_publisher_do_upload_photos (self); -#line 4368 "RajcePublishing.c" -} - - -/** - * Event triggered when the create album transaction fails due to a network error. - */ -static void -publishing_rajce_rajce_publisher_on_create_album_error (PublishingRajceRajcePublisher* self, - PublishingRESTSupportTransaction* bad_txn, - GError* err) -{ - guint _tmp0_; - guint _tmp1_; -#line 453 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_return_if_fail (PUBLISHING_RAJCE_IS_RAJCE_PUBLISHER (self)); -#line 453 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_return_if_fail (PUBLISHING_REST_SUPPORT_IS_TRANSACTION (bad_txn)); -#line 455 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_debug ("RajcePublishing.vala:455: EVENT: on_create_album_error"); -#line 456 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_signal_parse_name ("completed", PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, &_tmp0_, NULL, FALSE); -#line 456 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_signal_handlers_disconnect_matched (bad_txn, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp0_, 0, NULL, (GCallback) _publishing_rajce_rajce_publisher_on_create_album_complete_publishing_rest_support_transaction_completed, self); -#line 457 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_signal_parse_name ("network-error", PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, &_tmp1_, NULL, FALSE); -#line 457 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_signal_handlers_disconnect_matched (bad_txn, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp1_, 0, NULL, (GCallback) _publishing_rajce_rajce_publisher_on_create_album_error_publishing_rest_support_transaction_network_error, self); -#line 458 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - publishing_rajce_rajce_publisher_on_network_error (self, bad_txn, err); -#line 4398 "RajcePublishing.c" -} - - -/** - * Event triggered when the open album completes successfully. - */ -static void -publishing_rajce_rajce_publisher_on_open_album_complete (PublishingRajceRajcePublisher* self, - PublishingRESTSupportTransaction* txn) -{ - guint _tmp0_; - guint _tmp1_; - gchar* _tmp2_; - gchar* _tmp3_; - GError * _inner_error_ = NULL; -#line 464 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_return_if_fail (PUBLISHING_RAJCE_IS_RAJCE_PUBLISHER (self)); -#line 464 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_return_if_fail (PUBLISHING_REST_SUPPORT_IS_TRANSACTION (txn)); -#line 466 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_debug ("RajcePublishing.vala:466: EVENT: on_open_album_complete"); -#line 467 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_signal_parse_name ("completed", PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, &_tmp0_, NULL, FALSE); -#line 467 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_signal_handlers_disconnect_matched (txn, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp0_, 0, NULL, (GCallback) _publishing_rajce_rajce_publisher_on_open_album_complete_publishing_rest_support_transaction_completed, self); -#line 468 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_signal_parse_name ("network-error", PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, &_tmp1_, NULL, FALSE); -#line 468 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_signal_handlers_disconnect_matched (txn, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp1_, 0, NULL, (GCallback) _publishing_rajce_rajce_publisher_on_open_album_error_publishing_rest_support_transaction_network_error, self); -#line 469 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp2_ = publishing_rest_support_transaction_get_response (txn); -#line 469 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp3_ = _tmp2_; -#line 469 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_debug ("RajcePublishing.vala:469: RajcePlugin: open album: %s", _tmp3_); -#line 469 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_free0 (_tmp3_); -#line 4436 "RajcePublishing.c" - { - PublishingRESTSupportXmlDocument* doc = NULL; - gchar* _tmp4_; - gchar* _tmp5_; - PublishingRESTSupportXmlDocument* _tmp6_; - PublishingRESTSupportXmlDocument* _tmp7_; - xmlNode* response = NULL; - PublishingRESTSupportXmlDocument* _tmp8_; - xmlNode* _tmp9_; - xmlNode* _tmp10_ = NULL; - PublishingRESTSupportXmlDocument* _tmp11_; - xmlNode* _tmp12_; - xmlNode* _tmp13_; - gchar* sessionToken = NULL; - gchar* _tmp14_; - xmlNode* _tmp15_ = NULL; - PublishingRESTSupportXmlDocument* _tmp16_; - xmlNode* _tmp17_; - xmlNode* _tmp18_; - gchar* albumToken = NULL; - gchar* _tmp19_; - PublishingRajceSession* _tmp20_; - const gchar* _tmp21_; - PublishingRajceSession* _tmp22_; - const gchar* _tmp23_; -#line 472 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp4_ = publishing_rest_support_transaction_get_response (txn); -#line 472 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp5_ = _tmp4_; -#line 472 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp6_ = publishing_rest_support_xml_document_parse_string (_tmp5_, _publishing_rajce_transaction_validate_xml_publishing_rest_support_xml_document_check_for_error_response, NULL, &_inner_error_); -#line 472 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp7_ = _tmp6_; -#line 472 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_free0 (_tmp5_); -#line 472 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - doc = _tmp7_; -#line 472 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 472 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - if (_inner_error_->domain == SPIT_PUBLISHING_PUBLISHING_ERROR) { -#line 4478 "RajcePublishing.c" - goto __catch23_spit_publishing_publishing_error; - } -#line 472 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 472 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_clear_error (&_inner_error_); -#line 472 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - return; -#line 4487 "RajcePublishing.c" - } -#line 473 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp8_ = doc; -#line 473 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp9_ = publishing_rest_support_xml_document_get_root_node (_tmp8_); -#line 473 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - response = _tmp9_; -#line 474 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp11_ = doc; -#line 474 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp12_ = response; -#line 474 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp13_ = publishing_rest_support_xml_document_get_named_child (_tmp11_, _tmp12_, "sessionToken", &_inner_error_); -#line 474 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp10_ = _tmp13_; -#line 474 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 474 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _publishing_rest_support_xml_document_unref0 (doc); -#line 474 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - if (_inner_error_->domain == SPIT_PUBLISHING_PUBLISHING_ERROR) { -#line 4509 "RajcePublishing.c" - goto __catch23_spit_publishing_publishing_error; - } -#line 474 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _publishing_rest_support_xml_document_unref0 (doc); -#line 474 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 474 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_clear_error (&_inner_error_); -#line 474 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - return; -#line 4520 "RajcePublishing.c" - } -#line 474 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp14_ = (gchar*) xmlNodeGetContent (_tmp10_); -#line 474 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - sessionToken = _tmp14_; -#line 475 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp16_ = doc; -#line 475 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp17_ = response; -#line 475 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp18_ = publishing_rest_support_xml_document_get_named_child (_tmp16_, _tmp17_, "albumToken", &_inner_error_); -#line 475 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp15_ = _tmp18_; -#line 475 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 475 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_free0 (sessionToken); -#line 475 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _publishing_rest_support_xml_document_unref0 (doc); -#line 475 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - if (_inner_error_->domain == SPIT_PUBLISHING_PUBLISHING_ERROR) { -#line 4542 "RajcePublishing.c" - goto __catch23_spit_publishing_publishing_error; - } -#line 475 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_free0 (sessionToken); -#line 475 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _publishing_rest_support_xml_document_unref0 (doc); -#line 475 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 475 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_clear_error (&_inner_error_); -#line 475 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - return; -#line 4555 "RajcePublishing.c" - } -#line 475 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp19_ = (gchar*) xmlNodeGetContent (_tmp15_); -#line 475 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - albumToken = _tmp19_; -#line 476 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp20_ = self->priv->session; -#line 476 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp21_ = sessionToken; -#line 476 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - publishing_rajce_session_set_usertoken (_tmp20_, _tmp21_); -#line 477 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp22_ = self->priv->session; -#line 477 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp23_ = albumToken; -#line 477 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - publishing_rajce_session_set_albumtoken (_tmp22_, _tmp23_); -#line 470 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_free0 (albumToken); -#line 470 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_free0 (sessionToken); -#line 470 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _publishing_rest_support_xml_document_unref0 (doc); -#line 4579 "RajcePublishing.c" - } - goto __finally23; - __catch23_spit_publishing_publishing_error: - { - GError* err = NULL; - GError* _tmp24_; -#line 470 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - err = _inner_error_; -#line 470 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _inner_error_ = NULL; -#line 481 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_debug ("RajcePublishing.vala:481: ERROR: on_open_album_complete"); -#line 482 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp24_ = err; -#line 482 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - publishing_rajce_rajce_publisher_do_show_error (self, _tmp24_); -#line 483 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_error_free0 (err); -#line 483 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - return; -#line 4600 "RajcePublishing.c" - } - __finally23: -#line 470 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 470 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 470 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_clear_error (&_inner_error_); -#line 470 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - return; -#line 4611 "RajcePublishing.c" - } -#line 485 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - publishing_rajce_rajce_publisher_do_upload_photos (self); -#line 4615 "RajcePublishing.c" -} - - -/** - * Event triggered when the open album transaction fails due to a network error. - */ -static void -publishing_rajce_rajce_publisher_on_open_album_error (PublishingRajceRajcePublisher* self, - PublishingRESTSupportTransaction* bad_txn, - GError* err) -{ - guint _tmp0_; - guint _tmp1_; -#line 491 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_return_if_fail (PUBLISHING_RAJCE_IS_RAJCE_PUBLISHER (self)); -#line 491 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_return_if_fail (PUBLISHING_REST_SUPPORT_IS_TRANSACTION (bad_txn)); -#line 493 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_debug ("RajcePublishing.vala:493: EVENT: on_open_album_error"); -#line 494 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_signal_parse_name ("completed", PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, &_tmp0_, NULL, FALSE); -#line 494 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_signal_handlers_disconnect_matched (bad_txn, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp0_, 0, NULL, (GCallback) _publishing_rajce_rajce_publisher_on_open_album_complete_publishing_rest_support_transaction_completed, self); -#line 495 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_signal_parse_name ("network-error", PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, &_tmp1_, NULL, FALSE); -#line 495 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_signal_handlers_disconnect_matched (bad_txn, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp1_, 0, NULL, (GCallback) _publishing_rajce_rajce_publisher_on_open_album_error_publishing_rest_support_transaction_network_error, self); -#line 496 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - publishing_rajce_rajce_publisher_on_network_error (self, bad_txn, err); -#line 4645 "RajcePublishing.c" -} - - -/** - * Upload photos: the key part of the plugin - */ -static void -_publishing_rajce_rajce_publisher_on_upload_photos_complete_publishing_rest_support_batch_uploader_upload_complete (PublishingRESTSupportBatchUploader* _sender, - gint num_photos_published, - gpointer self) -{ -#line 509 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - publishing_rajce_rajce_publisher_on_upload_photos_complete ((PublishingRajceRajcePublisher*) self, _sender, num_photos_published); -#line 4659 "RajcePublishing.c" -} - - -static void -_publishing_rajce_rajce_publisher_on_upload_photos_error_publishing_rest_support_batch_uploader_upload_error (PublishingRESTSupportBatchUploader* _sender, - GError* err, - gpointer self) -{ -#line 510 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - publishing_rajce_rajce_publisher_on_upload_photos_error ((PublishingRajceRajcePublisher*) self, _sender, err); -#line 4670 "RajcePublishing.c" -} - - -static void -_publishing_rajce_rajce_publisher_on_upload_photos_status_updated_spit_publishing_progress_callback (gint file_number, - gdouble fraction_complete, - gpointer self) -{ -#line 511 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - publishing_rajce_rajce_publisher_on_upload_photos_status_updated ((PublishingRajceRajcePublisher*) self, file_number, fraction_complete); -#line 4681 "RajcePublishing.c" -} - - -static void -publishing_rajce_rajce_publisher_do_upload_photos (PublishingRajceRajcePublisher* self) -{ - SpitPublishingPluginHost* _tmp0_; - PublishingRajceSession* _tmp1_; - void* _tmp2_; - GDestroyNotify _tmp3_; - SpitPublishingProgressCallback _tmp4_; - SpitPublishingPublishable** publishables = NULL; - SpitPublishingPluginHost* _tmp5_; - gint _tmp6_; - SpitPublishingPublishable** _tmp7_; - gint publishables_length1; - gint _publishables_size_; - PublishingRajceUploader* uploader = NULL; - PublishingRajceSession* _tmp8_; - gchar* _tmp9_; - gchar* _tmp10_; - PublishingRajcePublishingParameters* _tmp11_; - PublishingRajceUploader* _tmp12_; - PublishingRajceUploader* _tmp13_; -#line 502 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_return_if_fail (PUBLISHING_RAJCE_IS_RAJCE_PUBLISHER (self)); -#line 504 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_debug ("RajcePublishing.vala:504: ACTION: uploading photos"); -#line 505 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp0_ = self->priv->host; -#line 505 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp1_ = self->priv->session; -#line 505 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp4_ = spit_publishing_plugin_host_serialize_publishables (_tmp0_, publishing_rajce_session_get_maxsize (_tmp1_), FALSE, &_tmp2_, &_tmp3_); -#line 505 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - (self->priv->progress_reporter_target_destroy_notify == NULL) ? NULL : (self->priv->progress_reporter_target_destroy_notify (self->priv->progress_reporter_target), NULL); -#line 505 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - self->priv->progress_reporter = NULL; -#line 505 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - self->priv->progress_reporter_target = NULL; -#line 505 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - self->priv->progress_reporter_target_destroy_notify = NULL; -#line 505 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - self->priv->progress_reporter = _tmp4_; -#line 505 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - self->priv->progress_reporter_target = _tmp2_; -#line 505 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - self->priv->progress_reporter_target_destroy_notify = _tmp3_; -#line 506 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp5_ = self->priv->host; -#line 506 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp7_ = spit_publishing_plugin_host_get_publishables (_tmp5_, &_tmp6_); -#line 506 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - publishables = _tmp7_; -#line 506 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - publishables_length1 = _tmp6_; -#line 506 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _publishables_size_ = publishables_length1; -#line 508 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp8_ = self->priv->session; -#line 508 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp9_ = publishing_rajce_rajce_publisher_get_url (self); -#line 508 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp10_ = _tmp9_; -#line 508 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp11_ = self->priv->parameters; -#line 508 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp12_ = publishing_rajce_uploader_new (_tmp8_, _tmp10_, publishables, publishables_length1, _tmp11_); -#line 508 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp13_ = _tmp12_; -#line 508 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_free0 (_tmp10_); -#line 508 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - uploader = _tmp13_; -#line 509 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (uploader, PUBLISHING_REST_SUPPORT_TYPE_BATCH_UPLOADER, PublishingRESTSupportBatchUploader), "upload-complete", (GCallback) _publishing_rajce_rajce_publisher_on_upload_photos_complete_publishing_rest_support_batch_uploader_upload_complete, self, 0); -#line 510 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (uploader, PUBLISHING_REST_SUPPORT_TYPE_BATCH_UPLOADER, PublishingRESTSupportBatchUploader), "upload-error", (GCallback) _publishing_rajce_rajce_publisher_on_upload_photos_error_publishing_rest_support_batch_uploader_upload_error, self, 0); -#line 511 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - publishing_rest_support_batch_uploader_upload (G_TYPE_CHECK_INSTANCE_CAST (uploader, PUBLISHING_REST_SUPPORT_TYPE_BATCH_UPLOADER, PublishingRESTSupportBatchUploader), _publishing_rajce_rajce_publisher_on_upload_photos_status_updated_spit_publishing_progress_callback, self); -#line 502 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _publishing_rest_support_batch_uploader_unref0 (uploader); -#line 502 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - publishables = (_vala_array_free (publishables, publishables_length1, (GDestroyNotify) g_object_unref), NULL); -#line 4766 "RajcePublishing.c" -} - - -/** - * Event triggered when the batch uploader reports that at least one of the - * network transactions encapsulating uploads has completed successfully - */ -static void -publishing_rajce_rajce_publisher_on_upload_photos_complete (PublishingRajceRajcePublisher* self, - PublishingRESTSupportBatchUploader* uploader, - gint num_published) -{ - guint _tmp0_; - guint _tmp1_; -#line 518 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_return_if_fail (PUBLISHING_RAJCE_IS_RAJCE_PUBLISHER (self)); -#line 518 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_return_if_fail (PUBLISHING_REST_SUPPORT_IS_BATCH_UPLOADER (uploader)); -#line 520 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_debug ("RajcePublishing.vala:520: EVENT: on_upload_photos_complete"); -#line 521 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_signal_parse_name ("upload-complete", PUBLISHING_REST_SUPPORT_TYPE_BATCH_UPLOADER, &_tmp0_, NULL, FALSE); -#line 521 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_signal_handlers_disconnect_matched (uploader, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp0_, 0, NULL, (GCallback) _publishing_rajce_rajce_publisher_on_upload_photos_complete_publishing_rest_support_batch_uploader_upload_complete, self); -#line 522 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_signal_parse_name ("upload-error", PUBLISHING_REST_SUPPORT_TYPE_BATCH_UPLOADER, &_tmp1_, NULL, FALSE); -#line 522 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_signal_handlers_disconnect_matched (uploader, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp1_, 0, NULL, (GCallback) _publishing_rajce_rajce_publisher_on_upload_photos_error_publishing_rest_support_batch_uploader_upload_error, self); -#line 525 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - publishing_rajce_rajce_publisher_do_end_upload (self); -#line 4797 "RajcePublishing.c" -} - - -/** - * Event triggered when the batch uploader reports that at least one of the - * network transactions encapsulating uploads has caused a network error - */ -static void -publishing_rajce_rajce_publisher_on_upload_photos_error (PublishingRajceRajcePublisher* self, - PublishingRESTSupportBatchUploader* uploader, - GError* err) -{ - guint _tmp0_; - guint _tmp1_; -#line 532 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_return_if_fail (PUBLISHING_RAJCE_IS_RAJCE_PUBLISHER (self)); -#line 532 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_return_if_fail (PUBLISHING_REST_SUPPORT_IS_BATCH_UPLOADER (uploader)); -#line 534 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_debug ("RajcePublishing.vala:534: EVENT: on_upload_photos_error"); -#line 535 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_signal_parse_name ("upload-complete", PUBLISHING_REST_SUPPORT_TYPE_BATCH_UPLOADER, &_tmp0_, NULL, FALSE); -#line 535 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_signal_handlers_disconnect_matched (uploader, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp0_, 0, NULL, (GCallback) _publishing_rajce_rajce_publisher_on_upload_photos_complete_publishing_rest_support_batch_uploader_upload_complete, self); -#line 536 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_signal_parse_name ("upload-error", PUBLISHING_REST_SUPPORT_TYPE_BATCH_UPLOADER, &_tmp1_, NULL, FALSE); -#line 536 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_signal_handlers_disconnect_matched (uploader, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp1_, 0, NULL, (GCallback) _publishing_rajce_rajce_publisher_on_upload_photos_error_publishing_rest_support_batch_uploader_upload_error, self); -#line 537 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - publishing_rajce_rajce_publisher_do_show_error (self, err); -#line 4828 "RajcePublishing.c" -} - - -/** - * Event triggered when upload progresses and the status needs to be updated. - */ -static void -publishing_rajce_rajce_publisher_on_upload_photos_status_updated (PublishingRajceRajcePublisher* self, - gint file_number, - gdouble completed_fraction) -{ -#line 543 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_return_if_fail (PUBLISHING_RAJCE_IS_RAJCE_PUBLISHER (self)); -#line 545 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - if (spit_publishing_publisher_is_running (G_TYPE_CHECK_INSTANCE_CAST (self, SPIT_PUBLISHING_TYPE_PUBLISHER, SpitPublishingPublisher))) { -#line 4844 "RajcePublishing.c" - SpitPublishingProgressCallback _tmp0_; - void* _tmp0__target; - SpitPublishingProgressCallback _tmp1_; - void* _tmp1__target; -#line 547 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_debug ("RajcePublishing.vala:547: EVENT: uploader reports upload %.2f percent " \ -"complete.", 100.0 * completed_fraction); -#line 548 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp0_ = self->priv->progress_reporter; -#line 548 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp0__target = self->priv->progress_reporter_target; -#line 548 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _vala_assert (_tmp0_ != NULL, "progress_reporter != null"); -#line 549 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp1_ = self->priv->progress_reporter; -#line 549 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp1__target = self->priv->progress_reporter_target; -#line 549 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp1_ (file_number, completed_fraction, _tmp1__target); -#line 4863 "RajcePublishing.c" - } -} - - -static void -publishing_rajce_rajce_publisher_do_end_upload (PublishingRajceRajcePublisher* self) -{ -#line 553 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_return_if_fail (PUBLISHING_RAJCE_IS_RAJCE_PUBLISHER (self)); -#line 555 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - if (publishing_rajce_rajce_publisher_get_show_album (self)) { -#line 557 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - publishing_rajce_rajce_publisher_do_get_album_url (self); -#line 4877 "RajcePublishing.c" - } else { -#line 561 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - publishing_rajce_rajce_publisher_do_close_album (self); -#line 4881 "RajcePublishing.c" - } -} - - -/** - * End upload action: get album url - */ -static void -_publishing_rajce_rajce_publisher_on_get_album_url_error_publishing_rest_support_transaction_network_error (PublishingRESTSupportTransaction* _sender, - GError* err, - gpointer self) -{ -#line 573 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - publishing_rajce_rajce_publisher_on_get_album_url_error ((PublishingRajceRajcePublisher*) self, _sender, err); -#line 4896 "RajcePublishing.c" -} - - -static void -_publishing_rajce_rajce_publisher_on_get_album_url_complete_publishing_rest_support_transaction_completed (PublishingRESTSupportTransaction* _sender, - gpointer self) -{ -#line 574 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - publishing_rajce_rajce_publisher_on_get_album_url_complete ((PublishingRajceRajcePublisher*) self, _sender); -#line 4906 "RajcePublishing.c" -} - - -static void -publishing_rajce_rajce_publisher_do_get_album_url (PublishingRajceRajcePublisher* self) -{ - SpitPublishingPluginHost* _tmp0_; - PublishingRajceGetAlbumUrlTransaction* get_album_url_trans = NULL; - PublishingRajceSession* _tmp1_; - gchar* _tmp2_; - gchar* _tmp3_; - PublishingRajceGetAlbumUrlTransaction* _tmp4_; - PublishingRajceGetAlbumUrlTransaction* _tmp5_; - GError * _inner_error_ = NULL; -#line 568 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_return_if_fail (PUBLISHING_RAJCE_IS_RAJCE_PUBLISHER (self)); -#line 570 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_debug ("RajcePublishing.vala:570: ACTION: getting album URL"); -#line 571 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp0_ = self->priv->host; -#line 571 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - spit_publishing_plugin_host_set_service_locked (_tmp0_, TRUE); -#line 572 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp1_ = self->priv->session; -#line 572 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp2_ = publishing_rajce_rajce_publisher_get_url (self); -#line 572 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp3_ = _tmp2_; -#line 572 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp4_ = publishing_rajce_get_album_url_transaction_new (_tmp1_, _tmp3_); -#line 572 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp5_ = _tmp4_; -#line 572 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_free0 (_tmp3_); -#line 572 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - get_album_url_trans = _tmp5_; -#line 573 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (get_album_url_trans, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "network-error", (GCallback) _publishing_rajce_rajce_publisher_on_get_album_url_error_publishing_rest_support_transaction_network_error, self, 0); -#line 574 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (get_album_url_trans, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "completed", (GCallback) _publishing_rajce_rajce_publisher_on_get_album_url_complete_publishing_rest_support_transaction_completed, self, 0); -#line 4947 "RajcePublishing.c" - { -#line 577 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - publishing_rest_support_transaction_execute (G_TYPE_CHECK_INSTANCE_CAST (get_album_url_trans, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), &_inner_error_); -#line 577 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 577 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - if (_inner_error_->domain == SPIT_PUBLISHING_PUBLISHING_ERROR) { -#line 4955 "RajcePublishing.c" - goto __catch24_spit_publishing_publishing_error; - } -#line 577 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _publishing_rest_support_transaction_unref0 (get_album_url_trans); -#line 577 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 577 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_clear_error (&_inner_error_); -#line 577 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - return; -#line 4966 "RajcePublishing.c" - } - } - goto __finally24; - __catch24_spit_publishing_publishing_error: - { - GError* err = NULL; - GError* _tmp6_; -#line 575 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - err = _inner_error_; -#line 575 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _inner_error_ = NULL; -#line 581 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_debug ("RajcePublishing.vala:581: ERROR: close album"); -#line 582 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp6_ = err; -#line 582 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - publishing_rajce_rajce_publisher_do_show_error (self, _tmp6_); -#line 575 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_error_free0 (err); -#line 4986 "RajcePublishing.c" - } - __finally24: -#line 575 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 575 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _publishing_rest_support_transaction_unref0 (get_album_url_trans); -#line 575 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 575 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_clear_error (&_inner_error_); -#line 575 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - return; -#line 4999 "RajcePublishing.c" - } -#line 568 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _publishing_rest_support_transaction_unref0 (get_album_url_trans); -#line 5003 "RajcePublishing.c" -} - - -/** - * Event triggered when the get album url completes successfully. - */ -static void -publishing_rajce_rajce_publisher_on_get_album_url_complete (PublishingRajceRajcePublisher* self, - PublishingRESTSupportTransaction* txn) -{ - guint _tmp0_; - guint _tmp1_; - gchar* _tmp2_; - gchar* _tmp3_; - GError * _inner_error_ = NULL; -#line 589 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_return_if_fail (PUBLISHING_RAJCE_IS_RAJCE_PUBLISHER (self)); -#line 589 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_return_if_fail (PUBLISHING_REST_SUPPORT_IS_TRANSACTION (txn)); -#line 591 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_debug ("RajcePublishing.vala:591: EVENT: on_get_album_url_complete"); -#line 592 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_signal_parse_name ("completed", PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, &_tmp0_, NULL, FALSE); -#line 592 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_signal_handlers_disconnect_matched (txn, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp0_, 0, NULL, (GCallback) _publishing_rajce_rajce_publisher_on_get_album_url_complete_publishing_rest_support_transaction_completed, self); -#line 593 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_signal_parse_name ("network-error", PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, &_tmp1_, NULL, FALSE); -#line 593 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_signal_handlers_disconnect_matched (txn, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp1_, 0, NULL, (GCallback) _publishing_rajce_rajce_publisher_on_get_album_url_error_publishing_rest_support_transaction_network_error, self); -#line 594 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp2_ = publishing_rest_support_transaction_get_response (txn); -#line 594 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp3_ = _tmp2_; -#line 594 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_debug ("RajcePublishing.vala:594: RajcePlugin: get album url: %s", _tmp3_); -#line 594 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_free0 (_tmp3_); -#line 5041 "RajcePublishing.c" - { - PublishingRESTSupportXmlDocument* doc = NULL; - gchar* _tmp4_; - gchar* _tmp5_; - PublishingRESTSupportXmlDocument* _tmp6_; - PublishingRESTSupportXmlDocument* _tmp7_; - xmlNode* response = NULL; - PublishingRESTSupportXmlDocument* _tmp8_; - xmlNode* _tmp9_; - xmlNode* _tmp10_ = NULL; - PublishingRESTSupportXmlDocument* _tmp11_; - xmlNode* _tmp12_; - xmlNode* _tmp13_; - gchar* sessionToken = NULL; - gchar* _tmp14_; - xmlNode* _tmp15_ = NULL; - PublishingRESTSupportXmlDocument* _tmp16_; - xmlNode* _tmp17_; - xmlNode* _tmp18_; - gchar* url = NULL; - gchar* _tmp19_; - PublishingRajceSession* _tmp20_; - const gchar* _tmp21_; - PublishingRajceSession* _tmp22_; - const gchar* _tmp23_; -#line 597 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp4_ = publishing_rest_support_transaction_get_response (txn); -#line 597 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp5_ = _tmp4_; -#line 597 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp6_ = publishing_rest_support_xml_document_parse_string (_tmp5_, _publishing_rajce_transaction_validate_xml_publishing_rest_support_xml_document_check_for_error_response, NULL, &_inner_error_); -#line 597 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp7_ = _tmp6_; -#line 597 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_free0 (_tmp5_); -#line 597 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - doc = _tmp7_; -#line 597 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 597 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - if (_inner_error_->domain == SPIT_PUBLISHING_PUBLISHING_ERROR) { -#line 5083 "RajcePublishing.c" - goto __catch25_spit_publishing_publishing_error; - } -#line 597 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 597 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_clear_error (&_inner_error_); -#line 597 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - return; -#line 5092 "RajcePublishing.c" - } -#line 598 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp8_ = doc; -#line 598 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp9_ = publishing_rest_support_xml_document_get_root_node (_tmp8_); -#line 598 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - response = _tmp9_; -#line 599 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp11_ = doc; -#line 599 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp12_ = response; -#line 599 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp13_ = publishing_rest_support_xml_document_get_named_child (_tmp11_, _tmp12_, "sessionToken", &_inner_error_); -#line 599 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp10_ = _tmp13_; -#line 599 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 599 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _publishing_rest_support_xml_document_unref0 (doc); -#line 599 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - if (_inner_error_->domain == SPIT_PUBLISHING_PUBLISHING_ERROR) { -#line 5114 "RajcePublishing.c" - goto __catch25_spit_publishing_publishing_error; - } -#line 599 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _publishing_rest_support_xml_document_unref0 (doc); -#line 599 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 599 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_clear_error (&_inner_error_); -#line 599 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - return; -#line 5125 "RajcePublishing.c" - } -#line 599 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp14_ = (gchar*) xmlNodeGetContent (_tmp10_); -#line 599 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - sessionToken = _tmp14_; -#line 600 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp16_ = doc; -#line 600 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp17_ = response; -#line 600 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp18_ = publishing_rest_support_xml_document_get_named_child (_tmp16_, _tmp17_, "url", &_inner_error_); -#line 600 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp15_ = _tmp18_; -#line 600 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 600 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_free0 (sessionToken); -#line 600 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _publishing_rest_support_xml_document_unref0 (doc); -#line 600 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - if (_inner_error_->domain == SPIT_PUBLISHING_PUBLISHING_ERROR) { -#line 5147 "RajcePublishing.c" - goto __catch25_spit_publishing_publishing_error; - } -#line 600 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_free0 (sessionToken); -#line 600 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _publishing_rest_support_xml_document_unref0 (doc); -#line 600 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 600 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_clear_error (&_inner_error_); -#line 600 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - return; -#line 5160 "RajcePublishing.c" - } -#line 600 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp19_ = (gchar*) xmlNodeGetContent (_tmp15_); -#line 600 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - url = _tmp19_; -#line 601 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp20_ = self->priv->session; -#line 601 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp21_ = sessionToken; -#line 601 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - publishing_rajce_session_set_usertoken (_tmp20_, _tmp21_); -#line 602 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp22_ = self->priv->session; -#line 602 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp23_ = url; -#line 602 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - publishing_rajce_session_set_albumticket (_tmp22_, _tmp23_); -#line 595 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_free0 (url); -#line 595 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_free0 (sessionToken); -#line 595 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _publishing_rest_support_xml_document_unref0 (doc); -#line 5184 "RajcePublishing.c" - } - goto __finally25; - __catch25_spit_publishing_publishing_error: - { - GError* err = NULL; -#line 595 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - err = _inner_error_; -#line 595 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _inner_error_ = NULL; -#line 606 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_debug ("RajcePublishing.vala:606: ERROR: on_get_album_url_complete"); -#line 595 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_error_free0 (err); -#line 5198 "RajcePublishing.c" - } - __finally25: -#line 595 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 595 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 595 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_clear_error (&_inner_error_); -#line 595 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - return; -#line 5209 "RajcePublishing.c" - } -#line 611 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - publishing_rajce_rajce_publisher_do_close_album (self); -#line 5213 "RajcePublishing.c" -} - - -/** - * Event triggered when the get album url transaction fails due to a network error. - */ -static void -publishing_rajce_rajce_publisher_on_get_album_url_error (PublishingRajceRajcePublisher* self, - PublishingRESTSupportTransaction* bad_txn, - GError* err) -{ - guint _tmp0_; - guint _tmp1_; -#line 617 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_return_if_fail (PUBLISHING_RAJCE_IS_RAJCE_PUBLISHER (self)); -#line 617 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_return_if_fail (PUBLISHING_REST_SUPPORT_IS_TRANSACTION (bad_txn)); -#line 619 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_debug ("RajcePublishing.vala:619: EVENT: on_get_album_url_error"); -#line 620 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_signal_parse_name ("completed", PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, &_tmp0_, NULL, FALSE); -#line 620 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_signal_handlers_disconnect_matched (bad_txn, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp0_, 0, NULL, (GCallback) _publishing_rajce_rajce_publisher_on_get_album_url_complete_publishing_rest_support_transaction_completed, self); -#line 621 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_signal_parse_name ("network-error", PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, &_tmp1_, NULL, FALSE); -#line 621 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_signal_handlers_disconnect_matched (bad_txn, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp1_, 0, NULL, (GCallback) _publishing_rajce_rajce_publisher_on_get_album_url_error_publishing_rest_support_transaction_network_error, self); -#line 624 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - publishing_rajce_rajce_publisher_do_close_album (self); -#line 5243 "RajcePublishing.c" -} - - -/** - * End upload action: close album - */ -static void -_publishing_rajce_rajce_publisher_on_close_album_error_publishing_rest_support_transaction_network_error (PublishingRESTSupportTransaction* _sender, - GError* err, - gpointer self) -{ -#line 636 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - publishing_rajce_rajce_publisher_on_close_album_error ((PublishingRajceRajcePublisher*) self, _sender, err); -#line 5257 "RajcePublishing.c" -} - - -static void -_publishing_rajce_rajce_publisher_on_close_album_complete_publishing_rest_support_transaction_completed (PublishingRESTSupportTransaction* _sender, - gpointer self) -{ -#line 637 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - publishing_rajce_rajce_publisher_on_close_album_complete ((PublishingRajceRajcePublisher*) self, _sender); -#line 5267 "RajcePublishing.c" -} - - -static void -publishing_rajce_rajce_publisher_do_close_album (PublishingRajceRajcePublisher* self) -{ - SpitPublishingPluginHost* _tmp0_; - PublishingRajceCloseAlbumTransaction* close_album_trans = NULL; - PublishingRajceSession* _tmp1_; - gchar* _tmp2_; - gchar* _tmp3_; - PublishingRajceCloseAlbumTransaction* _tmp4_; - PublishingRajceCloseAlbumTransaction* _tmp5_; - GError * _inner_error_ = NULL; -#line 631 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_return_if_fail (PUBLISHING_RAJCE_IS_RAJCE_PUBLISHER (self)); -#line 633 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_debug ("RajcePublishing.vala:633: ACTION: closing album"); -#line 634 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp0_ = self->priv->host; -#line 634 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - spit_publishing_plugin_host_set_service_locked (_tmp0_, TRUE); -#line 635 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp1_ = self->priv->session; -#line 635 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp2_ = publishing_rajce_rajce_publisher_get_url (self); -#line 635 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp3_ = _tmp2_; -#line 635 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp4_ = publishing_rajce_close_album_transaction_new (_tmp1_, _tmp3_); -#line 635 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp5_ = _tmp4_; -#line 635 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_free0 (_tmp3_); -#line 635 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - close_album_trans = _tmp5_; -#line 636 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (close_album_trans, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "network-error", (GCallback) _publishing_rajce_rajce_publisher_on_close_album_error_publishing_rest_support_transaction_network_error, self, 0); -#line 637 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (close_album_trans, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "completed", (GCallback) _publishing_rajce_rajce_publisher_on_close_album_complete_publishing_rest_support_transaction_completed, self, 0); -#line 5308 "RajcePublishing.c" - { -#line 640 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - publishing_rest_support_transaction_execute (G_TYPE_CHECK_INSTANCE_CAST (close_album_trans, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), &_inner_error_); -#line 640 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 640 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - if (_inner_error_->domain == SPIT_PUBLISHING_PUBLISHING_ERROR) { -#line 5316 "RajcePublishing.c" - goto __catch26_spit_publishing_publishing_error; - } -#line 640 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _publishing_rest_support_transaction_unref0 (close_album_trans); -#line 640 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 640 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_clear_error (&_inner_error_); -#line 640 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - return; -#line 5327 "RajcePublishing.c" - } - } - goto __finally26; - __catch26_spit_publishing_publishing_error: - { - GError* err = NULL; - GError* _tmp6_; -#line 638 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - err = _inner_error_; -#line 638 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _inner_error_ = NULL; -#line 644 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_debug ("RajcePublishing.vala:644: ERROR: close album"); -#line 645 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp6_ = err; -#line 645 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - publishing_rajce_rajce_publisher_do_show_error (self, _tmp6_); -#line 638 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_error_free0 (err); -#line 5347 "RajcePublishing.c" - } - __finally26: -#line 638 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 638 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _publishing_rest_support_transaction_unref0 (close_album_trans); -#line 638 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 638 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_clear_error (&_inner_error_); -#line 638 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - return; -#line 5360 "RajcePublishing.c" - } -#line 631 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _publishing_rest_support_transaction_unref0 (close_album_trans); -#line 5364 "RajcePublishing.c" -} - - -/** - * Event triggered when the close album completes successfully. - */ -static void -publishing_rajce_rajce_publisher_on_close_album_complete (PublishingRajceRajcePublisher* self, - PublishingRESTSupportTransaction* txn) -{ - guint _tmp0_; - guint _tmp1_; - gchar* _tmp2_; - gchar* _tmp3_; - GError * _inner_error_ = NULL; -#line 652 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_return_if_fail (PUBLISHING_RAJCE_IS_RAJCE_PUBLISHER (self)); -#line 652 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_return_if_fail (PUBLISHING_REST_SUPPORT_IS_TRANSACTION (txn)); -#line 654 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_debug ("RajcePublishing.vala:654: EVENT: on_close_album_complete"); -#line 655 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_signal_parse_name ("completed", PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, &_tmp0_, NULL, FALSE); -#line 655 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_signal_handlers_disconnect_matched (txn, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp0_, 0, NULL, (GCallback) _publishing_rajce_rajce_publisher_on_close_album_complete_publishing_rest_support_transaction_completed, self); -#line 656 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_signal_parse_name ("network-error", PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, &_tmp1_, NULL, FALSE); -#line 656 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_signal_handlers_disconnect_matched (txn, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp1_, 0, NULL, (GCallback) _publishing_rajce_rajce_publisher_on_close_album_error_publishing_rest_support_transaction_network_error, self); -#line 657 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp2_ = publishing_rest_support_transaction_get_response (txn); -#line 657 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp3_ = _tmp2_; -#line 657 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_debug ("RajcePublishing.vala:657: RajcePlugin: close album: %s", _tmp3_); -#line 657 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_free0 (_tmp3_); -#line 5402 "RajcePublishing.c" - { - PublishingRESTSupportXmlDocument* doc = NULL; - gchar* _tmp4_; - gchar* _tmp5_; - PublishingRESTSupportXmlDocument* _tmp6_; - PublishingRESTSupportXmlDocument* _tmp7_; - xmlNode* response = NULL; - PublishingRESTSupportXmlDocument* _tmp8_; - xmlNode* _tmp9_; - xmlNode* _tmp10_ = NULL; - PublishingRESTSupportXmlDocument* _tmp11_; - xmlNode* _tmp12_; - xmlNode* _tmp13_; - gchar* sessionToken = NULL; - gchar* _tmp14_; - PublishingRajceSession* _tmp15_; - const gchar* _tmp16_; - PublishingRajceSession* _tmp17_; -#line 660 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp4_ = publishing_rest_support_transaction_get_response (txn); -#line 660 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp5_ = _tmp4_; -#line 660 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp6_ = publishing_rest_support_xml_document_parse_string (_tmp5_, _publishing_rajce_transaction_validate_xml_publishing_rest_support_xml_document_check_for_error_response, NULL, &_inner_error_); -#line 660 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp7_ = _tmp6_; -#line 660 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_free0 (_tmp5_); -#line 660 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - doc = _tmp7_; -#line 660 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 660 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - if (_inner_error_->domain == SPIT_PUBLISHING_PUBLISHING_ERROR) { -#line 5437 "RajcePublishing.c" - goto __catch27_spit_publishing_publishing_error; - } -#line 660 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 660 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_clear_error (&_inner_error_); -#line 660 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - return; -#line 5446 "RajcePublishing.c" - } -#line 661 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp8_ = doc; -#line 661 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp9_ = publishing_rest_support_xml_document_get_root_node (_tmp8_); -#line 661 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - response = _tmp9_; -#line 662 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp11_ = doc; -#line 662 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp12_ = response; -#line 662 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp13_ = publishing_rest_support_xml_document_get_named_child (_tmp11_, _tmp12_, "sessionToken", &_inner_error_); -#line 662 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp10_ = _tmp13_; -#line 662 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 662 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _publishing_rest_support_xml_document_unref0 (doc); -#line 662 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - if (_inner_error_->domain == SPIT_PUBLISHING_PUBLISHING_ERROR) { -#line 5468 "RajcePublishing.c" - goto __catch27_spit_publishing_publishing_error; - } -#line 662 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _publishing_rest_support_xml_document_unref0 (doc); -#line 662 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 662 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_clear_error (&_inner_error_); -#line 662 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - return; -#line 5479 "RajcePublishing.c" - } -#line 662 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp14_ = (gchar*) xmlNodeGetContent (_tmp10_); -#line 662 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - sessionToken = _tmp14_; -#line 663 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp15_ = self->priv->session; -#line 663 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp16_ = sessionToken; -#line 663 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - publishing_rajce_session_set_usertoken (_tmp15_, _tmp16_); -#line 664 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp17_ = self->priv->session; -#line 664 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - publishing_rajce_session_set_albumtoken (_tmp17_, NULL); -#line 658 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_free0 (sessionToken); -#line 658 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _publishing_rest_support_xml_document_unref0 (doc); -#line 5499 "RajcePublishing.c" - } - goto __finally27; - __catch27_spit_publishing_publishing_error: - { - GError* err = NULL; - GError* _tmp18_; -#line 658 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - err = _inner_error_; -#line 658 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _inner_error_ = NULL; -#line 668 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_debug ("RajcePublishing.vala:668: ERROR: on_close_album_complete"); -#line 669 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp18_ = err; -#line 669 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - publishing_rajce_rajce_publisher_do_show_error (self, _tmp18_); -#line 670 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_error_free0 (err); -#line 670 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - return; -#line 5520 "RajcePublishing.c" - } - __finally27: -#line 658 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 658 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 658 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_clear_error (&_inner_error_); -#line 658 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - return; -#line 5531 "RajcePublishing.c" - } -#line 672 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - publishing_rajce_rajce_publisher_do_show_success_pane (self); -#line 5535 "RajcePublishing.c" -} - - -/** - * Event triggered when the close album transaction fails due to a network error. - */ -static void -publishing_rajce_rajce_publisher_on_close_album_error (PublishingRajceRajcePublisher* self, - PublishingRESTSupportTransaction* bad_txn, - GError* err) -{ - guint _tmp0_; - guint _tmp1_; -#line 678 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_return_if_fail (PUBLISHING_RAJCE_IS_RAJCE_PUBLISHER (self)); -#line 678 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_return_if_fail (PUBLISHING_REST_SUPPORT_IS_TRANSACTION (bad_txn)); -#line 680 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_debug ("RajcePublishing.vala:680: EVENT: on_close_album_error"); -#line 681 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_signal_parse_name ("completed", PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, &_tmp0_, NULL, FALSE); -#line 681 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_signal_handlers_disconnect_matched (bad_txn, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp0_, 0, NULL, (GCallback) _publishing_rajce_rajce_publisher_on_close_album_complete_publishing_rest_support_transaction_completed, self); -#line 682 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_signal_parse_name ("network-error", PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, &_tmp1_, NULL, FALSE); -#line 682 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_signal_handlers_disconnect_matched (bad_txn, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp1_, 0, NULL, (GCallback) _publishing_rajce_rajce_publisher_on_close_album_error_publishing_rest_support_transaction_network_error, self); -#line 685 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - publishing_rajce_rajce_publisher_do_show_success_pane (self); -#line 5565 "RajcePublishing.c" -} - - -/** - * Action to display the success pane in the publishing dialog. - */ -static void -publishing_rajce_rajce_publisher_do_show_success_pane (PublishingRajceRajcePublisher* self) -{ - gboolean _tmp0_ = FALSE; - SpitPublishingPluginHost* _tmp9_; - SpitPublishingPluginHost* _tmp10_; - GError * _inner_error_ = NULL; -#line 692 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_return_if_fail (PUBLISHING_RAJCE_IS_RAJCE_PUBLISHER (self)); -#line 694 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_debug ("RajcePublishing.vala:694: ACTION: installing success pane"); -#line 695 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - if (publishing_rajce_rajce_publisher_get_show_album (self)) { -#line 5585 "RajcePublishing.c" - PublishingRajceSession* _tmp1_; - gchar* _tmp2_; - gchar* _tmp3_; -#line 695 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp1_ = self->priv->session; -#line 695 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp2_ = publishing_rajce_session_get_albumticket (_tmp1_); -#line 695 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp3_ = _tmp2_; -#line 695 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp0_ = _tmp3_ != NULL; -#line 695 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_free0 (_tmp3_); -#line 5599 "RajcePublishing.c" - } else { -#line 695 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp0_ = FALSE; -#line 5603 "RajcePublishing.c" - } -#line 695 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - if (_tmp0_) { -#line 5607 "RajcePublishing.c" - { - PublishingRajceSession* _tmp4_; - gchar* _tmp5_; - gchar* _tmp6_; - gchar* _tmp7_; - gchar* _tmp8_; -#line 699 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp4_ = self->priv->session; -#line 699 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp5_ = publishing_rajce_session_get_albumticket (_tmp4_); -#line 699 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp6_ = _tmp5_; -#line 699 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp7_ = g_strconcat ("xdg-open ", _tmp6_, NULL); -#line 699 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp8_ = _tmp7_; -#line 699 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_spawn_command_line_async (_tmp8_, &_inner_error_); -#line 699 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_free0 (_tmp8_); -#line 699 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_free0 (_tmp6_); -#line 699 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 699 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - if (_inner_error_->domain == G_SPAWN_ERROR) { -#line 5634 "RajcePublishing.c" - goto __catch28_g_spawn_error; - } -#line 699 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 699 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_clear_error (&_inner_error_); -#line 699 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - return; -#line 5643 "RajcePublishing.c" - } - } - goto __finally28; - __catch28_g_spawn_error: - { - GError* e = NULL; -#line 697 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - e = _inner_error_; -#line 697 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _inner_error_ = NULL; -#line 697 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_error_free0 (e); -#line 5656 "RajcePublishing.c" - } - __finally28: -#line 697 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 697 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 697 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_clear_error (&_inner_error_); -#line 697 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - return; -#line 5667 "RajcePublishing.c" - } - } -#line 705 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp9_ = self->priv->host; -#line 705 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - spit_publishing_plugin_host_set_service_locked (_tmp9_, FALSE); -#line 706 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp10_ = self->priv->host; -#line 706 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - spit_publishing_plugin_host_install_success_pane (_tmp10_); -#line 5678 "RajcePublishing.c" -} - - -/** - * Helper event to handle network errors. - */ -static void -publishing_rajce_rajce_publisher_on_network_error (PublishingRajceRajcePublisher* self, - PublishingRESTSupportTransaction* bad_txn, - GError* err) -{ -#line 712 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_return_if_fail (PUBLISHING_RAJCE_IS_RAJCE_PUBLISHER (self)); -#line 712 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_return_if_fail (PUBLISHING_REST_SUPPORT_IS_TRANSACTION (bad_txn)); -#line 714 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_debug ("RajcePublishing.vala:714: EVENT: on_network_error"); -#line 715 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - publishing_rajce_rajce_publisher_do_show_error (self, err); -#line 5698 "RajcePublishing.c" -} - - -/** - * Action to display an error to the user. - */ -static void -publishing_rajce_rajce_publisher_do_show_error (PublishingRajceRajcePublisher* self, - GError* e) -{ - gchar* error_type = NULL; - gchar* _tmp0_; - const gchar* _tmp7_; - const gchar* _tmp8_; - gchar* _tmp9_; - gchar* _tmp10_; -#line 721 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_return_if_fail (PUBLISHING_RAJCE_IS_RAJCE_PUBLISHER (self)); -#line 723 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_debug ("RajcePublishing.vala:723: ACTION: do_show_error"); -#line 724 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp0_ = g_strdup ("UNKNOWN"); -#line 724 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - error_type = _tmp0_; -#line 725 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - if (g_error_matches (e, SPIT_PUBLISHING_PUBLISHING_ERROR, SPIT_PUBLISHING_PUBLISHING_ERROR_NO_ANSWER)) { -#line 727 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - publishing_rajce_rajce_publisher_do_show_authentication_pane (self, PUBLISHING_RAJCE_AUTHENTICATION_PANE_MODE_FAILED_RETRY_USER); -#line 728 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_free0 (error_type); -#line 728 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - return; -#line 5731 "RajcePublishing.c" - } else { -#line 729 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - if (g_error_matches (e, SPIT_PUBLISHING_PUBLISHING_ERROR, SPIT_PUBLISHING_PUBLISHING_ERROR_COMMUNICATION_FAILED)) { -#line 5735 "RajcePublishing.c" - gchar* _tmp1_; -#line 730 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp1_ = g_strdup ("COMMUNICATION_FAILED"); -#line 730 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_free0 (error_type); -#line 730 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - error_type = _tmp1_; -#line 5743 "RajcePublishing.c" - } else { -#line 731 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - if (g_error_matches (e, SPIT_PUBLISHING_PUBLISHING_ERROR, SPIT_PUBLISHING_PUBLISHING_ERROR_PROTOCOL_ERROR)) { -#line 5747 "RajcePublishing.c" - gchar* _tmp2_; -#line 732 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp2_ = g_strdup ("PROTOCOL_ERROR"); -#line 732 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_free0 (error_type); -#line 732 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - error_type = _tmp2_; -#line 5755 "RajcePublishing.c" - } else { -#line 733 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - if (g_error_matches (e, SPIT_PUBLISHING_PUBLISHING_ERROR, SPIT_PUBLISHING_PUBLISHING_ERROR_SERVICE_ERROR)) { -#line 5759 "RajcePublishing.c" - gchar* _tmp3_; -#line 734 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp3_ = g_strdup ("SERVICE_ERROR"); -#line 734 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_free0 (error_type); -#line 734 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - error_type = _tmp3_; -#line 5767 "RajcePublishing.c" - } else { -#line 735 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - if (g_error_matches (e, SPIT_PUBLISHING_PUBLISHING_ERROR, SPIT_PUBLISHING_PUBLISHING_ERROR_MALFORMED_RESPONSE)) { -#line 5771 "RajcePublishing.c" - gchar* _tmp4_; -#line 736 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp4_ = g_strdup ("MALFORMED_RESPONSE"); -#line 736 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_free0 (error_type); -#line 736 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - error_type = _tmp4_; -#line 5779 "RajcePublishing.c" - } else { -#line 737 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - if (g_error_matches (e, SPIT_PUBLISHING_PUBLISHING_ERROR, SPIT_PUBLISHING_PUBLISHING_ERROR_LOCAL_FILE_ERROR)) { -#line 5783 "RajcePublishing.c" - gchar* _tmp5_; -#line 738 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp5_ = g_strdup ("LOCAL_FILE_ERROR"); -#line 738 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_free0 (error_type); -#line 738 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - error_type = _tmp5_; -#line 5791 "RajcePublishing.c" - } else { -#line 739 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - if (g_error_matches (e, SPIT_PUBLISHING_PUBLISHING_ERROR, SPIT_PUBLISHING_PUBLISHING_ERROR_EXPIRED_SESSION)) { -#line 5795 "RajcePublishing.c" - gchar* _tmp6_; -#line 740 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp6_ = g_strdup ("EXPIRED_SESSION"); -#line 740 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_free0 (error_type); -#line 740 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - error_type = _tmp6_; -#line 5803 "RajcePublishing.c" - } - } - } - } - } - } - } -#line 743 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp7_ = error_type; -#line 743 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp8_ = e->message; -#line 743 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp9_ = g_strdup_printf ("Unhandled error: type=%s; message='%s'", _tmp7_, _tmp8_); -#line 743 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp10_ = _tmp9_; -#line 743 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_debug ("RajcePublishing.vala:743: %s", _tmp10_); -#line 743 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_free0 (_tmp10_); -#line 744 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - publishing_rajce_rajce_publisher_do_show_error_message (self, _ ("An error message occurred when publishing to Rajce. Please try again.")); -#line 721 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_free0 (error_type); -#line 5827 "RajcePublishing.c" -} - - -/** - * Action to display an error message to the user. - */ -static void -publishing_rajce_rajce_publisher_do_show_error_message (PublishingRajceRajcePublisher* self, - const gchar* message) -{ - SpitPublishingPluginHost* _tmp0_; -#line 750 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_return_if_fail (PUBLISHING_RAJCE_IS_RAJCE_PUBLISHER (self)); -#line 750 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_return_if_fail (message != NULL); -#line 752 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_debug ("RajcePublishing.vala:752: ACTION: do_show_error_message"); -#line 753 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp0_ = self->priv->host; -#line 753 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - spit_publishing_plugin_host_install_static_message_pane (_tmp0_, message, SPIT_PUBLISHING_PLUGIN_HOST_BUTTON_MODE_CLOSE); -#line 5849 "RajcePublishing.c" -} - - -static void -publishing_rajce_rajce_publisher_class_init (PublishingRajceRajcePublisherClass * klass) -{ -#line 66 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - publishing_rajce_rajce_publisher_parent_class = g_type_class_peek_parent (klass); -#line 66 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_type_class_add_private (klass, sizeof (PublishingRajceRajcePublisherPrivate)); -#line 66 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - G_OBJECT_CLASS (klass)->finalize = publishing_rajce_rajce_publisher_finalize; -#line 5862 "RajcePublishing.c" -} - - -static void -publishing_rajce_rajce_publisher_spit_publishing_publisher_interface_init (SpitPublishingPublisherIface * iface) -{ -#line 66 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - publishing_rajce_rajce_publisher_spit_publishing_publisher_parent_iface = g_type_interface_peek_parent (iface); -#line 66 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - iface->get_service = (SpitPublishingService* (*) (SpitPublishingPublisher *)) publishing_rajce_rajce_publisher_real_get_service; -#line 66 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - iface->is_running = (gboolean (*) (SpitPublishingPublisher *)) publishing_rajce_rajce_publisher_real_is_running; -#line 66 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - iface->start = (void (*) (SpitPublishingPublisher *)) publishing_rajce_rajce_publisher_real_start; -#line 66 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - iface->stop = (void (*) (SpitPublishingPublisher *)) publishing_rajce_rajce_publisher_real_stop; -#line 5879 "RajcePublishing.c" -} - - -static void -publishing_rajce_rajce_publisher_instance_init (PublishingRajceRajcePublisher * self) -{ -#line 66 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - self->priv = PUBLISHING_RAJCE_RAJCE_PUBLISHER_GET_PRIVATE (self); -#line 68 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - self->priv->host = NULL; -#line 69 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - self->priv->progress_reporter = NULL; -#line 69 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - self->priv->progress_reporter_target = self; -#line 69 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - self->priv->progress_reporter_target_destroy_notify = NULL; -#line 70 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - self->priv->service = NULL; -#line 71 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - self->priv->running = FALSE; -#line 80 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - self->priv->albums = NULL; -#line 80 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - self->priv->albums_length1 = 0; -#line 80 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - self->priv->_albums_size_ = self->priv->albums_length1; -#line 81 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - self->priv->parameters = NULL; -#line 82 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - self->priv->media_type = SPIT_PUBLISHING_PUBLISHER_MEDIA_TYPE_NONE; -#line 5910 "RajcePublishing.c" -} - - -static void -publishing_rajce_rajce_publisher_finalize (GObject * obj) -{ - PublishingRajceRajcePublisher * self; -#line 66 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, PUBLISHING_RAJCE_TYPE_RAJCE_PUBLISHER, PublishingRajceRajcePublisher); -#line 68 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_object_unref0 (self->priv->host); -#line 69 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - (self->priv->progress_reporter_target_destroy_notify == NULL) ? NULL : (self->priv->progress_reporter_target_destroy_notify (self->priv->progress_reporter_target), NULL); -#line 69 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - self->priv->progress_reporter = NULL; -#line 69 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - self->priv->progress_reporter_target = NULL; -#line 69 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - self->priv->progress_reporter_target_destroy_notify = NULL; -#line 70 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_object_unref0 (self->priv->service); -#line 72 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _publishing_rest_support_session_unref0 (self->priv->session); -#line 80 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - self->priv->albums = (_vala_array_free (self->priv->albums, self->priv->albums_length1, (GDestroyNotify) publishing_rajce_album_unref), NULL); -#line 81 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _publishing_rajce_publishing_parameters_unref0 (self->priv->parameters); -#line 66 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - G_OBJECT_CLASS (publishing_rajce_rajce_publisher_parent_class)->finalize (obj); -#line 5940 "RajcePublishing.c" -} - - -GType -publishing_rajce_rajce_publisher_get_type (void) -{ - static volatile gsize publishing_rajce_rajce_publisher_type_id__volatile = 0; - if (g_once_init_enter (&publishing_rajce_rajce_publisher_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (PublishingRajceRajcePublisherClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) publishing_rajce_rajce_publisher_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PublishingRajceRajcePublisher), 0, (GInstanceInitFunc) publishing_rajce_rajce_publisher_instance_init, NULL }; - static const GInterfaceInfo spit_publishing_publisher_info = { (GInterfaceInitFunc) publishing_rajce_rajce_publisher_spit_publishing_publisher_interface_init, (GInterfaceFinalizeFunc) NULL, NULL}; - GType publishing_rajce_rajce_publisher_type_id; - publishing_rajce_rajce_publisher_type_id = g_type_register_static (G_TYPE_OBJECT, "PublishingRajceRajcePublisher", &g_define_type_info, 0); - g_type_add_interface_static (publishing_rajce_rajce_publisher_type_id, SPIT_PUBLISHING_TYPE_PUBLISHER, &spit_publishing_publisher_info); - g_once_init_leave (&publishing_rajce_rajce_publisher_type_id__volatile, publishing_rajce_rajce_publisher_type_id); - } - return publishing_rajce_rajce_publisher_type_id__volatile; -} - - -PublishingRajceAlbum* -publishing_rajce_album_construct (GType object_type, - gint id, - const gchar* albumName, - const gchar* url, - const gchar* thumbUrl, - const gchar* createDate, - const gchar* updateDate, - gboolean hidden, - gboolean secure, - gint photoCount) -{ - PublishingRajceAlbum* self = NULL; - gchar* _tmp0_; - gchar* _tmp1_; - gchar* _tmp2_; - gchar* _tmp3_; - gchar* _tmp4_; -#line 771 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_return_val_if_fail (albumName != NULL, NULL); -#line 771 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_return_val_if_fail (url != NULL, NULL); -#line 771 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_return_val_if_fail (thumbUrl != NULL, NULL); -#line 771 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_return_val_if_fail (createDate != NULL, NULL); -#line 771 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_return_val_if_fail (updateDate != NULL, NULL); -#line 771 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - self = (PublishingRajceAlbum*) g_type_create_instance (object_type); -#line 773 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - self->id = id; -#line 774 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp0_ = g_strdup (albumName); -#line 774 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_free0 (self->albumName); -#line 774 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - self->albumName = _tmp0_; -#line 775 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp1_ = g_strdup (url); -#line 775 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_free0 (self->url); -#line 775 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - self->url = _tmp1_; -#line 776 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp2_ = g_strdup (thumbUrl); -#line 776 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_free0 (self->thumbUrl); -#line 776 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - self->thumbUrl = _tmp2_; -#line 777 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp3_ = g_strdup (createDate); -#line 777 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_free0 (self->createDate); -#line 777 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - self->createDate = _tmp3_; -#line 778 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp4_ = g_strdup (updateDate); -#line 778 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_free0 (self->updateDate); -#line 778 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - self->updateDate = _tmp4_; -#line 779 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - self->hidden = hidden; -#line 780 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - self->secure = secure; -#line 781 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - self->photoCount = photoCount; -#line 771 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - return self; -#line 6030 "RajcePublishing.c" -} - - -PublishingRajceAlbum* -publishing_rajce_album_new (gint id, - const gchar* albumName, - const gchar* url, - const gchar* thumbUrl, - const gchar* createDate, - const gchar* updateDate, - gboolean hidden, - gboolean secure, - gint photoCount) -{ -#line 771 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - return publishing_rajce_album_construct (PUBLISHING_RAJCE_TYPE_ALBUM, id, albumName, url, thumbUrl, createDate, updateDate, hidden, secure, photoCount); -#line 6047 "RajcePublishing.c" -} - - -gint -publishing_rajce_album_compare_albums (PublishingRajceAlbum* a, - PublishingRajceAlbum* b) -{ - gint result = 0; - gboolean _tmp0_ = FALSE; - const gchar* _tmp3_; - const gchar* _tmp4_; -#line 783 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_return_val_if_fail ((a == NULL) || PUBLISHING_RAJCE_IS_ALBUM (a), 0); -#line 783 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_return_val_if_fail ((b == NULL) || PUBLISHING_RAJCE_IS_ALBUM (b), 0); -#line 785 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - if (a == NULL) { -#line 785 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp0_ = b == NULL; -#line 6067 "RajcePublishing.c" - } else { -#line 785 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp0_ = FALSE; -#line 6071 "RajcePublishing.c" - } -#line 785 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - if (_tmp0_) { -#line 787 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - result = 0; -#line 787 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - return result; -#line 6079 "RajcePublishing.c" - } else { - gboolean _tmp1_ = FALSE; -#line 789 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - if (a == NULL) { -#line 789 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp1_ = b != NULL; -#line 6086 "RajcePublishing.c" - } else { -#line 789 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp1_ = FALSE; -#line 6090 "RajcePublishing.c" - } -#line 789 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - if (_tmp1_) { -#line 791 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - result = 1; -#line 791 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - return result; -#line 6098 "RajcePublishing.c" - } else { - gboolean _tmp2_ = FALSE; -#line 793 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - if (a != NULL) { -#line 793 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp2_ = b == NULL; -#line 6105 "RajcePublishing.c" - } else { -#line 793 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp2_ = FALSE; -#line 6109 "RajcePublishing.c" - } -#line 793 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - if (_tmp2_) { -#line 795 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - result = -1; -#line 795 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - return result; -#line 6117 "RajcePublishing.c" - } - } - } -#line 797 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp3_ = b->updateDate; -#line 797 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp4_ = a->updateDate; -#line 797 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - result = g_ascii_strcasecmp (_tmp3_, _tmp4_); -#line 797 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - return result; -#line 6129 "RajcePublishing.c" -} - - -static void -publishing_rajce_value_album_init (GValue* value) -{ -#line 759 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - value->data[0].v_pointer = NULL; -#line 6138 "RajcePublishing.c" -} - - -static void -publishing_rajce_value_album_free_value (GValue* value) -{ -#line 759 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - if (value->data[0].v_pointer) { -#line 759 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - publishing_rajce_album_unref (value->data[0].v_pointer); -#line 6149 "RajcePublishing.c" - } -} - - -static void -publishing_rajce_value_album_copy_value (const GValue* src_value, - GValue* dest_value) -{ -#line 759 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - if (src_value->data[0].v_pointer) { -#line 759 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - dest_value->data[0].v_pointer = publishing_rajce_album_ref (src_value->data[0].v_pointer); -#line 6162 "RajcePublishing.c" - } else { -#line 759 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - dest_value->data[0].v_pointer = NULL; -#line 6166 "RajcePublishing.c" - } -} - - -static gpointer -publishing_rajce_value_album_peek_pointer (const GValue* value) -{ -#line 759 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - return value->data[0].v_pointer; -#line 6176 "RajcePublishing.c" -} - - -static gchar* -publishing_rajce_value_album_collect_value (GValue* value, - guint n_collect_values, - GTypeCValue* collect_values, - guint collect_flags) -{ -#line 759 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - if (collect_values[0].v_pointer) { -#line 6188 "RajcePublishing.c" - PublishingRajceAlbum * object; - object = collect_values[0].v_pointer; -#line 759 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - if (object->parent_instance.g_class == NULL) { -#line 759 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL); -#line 6195 "RajcePublishing.c" - } else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) { -#line 759 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - return g_strconcat ("invalid object type `", g_type_name (G_TYPE_FROM_INSTANCE (object)), "' for value type `", G_VALUE_TYPE_NAME (value), "'", NULL); -#line 6199 "RajcePublishing.c" - } -#line 759 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - value->data[0].v_pointer = publishing_rajce_album_ref (object); -#line 6203 "RajcePublishing.c" - } else { -#line 759 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - value->data[0].v_pointer = NULL; -#line 6207 "RajcePublishing.c" - } -#line 759 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - return NULL; -#line 6211 "RajcePublishing.c" -} - - -static gchar* -publishing_rajce_value_album_lcopy_value (const GValue* value, - guint n_collect_values, - GTypeCValue* collect_values, - guint collect_flags) -{ - PublishingRajceAlbum ** object_p; - object_p = collect_values[0].v_pointer; -#line 759 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - if (!object_p) { -#line 759 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value)); -#line 6227 "RajcePublishing.c" - } -#line 759 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - if (!value->data[0].v_pointer) { -#line 759 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - *object_p = NULL; -#line 6233 "RajcePublishing.c" - } else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) { -#line 759 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - *object_p = value->data[0].v_pointer; -#line 6237 "RajcePublishing.c" - } else { -#line 759 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - *object_p = publishing_rajce_album_ref (value->data[0].v_pointer); -#line 6241 "RajcePublishing.c" - } -#line 759 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - return NULL; -#line 6245 "RajcePublishing.c" -} - - -GParamSpec* -publishing_rajce_param_spec_album (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags) -{ - PublishingRajceParamSpecAlbum* spec; -#line 759 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_return_val_if_fail (g_type_is_a (object_type, PUBLISHING_RAJCE_TYPE_ALBUM), NULL); -#line 759 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags); -#line 759 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - G_PARAM_SPEC (spec)->value_type = object_type; -#line 759 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - return G_PARAM_SPEC (spec); -#line 6265 "RajcePublishing.c" -} - - -gpointer -publishing_rajce_value_get_album (const GValue* value) -{ -#line 759 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, PUBLISHING_RAJCE_TYPE_ALBUM), NULL); -#line 759 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - return value->data[0].v_pointer; -#line 6276 "RajcePublishing.c" -} - - -void -publishing_rajce_value_set_album (GValue* value, - gpointer v_object) -{ - PublishingRajceAlbum * old; -#line 759 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, PUBLISHING_RAJCE_TYPE_ALBUM)); -#line 759 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - old = value->data[0].v_pointer; -#line 759 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - if (v_object) { -#line 759 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, PUBLISHING_RAJCE_TYPE_ALBUM)); -#line 759 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value))); -#line 759 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - value->data[0].v_pointer = v_object; -#line 759 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - publishing_rajce_album_ref (value->data[0].v_pointer); -#line 6299 "RajcePublishing.c" - } else { -#line 759 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - value->data[0].v_pointer = NULL; -#line 6303 "RajcePublishing.c" - } -#line 759 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - if (old) { -#line 759 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - publishing_rajce_album_unref (old); -#line 6309 "RajcePublishing.c" - } -} - - -void -publishing_rajce_value_take_album (GValue* value, - gpointer v_object) -{ - PublishingRajceAlbum * old; -#line 759 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, PUBLISHING_RAJCE_TYPE_ALBUM)); -#line 759 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - old = value->data[0].v_pointer; -#line 759 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - if (v_object) { -#line 759 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, PUBLISHING_RAJCE_TYPE_ALBUM)); -#line 759 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value))); -#line 759 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - value->data[0].v_pointer = v_object; -#line 6331 "RajcePublishing.c" - } else { -#line 759 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - value->data[0].v_pointer = NULL; -#line 6335 "RajcePublishing.c" - } -#line 759 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - if (old) { -#line 759 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - publishing_rajce_album_unref (old); -#line 6341 "RajcePublishing.c" - } -} - - -static void -publishing_rajce_album_class_init (PublishingRajceAlbumClass * klass) -{ -#line 759 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - publishing_rajce_album_parent_class = g_type_class_peek_parent (klass); -#line 759 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - ((PublishingRajceAlbumClass *) klass)->finalize = publishing_rajce_album_finalize; -#line 6353 "RajcePublishing.c" -} - - -static void -publishing_rajce_album_instance_init (PublishingRajceAlbum * self) -{ -#line 759 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - self->ref_count = 1; -#line 6362 "RajcePublishing.c" -} - - -static void -publishing_rajce_album_finalize (PublishingRajceAlbum * obj) -{ - PublishingRajceAlbum * self; -#line 759 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, PUBLISHING_RAJCE_TYPE_ALBUM, PublishingRajceAlbum); -#line 759 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_signal_handlers_destroy (self); -#line 762 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_free0 (self->albumName); -#line 763 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_free0 (self->url); -#line 764 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_free0 (self->thumbUrl); -#line 765 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_free0 (self->createDate); -#line 766 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_free0 (self->updateDate); -#line 6384 "RajcePublishing.c" -} - - -GType -publishing_rajce_album_get_type (void) -{ - static volatile gsize publishing_rajce_album_type_id__volatile = 0; - if (g_once_init_enter (&publishing_rajce_album_type_id__volatile)) { - static const GTypeValueTable g_define_type_value_table = { publishing_rajce_value_album_init, publishing_rajce_value_album_free_value, publishing_rajce_value_album_copy_value, publishing_rajce_value_album_peek_pointer, "p", publishing_rajce_value_album_collect_value, "p", publishing_rajce_value_album_lcopy_value }; - static const GTypeInfo g_define_type_info = { sizeof (PublishingRajceAlbumClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) publishing_rajce_album_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PublishingRajceAlbum), 0, (GInstanceInitFunc) publishing_rajce_album_instance_init, &g_define_type_value_table }; - static const GTypeFundamentalInfo g_define_type_fundamental_info = { (G_TYPE_FLAG_CLASSED | G_TYPE_FLAG_INSTANTIATABLE | G_TYPE_FLAG_DERIVABLE | G_TYPE_FLAG_DEEP_DERIVABLE) }; - GType publishing_rajce_album_type_id; - publishing_rajce_album_type_id = g_type_register_fundamental (g_type_fundamental_next (), "PublishingRajceAlbum", &g_define_type_info, &g_define_type_fundamental_info, 0); - g_once_init_leave (&publishing_rajce_album_type_id__volatile, publishing_rajce_album_type_id); - } - return publishing_rajce_album_type_id__volatile; -} - - -gpointer -publishing_rajce_album_ref (gpointer instance) -{ - PublishingRajceAlbum * self; - self = instance; -#line 759 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_atomic_int_inc (&self->ref_count); -#line 759 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - return instance; -#line 6413 "RajcePublishing.c" -} - - -void -publishing_rajce_album_unref (gpointer instance) -{ - PublishingRajceAlbum * self; - self = instance; -#line 759 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - if (g_atomic_int_dec_and_test (&self->ref_count)) { -#line 759 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - PUBLISHING_RAJCE_ALBUM_GET_CLASS (self)->finalize (self); -#line 759 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_type_free_instance ((GTypeInstance *) self); -#line 6428 "RajcePublishing.c" - } -} - - -PublishingRajceUploader* -publishing_rajce_uploader_construct (GType object_type, - PublishingRajceSession* session, - const gchar* url, - SpitPublishingPublishable** publishables, - int publishables_length1, - PublishingRajcePublishingParameters* parameters) -{ - PublishingRajceUploader* self = NULL; - PublishingRajcePublishingParameters* _tmp0_; - gchar* _tmp1_; -#line 807 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_return_val_if_fail (PUBLISHING_RAJCE_IS_SESSION (session), NULL); -#line 807 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_return_val_if_fail (url != NULL, NULL); -#line 807 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_return_val_if_fail (PUBLISHING_RAJCE_IS_PUBLISHING_PARAMETERS (parameters), NULL); -#line 809 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - self = (PublishingRajceUploader*) publishing_rest_support_batch_uploader_construct (object_type, G_TYPE_CHECK_INSTANCE_CAST (session, PUBLISHING_REST_SUPPORT_TYPE_SESSION, PublishingRESTSupportSession), publishables, publishables_length1); -#line 810 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp0_ = _publishing_rajce_publishing_parameters_ref0 (parameters); -#line 810 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _publishing_rajce_publishing_parameters_unref0 (self->priv->parameters); -#line 810 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - self->priv->parameters = _tmp0_; -#line 811 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp1_ = g_strdup (url); -#line 811 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_free0 (self->priv->url); -#line 811 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - self->priv->url = _tmp1_; -#line 807 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - return self; -#line 6466 "RajcePublishing.c" -} - - -PublishingRajceUploader* -publishing_rajce_uploader_new (PublishingRajceSession* session, - const gchar* url, - SpitPublishingPublishable** publishables, - int publishables_length1, - PublishingRajcePublishingParameters* parameters) -{ -#line 807 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - return publishing_rajce_uploader_construct (PUBLISHING_RAJCE_TYPE_UPLOADER, session, url, publishables, publishables_length1, parameters); -#line 6479 "RajcePublishing.c" -} - - -static PublishingRESTSupportTransaction* -publishing_rajce_uploader_real_create_transaction (PublishingRESTSupportBatchUploader* base, - SpitPublishingPublishable* publishable) -{ - PublishingRajceUploader * self; - PublishingRESTSupportTransaction* result = NULL; - PublishingRESTSupportSession* _tmp0_; - PublishingRajceSession* _tmp1_; - const gchar* _tmp2_; - PublishingRajcePublishingParameters* _tmp3_; - PublishingRajceAddPhotoTransaction* _tmp4_; - PublishingRESTSupportTransaction* _tmp5_; -#line 814 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_RAJCE_TYPE_UPLOADER, PublishingRajceUploader); -#line 814 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_return_val_if_fail (SPIT_PUBLISHING_IS_PUBLISHABLE (publishable), NULL); -#line 816 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp0_ = publishing_rest_support_batch_uploader_get_session (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_BATCH_UPLOADER, PublishingRESTSupportBatchUploader)); -#line 816 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp1_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, PUBLISHING_RAJCE_TYPE_SESSION, PublishingRajceSession); -#line 816 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp2_ = self->priv->url; -#line 816 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp3_ = self->priv->parameters; -#line 816 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp4_ = publishing_rajce_add_photo_transaction_new (_tmp1_, _tmp2_, _tmp3_, publishable); -#line 816 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp5_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction); -#line 816 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _publishing_rest_support_session_unref0 (_tmp1_); -#line 816 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - result = _tmp5_; -#line 816 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - return result; -#line 6517 "RajcePublishing.c" -} - - -static void -publishing_rajce_uploader_class_init (PublishingRajceUploaderClass * klass) -{ -#line 802 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - publishing_rajce_uploader_parent_class = g_type_class_peek_parent (klass); -#line 802 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - ((PublishingRESTSupportBatchUploaderClass *) klass)->finalize = publishing_rajce_uploader_finalize; -#line 802 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_type_class_add_private (klass, sizeof (PublishingRajceUploaderPrivate)); -#line 802 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - ((PublishingRESTSupportBatchUploaderClass *) klass)->create_transaction = (PublishingRESTSupportTransaction* (*) (PublishingRESTSupportBatchUploader *, SpitPublishingPublishable*)) publishing_rajce_uploader_real_create_transaction; -#line 6532 "RajcePublishing.c" -} - - -static void -publishing_rajce_uploader_instance_init (PublishingRajceUploader * self) -{ -#line 802 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - self->priv = PUBLISHING_RAJCE_UPLOADER_GET_PRIVATE (self); -#line 6541 "RajcePublishing.c" -} - - -static void -publishing_rajce_uploader_finalize (PublishingRESTSupportBatchUploader * obj) -{ - PublishingRajceUploader * self; -#line 802 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, PUBLISHING_RAJCE_TYPE_UPLOADER, PublishingRajceUploader); -#line 804 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _publishing_rajce_publishing_parameters_unref0 (self->priv->parameters); -#line 805 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_free0 (self->priv->url); -#line 802 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - PUBLISHING_REST_SUPPORT_BATCH_UPLOADER_CLASS (publishing_rajce_uploader_parent_class)->finalize (obj); -#line 6557 "RajcePublishing.c" -} - - -GType -publishing_rajce_uploader_get_type (void) -{ - static volatile gsize publishing_rajce_uploader_type_id__volatile = 0; - if (g_once_init_enter (&publishing_rajce_uploader_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (PublishingRajceUploaderClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) publishing_rajce_uploader_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PublishingRajceUploader), 0, (GInstanceInitFunc) publishing_rajce_uploader_instance_init, NULL }; - GType publishing_rajce_uploader_type_id; - publishing_rajce_uploader_type_id = g_type_register_static (PUBLISHING_REST_SUPPORT_TYPE_BATCH_UPLOADER, "PublishingRajceUploader", &g_define_type_info, 0); - g_once_init_leave (&publishing_rajce_uploader_type_id__volatile, publishing_rajce_uploader_type_id); - } - return publishing_rajce_uploader_type_id__volatile; -} - - -GType -publishing_rajce_authentication_pane_mode_get_type (void) -{ - static volatile gsize publishing_rajce_authentication_pane_mode_type_id__volatile = 0; - if (g_once_init_enter (&publishing_rajce_authentication_pane_mode_type_id__volatile)) { - static const GEnumValue values[] = {{PUBLISHING_RAJCE_AUTHENTICATION_PANE_MODE_INTRO, "PUBLISHING_RAJCE_AUTHENTICATION_PANE_MODE_INTRO", "intro"}, {PUBLISHING_RAJCE_AUTHENTICATION_PANE_MODE_FAILED_RETRY_USER, "PUBLISHING_RAJCE_AUTHENTICATION_PANE_MODE_FAILED_RETRY_USER", "failed-retry-user"}, {0, NULL, NULL}}; - GType publishing_rajce_authentication_pane_mode_type_id; - publishing_rajce_authentication_pane_mode_type_id = g_enum_register_static ("PublishingRajceAuthenticationPaneMode", values); - g_once_init_leave (&publishing_rajce_authentication_pane_mode_type_id__volatile, publishing_rajce_authentication_pane_mode_type_id); - } - return publishing_rajce_authentication_pane_mode_type_id__volatile; -} - - -static void -_publishing_rajce_authentication_pane_on_user_changed_gtk_editable_changed (GtkEditable* _sender, - gpointer self) -{ -#line 897 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - publishing_rajce_authentication_pane_on_user_changed ((PublishingRajceAuthenticationPane*) self); -#line 6595 "RajcePublishing.c" -} - - -static void -_publishing_rajce_authentication_pane_on_password_changed_gtk_editable_changed (GtkEditable* _sender, - gpointer self) -{ -#line 898 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - publishing_rajce_authentication_pane_on_password_changed ((PublishingRajceAuthenticationPane*) self); -#line 6605 "RajcePublishing.c" -} - - -static void -_publishing_rajce_authentication_pane_on_login_button_clicked_gtk_button_clicked (GtkButton* _sender, - gpointer self) -{ -#line 899 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - publishing_rajce_authentication_pane_on_login_button_clicked ((PublishingRajceAuthenticationPane*) self); -#line 6615 "RajcePublishing.c" -} - - -PublishingRajceAuthenticationPane* -publishing_rajce_authentication_pane_construct (GType object_type, - PublishingRajceRajcePublisher* publisher, - PublishingRajceAuthenticationPaneMode mode) -{ - PublishingRajceAuthenticationPane * self = NULL; - GtkBox* _tmp0_; - GError * _inner_error_ = NULL; -#line 846 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_return_val_if_fail (PUBLISHING_RAJCE_IS_RAJCE_PUBLISHER (publisher), NULL); -#line 846 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - self = (PublishingRajceAuthenticationPane*) g_object_new (object_type, NULL); -#line 848 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp0_ = (GtkBox*) gtk_box_new (GTK_ORIENTATION_VERTICAL, 0); -#line 848 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_object_ref_sink (_tmp0_); -#line 848 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_object_unref0 (self->priv->pane_widget); -#line 848 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - self->priv->pane_widget = _tmp0_; -#line 6639 "RajcePublishing.c" - { - GtkBuilder* _tmp1_; - GtkBuilder* _tmp2_; - GtkBuilder* _tmp3_; - GtkBox* content = NULL; - GtkBuilder* _tmp4_; - GObject* _tmp5_; - GtkBox* _tmp6_; - GtkLabel* message_label = NULL; - GtkBuilder* _tmp7_; - GObject* _tmp8_; - GtkLabel* _tmp9_; - GtkBuilder* _tmp16_; - GObject* _tmp17_; - GtkEntry* _tmp18_; - gchar* persistent_username = NULL; - gchar* _tmp19_; - const gchar* _tmp20_; - GtkBuilder* _tmp23_; - GObject* _tmp24_; - GtkEntry* _tmp25_; - gchar* persistent_token = NULL; - gchar* _tmp26_; - const gchar* _tmp27_; - GtkBuilder* _tmp30_; - GObject* _tmp31_; - GtkCheckButton* _tmp32_; - GtkCheckButton* _tmp33_; - GtkBuilder* _tmp34_; - GObject* _tmp35_; - GtkButton* _tmp36_; - GtkLabel* label2 = NULL; - GtkBuilder* _tmp37_; - GObject* _tmp38_; - GtkLabel* _tmp39_; - GtkLabel* label3 = NULL; - GtkBuilder* _tmp40_; - GObject* _tmp41_; - GtkLabel* _tmp42_; - GtkLabel* _tmp43_; - GtkLabel* _tmp44_; - GtkCheckButton* _tmp45_; - GtkButton* _tmp46_; - GtkEntry* _tmp47_; - GtkEntry* _tmp48_; - GtkButton* _tmp49_; - GtkBox* _tmp50_; - GtkContainer* _tmp51_; - GtkContainer* _tmp52_; - GtkBox* _tmp53_; - GtkBox* _tmp54_; - GtkBox* _tmp55_; - SpitPublishingPluginHost* _tmp56_; - SpitPublishingPluginHost* _tmp57_; - GtkButton* _tmp58_; -#line 851 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp1_ = gtk_builder_new (); -#line 851 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_object_unref0 (self->priv->builder); -#line 851 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - self->priv->builder = _tmp1_; -#line 852 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp2_ = self->priv->builder; -#line 852 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - gtk_builder_add_from_resource (_tmp2_, PLUGIN_RESOURCE_PATH "/rajce_authentication_pane.ui", &_inner_error_); -#line 852 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 6707 "RajcePublishing.c" - goto __catch29_g_error; - } -#line 854 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp3_ = self->priv->builder; -#line 854 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - gtk_builder_connect_signals (_tmp3_, NULL); -#line 855 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp4_ = self->priv->builder; -#line 855 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp5_ = gtk_builder_get_object (_tmp4_, "content"); -#line 855 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp6_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp5_, gtk_box_get_type ()) ? ((GtkBox*) _tmp5_) : NULL); -#line 855 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - content = _tmp6_; -#line 856 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp7_ = self->priv->builder; -#line 856 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp8_ = gtk_builder_get_object (_tmp7_, "message_label"); -#line 856 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp9_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp8_, gtk_label_get_type ()) ? ((GtkLabel*) _tmp8_) : NULL); -#line 856 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - message_label = _tmp9_; -#line 857 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - switch (mode) { -#line 857 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - case PUBLISHING_RAJCE_AUTHENTICATION_PANE_MODE_INTRO: -#line 6734 "RajcePublishing.c" - { - GtkLabel* _tmp10_; - const gchar* _tmp11_; -#line 860 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp10_ = message_label; -#line 860 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp11_ = publishing_rajce_authentication_pane_INTRO_MESSAGE; -#line 860 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - gtk_label_set_text (_tmp10_, _tmp11_); -#line 861 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - break; -#line 6746 "RajcePublishing.c" - } -#line 857 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - case PUBLISHING_RAJCE_AUTHENTICATION_PANE_MODE_FAILED_RETRY_USER: -#line 6750 "RajcePublishing.c" - { - GtkLabel* _tmp12_; - const gchar* _tmp13_; - gchar* _tmp14_; - gchar* _tmp15_; -#line 864 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp12_ = message_label; -#line 864 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp13_ = publishing_rajce_authentication_pane_FAILED_RETRY_USER_MESSAGE; -#line 864 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp14_ = g_strdup_printf ("%s\n\n%s", _ ("Invalid User Email or Password"), _tmp13_); -#line 864 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp15_ = _tmp14_; -#line 864 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - gtk_label_set_markup (_tmp12_, _tmp15_); -#line 864 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_free0 (_tmp15_); -#line 866 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - break; -#line 6770 "RajcePublishing.c" - } - default: -#line 857 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - break; -#line 6775 "RajcePublishing.c" - } -#line 868 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp16_ = self->priv->builder; -#line 868 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp17_ = gtk_builder_get_object (_tmp16_, "username_entry"); -#line 868 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp18_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp17_, gtk_entry_get_type ()) ? ((GtkEntry*) _tmp17_) : NULL); -#line 868 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_object_unref0 (self->priv->username_entry); -#line 868 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - self->priv->username_entry = _tmp18_; -#line 869 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp19_ = publishing_rajce_rajce_publisher_get_username (publisher); -#line 869 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - persistent_username = _tmp19_; -#line 870 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp20_ = persistent_username; -#line 870 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - if (_tmp20_ != NULL) { -#line 6795 "RajcePublishing.c" - GtkEntry* _tmp21_; - const gchar* _tmp22_; -#line 872 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp21_ = self->priv->username_entry; -#line 872 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp22_ = persistent_username; -#line 872 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - gtk_entry_set_text (_tmp21_, _tmp22_); -#line 6804 "RajcePublishing.c" - } -#line 874 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp23_ = self->priv->builder; -#line 874 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp24_ = gtk_builder_get_object (_tmp23_, "password_entry"); -#line 874 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp25_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp24_, gtk_entry_get_type ()) ? ((GtkEntry*) _tmp24_) : NULL); -#line 874 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_object_unref0 (self->priv->password_entry); -#line 874 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - self->priv->password_entry = _tmp25_; -#line 875 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp26_ = publishing_rajce_rajce_publisher_get_token (publisher); -#line 875 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - persistent_token = _tmp26_; -#line 876 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp27_ = persistent_token; -#line 876 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - if (_tmp27_ != NULL) { -#line 6824 "RajcePublishing.c" - GtkEntry* _tmp28_; - const gchar* _tmp29_; -#line 878 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp28_ = self->priv->password_entry; -#line 878 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp29_ = persistent_token; -#line 878 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - gtk_entry_set_text (_tmp28_, _tmp29_); -#line 879 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - self->priv->crypt = FALSE; -#line 6835 "RajcePublishing.c" - } else { -#line 883 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - self->priv->crypt = TRUE; -#line 6839 "RajcePublishing.c" - } -#line 885 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp30_ = self->priv->builder; -#line 885 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp31_ = gtk_builder_get_object (_tmp30_, "remember_checkbutton"); -#line 885 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp32_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp31_, gtk_check_button_get_type ()) ? ((GtkCheckButton*) _tmp31_) : NULL); -#line 885 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_object_unref0 (self->priv->remember_checkbutton); -#line 885 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - self->priv->remember_checkbutton = _tmp32_; -#line 886 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp33_ = self->priv->remember_checkbutton; -#line 886 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - gtk_toggle_button_set_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp33_, gtk_toggle_button_get_type (), GtkToggleButton), publishing_rajce_rajce_publisher_get_remember (publisher)); -#line 887 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp34_ = self->priv->builder; -#line 887 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp35_ = gtk_builder_get_object (_tmp34_, "login_button"); -#line 887 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp36_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp35_, gtk_button_get_type ()) ? ((GtkButton*) _tmp35_) : NULL); -#line 887 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_object_unref0 (self->priv->login_button); -#line 887 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - self->priv->login_button = _tmp36_; -#line 889 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp37_ = self->priv->builder; -#line 889 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp38_ = gtk_builder_get_object (_tmp37_, "label2"); -#line 889 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp39_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp38_, gtk_label_get_type ()) ? ((GtkLabel*) _tmp38_) : NULL); -#line 889 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - label2 = _tmp39_; -#line 890 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp40_ = self->priv->builder; -#line 890 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp41_ = gtk_builder_get_object (_tmp40_, "label3"); -#line 890 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp42_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp41_, gtk_label_get_type ()) ? ((GtkLabel*) _tmp41_) : NULL); -#line 890 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - label3 = _tmp42_; -#line 892 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp43_ = label2; -#line 892 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - gtk_label_set_label (_tmp43_, _ ("_Email address")); -#line 893 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp44_ = label3; -#line 893 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - gtk_label_set_label (_tmp44_, _ ("_Password")); -#line 894 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp45_ = self->priv->remember_checkbutton; -#line 894 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - gtk_button_set_label (G_TYPE_CHECK_INSTANCE_CAST (_tmp45_, gtk_button_get_type (), GtkButton), _ ("_Remember")); -#line 895 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp46_ = self->priv->login_button; -#line 895 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - gtk_button_set_label (_tmp46_, _ ("Log in")); -#line 897 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp47_ = self->priv->username_entry; -#line 897 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp47_, gtk_editable_get_type (), GtkEditable), "changed", (GCallback) _publishing_rajce_authentication_pane_on_user_changed_gtk_editable_changed, self, 0); -#line 898 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp48_ = self->priv->password_entry; -#line 898 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp48_, gtk_editable_get_type (), GtkEditable), "changed", (GCallback) _publishing_rajce_authentication_pane_on_password_changed_gtk_editable_changed, self, 0); -#line 899 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp49_ = self->priv->login_button; -#line 899 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_signal_connect_object (_tmp49_, "clicked", (GCallback) _publishing_rajce_authentication_pane_on_login_button_clicked_gtk_button_clicked, self, 0); -#line 900 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp50_ = content; -#line 900 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp51_ = gtk_widget_get_parent (G_TYPE_CHECK_INSTANCE_CAST (_tmp50_, gtk_widget_get_type (), GtkWidget)); -#line 900 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp52_ = _tmp51_; -#line 900 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp53_ = content; -#line 900 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - gtk_container_remove (_tmp52_, G_TYPE_CHECK_INSTANCE_CAST (_tmp53_, gtk_widget_get_type (), GtkWidget)); -#line 901 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp54_ = self->priv->pane_widget; -#line 901 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp55_ = content; -#line 901 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - gtk_container_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp54_, gtk_container_get_type (), GtkContainer), G_TYPE_CHECK_INSTANCE_CAST (_tmp55_, gtk_widget_get_type (), GtkWidget)); -#line 902 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp56_ = publishing_rajce_rajce_publisher_get_host (publisher); -#line 902 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp57_ = _tmp56_; -#line 902 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp58_ = self->priv->login_button; -#line 902 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - spit_publishing_plugin_host_set_dialog_default_widget (_tmp57_, G_TYPE_CHECK_INSTANCE_CAST (_tmp58_, gtk_widget_get_type (), GtkWidget)); -#line 902 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_object_unref0 (_tmp57_); -#line 849 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_object_unref0 (label3); -#line 849 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_object_unref0 (label2); -#line 849 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_free0 (persistent_token); -#line 849 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_free0 (persistent_username); -#line 849 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_object_unref0 (message_label); -#line 849 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_object_unref0 (content); -#line 6947 "RajcePublishing.c" - } - goto __finally29; - __catch29_g_error: - { - GError* e = NULL; - GError* _tmp59_; - const gchar* _tmp60_; -#line 849 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - e = _inner_error_; -#line 849 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _inner_error_ = NULL; -#line 906 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp59_ = e; -#line 906 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp60_ = _tmp59_->message; -#line 906 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_warning ("RajcePublishing.vala:906: Could not load UI: %s", _tmp60_); -#line 849 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_error_free0 (e); -#line 6967 "RajcePublishing.c" - } - __finally29: -#line 849 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 849 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 849 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_clear_error (&_inner_error_); -#line 849 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - return NULL; -#line 6978 "RajcePublishing.c" - } -#line 846 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - return self; -#line 6982 "RajcePublishing.c" -} - - -PublishingRajceAuthenticationPane* -publishing_rajce_authentication_pane_new (PublishingRajceRajcePublisher* publisher, - PublishingRajceAuthenticationPaneMode mode) -{ -#line 846 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - return publishing_rajce_authentication_pane_construct (PUBLISHING_RAJCE_TYPE_AUTHENTICATION_PANE, publisher, mode); -#line 6992 "RajcePublishing.c" -} - - -GtkWidget* -publishing_rajce_authentication_pane_get_default_widget (PublishingRajceAuthenticationPane* self) -{ - GtkWidget* result = NULL; - GtkButton* _tmp0_; - GtkWidget* _tmp1_; -#line 910 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_return_val_if_fail (PUBLISHING_RAJCE_IS_AUTHENTICATION_PANE (self), NULL); -#line 912 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp0_ = self->priv->login_button; -#line 912 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp1_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, gtk_widget_get_type (), GtkWidget)); -#line 912 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - result = _tmp1_; -#line 912 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - return result; -#line 7012 "RajcePublishing.c" -} - - -static void -publishing_rajce_authentication_pane_on_login_button_clicked (PublishingRajceAuthenticationPane* self) -{ - gchar* token = NULL; - GtkEntry* _tmp0_; - const gchar* _tmp1_; - gchar* _tmp2_; - gboolean _tmp3_; - GtkEntry* _tmp6_; - const gchar* _tmp7_; - const gchar* _tmp8_; - GtkCheckButton* _tmp9_; -#line 915 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_return_if_fail (PUBLISHING_RAJCE_IS_AUTHENTICATION_PANE (self)); -#line 917 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp0_ = self->priv->password_entry; -#line 917 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp1_ = gtk_entry_get_text (_tmp0_); -#line 917 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp2_ = g_strdup (_tmp1_); -#line 917 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - token = _tmp2_; -#line 918 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp3_ = self->priv->crypt; -#line 918 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - if (_tmp3_) { -#line 7042 "RajcePublishing.c" - const gchar* _tmp4_; - gchar* _tmp5_; -#line 920 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp4_ = token; -#line 920 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp5_ = g_compute_checksum_for_string (G_CHECKSUM_MD5, _tmp4_, (gsize) -1); -#line 920 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_free0 (token); -#line 920 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - token = _tmp5_; -#line 7053 "RajcePublishing.c" - } -#line 922 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp6_ = self->priv->username_entry; -#line 922 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp7_ = gtk_entry_get_text (_tmp6_); -#line 922 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp8_ = token; -#line 922 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp9_ = self->priv->remember_checkbutton; -#line 922 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_signal_emit (self, publishing_rajce_authentication_pane_signals[PUBLISHING_RAJCE_AUTHENTICATION_PANE_LOGIN_SIGNAL], 0, _tmp7_, _tmp8_, gtk_toggle_button_get_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, gtk_toggle_button_get_type (), GtkToggleButton))); -#line 915 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_free0 (token); -#line 7067 "RajcePublishing.c" -} - - -static void -publishing_rajce_authentication_pane_on_user_changed (PublishingRajceAuthenticationPane* self) -{ -#line 925 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_return_if_fail (PUBLISHING_RAJCE_IS_AUTHENTICATION_PANE (self)); -#line 927 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - publishing_rajce_authentication_pane_update_login_button_sensitivity (self); -#line 7078 "RajcePublishing.c" -} - - -static void -publishing_rajce_authentication_pane_on_password_changed (PublishingRajceAuthenticationPane* self) -{ -#line 930 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_return_if_fail (PUBLISHING_RAJCE_IS_AUTHENTICATION_PANE (self)); -#line 932 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - self->priv->crypt = TRUE; -#line 933 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - publishing_rajce_authentication_pane_update_login_button_sensitivity (self); -#line 7091 "RajcePublishing.c" -} - - -static void -publishing_rajce_authentication_pane_update_login_button_sensitivity (PublishingRajceAuthenticationPane* self) -{ - gboolean _tmp0_ = FALSE; - GtkEntry* _tmp1_; - guint _tmp2_; - guint _tmp3_; - GtkButton* _tmp7_; -#line 936 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_return_if_fail (PUBLISHING_RAJCE_IS_AUTHENTICATION_PANE (self)); -#line 938 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp1_ = self->priv->username_entry; -#line 938 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp2_ = gtk_entry_get_text_length (_tmp1_); -#line 938 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp3_ = _tmp2_; -#line 938 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - if (_tmp3_ > ((guint) 0)) { -#line 7113 "RajcePublishing.c" - GtkEntry* _tmp4_; - guint _tmp5_; - guint _tmp6_; -#line 939 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp4_ = self->priv->password_entry; -#line 939 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp5_ = gtk_entry_get_text_length (_tmp4_); -#line 939 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp6_ = _tmp5_; -#line 939 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp0_ = _tmp6_ > ((guint) 0); -#line 7125 "RajcePublishing.c" - } else { -#line 938 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp0_ = FALSE; -#line 7129 "RajcePublishing.c" - } -#line 938 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp7_ = self->priv->login_button; -#line 938 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - gtk_widget_set_sensitive (G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, gtk_widget_get_type (), GtkWidget), _tmp0_); -#line 7135 "RajcePublishing.c" -} - - -static GtkWidget* -publishing_rajce_authentication_pane_real_get_widget (SpitPublishingDialogPane* base) -{ - PublishingRajceAuthenticationPane * self; - GtkWidget* result = NULL; - GtkBox* _tmp0_; - GtkWidget* _tmp1_; -#line 942 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_RAJCE_TYPE_AUTHENTICATION_PANE, PublishingRajceAuthenticationPane); -#line 944 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp0_ = self->priv->pane_widget; -#line 944 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp1_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, gtk_widget_get_type (), GtkWidget)); -#line 944 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - result = _tmp1_; -#line 944 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - return result; -#line 7156 "RajcePublishing.c" -} - - -static SpitPublishingDialogPaneGeometryOptions -publishing_rajce_authentication_pane_real_get_preferred_geometry (SpitPublishingDialogPane* base) -{ - PublishingRajceAuthenticationPane * self; - SpitPublishingDialogPaneGeometryOptions result = 0; -#line 947 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_RAJCE_TYPE_AUTHENTICATION_PANE, PublishingRajceAuthenticationPane); -#line 949 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - result = SPIT_PUBLISHING_DIALOG_PANE_GEOMETRY_OPTIONS_NONE; -#line 949 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - return result; -#line 7171 "RajcePublishing.c" -} - - -static void -publishing_rajce_authentication_pane_real_on_pane_installed (SpitPublishingDialogPane* base) -{ - PublishingRajceAuthenticationPane * self; - GtkEntry* _tmp0_; - GtkEntry* _tmp1_; - GtkButton* _tmp2_; -#line 952 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_RAJCE_TYPE_AUTHENTICATION_PANE, PublishingRajceAuthenticationPane); -#line 954 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp0_ = self->priv->username_entry; -#line 954 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - gtk_widget_grab_focus (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, gtk_widget_get_type (), GtkWidget)); -#line 955 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp1_ = self->priv->password_entry; -#line 955 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - gtk_entry_set_activates_default (_tmp1_, TRUE); -#line 956 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp2_ = self->priv->login_button; -#line 956 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - gtk_widget_set_can_default (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, gtk_widget_get_type (), GtkWidget), TRUE); -#line 957 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - publishing_rajce_authentication_pane_update_login_button_sensitivity (self); -#line 7198 "RajcePublishing.c" -} - - -static void -publishing_rajce_authentication_pane_real_on_pane_uninstalled (SpitPublishingDialogPane* base) -{ - PublishingRajceAuthenticationPane * self; -#line 959 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_RAJCE_TYPE_AUTHENTICATION_PANE, PublishingRajceAuthenticationPane); -#line 7208 "RajcePublishing.c" -} - - -static void -g_cclosure_user_marshal_VOID__STRING_STRING_BOOLEAN (GClosure * closure, - GValue * return_value, - guint n_param_values, - const GValue * param_values, - gpointer invocation_hint, - gpointer marshal_data) -{ - typedef void (*GMarshalFunc_VOID__STRING_STRING_BOOLEAN) (gpointer data1, const char* arg_1, const char* arg_2, gboolean arg_3, gpointer data2); - register GMarshalFunc_VOID__STRING_STRING_BOOLEAN callback; - register GCClosure * cc; - register gpointer data1; - register gpointer data2; - cc = (GCClosure *) closure; -#line 826 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_return_if_fail (n_param_values == 4); -#line 826 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - if (G_CCLOSURE_SWAP_DATA (closure)) { -#line 826 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - data1 = closure->data; -#line 826 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - data2 = param_values->data[0].v_pointer; -#line 7234 "RajcePublishing.c" - } else { -#line 826 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - data1 = param_values->data[0].v_pointer; -#line 826 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - data2 = closure->data; -#line 7240 "RajcePublishing.c" - } -#line 826 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - callback = (GMarshalFunc_VOID__STRING_STRING_BOOLEAN) (marshal_data ? marshal_data : cc->callback); -#line 826 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - callback (data1, g_value_get_string (param_values + 1), g_value_get_string (param_values + 2), g_value_get_boolean (param_values + 3), data2); -#line 7246 "RajcePublishing.c" -} - - -static void -publishing_rajce_authentication_pane_class_init (PublishingRajceAuthenticationPaneClass * klass) -{ - gchar* _tmp0_; - gchar* _tmp1_; -#line 826 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - publishing_rajce_authentication_pane_parent_class = g_type_class_peek_parent (klass); -#line 826 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_type_class_add_private (klass, sizeof (PublishingRajceAuthenticationPanePrivate)); -#line 826 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - G_OBJECT_CLASS (klass)->finalize = publishing_rajce_authentication_pane_finalize; -#line 826 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - publishing_rajce_authentication_pane_signals[PUBLISHING_RAJCE_AUTHENTICATION_PANE_LOGIN_SIGNAL] = g_signal_new ("login", PUBLISHING_RAJCE_TYPE_AUTHENTICATION_PANE, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_user_marshal_VOID__STRING_STRING_BOOLEAN, G_TYPE_NONE, 3, G_TYPE_STRING, G_TYPE_STRING, G_TYPE_BOOLEAN); -#line 833 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp0_ = g_strdup (_ ("Enter email and password associated with your Rajce account.")); -#line 833 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - publishing_rajce_authentication_pane_INTRO_MESSAGE = _tmp0_; -#line 834 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp1_ = g_strdup (_ ("Invalid email and/or password. Please try again")); -#line 834 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - publishing_rajce_authentication_pane_FAILED_RETRY_USER_MESSAGE = _tmp1_; -#line 7271 "RajcePublishing.c" -} - - -static void -publishing_rajce_authentication_pane_spit_publishing_dialog_pane_interface_init (SpitPublishingDialogPaneIface * iface) -{ -#line 826 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - publishing_rajce_authentication_pane_spit_publishing_dialog_pane_parent_iface = g_type_interface_peek_parent (iface); -#line 826 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - iface->get_widget = (GtkWidget* (*) (SpitPublishingDialogPane *)) publishing_rajce_authentication_pane_real_get_widget; -#line 826 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - iface->get_preferred_geometry = (SpitPublishingDialogPaneGeometryOptions (*) (SpitPublishingDialogPane *)) publishing_rajce_authentication_pane_real_get_preferred_geometry; -#line 826 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - iface->on_pane_installed = (void (*) (SpitPublishingDialogPane *)) publishing_rajce_authentication_pane_real_on_pane_installed; -#line 826 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - iface->on_pane_uninstalled = (void (*) (SpitPublishingDialogPane *)) publishing_rajce_authentication_pane_real_on_pane_uninstalled; -#line 7288 "RajcePublishing.c" -} - - -static void -publishing_rajce_authentication_pane_instance_init (PublishingRajceAuthenticationPane * self) -{ -#line 826 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - self->priv = PUBLISHING_RAJCE_AUTHENTICATION_PANE_GET_PRIVATE (self); -#line 836 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - self->priv->pane_widget = NULL; -#line 842 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - self->priv->crypt = TRUE; -#line 7301 "RajcePublishing.c" -} - - -static void -publishing_rajce_authentication_pane_finalize (GObject * obj) -{ - PublishingRajceAuthenticationPane * self; -#line 826 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, PUBLISHING_RAJCE_TYPE_AUTHENTICATION_PANE, PublishingRajceAuthenticationPane); -#line 836 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_object_unref0 (self->priv->pane_widget); -#line 837 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_object_unref0 (self->priv->builder); -#line 838 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_object_unref0 (self->priv->username_entry); -#line 839 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_object_unref0 (self->priv->password_entry); -#line 840 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_object_unref0 (self->priv->remember_checkbutton); -#line 841 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_object_unref0 (self->priv->login_button); -#line 826 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - G_OBJECT_CLASS (publishing_rajce_authentication_pane_parent_class)->finalize (obj); -#line 7325 "RajcePublishing.c" -} - - -/** - * The authentication pane used when asking service URL, user name and password - * from the user. - */ -GType -publishing_rajce_authentication_pane_get_type (void) -{ - static volatile gsize publishing_rajce_authentication_pane_type_id__volatile = 0; - if (g_once_init_enter (&publishing_rajce_authentication_pane_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (PublishingRajceAuthenticationPaneClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) publishing_rajce_authentication_pane_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PublishingRajceAuthenticationPane), 0, (GInstanceInitFunc) publishing_rajce_authentication_pane_instance_init, NULL }; - static const GInterfaceInfo spit_publishing_dialog_pane_info = { (GInterfaceInitFunc) publishing_rajce_authentication_pane_spit_publishing_dialog_pane_interface_init, (GInterfaceFinalizeFunc) NULL, NULL}; - GType publishing_rajce_authentication_pane_type_id; - publishing_rajce_authentication_pane_type_id = g_type_register_static (G_TYPE_OBJECT, "PublishingRajceAuthenticationPane", &g_define_type_info, 0); - g_type_add_interface_static (publishing_rajce_authentication_pane_type_id, SPIT_PUBLISHING_TYPE_DIALOG_PANE, &spit_publishing_dialog_pane_info); - g_once_init_leave (&publishing_rajce_authentication_pane_type_id__volatile, publishing_rajce_authentication_pane_type_id); - } - return publishing_rajce_authentication_pane_type_id__volatile; -} - - -static gpointer -_publishing_rajce_album_ref0 (gpointer self) -{ -#line 988 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - return self ? publishing_rajce_album_ref (self) : NULL; -#line 7354 "RajcePublishing.c" -} - - -static PublishingRajceAlbum** -_vala_array_dup5 (PublishingRajceAlbum** self, - int length) -{ - PublishingRajceAlbum** result; - int i; -#line 988 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - result = g_new0 (PublishingRajceAlbum*, length + 1); -#line 988 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - for (i = 0; i < length; i++) { -#line 7368 "RajcePublishing.c" - PublishingRajceAlbum* _tmp0_; -#line 988 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp0_ = _publishing_rajce_album_ref0 (self[i]); -#line 988 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - result[i] = _tmp0_; -#line 7374 "RajcePublishing.c" - } -#line 988 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - return result; -#line 7378 "RajcePublishing.c" -} - - -static void -_publishing_rajce_publishing_options_pane_on_use_existing_radio_clicked_gtk_button_clicked (GtkButton* _sender, - gpointer self) -{ -#line 1021 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - publishing_rajce_publishing_options_pane_on_use_existing_radio_clicked ((PublishingRajcePublishingOptionsPane*) self); -#line 7388 "RajcePublishing.c" -} - - -static void -_publishing_rajce_publishing_options_pane_on_create_new_radio_clicked_gtk_button_clicked (GtkButton* _sender, - gpointer self) -{ -#line 1022 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - publishing_rajce_publishing_options_pane_on_create_new_radio_clicked ((PublishingRajcePublishingOptionsPane*) self); -#line 7398 "RajcePublishing.c" -} - - -static void -_publishing_rajce_publishing_options_pane_on_new_album_entry_changed_gtk_editable_changed (GtkEditable* _sender, - gpointer self) -{ -#line 1023 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - publishing_rajce_publishing_options_pane_on_new_album_entry_changed ((PublishingRajcePublishingOptionsPane*) self); -#line 7408 "RajcePublishing.c" -} - - -static void -_publishing_rajce_publishing_options_pane_on_logout_clicked_gtk_button_clicked (GtkButton* _sender, - gpointer self) -{ -#line 1024 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - publishing_rajce_publishing_options_pane_on_logout_clicked ((PublishingRajcePublishingOptionsPane*) self); -#line 7418 "RajcePublishing.c" -} - - -static void -_publishing_rajce_publishing_options_pane_on_publish_clicked_gtk_button_clicked (GtkButton* _sender, - gpointer self) -{ -#line 1025 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - publishing_rajce_publishing_options_pane_on_publish_clicked ((PublishingRajcePublishingOptionsPane*) self); -#line 7428 "RajcePublishing.c" -} - - -PublishingRajcePublishingOptionsPane* -publishing_rajce_publishing_options_pane_construct (GType object_type, - PublishingRajceRajcePublisher* publisher, - const gchar* username, - PublishingRajceAlbum** albums, - int albums_length1) -{ - PublishingRajcePublishingOptionsPane * self = NULL; - gchar* _tmp0_; - PublishingRajceAlbum** _tmp1_; - gint _tmp1__length1; - PublishingRajceRajcePublisher* _tmp2_; - GtkBox* _tmp3_; - GError * _inner_error_ = NULL; -#line 985 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_return_val_if_fail (PUBLISHING_RAJCE_IS_RAJCE_PUBLISHER (publisher), NULL); -#line 985 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_return_val_if_fail (username != NULL, NULL); -#line 985 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - self = (PublishingRajcePublishingOptionsPane*) g_object_new (object_type, NULL); -#line 987 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp0_ = g_strdup (username); -#line 987 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_free0 (self->priv->username); -#line 987 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - self->priv->username = _tmp0_; -#line 988 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp1_ = (albums != NULL) ? _vala_array_dup5 (albums, albums_length1) : ((gpointer) albums); -#line 988 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp1__length1 = albums_length1; -#line 988 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - self->priv->albums = (_vala_array_free (self->priv->albums, self->priv->albums_length1, (GDestroyNotify) publishing_rajce_album_unref), NULL); -#line 988 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - self->priv->albums = _tmp1_; -#line 988 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - self->priv->albums_length1 = _tmp1__length1; -#line 988 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - self->priv->_albums_size_ = self->priv->albums_length1; -#line 989 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp2_ = _g_object_ref0 (publisher); -#line 989 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_object_unref0 (self->priv->publisher); -#line 989 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - self->priv->publisher = _tmp2_; -#line 990 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp3_ = (GtkBox*) gtk_box_new (GTK_ORIENTATION_VERTICAL, 0); -#line 990 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_object_ref_sink (_tmp3_); -#line 990 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_object_unref0 (self->priv->pane_widget); -#line 990 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - self->priv->pane_widget = _tmp3_; -#line 7484 "RajcePublishing.c" - { - GtkBuilder* _tmp4_; - GtkBuilder* _tmp5_; - GtkBuilder* _tmp6_; - GtkBuilder* _tmp7_; - GObject* _tmp8_; - GtkBox* _tmp9_; - GtkBuilder* _tmp10_; - GObject* _tmp11_; - GtkLabel* _tmp12_; - GtkBuilder* _tmp13_; - GObject* _tmp14_; - GtkLabel* _tmp15_; - GtkBuilder* _tmp16_; - GObject* _tmp17_; - GtkRadioButton* _tmp18_; - GtkBuilder* _tmp19_; - GObject* _tmp20_; - GtkComboBoxText* _tmp21_; - GtkBuilder* _tmp22_; - GObject* _tmp23_; - GtkRadioButton* _tmp24_; - GtkBuilder* _tmp25_; - GObject* _tmp26_; - GtkEntry* _tmp27_; - GtkBuilder* _tmp28_; - GObject* _tmp29_; - GtkCheckButton* _tmp30_; - GtkCheckButton* _tmp31_; - GtkBuilder* _tmp32_; - GObject* _tmp33_; - GtkCheckButton* _tmp34_; - GtkBuilder* _tmp35_; - GObject* _tmp36_; - GtkButton* _tmp37_; - GtkBuilder* _tmp38_; - GObject* _tmp39_; - GtkButton* _tmp40_; - GtkCheckButton* _tmp41_; - GtkCheckButton* _tmp42_; - GtkLabel* _tmp43_; - gchar* _tmp44_; - gchar* _tmp45_; - GtkLabel* _tmp46_; - GtkRadioButton* _tmp47_; - GtkRadioButton* _tmp48_; - GtkCheckButton* _tmp49_; - GtkButton* _tmp50_; - GtkButton* _tmp51_; - GtkRadioButton* _tmp52_; - GtkRadioButton* _tmp53_; - GtkEntry* _tmp54_; - GtkButton* _tmp55_; - GtkButton* _tmp56_; -#line 994 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp4_ = gtk_builder_new (); -#line 994 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_object_unref0 (self->priv->builder); -#line 994 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - self->priv->builder = _tmp4_; -#line 995 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp5_ = self->priv->builder; -#line 995 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - gtk_builder_add_from_resource (_tmp5_, PLUGIN_RESOURCE_PATH "/rajce_publishing_options_pane.ui", &_inner_error_); -#line 995 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 7551 "RajcePublishing.c" - goto __catch30_g_error; - } -#line 996 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp6_ = self->priv->builder; -#line 996 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - gtk_builder_connect_signals (_tmp6_, NULL); -#line 998 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp7_ = self->priv->builder; -#line 998 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp8_ = gtk_builder_get_object (_tmp7_, "rajce_pane_widget"); -#line 998 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp9_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, gtk_box_get_type (), GtkBox)); -#line 998 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_object_unref0 (self->priv->pane_widget); -#line 998 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - self->priv->pane_widget = _tmp9_; -#line 999 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp10_ = self->priv->builder; -#line 999 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp11_ = gtk_builder_get_object (_tmp10_, "login_identity_label"); -#line 999 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp12_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp11_, gtk_label_get_type (), GtkLabel)); -#line 999 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_object_unref0 (self->priv->login_identity_label); -#line 999 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - self->priv->login_identity_label = _tmp12_; -#line 1000 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp13_ = self->priv->builder; -#line 1000 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp14_ = gtk_builder_get_object (_tmp13_, "publish_to_label"); -#line 1000 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp15_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp14_, gtk_label_get_type (), GtkLabel)); -#line 1000 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_object_unref0 (self->priv->publish_to_label); -#line 1000 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - self->priv->publish_to_label = _tmp15_; -#line 1001 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp16_ = self->priv->builder; -#line 1001 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp17_ = gtk_builder_get_object (_tmp16_, "use_existing_radio"); -#line 1001 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp18_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp17_, gtk_radio_button_get_type (), GtkRadioButton)); -#line 1001 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_object_unref0 (self->priv->use_existing_radio); -#line 1001 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - self->priv->use_existing_radio = _tmp18_; -#line 1002 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp19_ = self->priv->builder; -#line 1002 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp20_ = gtk_builder_get_object (_tmp19_, "existing_albums_combo"); -#line 1002 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp21_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp20_, gtk_combo_box_text_get_type (), GtkComboBoxText)); -#line 1002 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_object_unref0 (self->priv->existing_albums_combo); -#line 1002 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - self->priv->existing_albums_combo = _tmp21_; -#line 1003 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp22_ = self->priv->builder; -#line 1003 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp23_ = gtk_builder_get_object (_tmp22_, "create_new_radio"); -#line 1003 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp24_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp23_, gtk_radio_button_get_type (), GtkRadioButton)); -#line 1003 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_object_unref0 (self->priv->create_new_radio); -#line 1003 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - self->priv->create_new_radio = _tmp24_; -#line 1004 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp25_ = self->priv->builder; -#line 1004 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp26_ = gtk_builder_get_object (_tmp25_, "new_album_entry"); -#line 1004 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp27_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp26_, gtk_entry_get_type (), GtkEntry)); -#line 1004 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_object_unref0 (self->priv->new_album_entry); -#line 1004 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - self->priv->new_album_entry = _tmp27_; -#line 1005 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp28_ = self->priv->builder; -#line 1005 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp29_ = gtk_builder_get_object (_tmp28_, "hide_check"); -#line 1005 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp30_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp29_, gtk_check_button_get_type (), GtkCheckButton)); -#line 1005 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_object_unref0 (self->priv->hide_check); -#line 1005 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - self->priv->hide_check = _tmp30_; -#line 1006 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp31_ = self->priv->hide_check; -#line 1006 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - gtk_button_set_label (G_TYPE_CHECK_INSTANCE_CAST (_tmp31_, gtk_button_get_type (), GtkButton), _ ("_Hide album")); -#line 1007 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp32_ = self->priv->builder; -#line 1007 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp33_ = gtk_builder_get_object (_tmp32_, "show_check"); -#line 1007 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp34_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp33_, gtk_check_button_get_type (), GtkCheckButton)); -#line 1007 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_object_unref0 (self->priv->show_check); -#line 1007 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - self->priv->show_check = _tmp34_; -#line 1008 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp35_ = self->priv->builder; -#line 1008 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp36_ = gtk_builder_get_object (_tmp35_, "publish_button"); -#line 1008 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp37_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp36_, gtk_button_get_type (), GtkButton)); -#line 1008 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_object_unref0 (self->priv->publish_button); -#line 1008 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - self->priv->publish_button = _tmp37_; -#line 1009 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp38_ = self->priv->builder; -#line 1009 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp39_ = gtk_builder_get_object (_tmp38_, "logout_button"); -#line 1009 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp40_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp39_, gtk_button_get_type (), GtkButton)); -#line 1009 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_object_unref0 (self->priv->logout_button); -#line 1009 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - self->priv->logout_button = _tmp40_; -#line 1011 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp41_ = self->priv->hide_check; -#line 1011 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - gtk_toggle_button_set_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp41_, gtk_toggle_button_get_type (), GtkToggleButton), publishing_rajce_rajce_publisher_get_hide_album (publisher)); -#line 1012 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp42_ = self->priv->show_check; -#line 1012 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - gtk_toggle_button_set_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp42_, gtk_toggle_button_get_type (), GtkToggleButton), publishing_rajce_rajce_publisher_get_show_album (publisher)); -#line 1013 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp43_ = self->priv->login_identity_label; -#line 1013 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp44_ = g_strdup_printf (_ ("You are logged into Rajce as %s."), username); -#line 1013 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp45_ = _tmp44_; -#line 1013 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - gtk_label_set_label (_tmp43_, _tmp45_); -#line 1013 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_free0 (_tmp45_); -#line 1014 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp46_ = self->priv->publish_to_label; -#line 1014 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - gtk_label_set_label (_tmp46_, _ ("Photos will appear in:")); -#line 1015 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp47_ = self->priv->use_existing_radio; -#line 1015 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - gtk_button_set_label (G_TYPE_CHECK_INSTANCE_CAST (_tmp47_, gtk_button_get_type (), GtkButton), _ ("An _existing album:")); -#line 1016 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp48_ = self->priv->create_new_radio; -#line 1016 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - gtk_button_set_label (G_TYPE_CHECK_INSTANCE_CAST (_tmp48_, gtk_button_get_type (), GtkButton), _ ("A _new album named:")); -#line 1017 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp49_ = self->priv->show_check; -#line 1017 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - gtk_button_set_label (G_TYPE_CHECK_INSTANCE_CAST (_tmp49_, gtk_button_get_type (), GtkButton), _ ("Open target _album in browser")); -#line 1018 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp50_ = self->priv->publish_button; -#line 1018 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - gtk_button_set_label (_tmp50_, _ ("_Publish")); -#line 1019 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp51_ = self->priv->logout_button; -#line 1019 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - gtk_button_set_label (_tmp51_, _ ("_Logout")); -#line 1021 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp52_ = self->priv->use_existing_radio; -#line 1021 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp52_, gtk_button_get_type (), GtkButton), "clicked", (GCallback) _publishing_rajce_publishing_options_pane_on_use_existing_radio_clicked_gtk_button_clicked, self, 0); -#line 1022 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp53_ = self->priv->create_new_radio; -#line 1022 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp53_, gtk_button_get_type (), GtkButton), "clicked", (GCallback) _publishing_rajce_publishing_options_pane_on_create_new_radio_clicked_gtk_button_clicked, self, 0); -#line 1023 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp54_ = self->priv->new_album_entry; -#line 1023 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp54_, gtk_editable_get_type (), GtkEditable), "changed", (GCallback) _publishing_rajce_publishing_options_pane_on_new_album_entry_changed_gtk_editable_changed, self, 0); -#line 1024 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp55_ = self->priv->logout_button; -#line 1024 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_signal_connect_object (_tmp55_, "clicked", (GCallback) _publishing_rajce_publishing_options_pane_on_logout_clicked_gtk_button_clicked, self, 0); -#line 1025 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp56_ = self->priv->publish_button; -#line 1025 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_signal_connect_object (_tmp56_, "clicked", (GCallback) _publishing_rajce_publishing_options_pane_on_publish_clicked_gtk_button_clicked, self, 0); -#line 7734 "RajcePublishing.c" - } - goto __finally30; - __catch30_g_error: - { - GError* e = NULL; - GError* _tmp57_; - const gchar* _tmp58_; -#line 992 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - e = _inner_error_; -#line 992 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _inner_error_ = NULL; -#line 1029 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp57_ = e; -#line 1029 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp58_ = _tmp57_->message; -#line 1029 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_warning ("RajcePublishing.vala:1029: Could not load UI: %s", _tmp58_); -#line 992 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_error_free0 (e); -#line 7754 "RajcePublishing.c" - } - __finally30: -#line 992 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 992 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 992 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_clear_error (&_inner_error_); -#line 992 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - return NULL; -#line 7765 "RajcePublishing.c" - } -#line 985 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - return self; -#line 7769 "RajcePublishing.c" -} - - -PublishingRajcePublishingOptionsPane* -publishing_rajce_publishing_options_pane_new (PublishingRajceRajcePublisher* publisher, - const gchar* username, - PublishingRajceAlbum** albums, - int albums_length1) -{ -#line 985 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - return publishing_rajce_publishing_options_pane_construct (PUBLISHING_RAJCE_TYPE_PUBLISHING_OPTIONS_PANE, publisher, username, albums, albums_length1); -#line 7781 "RajcePublishing.c" -} - - -static void -publishing_rajce_publishing_options_pane_on_publish_clicked (PublishingRajcePublishingOptionsPane* self) -{ - gboolean show_album = FALSE; - GtkCheckButton* _tmp0_; - PublishingRajceRajcePublisher* _tmp1_; - gboolean _tmp2_; - GtkRadioButton* _tmp3_; -#line 1034 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_return_if_fail (PUBLISHING_RAJCE_IS_PUBLISHING_OPTIONS_PANE (self)); -#line 1036 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp0_ = self->priv->show_check; -#line 1036 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - show_album = gtk_toggle_button_get_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, gtk_toggle_button_get_type (), GtkToggleButton)); -#line 1037 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp1_ = self->priv->publisher; -#line 1037 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp2_ = show_album; -#line 1037 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - publishing_rajce_rajce_publisher_set_show_album (_tmp1_, _tmp2_); -#line 1038 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp3_ = self->priv->create_new_radio; -#line 1038 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - if (gtk_toggle_button_get_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, gtk_toggle_button_get_type (), GtkToggleButton))) { -#line 7809 "RajcePublishing.c" - gchar* album_name = NULL; - GtkEntry* _tmp4_; - const gchar* _tmp5_; - gchar* _tmp6_; - gboolean hide_album = FALSE; - GtkCheckButton* _tmp7_; - PublishingRajceRajcePublisher* _tmp8_; - gboolean _tmp9_; - const gchar* _tmp10_; - gboolean _tmp11_; - PublishingRajcePublishingParameters* _tmp12_; - PublishingRajcePublishingParameters* _tmp13_; -#line 1040 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp4_ = self->priv->new_album_entry; -#line 1040 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp5_ = gtk_entry_get_text (_tmp4_); -#line 1040 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp6_ = g_strdup (_tmp5_); -#line 1040 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - album_name = _tmp6_; -#line 1041 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp7_ = self->priv->hide_check; -#line 1041 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - hide_album = gtk_toggle_button_get_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, gtk_toggle_button_get_type (), GtkToggleButton)); -#line 1042 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp8_ = self->priv->publisher; -#line 1042 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp9_ = hide_album; -#line 1042 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - publishing_rajce_rajce_publisher_set_hide_album (_tmp8_, _tmp9_); -#line 1043 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp10_ = album_name; -#line 1043 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp11_ = hide_album; -#line 1043 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp12_ = publishing_rajce_publishing_parameters_new_to_new_album (_tmp10_, _tmp11_); -#line 1043 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp13_ = _tmp12_; -#line 1043 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_signal_emit (self, publishing_rajce_publishing_options_pane_signals[PUBLISHING_RAJCE_PUBLISHING_OPTIONS_PANE_PUBLISH_SIGNAL], 0, _tmp13_); -#line 1043 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _publishing_rajce_publishing_parameters_unref0 (_tmp13_); -#line 1038 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_free0 (album_name); -#line 7854 "RajcePublishing.c" - } else { - gint id = 0; - PublishingRajceAlbum** _tmp14_; - gint _tmp14__length1; - GtkComboBoxText* _tmp15_; - PublishingRajceAlbum* _tmp16_; - gint _tmp17_; - gchar* album_name = NULL; - PublishingRajceAlbum** _tmp18_; - gint _tmp18__length1; - GtkComboBoxText* _tmp19_; - PublishingRajceAlbum* _tmp20_; - const gchar* _tmp21_; - gchar* _tmp22_; - const gchar* _tmp23_; - gint _tmp24_; - PublishingRajcePublishingParameters* _tmp25_; - PublishingRajcePublishingParameters* _tmp26_; -#line 1047 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp14_ = self->priv->albums; -#line 1047 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp14__length1 = self->priv->albums_length1; -#line 1047 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp15_ = self->priv->existing_albums_combo; -#line 1047 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp16_ = _tmp14_[gtk_combo_box_get_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp15_, gtk_combo_box_get_type (), GtkComboBox))]; -#line 1047 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp17_ = _tmp16_->id; -#line 1047 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - id = _tmp17_; -#line 1048 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp18_ = self->priv->albums; -#line 1048 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp18__length1 = self->priv->albums_length1; -#line 1048 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp19_ = self->priv->existing_albums_combo; -#line 1048 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp20_ = _tmp18_[gtk_combo_box_get_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp19_, gtk_combo_box_get_type (), GtkComboBox))]; -#line 1048 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp21_ = _tmp20_->albumName; -#line 1048 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp22_ = g_strdup (_tmp21_); -#line 1048 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - album_name = _tmp22_; -#line 1049 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp23_ = album_name; -#line 1049 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp24_ = id; -#line 1049 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp25_ = publishing_rajce_publishing_parameters_new_to_existing_album (_tmp23_, _tmp24_); -#line 1049 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp26_ = _tmp25_; -#line 1049 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_signal_emit (self, publishing_rajce_publishing_options_pane_signals[PUBLISHING_RAJCE_PUBLISHING_OPTIONS_PANE_PUBLISH_SIGNAL], 0, _tmp26_); -#line 1049 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _publishing_rajce_publishing_parameters_unref0 (_tmp26_); -#line 1038 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_free0 (album_name); -#line 7913 "RajcePublishing.c" - } -} - - -static void -publishing_rajce_publishing_options_pane_on_use_existing_radio_clicked (PublishingRajcePublishingOptionsPane* self) -{ - GtkComboBoxText* _tmp0_; - GtkEntry* _tmp1_; - GtkComboBoxText* _tmp2_; - GtkCheckButton* _tmp3_; -#line 1053 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_return_if_fail (PUBLISHING_RAJCE_IS_PUBLISHING_OPTIONS_PANE (self)); -#line 1055 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp0_ = self->priv->existing_albums_combo; -#line 1055 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - gtk_widget_set_sensitive (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, gtk_widget_get_type (), GtkWidget), TRUE); -#line 1056 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp1_ = self->priv->new_album_entry; -#line 1056 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - gtk_widget_set_sensitive (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, gtk_widget_get_type (), GtkWidget), FALSE); -#line 1057 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp2_ = self->priv->existing_albums_combo; -#line 1057 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - gtk_widget_grab_focus (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, gtk_widget_get_type (), GtkWidget)); -#line 1058 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - publishing_rajce_publishing_options_pane_update_publish_button_sensitivity (self); -#line 1059 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp3_ = self->priv->hide_check; -#line 1059 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - gtk_widget_set_sensitive (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, gtk_widget_get_type (), GtkWidget), FALSE); -#line 7945 "RajcePublishing.c" -} - - -static void -publishing_rajce_publishing_options_pane_on_create_new_radio_clicked (PublishingRajcePublishingOptionsPane* self) -{ - GtkEntry* _tmp0_; - GtkComboBoxText* _tmp1_; - GtkEntry* _tmp2_; - GtkCheckButton* _tmp3_; -#line 1062 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_return_if_fail (PUBLISHING_RAJCE_IS_PUBLISHING_OPTIONS_PANE (self)); -#line 1064 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp0_ = self->priv->new_album_entry; -#line 1064 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - gtk_widget_set_sensitive (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, gtk_widget_get_type (), GtkWidget), TRUE); -#line 1065 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp1_ = self->priv->existing_albums_combo; -#line 1065 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - gtk_widget_set_sensitive (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, gtk_widget_get_type (), GtkWidget), FALSE); -#line 1066 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp2_ = self->priv->new_album_entry; -#line 1066 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - gtk_widget_grab_focus (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, gtk_widget_get_type (), GtkWidget)); -#line 1067 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - publishing_rajce_publishing_options_pane_update_publish_button_sensitivity (self); -#line 1068 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp3_ = self->priv->hide_check; -#line 1068 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - gtk_widget_set_sensitive (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, gtk_widget_get_type (), GtkWidget), TRUE); -#line 7976 "RajcePublishing.c" -} - - -static void -publishing_rajce_publishing_options_pane_on_logout_clicked (PublishingRajcePublishingOptionsPane* self) -{ -#line 1071 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_return_if_fail (PUBLISHING_RAJCE_IS_PUBLISHING_OPTIONS_PANE (self)); -#line 1073 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_signal_emit (self, publishing_rajce_publishing_options_pane_signals[PUBLISHING_RAJCE_PUBLISHING_OPTIONS_PANE_LOGOUT_SIGNAL], 0); -#line 7987 "RajcePublishing.c" -} - - -static gchar* -string_strip (const gchar* self) -{ - gchar* result = NULL; - gchar* _result_ = NULL; - gchar* _tmp0_; - const gchar* _tmp1_; -#line 1248 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - g_return_val_if_fail (self != NULL, NULL); -#line 1249 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp0_ = g_strdup (self); -#line 1249 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _result_ = _tmp0_; -#line 1250 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp1_ = _result_; -#line 1250 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - g_strstrip (_tmp1_); -#line 1251 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - result = _result_; -#line 1251 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - return result; -#line 8012 "RajcePublishing.c" -} - - -static void -publishing_rajce_publishing_options_pane_update_publish_button_sensitivity (PublishingRajcePublishingOptionsPane* self) -{ - gchar* album_name = NULL; - GtkEntry* _tmp0_; - const gchar* _tmp1_; - gchar* _tmp2_; - gboolean _tmp3_ = FALSE; - const gchar* _tmp4_; - gchar* _tmp5_; - gchar* _tmp6_; - gboolean _tmp7_; - GtkButton* _tmp9_; -#line 1075 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_return_if_fail (PUBLISHING_RAJCE_IS_PUBLISHING_OPTIONS_PANE (self)); -#line 1077 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp0_ = self->priv->new_album_entry; -#line 1077 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp1_ = gtk_entry_get_text (_tmp0_); -#line 1077 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp2_ = g_strdup (_tmp1_); -#line 1077 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - album_name = _tmp2_; -#line 1078 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp4_ = album_name; -#line 1078 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp5_ = string_strip (_tmp4_); -#line 1078 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp6_ = _tmp5_; -#line 1078 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp7_ = g_strcmp0 (_tmp6_, "") != 0; -#line 1078 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_free0 (_tmp6_); -#line 1078 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - if (_tmp7_) { -#line 1078 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp3_ = TRUE; -#line 8053 "RajcePublishing.c" - } else { - GtkRadioButton* _tmp8_; -#line 1078 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp8_ = self->priv->create_new_radio; -#line 1078 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp3_ = !gtk_toggle_button_get_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, gtk_toggle_button_get_type (), GtkToggleButton)); -#line 8060 "RajcePublishing.c" - } -#line 1078 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp9_ = self->priv->publish_button; -#line 1078 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - gtk_widget_set_sensitive (G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, gtk_widget_get_type (), GtkWidget), _tmp3_); -#line 1075 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_free0 (album_name); -#line 8068 "RajcePublishing.c" -} - - -static void -publishing_rajce_publishing_options_pane_on_new_album_entry_changed (PublishingRajcePublishingOptionsPane* self) -{ -#line 1080 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_return_if_fail (PUBLISHING_RAJCE_IS_PUBLISHING_OPTIONS_PANE (self)); -#line 1082 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - publishing_rajce_publishing_options_pane_update_publish_button_sensitivity (self); -#line 8079 "RajcePublishing.c" -} - - -void -publishing_rajce_publishing_options_pane_installed (PublishingRajcePublishingOptionsPane* self) -{ - PublishingRajceAlbum** _tmp9_; - gint _tmp9__length1; - GtkRadioButton* _tmp15_; -#line 1084 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_return_if_fail (PUBLISHING_RAJCE_IS_PUBLISHING_OPTIONS_PANE (self)); -#line 8091 "RajcePublishing.c" - { - gint i = 0; -#line 1086 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - i = 0; -#line 8096 "RajcePublishing.c" - { - gboolean _tmp0_ = FALSE; -#line 1086 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp0_ = TRUE; -#line 1086 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - while (TRUE) { -#line 8103 "RajcePublishing.c" - gint _tmp2_; - PublishingRajceAlbum** _tmp3_; - gint _tmp3__length1; - GtkComboBoxText* _tmp4_; - PublishingRajceAlbum** _tmp5_; - gint _tmp5__length1; - gint _tmp6_; - PublishingRajceAlbum* _tmp7_; - const gchar* _tmp8_; -#line 1086 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - if (!_tmp0_) { -#line 8115 "RajcePublishing.c" - gint _tmp1_; -#line 1086 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp1_ = i; -#line 1086 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - i = _tmp1_ + 1; -#line 8121 "RajcePublishing.c" - } -#line 1086 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp0_ = FALSE; -#line 1086 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp2_ = i; -#line 1086 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp3_ = self->priv->albums; -#line 1086 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp3__length1 = self->priv->albums_length1; -#line 1086 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - if (!(_tmp2_ < _tmp3__length1)) { -#line 1086 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - break; -#line 8135 "RajcePublishing.c" - } -#line 1089 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp4_ = self->priv->existing_albums_combo; -#line 1089 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp5_ = self->priv->albums; -#line 1089 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp5__length1 = self->priv->albums_length1; -#line 1089 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp6_ = i; -#line 1089 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp7_ = _tmp5_[_tmp6_]; -#line 1089 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp8_ = _tmp7_->albumName; -#line 1089 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - gtk_combo_box_text_append_text (_tmp4_, _tmp8_); -#line 8151 "RajcePublishing.c" - } - } - } -#line 1091 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp9_ = self->priv->albums; -#line 1091 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp9__length1 = self->priv->albums_length1; -#line 1091 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - if (_tmp9__length1 == 0) { -#line 8161 "RajcePublishing.c" - GtkComboBoxText* _tmp10_; - GtkRadioButton* _tmp11_; -#line 1093 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp10_ = self->priv->existing_albums_combo; -#line 1093 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - gtk_widget_set_sensitive (G_TYPE_CHECK_INSTANCE_CAST (_tmp10_, gtk_widget_get_type (), GtkWidget), FALSE); -#line 1094 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp11_ = self->priv->use_existing_radio; -#line 1094 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - gtk_widget_set_sensitive (G_TYPE_CHECK_INSTANCE_CAST (_tmp11_, gtk_widget_get_type (), GtkWidget), FALSE); -#line 8172 "RajcePublishing.c" - } else { - GtkComboBoxText* _tmp12_; - GtkComboBoxText* _tmp13_; - GtkRadioButton* _tmp14_; -#line 1098 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp12_ = self->priv->existing_albums_combo; -#line 1098 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - gtk_combo_box_set_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp12_, gtk_combo_box_get_type (), GtkComboBox), 0); -#line 1099 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp13_ = self->priv->existing_albums_combo; -#line 1099 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - gtk_widget_set_sensitive (G_TYPE_CHECK_INSTANCE_CAST (_tmp13_, gtk_widget_get_type (), GtkWidget), TRUE); -#line 1100 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp14_ = self->priv->use_existing_radio; -#line 1100 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - gtk_widget_set_sensitive (G_TYPE_CHECK_INSTANCE_CAST (_tmp14_, gtk_widget_get_type (), GtkWidget), TRUE); -#line 8189 "RajcePublishing.c" - } -#line 1102 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp15_ = self->priv->create_new_radio; -#line 1102 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - gtk_toggle_button_set_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp15_, gtk_toggle_button_get_type (), GtkToggleButton), TRUE); -#line 1103 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - publishing_rajce_publishing_options_pane_on_create_new_radio_clicked (self); -#line 8197 "RajcePublishing.c" -} - - -void -publishing_rajce_publishing_options_pane_notify_publish (PublishingRajcePublishingOptionsPane* self, - PublishingRajcePublishingParameters* parameters) -{ -#line 1106 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_return_if_fail (PUBLISHING_RAJCE_IS_PUBLISHING_OPTIONS_PANE (self)); -#line 1106 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_return_if_fail (PUBLISHING_RAJCE_IS_PUBLISHING_PARAMETERS (parameters)); -#line 1108 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_signal_emit (self, publishing_rajce_publishing_options_pane_signals[PUBLISHING_RAJCE_PUBLISHING_OPTIONS_PANE_PUBLISH_SIGNAL], 0, parameters); -#line 8211 "RajcePublishing.c" -} - - -void -publishing_rajce_publishing_options_pane_notify_logout (PublishingRajcePublishingOptionsPane* self) -{ -#line 1111 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_return_if_fail (PUBLISHING_RAJCE_IS_PUBLISHING_OPTIONS_PANE (self)); -#line 1113 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_signal_emit (self, publishing_rajce_publishing_options_pane_signals[PUBLISHING_RAJCE_PUBLISHING_OPTIONS_PANE_LOGOUT_SIGNAL], 0); -#line 8222 "RajcePublishing.c" -} - - -GtkWidget* -publishing_rajce_publishing_options_pane_get_default_widget (PublishingRajcePublishingOptionsPane* self) -{ - GtkWidget* result = NULL; - GtkButton* _tmp0_; - GtkWidget* _tmp1_; -#line 1116 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_return_val_if_fail (PUBLISHING_RAJCE_IS_PUBLISHING_OPTIONS_PANE (self), NULL); -#line 1118 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp0_ = self->priv->logout_button; -#line 1118 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp1_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, gtk_widget_get_type (), GtkWidget)); -#line 1118 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - result = _tmp1_; -#line 1118 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - return result; -#line 8242 "RajcePublishing.c" -} - - -static GtkWidget* -publishing_rajce_publishing_options_pane_real_get_widget (SpitPublishingDialogPane* base) -{ - PublishingRajcePublishingOptionsPane * self; - GtkWidget* result = NULL; - GtkBox* _tmp0_; - GtkWidget* _tmp1_; -#line 1120 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_RAJCE_TYPE_PUBLISHING_OPTIONS_PANE, PublishingRajcePublishingOptionsPane); -#line 1122 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp0_ = self->priv->pane_widget; -#line 1122 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp1_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, gtk_widget_get_type (), GtkWidget)); -#line 1122 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - result = _tmp1_; -#line 1122 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - return result; -#line 8263 "RajcePublishing.c" -} - - -static SpitPublishingDialogPaneGeometryOptions -publishing_rajce_publishing_options_pane_real_get_preferred_geometry (SpitPublishingDialogPane* base) -{ - PublishingRajcePublishingOptionsPane * self; - SpitPublishingDialogPaneGeometryOptions result = 0; -#line 1125 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_RAJCE_TYPE_PUBLISHING_OPTIONS_PANE, PublishingRajcePublishingOptionsPane); -#line 1127 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - result = SPIT_PUBLISHING_DIALOG_PANE_GEOMETRY_OPTIONS_NONE; -#line 1127 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - return result; -#line 8278 "RajcePublishing.c" -} - - -static void -_publishing_rajce_publishing_options_pane_notify_publish_publishing_rajce_publishing_options_pane_publish (PublishingRajcePublishingOptionsPane* _sender, - PublishingRajcePublishingParameters* parameters, - gpointer self) -{ -#line 1133 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - publishing_rajce_publishing_options_pane_notify_publish ((PublishingRajcePublishingOptionsPane*) self, parameters); -#line 8289 "RajcePublishing.c" -} - - -static void -_publishing_rajce_publishing_options_pane_notify_logout_publishing_rajce_publishing_options_pane_logout (PublishingRajcePublishingOptionsPane* _sender, - gpointer self) -{ -#line 1134 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - publishing_rajce_publishing_options_pane_notify_logout ((PublishingRajcePublishingOptionsPane*) self); -#line 8299 "RajcePublishing.c" -} - - -static void -publishing_rajce_publishing_options_pane_real_on_pane_installed (SpitPublishingDialogPane* base) -{ - PublishingRajcePublishingOptionsPane * self; -#line 1130 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_RAJCE_TYPE_PUBLISHING_OPTIONS_PANE, PublishingRajcePublishingOptionsPane); -#line 1132 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - publishing_rajce_publishing_options_pane_installed (self); -#line 1133 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_signal_connect_object (self, "publish", (GCallback) _publishing_rajce_publishing_options_pane_notify_publish_publishing_rajce_publishing_options_pane_publish, self, 0); -#line 1134 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_signal_connect_object (self, "logout", (GCallback) _publishing_rajce_publishing_options_pane_notify_logout_publishing_rajce_publishing_options_pane_logout, self, 0); -#line 8315 "RajcePublishing.c" -} - - -static void -publishing_rajce_publishing_options_pane_real_on_pane_uninstalled (SpitPublishingDialogPane* base) -{ - PublishingRajcePublishingOptionsPane * self; - guint _tmp0_; - guint _tmp1_; -#line 1137 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_RAJCE_TYPE_PUBLISHING_OPTIONS_PANE, PublishingRajcePublishingOptionsPane); -#line 1139 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_signal_parse_name ("publish", PUBLISHING_RAJCE_TYPE_PUBLISHING_OPTIONS_PANE, &_tmp0_, NULL, FALSE); -#line 1139 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_signal_handlers_disconnect_matched (self, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp0_, 0, NULL, (GCallback) _publishing_rajce_publishing_options_pane_notify_publish_publishing_rajce_publishing_options_pane_publish, self); -#line 1140 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_signal_parse_name ("logout", PUBLISHING_RAJCE_TYPE_PUBLISHING_OPTIONS_PANE, &_tmp1_, NULL, FALSE); -#line 1140 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_signal_handlers_disconnect_matched (self, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp1_, 0, NULL, (GCallback) _publishing_rajce_publishing_options_pane_notify_logout_publishing_rajce_publishing_options_pane_logout, self); -#line 8335 "RajcePublishing.c" -} - - -static void -g_cclosure_user_marshal_VOID__PUBLISHING_RAJCE_PUBLISHING_PARAMETERS (GClosure * closure, - GValue * return_value, - guint n_param_values, - const GValue * param_values, - gpointer invocation_hint, - gpointer marshal_data) -{ - typedef void (*GMarshalFunc_VOID__PUBLISHING_RAJCE_PUBLISHING_PARAMETERS) (gpointer data1, gpointer arg_1, gpointer data2); - register GMarshalFunc_VOID__PUBLISHING_RAJCE_PUBLISHING_PARAMETERS callback; - register GCClosure * cc; - register gpointer data1; - register gpointer data2; - cc = (GCClosure *) closure; -#line 963 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_return_if_fail (n_param_values == 2); -#line 963 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - if (G_CCLOSURE_SWAP_DATA (closure)) { -#line 963 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - data1 = closure->data; -#line 963 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - data2 = param_values->data[0].v_pointer; -#line 8361 "RajcePublishing.c" - } else { -#line 963 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - data1 = param_values->data[0].v_pointer; -#line 963 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - data2 = closure->data; -#line 8367 "RajcePublishing.c" - } -#line 963 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - callback = (GMarshalFunc_VOID__PUBLISHING_RAJCE_PUBLISHING_PARAMETERS) (marshal_data ? marshal_data : cc->callback); -#line 963 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - callback (data1, publishing_rajce_value_get_publishing_parameters (param_values + 1), data2); -#line 8373 "RajcePublishing.c" -} - - -static void -publishing_rajce_publishing_options_pane_class_init (PublishingRajcePublishingOptionsPaneClass * klass) -{ -#line 963 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - publishing_rajce_publishing_options_pane_parent_class = g_type_class_peek_parent (klass); -#line 963 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_type_class_add_private (klass, sizeof (PublishingRajcePublishingOptionsPanePrivate)); -#line 963 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - G_OBJECT_CLASS (klass)->finalize = publishing_rajce_publishing_options_pane_finalize; -#line 963 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - publishing_rajce_publishing_options_pane_signals[PUBLISHING_RAJCE_PUBLISHING_OPTIONS_PANE_PUBLISH_SIGNAL] = g_signal_new ("publish", PUBLISHING_RAJCE_TYPE_PUBLISHING_OPTIONS_PANE, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_user_marshal_VOID__PUBLISHING_RAJCE_PUBLISHING_PARAMETERS, G_TYPE_NONE, 1, PUBLISHING_RAJCE_TYPE_PUBLISHING_PARAMETERS); -#line 963 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - publishing_rajce_publishing_options_pane_signals[PUBLISHING_RAJCE_PUBLISHING_OPTIONS_PANE_LOGOUT_SIGNAL] = g_signal_new ("logout", PUBLISHING_RAJCE_TYPE_PUBLISHING_OPTIONS_PANE, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_marshal_VOID__VOID, G_TYPE_NONE, 0); -#line 8390 "RajcePublishing.c" -} - - -static void -publishing_rajce_publishing_options_pane_spit_publishing_dialog_pane_interface_init (SpitPublishingDialogPaneIface * iface) -{ -#line 963 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - publishing_rajce_publishing_options_pane_spit_publishing_dialog_pane_parent_iface = g_type_interface_peek_parent (iface); -#line 963 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - iface->get_widget = (GtkWidget* (*) (SpitPublishingDialogPane *)) publishing_rajce_publishing_options_pane_real_get_widget; -#line 963 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - iface->get_preferred_geometry = (SpitPublishingDialogPaneGeometryOptions (*) (SpitPublishingDialogPane *)) publishing_rajce_publishing_options_pane_real_get_preferred_geometry; -#line 963 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - iface->on_pane_installed = (void (*) (SpitPublishingDialogPane *)) publishing_rajce_publishing_options_pane_real_on_pane_installed; -#line 963 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - iface->on_pane_uninstalled = (void (*) (SpitPublishingDialogPane *)) publishing_rajce_publishing_options_pane_real_on_pane_uninstalled; -#line 8407 "RajcePublishing.c" -} - - -static void -publishing_rajce_publishing_options_pane_instance_init (PublishingRajcePublishingOptionsPane * self) -{ -#line 963 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - self->priv = PUBLISHING_RAJCE_PUBLISHING_OPTIONS_PANE_GET_PRIVATE (self); -#line 969 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - self->priv->builder = NULL; -#line 970 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - self->priv->pane_widget = NULL; -#line 971 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - self->priv->login_identity_label = NULL; -#line 972 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - self->priv->publish_to_label = NULL; -#line 973 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - self->priv->use_existing_radio = NULL; -#line 974 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - self->priv->existing_albums_combo = NULL; -#line 975 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - self->priv->create_new_radio = NULL; -#line 976 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - self->priv->new_album_entry = NULL; -#line 977 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - self->priv->hide_check = NULL; -#line 978 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - self->priv->show_check = NULL; -#line 979 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - self->priv->publish_button = NULL; -#line 980 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - self->priv->logout_button = NULL; -#line 8440 "RajcePublishing.c" -} - - -static void -publishing_rajce_publishing_options_pane_finalize (GObject * obj) -{ - PublishingRajcePublishingOptionsPane * self; -#line 963 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, PUBLISHING_RAJCE_TYPE_PUBLISHING_OPTIONS_PANE, PublishingRajcePublishingOptionsPane); -#line 965 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_object_unref0 (self->priv->publisher); -#line 966 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - self->priv->albums = (_vala_array_free (self->priv->albums, self->priv->albums_length1, (GDestroyNotify) publishing_rajce_album_unref), NULL); -#line 967 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_free0 (self->priv->username); -#line 969 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_object_unref0 (self->priv->builder); -#line 970 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_object_unref0 (self->priv->pane_widget); -#line 971 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_object_unref0 (self->priv->login_identity_label); -#line 972 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_object_unref0 (self->priv->publish_to_label); -#line 973 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_object_unref0 (self->priv->use_existing_radio); -#line 974 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_object_unref0 (self->priv->existing_albums_combo); -#line 975 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_object_unref0 (self->priv->create_new_radio); -#line 976 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_object_unref0 (self->priv->new_album_entry); -#line 977 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_object_unref0 (self->priv->hide_check); -#line 978 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_object_unref0 (self->priv->show_check); -#line 979 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_object_unref0 (self->priv->publish_button); -#line 980 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_object_unref0 (self->priv->logout_button); -#line 963 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - G_OBJECT_CLASS (publishing_rajce_publishing_options_pane_parent_class)->finalize (obj); -#line 8482 "RajcePublishing.c" -} - - -GType -publishing_rajce_publishing_options_pane_get_type (void) -{ - static volatile gsize publishing_rajce_publishing_options_pane_type_id__volatile = 0; - if (g_once_init_enter (&publishing_rajce_publishing_options_pane_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (PublishingRajcePublishingOptionsPaneClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) publishing_rajce_publishing_options_pane_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PublishingRajcePublishingOptionsPane), 0, (GInstanceInitFunc) publishing_rajce_publishing_options_pane_instance_init, NULL }; - static const GInterfaceInfo spit_publishing_dialog_pane_info = { (GInterfaceInitFunc) publishing_rajce_publishing_options_pane_spit_publishing_dialog_pane_interface_init, (GInterfaceFinalizeFunc) NULL, NULL}; - GType publishing_rajce_publishing_options_pane_type_id; - publishing_rajce_publishing_options_pane_type_id = g_type_register_static (G_TYPE_OBJECT, "PublishingRajcePublishingOptionsPane", &g_define_type_info, 0); - g_type_add_interface_static (publishing_rajce_publishing_options_pane_type_id, SPIT_PUBLISHING_TYPE_DIALOG_PANE, &spit_publishing_dialog_pane_info); - g_once_init_leave (&publishing_rajce_publishing_options_pane_type_id__volatile, publishing_rajce_publishing_options_pane_type_id); - } - return publishing_rajce_publishing_options_pane_type_id__volatile; -} - - -static PublishingRajcePublishingParameters* -publishing_rajce_publishing_parameters_construct (GType object_type) -{ - PublishingRajcePublishingParameters* self = NULL; -#line 1150 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - self = (PublishingRajcePublishingParameters*) g_type_create_instance (object_type); -#line 1150 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - return self; -#line 8510 "RajcePublishing.c" -} - - -static PublishingRajcePublishingParameters* -publishing_rajce_publishing_parameters_new (void) -{ -#line 1150 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - return publishing_rajce_publishing_parameters_construct (PUBLISHING_RAJCE_TYPE_PUBLISHING_PARAMETERS); -#line 8519 "RajcePublishing.c" -} - - -PublishingRajcePublishingParameters* -publishing_rajce_publishing_parameters_construct_to_new_album (GType object_type, - const gchar* album_name, - gboolean album_hidden) -{ - PublishingRajcePublishingParameters* self = NULL; - gchar* _tmp0_; - gboolean* _tmp1_; - gint _tmp2_; - gint* _tmp3_; -#line 1153 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_return_val_if_fail (album_name != NULL, NULL); -#line 1153 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - self = (PublishingRajcePublishingParameters*) g_type_create_instance (object_type); -#line 1155 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp0_ = g_strdup (album_name); -#line 1155 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_free0 (self->album_name); -#line 1155 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - self->album_name = _tmp0_; -#line 1156 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp1_ = __bool_dup0 (&album_hidden); -#line 1156 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_free0 (self->album_hidden); -#line 1156 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - self->album_hidden = _tmp1_; -#line 1157 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp2_ = 0; -#line 1157 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp3_ = __int_dup0 (&_tmp2_); -#line 1157 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_free0 (self->album_id); -#line 1157 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - self->album_id = _tmp3_; -#line 1153 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - return self; -#line 8559 "RajcePublishing.c" -} - - -PublishingRajcePublishingParameters* -publishing_rajce_publishing_parameters_new_to_new_album (const gchar* album_name, - gboolean album_hidden) -{ -#line 1153 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - return publishing_rajce_publishing_parameters_construct_to_new_album (PUBLISHING_RAJCE_TYPE_PUBLISHING_PARAMETERS, album_name, album_hidden); -#line 8569 "RajcePublishing.c" -} - - -PublishingRajcePublishingParameters* -publishing_rajce_publishing_parameters_construct_to_existing_album (GType object_type, - const gchar* album_name, - gint album_id) -{ - PublishingRajcePublishingParameters* self = NULL; - gchar* _tmp0_; - gint* _tmp1_; -#line 1159 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_return_val_if_fail (album_name != NULL, NULL); -#line 1159 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - self = (PublishingRajcePublishingParameters*) g_type_create_instance (object_type); -#line 1161 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp0_ = g_strdup (album_name); -#line 1161 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_free0 (self->album_name); -#line 1161 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - self->album_name = _tmp0_; -#line 1162 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_free0 (self->album_hidden); -#line 1162 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - self->album_hidden = NULL; -#line 1163 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp1_ = __int_dup0 (&album_id); -#line 1163 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_free0 (self->album_id); -#line 1163 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - self->album_id = _tmp1_; -#line 1159 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - return self; -#line 8603 "RajcePublishing.c" -} - - -PublishingRajcePublishingParameters* -publishing_rajce_publishing_parameters_new_to_existing_album (const gchar* album_name, - gint album_id) -{ -#line 1159 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - return publishing_rajce_publishing_parameters_construct_to_existing_album (PUBLISHING_RAJCE_TYPE_PUBLISHING_PARAMETERS, album_name, album_id); -#line 8613 "RajcePublishing.c" -} - - -static void -publishing_rajce_value_publishing_parameters_init (GValue* value) -{ -#line 1144 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - value->data[0].v_pointer = NULL; -#line 8622 "RajcePublishing.c" -} - - -static void -publishing_rajce_value_publishing_parameters_free_value (GValue* value) -{ -#line 1144 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - if (value->data[0].v_pointer) { -#line 1144 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - publishing_rajce_publishing_parameters_unref (value->data[0].v_pointer); -#line 8633 "RajcePublishing.c" - } -} - - -static void -publishing_rajce_value_publishing_parameters_copy_value (const GValue* src_value, - GValue* dest_value) -{ -#line 1144 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - if (src_value->data[0].v_pointer) { -#line 1144 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - dest_value->data[0].v_pointer = publishing_rajce_publishing_parameters_ref (src_value->data[0].v_pointer); -#line 8646 "RajcePublishing.c" - } else { -#line 1144 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - dest_value->data[0].v_pointer = NULL; -#line 8650 "RajcePublishing.c" - } -} - - -static gpointer -publishing_rajce_value_publishing_parameters_peek_pointer (const GValue* value) -{ -#line 1144 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - return value->data[0].v_pointer; -#line 8660 "RajcePublishing.c" -} - - -static gchar* -publishing_rajce_value_publishing_parameters_collect_value (GValue* value, - guint n_collect_values, - GTypeCValue* collect_values, - guint collect_flags) -{ -#line 1144 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - if (collect_values[0].v_pointer) { -#line 8672 "RajcePublishing.c" - PublishingRajcePublishingParameters * object; - object = collect_values[0].v_pointer; -#line 1144 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - if (object->parent_instance.g_class == NULL) { -#line 1144 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL); -#line 8679 "RajcePublishing.c" - } else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) { -#line 1144 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - return g_strconcat ("invalid object type `", g_type_name (G_TYPE_FROM_INSTANCE (object)), "' for value type `", G_VALUE_TYPE_NAME (value), "'", NULL); -#line 8683 "RajcePublishing.c" - } -#line 1144 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - value->data[0].v_pointer = publishing_rajce_publishing_parameters_ref (object); -#line 8687 "RajcePublishing.c" - } else { -#line 1144 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - value->data[0].v_pointer = NULL; -#line 8691 "RajcePublishing.c" - } -#line 1144 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - return NULL; -#line 8695 "RajcePublishing.c" -} - - -static gchar* -publishing_rajce_value_publishing_parameters_lcopy_value (const GValue* value, - guint n_collect_values, - GTypeCValue* collect_values, - guint collect_flags) -{ - PublishingRajcePublishingParameters ** object_p; - object_p = collect_values[0].v_pointer; -#line 1144 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - if (!object_p) { -#line 1144 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value)); -#line 8711 "RajcePublishing.c" - } -#line 1144 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - if (!value->data[0].v_pointer) { -#line 1144 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - *object_p = NULL; -#line 8717 "RajcePublishing.c" - } else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) { -#line 1144 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - *object_p = value->data[0].v_pointer; -#line 8721 "RajcePublishing.c" - } else { -#line 1144 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - *object_p = publishing_rajce_publishing_parameters_ref (value->data[0].v_pointer); -#line 8725 "RajcePublishing.c" - } -#line 1144 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - return NULL; -#line 8729 "RajcePublishing.c" -} - - -GParamSpec* -publishing_rajce_param_spec_publishing_parameters (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags) -{ - PublishingRajceParamSpecPublishingParameters* spec; -#line 1144 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_return_val_if_fail (g_type_is_a (object_type, PUBLISHING_RAJCE_TYPE_PUBLISHING_PARAMETERS), NULL); -#line 1144 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags); -#line 1144 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - G_PARAM_SPEC (spec)->value_type = object_type; -#line 1144 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - return G_PARAM_SPEC (spec); -#line 8749 "RajcePublishing.c" -} - - -gpointer -publishing_rajce_value_get_publishing_parameters (const GValue* value) -{ -#line 1144 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, PUBLISHING_RAJCE_TYPE_PUBLISHING_PARAMETERS), NULL); -#line 1144 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - return value->data[0].v_pointer; -#line 8760 "RajcePublishing.c" -} - - -void -publishing_rajce_value_set_publishing_parameters (GValue* value, - gpointer v_object) -{ - PublishingRajcePublishingParameters * old; -#line 1144 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, PUBLISHING_RAJCE_TYPE_PUBLISHING_PARAMETERS)); -#line 1144 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - old = value->data[0].v_pointer; -#line 1144 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - if (v_object) { -#line 1144 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, PUBLISHING_RAJCE_TYPE_PUBLISHING_PARAMETERS)); -#line 1144 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value))); -#line 1144 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - value->data[0].v_pointer = v_object; -#line 1144 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - publishing_rajce_publishing_parameters_ref (value->data[0].v_pointer); -#line 8783 "RajcePublishing.c" - } else { -#line 1144 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - value->data[0].v_pointer = NULL; -#line 8787 "RajcePublishing.c" - } -#line 1144 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - if (old) { -#line 1144 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - publishing_rajce_publishing_parameters_unref (old); -#line 8793 "RajcePublishing.c" - } -} - - -void -publishing_rajce_value_take_publishing_parameters (GValue* value, - gpointer v_object) -{ - PublishingRajcePublishingParameters * old; -#line 1144 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, PUBLISHING_RAJCE_TYPE_PUBLISHING_PARAMETERS)); -#line 1144 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - old = value->data[0].v_pointer; -#line 1144 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - if (v_object) { -#line 1144 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, PUBLISHING_RAJCE_TYPE_PUBLISHING_PARAMETERS)); -#line 1144 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value))); -#line 1144 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - value->data[0].v_pointer = v_object; -#line 8815 "RajcePublishing.c" - } else { -#line 1144 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - value->data[0].v_pointer = NULL; -#line 8819 "RajcePublishing.c" - } -#line 1144 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - if (old) { -#line 1144 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - publishing_rajce_publishing_parameters_unref (old); -#line 8825 "RajcePublishing.c" - } -} - - -static void -publishing_rajce_publishing_parameters_class_init (PublishingRajcePublishingParametersClass * klass) -{ -#line 1144 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - publishing_rajce_publishing_parameters_parent_class = g_type_class_peek_parent (klass); -#line 1144 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - ((PublishingRajcePublishingParametersClass *) klass)->finalize = publishing_rajce_publishing_parameters_finalize; -#line 8837 "RajcePublishing.c" -} - - -static void -publishing_rajce_publishing_parameters_instance_init (PublishingRajcePublishingParameters * self) -{ -#line 1144 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - self->ref_count = 1; -#line 8846 "RajcePublishing.c" -} - - -static void -publishing_rajce_publishing_parameters_finalize (PublishingRajcePublishingParameters * obj) -{ - PublishingRajcePublishingParameters * self; -#line 1144 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, PUBLISHING_RAJCE_TYPE_PUBLISHING_PARAMETERS, PublishingRajcePublishingParameters); -#line 1144 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_signal_handlers_destroy (self); -#line 1146 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_free0 (self->album_name); -#line 1147 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_free0 (self->album_hidden); -#line 1148 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_free0 (self->album_id); -#line 8864 "RajcePublishing.c" -} - - -GType -publishing_rajce_publishing_parameters_get_type (void) -{ - static volatile gsize publishing_rajce_publishing_parameters_type_id__volatile = 0; - if (g_once_init_enter (&publishing_rajce_publishing_parameters_type_id__volatile)) { - static const GTypeValueTable g_define_type_value_table = { publishing_rajce_value_publishing_parameters_init, publishing_rajce_value_publishing_parameters_free_value, publishing_rajce_value_publishing_parameters_copy_value, publishing_rajce_value_publishing_parameters_peek_pointer, "p", publishing_rajce_value_publishing_parameters_collect_value, "p", publishing_rajce_value_publishing_parameters_lcopy_value }; - static const GTypeInfo g_define_type_info = { sizeof (PublishingRajcePublishingParametersClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) publishing_rajce_publishing_parameters_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PublishingRajcePublishingParameters), 0, (GInstanceInitFunc) publishing_rajce_publishing_parameters_instance_init, &g_define_type_value_table }; - static const GTypeFundamentalInfo g_define_type_fundamental_info = { (G_TYPE_FLAG_CLASSED | G_TYPE_FLAG_INSTANTIATABLE | G_TYPE_FLAG_DERIVABLE | G_TYPE_FLAG_DEEP_DERIVABLE) }; - GType publishing_rajce_publishing_parameters_type_id; - publishing_rajce_publishing_parameters_type_id = g_type_register_fundamental (g_type_fundamental_next (), "PublishingRajcePublishingParameters", &g_define_type_info, &g_define_type_fundamental_info, 0); - g_once_init_leave (&publishing_rajce_publishing_parameters_type_id__volatile, publishing_rajce_publishing_parameters_type_id); - } - return publishing_rajce_publishing_parameters_type_id__volatile; -} - - -gpointer -publishing_rajce_publishing_parameters_ref (gpointer instance) -{ - PublishingRajcePublishingParameters * self; - self = instance; -#line 1144 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_atomic_int_inc (&self->ref_count); -#line 1144 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - return instance; -#line 8893 "RajcePublishing.c" -} - - -void -publishing_rajce_publishing_parameters_unref (gpointer instance) -{ - PublishingRajcePublishingParameters * self; - self = instance; -#line 1144 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - if (g_atomic_int_dec_and_test (&self->ref_count)) { -#line 1144 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - PUBLISHING_RAJCE_PUBLISHING_PARAMETERS_GET_CLASS (self)->finalize (self); -#line 1144 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_type_free_instance ((GTypeInstance *) self); -#line 8908 "RajcePublishing.c" - } -} - - -PublishingRajceSession* -publishing_rajce_session_construct (GType object_type) -{ - PublishingRajceSession* self = NULL; -#line 1182 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - self = (PublishingRajceSession*) publishing_rest_support_session_construct (object_type, ""); -#line 1180 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - return self; -#line 8921 "RajcePublishing.c" -} - - -PublishingRajceSession* -publishing_rajce_session_new (void) -{ -#line 1180 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - return publishing_rajce_session_construct (PUBLISHING_RAJCE_TYPE_SESSION); -#line 8930 "RajcePublishing.c" -} - - -static gboolean -publishing_rajce_session_real_is_authenticated (PublishingRESTSupportSession* base) -{ - PublishingRajceSession * self; - gboolean result = FALSE; - gboolean _tmp0_ = FALSE; - gboolean _tmp1_ = FALSE; - gint* _tmp2_; -#line 1185 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_RAJCE_TYPE_SESSION, PublishingRajceSession); -#line 1187 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp2_ = self->priv->userid; -#line 1187 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - if (_tmp2_ != NULL) { -#line 8948 "RajcePublishing.c" - const gchar* _tmp3_; -#line 1187 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp3_ = self->priv->usertoken; -#line 1187 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp1_ = _tmp3_ != NULL; -#line 8954 "RajcePublishing.c" - } else { -#line 1187 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp1_ = FALSE; -#line 8958 "RajcePublishing.c" - } -#line 1187 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - if (_tmp1_) { -#line 8962 "RajcePublishing.c" - const gchar* _tmp4_; -#line 1187 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp4_ = self->priv->username; -#line 1187 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp0_ = _tmp4_ != NULL; -#line 8968 "RajcePublishing.c" - } else { -#line 1187 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp0_ = FALSE; -#line 8972 "RajcePublishing.c" - } -#line 1187 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - result = _tmp0_; -#line 1187 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - return result; -#line 8978 "RajcePublishing.c" -} - - -void -publishing_rajce_session_authenticate (PublishingRajceSession* self, - const gchar* token, - const gchar* name, - gint id, - gint maxsize, - gint quality) -{ - gchar* _tmp0_; - gchar* _tmp1_; - gint* _tmp2_; - gint* _tmp3_; - gint* _tmp4_; -#line 1190 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_return_if_fail (PUBLISHING_RAJCE_IS_SESSION (self)); -#line 1190 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_return_if_fail (token != NULL); -#line 1190 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_return_if_fail (name != NULL); -#line 1192 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp0_ = g_strdup (token); -#line 1192 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_free0 (self->priv->usertoken); -#line 1192 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - self->priv->usertoken = _tmp0_; -#line 1193 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp1_ = g_strdup (name); -#line 1193 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_free0 (self->priv->username); -#line 1193 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - self->priv->username = _tmp1_; -#line 1194 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp2_ = __int_dup0 (&id); -#line 1194 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_free0 (self->priv->userid); -#line 1194 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - self->priv->userid = _tmp2_; -#line 1195 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp3_ = __int_dup0 (&maxsize); -#line 1195 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_free0 (self->priv->maxsize); -#line 1195 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - self->priv->maxsize = _tmp3_; -#line 1196 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp4_ = __int_dup0 (&quality); -#line 1196 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_free0 (self->priv->quality); -#line 1196 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - self->priv->quality = _tmp4_; -#line 9031 "RajcePublishing.c" -} - - -void -publishing_rajce_session_deauthenticate (PublishingRajceSession* self) -{ -#line 1199 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_return_if_fail (PUBLISHING_RAJCE_IS_SESSION (self)); -#line 1201 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_free0 (self->priv->usertoken); -#line 1201 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - self->priv->usertoken = NULL; -#line 1202 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_free0 (self->priv->albumtoken); -#line 1202 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - self->priv->albumtoken = NULL; -#line 1203 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_free0 (self->priv->albumticket); -#line 1203 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - self->priv->albumticket = NULL; -#line 1204 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_free0 (self->priv->username); -#line 1204 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - self->priv->username = NULL; -#line 1205 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_free0 (self->priv->userid); -#line 1205 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - self->priv->userid = NULL; -#line 1206 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_free0 (self->priv->maxsize); -#line 1206 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - self->priv->maxsize = NULL; -#line 1207 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_free0 (self->priv->quality); -#line 1207 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - self->priv->quality = NULL; -#line 9068 "RajcePublishing.c" -} - - -void -publishing_rajce_session_set_usertoken (PublishingRajceSession* self, - const gchar* usertoken) -{ - gchar* _tmp0_; -#line 1210 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_return_if_fail (PUBLISHING_RAJCE_IS_SESSION (self)); -#line 1210 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp0_ = g_strdup (usertoken); -#line 1210 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_free0 (self->priv->usertoken); -#line 1210 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - self->priv->usertoken = _tmp0_; -#line 9085 "RajcePublishing.c" -} - - -void -publishing_rajce_session_set_albumtoken (PublishingRajceSession* self, - const gchar* albumtoken) -{ - gchar* _tmp0_; -#line 1211 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_return_if_fail (PUBLISHING_RAJCE_IS_SESSION (self)); -#line 1211 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp0_ = g_strdup (albumtoken); -#line 1211 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_free0 (self->priv->albumtoken); -#line 1211 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - self->priv->albumtoken = _tmp0_; -#line 9102 "RajcePublishing.c" -} - - -void -publishing_rajce_session_set_albumticket (PublishingRajceSession* self, - const gchar* albumticket) -{ - gchar* _tmp0_; -#line 1212 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_return_if_fail (PUBLISHING_RAJCE_IS_SESSION (self)); -#line 1212 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp0_ = g_strdup (albumticket); -#line 1212 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_free0 (self->priv->albumticket); -#line 1212 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - self->priv->albumticket = _tmp0_; -#line 9119 "RajcePublishing.c" -} - - -gchar* -publishing_rajce_session_get_usertoken (PublishingRajceSession* self) -{ - gchar* result = NULL; - const gchar* _tmp0_; - gchar* _tmp1_; -#line 1214 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_return_val_if_fail (PUBLISHING_RAJCE_IS_SESSION (self), NULL); -#line 1214 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp0_ = self->priv->usertoken; -#line 1214 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp1_ = g_strdup (_tmp0_); -#line 1214 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - result = _tmp1_; -#line 1214 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - return result; -#line 9139 "RajcePublishing.c" -} - - -gchar* -publishing_rajce_session_get_albumtoken (PublishingRajceSession* self) -{ - gchar* result = NULL; - const gchar* _tmp0_; - gchar* _tmp1_; -#line 1215 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_return_val_if_fail (PUBLISHING_RAJCE_IS_SESSION (self), NULL); -#line 1215 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp0_ = self->priv->albumtoken; -#line 1215 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp1_ = g_strdup (_tmp0_); -#line 1215 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - result = _tmp1_; -#line 1215 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - return result; -#line 9159 "RajcePublishing.c" -} - - -gchar* -publishing_rajce_session_get_albumticket (PublishingRajceSession* self) -{ - gchar* result = NULL; - const gchar* _tmp0_; - gchar* _tmp1_; -#line 1216 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_return_val_if_fail (PUBLISHING_RAJCE_IS_SESSION (self), NULL); -#line 1216 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp0_ = self->priv->albumticket; -#line 1216 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp1_ = g_strdup (_tmp0_); -#line 1216 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - result = _tmp1_; -#line 1216 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - return result; -#line 9179 "RajcePublishing.c" -} - - -gchar* -publishing_rajce_session_get_username (PublishingRajceSession* self) -{ - gchar* result = NULL; - const gchar* _tmp0_; - gchar* _tmp1_; -#line 1217 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_return_val_if_fail (PUBLISHING_RAJCE_IS_SESSION (self), NULL); -#line 1217 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp0_ = self->priv->username; -#line 1217 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp1_ = g_strdup (_tmp0_); -#line 1217 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - result = _tmp1_; -#line 1217 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - return result; -#line 9199 "RajcePublishing.c" -} - - -gint -publishing_rajce_session_get_maxsize (PublishingRajceSession* self) -{ - gint result = 0; - gint* _tmp0_; -#line 1219 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_return_val_if_fail (PUBLISHING_RAJCE_IS_SESSION (self), 0); -#line 1219 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp0_ = self->priv->maxsize; -#line 1219 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - result = *_tmp0_; -#line 1219 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - return result; -#line 9216 "RajcePublishing.c" -} - - -static void -publishing_rajce_session_class_init (PublishingRajceSessionClass * klass) -{ -#line 1171 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - publishing_rajce_session_parent_class = g_type_class_peek_parent (klass); -#line 1171 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - ((PublishingRESTSupportSessionClass *) klass)->finalize = publishing_rajce_session_finalize; -#line 1171 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_type_class_add_private (klass, sizeof (PublishingRajceSessionPrivate)); -#line 1171 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - ((PublishingRESTSupportSessionClass *) klass)->is_authenticated = (gboolean (*) (PublishingRESTSupportSession *)) publishing_rajce_session_real_is_authenticated; -#line 9231 "RajcePublishing.c" -} - - -static void -publishing_rajce_session_instance_init (PublishingRajceSession * self) -{ -#line 1171 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - self->priv = PUBLISHING_RAJCE_SESSION_GET_PRIVATE (self); -#line 1172 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - self->priv->usertoken = NULL; -#line 1173 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - self->priv->albumtoken = NULL; -#line 1174 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - self->priv->albumticket = NULL; -#line 1175 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - self->priv->username = NULL; -#line 1176 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - self->priv->userid = NULL; -#line 1177 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - self->priv->maxsize = NULL; -#line 1178 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - self->priv->quality = NULL; -#line 9254 "RajcePublishing.c" -} - - -static void -publishing_rajce_session_finalize (PublishingRESTSupportSession * obj) -{ - PublishingRajceSession * self; -#line 1171 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, PUBLISHING_RAJCE_TYPE_SESSION, PublishingRajceSession); -#line 1172 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_free0 (self->priv->usertoken); -#line 1173 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_free0 (self->priv->albumtoken); -#line 1174 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_free0 (self->priv->albumticket); -#line 1175 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_free0 (self->priv->username); -#line 1176 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_free0 (self->priv->userid); -#line 1177 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_free0 (self->priv->maxsize); -#line 1178 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_free0 (self->priv->quality); -#line 1171 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - PUBLISHING_REST_SUPPORT_SESSION_CLASS (publishing_rajce_session_parent_class)->finalize (obj); -#line 9280 "RajcePublishing.c" -} - - -/** - * Session class that keeps track of the credentials - */ -GType -publishing_rajce_session_get_type (void) -{ - static volatile gsize publishing_rajce_session_type_id__volatile = 0; - if (g_once_init_enter (&publishing_rajce_session_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (PublishingRajceSessionClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) publishing_rajce_session_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PublishingRajceSession), 0, (GInstanceInitFunc) publishing_rajce_session_instance_init, NULL }; - GType publishing_rajce_session_type_id; - publishing_rajce_session_type_id = g_type_register_static (PUBLISHING_REST_SUPPORT_TYPE_SESSION, "PublishingRajceSession", &g_define_type_info, 0); - g_once_init_leave (&publishing_rajce_session_type_id__volatile, publishing_rajce_session_type_id); - } - return publishing_rajce_session_type_id__volatile; -} - - -static gpointer -_publishing_rajce_arg_item_ref0 (gpointer self) -{ -#line 1248 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - return self ? publishing_rajce_arg_item_ref (self) : NULL; -#line 9306 "RajcePublishing.c" -} - - -PublishingRajceArgItem* -publishing_rajce_arg_item_construct (GType object_type, - const gchar* k, - const gchar* v) -{ - PublishingRajceArgItem* self = NULL; - gchar* _tmp0_; - gchar* _tmp1_; - PublishingRajceArgItem** _tmp2_; -#line 1229 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - self = (PublishingRajceArgItem*) g_type_create_instance (object_type); -#line 1231 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp0_ = g_strdup (k); -#line 1231 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_free0 (self->key); -#line 1231 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - self->key = _tmp0_; -#line 1232 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp1_ = g_strdup (v); -#line 1232 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_free0 (self->val); -#line 1232 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - self->val = _tmp1_; -#line 1233 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp2_ = g_new0 (PublishingRajceArgItem*, 0 + 1); -#line 1233 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - self->children = (_vala_array_free (self->children, self->children_length1, (GDestroyNotify) publishing_rajce_arg_item_unref), NULL); -#line 1233 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - self->children = _tmp2_; -#line 1233 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - self->children_length1 = 0; -#line 1233 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - self->_children_size_ = self->children_length1; -#line 1229 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - return self; -#line 9345 "RajcePublishing.c" -} - - -PublishingRajceArgItem* -publishing_rajce_arg_item_new (const gchar* k, - const gchar* v) -{ -#line 1229 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - return publishing_rajce_arg_item_construct (PUBLISHING_RAJCE_TYPE_ARG_ITEM, k, v); -#line 9355 "RajcePublishing.c" -} - - -static void -_vala_array_add6 (PublishingRajceArgItem** * array, - int* length, - int* size, - PublishingRajceArgItem* value) -{ -#line 1237 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - if ((*length) == (*size)) { -#line 1237 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - *size = (*size) ? (2 * (*size)) : 4; -#line 1237 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - *array = g_renew (PublishingRajceArgItem*, *array, (*size) + 1); -#line 9371 "RajcePublishing.c" - } -#line 1237 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - (*array)[(*length)++] = value; -#line 1237 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - (*array)[*length] = NULL; -#line 9377 "RajcePublishing.c" -} - - -void -publishing_rajce_arg_item_AddChild (PublishingRajceArgItem* self, - PublishingRajceArgItem* child) -{ - PublishingRajceArgItem** _tmp0_; - gint _tmp0__length1; - PublishingRajceArgItem* _tmp1_; -#line 1235 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_return_if_fail (PUBLISHING_RAJCE_IS_ARG_ITEM (self)); -#line 1235 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_return_if_fail (PUBLISHING_RAJCE_IS_ARG_ITEM (child)); -#line 1237 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp0_ = self->children; -#line 1237 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp0__length1 = self->children_length1; -#line 1237 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp1_ = _publishing_rajce_arg_item_ref0 (child); -#line 1237 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _vala_array_add6 (&self->children, &self->children_length1, &self->_children_size_, _tmp1_); -#line 9400 "RajcePublishing.c" -} - - -void -publishing_rajce_arg_item_AddChildren (PublishingRajceArgItem* self, - PublishingRajceArgItem** newchildren, - int newchildren_length1) -{ -#line 1239 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_return_if_fail (PUBLISHING_RAJCE_IS_ARG_ITEM (self)); -#line 9411 "RajcePublishing.c" - { - PublishingRajceArgItem** child_collection = NULL; - gint child_collection_length1 = 0; - gint _child_collection_size_ = 0; - gint child_it = 0; -#line 1241 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - child_collection = newchildren; -#line 1241 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - child_collection_length1 = newchildren_length1; -#line 1241 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - for (child_it = 0; child_it < newchildren_length1; child_it = child_it + 1) { -#line 9423 "RajcePublishing.c" - PublishingRajceArgItem* _tmp0_; - PublishingRajceArgItem* child = NULL; -#line 1241 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp0_ = _publishing_rajce_arg_item_ref0 (child_collection[child_it]); -#line 1241 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - child = _tmp0_; -#line 9430 "RajcePublishing.c" - { - PublishingRajceArgItem* _tmp1_; -#line 1243 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp1_ = child; -#line 1243 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - publishing_rajce_arg_item_AddChild (self, _tmp1_); -#line 1241 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _publishing_rajce_arg_item_unref0 (child); -#line 9439 "RajcePublishing.c" - } - } - } -} - - -static void -publishing_rajce_value_arg_item_init (GValue* value) -{ -#line 1223 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - value->data[0].v_pointer = NULL; -#line 9451 "RajcePublishing.c" -} - - -static void -publishing_rajce_value_arg_item_free_value (GValue* value) -{ -#line 1223 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - if (value->data[0].v_pointer) { -#line 1223 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - publishing_rajce_arg_item_unref (value->data[0].v_pointer); -#line 9462 "RajcePublishing.c" - } -} - - -static void -publishing_rajce_value_arg_item_copy_value (const GValue* src_value, - GValue* dest_value) -{ -#line 1223 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - if (src_value->data[0].v_pointer) { -#line 1223 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - dest_value->data[0].v_pointer = publishing_rajce_arg_item_ref (src_value->data[0].v_pointer); -#line 9475 "RajcePublishing.c" - } else { -#line 1223 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - dest_value->data[0].v_pointer = NULL; -#line 9479 "RajcePublishing.c" - } -} - - -static gpointer -publishing_rajce_value_arg_item_peek_pointer (const GValue* value) -{ -#line 1223 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - return value->data[0].v_pointer; -#line 9489 "RajcePublishing.c" -} - - -static gchar* -publishing_rajce_value_arg_item_collect_value (GValue* value, - guint n_collect_values, - GTypeCValue* collect_values, - guint collect_flags) -{ -#line 1223 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - if (collect_values[0].v_pointer) { -#line 9501 "RajcePublishing.c" - PublishingRajceArgItem * object; - object = collect_values[0].v_pointer; -#line 1223 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - if (object->parent_instance.g_class == NULL) { -#line 1223 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL); -#line 9508 "RajcePublishing.c" - } else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) { -#line 1223 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - return g_strconcat ("invalid object type `", g_type_name (G_TYPE_FROM_INSTANCE (object)), "' for value type `", G_VALUE_TYPE_NAME (value), "'", NULL); -#line 9512 "RajcePublishing.c" - } -#line 1223 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - value->data[0].v_pointer = publishing_rajce_arg_item_ref (object); -#line 9516 "RajcePublishing.c" - } else { -#line 1223 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - value->data[0].v_pointer = NULL; -#line 9520 "RajcePublishing.c" - } -#line 1223 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - return NULL; -#line 9524 "RajcePublishing.c" -} - - -static gchar* -publishing_rajce_value_arg_item_lcopy_value (const GValue* value, - guint n_collect_values, - GTypeCValue* collect_values, - guint collect_flags) -{ - PublishingRajceArgItem ** object_p; - object_p = collect_values[0].v_pointer; -#line 1223 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - if (!object_p) { -#line 1223 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value)); -#line 9540 "RajcePublishing.c" - } -#line 1223 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - if (!value->data[0].v_pointer) { -#line 1223 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - *object_p = NULL; -#line 9546 "RajcePublishing.c" - } else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) { -#line 1223 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - *object_p = value->data[0].v_pointer; -#line 9550 "RajcePublishing.c" - } else { -#line 1223 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - *object_p = publishing_rajce_arg_item_ref (value->data[0].v_pointer); -#line 9554 "RajcePublishing.c" - } -#line 1223 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - return NULL; -#line 9558 "RajcePublishing.c" -} - - -GParamSpec* -publishing_rajce_param_spec_arg_item (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags) -{ - PublishingRajceParamSpecArgItem* spec; -#line 1223 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_return_val_if_fail (g_type_is_a (object_type, PUBLISHING_RAJCE_TYPE_ARG_ITEM), NULL); -#line 1223 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags); -#line 1223 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - G_PARAM_SPEC (spec)->value_type = object_type; -#line 1223 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - return G_PARAM_SPEC (spec); -#line 9578 "RajcePublishing.c" -} - - -gpointer -publishing_rajce_value_get_arg_item (const GValue* value) -{ -#line 1223 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, PUBLISHING_RAJCE_TYPE_ARG_ITEM), NULL); -#line 1223 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - return value->data[0].v_pointer; -#line 9589 "RajcePublishing.c" -} - - -void -publishing_rajce_value_set_arg_item (GValue* value, - gpointer v_object) -{ - PublishingRajceArgItem * old; -#line 1223 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, PUBLISHING_RAJCE_TYPE_ARG_ITEM)); -#line 1223 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - old = value->data[0].v_pointer; -#line 1223 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - if (v_object) { -#line 1223 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, PUBLISHING_RAJCE_TYPE_ARG_ITEM)); -#line 1223 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value))); -#line 1223 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - value->data[0].v_pointer = v_object; -#line 1223 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - publishing_rajce_arg_item_ref (value->data[0].v_pointer); -#line 9612 "RajcePublishing.c" - } else { -#line 1223 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - value->data[0].v_pointer = NULL; -#line 9616 "RajcePublishing.c" - } -#line 1223 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - if (old) { -#line 1223 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - publishing_rajce_arg_item_unref (old); -#line 9622 "RajcePublishing.c" - } -} - - -void -publishing_rajce_value_take_arg_item (GValue* value, - gpointer v_object) -{ - PublishingRajceArgItem * old; -#line 1223 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, PUBLISHING_RAJCE_TYPE_ARG_ITEM)); -#line 1223 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - old = value->data[0].v_pointer; -#line 1223 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - if (v_object) { -#line 1223 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, PUBLISHING_RAJCE_TYPE_ARG_ITEM)); -#line 1223 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value))); -#line 1223 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - value->data[0].v_pointer = v_object; -#line 9644 "RajcePublishing.c" - } else { -#line 1223 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - value->data[0].v_pointer = NULL; -#line 9648 "RajcePublishing.c" - } -#line 1223 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - if (old) { -#line 1223 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - publishing_rajce_arg_item_unref (old); -#line 9654 "RajcePublishing.c" - } -} - - -static void -publishing_rajce_arg_item_class_init (PublishingRajceArgItemClass * klass) -{ -#line 1223 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - publishing_rajce_arg_item_parent_class = g_type_class_peek_parent (klass); -#line 1223 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - ((PublishingRajceArgItemClass *) klass)->finalize = publishing_rajce_arg_item_finalize; -#line 9666 "RajcePublishing.c" -} - - -static void -publishing_rajce_arg_item_instance_init (PublishingRajceArgItem * self) -{ -#line 1223 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - self->ref_count = 1; -#line 9675 "RajcePublishing.c" -} - - -static void -publishing_rajce_arg_item_finalize (PublishingRajceArgItem * obj) -{ - PublishingRajceArgItem * self; - PublishingRajceArgItem** _tmp0_; - gint _tmp0__length1; -#line 1223 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, PUBLISHING_RAJCE_TYPE_ARG_ITEM, PublishingRajceArgItem); -#line 1223 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_signal_handlers_destroy (self); -#line 1248 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp0_ = self->children; -#line 1248 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp0__length1 = self->children_length1; -#line 9693 "RajcePublishing.c" - { - PublishingRajceArgItem** child_collection = NULL; - gint child_collection_length1 = 0; - gint _child_collection_size_ = 0; - gint child_it = 0; -#line 1248 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - child_collection = _tmp0_; -#line 1248 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - child_collection_length1 = _tmp0__length1; -#line 1248 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - for (child_it = 0; child_it < _tmp0__length1; child_it = child_it + 1) { -#line 9705 "RajcePublishing.c" - PublishingRajceArgItem* _tmp1_; - PublishingRajceArgItem* child = NULL; -#line 1248 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp1_ = _publishing_rajce_arg_item_ref0 (child_collection[child_it]); -#line 1248 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - child = _tmp1_; -#line 9712 "RajcePublishing.c" - { -#line 1250 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _publishing_rajce_arg_item_unref0 (child); -#line 1250 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - child = NULL; -#line 1248 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _publishing_rajce_arg_item_unref0 (child); -#line 9720 "RajcePublishing.c" - } - } - } -#line 1225 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_free0 (self->key); -#line 1226 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_free0 (self->val); -#line 1227 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - self->children = (_vala_array_free (self->children, self->children_length1, (GDestroyNotify) publishing_rajce_arg_item_unref), NULL); -#line 9730 "RajcePublishing.c" -} - - -GType -publishing_rajce_arg_item_get_type (void) -{ - static volatile gsize publishing_rajce_arg_item_type_id__volatile = 0; - if (g_once_init_enter (&publishing_rajce_arg_item_type_id__volatile)) { - static const GTypeValueTable g_define_type_value_table = { publishing_rajce_value_arg_item_init, publishing_rajce_value_arg_item_free_value, publishing_rajce_value_arg_item_copy_value, publishing_rajce_value_arg_item_peek_pointer, "p", publishing_rajce_value_arg_item_collect_value, "p", publishing_rajce_value_arg_item_lcopy_value }; - static const GTypeInfo g_define_type_info = { sizeof (PublishingRajceArgItemClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) publishing_rajce_arg_item_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PublishingRajceArgItem), 0, (GInstanceInitFunc) publishing_rajce_arg_item_instance_init, &g_define_type_value_table }; - static const GTypeFundamentalInfo g_define_type_fundamental_info = { (G_TYPE_FLAG_CLASSED | G_TYPE_FLAG_INSTANTIATABLE | G_TYPE_FLAG_DERIVABLE | G_TYPE_FLAG_DEEP_DERIVABLE) }; - GType publishing_rajce_arg_item_type_id; - publishing_rajce_arg_item_type_id = g_type_register_fundamental (g_type_fundamental_next (), "PublishingRajceArgItem", &g_define_type_info, &g_define_type_fundamental_info, 0); - g_once_init_leave (&publishing_rajce_arg_item_type_id__volatile, publishing_rajce_arg_item_type_id); - } - return publishing_rajce_arg_item_type_id__volatile; -} - - -gpointer -publishing_rajce_arg_item_ref (gpointer instance) -{ - PublishingRajceArgItem * self; - self = instance; -#line 1223 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_atomic_int_inc (&self->ref_count); -#line 1223 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - return instance; -#line 9759 "RajcePublishing.c" -} - - -void -publishing_rajce_arg_item_unref (gpointer instance) -{ - PublishingRajceArgItem * self; - self = instance; -#line 1223 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - if (g_atomic_int_dec_and_test (&self->ref_count)) { -#line 1223 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - PUBLISHING_RAJCE_ARG_ITEM_GET_CLASS (self)->finalize (self); -#line 1223 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_type_free_instance ((GTypeInstance *) self); -#line 9774 "RajcePublishing.c" - } -} - - -PublishingRajceLiveApiRequest* -publishing_rajce_live_api_request_construct (GType object_type, - const gchar* cmd) -{ - PublishingRajceLiveApiRequest* self = NULL; - PublishingRajceArgItem** _tmp0_; - gchar* _tmp1_; -#line 1262 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_return_val_if_fail (cmd != NULL, NULL); -#line 1262 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - self = (PublishingRajceLiveApiRequest*) g_type_create_instance (object_type); -#line 1264 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp0_ = g_new0 (PublishingRajceArgItem*, 0 + 1); -#line 1264 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - self->priv->_params = (_vala_array_free (self->priv->_params, self->priv->_params_length1, (GDestroyNotify) publishing_rajce_arg_item_unref), NULL); -#line 1264 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - self->priv->_params = _tmp0_; -#line 1264 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - self->priv->_params_length1 = 0; -#line 1264 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - self->priv->__params_size_ = self->priv->_params_length1; -#line 1265 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp1_ = g_strdup (cmd); -#line 1265 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_free0 (self->priv->_cmd); -#line 1265 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - self->priv->_cmd = _tmp1_; -#line 1262 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - return self; -#line 9808 "RajcePublishing.c" -} - - -PublishingRajceLiveApiRequest* -publishing_rajce_live_api_request_new (const gchar* cmd) -{ -#line 1262 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - return publishing_rajce_live_api_request_construct (PUBLISHING_RAJCE_TYPE_LIVE_API_REQUEST, cmd); -#line 9817 "RajcePublishing.c" -} - - -static void -_vala_array_add7 (PublishingRajceArgItem** * array, - int* length, - int* size, - PublishingRajceArgItem* value) -{ -#line 1272 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - if ((*length) == (*size)) { -#line 1272 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - *size = (*size) ? (2 * (*size)) : 4; -#line 1272 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - *array = g_renew (PublishingRajceArgItem*, *array, (*size) + 1); -#line 9833 "RajcePublishing.c" - } -#line 1272 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - (*array)[(*length)++] = value; -#line 1272 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - (*array)[*length] = NULL; -#line 9839 "RajcePublishing.c" -} - - -void -publishing_rajce_live_api_request_AddParam (PublishingRajceLiveApiRequest* self, - const gchar* name, - const gchar* val) -{ - PublishingRajceArgItem** _tmp0_; - gint _tmp0__length1; - PublishingRajceArgItem* _tmp1_; -#line 1270 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_return_if_fail (PUBLISHING_RAJCE_IS_LIVE_API_REQUEST (self)); -#line 1270 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_return_if_fail (name != NULL); -#line 1270 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_return_if_fail (val != NULL); -#line 1272 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp0_ = self->priv->_params; -#line 1272 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp0__length1 = self->priv->_params_length1; -#line 1272 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp1_ = publishing_rajce_arg_item_new (name, val); -#line 1272 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _vala_array_add7 (&self->priv->_params, &self->priv->_params_length1, &self->priv->__params_size_, _tmp1_); -#line 9865 "RajcePublishing.c" -} - - -void -publishing_rajce_live_api_request_AddParamBool (PublishingRajceLiveApiRequest* self, - const gchar* name, - gboolean val) -{ - const gchar* _tmp0_ = NULL; -#line 1277 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_return_if_fail (PUBLISHING_RAJCE_IS_LIVE_API_REQUEST (self)); -#line 1277 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_return_if_fail (name != NULL); -#line 1279 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - if (val) { -#line 1279 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp0_ = "1"; -#line 9883 "RajcePublishing.c" - } else { -#line 1279 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp0_ = "0"; -#line 9887 "RajcePublishing.c" - } -#line 1279 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - publishing_rajce_live_api_request_AddParam (self, name, _tmp0_); -#line 9891 "RajcePublishing.c" -} - - -void -publishing_rajce_live_api_request_AddParamInt (PublishingRajceLiveApiRequest* self, - const gchar* name, - gint val) -{ - gchar* _tmp0_; - gchar* _tmp1_; -#line 1284 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_return_if_fail (PUBLISHING_RAJCE_IS_LIVE_API_REQUEST (self)); -#line 1284 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_return_if_fail (name != NULL); -#line 1286 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp0_ = g_strdup_printf ("%i", val); -#line 1286 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp1_ = _tmp0_; -#line 1286 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - publishing_rajce_live_api_request_AddParam (self, name, _tmp1_); -#line 1286 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_free0 (_tmp1_); -#line 9914 "RajcePublishing.c" -} - - -static void -_vala_array_add8 (PublishingRajceArgItem** * array, - int* length, - int* size, - PublishingRajceArgItem* value) -{ -#line 1302 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - if ((*length) == (*size)) { -#line 1302 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - *size = (*size) ? (2 * (*size)) : 4; -#line 1302 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - *array = g_renew (PublishingRajceArgItem*, *array, (*size) + 1); -#line 9930 "RajcePublishing.c" - } -#line 1302 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - (*array)[(*length)++] = value; -#line 1302 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - (*array)[*length] = NULL; -#line 9936 "RajcePublishing.c" -} - - -void -publishing_rajce_live_api_request_AddParamNode (PublishingRajceLiveApiRequest* self, - const gchar* name, - PublishingRajceArgItem** val, - int val_length1) -{ - PublishingRajceArgItem* newItem = NULL; - PublishingRajceArgItem* _tmp0_; - PublishingRajceArgItem** _tmp1_; - gint _tmp1__length1; - PublishingRajceArgItem* _tmp2_; -#line 1298 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_return_if_fail (PUBLISHING_RAJCE_IS_LIVE_API_REQUEST (self)); -#line 1298 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_return_if_fail (name != NULL); -#line 1300 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp0_ = publishing_rajce_arg_item_new (name, NULL); -#line 1300 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - newItem = _tmp0_; -#line 1301 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - publishing_rajce_arg_item_AddChildren (newItem, val, val_length1); -#line 1302 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp1_ = self->priv->_params; -#line 1302 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp1__length1 = self->priv->_params_length1; -#line 1302 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp2_ = _publishing_rajce_arg_item_ref0 (newItem); -#line 1302 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _vala_array_add8 (&self->priv->_params, &self->priv->_params_length1, &self->priv->__params_size_, _tmp2_); -#line 1298 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _publishing_rajce_arg_item_unref0 (newItem); -#line 9971 "RajcePublishing.c" -} - - -gchar* -publishing_rajce_live_api_request_Params2XmlString (PublishingRajceLiveApiRequest* self, - gboolean urlencode) -{ - gchar* result = NULL; - xmlDoc* doc = NULL; - xmlDoc* _tmp0_; - xmlNode* root = NULL; - xmlNode* _tmp1_; - xmlDoc* _tmp2_; - xmlNode* _tmp3_; - xmlNode* _tmp4_; - const gchar* _tmp5_; - xmlNode* par = NULL; - xmlNode* _tmp6_; - xmlNode* _tmp7_; - PublishingRajceArgItem** _tmp8_; - gint _tmp8__length1; - gchar* xmlstr = NULL; - xmlDoc* _tmp12_; - gchar* _tmp13_ = NULL; - xmlDoc* _tmp14_; -#line 1307 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_return_val_if_fail (PUBLISHING_RAJCE_IS_LIVE_API_REQUEST (self), NULL); -#line 1309 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp0_ = xmlNewDoc ((xmlChar*) "1.0"); -#line 1309 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - doc = _tmp0_; -#line 1310 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp1_ = xmlNewNode (NULL, (xmlChar*) "request"); -#line 1310 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - root = _tmp1_; -#line 1311 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp2_ = doc; -#line 1311 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp3_ = root; -#line 1311 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - xmlDocSetRootElement (_tmp2_, _tmp3_); -#line 1312 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp4_ = root; -#line 1312 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp5_ = self->priv->_cmd; -#line 1312 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - xmlNewTextChild (_tmp4_, NULL, (xmlChar*) "command", (xmlChar*) _tmp5_); -#line 1313 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp6_ = root; -#line 1313 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp7_ = xmlNewTextChild (_tmp6_, NULL, (xmlChar*) "parameters", (xmlChar*) ""); -#line 1313 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - par = _tmp7_; -#line 1314 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp8_ = self->priv->_params; -#line 1314 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp8__length1 = self->priv->_params_length1; -#line 10029 "RajcePublishing.c" - { - PublishingRajceArgItem** arg_collection = NULL; - gint arg_collection_length1 = 0; - gint _arg_collection_size_ = 0; - gint arg_it = 0; -#line 1314 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - arg_collection = _tmp8_; -#line 1314 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - arg_collection_length1 = _tmp8__length1; -#line 1314 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - for (arg_it = 0; arg_it < _tmp8__length1; arg_it = arg_it + 1) { -#line 10041 "RajcePublishing.c" - PublishingRajceArgItem* _tmp9_; - PublishingRajceArgItem* arg = NULL; -#line 1314 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp9_ = _publishing_rajce_arg_item_ref0 (arg_collection[arg_it]); -#line 1314 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - arg = _tmp9_; -#line 10048 "RajcePublishing.c" - { - xmlNode* _tmp10_; - PublishingRajceArgItem* _tmp11_; -#line 1316 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp10_ = par; -#line 1316 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp11_ = arg; -#line 1316 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - publishing_rajce_live_api_request_WriteParam (_tmp10_, _tmp11_); -#line 1314 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _publishing_rajce_arg_item_unref0 (arg); -#line 10060 "RajcePublishing.c" - } - } - } -#line 1319 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp12_ = doc; -#line 1319 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - xmlDocDumpMemoryEnc (_tmp12_, (xmlChar**) (&_tmp13_), NULL, "UTF-8"); -#line 1319 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_free0 (xmlstr); -#line 1319 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - xmlstr = _tmp13_; -#line 1320 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp14_ = doc; -#line 1320 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - xmlFreeDoc (_tmp14_); -#line 1321 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - if (urlencode) { -#line 10078 "RajcePublishing.c" - const gchar* _tmp15_; - gchar* _tmp16_; -#line 1323 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp15_ = xmlstr; -#line 1323 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp16_ = soup_uri_encode (_tmp15_, "&;"); -#line 1323 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - result = _tmp16_; -#line 1323 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_free0 (xmlstr); -#line 1323 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - return result; -#line 10091 "RajcePublishing.c" - } -#line 1325 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - result = xmlstr; -#line 1325 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - return result; -#line 10097 "RajcePublishing.c" -} - - -static void -publishing_rajce_live_api_request_WriteParam (xmlNode* node, - PublishingRajceArgItem* arg) -{ - PublishingRajceArgItem** _tmp0_; - gint _tmp0__length1; -#line 1330 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_return_if_fail (PUBLISHING_RAJCE_IS_ARG_ITEM (arg)); -#line 1332 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp0_ = arg->children; -#line 1332 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp0__length1 = arg->children_length1; -#line 1332 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - if (_tmp0__length1 == 0) { -#line 10115 "RajcePublishing.c" - const gchar* _tmp1_; - const gchar* _tmp2_; -#line 1334 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp1_ = arg->key; -#line 1334 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp2_ = arg->val; -#line 1334 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - xmlNewTextChild (node, NULL, (xmlChar*) _tmp1_, (xmlChar*) _tmp2_); -#line 10124 "RajcePublishing.c" - } else { - xmlNode* subnode = NULL; - const gchar* _tmp3_; - xmlNode* _tmp4_; - PublishingRajceArgItem** _tmp5_; - gint _tmp5__length1; -#line 1338 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp3_ = arg->key; -#line 1338 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp4_ = xmlNewTextChild (node, NULL, (xmlChar*) _tmp3_, (xmlChar*) ""); -#line 1338 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - subnode = _tmp4_; -#line 1339 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp5_ = arg->children; -#line 1339 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp5__length1 = arg->children_length1; -#line 10141 "RajcePublishing.c" - { - PublishingRajceArgItem** child_collection = NULL; - gint child_collection_length1 = 0; - gint _child_collection_size_ = 0; - gint child_it = 0; -#line 1339 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - child_collection = _tmp5_; -#line 1339 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - child_collection_length1 = _tmp5__length1; -#line 1339 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - for (child_it = 0; child_it < _tmp5__length1; child_it = child_it + 1) { -#line 10153 "RajcePublishing.c" - PublishingRajceArgItem* _tmp6_; - PublishingRajceArgItem* child = NULL; -#line 1339 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp6_ = _publishing_rajce_arg_item_ref0 (child_collection[child_it]); -#line 1339 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - child = _tmp6_; -#line 10160 "RajcePublishing.c" - { - xmlNode* _tmp7_; - PublishingRajceArgItem* _tmp8_; -#line 1341 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp7_ = subnode; -#line 1341 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp8_ = child; -#line 1341 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - publishing_rajce_live_api_request_WriteParam (_tmp7_, _tmp8_); -#line 1339 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _publishing_rajce_arg_item_unref0 (child); -#line 10172 "RajcePublishing.c" - } - } - } - } -} - - -static void -publishing_rajce_value_live_api_request_init (GValue* value) -{ -#line 1258 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - value->data[0].v_pointer = NULL; -#line 10185 "RajcePublishing.c" -} - - -static void -publishing_rajce_value_live_api_request_free_value (GValue* value) -{ -#line 1258 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - if (value->data[0].v_pointer) { -#line 1258 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - publishing_rajce_live_api_request_unref (value->data[0].v_pointer); -#line 10196 "RajcePublishing.c" - } -} - - -static void -publishing_rajce_value_live_api_request_copy_value (const GValue* src_value, - GValue* dest_value) -{ -#line 1258 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - if (src_value->data[0].v_pointer) { -#line 1258 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - dest_value->data[0].v_pointer = publishing_rajce_live_api_request_ref (src_value->data[0].v_pointer); -#line 10209 "RajcePublishing.c" - } else { -#line 1258 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - dest_value->data[0].v_pointer = NULL; -#line 10213 "RajcePublishing.c" - } -} - - -static gpointer -publishing_rajce_value_live_api_request_peek_pointer (const GValue* value) -{ -#line 1258 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - return value->data[0].v_pointer; -#line 10223 "RajcePublishing.c" -} - - -static gchar* -publishing_rajce_value_live_api_request_collect_value (GValue* value, - guint n_collect_values, - GTypeCValue* collect_values, - guint collect_flags) -{ -#line 1258 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - if (collect_values[0].v_pointer) { -#line 10235 "RajcePublishing.c" - PublishingRajceLiveApiRequest * object; - object = collect_values[0].v_pointer; -#line 1258 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - if (object->parent_instance.g_class == NULL) { -#line 1258 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL); -#line 10242 "RajcePublishing.c" - } else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) { -#line 1258 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - return g_strconcat ("invalid object type `", g_type_name (G_TYPE_FROM_INSTANCE (object)), "' for value type `", G_VALUE_TYPE_NAME (value), "'", NULL); -#line 10246 "RajcePublishing.c" - } -#line 1258 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - value->data[0].v_pointer = publishing_rajce_live_api_request_ref (object); -#line 10250 "RajcePublishing.c" - } else { -#line 1258 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - value->data[0].v_pointer = NULL; -#line 10254 "RajcePublishing.c" - } -#line 1258 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - return NULL; -#line 10258 "RajcePublishing.c" -} - - -static gchar* -publishing_rajce_value_live_api_request_lcopy_value (const GValue* value, - guint n_collect_values, - GTypeCValue* collect_values, - guint collect_flags) -{ - PublishingRajceLiveApiRequest ** object_p; - object_p = collect_values[0].v_pointer; -#line 1258 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - if (!object_p) { -#line 1258 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value)); -#line 10274 "RajcePublishing.c" - } -#line 1258 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - if (!value->data[0].v_pointer) { -#line 1258 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - *object_p = NULL; -#line 10280 "RajcePublishing.c" - } else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) { -#line 1258 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - *object_p = value->data[0].v_pointer; -#line 10284 "RajcePublishing.c" - } else { -#line 1258 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - *object_p = publishing_rajce_live_api_request_ref (value->data[0].v_pointer); -#line 10288 "RajcePublishing.c" - } -#line 1258 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - return NULL; -#line 10292 "RajcePublishing.c" -} - - -GParamSpec* -publishing_rajce_param_spec_live_api_request (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags) -{ - PublishingRajceParamSpecLiveApiRequest* spec; -#line 1258 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_return_val_if_fail (g_type_is_a (object_type, PUBLISHING_RAJCE_TYPE_LIVE_API_REQUEST), NULL); -#line 1258 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags); -#line 1258 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - G_PARAM_SPEC (spec)->value_type = object_type; -#line 1258 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - return G_PARAM_SPEC (spec); -#line 10312 "RajcePublishing.c" -} - - -gpointer -publishing_rajce_value_get_live_api_request (const GValue* value) -{ -#line 1258 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, PUBLISHING_RAJCE_TYPE_LIVE_API_REQUEST), NULL); -#line 1258 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - return value->data[0].v_pointer; -#line 10323 "RajcePublishing.c" -} - - -void -publishing_rajce_value_set_live_api_request (GValue* value, - gpointer v_object) -{ - PublishingRajceLiveApiRequest * old; -#line 1258 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, PUBLISHING_RAJCE_TYPE_LIVE_API_REQUEST)); -#line 1258 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - old = value->data[0].v_pointer; -#line 1258 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - if (v_object) { -#line 1258 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, PUBLISHING_RAJCE_TYPE_LIVE_API_REQUEST)); -#line 1258 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value))); -#line 1258 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - value->data[0].v_pointer = v_object; -#line 1258 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - publishing_rajce_live_api_request_ref (value->data[0].v_pointer); -#line 10346 "RajcePublishing.c" - } else { -#line 1258 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - value->data[0].v_pointer = NULL; -#line 10350 "RajcePublishing.c" - } -#line 1258 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - if (old) { -#line 1258 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - publishing_rajce_live_api_request_unref (old); -#line 10356 "RajcePublishing.c" - } -} - - -void -publishing_rajce_value_take_live_api_request (GValue* value, - gpointer v_object) -{ - PublishingRajceLiveApiRequest * old; -#line 1258 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, PUBLISHING_RAJCE_TYPE_LIVE_API_REQUEST)); -#line 1258 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - old = value->data[0].v_pointer; -#line 1258 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - if (v_object) { -#line 1258 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, PUBLISHING_RAJCE_TYPE_LIVE_API_REQUEST)); -#line 1258 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value))); -#line 1258 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - value->data[0].v_pointer = v_object; -#line 10378 "RajcePublishing.c" - } else { -#line 1258 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - value->data[0].v_pointer = NULL; -#line 10382 "RajcePublishing.c" - } -#line 1258 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - if (old) { -#line 1258 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - publishing_rajce_live_api_request_unref (old); -#line 10388 "RajcePublishing.c" - } -} - - -static void -publishing_rajce_live_api_request_class_init (PublishingRajceLiveApiRequestClass * klass) -{ -#line 1258 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - publishing_rajce_live_api_request_parent_class = g_type_class_peek_parent (klass); -#line 1258 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - ((PublishingRajceLiveApiRequestClass *) klass)->finalize = publishing_rajce_live_api_request_finalize; -#line 1258 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_type_class_add_private (klass, sizeof (PublishingRajceLiveApiRequestPrivate)); -#line 10402 "RajcePublishing.c" -} - - -static void -publishing_rajce_live_api_request_instance_init (PublishingRajceLiveApiRequest * self) -{ -#line 1258 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - self->priv = PUBLISHING_RAJCE_LIVE_API_REQUEST_GET_PRIVATE (self); -#line 1258 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - self->ref_count = 1; -#line 10413 "RajcePublishing.c" -} - - -static void -publishing_rajce_live_api_request_finalize (PublishingRajceLiveApiRequest * obj) -{ - PublishingRajceLiveApiRequest * self; -#line 1258 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, PUBLISHING_RAJCE_TYPE_LIVE_API_REQUEST, PublishingRajceLiveApiRequest); -#line 1258 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_signal_handlers_destroy (self); -#line 1260 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - self->priv->_params = (_vala_array_free (self->priv->_params, self->priv->_params_length1, (GDestroyNotify) publishing_rajce_arg_item_unref), NULL); -#line 1261 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_free0 (self->priv->_cmd); -#line 10429 "RajcePublishing.c" -} - - -GType -publishing_rajce_live_api_request_get_type (void) -{ - static volatile gsize publishing_rajce_live_api_request_type_id__volatile = 0; - if (g_once_init_enter (&publishing_rajce_live_api_request_type_id__volatile)) { - static const GTypeValueTable g_define_type_value_table = { publishing_rajce_value_live_api_request_init, publishing_rajce_value_live_api_request_free_value, publishing_rajce_value_live_api_request_copy_value, publishing_rajce_value_live_api_request_peek_pointer, "p", publishing_rajce_value_live_api_request_collect_value, "p", publishing_rajce_value_live_api_request_lcopy_value }; - static const GTypeInfo g_define_type_info = { sizeof (PublishingRajceLiveApiRequestClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) publishing_rajce_live_api_request_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PublishingRajceLiveApiRequest), 0, (GInstanceInitFunc) publishing_rajce_live_api_request_instance_init, &g_define_type_value_table }; - static const GTypeFundamentalInfo g_define_type_fundamental_info = { (G_TYPE_FLAG_CLASSED | G_TYPE_FLAG_INSTANTIATABLE | G_TYPE_FLAG_DERIVABLE | G_TYPE_FLAG_DEEP_DERIVABLE) }; - GType publishing_rajce_live_api_request_type_id; - publishing_rajce_live_api_request_type_id = g_type_register_fundamental (g_type_fundamental_next (), "PublishingRajceLiveApiRequest", &g_define_type_info, &g_define_type_fundamental_info, 0); - g_once_init_leave (&publishing_rajce_live_api_request_type_id__volatile, publishing_rajce_live_api_request_type_id); - } - return publishing_rajce_live_api_request_type_id__volatile; -} - - -gpointer -publishing_rajce_live_api_request_ref (gpointer instance) -{ - PublishingRajceLiveApiRequest * self; - self = instance; -#line 1258 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_atomic_int_inc (&self->ref_count); -#line 1258 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - return instance; -#line 10458 "RajcePublishing.c" -} - - -void -publishing_rajce_live_api_request_unref (gpointer instance) -{ - PublishingRajceLiveApiRequest * self; - self = instance; -#line 1258 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - if (g_atomic_int_dec_and_test (&self->ref_count)) { -#line 1258 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - PUBLISHING_RAJCE_LIVE_API_REQUEST_GET_CLASS (self)->finalize (self); -#line 1258 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_type_free_instance ((GTypeInstance *) self); -#line 10473 "RajcePublishing.c" - } -} - - -PublishingRajceTransaction* -publishing_rajce_transaction_construct (GType object_type, - PublishingRajceSession* session) -{ - PublishingRajceTransaction* self = NULL; -#line 1356 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_return_val_if_fail (PUBLISHING_RAJCE_IS_SESSION (session), NULL); -#line 1358 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - self = (PublishingRajceTransaction*) publishing_rest_support_transaction_construct (object_type, G_TYPE_CHECK_INSTANCE_CAST (session, PUBLISHING_REST_SUPPORT_TYPE_SESSION, PublishingRESTSupportSession), PUBLISHING_REST_SUPPORT_HTTP_METHOD_POST); -#line 1356 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - return self; -#line 10489 "RajcePublishing.c" -} - - -PublishingRajceTransaction* -publishing_rajce_transaction_new (PublishingRajceSession* session) -{ -#line 1356 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - return publishing_rajce_transaction_construct (PUBLISHING_RAJCE_TYPE_TRANSACTION, session); -#line 10498 "RajcePublishing.c" -} - - -gchar* -publishing_rajce_transaction_validate_xml (PublishingRESTSupportXmlDocument* doc) -{ - gchar* result = NULL; - xmlNode* root = NULL; - xmlNode* _tmp0_; - xmlNode* _tmp1_; - gchar* name = NULL; - xmlNode* _tmp3_; - const gchar* _tmp4_; - gchar* _tmp5_; - gboolean _tmp6_ = FALSE; - const gchar* _tmp7_; - xmlNode* errcode = NULL; - xmlNode* _result_ = NULL; - xmlNode* _tmp16_; - gchar* _tmp17_; - gchar* _tmp18_; - xmlNode* _tmp19_; - gchar* _tmp20_; - gchar* _tmp21_; - gchar* _tmp22_; - gchar* _tmp23_; - GError * _inner_error_ = NULL; -#line 1361 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_return_val_if_fail (PUBLISHING_REST_SUPPORT_IS_XML_DOCUMENT (doc), NULL); -#line 1363 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp0_ = publishing_rest_support_xml_document_get_root_node (doc); -#line 1363 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - root = _tmp0_; -#line 1364 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp1_ = root; -#line 1364 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - if (_tmp1_ == NULL) { -#line 10536 "RajcePublishing.c" - gchar* _tmp2_; -#line 1366 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp2_ = g_strdup ("No XML returned from server"); -#line 1366 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - result = _tmp2_; -#line 1366 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - return result; -#line 10544 "RajcePublishing.c" - } -#line 1368 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp3_ = root; -#line 1368 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp4_ = _tmp3_->name; -#line 1368 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp5_ = g_strdup (_tmp4_); -#line 1368 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - name = _tmp5_; -#line 1371 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp7_ = name; -#line 1371 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - if (_tmp7_ == NULL) { -#line 1371 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp6_ = TRUE; -#line 10560 "RajcePublishing.c" - } else { - const gchar* _tmp8_; -#line 1371 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp8_ = name; -#line 1371 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp6_ = g_strcmp0 (_tmp8_, "response") != 0; -#line 10567 "RajcePublishing.c" - } -#line 1371 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - if (_tmp6_) { -#line 10571 "RajcePublishing.c" - gchar* _tmp9_; -#line 1373 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp9_ = g_strdup ("No response from Rajce in XML"); -#line 1373 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - result = _tmp9_; -#line 1373 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_free0 (name); -#line 1373 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - return result; -#line 10581 "RajcePublishing.c" - } - { - xmlNode* _tmp10_ = NULL; - xmlNode* _tmp11_; - xmlNode* _tmp12_; - xmlNode* _tmp13_ = NULL; - xmlNode* _tmp14_; - xmlNode* _tmp15_; -#line 1379 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp11_ = root; -#line 1379 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp12_ = publishing_rest_support_xml_document_get_named_child (doc, _tmp11_, "errorCode", &_inner_error_); -#line 1379 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp10_ = _tmp12_; -#line 1379 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 1379 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - if (_inner_error_->domain == SPIT_PUBLISHING_PUBLISHING_ERROR) { -#line 10600 "RajcePublishing.c" - goto __catch31_spit_publishing_publishing_error; - } -#line 1379 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_free0 (name); -#line 1379 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 1379 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_clear_error (&_inner_error_); -#line 1379 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - return NULL; -#line 10611 "RajcePublishing.c" - } -#line 1379 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - errcode = _tmp10_; -#line 1380 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp14_ = root; -#line 1380 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp15_ = publishing_rest_support_xml_document_get_named_child (doc, _tmp14_, "result", &_inner_error_); -#line 1380 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp13_ = _tmp15_; -#line 1380 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 1380 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - if (_inner_error_->domain == SPIT_PUBLISHING_PUBLISHING_ERROR) { -#line 10625 "RajcePublishing.c" - goto __catch31_spit_publishing_publishing_error; - } -#line 1380 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_free0 (name); -#line 1380 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 1380 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_clear_error (&_inner_error_); -#line 1380 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - return NULL; -#line 10636 "RajcePublishing.c" - } -#line 1380 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _result_ = _tmp13_; -#line 10640 "RajcePublishing.c" - } - goto __finally31; - __catch31_spit_publishing_publishing_error: - { - GError* err = NULL; -#line 1377 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - err = _inner_error_; -#line 1377 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _inner_error_ = NULL; -#line 1384 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - result = NULL; -#line 1384 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_error_free0 (err); -#line 1384 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_free0 (name); -#line 1384 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - return result; -#line 10658 "RajcePublishing.c" - } - __finally31: -#line 1377 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 1377 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_free0 (name); -#line 1377 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 1377 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_clear_error (&_inner_error_); -#line 1377 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - return NULL; -#line 10671 "RajcePublishing.c" - } -#line 1386 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp16_ = errcode; -#line 1386 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp17_ = (gchar*) xmlNodeGetContent (_tmp16_); -#line 1386 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp18_ = _tmp17_; -#line 1386 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp19_ = _result_; -#line 1386 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp20_ = (gchar*) xmlNodeGetContent (_tmp19_); -#line 1386 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp21_ = _tmp20_; -#line 1386 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp22_ = g_strdup_printf ("999 Rajce Error [%d]: %s", atoi (_tmp18_), _tmp21_); -#line 1386 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp23_ = _tmp22_; -#line 1386 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_free0 (_tmp21_); -#line 1386 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_free0 (_tmp18_); -#line 1386 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - result = _tmp23_; -#line 1386 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_free0 (name); -#line 1386 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - return result; -#line 10699 "RajcePublishing.c" -} - - -static void -publishing_rajce_transaction_class_init (PublishingRajceTransactionClass * klass) -{ -#line 1354 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - publishing_rajce_transaction_parent_class = g_type_class_peek_parent (klass); -#line 10708 "RajcePublishing.c" -} - - -static void -publishing_rajce_transaction_instance_init (PublishingRajceTransaction * self) -{ -} - - -/** - * Generic REST transaction class. - * - * This class implements the generic logic for all REST transactions used - * by the Rajce publishing plugin. - */ -GType -publishing_rajce_transaction_get_type (void) -{ - static volatile gsize publishing_rajce_transaction_type_id__volatile = 0; - if (g_once_init_enter (&publishing_rajce_transaction_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (PublishingRajceTransactionClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) publishing_rajce_transaction_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PublishingRajceTransaction), 0, (GInstanceInitFunc) publishing_rajce_transaction_instance_init, NULL }; - GType publishing_rajce_transaction_type_id; - publishing_rajce_transaction_type_id = g_type_register_static (PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, "PublishingRajceTransaction", &g_define_type_info, 0); - g_once_init_leave (&publishing_rajce_transaction_type_id__volatile, publishing_rajce_transaction_type_id); - } - return publishing_rajce_transaction_type_id__volatile; -} - - -PublishingRajceSessionLoginTransaction* -publishing_rajce_session_login_transaction_construct (GType object_type, - PublishingRajceSession* session, - const gchar* url, - const gchar* username, - const gchar* token) -{ - PublishingRajceSessionLoginTransaction* self = NULL; - PublishingRajceLiveApiRequest* req = NULL; - PublishingRajceLiveApiRequest* _tmp0_; - gchar* xml = NULL; - gchar* _tmp1_; -#line 1395 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_return_val_if_fail (PUBLISHING_RAJCE_IS_SESSION (session), NULL); -#line 1395 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_return_val_if_fail (url != NULL, NULL); -#line 1395 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_return_val_if_fail (username != NULL, NULL); -#line 1395 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_return_val_if_fail (token != NULL, NULL); -#line 1397 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_debug ("RajcePublishing.vala:1397: SessionLoginTransaction: URL: %s", url); -#line 1398 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - self = (PublishingRajceSessionLoginTransaction*) publishing_rest_support_transaction_construct_with_endpoint_url (object_type, G_TYPE_CHECK_INSTANCE_CAST (session, PUBLISHING_REST_SUPPORT_TYPE_SESSION, PublishingRESTSupportSession), url, PUBLISHING_REST_SUPPORT_HTTP_METHOD_POST); -#line 1399 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp0_ = publishing_rajce_live_api_request_new ("login"); -#line 1399 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - req = _tmp0_; -#line 1400 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - publishing_rajce_live_api_request_AddParam (req, "clientID", "RajceShotwellPlugin"); -#line 1401 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - publishing_rajce_live_api_request_AddParam (req, "currentVersion", "1.1.1.1"); -#line 1402 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - publishing_rajce_live_api_request_AddParam (req, "login", username); -#line 1403 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - publishing_rajce_live_api_request_AddParam (req, "password", token); -#line 1404 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp1_ = publishing_rajce_live_api_request_Params2XmlString (req, TRUE); -#line 1404 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - xml = _tmp1_; -#line 1405 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - publishing_rest_support_transaction_add_argument (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "data", xml); -#line 1395 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_free0 (xml); -#line 1395 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _publishing_rajce_live_api_request_unref0 (req); -#line 1395 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - return self; -#line 10786 "RajcePublishing.c" -} - - -PublishingRajceSessionLoginTransaction* -publishing_rajce_session_login_transaction_new (PublishingRajceSession* session, - const gchar* url, - const gchar* username, - const gchar* token) -{ -#line 1395 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - return publishing_rajce_session_login_transaction_construct (PUBLISHING_RAJCE_TYPE_SESSION_LOGIN_TRANSACTION, session, url, username, token); -#line 10798 "RajcePublishing.c" -} - - -static void -publishing_rajce_session_login_transaction_class_init (PublishingRajceSessionLoginTransactionClass * klass) -{ -#line 1393 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - publishing_rajce_session_login_transaction_parent_class = g_type_class_peek_parent (klass); -#line 10807 "RajcePublishing.c" -} - - -static void -publishing_rajce_session_login_transaction_instance_init (PublishingRajceSessionLoginTransaction * self) -{ -} - - -/** - * Transaction used to implement the network login interaction. - */ -GType -publishing_rajce_session_login_transaction_get_type (void) -{ - static volatile gsize publishing_rajce_session_login_transaction_type_id__volatile = 0; - if (g_once_init_enter (&publishing_rajce_session_login_transaction_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (PublishingRajceSessionLoginTransactionClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) publishing_rajce_session_login_transaction_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PublishingRajceSessionLoginTransaction), 0, (GInstanceInitFunc) publishing_rajce_session_login_transaction_instance_init, NULL }; - GType publishing_rajce_session_login_transaction_type_id; - publishing_rajce_session_login_transaction_type_id = g_type_register_static (PUBLISHING_RAJCE_TYPE_TRANSACTION, "PublishingRajceSessionLoginTransaction", &g_define_type_info, 0); - g_once_init_leave (&publishing_rajce_session_login_transaction_type_id__volatile, publishing_rajce_session_login_transaction_type_id); - } - return publishing_rajce_session_login_transaction_type_id__volatile; -} - - -static void -_vala_array_add9 (PublishingRajceArgItem** * array, - int* length, - int* size, - PublishingRajceArgItem* value) -{ -#line 1420 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - if ((*length) == (*size)) { -#line 1420 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - *size = (*size) ? (2 * (*size)) : 4; -#line 1420 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - *array = g_renew (PublishingRajceArgItem*, *array, (*size) + 1); -#line 10846 "RajcePublishing.c" - } -#line 1420 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - (*array)[(*length)++] = value; -#line 1420 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - (*array)[*length] = NULL; -#line 10852 "RajcePublishing.c" -} - - -static void -_vala_array_add10 (PublishingRajceArgItem** * array, - int* length, - int* size, - PublishingRajceArgItem* value) -{ -#line 1421 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - if ((*length) == (*size)) { -#line 1421 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - *size = (*size) ? (2 * (*size)) : 4; -#line 1421 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - *array = g_renew (PublishingRajceArgItem*, *array, (*size) + 1); -#line 10868 "RajcePublishing.c" - } -#line 1421 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - (*array)[(*length)++] = value; -#line 1421 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - (*array)[*length] = NULL; -#line 10874 "RajcePublishing.c" -} - - -static void -_vala_array_add11 (PublishingRajceArgItem** * array, - int* length, - int* size, - PublishingRajceArgItem* value) -{ -#line 1422 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - if ((*length) == (*size)) { -#line 1422 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - *size = (*size) ? (2 * (*size)) : 4; -#line 1422 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - *array = g_renew (PublishingRajceArgItem*, *array, (*size) + 1); -#line 10890 "RajcePublishing.c" - } -#line 1422 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - (*array)[(*length)++] = value; -#line 1422 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - (*array)[*length] = NULL; -#line 10896 "RajcePublishing.c" -} - - -static void -_vala_array_add12 (PublishingRajceArgItem** * array, - int* length, - int* size, - PublishingRajceArgItem* value) -{ -#line 1423 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - if ((*length) == (*size)) { -#line 1423 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - *size = (*size) ? (2 * (*size)) : 4; -#line 1423 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - *array = g_renew (PublishingRajceArgItem*, *array, (*size) + 1); -#line 10912 "RajcePublishing.c" - } -#line 1423 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - (*array)[(*length)++] = value; -#line 1423 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - (*array)[*length] = NULL; -#line 10918 "RajcePublishing.c" -} - - -static void -_vala_array_add13 (PublishingRajceArgItem** * array, - int* length, - int* size, - PublishingRajceArgItem* value) -{ -#line 1424 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - if ((*length) == (*size)) { -#line 1424 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - *size = (*size) ? (2 * (*size)) : 4; -#line 1424 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - *array = g_renew (PublishingRajceArgItem*, *array, (*size) + 1); -#line 10934 "RajcePublishing.c" - } -#line 1424 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - (*array)[(*length)++] = value; -#line 1424 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - (*array)[*length] = NULL; -#line 10940 "RajcePublishing.c" -} - - -PublishingRajceGetAlbumsTransaction* -publishing_rajce_get_albums_transaction_construct (GType object_type, - PublishingRajceSession* session, - const gchar* url) -{ - PublishingRajceGetAlbumsTransaction* self = NULL; - PublishingRajceLiveApiRequest* req = NULL; - PublishingRajceLiveApiRequest* _tmp0_; - gchar* _tmp1_; - gchar* _tmp2_; - PublishingRajceArgItem** columns = NULL; - PublishingRajceArgItem** _tmp3_; - gint columns_length1; - gint _columns_size_; - PublishingRajceArgItem** _tmp4_; - gint _tmp4__length1; - PublishingRajceArgItem* _tmp5_; - PublishingRajceArgItem** _tmp6_; - gint _tmp6__length1; - PublishingRajceArgItem* _tmp7_; - PublishingRajceArgItem** _tmp8_; - gint _tmp8__length1; - PublishingRajceArgItem* _tmp9_; - PublishingRajceArgItem** _tmp10_; - gint _tmp10__length1; - PublishingRajceArgItem* _tmp11_; - PublishingRajceArgItem** _tmp12_; - gint _tmp12__length1; - PublishingRajceArgItem* _tmp13_; - PublishingRajceArgItem** _tmp14_; - gint _tmp14__length1; - gchar* xml = NULL; - gchar* _tmp15_; -#line 1414 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_return_val_if_fail (PUBLISHING_RAJCE_IS_SESSION (session), NULL); -#line 1414 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_return_val_if_fail (url != NULL, NULL); -#line 1416 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - self = (PublishingRajceGetAlbumsTransaction*) publishing_rest_support_transaction_construct_with_endpoint_url (object_type, G_TYPE_CHECK_INSTANCE_CAST (session, PUBLISHING_REST_SUPPORT_TYPE_SESSION, PublishingRESTSupportSession), url, PUBLISHING_REST_SUPPORT_HTTP_METHOD_POST); -#line 1417 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp0_ = publishing_rajce_live_api_request_new ("getAlbumList"); -#line 1417 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - req = _tmp0_; -#line 1418 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp1_ = publishing_rajce_session_get_usertoken (session); -#line 1418 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp2_ = _tmp1_; -#line 1418 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - publishing_rajce_live_api_request_AddParam (req, "token", _tmp2_); -#line 1418 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_free0 (_tmp2_); -#line 1419 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp3_ = g_new0 (PublishingRajceArgItem*, 0 + 1); -#line 1419 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - columns = _tmp3_; -#line 1419 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - columns_length1 = 0; -#line 1419 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _columns_size_ = columns_length1; -#line 1420 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp4_ = columns; -#line 1420 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp4__length1 = columns_length1; -#line 1420 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp5_ = publishing_rajce_arg_item_new ("column", "viewCount"); -#line 1420 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _vala_array_add9 (&columns, &columns_length1, &_columns_size_, _tmp5_); -#line 1421 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp6_ = columns; -#line 1421 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp6__length1 = columns_length1; -#line 1421 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp7_ = publishing_rajce_arg_item_new ("column", "isFavourite"); -#line 1421 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _vala_array_add10 (&columns, &columns_length1, &_columns_size_, _tmp7_); -#line 1422 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp8_ = columns; -#line 1422 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp8__length1 = columns_length1; -#line 1422 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp9_ = publishing_rajce_arg_item_new ("column", "descriptionHtml"); -#line 1422 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _vala_array_add11 (&columns, &columns_length1, &_columns_size_, _tmp9_); -#line 1423 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp10_ = columns; -#line 1423 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp10__length1 = columns_length1; -#line 1423 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp11_ = publishing_rajce_arg_item_new ("column", "coverPhotoID"); -#line 1423 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _vala_array_add12 (&columns, &columns_length1, &_columns_size_, _tmp11_); -#line 1424 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp12_ = columns; -#line 1424 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp12__length1 = columns_length1; -#line 1424 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp13_ = publishing_rajce_arg_item_new ("column", "localPath"); -#line 1424 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _vala_array_add13 (&columns, &columns_length1, &_columns_size_, _tmp13_); -#line 1425 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp14_ = columns; -#line 1425 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp14__length1 = columns_length1; -#line 1425 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - publishing_rajce_live_api_request_AddParamNode (req, "columns", _tmp14_, _tmp14__length1); -#line 1426 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp15_ = publishing_rajce_live_api_request_Params2XmlString (req, TRUE); -#line 1426 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - xml = _tmp15_; -#line 1427 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - publishing_rest_support_transaction_add_argument (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "data", xml); -#line 1414 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_free0 (xml); -#line 1414 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - columns = (_vala_array_free (columns, columns_length1, (GDestroyNotify) publishing_rajce_arg_item_unref), NULL); -#line 1414 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _publishing_rajce_live_api_request_unref0 (req); -#line 1414 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - return self; -#line 11063 "RajcePublishing.c" -} - - -PublishingRajceGetAlbumsTransaction* -publishing_rajce_get_albums_transaction_new (PublishingRajceSession* session, - const gchar* url) -{ -#line 1414 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - return publishing_rajce_get_albums_transaction_construct (PUBLISHING_RAJCE_TYPE_GET_ALBUMS_TRANSACTION, session, url); -#line 11073 "RajcePublishing.c" -} - - -static void -publishing_rajce_get_albums_transaction_class_init (PublishingRajceGetAlbumsTransactionClass * klass) -{ -#line 1412 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - publishing_rajce_get_albums_transaction_parent_class = g_type_class_peek_parent (klass); -#line 11082 "RajcePublishing.c" -} - - -static void -publishing_rajce_get_albums_transaction_instance_init (PublishingRajceGetAlbumsTransaction * self) -{ -} - - -/** - * Transaction used to implement the get albums interaction. - */ -GType -publishing_rajce_get_albums_transaction_get_type (void) -{ - static volatile gsize publishing_rajce_get_albums_transaction_type_id__volatile = 0; - if (g_once_init_enter (&publishing_rajce_get_albums_transaction_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (PublishingRajceGetAlbumsTransactionClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) publishing_rajce_get_albums_transaction_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PublishingRajceGetAlbumsTransaction), 0, (GInstanceInitFunc) publishing_rajce_get_albums_transaction_instance_init, NULL }; - GType publishing_rajce_get_albums_transaction_type_id; - publishing_rajce_get_albums_transaction_type_id = g_type_register_static (PUBLISHING_RAJCE_TYPE_TRANSACTION, "PublishingRajceGetAlbumsTransaction", &g_define_type_info, 0); - g_once_init_leave (&publishing_rajce_get_albums_transaction_type_id__volatile, publishing_rajce_get_albums_transaction_type_id); - } - return publishing_rajce_get_albums_transaction_type_id__volatile; -} - - -PublishingRajceCreateAlbumTransaction* -publishing_rajce_create_album_transaction_construct (GType object_type, - PublishingRajceSession* session, - const gchar* url, - const gchar* albumName, - gboolean hidden) -{ - PublishingRajceCreateAlbumTransaction* self = NULL; - PublishingRajceLiveApiRequest* req = NULL; - PublishingRajceLiveApiRequest* _tmp0_; - gchar* _tmp1_; - gchar* _tmp2_; - gchar* xml = NULL; - gchar* _tmp3_; -#line 1436 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_return_val_if_fail (PUBLISHING_RAJCE_IS_SESSION (session), NULL); -#line 1436 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_return_val_if_fail (url != NULL, NULL); -#line 1436 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_return_val_if_fail (albumName != NULL, NULL); -#line 1438 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - self = (PublishingRajceCreateAlbumTransaction*) publishing_rest_support_transaction_construct_with_endpoint_url (object_type, G_TYPE_CHECK_INSTANCE_CAST (session, PUBLISHING_REST_SUPPORT_TYPE_SESSION, PublishingRESTSupportSession), url, PUBLISHING_REST_SUPPORT_HTTP_METHOD_POST); -#line 1439 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp0_ = publishing_rajce_live_api_request_new ("createAlbum"); -#line 1439 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - req = _tmp0_; -#line 1440 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp1_ = publishing_rajce_session_get_usertoken (session); -#line 1440 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp2_ = _tmp1_; -#line 1440 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - publishing_rajce_live_api_request_AddParam (req, "token", _tmp2_); -#line 1440 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_free0 (_tmp2_); -#line 1441 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - publishing_rajce_live_api_request_AddParam (req, "albumName", albumName); -#line 1442 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - publishing_rajce_live_api_request_AddParam (req, "albumDescription", ""); -#line 1443 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - publishing_rajce_live_api_request_AddParamBool (req, "albumVisible", !hidden); -#line 1444 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp3_ = publishing_rajce_live_api_request_Params2XmlString (req, TRUE); -#line 1444 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - xml = _tmp3_; -#line 1445 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - publishing_rest_support_transaction_add_argument (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "data", xml); -#line 1436 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_free0 (xml); -#line 1436 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _publishing_rajce_live_api_request_unref0 (req); -#line 1436 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - return self; -#line 11161 "RajcePublishing.c" -} - - -PublishingRajceCreateAlbumTransaction* -publishing_rajce_create_album_transaction_new (PublishingRajceSession* session, - const gchar* url, - const gchar* albumName, - gboolean hidden) -{ -#line 1436 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - return publishing_rajce_create_album_transaction_construct (PUBLISHING_RAJCE_TYPE_CREATE_ALBUM_TRANSACTION, session, url, albumName, hidden); -#line 11173 "RajcePublishing.c" -} - - -static void -publishing_rajce_create_album_transaction_class_init (PublishingRajceCreateAlbumTransactionClass * klass) -{ -#line 1434 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - publishing_rajce_create_album_transaction_parent_class = g_type_class_peek_parent (klass); -#line 11182 "RajcePublishing.c" -} - - -static void -publishing_rajce_create_album_transaction_instance_init (PublishingRajceCreateAlbumTransaction * self) -{ -} - - -/** - * Transaction used to implement the create album interaction. - */ -GType -publishing_rajce_create_album_transaction_get_type (void) -{ - static volatile gsize publishing_rajce_create_album_transaction_type_id__volatile = 0; - if (g_once_init_enter (&publishing_rajce_create_album_transaction_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (PublishingRajceCreateAlbumTransactionClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) publishing_rajce_create_album_transaction_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PublishingRajceCreateAlbumTransaction), 0, (GInstanceInitFunc) publishing_rajce_create_album_transaction_instance_init, NULL }; - GType publishing_rajce_create_album_transaction_type_id; - publishing_rajce_create_album_transaction_type_id = g_type_register_static (PUBLISHING_RAJCE_TYPE_TRANSACTION, "PublishingRajceCreateAlbumTransaction", &g_define_type_info, 0); - g_once_init_leave (&publishing_rajce_create_album_transaction_type_id__volatile, publishing_rajce_create_album_transaction_type_id); - } - return publishing_rajce_create_album_transaction_type_id__volatile; -} - - -PublishingRajceOpenAlbumTransaction* -publishing_rajce_open_album_transaction_construct (GType object_type, - PublishingRajceSession* session, - const gchar* url, - gint albumID) -{ - PublishingRajceOpenAlbumTransaction* self = NULL; - PublishingRajceLiveApiRequest* req = NULL; - PublishingRajceLiveApiRequest* _tmp0_; - gchar* _tmp1_; - gchar* _tmp2_; - gchar* xml = NULL; - gchar* _tmp3_; -#line 1454 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_return_val_if_fail (PUBLISHING_RAJCE_IS_SESSION (session), NULL); -#line 1454 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_return_val_if_fail (url != NULL, NULL); -#line 1456 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - self = (PublishingRajceOpenAlbumTransaction*) publishing_rest_support_transaction_construct_with_endpoint_url (object_type, G_TYPE_CHECK_INSTANCE_CAST (session, PUBLISHING_REST_SUPPORT_TYPE_SESSION, PublishingRESTSupportSession), url, PUBLISHING_REST_SUPPORT_HTTP_METHOD_POST); -#line 1457 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp0_ = publishing_rajce_live_api_request_new ("openAlbum"); -#line 1457 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - req = _tmp0_; -#line 1458 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp1_ = publishing_rajce_session_get_usertoken (session); -#line 1458 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp2_ = _tmp1_; -#line 1458 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - publishing_rajce_live_api_request_AddParam (req, "token", _tmp2_); -#line 1458 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_free0 (_tmp2_); -#line 1459 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - publishing_rajce_live_api_request_AddParamInt (req, "albumID", albumID); -#line 1460 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp3_ = publishing_rajce_live_api_request_Params2XmlString (req, TRUE); -#line 1460 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - xml = _tmp3_; -#line 1461 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - publishing_rest_support_transaction_add_argument (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "data", xml); -#line 1454 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_free0 (xml); -#line 1454 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _publishing_rajce_live_api_request_unref0 (req); -#line 1454 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - return self; -#line 11254 "RajcePublishing.c" -} - - -PublishingRajceOpenAlbumTransaction* -publishing_rajce_open_album_transaction_new (PublishingRajceSession* session, - const gchar* url, - gint albumID) -{ -#line 1454 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - return publishing_rajce_open_album_transaction_construct (PUBLISHING_RAJCE_TYPE_OPEN_ALBUM_TRANSACTION, session, url, albumID); -#line 11265 "RajcePublishing.c" -} - - -static void -publishing_rajce_open_album_transaction_class_init (PublishingRajceOpenAlbumTransactionClass * klass) -{ -#line 1452 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - publishing_rajce_open_album_transaction_parent_class = g_type_class_peek_parent (klass); -#line 11274 "RajcePublishing.c" -} - - -static void -publishing_rajce_open_album_transaction_instance_init (PublishingRajceOpenAlbumTransaction * self) -{ -} - - -/** - * Transaction used to implement the open album interaction. - */ -GType -publishing_rajce_open_album_transaction_get_type (void) -{ - static volatile gsize publishing_rajce_open_album_transaction_type_id__volatile = 0; - if (g_once_init_enter (&publishing_rajce_open_album_transaction_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (PublishingRajceOpenAlbumTransactionClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) publishing_rajce_open_album_transaction_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PublishingRajceOpenAlbumTransaction), 0, (GInstanceInitFunc) publishing_rajce_open_album_transaction_instance_init, NULL }; - GType publishing_rajce_open_album_transaction_type_id; - publishing_rajce_open_album_transaction_type_id = g_type_register_static (PUBLISHING_RAJCE_TYPE_TRANSACTION, "PublishingRajceOpenAlbumTransaction", &g_define_type_info, 0); - g_once_init_leave (&publishing_rajce_open_album_transaction_type_id__volatile, publishing_rajce_open_album_transaction_type_id); - } - return publishing_rajce_open_album_transaction_type_id__volatile; -} - - -PublishingRajceGetAlbumUrlTransaction* -publishing_rajce_get_album_url_transaction_construct (GType object_type, - PublishingRajceSession* session, - const gchar* url) -{ - PublishingRajceGetAlbumUrlTransaction* self = NULL; - PublishingRajceLiveApiRequest* req = NULL; - PublishingRajceLiveApiRequest* _tmp0_; - gchar* _tmp1_; - gchar* _tmp2_; - gchar* _tmp3_; - gchar* _tmp4_; - gchar* xml = NULL; - gchar* _tmp5_; -#line 1470 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_return_val_if_fail (PUBLISHING_RAJCE_IS_SESSION (session), NULL); -#line 1470 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_return_val_if_fail (url != NULL, NULL); -#line 1472 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - self = (PublishingRajceGetAlbumUrlTransaction*) publishing_rest_support_transaction_construct_with_endpoint_url (object_type, G_TYPE_CHECK_INSTANCE_CAST (session, PUBLISHING_REST_SUPPORT_TYPE_SESSION, PublishingRESTSupportSession), url, PUBLISHING_REST_SUPPORT_HTTP_METHOD_POST); -#line 1473 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp0_ = publishing_rajce_live_api_request_new ("getAlbumUrl"); -#line 1473 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - req = _tmp0_; -#line 1474 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp1_ = publishing_rajce_session_get_usertoken (session); -#line 1474 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp2_ = _tmp1_; -#line 1474 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - publishing_rajce_live_api_request_AddParam (req, "token", _tmp2_); -#line 1474 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_free0 (_tmp2_); -#line 1475 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp3_ = publishing_rajce_session_get_albumtoken (session); -#line 1475 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp4_ = _tmp3_; -#line 1475 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - publishing_rajce_live_api_request_AddParam (req, "albumToken", _tmp4_); -#line 1475 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_free0 (_tmp4_); -#line 1476 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp5_ = publishing_rajce_live_api_request_Params2XmlString (req, TRUE); -#line 1476 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - xml = _tmp5_; -#line 1477 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - publishing_rest_support_transaction_add_argument (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "data", xml); -#line 1470 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_free0 (xml); -#line 1470 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _publishing_rajce_live_api_request_unref0 (req); -#line 1470 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - return self; -#line 11353 "RajcePublishing.c" -} - - -PublishingRajceGetAlbumUrlTransaction* -publishing_rajce_get_album_url_transaction_new (PublishingRajceSession* session, - const gchar* url) -{ -#line 1470 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - return publishing_rajce_get_album_url_transaction_construct (PUBLISHING_RAJCE_TYPE_GET_ALBUM_URL_TRANSACTION, session, url); -#line 11363 "RajcePublishing.c" -} - - -static void -publishing_rajce_get_album_url_transaction_class_init (PublishingRajceGetAlbumUrlTransactionClass * klass) -{ -#line 1468 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - publishing_rajce_get_album_url_transaction_parent_class = g_type_class_peek_parent (klass); -#line 11372 "RajcePublishing.c" -} - - -static void -publishing_rajce_get_album_url_transaction_instance_init (PublishingRajceGetAlbumUrlTransaction * self) -{ -} - - -/** - * Transaction used to implement the close album interaction. - */ -GType -publishing_rajce_get_album_url_transaction_get_type (void) -{ - static volatile gsize publishing_rajce_get_album_url_transaction_type_id__volatile = 0; - if (g_once_init_enter (&publishing_rajce_get_album_url_transaction_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (PublishingRajceGetAlbumUrlTransactionClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) publishing_rajce_get_album_url_transaction_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PublishingRajceGetAlbumUrlTransaction), 0, (GInstanceInitFunc) publishing_rajce_get_album_url_transaction_instance_init, NULL }; - GType publishing_rajce_get_album_url_transaction_type_id; - publishing_rajce_get_album_url_transaction_type_id = g_type_register_static (PUBLISHING_RAJCE_TYPE_TRANSACTION, "PublishingRajceGetAlbumUrlTransaction", &g_define_type_info, 0); - g_once_init_leave (&publishing_rajce_get_album_url_transaction_type_id__volatile, publishing_rajce_get_album_url_transaction_type_id); - } - return publishing_rajce_get_album_url_transaction_type_id__volatile; -} - - -PublishingRajceCloseAlbumTransaction* -publishing_rajce_close_album_transaction_construct (GType object_type, - PublishingRajceSession* session, - const gchar* url) -{ - PublishingRajceCloseAlbumTransaction* self = NULL; - PublishingRajceLiveApiRequest* req = NULL; - PublishingRajceLiveApiRequest* _tmp0_; - gchar* _tmp1_; - gchar* _tmp2_; - gchar* _tmp3_; - gchar* _tmp4_; - gchar* xml = NULL; - gchar* _tmp5_; -#line 1486 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_return_val_if_fail (PUBLISHING_RAJCE_IS_SESSION (session), NULL); -#line 1486 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_return_val_if_fail (url != NULL, NULL); -#line 1488 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - self = (PublishingRajceCloseAlbumTransaction*) publishing_rest_support_transaction_construct_with_endpoint_url (object_type, G_TYPE_CHECK_INSTANCE_CAST (session, PUBLISHING_REST_SUPPORT_TYPE_SESSION, PublishingRESTSupportSession), url, PUBLISHING_REST_SUPPORT_HTTP_METHOD_POST); -#line 1489 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp0_ = publishing_rajce_live_api_request_new ("closeAlbum"); -#line 1489 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - req = _tmp0_; -#line 1490 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp1_ = publishing_rajce_session_get_usertoken (session); -#line 1490 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp2_ = _tmp1_; -#line 1490 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - publishing_rajce_live_api_request_AddParam (req, "token", _tmp2_); -#line 1490 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_free0 (_tmp2_); -#line 1491 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp3_ = publishing_rajce_session_get_albumtoken (session); -#line 1491 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp4_ = _tmp3_; -#line 1491 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - publishing_rajce_live_api_request_AddParam (req, "albumToken", _tmp4_); -#line 1491 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_free0 (_tmp4_); -#line 1492 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp5_ = publishing_rajce_live_api_request_Params2XmlString (req, TRUE); -#line 1492 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - xml = _tmp5_; -#line 1493 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - publishing_rest_support_transaction_add_argument (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "data", xml); -#line 1486 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_free0 (xml); -#line 1486 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _publishing_rajce_live_api_request_unref0 (req); -#line 1486 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - return self; -#line 11451 "RajcePublishing.c" -} - - -PublishingRajceCloseAlbumTransaction* -publishing_rajce_close_album_transaction_new (PublishingRajceSession* session, - const gchar* url) -{ -#line 1486 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - return publishing_rajce_close_album_transaction_construct (PUBLISHING_RAJCE_TYPE_CLOSE_ALBUM_TRANSACTION, session, url); -#line 11461 "RajcePublishing.c" -} - - -static void -publishing_rajce_close_album_transaction_class_init (PublishingRajceCloseAlbumTransactionClass * klass) -{ -#line 1484 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - publishing_rajce_close_album_transaction_parent_class = g_type_class_peek_parent (klass); -#line 11470 "RajcePublishing.c" -} - - -static void -publishing_rajce_close_album_transaction_instance_init (PublishingRajceCloseAlbumTransaction * self) -{ -} - - -/** - * Transaction used to implement the close album interaction. - */ -GType -publishing_rajce_close_album_transaction_get_type (void) -{ - static volatile gsize publishing_rajce_close_album_transaction_type_id__volatile = 0; - if (g_once_init_enter (&publishing_rajce_close_album_transaction_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (PublishingRajceCloseAlbumTransactionClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) publishing_rajce_close_album_transaction_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PublishingRajceCloseAlbumTransaction), 0, (GInstanceInitFunc) publishing_rajce_close_album_transaction_instance_init, NULL }; - GType publishing_rajce_close_album_transaction_type_id; - publishing_rajce_close_album_transaction_type_id = g_type_register_static (PUBLISHING_RAJCE_TYPE_TRANSACTION, "PublishingRajceCloseAlbumTransaction", &g_define_type_info, 0); - g_once_init_leave (&publishing_rajce_close_album_transaction_type_id__volatile, publishing_rajce_close_album_transaction_type_id); - } - return publishing_rajce_close_album_transaction_type_id__volatile; -} - - -PublishingRajceGetCategoriesTransaction* -publishing_rajce_get_categories_transaction_construct (GType object_type, - PublishingRajceSession* session, - const gchar* url) -{ - PublishingRajceGetCategoriesTransaction* self = NULL; - PublishingRajceLiveApiRequest* req = NULL; - PublishingRajceLiveApiRequest* _tmp0_; - gchar* _tmp1_; - gchar* _tmp2_; - gchar* xml = NULL; - gchar* _tmp3_; -#line 1502 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_return_val_if_fail (PUBLISHING_RAJCE_IS_SESSION (session), NULL); -#line 1502 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_return_val_if_fail (url != NULL, NULL); -#line 1504 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - self = (PublishingRajceGetCategoriesTransaction*) publishing_rest_support_transaction_construct_with_endpoint_url (object_type, G_TYPE_CHECK_INSTANCE_CAST (session, PUBLISHING_REST_SUPPORT_TYPE_SESSION, PublishingRESTSupportSession), url, PUBLISHING_REST_SUPPORT_HTTP_METHOD_POST); -#line 1505 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp0_ = publishing_rajce_live_api_request_new ("getCategories"); -#line 1505 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - req = _tmp0_; -#line 1506 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp1_ = publishing_rajce_session_get_usertoken (session); -#line 1506 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp2_ = _tmp1_; -#line 1506 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - publishing_rajce_live_api_request_AddParam (req, "token", _tmp2_); -#line 1506 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_free0 (_tmp2_); -#line 1507 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp3_ = publishing_rajce_live_api_request_Params2XmlString (req, TRUE); -#line 1507 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - xml = _tmp3_; -#line 1508 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - publishing_rest_support_transaction_add_argument (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "data", xml); -#line 1502 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_free0 (xml); -#line 1502 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _publishing_rajce_live_api_request_unref0 (req); -#line 1502 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - return self; -#line 11539 "RajcePublishing.c" -} - - -PublishingRajceGetCategoriesTransaction* -publishing_rajce_get_categories_transaction_new (PublishingRajceSession* session, - const gchar* url) -{ -#line 1502 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - return publishing_rajce_get_categories_transaction_construct (PUBLISHING_RAJCE_TYPE_GET_CATEGORIES_TRANSACTION, session, url); -#line 11549 "RajcePublishing.c" -} - - -static void -publishing_rajce_get_categories_transaction_class_init (PublishingRajceGetCategoriesTransactionClass * klass) -{ -#line 1500 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - publishing_rajce_get_categories_transaction_parent_class = g_type_class_peek_parent (klass); -#line 11558 "RajcePublishing.c" -} - - -static void -publishing_rajce_get_categories_transaction_instance_init (PublishingRajceGetCategoriesTransaction * self) -{ -} - - -/** - * Transaction used to implement the get categories interaction. - */ -GType -publishing_rajce_get_categories_transaction_get_type (void) -{ - static volatile gsize publishing_rajce_get_categories_transaction_type_id__volatile = 0; - if (g_once_init_enter (&publishing_rajce_get_categories_transaction_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (PublishingRajceGetCategoriesTransactionClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) publishing_rajce_get_categories_transaction_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PublishingRajceGetCategoriesTransaction), 0, (GInstanceInitFunc) publishing_rajce_get_categories_transaction_instance_init, NULL }; - GType publishing_rajce_get_categories_transaction_type_id; - publishing_rajce_get_categories_transaction_type_id = g_type_register_static (PUBLISHING_RAJCE_TYPE_TRANSACTION, "PublishingRajceGetCategoriesTransaction", &g_define_type_info, 0); - g_once_init_leave (&publishing_rajce_get_categories_transaction_type_id__volatile, publishing_rajce_get_categories_transaction_type_id); - } - return publishing_rajce_get_categories_transaction_type_id__volatile; -} - - -static void -_g_free0_ (gpointer var) -{ -#line 1544 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - var = (g_free (var), NULL); -#line 11590 "RajcePublishing.c" -} - - -PublishingRajceAddPhotoTransaction* -publishing_rajce_add_photo_transaction_construct (GType object_type, - PublishingRajceSession* session, - const gchar* url, - PublishingRajcePublishingParameters* parameters, - SpitPublishingPublishable* publishable) -{ - PublishingRajceAddPhotoTransaction* self = NULL; - PublishingRajcePublishingParameters* _tmp0_; - const gchar* _tmp1_ = NULL; - gint* _tmp2_; - GFile* _tmp3_; - GFile* _tmp4_; - gchar* _tmp5_; - gchar* _tmp6_; - const gchar* _tmp7_; - gchar* basename = NULL; - gchar* _tmp8_; - gchar* comment = NULL; - gchar* _tmp9_; - gchar* pubname = NULL; - gchar* _tmp10_; - gint width = 0; - gint height = 0; - PublishingRajceLiveApiRequest* req = NULL; - PublishingRajceLiveApiRequest* _tmp11_; - PublishingRajceLiveApiRequest* _tmp12_; - gchar* _tmp13_; - gchar* _tmp14_; - PublishingRajceLiveApiRequest* _tmp15_; - gint _tmp16_; - PublishingRajceLiveApiRequest* _tmp17_; - gint _tmp18_; - PublishingRajceLiveApiRequest* _tmp19_; - gchar* _tmp20_; - gchar* _tmp21_; - PublishingRajceLiveApiRequest* _tmp22_; - const gchar* _tmp23_; - PublishingRajceLiveApiRequest* _tmp24_; - const gchar* _tmp25_; - const gchar* _tmp26_ = NULL; - const gchar* _tmp27_; - PublishingRajceLiveApiRequest* _tmp29_; - gchar* xml = NULL; - PublishingRajceLiveApiRequest* _tmp30_; - gchar* _tmp31_; - GHashTable* disposition_table = NULL; - GHashFunc _tmp32_; - GEqualFunc _tmp33_; - GHashTable* _tmp34_; - gchar* _tmp35_; - gchar* _tmp36_; - gchar* _tmp37_; - const gchar* _tmp38_; - gchar* _tmp39_; -#line 1519 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_return_val_if_fail (PUBLISHING_RAJCE_IS_SESSION (session), NULL); -#line 1519 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_return_val_if_fail (url != NULL, NULL); -#line 1519 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_return_val_if_fail (PUBLISHING_RAJCE_IS_PUBLISHING_PARAMETERS (parameters), NULL); -#line 1519 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_return_val_if_fail (SPIT_PUBLISHING_IS_PUBLISHABLE (publishable), NULL); -#line 1521 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - self = (PublishingRajceAddPhotoTransaction*) publishing_rest_support_upload_transaction_construct_with_endpoint_url (object_type, G_TYPE_CHECK_INSTANCE_CAST (session, PUBLISHING_REST_SUPPORT_TYPE_SESSION, PublishingRESTSupportSession), publishable, url); -#line 1522 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp0_ = _publishing_rajce_publishing_parameters_ref0 (parameters); -#line 1522 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _publishing_rajce_publishing_parameters_unref0 (self->priv->parameters); -#line 1522 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - self->priv->parameters = _tmp0_; -#line 1524 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp2_ = parameters->album_id; -#line 1524 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - if ((*_tmp2_) > 0) { -#line 1524 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp1_ = ""; -#line 11671 "RajcePublishing.c" - } else { -#line 1524 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp1_ = " new"; -#line 11675 "RajcePublishing.c" - } -#line 1524 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp3_ = spit_publishing_publishable_get_serialized_file (publishable); -#line 1524 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp4_ = _tmp3_; -#line 1524 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp5_ = g_file_get_basename (_tmp4_); -#line 1524 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp6_ = _tmp5_; -#line 1524 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp7_ = parameters->album_name; -#line 1524 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_debug ("RajcePublishing.vala:1524: RajcePlugin: Uploading photo %s to%s album " \ -"%s", _tmp6_, _tmp1_, _tmp7_); -#line 1524 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_free0 (_tmp6_); -#line 1524 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_object_unref0 (_tmp4_); -#line 1526 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp8_ = spit_publishing_publishable_get_param_string (publishable, SPIT_PUBLISHING_PUBLISHABLE_PARAM_STRING_BASENAME); -#line 1526 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - basename = _tmp8_; -#line 1527 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp9_ = spit_publishing_publishable_get_param_string (publishable, SPIT_PUBLISHING_PUBLISHABLE_PARAM_STRING_COMMENT); -#line 1527 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - comment = _tmp9_; -#line 1528 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp10_ = spit_publishing_publishable_get_publishing_name (publishable); -#line 1528 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - pubname = _tmp10_; -#line 1530 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - width = publishing_rajce_session_get_maxsize (session); -#line 1531 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - height = publishing_rajce_session_get_maxsize (session); -#line 1533 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp11_ = publishing_rajce_live_api_request_new ("addPhoto"); -#line 1533 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - req = _tmp11_; -#line 1534 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp12_ = req; -#line 1534 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp13_ = publishing_rajce_session_get_usertoken (session); -#line 1534 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp14_ = _tmp13_; -#line 1534 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - publishing_rajce_live_api_request_AddParam (_tmp12_, "token", _tmp14_); -#line 1534 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_free0 (_tmp14_); -#line 1535 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp15_ = req; -#line 1535 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp16_ = width; -#line 1535 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - publishing_rajce_live_api_request_AddParamInt (_tmp15_, "width", _tmp16_); -#line 1536 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp17_ = req; -#line 1536 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp18_ = height; -#line 1536 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - publishing_rajce_live_api_request_AddParamInt (_tmp17_, "height", _tmp18_); -#line 1537 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp19_ = req; -#line 1537 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp20_ = publishing_rajce_session_get_albumtoken (session); -#line 1537 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp21_ = _tmp20_; -#line 1537 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - publishing_rajce_live_api_request_AddParam (_tmp19_, "albumToken", _tmp21_); -#line 1537 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_free0 (_tmp21_); -#line 1538 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp22_ = req; -#line 1538 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp23_ = pubname; -#line 1538 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - publishing_rajce_live_api_request_AddParam (_tmp22_, "photoName", _tmp23_); -#line 1539 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp24_ = req; -#line 1539 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp25_ = basename; -#line 1539 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - publishing_rajce_live_api_request_AddParam (_tmp24_, "fullFileName", _tmp25_); -#line 1540 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp27_ = comment; -#line 1540 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - if (_tmp27_ != NULL) { -#line 11761 "RajcePublishing.c" - const gchar* _tmp28_; -#line 1540 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp28_ = comment; -#line 1540 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp26_ = _tmp28_; -#line 11767 "RajcePublishing.c" - } else { -#line 1540 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp26_ = ""; -#line 11771 "RajcePublishing.c" - } -#line 1540 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp29_ = req; -#line 1540 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - publishing_rajce_live_api_request_AddParam (_tmp29_, "description", _tmp26_); -#line 1541 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp30_ = req; -#line 1541 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp31_ = publishing_rajce_live_api_request_Params2XmlString (_tmp30_, FALSE); -#line 1541 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - xml = _tmp31_; -#line 1542 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - publishing_rest_support_transaction_add_argument (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "data", xml); -#line 1544 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp32_ = g_str_hash; -#line 1544 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp33_ = g_str_equal; -#line 1544 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp34_ = g_hash_table_new_full (_tmp32_, _tmp33_, _g_free0_, _g_free0_); -#line 1544 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - disposition_table = _tmp34_; -#line 1545 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp35_ = g_strdup ("name"); -#line 1545 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp36_ = g_strdup ("photo"); -#line 1545 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_hash_table_insert (disposition_table, _tmp35_, _tmp36_); -#line 1546 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp37_ = g_strdup ("filename"); -#line 1546 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp38_ = basename; -#line 1546 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp39_ = soup_uri_encode (_tmp38_, NULL); -#line 1546 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_hash_table_insert (disposition_table, _tmp37_, _tmp39_); -#line 1547 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - publishing_rest_support_upload_transaction_set_binary_disposition_table (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_UPLOAD_TRANSACTION, PublishingRESTSupportUploadTransaction), disposition_table); -#line 1519 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_hash_table_unref0 (disposition_table); -#line 1519 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_free0 (xml); -#line 1519 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _publishing_rajce_live_api_request_unref0 (req); -#line 1519 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_free0 (pubname); -#line 1519 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_free0 (comment); -#line 1519 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_free0 (basename); -#line 1519 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - return self; -#line 11823 "RajcePublishing.c" -} - - -PublishingRajceAddPhotoTransaction* -publishing_rajce_add_photo_transaction_new (PublishingRajceSession* session, - const gchar* url, - PublishingRajcePublishingParameters* parameters, - SpitPublishingPublishable* publishable) -{ -#line 1519 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - return publishing_rajce_add_photo_transaction_construct (PUBLISHING_RAJCE_TYPE_ADD_PHOTO_TRANSACTION, session, url, parameters, publishable); -#line 11835 "RajcePublishing.c" -} - - -static void -publishing_rajce_add_photo_transaction_class_init (PublishingRajceAddPhotoTransactionClass * klass) -{ -#line 1515 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - publishing_rajce_add_photo_transaction_parent_class = g_type_class_peek_parent (klass); -#line 1515 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - ((PublishingRESTSupportTransactionClass *) klass)->finalize = publishing_rajce_add_photo_transaction_finalize; -#line 1515 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_type_class_add_private (klass, sizeof (PublishingRajceAddPhotoTransactionPrivate)); -#line 11848 "RajcePublishing.c" -} - - -static void -publishing_rajce_add_photo_transaction_instance_init (PublishingRajceAddPhotoTransaction * self) -{ -#line 1515 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - self->priv = PUBLISHING_RAJCE_ADD_PHOTO_TRANSACTION_GET_PRIVATE (self); -#line 1517 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - self->priv->parameters = NULL; -#line 11859 "RajcePublishing.c" -} - - -static void -publishing_rajce_add_photo_transaction_finalize (PublishingRESTSupportTransaction * obj) -{ - PublishingRajceAddPhotoTransaction * self; -#line 1515 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, PUBLISHING_RAJCE_TYPE_ADD_PHOTO_TRANSACTION, PublishingRajceAddPhotoTransaction); -#line 1517 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _publishing_rajce_publishing_parameters_unref0 (self->priv->parameters); -#line 1515 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - PUBLISHING_REST_SUPPORT_TRANSACTION_CLASS (publishing_rajce_add_photo_transaction_parent_class)->finalize (obj); -#line 11873 "RajcePublishing.c" -} - - -/** - * Transaction used to implement the upload photo. - */ -GType -publishing_rajce_add_photo_transaction_get_type (void) -{ - static volatile gsize publishing_rajce_add_photo_transaction_type_id__volatile = 0; - if (g_once_init_enter (&publishing_rajce_add_photo_transaction_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (PublishingRajceAddPhotoTransactionClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) publishing_rajce_add_photo_transaction_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PublishingRajceAddPhotoTransaction), 0, (GInstanceInitFunc) publishing_rajce_add_photo_transaction_instance_init, NULL }; - GType publishing_rajce_add_photo_transaction_type_id; - publishing_rajce_add_photo_transaction_type_id = g_type_register_static (PUBLISHING_REST_SUPPORT_TYPE_UPLOAD_TRANSACTION, "PublishingRajceAddPhotoTransaction", &g_define_type_info, 0); - g_once_init_leave (&publishing_rajce_add_photo_transaction_type_id__volatile, publishing_rajce_add_photo_transaction_type_id); - } - return publishing_rajce_add_photo_transaction_type_id__volatile; -} - - -static void -_vala_array_destroy (gpointer array, - gint array_length, - GDestroyNotify destroy_func) -{ - if ((array != NULL) && (destroy_func != NULL)) { - int i; - for (i = 0; i < array_length; i = i + 1) { - if (((gpointer*) array)[i] != NULL) { - destroy_func (((gpointer*) array)[i]); - } - } - } -} - - -static void -_vala_array_free (gpointer array, - gint array_length, - GDestroyNotify destroy_func) -{ - _vala_array_destroy (array, array_length, destroy_func); - g_free (array); -} - - - diff --git a/plugins/shotwell-publishing-extras/YandexPublishing.c b/plugins/shotwell-publishing-extras/YandexPublishing.c deleted file mode 100644 index 8a81c99..0000000 --- a/plugins/shotwell-publishing-extras/YandexPublishing.c +++ /dev/null @@ -1,5214 +0,0 @@ -/* YandexPublishing.c generated by valac 0.40.4, the Vala compiler - * generated from YandexPublishing.vala, do not modify */ - -/* Copyright 2010+ Evgeniy Polyakov - * - * This software is licensed under the GNU LGPL (version 2.1 or later). - * See the COPYING file in this distribution. - */ - - -#include -#include -#include -#include -#include -#include -#include "shotwell-plugin-common.h" -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include - - -#define TYPE_YANDEX_SERVICE (yandex_service_get_type ()) -#define YANDEX_SERVICE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_YANDEX_SERVICE, YandexService)) -#define YANDEX_SERVICE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_YANDEX_SERVICE, YandexServiceClass)) -#define IS_YANDEX_SERVICE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_YANDEX_SERVICE)) -#define IS_YANDEX_SERVICE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_YANDEX_SERVICE)) -#define YANDEX_SERVICE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_YANDEX_SERVICE, YandexServiceClass)) - -typedef struct _YandexService YandexService; -typedef struct _YandexServiceClass YandexServiceClass; -typedef struct _YandexServicePrivate YandexServicePrivate; -enum { - YANDEX_SERVICE_0_PROPERTY, - YANDEX_SERVICE_NUM_PROPERTIES -}; -static GParamSpec* yandex_service_properties[YANDEX_SERVICE_NUM_PROPERTIES]; -#define _g_free0(var) (var = (g_free (var), NULL)) - -#define PUBLISHING_YANDEX_TYPE_YANDEX_PUBLISHER (publishing_yandex_yandex_publisher_get_type ()) -#define PUBLISHING_YANDEX_YANDEX_PUBLISHER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_YANDEX_TYPE_YANDEX_PUBLISHER, PublishingYandexYandexPublisher)) -#define PUBLISHING_YANDEX_YANDEX_PUBLISHER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_YANDEX_TYPE_YANDEX_PUBLISHER, PublishingYandexYandexPublisherClass)) -#define PUBLISHING_YANDEX_IS_YANDEX_PUBLISHER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_YANDEX_TYPE_YANDEX_PUBLISHER)) -#define PUBLISHING_YANDEX_IS_YANDEX_PUBLISHER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_YANDEX_TYPE_YANDEX_PUBLISHER)) -#define PUBLISHING_YANDEX_YANDEX_PUBLISHER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_YANDEX_TYPE_YANDEX_PUBLISHER, PublishingYandexYandexPublisherClass)) - -typedef struct _PublishingYandexYandexPublisher PublishingYandexYandexPublisher; -typedef struct _PublishingYandexYandexPublisherClass PublishingYandexYandexPublisherClass; - -#define PUBLISHING_YANDEX_TYPE_TRANSACTION (publishing_yandex_transaction_get_type ()) -#define PUBLISHING_YANDEX_TRANSACTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_YANDEX_TYPE_TRANSACTION, PublishingYandexTransaction)) -#define PUBLISHING_YANDEX_TRANSACTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_YANDEX_TYPE_TRANSACTION, PublishingYandexTransactionClass)) -#define PUBLISHING_YANDEX_IS_TRANSACTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_YANDEX_TYPE_TRANSACTION)) -#define PUBLISHING_YANDEX_IS_TRANSACTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_YANDEX_TYPE_TRANSACTION)) -#define PUBLISHING_YANDEX_TRANSACTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_YANDEX_TYPE_TRANSACTION, PublishingYandexTransactionClass)) - -typedef struct _PublishingYandexTransaction PublishingYandexTransaction; -typedef struct _PublishingYandexTransactionClass PublishingYandexTransactionClass; -typedef struct _PublishingYandexTransactionPrivate PublishingYandexTransactionPrivate; - -#define PUBLISHING_YANDEX_TYPE_SESSION (publishing_yandex_session_get_type ()) -#define PUBLISHING_YANDEX_SESSION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_YANDEX_TYPE_SESSION, PublishingYandexSession)) -#define PUBLISHING_YANDEX_SESSION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_YANDEX_TYPE_SESSION, PublishingYandexSessionClass)) -#define PUBLISHING_YANDEX_IS_SESSION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_YANDEX_TYPE_SESSION)) -#define PUBLISHING_YANDEX_IS_SESSION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_YANDEX_TYPE_SESSION)) -#define PUBLISHING_YANDEX_SESSION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_YANDEX_TYPE_SESSION, PublishingYandexSessionClass)) - -typedef struct _PublishingYandexSession PublishingYandexSession; -typedef struct _PublishingYandexSessionClass PublishingYandexSessionClass; -#define _publishing_rest_support_session_unref0(var) ((var == NULL) ? NULL : (var = (publishing_rest_support_session_unref (var), NULL))) -typedef struct _PublishingYandexSessionPrivate PublishingYandexSessionPrivate; - -#define PUBLISHING_YANDEX_TYPE_WEB_AUTH_PANE (publishing_yandex_web_auth_pane_get_type ()) -#define PUBLISHING_YANDEX_WEB_AUTH_PANE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_YANDEX_TYPE_WEB_AUTH_PANE, PublishingYandexWebAuthPane)) -#define PUBLISHING_YANDEX_WEB_AUTH_PANE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_YANDEX_TYPE_WEB_AUTH_PANE, PublishingYandexWebAuthPaneClass)) -#define PUBLISHING_YANDEX_IS_WEB_AUTH_PANE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_YANDEX_TYPE_WEB_AUTH_PANE)) -#define PUBLISHING_YANDEX_IS_WEB_AUTH_PANE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_YANDEX_TYPE_WEB_AUTH_PANE)) -#define PUBLISHING_YANDEX_WEB_AUTH_PANE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_YANDEX_TYPE_WEB_AUTH_PANE, PublishingYandexWebAuthPaneClass)) - -typedef struct _PublishingYandexWebAuthPane PublishingYandexWebAuthPane; -typedef struct _PublishingYandexWebAuthPaneClass PublishingYandexWebAuthPaneClass; -typedef struct _PublishingYandexWebAuthPanePrivate PublishingYandexWebAuthPanePrivate; -enum { - PUBLISHING_YANDEX_WEB_AUTH_PANE_0_PROPERTY, - PUBLISHING_YANDEX_WEB_AUTH_PANE_NUM_PROPERTIES -}; -static GParamSpec* publishing_yandex_web_auth_pane_properties[PUBLISHING_YANDEX_WEB_AUTH_PANE_NUM_PROPERTIES]; -#define _g_regex_unref0(var) ((var == NULL) ? NULL : (var = (g_regex_unref (var), NULL))) -#define _g_error_free0(var) ((var == NULL) ? NULL : (var = (g_error_free (var), NULL))) -#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL))) -#define _g_match_info_unref0(var) ((var == NULL) ? NULL : (var = (g_match_info_unref (var), NULL))) -#define __vala_WebKitNavigationAction_free0(var) ((var == NULL) ? NULL : (var = (_vala_WebKitNavigationAction_free (var), NULL))) -enum { - PUBLISHING_YANDEX_WEB_AUTH_PANE_LOGIN_SUCCEEDED_SIGNAL, - PUBLISHING_YANDEX_WEB_AUTH_PANE_LOGIN_FAILED_SIGNAL, - PUBLISHING_YANDEX_WEB_AUTH_PANE_NUM_SIGNALS -}; -static guint publishing_yandex_web_auth_pane_signals[PUBLISHING_YANDEX_WEB_AUTH_PANE_NUM_SIGNALS] = {0}; - -#define PUBLISHING_YANDEX_TYPE_PUBLISH_OPTIONS (publishing_yandex_publish_options_get_type ()) -#define PUBLISHING_YANDEX_PUBLISH_OPTIONS(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_YANDEX_TYPE_PUBLISH_OPTIONS, PublishingYandexPublishOptions)) -#define PUBLISHING_YANDEX_PUBLISH_OPTIONS_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_YANDEX_TYPE_PUBLISH_OPTIONS, PublishingYandexPublishOptionsClass)) -#define PUBLISHING_YANDEX_IS_PUBLISH_OPTIONS(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_YANDEX_TYPE_PUBLISH_OPTIONS)) -#define PUBLISHING_YANDEX_IS_PUBLISH_OPTIONS_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_YANDEX_TYPE_PUBLISH_OPTIONS)) -#define PUBLISHING_YANDEX_PUBLISH_OPTIONS_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_YANDEX_TYPE_PUBLISH_OPTIONS, PublishingYandexPublishOptionsClass)) - -typedef struct _PublishingYandexPublishOptions PublishingYandexPublishOptions; -typedef struct _PublishingYandexPublishOptionsClass PublishingYandexPublishOptionsClass; -typedef struct _PublishingYandexPublishOptionsPrivate PublishingYandexPublishOptionsPrivate; -typedef struct _PublishingYandexParamSpecPublishOptions PublishingYandexParamSpecPublishOptions; - -#define PUBLISHING_YANDEX_TYPE_PUBLISHING_OPTIONS_PANE (publishing_yandex_publishing_options_pane_get_type ()) -#define PUBLISHING_YANDEX_PUBLISHING_OPTIONS_PANE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_YANDEX_TYPE_PUBLISHING_OPTIONS_PANE, PublishingYandexPublishingOptionsPane)) -#define PUBLISHING_YANDEX_PUBLISHING_OPTIONS_PANE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_YANDEX_TYPE_PUBLISHING_OPTIONS_PANE, PublishingYandexPublishingOptionsPaneClass)) -#define PUBLISHING_YANDEX_IS_PUBLISHING_OPTIONS_PANE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_YANDEX_TYPE_PUBLISHING_OPTIONS_PANE)) -#define PUBLISHING_YANDEX_IS_PUBLISHING_OPTIONS_PANE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_YANDEX_TYPE_PUBLISHING_OPTIONS_PANE)) -#define PUBLISHING_YANDEX_PUBLISHING_OPTIONS_PANE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_YANDEX_TYPE_PUBLISHING_OPTIONS_PANE, PublishingYandexPublishingOptionsPaneClass)) - -typedef struct _PublishingYandexPublishingOptionsPane PublishingYandexPublishingOptionsPane; -typedef struct _PublishingYandexPublishingOptionsPaneClass PublishingYandexPublishingOptionsPaneClass; -typedef struct _PublishingYandexPublishingOptionsPanePrivate PublishingYandexPublishingOptionsPanePrivate; -enum { - PUBLISHING_YANDEX_PUBLISHING_OPTIONS_PANE_0_PROPERTY, - PUBLISHING_YANDEX_PUBLISHING_OPTIONS_PANE_NUM_PROPERTIES -}; -static GParamSpec* publishing_yandex_publishing_options_pane_properties[PUBLISHING_YANDEX_PUBLISHING_OPTIONS_PANE_NUM_PROPERTIES]; -enum { - PUBLISHING_YANDEX_PUBLISHING_OPTIONS_PANE_PUBLISH_SIGNAL, - PUBLISHING_YANDEX_PUBLISHING_OPTIONS_PANE_LOGOUT_SIGNAL, - PUBLISHING_YANDEX_PUBLISHING_OPTIONS_PANE_NUM_SIGNALS -}; -static guint publishing_yandex_publishing_options_pane_signals[PUBLISHING_YANDEX_PUBLISHING_OPTIONS_PANE_NUM_SIGNALS] = {0}; - -#define PUBLISHING_YANDEX_TYPE_UPLOADER (publishing_yandex_uploader_get_type ()) -#define PUBLISHING_YANDEX_UPLOADER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_YANDEX_TYPE_UPLOADER, PublishingYandexUploader)) -#define PUBLISHING_YANDEX_UPLOADER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_YANDEX_TYPE_UPLOADER, PublishingYandexUploaderClass)) -#define PUBLISHING_YANDEX_IS_UPLOADER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_YANDEX_TYPE_UPLOADER)) -#define PUBLISHING_YANDEX_IS_UPLOADER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_YANDEX_TYPE_UPLOADER)) -#define PUBLISHING_YANDEX_UPLOADER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_YANDEX_TYPE_UPLOADER, PublishingYandexUploaderClass)) - -typedef struct _PublishingYandexUploader PublishingYandexUploader; -typedef struct _PublishingYandexUploaderClass PublishingYandexUploaderClass; -typedef struct _PublishingYandexUploaderPrivate PublishingYandexUploaderPrivate; - -#define PUBLISHING_YANDEX_TYPE_UPLOAD_TRANSACTION (publishing_yandex_upload_transaction_get_type ()) -#define PUBLISHING_YANDEX_UPLOAD_TRANSACTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_YANDEX_TYPE_UPLOAD_TRANSACTION, PublishingYandexUploadTransaction)) -#define PUBLISHING_YANDEX_UPLOAD_TRANSACTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_YANDEX_TYPE_UPLOAD_TRANSACTION, PublishingYandexUploadTransactionClass)) -#define PUBLISHING_YANDEX_IS_UPLOAD_TRANSACTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_YANDEX_TYPE_UPLOAD_TRANSACTION)) -#define PUBLISHING_YANDEX_IS_UPLOAD_TRANSACTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_YANDEX_TYPE_UPLOAD_TRANSACTION)) -#define PUBLISHING_YANDEX_UPLOAD_TRANSACTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_YANDEX_TYPE_UPLOAD_TRANSACTION, PublishingYandexUploadTransactionClass)) - -typedef struct _PublishingYandexUploadTransaction PublishingYandexUploadTransaction; -typedef struct _PublishingYandexUploadTransactionClass PublishingYandexUploadTransactionClass; -typedef struct _PublishingYandexUploadTransactionPrivate PublishingYandexUploadTransactionPrivate; -#define __vala_SoupMultipart_free0(var) ((var == NULL) ? NULL : (var = (_vala_SoupMultipart_free (var), NULL))) -#define _g_hash_table_unref0(var) ((var == NULL) ? NULL : (var = (g_hash_table_unref (var), NULL))) -#define __vala_SoupBuffer_free0(var) ((var == NULL) ? NULL : (var = (_vala_SoupBuffer_free (var), NULL))) -typedef struct _PublishingYandexYandexPublisherPrivate PublishingYandexYandexPublisherPrivate; -enum { - PUBLISHING_YANDEX_YANDEX_PUBLISHER_0_PROPERTY, - PUBLISHING_YANDEX_YANDEX_PUBLISHER_NUM_PROPERTIES -}; -static GParamSpec* publishing_yandex_yandex_publisher_properties[PUBLISHING_YANDEX_YANDEX_PUBLISHER_NUM_PROPERTIES]; -#define _publishing_yandex_publish_options_unref0(var) ((var == NULL) ? NULL : (var = (publishing_yandex_publish_options_unref (var), NULL))) -#define _publishing_rest_support_xml_document_unref0(var) ((var == NULL) ? NULL : (var = (publishing_rest_support_xml_document_unref (var), NULL))) -#define _publishing_rest_support_transaction_unref0(var) ((var == NULL) ? NULL : (var = (publishing_rest_support_transaction_unref (var), NULL))) -#define _publishing_rest_support_batch_uploader_unref0(var) ((var == NULL) ? NULL : (var = (publishing_rest_support_batch_uploader_unref (var), NULL))) -#define _vala_assert(expr, msg) if G_LIKELY (expr) ; else g_assertion_message_expr (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg); -#define _vala_return_if_fail(expr, msg) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return; } -#define _vala_return_val_if_fail(expr, msg, val) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return val; } -#define _vala_warn_if_fail(expr, msg) if G_LIKELY (expr) ; else g_warn_message (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg); - -struct _YandexService { - GObject parent_instance; - YandexServicePrivate * priv; -}; - -struct _YandexServiceClass { - GObjectClass parent_class; -}; - -struct _PublishingYandexTransaction { - PublishingRESTSupportTransaction parent_instance; - PublishingYandexTransactionPrivate * priv; -}; - -struct _PublishingYandexTransactionClass { - PublishingRESTSupportTransactionClass parent_class; -}; - -struct _PublishingYandexSession { - PublishingRESTSupportSession parent_instance; - PublishingYandexSessionPrivate * priv; -}; - -struct _PublishingYandexSessionClass { - PublishingRESTSupportSessionClass parent_class; -}; - -struct _PublishingYandexSessionPrivate { - gchar* auth_token; -}; - -struct _PublishingYandexWebAuthPane { - ShotwellPluginsCommonWebAuthenticationPane parent_instance; - PublishingYandexWebAuthPanePrivate * priv; -}; - -struct _PublishingYandexWebAuthPaneClass { - ShotwellPluginsCommonWebAuthenticationPaneClass parent_class; -}; - -struct _PublishingYandexWebAuthPanePrivate { - GRegex* re; -}; - -struct _PublishingYandexPublishOptions { - GTypeInstance parent_instance; - volatile int ref_count; - PublishingYandexPublishOptionsPrivate * priv; - gboolean disable_comments; - gboolean hide_original; - gchar* access_type; - gchar* destination_album; - gchar* destination_album_url; -}; - -struct _PublishingYandexPublishOptionsClass { - GTypeClass parent_class; - void (*finalize) (PublishingYandexPublishOptions *self); -}; - -struct _PublishingYandexParamSpecPublishOptions { - GParamSpec parent_instance; -}; - -struct _PublishingYandexPublishingOptionsPane { - GObject parent_instance; - PublishingYandexPublishingOptionsPanePrivate * priv; -}; - -struct _PublishingYandexPublishingOptionsPaneClass { - GObjectClass parent_class; -}; - -struct _PublishingYandexPublishingOptionsPanePrivate { - GtkBox* box; - GtkBuilder* builder; - GtkButton* logout_button; - GtkButton* publish_button; - GtkComboBoxText* album_list; - PublishingYandexPublishOptions* options; -}; - -struct _PublishingYandexUploader { - PublishingRESTSupportBatchUploader parent_instance; - PublishingYandexUploaderPrivate * priv; -}; - -struct _PublishingYandexUploaderClass { - PublishingRESTSupportBatchUploaderClass parent_class; -}; - -struct _PublishingYandexUploaderPrivate { - PublishingYandexPublishOptions* options; -}; - -struct _PublishingYandexUploadTransaction { - PublishingYandexTransaction parent_instance; - PublishingYandexUploadTransactionPrivate * priv; -}; - -struct _PublishingYandexUploadTransactionClass { - PublishingYandexTransactionClass parent_class; -}; - -struct _PublishingYandexYandexPublisher { - GObject parent_instance; - PublishingYandexYandexPublisherPrivate * priv; -}; - -struct _PublishingYandexYandexPublisherClass { - GObjectClass parent_class; -}; - -struct _PublishingYandexYandexPublisherPrivate { - SpitPublishingPluginHost* host; - SpitPublishingProgressCallback progress_reporter; - gpointer progress_reporter_target; - GDestroyNotify progress_reporter_target_destroy_notify; - SpitPublishingService* service; - gchar* service_url; - GeeHashMap* album_list; - PublishingYandexPublishOptions* options; - gboolean running; - PublishingYandexWebAuthPane* web_auth_pane; - PublishingYandexSession* session; -}; - - -static gpointer yandex_service_parent_class = NULL; -static SpitPluggableIface * yandex_service_spit_pluggable_parent_iface = NULL; -static SpitPublishingServiceIface * yandex_service_spit_publishing_service_parent_iface = NULL; -static gpointer publishing_yandex_transaction_parent_class = NULL; -static gpointer publishing_yandex_session_parent_class = NULL; -static gpointer publishing_yandex_web_auth_pane_parent_class = NULL; -static gpointer publishing_yandex_publish_options_parent_class = NULL; -static gpointer publishing_yandex_publishing_options_pane_parent_class = NULL; -static SpitPublishingDialogPaneIface * publishing_yandex_publishing_options_pane_spit_publishing_dialog_pane_parent_iface = NULL; -static gpointer publishing_yandex_uploader_parent_class = NULL; -static gpointer publishing_yandex_upload_transaction_parent_class = NULL; -static gpointer publishing_yandex_yandex_publisher_parent_class = NULL; -static SpitPublishingPublisherIface * publishing_yandex_yandex_publisher_spit_publishing_publisher_parent_iface = NULL; - -GType yandex_service_get_type (void) G_GNUC_CONST; -static gint yandex_service_real_get_pluggable_interface (SpitPluggable* base, - gint min_host_interface, - gint max_host_interface); -static const gchar* yandex_service_real_get_id (SpitPluggable* base); -static const gchar* yandex_service_real_get_pluggable_name (SpitPluggable* base); -static void yandex_service_real_get_info (SpitPluggable* base, - SpitPluggableInfo* info); -static SpitPublishingPublisher* yandex_service_real_create_publisher (SpitPublishingService* base, - SpitPublishingPluginHost* host); -PublishingYandexYandexPublisher* publishing_yandex_yandex_publisher_new (SpitPublishingService* service, - SpitPublishingPluginHost* host); -PublishingYandexYandexPublisher* publishing_yandex_yandex_publisher_construct (GType object_type, - SpitPublishingService* service, - SpitPublishingPluginHost* host); -GType publishing_yandex_yandex_publisher_get_type (void) G_GNUC_CONST; -static SpitPublishingPublisherMediaType yandex_service_real_get_supported_media (SpitPublishingService* base); -static void yandex_service_real_activation (SpitPluggable* base, - gboolean enabled); -YandexService* yandex_service_new (void); -YandexService* yandex_service_construct (GType object_type); -#define PUBLISHING_YANDEX_SERVICE_NAME "Yandex.Fotki" -#define PUBLISHING_YANDEX_client_id "52be4756dee3438792c831a75d7cd360" -GType publishing_yandex_transaction_get_type (void) G_GNUC_CONST; -GType publishing_yandex_session_get_type (void) G_GNUC_CONST; -PublishingYandexTransaction* publishing_yandex_transaction_new_with_url (PublishingYandexSession* session, - const gchar* url, - PublishingRESTSupportHttpMethod method); -PublishingYandexTransaction* publishing_yandex_transaction_construct_with_url (GType object_type, - PublishingYandexSession* session, - const gchar* url, - PublishingRESTSupportHttpMethod method); -static void publishing_yandex_transaction_add_headers (PublishingYandexTransaction* self); -gchar* publishing_yandex_session_get_auth_token (PublishingYandexSession* self); -PublishingYandexTransaction* publishing_yandex_transaction_new (PublishingYandexSession* session, - PublishingRESTSupportHttpMethod method); -PublishingYandexTransaction* publishing_yandex_transaction_construct (GType object_type, - PublishingYandexSession* session, - PublishingRESTSupportHttpMethod method); -void publishing_yandex_transaction_add_data (PublishingYandexTransaction* self, - const gchar* type, - const gchar* data); -#define PUBLISHING_YANDEX_SESSION_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), PUBLISHING_YANDEX_TYPE_SESSION, PublishingYandexSessionPrivate)) -PublishingYandexSession* publishing_yandex_session_new (void); -PublishingYandexSession* publishing_yandex_session_construct (GType object_type); -static gboolean publishing_yandex_session_real_is_authenticated (PublishingRESTSupportSession* base); -void publishing_yandex_session_deauthenticate (PublishingYandexSession* self); -void publishing_yandex_session_set_auth_token (PublishingYandexSession* self, - const gchar* token); -static void publishing_yandex_session_finalize (PublishingRESTSupportSession * obj); -GType publishing_yandex_web_auth_pane_get_type (void) G_GNUC_CONST; -#define PUBLISHING_YANDEX_WEB_AUTH_PANE_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), PUBLISHING_YANDEX_TYPE_WEB_AUTH_PANE, PublishingYandexWebAuthPanePrivate)) -PublishingYandexWebAuthPane* publishing_yandex_web_auth_pane_new (const gchar* login_url); -PublishingYandexWebAuthPane* publishing_yandex_web_auth_pane_construct (GType object_type, - const gchar* login_url); -static void publishing_yandex_web_auth_pane_real_constructed (GObject* base); -static gboolean publishing_yandex_web_auth_pane_on_decide_policy (PublishingYandexWebAuthPane* self, - WebKitPolicyDecision* decision, - WebKitPolicyDecisionType type); -static gboolean _publishing_yandex_web_auth_pane_on_decide_policy_webkit_web_view_decide_policy (WebKitWebView* _sender, - WebKitPolicyDecision* decision, - WebKitPolicyDecisionType type, - gpointer self); -static void publishing_yandex_web_auth_pane_real_on_page_load (ShotwellPluginsCommonWebAuthenticationPane* base); -static WebKitNavigationAction* _vala_WebKitNavigationAction_copy (WebKitNavigationAction* self); -static void _vala_WebKitNavigationAction_free (WebKitNavigationAction* self); -static void publishing_yandex_web_auth_pane_finalize (GObject * obj); -gpointer publishing_yandex_publish_options_ref (gpointer instance); -void publishing_yandex_publish_options_unref (gpointer instance); -GParamSpec* publishing_yandex_param_spec_publish_options (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void publishing_yandex_value_set_publish_options (GValue* value, - gpointer v_object); -void publishing_yandex_value_take_publish_options (GValue* value, - gpointer v_object); -gpointer publishing_yandex_value_get_publish_options (const GValue* value); -GType publishing_yandex_publish_options_get_type (void) G_GNUC_CONST; -PublishingYandexPublishOptions* publishing_yandex_publish_options_new (void); -PublishingYandexPublishOptions* publishing_yandex_publish_options_construct (GType object_type); -static void publishing_yandex_publish_options_finalize (PublishingYandexPublishOptions * obj); -GType publishing_yandex_publishing_options_pane_get_type (void) G_GNUC_CONST; -#define PUBLISHING_YANDEX_PUBLISHING_OPTIONS_PANE_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), PUBLISHING_YANDEX_TYPE_PUBLISHING_OPTIONS_PANE, PublishingYandexPublishingOptionsPanePrivate)) -static SpitPublishingDialogPaneGeometryOptions publishing_yandex_publishing_options_pane_real_get_preferred_geometry (SpitPublishingDialogPane* base); -static void publishing_yandex_publishing_options_pane_real_on_pane_installed (SpitPublishingDialogPane* base); -static void publishing_yandex_publishing_options_pane_real_on_pane_uninstalled (SpitPublishingDialogPane* base); -static GtkWidget* publishing_yandex_publishing_options_pane_real_get_widget (SpitPublishingDialogPane* base); -PublishingYandexPublishingOptionsPane* publishing_yandex_publishing_options_pane_new (PublishingYandexPublishOptions* options, - GeeHashMap* list, - SpitPublishingPluginHost* host); -PublishingYandexPublishingOptionsPane* publishing_yandex_publishing_options_pane_construct (GType object_type, - PublishingYandexPublishOptions* options, - GeeHashMap* list, - SpitPublishingPluginHost* host); -static void publishing_yandex_publishing_options_pane_on_publish_clicked (PublishingYandexPublishingOptionsPane* self); -static void _publishing_yandex_publishing_options_pane_on_publish_clicked_gtk_button_clicked (GtkButton* _sender, - gpointer self); -static void publishing_yandex_publishing_options_pane_on_logout_clicked (PublishingYandexPublishingOptionsPane* self); -static void _publishing_yandex_publishing_options_pane_on_logout_clicked_gtk_button_clicked (GtkButton* _sender, - gpointer self); -static void publishing_yandex_publishing_options_pane_finalize (GObject * obj); -GType publishing_yandex_uploader_get_type (void) G_GNUC_CONST; -#define PUBLISHING_YANDEX_UPLOADER_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), PUBLISHING_YANDEX_TYPE_UPLOADER, PublishingYandexUploaderPrivate)) -PublishingYandexUploader* publishing_yandex_uploader_new (PublishingYandexSession* session, - PublishingYandexPublishOptions* options, - SpitPublishingPublishable** photos, - int photos_length1); -PublishingYandexUploader* publishing_yandex_uploader_construct (GType object_type, - PublishingYandexSession* session, - PublishingYandexPublishOptions* options, - SpitPublishingPublishable** photos, - int photos_length1); -static PublishingRESTSupportTransaction* publishing_yandex_uploader_real_create_transaction (PublishingRESTSupportBatchUploader* base, - SpitPublishingPublishable* publishable); -PublishingYandexUploadTransaction* publishing_yandex_upload_transaction_new (PublishingYandexSession* session, - PublishingYandexPublishOptions* options, - SpitPublishingPublishable* photo); -PublishingYandexUploadTransaction* publishing_yandex_upload_transaction_construct (GType object_type, - PublishingYandexSession* session, - PublishingYandexPublishOptions* options, - SpitPublishingPublishable* photo); -GType publishing_yandex_upload_transaction_get_type (void) G_GNUC_CONST; -static void publishing_yandex_uploader_finalize (PublishingRESTSupportBatchUploader * obj); -static void _vala_SoupMultipart_free (SoupMultipart* self); -static void _g_free0_ (gpointer var); -static void _vala_SoupBuffer_free (SoupBuffer* self); -#define PUBLISHING_YANDEX_YANDEX_PUBLISHER_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), PUBLISHING_YANDEX_TYPE_YANDEX_PUBLISHER, PublishingYandexYandexPublisherPrivate)) -gchar* publishing_yandex_yandex_publisher_get_persistent_auth_token (PublishingYandexYandexPublisher* self); -void publishing_yandex_yandex_publisher_set_persistent_auth_token (PublishingYandexYandexPublisher* self, - const gchar* auth_token); -void publishing_yandex_yandex_publisher_invalidate_persistent_session (PublishingYandexYandexPublisher* self); -gboolean publishing_yandex_yandex_publisher_is_persistent_session_available (PublishingYandexYandexPublisher* self); -static gboolean publishing_yandex_yandex_publisher_real_is_running (SpitPublishingPublisher* base); -static SpitPublishingService* publishing_yandex_yandex_publisher_real_get_service (SpitPublishingPublisher* base); -static gchar* publishing_yandex_yandex_publisher_check_response (PublishingYandexYandexPublisher* self, - PublishingRESTSupportXmlDocument* doc); -static void publishing_yandex_yandex_publisher_parse_album_entry (PublishingYandexYandexPublisher* self, - xmlNode* e, - GError** error); -void publishing_yandex_yandex_publisher_parse_album_creation (PublishingYandexYandexPublisher* self, - const gchar* data, - GError** error); -static gchar* _publishing_yandex_yandex_publisher_check_response_publishing_rest_support_xml_document_check_for_error_response (PublishingRESTSupportXmlDocument* doc, - gpointer self); -void publishing_yandex_yandex_publisher_parse_album_list (PublishingYandexYandexPublisher* self, - const gchar* data, - GError** error); -static void publishing_yandex_yandex_publisher_album_creation_error (PublishingYandexYandexPublisher* self, - PublishingRESTSupportTransaction* t, - GError* err); -static void publishing_yandex_yandex_publisher_album_creation_complete (PublishingYandexYandexPublisher* self, - PublishingRESTSupportTransaction* t); -static void _publishing_yandex_yandex_publisher_album_creation_complete_publishing_rest_support_transaction_completed (PublishingRESTSupportTransaction* _sender, - gpointer self); -static void _publishing_yandex_yandex_publisher_album_creation_error_publishing_rest_support_transaction_network_error (PublishingRESTSupportTransaction* _sender, - GError* err, - gpointer self); -static void publishing_yandex_yandex_publisher_start_upload (PublishingYandexYandexPublisher* self); -static void publishing_yandex_yandex_publisher_create_destination_album (PublishingYandexYandexPublisher* self); -static void publishing_yandex_yandex_publisher_on_upload_complete (PublishingYandexYandexPublisher* self, - PublishingRESTSupportBatchUploader* uploader, - gint num_published); -static void _publishing_yandex_yandex_publisher_on_upload_complete_publishing_rest_support_batch_uploader_upload_complete (PublishingRESTSupportBatchUploader* _sender, - gint num_photos_published, - gpointer self); -static void publishing_yandex_yandex_publisher_on_upload_error (PublishingYandexYandexPublisher* self, - PublishingRESTSupportBatchUploader* uploader, - GError* err); -static void _publishing_yandex_yandex_publisher_on_upload_error_publishing_rest_support_batch_uploader_upload_error (PublishingRESTSupportBatchUploader* _sender, - GError* err, - gpointer self); -static void publishing_yandex_yandex_publisher_on_upload_status_updated (PublishingYandexYandexPublisher* self, - gint file_number, - gdouble completed_fraction); -static void _publishing_yandex_yandex_publisher_on_upload_status_updated_spit_publishing_progress_callback (gint file_number, - gdouble fraction_complete, - gpointer self); -static void publishing_yandex_yandex_publisher_on_logout (PublishingYandexYandexPublisher* self); -static void publishing_yandex_yandex_publisher_on_publish (PublishingYandexYandexPublisher* self); -void publishing_yandex_yandex_publisher_service_get_album_list_error (PublishingYandexYandexPublisher* self, - PublishingRESTSupportTransaction* t, - GError* err); -void publishing_yandex_yandex_publisher_service_get_album_list_complete (PublishingYandexYandexPublisher* self, - PublishingRESTSupportTransaction* t); -static void _publishing_yandex_yandex_publisher_service_get_album_list_complete_publishing_rest_support_transaction_completed (PublishingRESTSupportTransaction* _sender, - gpointer self); -static void _publishing_yandex_yandex_publisher_service_get_album_list_error_publishing_rest_support_transaction_network_error (PublishingRESTSupportTransaction* _sender, - GError* err, - gpointer self); -static void _publishing_yandex_yandex_publisher_on_publish_publishing_yandex_publishing_options_pane_publish (PublishingYandexPublishingOptionsPane* _sender, - gpointer self); -static void _publishing_yandex_yandex_publisher_on_logout_publishing_yandex_publishing_options_pane_logout (PublishingYandexPublishingOptionsPane* _sender, - gpointer self); -void publishing_yandex_yandex_publisher_service_get_album_list (PublishingYandexYandexPublisher* self, - const gchar* url); -void publishing_yandex_yandex_publisher_fetch_account_error (PublishingYandexYandexPublisher* self, - PublishingRESTSupportTransaction* t, - GError* err); -void publishing_yandex_yandex_publisher_fetch_account_complete (PublishingYandexYandexPublisher* self, - PublishingRESTSupportTransaction* t); -static void _publishing_yandex_yandex_publisher_fetch_account_complete_publishing_rest_support_transaction_completed (PublishingRESTSupportTransaction* _sender, - gpointer self); -static void _publishing_yandex_yandex_publisher_fetch_account_error_publishing_rest_support_transaction_network_error (PublishingRESTSupportTransaction* _sender, - GError* err, - gpointer self); -void publishing_yandex_yandex_publisher_fetch_account_information (PublishingYandexYandexPublisher* self, - const gchar* auth_token); -static void publishing_yandex_yandex_publisher_web_auth_login_succeeded (PublishingYandexYandexPublisher* self, - const gchar* access_token); -static void publishing_yandex_yandex_publisher_web_auth_login_failed (PublishingYandexYandexPublisher* self); -static void publishing_yandex_yandex_publisher_start_web_auth (PublishingYandexYandexPublisher* self); -static void _publishing_yandex_yandex_publisher_web_auth_login_succeeded_publishing_yandex_web_auth_pane_login_succeeded (PublishingYandexWebAuthPane* _sender, - const gchar* success_url, - gpointer self); -static void _publishing_yandex_yandex_publisher_web_auth_login_failed_publishing_yandex_web_auth_pane_login_failed (PublishingYandexWebAuthPane* _sender, - gpointer self); -static void publishing_yandex_yandex_publisher_show_welcome_page (PublishingYandexYandexPublisher* self); -static void _publishing_yandex_yandex_publisher_start_web_auth_spit_publishing_login_callback (gpointer self); -static void publishing_yandex_yandex_publisher_real_start (SpitPublishingPublisher* base); -static void publishing_yandex_yandex_publisher_real_stop (SpitPublishingPublisher* base); -static void publishing_yandex_yandex_publisher_finalize (GObject * obj); -static void _vala_array_destroy (gpointer array, - gint array_length, - GDestroyNotify destroy_func); -static void _vala_array_free (gpointer array, - gint array_length, - GDestroyNotify destroy_func); -static gint _vala_array_length (gpointer array); - - -static gint -yandex_service_real_get_pluggable_interface (SpitPluggable* base, - gint min_host_interface, - gint max_host_interface) -{ - YandexService * self; - gint result = 0; -#line 8 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_YANDEX_SERVICE, YandexService); -#line 9 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - result = spit_negotiate_interfaces (min_host_interface, max_host_interface, SPIT_PUBLISHING_CURRENT_INTERFACE); -#line 9 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - return result; -#line 569 "YandexPublishing.c" -} - - -static const gchar* -yandex_service_real_get_id (SpitPluggable* base) -{ - YandexService * self; - const gchar* result = NULL; -#line 12 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_YANDEX_SERVICE, YandexService); -#line 13 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - result = "org.yorba.shotwell.publishing.yandex-fotki"; -#line 13 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - return result; -#line 584 "YandexPublishing.c" -} - - -static const gchar* -yandex_service_real_get_pluggable_name (SpitPluggable* base) -{ - YandexService * self; - const gchar* result = NULL; -#line 16 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_YANDEX_SERVICE, YandexService); -#line 17 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - result = "Yandex.Fotki"; -#line 17 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - return result; -#line 599 "YandexPublishing.c" -} - - -static void -yandex_service_real_get_info (SpitPluggable* base, - SpitPluggableInfo* info) -{ - YandexService * self; - gchar* _tmp0_; - gchar* _tmp1_; - gchar* _tmp2_; - gchar* _tmp3_; - gchar* _tmp4_; - gchar* _tmp5_; - gchar* _tmp6_; -#line 20 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_YANDEX_SERVICE, YandexService); -#line 20 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - g_return_if_fail (info != NULL); -#line 21 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp0_ = g_strdup ("Evgeniy Polyakov "); -#line 21 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _g_free0 ((*info).authors); -#line 21 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - (*info).authors = _tmp0_; -#line 22 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp1_ = g_strdup (_ ("Copyright 2010+ Evgeniy Polyakov ")); -#line 22 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _g_free0 ((*info).copyright); -#line 22 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - (*info).copyright = _tmp1_; -#line 23 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp2_ = g_strdup (RESOURCES_TRANSLATORS); -#line 23 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _g_free0 ((*info).translators); -#line 23 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - (*info).translators = _tmp2_; -#line 24 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp3_ = g_strdup (_VERSION); -#line 24 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _g_free0 ((*info).version); -#line 24 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - (*info).version = _tmp3_; -#line 25 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp4_ = g_strdup (_ ("Visit the Yandex.Fotki web site")); -#line 25 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _g_free0 ((*info).website_name); -#line 25 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - (*info).website_name = _tmp4_; -#line 26 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp5_ = g_strdup ("https://fotki.yandex.ru/"); -#line 26 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _g_free0 ((*info).website_url); -#line 26 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - (*info).website_url = _tmp5_; -#line 27 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - (*info).is_license_wordwrapped = FALSE; -#line 28 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp6_ = g_strdup (RESOURCES_LICENSE); -#line 28 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _g_free0 ((*info).license); -#line 28 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - (*info).license = _tmp6_; -#line 663 "YandexPublishing.c" -} - - -static SpitPublishingPublisher* -yandex_service_real_create_publisher (SpitPublishingService* base, - SpitPublishingPluginHost* host) -{ - YandexService * self; - SpitPublishingPublisher* result = NULL; - PublishingYandexYandexPublisher* _tmp0_; -#line 31 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_YANDEX_SERVICE, YandexService); -#line 31 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - g_return_val_if_fail (SPIT_PUBLISHING_IS_PLUGIN_HOST (host), NULL); -#line 32 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp0_ = publishing_yandex_yandex_publisher_new (G_TYPE_CHECK_INSTANCE_CAST (self, SPIT_PUBLISHING_TYPE_SERVICE, SpitPublishingService), host); -#line 32 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - result = G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, SPIT_PUBLISHING_TYPE_PUBLISHER, SpitPublishingPublisher); -#line 32 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - return result; -#line 684 "YandexPublishing.c" -} - - -static SpitPublishingPublisherMediaType -yandex_service_real_get_supported_media (SpitPublishingService* base) -{ - YandexService * self; - SpitPublishingPublisherMediaType result = 0; -#line 35 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_YANDEX_SERVICE, YandexService); -#line 36 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - result = SPIT_PUBLISHING_PUBLISHER_MEDIA_TYPE_PHOTO; -#line 36 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - return result; -#line 699 "YandexPublishing.c" -} - - -static void -yandex_service_real_activation (SpitPluggable* base, - gboolean enabled) -{ - YandexService * self; -#line 39 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_YANDEX_SERVICE, YandexService); -#line 710 "YandexPublishing.c" -} - - -YandexService* -yandex_service_construct (GType object_type) -{ - YandexService * self = NULL; -#line 7 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - self = (YandexService*) g_object_new (object_type, NULL); -#line 7 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - return self; -#line 722 "YandexPublishing.c" -} - - -YandexService* -yandex_service_new (void) -{ -#line 7 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - return yandex_service_construct (TYPE_YANDEX_SERVICE); -#line 731 "YandexPublishing.c" -} - - -static void -yandex_service_class_init (YandexServiceClass * klass) -{ -#line 7 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - yandex_service_parent_class = g_type_class_peek_parent (klass); -#line 740 "YandexPublishing.c" -} - - -static void -yandex_service_spit_pluggable_interface_init (SpitPluggableIface * iface) -{ -#line 7 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - yandex_service_spit_pluggable_parent_iface = g_type_interface_peek_parent (iface); -#line 7 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - iface->get_pluggable_interface = (gint (*) (SpitPluggable *, gint, gint)) yandex_service_real_get_pluggable_interface; -#line 7 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - iface->get_id = (const gchar* (*) (SpitPluggable *)) yandex_service_real_get_id; -#line 7 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - iface->get_pluggable_name = (const gchar* (*) (SpitPluggable *)) yandex_service_real_get_pluggable_name; -#line 7 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - iface->get_info = (void (*) (SpitPluggable *, SpitPluggableInfo*)) yandex_service_real_get_info; -#line 7 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - iface->activation = (void (*) (SpitPluggable *, gboolean)) yandex_service_real_activation; -#line 759 "YandexPublishing.c" -} - - -static void -yandex_service_spit_publishing_service_interface_init (SpitPublishingServiceIface * iface) -{ -#line 7 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - yandex_service_spit_publishing_service_parent_iface = g_type_interface_peek_parent (iface); -#line 7 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - iface->create_publisher = (SpitPublishingPublisher* (*) (SpitPublishingService *, SpitPublishingPluginHost*)) yandex_service_real_create_publisher; -#line 7 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - iface->get_supported_media = (SpitPublishingPublisherMediaType (*) (SpitPublishingService *)) yandex_service_real_get_supported_media; -#line 772 "YandexPublishing.c" -} - - -static void -yandex_service_instance_init (YandexService * self) -{ -} - - -GType -yandex_service_get_type (void) -{ - static volatile gsize yandex_service_type_id__volatile = 0; - if (g_once_init_enter (&yandex_service_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (YandexServiceClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) yandex_service_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (YandexService), 0, (GInstanceInitFunc) yandex_service_instance_init, NULL }; - static const GInterfaceInfo spit_pluggable_info = { (GInterfaceInitFunc) yandex_service_spit_pluggable_interface_init, (GInterfaceFinalizeFunc) NULL, NULL}; - static const GInterfaceInfo spit_publishing_service_info = { (GInterfaceInitFunc) yandex_service_spit_publishing_service_interface_init, (GInterfaceFinalizeFunc) NULL, NULL}; - GType yandex_service_type_id; - yandex_service_type_id = g_type_register_static (G_TYPE_OBJECT, "YandexService", &g_define_type_info, 0); - g_type_add_interface_static (yandex_service_type_id, SPIT_TYPE_PLUGGABLE, &spit_pluggable_info); - g_type_add_interface_static (yandex_service_type_id, SPIT_PUBLISHING_TYPE_SERVICE, &spit_publishing_service_info); - g_once_init_leave (&yandex_service_type_id__volatile, yandex_service_type_id); - } - return yandex_service_type_id__volatile; -} - - -PublishingYandexTransaction* -publishing_yandex_transaction_construct_with_url (GType object_type, - PublishingYandexSession* session, - const gchar* url, - PublishingRESTSupportHttpMethod method) -{ - PublishingYandexTransaction* self = NULL; -#line 50 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - g_return_val_if_fail (PUBLISHING_YANDEX_IS_SESSION (session), NULL); -#line 50 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - g_return_val_if_fail (url != NULL, NULL); -#line 51 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - self = (PublishingYandexTransaction*) publishing_rest_support_transaction_construct_with_endpoint_url (object_type, G_TYPE_CHECK_INSTANCE_CAST (session, PUBLISHING_REST_SUPPORT_TYPE_SESSION, PublishingRESTSupportSession), url, method); -#line 52 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - publishing_yandex_transaction_add_headers (self); -#line 50 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - return self; -#line 817 "YandexPublishing.c" -} - - -PublishingYandexTransaction* -publishing_yandex_transaction_new_with_url (PublishingYandexSession* session, - const gchar* url, - PublishingRESTSupportHttpMethod method) -{ -#line 50 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - return publishing_yandex_transaction_construct_with_url (PUBLISHING_YANDEX_TYPE_TRANSACTION, session, url, method); -#line 828 "YandexPublishing.c" -} - - -static void -publishing_yandex_transaction_add_headers (PublishingYandexTransaction* self) -{ - PublishingRESTSupportSession* _tmp0_; - PublishingYandexSession* _tmp1_; - gboolean _tmp2_; -#line 55 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - g_return_if_fail (PUBLISHING_YANDEX_IS_TRANSACTION (self)); -#line 56 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp0_ = publishing_rest_support_transaction_get_parent_session (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction)); -#line 56 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp1_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, PUBLISHING_YANDEX_TYPE_SESSION, PublishingYandexSession); -#line 56 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp2_ = publishing_rest_support_session_is_authenticated (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, PUBLISHING_REST_SUPPORT_TYPE_SESSION, PublishingRESTSupportSession)); -#line 56 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _publishing_rest_support_session_unref0 (_tmp1_); -#line 56 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - if (_tmp2_) { -#line 850 "YandexPublishing.c" - PublishingRESTSupportSession* _tmp3_; - PublishingYandexSession* _tmp4_; - gchar* _tmp5_; - gchar* _tmp6_; - gchar* _tmp7_; - gchar* _tmp8_; -#line 57 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp3_ = publishing_rest_support_transaction_get_parent_session (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction)); -#line 57 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp4_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, PUBLISHING_YANDEX_TYPE_SESSION, PublishingYandexSession); -#line 57 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp5_ = publishing_yandex_session_get_auth_token (_tmp4_); -#line 57 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp6_ = _tmp5_; -#line 57 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp7_ = g_strdup_printf ("OAuth %s", _tmp6_); -#line 57 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp8_ = _tmp7_; -#line 57 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - publishing_rest_support_transaction_add_header (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "Authorization", _tmp8_); -#line 57 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _g_free0 (_tmp8_); -#line 57 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _g_free0 (_tmp6_); -#line 57 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _publishing_rest_support_session_unref0 (_tmp4_); -#line 58 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - publishing_rest_support_transaction_add_header (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "Connection", "close"); -#line 879 "YandexPublishing.c" - } -} - - -PublishingYandexTransaction* -publishing_yandex_transaction_construct (GType object_type, - PublishingYandexSession* session, - PublishingRESTSupportHttpMethod method) -{ - PublishingYandexTransaction* self = NULL; -#line 62 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - g_return_val_if_fail (PUBLISHING_YANDEX_IS_SESSION (session), NULL); -#line 63 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - self = (PublishingYandexTransaction*) publishing_rest_support_transaction_construct (object_type, G_TYPE_CHECK_INSTANCE_CAST (session, PUBLISHING_REST_SUPPORT_TYPE_SESSION, PublishingRESTSupportSession), method); -#line 64 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - publishing_yandex_transaction_add_headers (self); -#line 62 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - return self; -#line 898 "YandexPublishing.c" -} - - -PublishingYandexTransaction* -publishing_yandex_transaction_new (PublishingYandexSession* session, - PublishingRESTSupportHttpMethod method) -{ -#line 62 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - return publishing_yandex_transaction_construct (PUBLISHING_YANDEX_TYPE_TRANSACTION, session, method); -#line 908 "YandexPublishing.c" -} - - -void -publishing_yandex_transaction_add_data (PublishingYandexTransaction* self, - const gchar* type, - const gchar* data) -{ -#line 67 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - g_return_if_fail (PUBLISHING_YANDEX_IS_TRANSACTION (self)); -#line 67 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - g_return_if_fail (type != NULL); -#line 67 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - g_return_if_fail (data != NULL); -#line 68 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - publishing_rest_support_transaction_set_custom_payload (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), data, type, (gulong) 0); -#line 925 "YandexPublishing.c" -} - - -static void -publishing_yandex_transaction_class_init (PublishingYandexTransactionClass * klass) -{ -#line 49 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - publishing_yandex_transaction_parent_class = g_type_class_peek_parent (klass); -#line 934 "YandexPublishing.c" -} - - -static void -publishing_yandex_transaction_instance_init (PublishingYandexTransaction * self) -{ -} - - -GType -publishing_yandex_transaction_get_type (void) -{ - static volatile gsize publishing_yandex_transaction_type_id__volatile = 0; - if (g_once_init_enter (&publishing_yandex_transaction_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (PublishingYandexTransactionClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) publishing_yandex_transaction_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PublishingYandexTransaction), 0, (GInstanceInitFunc) publishing_yandex_transaction_instance_init, NULL }; - GType publishing_yandex_transaction_type_id; - publishing_yandex_transaction_type_id = g_type_register_static (PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, "PublishingYandexTransaction", &g_define_type_info, 0); - g_once_init_leave (&publishing_yandex_transaction_type_id__volatile, publishing_yandex_transaction_type_id); - } - return publishing_yandex_transaction_type_id__volatile; -} - - -PublishingYandexSession* -publishing_yandex_session_construct (GType object_type) -{ - PublishingYandexSession* self = NULL; -#line 75 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - self = (PublishingYandexSession*) publishing_rest_support_session_construct (object_type, NULL); -#line 75 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - return self; -#line 966 "YandexPublishing.c" -} - - -PublishingYandexSession* -publishing_yandex_session_new (void) -{ -#line 75 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - return publishing_yandex_session_construct (PUBLISHING_YANDEX_TYPE_SESSION); -#line 975 "YandexPublishing.c" -} - - -static gboolean -publishing_yandex_session_real_is_authenticated (PublishingRESTSupportSession* base) -{ - PublishingYandexSession * self; - gboolean result = FALSE; - const gchar* _tmp0_; -#line 78 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_YANDEX_TYPE_SESSION, PublishingYandexSession); -#line 79 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp0_ = self->priv->auth_token; -#line 79 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - result = _tmp0_ != NULL; -#line 79 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - return result; -#line 993 "YandexPublishing.c" -} - - -void -publishing_yandex_session_deauthenticate (PublishingYandexSession* self) -{ -#line 82 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - g_return_if_fail (PUBLISHING_YANDEX_IS_SESSION (self)); -#line 83 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _g_free0 (self->priv->auth_token); -#line 83 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - self->priv->auth_token = NULL; -#line 1006 "YandexPublishing.c" -} - - -void -publishing_yandex_session_set_auth_token (PublishingYandexSession* self, - const gchar* token) -{ - gchar* _tmp0_; -#line 86 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - g_return_if_fail (PUBLISHING_YANDEX_IS_SESSION (self)); -#line 86 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - g_return_if_fail (token != NULL); -#line 87 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp0_ = g_strdup (token); -#line 87 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _g_free0 (self->priv->auth_token); -#line 87 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - self->priv->auth_token = _tmp0_; -#line 1025 "YandexPublishing.c" -} - - -gchar* -publishing_yandex_session_get_auth_token (PublishingYandexSession* self) -{ - gchar* result = NULL; - const gchar* _tmp0_; - gchar* _tmp1_; -#line 90 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - g_return_val_if_fail (PUBLISHING_YANDEX_IS_SESSION (self), NULL); -#line 91 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp0_ = self->priv->auth_token; -#line 91 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp1_ = g_strdup (_tmp0_); -#line 91 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - result = _tmp1_; -#line 91 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - return result; -#line 1045 "YandexPublishing.c" -} - - -static void -publishing_yandex_session_class_init (PublishingYandexSessionClass * klass) -{ -#line 72 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - publishing_yandex_session_parent_class = g_type_class_peek_parent (klass); -#line 72 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - ((PublishingRESTSupportSessionClass *) klass)->finalize = publishing_yandex_session_finalize; -#line 72 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - g_type_class_add_private (klass, sizeof (PublishingYandexSessionPrivate)); -#line 72 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - ((PublishingRESTSupportSessionClass *) klass)->is_authenticated = (gboolean (*) (PublishingRESTSupportSession *)) publishing_yandex_session_real_is_authenticated; -#line 1060 "YandexPublishing.c" -} - - -static void -publishing_yandex_session_instance_init (PublishingYandexSession * self) -{ -#line 72 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - self->priv = PUBLISHING_YANDEX_SESSION_GET_PRIVATE (self); -#line 73 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - self->priv->auth_token = NULL; -#line 1071 "YandexPublishing.c" -} - - -static void -publishing_yandex_session_finalize (PublishingRESTSupportSession * obj) -{ - PublishingYandexSession * self; -#line 72 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, PUBLISHING_YANDEX_TYPE_SESSION, PublishingYandexSession); -#line 73 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _g_free0 (self->priv->auth_token); -#line 72 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - PUBLISHING_REST_SUPPORT_SESSION_CLASS (publishing_yandex_session_parent_class)->finalize (obj); -#line 1085 "YandexPublishing.c" -} - - -GType -publishing_yandex_session_get_type (void) -{ - static volatile gsize publishing_yandex_session_type_id__volatile = 0; - if (g_once_init_enter (&publishing_yandex_session_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (PublishingYandexSessionClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) publishing_yandex_session_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PublishingYandexSession), 0, (GInstanceInitFunc) publishing_yandex_session_instance_init, NULL }; - GType publishing_yandex_session_type_id; - publishing_yandex_session_type_id = g_type_register_static (PUBLISHING_REST_SUPPORT_TYPE_SESSION, "PublishingYandexSession", &g_define_type_info, 0); - g_once_init_leave (&publishing_yandex_session_type_id__volatile, publishing_yandex_session_type_id); - } - return publishing_yandex_session_type_id__volatile; -} - - -PublishingYandexWebAuthPane* -publishing_yandex_web_auth_pane_construct (GType object_type, - const gchar* login_url) -{ - PublishingYandexWebAuthPane * self = NULL; -#line 101 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - g_return_val_if_fail (login_url != NULL, NULL); -#line 102 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - self = (PublishingYandexWebAuthPane*) g_object_new (object_type, "login-uri", login_url, "preferred-geometry", SPIT_PUBLISHING_DIALOG_PANE_GEOMETRY_OPTIONS_RESIZABLE, NULL); -#line 101 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - return self; -#line 1114 "YandexPublishing.c" -} - - -PublishingYandexWebAuthPane* -publishing_yandex_web_auth_pane_new (const gchar* login_url) -{ -#line 101 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - return publishing_yandex_web_auth_pane_construct (PUBLISHING_YANDEX_TYPE_WEB_AUTH_PANE, login_url); -#line 1123 "YandexPublishing.c" -} - - -static gboolean -_publishing_yandex_web_auth_pane_on_decide_policy_webkit_web_view_decide_policy (WebKitWebView* _sender, - WebKitPolicyDecision* decision, - WebKitPolicyDecisionType type, - gpointer self) -{ - gboolean result; - result = publishing_yandex_web_auth_pane_on_decide_policy ((PublishingYandexWebAuthPane*) self, decision, type); -#line 114 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - return result; -#line 1137 "YandexPublishing.c" -} - - -static void -publishing_yandex_web_auth_pane_real_constructed (GObject* base) -{ - PublishingYandexWebAuthPane * self; - WebKitWebView* _tmp3_; - WebKitWebView* _tmp4_; - GError * _inner_error_ = NULL; -#line 107 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_YANDEX_TYPE_WEB_AUTH_PANE, PublishingYandexWebAuthPane); -#line 1150 "YandexPublishing.c" - { - GRegex* _tmp0_ = NULL; - GRegex* _tmp1_; - GRegex* _tmp2_; -#line 109 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp1_ = g_regex_new ("(.*)#access_token=([a-zA-Z0-9]*)&", 0, 0, &_inner_error_); -#line 109 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp0_ = _tmp1_; -#line 109 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 109 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - if (_inner_error_->domain == G_REGEX_ERROR) { -#line 1163 "YandexPublishing.c" - goto __catch32_g_regex_error; - } -#line 109 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 109 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - g_clear_error (&_inner_error_); -#line 109 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - return; -#line 1172 "YandexPublishing.c" - } -#line 109 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp2_ = _tmp0_; -#line 109 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp0_ = NULL; -#line 109 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _g_regex_unref0 (self->priv->re); -#line 109 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - self->priv->re = _tmp2_; -#line 108 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _g_regex_unref0 (_tmp0_); -#line 1184 "YandexPublishing.c" - } - goto __finally32; - __catch32_g_regex_error: - { - GError* e = NULL; -#line 108 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - e = _inner_error_; -#line 108 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _inner_error_ = NULL; -#line 111 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - g_assert_not_reached (); -#line 108 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _g_error_free0 (e); -#line 1198 "YandexPublishing.c" - } - __finally32: -#line 108 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 108 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 108 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - g_clear_error (&_inner_error_); -#line 108 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - return; -#line 1209 "YandexPublishing.c" - } -#line 114 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp3_ = shotwell_plugins_common_web_authentication_pane_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, SHOTWELL_PLUGINS_COMMON_TYPE_WEB_AUTHENTICATION_PANE, ShotwellPluginsCommonWebAuthenticationPane)); -#line 114 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp4_ = _tmp3_; -#line 114 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - g_signal_connect_object (_tmp4_, "decide-policy", (GCallback) _publishing_yandex_web_auth_pane_on_decide_policy_webkit_web_view_decide_policy, self, 0); -#line 114 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _g_object_unref0 (_tmp4_); -#line 1219 "YandexPublishing.c" -} - - -static void -publishing_yandex_web_auth_pane_real_on_page_load (ShotwellPluginsCommonWebAuthenticationPane* base) -{ - PublishingYandexWebAuthPane * self; -#line 117 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_YANDEX_TYPE_WEB_AUTH_PANE, PublishingYandexWebAuthPane); -#line 1229 "YandexPublishing.c" -} - - -static gpointer -_g_object_ref0 (gpointer self) -{ -#line 123 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - return self ? g_object_ref (self) : NULL; -#line 1238 "YandexPublishing.c" -} - - -static WebKitNavigationAction* -_vala_WebKitNavigationAction_copy (WebKitNavigationAction* self) -{ -#line 124 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - return g_boxed_copy (webkit_navigation_action_get_type (), self); -#line 1247 "YandexPublishing.c" -} - - -static gpointer -__vala_WebKitNavigationAction_copy0 (gpointer self) -{ -#line 124 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - return self ? _vala_WebKitNavigationAction_copy (self) : NULL; -#line 1256 "YandexPublishing.c" -} - - -static void -_vala_WebKitNavigationAction_free (WebKitNavigationAction* self) -{ -#line 138 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - g_boxed_free (webkit_navigation_action_get_type (), self); -#line 1265 "YandexPublishing.c" -} - - -static gboolean -publishing_yandex_web_auth_pane_on_decide_policy (PublishingYandexWebAuthPane* self, - WebKitPolicyDecision* decision, - WebKitPolicyDecisionType type) -{ - gboolean result = FALSE; -#line 119 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - g_return_val_if_fail (PUBLISHING_YANDEX_IS_WEB_AUTH_PANE (self), FALSE); -#line 119 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - g_return_val_if_fail (WEBKIT_IS_POLICY_DECISION (decision), FALSE); -#line 121 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - switch (type) { -#line 121 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - case WEBKIT_POLICY_DECISION_TYPE_NAVIGATION_ACTION: -#line 1283 "YandexPublishing.c" - { - WebKitNavigationPolicyDecision* n_decision = NULL; - WebKitNavigationPolicyDecision* _tmp0_; - WebKitNavigationAction* action = NULL; - WebKitNavigationPolicyDecision* _tmp1_; - WebKitNavigationAction* _tmp2_; - WebKitNavigationAction* _tmp3_; - WebKitNavigationAction* _tmp4_; - gchar* uri = NULL; - WebKitNavigationAction* _tmp5_; - WebKitURIRequest* _tmp6_; - const gchar* _tmp7_; - const gchar* _tmp8_; - gchar* _tmp9_; - const gchar* _tmp10_; - GMatchInfo* info = NULL; - GRegex* _tmp11_; - const gchar* _tmp12_; - GMatchInfo* _tmp13_ = NULL; - gboolean _tmp14_; -#line 123 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp0_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (decision, webkit_navigation_policy_decision_get_type (), WebKitNavigationPolicyDecision)); -#line 123 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - n_decision = _tmp0_; -#line 124 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp1_ = n_decision; -#line 124 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp2_ = webkit_navigation_policy_decision_get_navigation_action (_tmp1_); -#line 124 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp3_ = _tmp2_; -#line 124 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp4_ = __vala_WebKitNavigationAction_copy0 (_tmp3_); -#line 124 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - action = _tmp4_; -#line 125 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp5_ = action; -#line 125 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp6_ = webkit_navigation_action_get_request (_tmp5_); -#line 125 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp7_ = webkit_uri_request_get_uri (_tmp6_); -#line 125 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp8_ = _tmp7_; -#line 125 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp9_ = g_strdup (_tmp8_); -#line 125 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - uri = _tmp9_; -#line 126 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp10_ = uri; -#line 126 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - g_debug ("YandexPublishing.vala:126: Navigating to '%s'", _tmp10_); -#line 128 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - info = NULL; -#line 130 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp11_ = self->priv->re; -#line 130 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp12_ = uri; -#line 130 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp14_ = g_regex_match (_tmp11_, _tmp12_, 0, &_tmp13_); -#line 130 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _g_match_info_unref0 (info); -#line 130 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - info = _tmp13_; -#line 130 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - if (_tmp14_) { -#line 1348 "YandexPublishing.c" - gchar* access_token = NULL; - GMatchInfo* _tmp15_; - gchar** _tmp16_; - gchar** _tmp17_; - gchar** _tmp18_; - gint _tmp18__length1; - const gchar* _tmp19_; - gchar* _tmp20_; - gchar* _tmp21_; - const gchar* _tmp22_; - const gchar* _tmp23_; -#line 131 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp15_ = info; -#line 131 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp17_ = _tmp16_ = g_match_info_fetch_all (_tmp15_); -#line 131 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp18_ = _tmp17_; -#line 131 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp18__length1 = _vala_array_length (_tmp16_); -#line 131 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp19_ = _tmp18_[2]; -#line 131 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp20_ = g_strdup (_tmp19_); -#line 131 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp21_ = _tmp20_; -#line 131 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp18_ = (_vala_array_free (_tmp18_, _tmp18__length1, (GDestroyNotify) g_free), NULL); -#line 131 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - access_token = _tmp21_; -#line 133 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp22_ = access_token; -#line 133 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - g_debug ("YandexPublishing.vala:133: Load completed: %s", _tmp22_); -#line 134 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - shotwell_plugins_common_web_authentication_pane_set_cursor (G_TYPE_CHECK_INSTANCE_CAST (self, SHOTWELL_PLUGINS_COMMON_TYPE_WEB_AUTHENTICATION_PANE, ShotwellPluginsCommonWebAuthenticationPane), GDK_LEFT_PTR); -#line 135 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp23_ = access_token; -#line 135 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - if (_tmp23_ != NULL) { -#line 1388 "YandexPublishing.c" - const gchar* _tmp24_; -#line 136 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp24_ = access_token; -#line 136 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - g_signal_emit (self, publishing_yandex_web_auth_pane_signals[PUBLISHING_YANDEX_WEB_AUTH_PANE_LOGIN_SUCCEEDED_SIGNAL], 0, _tmp24_); -#line 137 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - webkit_policy_decision_ignore (decision); -#line 138 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _g_free0 (access_token); -#line 138 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _g_match_info_unref0 (info); -#line 138 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _g_free0 (uri); -#line 138 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - __vala_WebKitNavigationAction_free0 (action); -#line 138 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _g_object_unref0 (n_decision); -#line 138 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - break; -#line 1408 "YandexPublishing.c" - } else { -#line 140 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - g_signal_emit (self, publishing_yandex_web_auth_pane_signals[PUBLISHING_YANDEX_WEB_AUTH_PANE_LOGIN_FAILED_SIGNAL], 0); -#line 1412 "YandexPublishing.c" - } -#line 130 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _g_free0 (access_token); -#line 1416 "YandexPublishing.c" - } -#line 142 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - webkit_policy_decision_use (decision); -#line 143 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _g_match_info_unref0 (info); -#line 143 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _g_free0 (uri); -#line 143 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - __vala_WebKitNavigationAction_free0 (action); -#line 143 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _g_object_unref0 (n_decision); -#line 143 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - break; -#line 1430 "YandexPublishing.c" - } -#line 121 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - case WEBKIT_POLICY_DECISION_TYPE_RESPONSE: -#line 1434 "YandexPublishing.c" - { -#line 145 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - webkit_policy_decision_use (decision); -#line 146 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - break; -#line 1440 "YandexPublishing.c" - } - default: - { -#line 148 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - result = FALSE; -#line 148 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - return result; -#line 1448 "YandexPublishing.c" - } - } -#line 150 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - result = TRUE; -#line 150 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - return result; -#line 1455 "YandexPublishing.c" -} - - -static void -publishing_yandex_web_auth_pane_class_init (PublishingYandexWebAuthPaneClass * klass) -{ -#line 95 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - publishing_yandex_web_auth_pane_parent_class = g_type_class_peek_parent (klass); -#line 95 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - g_type_class_add_private (klass, sizeof (PublishingYandexWebAuthPanePrivate)); -#line 95 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - ((GObjectClass *) klass)->constructed = (void (*) (GObject *)) publishing_yandex_web_auth_pane_real_constructed; -#line 95 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - ((ShotwellPluginsCommonWebAuthenticationPaneClass *) klass)->on_page_load = (void (*) (ShotwellPluginsCommonWebAuthenticationPane *)) publishing_yandex_web_auth_pane_real_on_page_load; -#line 95 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - G_OBJECT_CLASS (klass)->finalize = publishing_yandex_web_auth_pane_finalize; -#line 95 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - publishing_yandex_web_auth_pane_signals[PUBLISHING_YANDEX_WEB_AUTH_PANE_LOGIN_SUCCEEDED_SIGNAL] = g_signal_new ("login-succeeded", PUBLISHING_YANDEX_TYPE_WEB_AUTH_PANE, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_marshal_VOID__STRING, G_TYPE_NONE, 1, G_TYPE_STRING); -#line 95 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - publishing_yandex_web_auth_pane_signals[PUBLISHING_YANDEX_WEB_AUTH_PANE_LOGIN_FAILED_SIGNAL] = g_signal_new ("login-failed", PUBLISHING_YANDEX_TYPE_WEB_AUTH_PANE, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_marshal_VOID__VOID, G_TYPE_NONE, 0); -#line 1476 "YandexPublishing.c" -} - - -static void -publishing_yandex_web_auth_pane_instance_init (PublishingYandexWebAuthPane * self) -{ -#line 95 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - self->priv = PUBLISHING_YANDEX_WEB_AUTH_PANE_GET_PRIVATE (self); -#line 1485 "YandexPublishing.c" -} - - -static void -publishing_yandex_web_auth_pane_finalize (GObject * obj) -{ - PublishingYandexWebAuthPane * self; -#line 95 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, PUBLISHING_YANDEX_TYPE_WEB_AUTH_PANE, PublishingYandexWebAuthPane); -#line 96 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _g_regex_unref0 (self->priv->re); -#line 95 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - G_OBJECT_CLASS (publishing_yandex_web_auth_pane_parent_class)->finalize (obj); -#line 1499 "YandexPublishing.c" -} - - -GType -publishing_yandex_web_auth_pane_get_type (void) -{ - static volatile gsize publishing_yandex_web_auth_pane_type_id__volatile = 0; - if (g_once_init_enter (&publishing_yandex_web_auth_pane_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (PublishingYandexWebAuthPaneClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) publishing_yandex_web_auth_pane_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PublishingYandexWebAuthPane), 0, (GInstanceInitFunc) publishing_yandex_web_auth_pane_instance_init, NULL }; - GType publishing_yandex_web_auth_pane_type_id; - publishing_yandex_web_auth_pane_type_id = g_type_register_static (SHOTWELL_PLUGINS_COMMON_TYPE_WEB_AUTHENTICATION_PANE, "PublishingYandexWebAuthPane", &g_define_type_info, 0); - g_once_init_leave (&publishing_yandex_web_auth_pane_type_id__volatile, publishing_yandex_web_auth_pane_type_id); - } - return publishing_yandex_web_auth_pane_type_id__volatile; -} - - -PublishingYandexPublishOptions* -publishing_yandex_publish_options_construct (GType object_type) -{ - PublishingYandexPublishOptions* self = NULL; -#line 154 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - self = (PublishingYandexPublishOptions*) g_type_create_instance (object_type); -#line 154 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - return self; -#line 1525 "YandexPublishing.c" -} - - -PublishingYandexPublishOptions* -publishing_yandex_publish_options_new (void) -{ -#line 154 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - return publishing_yandex_publish_options_construct (PUBLISHING_YANDEX_TYPE_PUBLISH_OPTIONS); -#line 1534 "YandexPublishing.c" -} - - -static void -publishing_yandex_value_publish_options_init (GValue* value) -{ -#line 154 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - value->data[0].v_pointer = NULL; -#line 1543 "YandexPublishing.c" -} - - -static void -publishing_yandex_value_publish_options_free_value (GValue* value) -{ -#line 154 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - if (value->data[0].v_pointer) { -#line 154 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - publishing_yandex_publish_options_unref (value->data[0].v_pointer); -#line 1554 "YandexPublishing.c" - } -} - - -static void -publishing_yandex_value_publish_options_copy_value (const GValue* src_value, - GValue* dest_value) -{ -#line 154 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - if (src_value->data[0].v_pointer) { -#line 154 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - dest_value->data[0].v_pointer = publishing_yandex_publish_options_ref (src_value->data[0].v_pointer); -#line 1567 "YandexPublishing.c" - } else { -#line 154 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - dest_value->data[0].v_pointer = NULL; -#line 1571 "YandexPublishing.c" - } -} - - -static gpointer -publishing_yandex_value_publish_options_peek_pointer (const GValue* value) -{ -#line 154 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - return value->data[0].v_pointer; -#line 1581 "YandexPublishing.c" -} - - -static gchar* -publishing_yandex_value_publish_options_collect_value (GValue* value, - guint n_collect_values, - GTypeCValue* collect_values, - guint collect_flags) -{ -#line 154 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - if (collect_values[0].v_pointer) { -#line 1593 "YandexPublishing.c" - PublishingYandexPublishOptions * object; - object = collect_values[0].v_pointer; -#line 154 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - if (object->parent_instance.g_class == NULL) { -#line 154 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL); -#line 1600 "YandexPublishing.c" - } else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) { -#line 154 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - return g_strconcat ("invalid object type `", g_type_name (G_TYPE_FROM_INSTANCE (object)), "' for value type `", G_VALUE_TYPE_NAME (value), "'", NULL); -#line 1604 "YandexPublishing.c" - } -#line 154 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - value->data[0].v_pointer = publishing_yandex_publish_options_ref (object); -#line 1608 "YandexPublishing.c" - } else { -#line 154 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - value->data[0].v_pointer = NULL; -#line 1612 "YandexPublishing.c" - } -#line 154 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - return NULL; -#line 1616 "YandexPublishing.c" -} - - -static gchar* -publishing_yandex_value_publish_options_lcopy_value (const GValue* value, - guint n_collect_values, - GTypeCValue* collect_values, - guint collect_flags) -{ - PublishingYandexPublishOptions ** object_p; - object_p = collect_values[0].v_pointer; -#line 154 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - if (!object_p) { -#line 154 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value)); -#line 1632 "YandexPublishing.c" - } -#line 154 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - if (!value->data[0].v_pointer) { -#line 154 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - *object_p = NULL; -#line 1638 "YandexPublishing.c" - } else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) { -#line 154 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - *object_p = value->data[0].v_pointer; -#line 1642 "YandexPublishing.c" - } else { -#line 154 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - *object_p = publishing_yandex_publish_options_ref (value->data[0].v_pointer); -#line 1646 "YandexPublishing.c" - } -#line 154 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - return NULL; -#line 1650 "YandexPublishing.c" -} - - -GParamSpec* -publishing_yandex_param_spec_publish_options (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags) -{ - PublishingYandexParamSpecPublishOptions* spec; -#line 154 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - g_return_val_if_fail (g_type_is_a (object_type, PUBLISHING_YANDEX_TYPE_PUBLISH_OPTIONS), NULL); -#line 154 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags); -#line 154 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - G_PARAM_SPEC (spec)->value_type = object_type; -#line 154 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - return G_PARAM_SPEC (spec); -#line 1670 "YandexPublishing.c" -} - - -gpointer -publishing_yandex_value_get_publish_options (const GValue* value) -{ -#line 154 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, PUBLISHING_YANDEX_TYPE_PUBLISH_OPTIONS), NULL); -#line 154 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - return value->data[0].v_pointer; -#line 1681 "YandexPublishing.c" -} - - -void -publishing_yandex_value_set_publish_options (GValue* value, - gpointer v_object) -{ - PublishingYandexPublishOptions * old; -#line 154 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, PUBLISHING_YANDEX_TYPE_PUBLISH_OPTIONS)); -#line 154 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - old = value->data[0].v_pointer; -#line 154 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - if (v_object) { -#line 154 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, PUBLISHING_YANDEX_TYPE_PUBLISH_OPTIONS)); -#line 154 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value))); -#line 154 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - value->data[0].v_pointer = v_object; -#line 154 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - publishing_yandex_publish_options_ref (value->data[0].v_pointer); -#line 1704 "YandexPublishing.c" - } else { -#line 154 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - value->data[0].v_pointer = NULL; -#line 1708 "YandexPublishing.c" - } -#line 154 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - if (old) { -#line 154 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - publishing_yandex_publish_options_unref (old); -#line 1714 "YandexPublishing.c" - } -} - - -void -publishing_yandex_value_take_publish_options (GValue* value, - gpointer v_object) -{ - PublishingYandexPublishOptions * old; -#line 154 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, PUBLISHING_YANDEX_TYPE_PUBLISH_OPTIONS)); -#line 154 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - old = value->data[0].v_pointer; -#line 154 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - if (v_object) { -#line 154 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, PUBLISHING_YANDEX_TYPE_PUBLISH_OPTIONS)); -#line 154 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value))); -#line 154 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - value->data[0].v_pointer = v_object; -#line 1736 "YandexPublishing.c" - } else { -#line 154 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - value->data[0].v_pointer = NULL; -#line 1740 "YandexPublishing.c" - } -#line 154 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - if (old) { -#line 154 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - publishing_yandex_publish_options_unref (old); -#line 1746 "YandexPublishing.c" - } -} - - -static void -publishing_yandex_publish_options_class_init (PublishingYandexPublishOptionsClass * klass) -{ -#line 154 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - publishing_yandex_publish_options_parent_class = g_type_class_peek_parent (klass); -#line 154 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - ((PublishingYandexPublishOptionsClass *) klass)->finalize = publishing_yandex_publish_options_finalize; -#line 1758 "YandexPublishing.c" -} - - -static void -publishing_yandex_publish_options_instance_init (PublishingYandexPublishOptions * self) -{ -#line 155 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - self->disable_comments = FALSE; -#line 156 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - self->hide_original = FALSE; -#line 159 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - self->destination_album = NULL; -#line 160 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - self->destination_album_url = NULL; -#line 154 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - self->ref_count = 1; -#line 1775 "YandexPublishing.c" -} - - -static void -publishing_yandex_publish_options_finalize (PublishingYandexPublishOptions * obj) -{ - PublishingYandexPublishOptions * self; -#line 154 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, PUBLISHING_YANDEX_TYPE_PUBLISH_OPTIONS, PublishingYandexPublishOptions); -#line 154 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - g_signal_handlers_destroy (self); -#line 157 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _g_free0 (self->access_type); -#line 159 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _g_free0 (self->destination_album); -#line 160 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _g_free0 (self->destination_album_url); -#line 1793 "YandexPublishing.c" -} - - -GType -publishing_yandex_publish_options_get_type (void) -{ - static volatile gsize publishing_yandex_publish_options_type_id__volatile = 0; - if (g_once_init_enter (&publishing_yandex_publish_options_type_id__volatile)) { - static const GTypeValueTable g_define_type_value_table = { publishing_yandex_value_publish_options_init, publishing_yandex_value_publish_options_free_value, publishing_yandex_value_publish_options_copy_value, publishing_yandex_value_publish_options_peek_pointer, "p", publishing_yandex_value_publish_options_collect_value, "p", publishing_yandex_value_publish_options_lcopy_value }; - static const GTypeInfo g_define_type_info = { sizeof (PublishingYandexPublishOptionsClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) publishing_yandex_publish_options_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PublishingYandexPublishOptions), 0, (GInstanceInitFunc) publishing_yandex_publish_options_instance_init, &g_define_type_value_table }; - static const GTypeFundamentalInfo g_define_type_fundamental_info = { (G_TYPE_FLAG_CLASSED | G_TYPE_FLAG_INSTANTIATABLE | G_TYPE_FLAG_DERIVABLE | G_TYPE_FLAG_DEEP_DERIVABLE) }; - GType publishing_yandex_publish_options_type_id; - publishing_yandex_publish_options_type_id = g_type_register_fundamental (g_type_fundamental_next (), "PublishingYandexPublishOptions", &g_define_type_info, &g_define_type_fundamental_info, 0); - g_once_init_leave (&publishing_yandex_publish_options_type_id__volatile, publishing_yandex_publish_options_type_id); - } - return publishing_yandex_publish_options_type_id__volatile; -} - - -gpointer -publishing_yandex_publish_options_ref (gpointer instance) -{ - PublishingYandexPublishOptions * self; - self = instance; -#line 154 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - g_atomic_int_inc (&self->ref_count); -#line 154 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - return instance; -#line 1822 "YandexPublishing.c" -} - - -void -publishing_yandex_publish_options_unref (gpointer instance) -{ - PublishingYandexPublishOptions * self; - self = instance; -#line 154 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - if (g_atomic_int_dec_and_test (&self->ref_count)) { -#line 154 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - PUBLISHING_YANDEX_PUBLISH_OPTIONS_GET_CLASS (self)->finalize (self); -#line 154 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - g_type_free_instance ((GTypeInstance *) self); -#line 1837 "YandexPublishing.c" - } -} - - -static SpitPublishingDialogPaneGeometryOptions -publishing_yandex_publishing_options_pane_real_get_preferred_geometry (SpitPublishingDialogPane* base) -{ - PublishingYandexPublishingOptionsPane * self; - SpitPublishingDialogPaneGeometryOptions result = 0; -#line 175 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_YANDEX_TYPE_PUBLISHING_OPTIONS_PANE, PublishingYandexPublishingOptionsPane); -#line 176 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - result = SPIT_PUBLISHING_DIALOG_PANE_GEOMETRY_OPTIONS_NONE; -#line 176 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - return result; -#line 1853 "YandexPublishing.c" -} - - -static void -publishing_yandex_publishing_options_pane_real_on_pane_installed (SpitPublishingDialogPane* base) -{ - PublishingYandexPublishingOptionsPane * self; -#line 178 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_YANDEX_TYPE_PUBLISHING_OPTIONS_PANE, PublishingYandexPublishingOptionsPane); -#line 1863 "YandexPublishing.c" -} - - -static void -publishing_yandex_publishing_options_pane_real_on_pane_uninstalled (SpitPublishingDialogPane* base) -{ - PublishingYandexPublishingOptionsPane * self; -#line 180 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_YANDEX_TYPE_PUBLISHING_OPTIONS_PANE, PublishingYandexPublishingOptionsPane); -#line 1873 "YandexPublishing.c" -} - - -static GtkWidget* -publishing_yandex_publishing_options_pane_real_get_widget (SpitPublishingDialogPane* base) -{ - PublishingYandexPublishingOptionsPane * self; - GtkWidget* result = NULL; - GtkBox* _tmp0_; - GtkWidget* _tmp1_; -#line 182 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_YANDEX_TYPE_PUBLISHING_OPTIONS_PANE, PublishingYandexPublishingOptionsPane); -#line 183 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp0_ = self->priv->box; -#line 183 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp1_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, gtk_widget_get_type (), GtkWidget)); -#line 183 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - result = _tmp1_; -#line 183 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - return result; -#line 1894 "YandexPublishing.c" -} - - -static void -_publishing_yandex_publishing_options_pane_on_publish_clicked_gtk_button_clicked (GtkButton* _sender, - gpointer self) -{ -#line 208 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - publishing_yandex_publishing_options_pane_on_publish_clicked ((PublishingYandexPublishingOptionsPane*) self); -#line 1904 "YandexPublishing.c" -} - - -static void -_publishing_yandex_publishing_options_pane_on_logout_clicked_gtk_button_clicked (GtkButton* _sender, - gpointer self) -{ -#line 209 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - publishing_yandex_publishing_options_pane_on_logout_clicked ((PublishingYandexPublishingOptionsPane*) self); -#line 1914 "YandexPublishing.c" -} - - -PublishingYandexPublishingOptionsPane* -publishing_yandex_publishing_options_pane_construct (GType object_type, - PublishingYandexPublishOptions* options, - GeeHashMap* list, - SpitPublishingPluginHost* host) -{ - PublishingYandexPublishingOptionsPane * self = NULL; - GtkBox* _tmp0_; - GError * _inner_error_ = NULL; -#line 186 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - g_return_val_if_fail (PUBLISHING_YANDEX_IS_PUBLISH_OPTIONS (options), NULL); -#line 186 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - g_return_val_if_fail (GEE_IS_HASH_MAP (list), NULL); -#line 186 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - g_return_val_if_fail (SPIT_PUBLISHING_IS_PLUGIN_HOST (host), NULL); -#line 186 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - self = (PublishingYandexPublishingOptionsPane*) g_object_new (object_type, NULL); -#line 188 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - self->priv->options = options; -#line 190 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp0_ = (GtkBox*) gtk_box_new (GTK_ORIENTATION_VERTICAL, 0); -#line 190 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - g_object_ref_sink (_tmp0_); -#line 190 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _g_object_unref0 (self->priv->box); -#line 190 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - self->priv->box = _tmp0_; -#line 1945 "YandexPublishing.c" - { - GtkBuilder* _tmp1_; - GtkBuilder* _tmp2_; - GtkBuilder* _tmp3_; - GtkWidget* content = NULL; - GtkBuilder* _tmp4_; - GObject* _tmp5_; - GtkWidget* _tmp6_; - GtkBuilder* _tmp7_; - GObject* _tmp8_; - GtkComboBoxText* _tmp9_; - GtkComboBoxText* _tmp20_; - GtkBuilder* _tmp21_; - GObject* _tmp22_; - GtkButton* _tmp23_; - GtkBuilder* _tmp24_; - GObject* _tmp25_; - GtkButton* _tmp26_; - GtkButton* _tmp27_; - GtkButton* _tmp28_; - GtkWidget* _tmp29_; - GtkContainer* _tmp30_; - GtkContainer* _tmp31_; - GtkWidget* _tmp32_; - GtkBox* _tmp33_; - GtkWidget* _tmp34_; -#line 193 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp1_ = gtk_builder_new (); -#line 193 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _g_object_unref0 (self->priv->builder); -#line 193 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - self->priv->builder = _tmp1_; -#line 194 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp2_ = self->priv->builder; -#line 194 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - gtk_builder_add_from_resource (_tmp2_, PLUGIN_RESOURCE_PATH "/yandex_publish_model.ui", &_inner_error_); -#line 194 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 1984 "YandexPublishing.c" - goto __catch33_g_error; - } -#line 196 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp3_ = self->priv->builder; -#line 196 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - gtk_builder_connect_signals (_tmp3_, NULL); -#line 197 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp4_ = self->priv->builder; -#line 197 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp5_ = gtk_builder_get_object (_tmp4_, "content"); -#line 197 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp6_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp5_, gtk_widget_get_type ()) ? ((GtkWidget*) _tmp5_) : NULL); -#line 197 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - content = _tmp6_; -#line 199 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp7_ = self->priv->builder; -#line 199 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp8_ = gtk_builder_get_object (_tmp7_, "album_list"); -#line 199 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp9_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp8_, gtk_combo_box_text_get_type ()) ? ((GtkComboBoxText*) _tmp8_) : NULL); -#line 199 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _g_object_unref0 (self->priv->album_list); -#line 199 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - self->priv->album_list = _tmp9_; -#line 2009 "YandexPublishing.c" - { - GeeIterator* _key_it = NULL; - GeeSet* _tmp10_; - GeeSet* _tmp11_; - GeeSet* _tmp12_; - GeeIterator* _tmp13_; - GeeIterator* _tmp14_; -#line 200 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp10_ = gee_abstract_map_get_keys (G_TYPE_CHECK_INSTANCE_CAST (list, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap)); -#line 200 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp11_ = _tmp10_; -#line 200 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp12_ = _tmp11_; -#line 200 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp13_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp12_, GEE_TYPE_ITERABLE, GeeIterable)); -#line 200 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp14_ = _tmp13_; -#line 200 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _g_object_unref0 (_tmp12_); -#line 200 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _key_it = _tmp14_; -#line 200 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - while (TRUE) { -#line 2033 "YandexPublishing.c" - GeeIterator* _tmp15_; - gchar* key = NULL; - GeeIterator* _tmp16_; - gpointer _tmp17_; - GtkComboBoxText* _tmp18_; - const gchar* _tmp19_; -#line 200 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp15_ = _key_it; -#line 200 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - if (!gee_iterator_next (_tmp15_)) { -#line 200 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - break; -#line 2046 "YandexPublishing.c" - } -#line 200 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp16_ = _key_it; -#line 200 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp17_ = gee_iterator_get (_tmp16_); -#line 200 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - key = (gchar*) _tmp17_; -#line 201 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp18_ = self->priv->album_list; -#line 201 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp19_ = key; -#line 201 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - gtk_combo_box_text_append_text (_tmp18_, _tmp19_); -#line 200 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _g_free0 (key); -#line 2062 "YandexPublishing.c" - } -#line 200 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _g_object_unref0 (_key_it); -#line 2066 "YandexPublishing.c" - } -#line 203 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp20_ = self->priv->album_list; -#line 203 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - gtk_combo_box_set_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp20_, gtk_combo_box_get_type (), GtkComboBox), 0); -#line 205 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp21_ = self->priv->builder; -#line 205 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp22_ = gtk_builder_get_object (_tmp21_, "publish_button"); -#line 205 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp23_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp22_, gtk_button_get_type ()) ? ((GtkButton*) _tmp22_) : NULL); -#line 205 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _g_object_unref0 (self->priv->publish_button); -#line 205 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - self->priv->publish_button = _tmp23_; -#line 206 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp24_ = self->priv->builder; -#line 206 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp25_ = gtk_builder_get_object (_tmp24_, "logout_button"); -#line 206 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp26_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp25_, gtk_button_get_type ()) ? ((GtkButton*) _tmp25_) : NULL); -#line 206 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _g_object_unref0 (self->priv->logout_button); -#line 206 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - self->priv->logout_button = _tmp26_; -#line 208 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp27_ = self->priv->publish_button; -#line 208 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - g_signal_connect_object (_tmp27_, "clicked", (GCallback) _publishing_yandex_publishing_options_pane_on_publish_clicked_gtk_button_clicked, self, 0); -#line 209 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp28_ = self->priv->logout_button; -#line 209 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - g_signal_connect_object (_tmp28_, "clicked", (GCallback) _publishing_yandex_publishing_options_pane_on_logout_clicked_gtk_button_clicked, self, 0); -#line 211 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp29_ = content; -#line 211 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp30_ = gtk_widget_get_parent (_tmp29_); -#line 211 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp31_ = _tmp30_; -#line 211 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp32_ = content; -#line 211 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - gtk_container_remove (_tmp31_, _tmp32_); -#line 212 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp33_ = self->priv->box; -#line 212 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp34_ = content; -#line 212 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - gtk_box_pack_start (_tmp33_, _tmp34_, TRUE, TRUE, (guint) 0); -#line 192 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _g_object_unref0 (content); -#line 2118 "YandexPublishing.c" - } - goto __finally33; - __catch33_g_error: - { - GError* e = NULL; - GError* _tmp35_; - const gchar* _tmp36_; -#line 192 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - e = _inner_error_; -#line 192 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _inner_error_ = NULL; -#line 214 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp35_ = e; -#line 214 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp36_ = _tmp35_->message; -#line 214 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - g_warning ("YandexPublishing.vala:214: Could not load UI: %s", _tmp36_); -#line 192 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _g_error_free0 (e); -#line 2138 "YandexPublishing.c" - } - __finally33: -#line 192 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 192 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 192 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - g_clear_error (&_inner_error_); -#line 192 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - return NULL; -#line 2149 "YandexPublishing.c" - } -#line 186 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - return self; -#line 2153 "YandexPublishing.c" -} - - -PublishingYandexPublishingOptionsPane* -publishing_yandex_publishing_options_pane_new (PublishingYandexPublishOptions* options, - GeeHashMap* list, - SpitPublishingPluginHost* host) -{ -#line 186 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - return publishing_yandex_publishing_options_pane_construct (PUBLISHING_YANDEX_TYPE_PUBLISHING_OPTIONS_PANE, options, list, host); -#line 2164 "YandexPublishing.c" -} - - -static void -publishing_yandex_publishing_options_pane_on_logout_clicked (PublishingYandexPublishingOptionsPane* self) -{ -#line 218 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - g_return_if_fail (PUBLISHING_YANDEX_IS_PUBLISHING_OPTIONS_PANE (self)); -#line 219 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - g_signal_emit (self, publishing_yandex_publishing_options_pane_signals[PUBLISHING_YANDEX_PUBLISHING_OPTIONS_PANE_LOGOUT_SIGNAL], 0); -#line 2175 "YandexPublishing.c" -} - - -static void -publishing_yandex_publishing_options_pane_on_publish_clicked (PublishingYandexPublishingOptionsPane* self) -{ - PublishingYandexPublishOptions* _tmp0_; - GtkComboBoxText* _tmp1_; - gchar* _tmp2_; - GtkCheckButton* tmp = NULL; - GtkBuilder* _tmp3_; - GObject* _tmp4_; - GtkCheckButton* _tmp5_; - PublishingYandexPublishOptions* _tmp6_; - GtkCheckButton* _tmp7_; - gboolean _tmp8_; - gboolean _tmp9_; - GtkBuilder* _tmp10_; - GObject* _tmp11_; - GtkCheckButton* _tmp12_; - PublishingYandexPublishOptions* _tmp13_; - GtkCheckButton* _tmp14_; - gboolean _tmp15_; - gboolean _tmp16_; - GtkComboBoxText* access_type = NULL; - GtkBuilder* _tmp17_; - GObject* _tmp18_; - GtkComboBoxText* _tmp19_; - PublishingYandexPublishOptions* _tmp20_; - gchar* _tmp21_; -#line 222 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - g_return_if_fail (PUBLISHING_YANDEX_IS_PUBLISHING_OPTIONS_PANE (self)); -#line 223 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp0_ = self->priv->options; -#line 223 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp1_ = self->priv->album_list; -#line 223 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp2_ = gtk_combo_box_text_get_active_text (_tmp1_); -#line 223 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _g_free0 (_tmp0_->destination_album); -#line 223 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp0_->destination_album = _tmp2_; -#line 225 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp3_ = self->priv->builder; -#line 225 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp4_ = gtk_builder_get_object (_tmp3_, "hide_original_check"); -#line 225 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp5_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp4_, gtk_check_button_get_type ()) ? ((GtkCheckButton*) _tmp4_) : NULL); -#line 225 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - tmp = _tmp5_; -#line 226 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp6_ = self->priv->options; -#line 226 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp7_ = tmp; -#line 226 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp8_ = gtk_toggle_button_get_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, gtk_toggle_button_get_type (), GtkToggleButton)); -#line 226 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp9_ = _tmp8_; -#line 226 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp6_->hide_original = _tmp9_; -#line 228 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp10_ = self->priv->builder; -#line 228 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp11_ = gtk_builder_get_object (_tmp10_, "disable_comments_check"); -#line 228 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp12_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp11_, gtk_check_button_get_type ()) ? ((GtkCheckButton*) _tmp11_) : NULL); -#line 228 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _g_object_unref0 (tmp); -#line 228 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - tmp = _tmp12_; -#line 229 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp13_ = self->priv->options; -#line 229 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp14_ = tmp; -#line 229 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp15_ = gtk_toggle_button_get_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp14_, gtk_toggle_button_get_type (), GtkToggleButton)); -#line 229 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp16_ = _tmp15_; -#line 229 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp13_->disable_comments = _tmp16_; -#line 231 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp17_ = self->priv->builder; -#line 231 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp18_ = gtk_builder_get_object (_tmp17_, "access_type_list"); -#line 231 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp19_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp18_, gtk_combo_box_text_get_type ()) ? ((GtkComboBoxText*) _tmp18_) : NULL); -#line 231 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - access_type = _tmp19_; -#line 232 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp20_ = self->priv->options; -#line 232 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp21_ = gtk_combo_box_text_get_active_text (access_type); -#line 232 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _g_free0 (_tmp20_->access_type); -#line 232 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp20_->access_type = _tmp21_; -#line 234 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - g_signal_emit (self, publishing_yandex_publishing_options_pane_signals[PUBLISHING_YANDEX_PUBLISHING_OPTIONS_PANE_PUBLISH_SIGNAL], 0); -#line 222 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _g_object_unref0 (access_type); -#line 222 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _g_object_unref0 (tmp); -#line 2278 "YandexPublishing.c" -} - - -static void -publishing_yandex_publishing_options_pane_class_init (PublishingYandexPublishingOptionsPaneClass * klass) -{ -#line 163 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - publishing_yandex_publishing_options_pane_parent_class = g_type_class_peek_parent (klass); -#line 163 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - g_type_class_add_private (klass, sizeof (PublishingYandexPublishingOptionsPanePrivate)); -#line 163 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - G_OBJECT_CLASS (klass)->finalize = publishing_yandex_publishing_options_pane_finalize; -#line 163 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - publishing_yandex_publishing_options_pane_signals[PUBLISHING_YANDEX_PUBLISHING_OPTIONS_PANE_PUBLISH_SIGNAL] = g_signal_new ("publish", PUBLISHING_YANDEX_TYPE_PUBLISHING_OPTIONS_PANE, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_marshal_VOID__VOID, G_TYPE_NONE, 0); -#line 163 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - publishing_yandex_publishing_options_pane_signals[PUBLISHING_YANDEX_PUBLISHING_OPTIONS_PANE_LOGOUT_SIGNAL] = g_signal_new ("logout", PUBLISHING_YANDEX_TYPE_PUBLISHING_OPTIONS_PANE, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_marshal_VOID__VOID, G_TYPE_NONE, 0); -#line 2295 "YandexPublishing.c" -} - - -static void -publishing_yandex_publishing_options_pane_spit_publishing_dialog_pane_interface_init (SpitPublishingDialogPaneIface * iface) -{ -#line 163 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - publishing_yandex_publishing_options_pane_spit_publishing_dialog_pane_parent_iface = g_type_interface_peek_parent (iface); -#line 163 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - iface->get_preferred_geometry = (SpitPublishingDialogPaneGeometryOptions (*) (SpitPublishingDialogPane *)) publishing_yandex_publishing_options_pane_real_get_preferred_geometry; -#line 163 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - iface->on_pane_installed = (void (*) (SpitPublishingDialogPane *)) publishing_yandex_publishing_options_pane_real_on_pane_installed; -#line 163 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - iface->on_pane_uninstalled = (void (*) (SpitPublishingDialogPane *)) publishing_yandex_publishing_options_pane_real_on_pane_uninstalled; -#line 163 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - iface->get_widget = (GtkWidget* (*) (SpitPublishingDialogPane *)) publishing_yandex_publishing_options_pane_real_get_widget; -#line 2312 "YandexPublishing.c" -} - - -static void -publishing_yandex_publishing_options_pane_instance_init (PublishingYandexPublishingOptionsPane * self) -{ -#line 163 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - self->priv = PUBLISHING_YANDEX_PUBLISHING_OPTIONS_PANE_GET_PRIVATE (self); -#line 2321 "YandexPublishing.c" -} - - -static void -publishing_yandex_publishing_options_pane_finalize (GObject * obj) -{ - PublishingYandexPublishingOptionsPane * self; -#line 163 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, PUBLISHING_YANDEX_TYPE_PUBLISHING_OPTIONS_PANE, PublishingYandexPublishingOptionsPane); -#line 164 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _g_object_unref0 (self->priv->box); -#line 165 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _g_object_unref0 (self->priv->builder); -#line 166 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _g_object_unref0 (self->priv->logout_button); -#line 167 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _g_object_unref0 (self->priv->publish_button); -#line 168 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _g_object_unref0 (self->priv->album_list); -#line 163 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - G_OBJECT_CLASS (publishing_yandex_publishing_options_pane_parent_class)->finalize (obj); -#line 2343 "YandexPublishing.c" -} - - -GType -publishing_yandex_publishing_options_pane_get_type (void) -{ - static volatile gsize publishing_yandex_publishing_options_pane_type_id__volatile = 0; - if (g_once_init_enter (&publishing_yandex_publishing_options_pane_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (PublishingYandexPublishingOptionsPaneClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) publishing_yandex_publishing_options_pane_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PublishingYandexPublishingOptionsPane), 0, (GInstanceInitFunc) publishing_yandex_publishing_options_pane_instance_init, NULL }; - static const GInterfaceInfo spit_publishing_dialog_pane_info = { (GInterfaceInitFunc) publishing_yandex_publishing_options_pane_spit_publishing_dialog_pane_interface_init, (GInterfaceFinalizeFunc) NULL, NULL}; - GType publishing_yandex_publishing_options_pane_type_id; - publishing_yandex_publishing_options_pane_type_id = g_type_register_static (G_TYPE_OBJECT, "PublishingYandexPublishingOptionsPane", &g_define_type_info, 0); - g_type_add_interface_static (publishing_yandex_publishing_options_pane_type_id, SPIT_PUBLISHING_TYPE_DIALOG_PANE, &spit_publishing_dialog_pane_info); - g_once_init_leave (&publishing_yandex_publishing_options_pane_type_id__volatile, publishing_yandex_publishing_options_pane_type_id); - } - return publishing_yandex_publishing_options_pane_type_id__volatile; -} - - -PublishingYandexUploader* -publishing_yandex_uploader_construct (GType object_type, - PublishingYandexSession* session, - PublishingYandexPublishOptions* options, - SpitPublishingPublishable** photos, - int photos_length1) -{ - PublishingYandexUploader* self = NULL; -#line 241 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - g_return_val_if_fail (PUBLISHING_YANDEX_IS_SESSION (session), NULL); -#line 241 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - g_return_val_if_fail (PUBLISHING_YANDEX_IS_PUBLISH_OPTIONS (options), NULL); -#line 242 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - self = (PublishingYandexUploader*) publishing_rest_support_batch_uploader_construct (object_type, G_TYPE_CHECK_INSTANCE_CAST (session, PUBLISHING_REST_SUPPORT_TYPE_SESSION, PublishingRESTSupportSession), photos, photos_length1); -#line 244 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - self->priv->options = options; -#line 241 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - return self; -#line 2381 "YandexPublishing.c" -} - - -PublishingYandexUploader* -publishing_yandex_uploader_new (PublishingYandexSession* session, - PublishingYandexPublishOptions* options, - SpitPublishingPublishable** photos, - int photos_length1) -{ -#line 241 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - return publishing_yandex_uploader_construct (PUBLISHING_YANDEX_TYPE_UPLOADER, session, options, photos, photos_length1); -#line 2393 "YandexPublishing.c" -} - - -static PublishingRESTSupportTransaction* -publishing_yandex_uploader_real_create_transaction (PublishingRESTSupportBatchUploader* base, - SpitPublishingPublishable* publishable) -{ - PublishingYandexUploader * self; - PublishingRESTSupportTransaction* result = NULL; - PublishingRESTSupportSession* _tmp0_; - PublishingYandexSession* _tmp1_; - PublishingYandexPublishOptions* _tmp2_; - SpitPublishingPublishable* _tmp3_; - SpitPublishingPublishable* _tmp4_; - PublishingYandexUploadTransaction* _tmp5_; - PublishingRESTSupportTransaction* _tmp6_; -#line 247 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_YANDEX_TYPE_UPLOADER, PublishingYandexUploader); -#line 247 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - g_return_val_if_fail (SPIT_PUBLISHING_IS_PUBLISHABLE (publishable), NULL); -#line 248 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - g_debug ("YandexPublishing.vala:248: create transaction"); -#line 249 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp0_ = publishing_rest_support_batch_uploader_get_session (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_BATCH_UPLOADER, PublishingRESTSupportBatchUploader)); -#line 249 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp1_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, PUBLISHING_YANDEX_TYPE_SESSION, PublishingYandexSession); -#line 249 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp2_ = self->priv->options; -#line 249 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp3_ = publishing_rest_support_batch_uploader_get_current_publishable (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_BATCH_UPLOADER, PublishingRESTSupportBatchUploader)); -#line 249 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp4_ = _tmp3_; -#line 249 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp5_ = publishing_yandex_upload_transaction_new (_tmp1_, _tmp2_, _tmp4_); -#line 249 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp6_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction); -#line 249 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _g_object_unref0 (_tmp4_); -#line 249 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _publishing_rest_support_session_unref0 (_tmp1_); -#line 249 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - result = _tmp6_; -#line 249 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - return result; -#line 2438 "YandexPublishing.c" -} - - -static void -publishing_yandex_uploader_class_init (PublishingYandexUploaderClass * klass) -{ -#line 238 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - publishing_yandex_uploader_parent_class = g_type_class_peek_parent (klass); -#line 238 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - ((PublishingRESTSupportBatchUploaderClass *) klass)->finalize = publishing_yandex_uploader_finalize; -#line 238 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - g_type_class_add_private (klass, sizeof (PublishingYandexUploaderPrivate)); -#line 238 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - ((PublishingRESTSupportBatchUploaderClass *) klass)->create_transaction = (PublishingRESTSupportTransaction* (*) (PublishingRESTSupportBatchUploader *, SpitPublishingPublishable*)) publishing_yandex_uploader_real_create_transaction; -#line 2453 "YandexPublishing.c" -} - - -static void -publishing_yandex_uploader_instance_init (PublishingYandexUploader * self) -{ -#line 238 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - self->priv = PUBLISHING_YANDEX_UPLOADER_GET_PRIVATE (self); -#line 2462 "YandexPublishing.c" -} - - -static void -publishing_yandex_uploader_finalize (PublishingRESTSupportBatchUploader * obj) -{ - PublishingYandexUploader * self; -#line 238 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, PUBLISHING_YANDEX_TYPE_UPLOADER, PublishingYandexUploader); -#line 238 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - PUBLISHING_REST_SUPPORT_BATCH_UPLOADER_CLASS (publishing_yandex_uploader_parent_class)->finalize (obj); -#line 2474 "YandexPublishing.c" -} - - -GType -publishing_yandex_uploader_get_type (void) -{ - static volatile gsize publishing_yandex_uploader_type_id__volatile = 0; - if (g_once_init_enter (&publishing_yandex_uploader_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (PublishingYandexUploaderClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) publishing_yandex_uploader_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PublishingYandexUploader), 0, (GInstanceInitFunc) publishing_yandex_uploader_instance_init, NULL }; - GType publishing_yandex_uploader_type_id; - publishing_yandex_uploader_type_id = g_type_register_static (PUBLISHING_REST_SUPPORT_TYPE_BATCH_UPLOADER, "PublishingYandexUploader", &g_define_type_info, 0); - g_once_init_leave (&publishing_yandex_uploader_type_id__volatile, publishing_yandex_uploader_type_id); - } - return publishing_yandex_uploader_type_id__volatile; -} - - -static gchar* -bool_to_string (gboolean self) -{ - gchar* result = NULL; -#line 37 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - if (self) { -#line 2498 "YandexPublishing.c" - gchar* _tmp0_; -#line 38 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp0_ = g_strdup ("true"); -#line 38 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - result = _tmp0_; -#line 38 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - return result; -#line 2506 "YandexPublishing.c" - } else { - gchar* _tmp1_; -#line 40 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp1_ = g_strdup ("false"); -#line 40 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - result = _tmp1_; -#line 40 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - return result; -#line 2515 "YandexPublishing.c" - } -} - - -static void -_vala_SoupMultipart_free (SoupMultipart* self) -{ -#line 271 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - g_boxed_free (soup_multipart_get_type (), self); -#line 2525 "YandexPublishing.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 1442 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - g_return_val_if_fail (self != NULL, NULL); -#line 1443 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - res = (guint8*) self; -#line 1443 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - res_length1 = -1; -#line 1443 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _res_size_ = res_length1; -#line 1444 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp0_ = strlen (self); -#line 1444 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp1_ = _tmp0_; -#line 1444 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - res_length1 = (gint) _tmp1_; -#line 1444 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp2_ = res_length1; -#line 1445 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp3_ = res; -#line 1445 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp3__length1 = res_length1; -#line 1445 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp4_ = _tmp3_; -#line 1445 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp4__length1 = _tmp3__length1; -#line 1445 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - if (result_length1) { -#line 1445 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - *result_length1 = _tmp4__length1; -#line 2572 "YandexPublishing.c" - } -#line 1445 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - result = _tmp4_; -#line 1445 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - return result; -#line 2578 "YandexPublishing.c" -} - - -static void -_g_free0_ (gpointer var) -{ -#line 285 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - var = (g_free (var), NULL); -#line 2587 "YandexPublishing.c" -} - - -static void -_vala_SoupBuffer_free (SoupBuffer* self) -{ -#line 254 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - g_boxed_free (soup_buffer_get_type (), self); -#line 2596 "YandexPublishing.c" -} - - -PublishingYandexUploadTransaction* -publishing_yandex_upload_transaction_construct (GType object_type, - PublishingYandexSession* session, - PublishingYandexPublishOptions* options, - SpitPublishingPublishable* photo) -{ - PublishingYandexUploadTransaction* self = NULL; - const gchar* _tmp0_; - gchar* _tmp1_; - gchar* _tmp2_; - const gchar* _tmp3_; - const gchar* _tmp4_; - SoupMultipart* message_parts = NULL; - SoupMultipart* _tmp5_; - gchar* _tmp6_; - gchar* _tmp7_; - gboolean _tmp8_; - gchar* _tmp9_; - gchar* _tmp10_; - gboolean _tmp11_; - gchar* _tmp12_; - gchar* _tmp13_; - const gchar* _tmp14_; - gchar* _tmp15_; - gchar* _tmp16_; - gchar* photo_data = NULL; - gsize data_length = 0UL; - gint image_part_num = 0; - SoupBuffer* bindable_data = NULL; - guint8* _tmp29_; - gint _tmp29__length1; - guint8* _tmp30_; - gint _tmp30__length1; - SoupBuffer* _tmp31_; - GFile* _tmp32_; - GFile* _tmp33_; - gchar* _tmp34_; - gchar* _tmp35_; - SoupMessageHeaders* image_part_header = NULL; - SoupBuffer* image_part_body = NULL; - SoupMessageHeaders* _tmp36_ = NULL; - SoupBuffer* _tmp37_ = NULL; - GHashTable* _result_ = NULL; - GHashFunc _tmp38_; - GEqualFunc _tmp39_; - GHashTable* _tmp40_; - gchar* _tmp41_; - gchar* _tmp42_; - gchar* _tmp43_; - gchar* _tmp44_; - SoupMessage* outbound_message = NULL; - gchar* _tmp45_; - gchar* _tmp46_; - SoupMessage* _tmp47_; - SoupMessage* _tmp48_; - SoupMessageHeaders* _tmp49_; - gchar* _tmp50_; - gchar* _tmp51_; - gchar* _tmp52_; - gchar* _tmp53_; - SoupMessageHeaders* _tmp54_; - GError * _inner_error_ = NULL; -#line 254 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - g_return_val_if_fail (PUBLISHING_YANDEX_IS_SESSION (session), NULL); -#line 254 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - g_return_val_if_fail (PUBLISHING_YANDEX_IS_PUBLISH_OPTIONS (options), NULL); -#line 254 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - g_return_val_if_fail (SPIT_PUBLISHING_IS_PUBLISHABLE (photo), NULL); -#line 255 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp0_ = options->destination_album_url; -#line 255 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - self = (PublishingYandexUploadTransaction*) publishing_yandex_transaction_construct_with_url (object_type, session, _tmp0_, PUBLISHING_REST_SUPPORT_HTTP_METHOD_POST); -#line 257 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - publishing_rest_support_transaction_set_custom_payload (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "qwe", "image/jpeg", (gulong) 1); -#line 259 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp1_ = spit_publishing_publishable_get_publishing_name (photo); -#line 259 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp2_ = _tmp1_; -#line 259 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp3_ = options->destination_album; -#line 259 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp4_ = options->destination_album_url; -#line 259 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - g_debug ("YandexPublishing.vala:259: Uploading '%s' -> %s : %s", _tmp2_, _tmp3_, _tmp4_); -#line 259 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _g_free0 (_tmp2_); -#line 261 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp5_ = soup_multipart_new ("multipart/form-data"); -#line 261 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - message_parts = _tmp5_; -#line 262 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp6_ = spit_publishing_publishable_get_publishing_name (photo); -#line 262 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp7_ = _tmp6_; -#line 262 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - soup_multipart_append_form_string (message_parts, "title", _tmp7_); -#line 262 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _g_free0 (_tmp7_); -#line 263 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp8_ = options->hide_original; -#line 263 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp9_ = bool_to_string (_tmp8_); -#line 263 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp10_ = _tmp9_; -#line 263 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - soup_multipart_append_form_string (message_parts, "hide_original", _tmp10_); -#line 263 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _g_free0 (_tmp10_); -#line 264 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp11_ = options->disable_comments; -#line 264 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp12_ = bool_to_string (_tmp11_); -#line 264 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp13_ = _tmp12_; -#line 264 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - soup_multipart_append_form_string (message_parts, "disable_comments", _tmp13_); -#line 264 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _g_free0 (_tmp13_); -#line 265 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp14_ = options->access_type; -#line 265 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp15_ = g_utf8_strdown (_tmp14_, (gssize) -1); -#line 265 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp16_ = _tmp15_; -#line 265 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - soup_multipart_append_form_string (message_parts, "access", _tmp16_); -#line 265 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _g_free0 (_tmp16_); -#line 2728 "YandexPublishing.c" - { - GFile* _tmp17_; - GFile* _tmp18_; - gchar* _tmp19_; - gchar* _tmp20_; - gchar* _tmp21_ = NULL; - gsize _tmp22_ = 0UL; -#line 271 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp17_ = spit_publishing_publishable_get_serialized_file (photo); -#line 271 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp18_ = _tmp17_; -#line 271 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp19_ = g_file_get_path (_tmp18_); -#line 271 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp20_ = _tmp19_; -#line 271 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - g_file_get_contents (_tmp20_, &_tmp21_, &_tmp22_, &_inner_error_); -#line 271 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _g_free0 (photo_data); -#line 271 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - photo_data = _tmp21_; -#line 271 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - data_length = _tmp22_; -#line 271 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _g_free0 (_tmp20_); -#line 271 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _g_object_unref0 (_tmp18_); -#line 271 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 271 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - if (_inner_error_->domain == G_FILE_ERROR) { -#line 2760 "YandexPublishing.c" - goto __catch34_g_file_error; - } -#line 271 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _g_free0 (photo_data); -#line 271 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - __vala_SoupMultipart_free0 (message_parts); -#line 271 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 271 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - g_clear_error (&_inner_error_); -#line 271 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - return NULL; -#line 2773 "YandexPublishing.c" - } - } - goto __finally34; - __catch34_g_file_error: - { - GError* e = NULL; - GFile* _tmp23_; - GFile* _tmp24_; - gchar* _tmp25_; - gchar* _tmp26_; - GError* _tmp27_; - const gchar* _tmp28_; -#line 270 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - e = _inner_error_; -#line 270 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _inner_error_ = NULL; -#line 273 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp23_ = spit_publishing_publishable_get_serialized_file (photo); -#line 273 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp24_ = _tmp23_; -#line 273 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp25_ = g_file_get_path (_tmp24_); -#line 273 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp26_ = _tmp25_; -#line 273 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp27_ = e; -#line 273 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp28_ = _tmp27_->message; -#line 273 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - g_critical ("YandexPublishing.vala:273: Failed to read data file '%s': %s", _tmp26_, _tmp28_); -#line 273 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _g_free0 (_tmp26_); -#line 273 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _g_object_unref0 (_tmp24_); -#line 270 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _g_error_free0 (e); -#line 2810 "YandexPublishing.c" - } - __finally34: -#line 270 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 270 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _g_free0 (photo_data); -#line 270 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - __vala_SoupMultipart_free0 (message_parts); -#line 270 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 270 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - g_clear_error (&_inner_error_); -#line 270 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - return NULL; -#line 2825 "YandexPublishing.c" - } -#line 276 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - image_part_num = soup_multipart_get_length (message_parts); -#line 278 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp29_ = string_get_data (photo_data, &_tmp29__length1); -#line 278 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp30_ = _tmp29_; -#line 278 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp30__length1 = _tmp29__length1; -#line 278 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp31_ = soup_buffer_new (SOUP_MEMORY_COPY, _tmp30_ + 0, ((gint) data_length) - 0); -#line 278 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - bindable_data = _tmp31_; -#line 279 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp32_ = spit_publishing_publishable_get_serialized_file (photo); -#line 279 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp33_ = _tmp32_; -#line 279 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp34_ = g_file_get_path (_tmp33_); -#line 279 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp35_ = _tmp34_; -#line 279 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - soup_multipart_append_form_file (message_parts, "", _tmp35_, "image/jpeg", bindable_data); -#line 279 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _g_free0 (_tmp35_); -#line 279 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _g_object_unref0 (_tmp33_); -#line 283 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - soup_multipart_get_part (message_parts, image_part_num, &_tmp36_, &_tmp37_); -#line 283 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - image_part_header = _tmp36_; -#line 283 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - image_part_body = _tmp37_; -#line 285 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp38_ = g_str_hash; -#line 285 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp39_ = g_str_equal; -#line 285 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp40_ = g_hash_table_new_full (_tmp38_, _tmp39_, _g_free0_, _g_free0_); -#line 285 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _result_ = _tmp40_; -#line 286 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp41_ = g_strdup ("name"); -#line 286 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp42_ = g_strdup ("image"); -#line 286 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - g_hash_table_insert (_result_, _tmp41_, _tmp42_); -#line 287 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp43_ = g_strdup ("filename"); -#line 287 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp44_ = g_strdup ("unused"); -#line 287 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - g_hash_table_insert (_result_, _tmp43_, _tmp44_); -#line 289 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - soup_message_headers_set_content_disposition (image_part_header, "form-data", _result_); -#line 291 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp45_ = publishing_rest_support_transaction_get_endpoint_url (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction)); -#line 291 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp46_ = _tmp45_; -#line 291 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp47_ = soup_form_request_new_from_multipart (_tmp46_, message_parts); -#line 291 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp48_ = _tmp47_; -#line 291 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _g_free0 (_tmp46_); -#line 291 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - outbound_message = _tmp48_; -#line 292 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp49_ = outbound_message->request_headers; -#line 292 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp50_ = publishing_yandex_session_get_auth_token (session); -#line 292 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp51_ = _tmp50_; -#line 292 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp52_ = g_strdup_printf ("OAuth %s", _tmp51_); -#line 292 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp53_ = _tmp52_; -#line 292 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - soup_message_headers_append (_tmp49_, "Authorization", _tmp53_); -#line 292 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _g_free0 (_tmp53_); -#line 292 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _g_free0 (_tmp51_); -#line 293 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp54_ = outbound_message->request_headers; -#line 293 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - soup_message_headers_append (_tmp54_, "Connection", "close"); -#line 294 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - publishing_rest_support_transaction_set_message (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), outbound_message); -#line 254 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _g_object_unref0 (outbound_message); -#line 254 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _g_hash_table_unref0 (_result_); -#line 254 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - __vala_SoupBuffer_free0 (bindable_data); -#line 254 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _g_free0 (photo_data); -#line 254 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - __vala_SoupMultipart_free0 (message_parts); -#line 254 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - return self; -#line 2927 "YandexPublishing.c" -} - - -PublishingYandexUploadTransaction* -publishing_yandex_upload_transaction_new (PublishingYandexSession* session, - PublishingYandexPublishOptions* options, - SpitPublishingPublishable* photo) -{ -#line 254 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - return publishing_yandex_upload_transaction_construct (PUBLISHING_YANDEX_TYPE_UPLOAD_TRANSACTION, session, options, photo); -#line 2938 "YandexPublishing.c" -} - - -static void -publishing_yandex_upload_transaction_class_init (PublishingYandexUploadTransactionClass * klass) -{ -#line 253 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - publishing_yandex_upload_transaction_parent_class = g_type_class_peek_parent (klass); -#line 2947 "YandexPublishing.c" -} - - -static void -publishing_yandex_upload_transaction_instance_init (PublishingYandexUploadTransaction * self) -{ -} - - -GType -publishing_yandex_upload_transaction_get_type (void) -{ - static volatile gsize publishing_yandex_upload_transaction_type_id__volatile = 0; - if (g_once_init_enter (&publishing_yandex_upload_transaction_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (PublishingYandexUploadTransactionClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) publishing_yandex_upload_transaction_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PublishingYandexUploadTransaction), 0, (GInstanceInitFunc) publishing_yandex_upload_transaction_instance_init, NULL }; - GType publishing_yandex_upload_transaction_type_id; - publishing_yandex_upload_transaction_type_id = g_type_register_static (PUBLISHING_YANDEX_TYPE_TRANSACTION, "PublishingYandexUploadTransaction", &g_define_type_info, 0); - g_once_init_leave (&publishing_yandex_upload_transaction_type_id__volatile, publishing_yandex_upload_transaction_type_id); - } - return publishing_yandex_upload_transaction_type_id__volatile; -} - - -PublishingYandexYandexPublisher* -publishing_yandex_yandex_publisher_construct (GType object_type, - SpitPublishingService* service, - SpitPublishingPluginHost* host) -{ - PublishingYandexYandexPublisher * self = NULL; - PublishingYandexSession* _tmp0_; - GeeHashMap* _tmp1_; - PublishingYandexPublishOptions* _tmp2_; -#line 314 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - g_return_val_if_fail (SPIT_PUBLISHING_IS_SERVICE (service), NULL); -#line 314 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - g_return_val_if_fail (SPIT_PUBLISHING_IS_PLUGIN_HOST (host), NULL); -#line 314 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - self = (PublishingYandexYandexPublisher*) g_object_new (object_type, NULL); -#line 315 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - self->priv->service = service; -#line 316 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - self->priv->host = host; -#line 317 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp0_ = publishing_yandex_session_new (); -#line 317 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _publishing_rest_support_session_unref0 (self->priv->session); -#line 317 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - self->priv->session = _tmp0_; -#line 318 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp1_ = gee_hash_map_new (G_TYPE_STRING, (GBoxedCopyFunc) g_strdup, (GDestroyNotify) g_free, G_TYPE_STRING, (GBoxedCopyFunc) g_strdup, (GDestroyNotify) g_free, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL); -#line 318 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _g_object_unref0 (self->priv->album_list); -#line 318 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - self->priv->album_list = _tmp1_; -#line 319 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp2_ = publishing_yandex_publish_options_new (); -#line 319 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _publishing_yandex_publish_options_unref0 (self->priv->options); -#line 319 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - self->priv->options = _tmp2_; -#line 314 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - return self; -#line 3010 "YandexPublishing.c" -} - - -PublishingYandexYandexPublisher* -publishing_yandex_yandex_publisher_new (SpitPublishingService* service, - SpitPublishingPluginHost* host) -{ -#line 314 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - return publishing_yandex_yandex_publisher_construct (PUBLISHING_YANDEX_TYPE_YANDEX_PUBLISHER, service, host); -#line 3020 "YandexPublishing.c" -} - - -gchar* -publishing_yandex_yandex_publisher_get_persistent_auth_token (PublishingYandexYandexPublisher* self) -{ - gchar* result = NULL; - SpitPublishingPluginHost* _tmp0_; - gchar* _tmp1_; -#line 322 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - g_return_val_if_fail (PUBLISHING_YANDEX_IS_YANDEX_PUBLISHER (self), NULL); -#line 323 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp0_ = self->priv->host; -#line 323 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp1_ = spit_host_interface_get_config_string (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, SPIT_TYPE_HOST_INTERFACE, SpitHostInterface), "auth_token", NULL); -#line 323 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - result = _tmp1_; -#line 323 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - return result; -#line 3040 "YandexPublishing.c" -} - - -void -publishing_yandex_yandex_publisher_set_persistent_auth_token (PublishingYandexYandexPublisher* self, - const gchar* auth_token) -{ - SpitPublishingPluginHost* _tmp0_; -#line 326 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - g_return_if_fail (PUBLISHING_YANDEX_IS_YANDEX_PUBLISHER (self)); -#line 326 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - g_return_if_fail (auth_token != NULL); -#line 327 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp0_ = self->priv->host; -#line 327 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - spit_host_interface_set_config_string (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, SPIT_TYPE_HOST_INTERFACE, SpitHostInterface), "auth_token", auth_token); -#line 3057 "YandexPublishing.c" -} - - -void -publishing_yandex_yandex_publisher_invalidate_persistent_session (PublishingYandexYandexPublisher* self) -{ - SpitPublishingPluginHost* _tmp0_; -#line 330 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - g_return_if_fail (PUBLISHING_YANDEX_IS_YANDEX_PUBLISHER (self)); -#line 331 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp0_ = self->priv->host; -#line 331 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - spit_host_interface_unset_config_key (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, SPIT_TYPE_HOST_INTERFACE, SpitHostInterface), "auth_token"); -#line 3071 "YandexPublishing.c" -} - - -gboolean -publishing_yandex_yandex_publisher_is_persistent_session_available (PublishingYandexYandexPublisher* self) -{ - gboolean result = FALSE; - gchar* _tmp0_; - gchar* _tmp1_; - gboolean _tmp2_; -#line 334 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - g_return_val_if_fail (PUBLISHING_YANDEX_IS_YANDEX_PUBLISHER (self), FALSE); -#line 335 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp0_ = publishing_yandex_yandex_publisher_get_persistent_auth_token (self); -#line 335 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp1_ = _tmp0_; -#line 335 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp2_ = _tmp1_ != NULL; -#line 335 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _g_free0 (_tmp1_); -#line 335 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - result = _tmp2_; -#line 335 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - return result; -#line 3096 "YandexPublishing.c" -} - - -static gboolean -publishing_yandex_yandex_publisher_real_is_running (SpitPublishingPublisher* base) -{ - PublishingYandexYandexPublisher * self; - gboolean result = FALSE; - gboolean _tmp0_; -#line 338 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_YANDEX_TYPE_YANDEX_PUBLISHER, PublishingYandexYandexPublisher); -#line 339 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp0_ = self->priv->running; -#line 339 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - result = _tmp0_; -#line 339 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - return result; -#line 3114 "YandexPublishing.c" -} - - -static SpitPublishingService* -publishing_yandex_yandex_publisher_real_get_service (SpitPublishingPublisher* base) -{ - PublishingYandexYandexPublisher * self; - SpitPublishingService* result = NULL; - SpitPublishingService* _tmp0_; - SpitPublishingService* _tmp1_; -#line 342 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_YANDEX_TYPE_YANDEX_PUBLISHER, PublishingYandexYandexPublisher); -#line 343 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp0_ = self->priv->service; -#line 343 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp1_ = _g_object_ref0 (_tmp0_); -#line 343 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - result = _tmp1_; -#line 343 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - return result; -#line 3135 "YandexPublishing.c" -} - - -static gchar* -publishing_yandex_yandex_publisher_check_response (PublishingYandexYandexPublisher* self, - PublishingRESTSupportXmlDocument* doc) -{ - gchar* result = NULL; -#line 346 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - g_return_val_if_fail (PUBLISHING_YANDEX_IS_YANDEX_PUBLISHER (self), NULL); -#line 346 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - g_return_val_if_fail (PUBLISHING_REST_SUPPORT_IS_XML_DOCUMENT (doc), NULL); -#line 347 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - result = NULL; -#line 347 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - return result; -#line 3152 "YandexPublishing.c" -} - - -static void -publishing_yandex_yandex_publisher_parse_album_entry (PublishingYandexYandexPublisher* self, - xmlNode* e, - GError** error) -{ - gchar* title = NULL; - gchar* link = NULL; -#line 350 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - g_return_if_fail (PUBLISHING_YANDEX_IS_YANDEX_PUBLISHER (self)); -#line 351 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - title = NULL; -#line 352 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - link = NULL; -#line 3169 "YandexPublishing.c" - { - xmlNode* c = NULL; - xmlNode* _tmp0_; -#line 354 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp0_ = e->children; -#line 354 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - c = _tmp0_; -#line 3177 "YandexPublishing.c" - { - gboolean _tmp1_ = FALSE; -#line 354 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp1_ = TRUE; -#line 354 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - while (TRUE) { -#line 3184 "YandexPublishing.c" - xmlNode* _tmp4_; - xmlNode* _tmp5_; - const gchar* _tmp6_; - gboolean _tmp9_ = FALSE; - xmlNode* _tmp10_; - const gchar* _tmp11_; - gboolean _tmp17_ = FALSE; - const gchar* _tmp18_; -#line 354 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - if (!_tmp1_) { -#line 3195 "YandexPublishing.c" - xmlNode* _tmp2_; - xmlNode* _tmp3_; -#line 354 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp2_ = c; -#line 354 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp3_ = _tmp2_->next; -#line 354 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - c = _tmp3_; -#line 3204 "YandexPublishing.c" - } -#line 354 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp1_ = FALSE; -#line 354 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp4_ = c; -#line 354 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - if (!(_tmp4_ != NULL)) { -#line 354 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - break; -#line 3214 "YandexPublishing.c" - } -#line 355 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp5_ = c; -#line 355 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp6_ = _tmp5_->name; -#line 355 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - if (g_strcmp0 (_tmp6_, "title") == 0) { -#line 3222 "YandexPublishing.c" - xmlNode* _tmp7_; - gchar* _tmp8_; -#line 356 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp7_ = c; -#line 356 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp8_ = (gchar*) xmlNodeGetContent (_tmp7_); -#line 356 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _g_free0 (title); -#line 356 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - title = _tmp8_; -#line 3233 "YandexPublishing.c" - } -#line 358 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp10_ = c; -#line 358 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp11_ = _tmp10_->name; -#line 358 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - if (g_strcmp0 (_tmp11_, "link") == 0) { -#line 3241 "YandexPublishing.c" - xmlNode* _tmp12_; - gchar* _tmp13_; - gchar* _tmp14_; -#line 358 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp12_ = c; -#line 358 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp13_ = (gchar*) xmlGetProp (_tmp12_, (xmlChar*) "rel"); -#line 358 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp14_ = _tmp13_; -#line 358 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp9_ = g_strcmp0 (_tmp14_, "photos") == 0; -#line 358 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _g_free0 (_tmp14_); -#line 3255 "YandexPublishing.c" - } else { -#line 358 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp9_ = FALSE; -#line 3259 "YandexPublishing.c" - } -#line 358 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - if (_tmp9_) { -#line 3263 "YandexPublishing.c" - xmlNode* _tmp15_; - gchar* _tmp16_; -#line 359 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp15_ = c; -#line 359 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp16_ = (gchar*) xmlGetProp (_tmp15_, (xmlChar*) "href"); -#line 359 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _g_free0 (link); -#line 359 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - link = _tmp16_; -#line 3274 "YandexPublishing.c" - } -#line 361 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp18_ = title; -#line 361 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - if (_tmp18_ != NULL) { -#line 3280 "YandexPublishing.c" - const gchar* _tmp19_; -#line 361 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp19_ = link; -#line 361 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp17_ = _tmp19_ != NULL; -#line 3286 "YandexPublishing.c" - } else { -#line 361 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp17_ = FALSE; -#line 3290 "YandexPublishing.c" - } -#line 361 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - if (_tmp17_) { -#line 3294 "YandexPublishing.c" - const gchar* _tmp20_; - const gchar* _tmp21_; - GeeHashMap* _tmp22_; - const gchar* _tmp23_; - const gchar* _tmp24_; -#line 362 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp20_ = title; -#line 362 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp21_ = link; -#line 362 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - g_debug ("YandexPublishing.vala:362: Added album: '%s', link: %s", _tmp20_, _tmp21_); -#line 363 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp22_ = self->priv->album_list; -#line 363 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp23_ = title; -#line 363 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp24_ = link; -#line 363 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - gee_abstract_map_set (G_TYPE_CHECK_INSTANCE_CAST (_tmp22_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp23_, _tmp24_); -#line 364 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _g_free0 (title); -#line 364 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - title = NULL; -#line 365 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _g_free0 (link); -#line 365 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - link = NULL; -#line 366 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - break; -#line 3324 "YandexPublishing.c" - } - } - } - } -#line 350 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _g_free0 (link); -#line 350 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _g_free0 (title); -#line 3333 "YandexPublishing.c" -} - - -static gchar* -_publishing_yandex_yandex_publisher_check_response_publishing_rest_support_xml_document_check_for_error_response (PublishingRESTSupportXmlDocument* doc, - gpointer self) -{ - gchar* result; - result = publishing_yandex_yandex_publisher_check_response ((PublishingYandexYandexPublisher*) self, doc); -#line 372 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - return result; -#line 3345 "YandexPublishing.c" -} - - -void -publishing_yandex_yandex_publisher_parse_album_creation (PublishingYandexYandexPublisher* self, - const gchar* data, - GError** error) -{ - PublishingRESTSupportXmlDocument* doc = NULL; - PublishingRESTSupportXmlDocument* _tmp0_; - xmlNode* root = NULL; - PublishingRESTSupportXmlDocument* _tmp1_; - xmlNode* _tmp2_; - xmlNode* _tmp3_; - GError * _inner_error_ = NULL; -#line 371 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - g_return_if_fail (PUBLISHING_YANDEX_IS_YANDEX_PUBLISHER (self)); -#line 371 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - g_return_if_fail (data != NULL); -#line 372 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp0_ = publishing_rest_support_xml_document_parse_string (data, _publishing_yandex_yandex_publisher_check_response_publishing_rest_support_xml_document_check_for_error_response, self, &_inner_error_); -#line 372 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - doc = _tmp0_; -#line 372 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 372 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - if (_inner_error_->domain == SPIT_PUBLISHING_PUBLISHING_ERROR) { -#line 372 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - g_propagate_error (error, _inner_error_); -#line 372 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - return; -#line 3377 "YandexPublishing.c" - } else { -#line 372 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 372 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - g_clear_error (&_inner_error_); -#line 372 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - return; -#line 3385 "YandexPublishing.c" - } - } -#line 373 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp1_ = doc; -#line 373 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp2_ = publishing_rest_support_xml_document_get_root_node (_tmp1_); -#line 373 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - root = _tmp2_; -#line 375 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp3_ = root; -#line 375 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - publishing_yandex_yandex_publisher_parse_album_entry (self, _tmp3_, &_inner_error_); -#line 375 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 375 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - if (_inner_error_->domain == SPIT_PUBLISHING_PUBLISHING_ERROR) { -#line 375 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - g_propagate_error (error, _inner_error_); -#line 375 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _publishing_rest_support_xml_document_unref0 (doc); -#line 375 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - return; -#line 3408 "YandexPublishing.c" - } else { -#line 375 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _publishing_rest_support_xml_document_unref0 (doc); -#line 375 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 375 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - g_clear_error (&_inner_error_); -#line 375 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - return; -#line 3418 "YandexPublishing.c" - } - } -#line 371 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _publishing_rest_support_xml_document_unref0 (doc); -#line 3423 "YandexPublishing.c" -} - - -void -publishing_yandex_yandex_publisher_parse_album_list (PublishingYandexYandexPublisher* self, - const gchar* data, - GError** error) -{ - PublishingRESTSupportXmlDocument* doc = NULL; - PublishingRESTSupportXmlDocument* _tmp0_; - xmlNode* root = NULL; - PublishingRESTSupportXmlDocument* _tmp1_; - xmlNode* _tmp2_; - GError * _inner_error_ = NULL; -#line 378 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - g_return_if_fail (PUBLISHING_YANDEX_IS_YANDEX_PUBLISHER (self)); -#line 378 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - g_return_if_fail (data != NULL); -#line 379 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp0_ = publishing_rest_support_xml_document_parse_string (data, _publishing_yandex_yandex_publisher_check_response_publishing_rest_support_xml_document_check_for_error_response, self, &_inner_error_); -#line 379 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - doc = _tmp0_; -#line 379 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 379 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - if (_inner_error_->domain == SPIT_PUBLISHING_PUBLISHING_ERROR) { -#line 379 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - g_propagate_error (error, _inner_error_); -#line 379 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - return; -#line 3454 "YandexPublishing.c" - } else { -#line 379 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 379 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - g_clear_error (&_inner_error_); -#line 379 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - return; -#line 3462 "YandexPublishing.c" - } - } -#line 380 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp1_ = doc; -#line 380 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp2_ = publishing_rest_support_xml_document_get_root_node (_tmp1_); -#line 380 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - root = _tmp2_; -#line 3471 "YandexPublishing.c" - { - xmlNode* e = NULL; - xmlNode* _tmp3_; - xmlNode* _tmp4_; -#line 382 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp3_ = root; -#line 382 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp4_ = _tmp3_->children; -#line 382 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - e = _tmp4_; -#line 3482 "YandexPublishing.c" - { - gboolean _tmp5_ = FALSE; -#line 382 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp5_ = TRUE; -#line 382 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - while (TRUE) { -#line 3489 "YandexPublishing.c" - xmlNode* _tmp8_; - xmlNode* _tmp9_; - const gchar* _tmp10_; - xmlNode* _tmp11_; -#line 382 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - if (!_tmp5_) { -#line 3496 "YandexPublishing.c" - xmlNode* _tmp6_; - xmlNode* _tmp7_; -#line 382 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp6_ = e; -#line 382 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp7_ = _tmp6_->next; -#line 382 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - e = _tmp7_; -#line 3505 "YandexPublishing.c" - } -#line 382 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp5_ = FALSE; -#line 382 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp8_ = e; -#line 382 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - if (!(_tmp8_ != NULL)) { -#line 382 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - break; -#line 3515 "YandexPublishing.c" - } -#line 383 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp9_ = e; -#line 383 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp10_ = _tmp9_->name; -#line 383 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - if (g_strcmp0 (_tmp10_, "entry") != 0) { -#line 384 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - continue; -#line 3525 "YandexPublishing.c" - } -#line 386 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp11_ = e; -#line 386 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - publishing_yandex_yandex_publisher_parse_album_entry (self, _tmp11_, &_inner_error_); -#line 386 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 386 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - if (_inner_error_->domain == SPIT_PUBLISHING_PUBLISHING_ERROR) { -#line 386 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - g_propagate_error (error, _inner_error_); -#line 386 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _publishing_rest_support_xml_document_unref0 (doc); -#line 386 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - return; -#line 3541 "YandexPublishing.c" - } else { -#line 386 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _publishing_rest_support_xml_document_unref0 (doc); -#line 386 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 386 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - g_clear_error (&_inner_error_); -#line 386 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - return; -#line 3551 "YandexPublishing.c" - } - } - } - } - } -#line 378 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _publishing_rest_support_xml_document_unref0 (doc); -#line 3559 "YandexPublishing.c" -} - - -static void -_publishing_yandex_yandex_publisher_album_creation_complete_publishing_rest_support_transaction_completed (PublishingRESTSupportTransaction* _sender, - gpointer self) -{ -#line 391 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - publishing_yandex_yandex_publisher_album_creation_complete ((PublishingYandexYandexPublisher*) self, _sender); -#line 3569 "YandexPublishing.c" -} - - -static void -_publishing_yandex_yandex_publisher_album_creation_error_publishing_rest_support_transaction_network_error (PublishingRESTSupportTransaction* _sender, - GError* err, - gpointer self) -{ -#line 392 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - publishing_yandex_yandex_publisher_album_creation_error ((PublishingYandexYandexPublisher*) self, _sender, err); -#line 3580 "YandexPublishing.c" -} - - -static void -publishing_yandex_yandex_publisher_album_creation_error (PublishingYandexYandexPublisher* self, - PublishingRESTSupportTransaction* t, - GError* err) -{ - guint _tmp0_; - guint _tmp1_; - const gchar* _tmp2_; -#line 390 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - g_return_if_fail (PUBLISHING_YANDEX_IS_YANDEX_PUBLISHER (self)); -#line 390 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - g_return_if_fail (PUBLISHING_REST_SUPPORT_IS_TRANSACTION (t)); -#line 391 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - g_signal_parse_name ("completed", PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, &_tmp0_, NULL, FALSE); -#line 391 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - g_signal_handlers_disconnect_matched (t, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp0_, 0, NULL, (GCallback) _publishing_yandex_yandex_publisher_album_creation_complete_publishing_rest_support_transaction_completed, self); -#line 392 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - g_signal_parse_name ("network-error", PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, &_tmp1_, NULL, FALSE); -#line 392 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - g_signal_handlers_disconnect_matched (t, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp1_, 0, NULL, (GCallback) _publishing_yandex_yandex_publisher_album_creation_error_publishing_rest_support_transaction_network_error, self); -#line 394 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp2_ = err->message; -#line 394 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - g_warning ("YandexPublishing.vala:394: Album creation error: %s", _tmp2_); -#line 3608 "YandexPublishing.c" -} - - -static void -publishing_yandex_yandex_publisher_album_creation_complete (PublishingYandexYandexPublisher* self, - PublishingRESTSupportTransaction* t) -{ - guint _tmp0_; - guint _tmp1_; - GeeHashMap* _tmp6_; - PublishingYandexPublishOptions* _tmp7_; - const gchar* _tmp8_; - gpointer _tmp9_; - gchar* _tmp10_; - gboolean _tmp11_; - GError * _inner_error_ = NULL; -#line 397 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - g_return_if_fail (PUBLISHING_YANDEX_IS_YANDEX_PUBLISHER (self)); -#line 397 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - g_return_if_fail (PUBLISHING_REST_SUPPORT_IS_TRANSACTION (t)); -#line 398 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - g_signal_parse_name ("completed", PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, &_tmp0_, NULL, FALSE); -#line 398 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - g_signal_handlers_disconnect_matched (t, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp0_, 0, NULL, (GCallback) _publishing_yandex_yandex_publisher_album_creation_complete_publishing_rest_support_transaction_completed, self); -#line 399 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - g_signal_parse_name ("network-error", PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, &_tmp1_, NULL, FALSE); -#line 399 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - g_signal_handlers_disconnect_matched (t, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp1_, 0, NULL, (GCallback) _publishing_yandex_yandex_publisher_album_creation_error_publishing_rest_support_transaction_network_error, self); -#line 3637 "YandexPublishing.c" - { - gchar* _tmp2_; - gchar* _tmp3_; -#line 402 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp2_ = publishing_rest_support_transaction_get_response (t); -#line 402 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp3_ = _tmp2_; -#line 402 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - publishing_yandex_yandex_publisher_parse_album_creation (self, _tmp3_, &_inner_error_); -#line 402 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _g_free0 (_tmp3_); -#line 402 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 402 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - if (_inner_error_->domain == SPIT_PUBLISHING_PUBLISHING_ERROR) { -#line 3653 "YandexPublishing.c" - goto __catch35_spit_publishing_publishing_error; - } -#line 402 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 402 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - g_clear_error (&_inner_error_); -#line 402 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - return; -#line 3662 "YandexPublishing.c" - } - } - goto __finally35; - __catch35_spit_publishing_publishing_error: - { - GError* err = NULL; - SpitPublishingPluginHost* _tmp4_; - GError* _tmp5_; -#line 401 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - err = _inner_error_; -#line 401 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _inner_error_ = NULL; -#line 404 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp4_ = self->priv->host; -#line 404 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp5_ = err; -#line 404 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - spit_publishing_plugin_host_post_error (_tmp4_, _tmp5_); -#line 405 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _g_error_free0 (err); -#line 405 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - return; -#line 3685 "YandexPublishing.c" - } - __finally35: -#line 401 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 401 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 401 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - g_clear_error (&_inner_error_); -#line 401 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - return; -#line 3696 "YandexPublishing.c" - } -#line 408 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp6_ = self->priv->album_list; -#line 408 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp7_ = self->priv->options; -#line 408 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp8_ = _tmp7_->destination_album; -#line 408 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp9_ = gee_abstract_map_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp8_); -#line 408 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp10_ = (gchar*) _tmp9_; -#line 408 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp11_ = _tmp10_ != NULL; -#line 408 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _g_free0 (_tmp10_); -#line 408 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - if (_tmp11_) { -#line 409 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - publishing_yandex_yandex_publisher_start_upload (self); -#line 3716 "YandexPublishing.c" - } else { - SpitPublishingPluginHost* _tmp12_; - GError* _tmp13_; - GError* _tmp14_; -#line 411 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp12_ = self->priv->host; -#line 411 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp13_ = g_error_new_literal (SPIT_PUBLISHING_PUBLISHING_ERROR, SPIT_PUBLISHING_PUBLISHING_ERROR_PROTOCOL_ERROR, "Server did not create album"); -#line 411 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp14_ = _tmp13_; -#line 411 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - spit_publishing_plugin_host_post_error (_tmp12_, _tmp14_); -#line 411 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _g_error_free0 (_tmp14_); -#line 3731 "YandexPublishing.c" - } -} - - -static void -publishing_yandex_yandex_publisher_create_destination_album (PublishingYandexYandexPublisher* self) -{ - gchar* album = NULL; - PublishingYandexPublishOptions* _tmp0_; - const gchar* _tmp1_; - gchar* _tmp2_; - gchar* data = NULL; - gchar* _tmp3_; - PublishingYandexTransaction* t = NULL; - PublishingYandexSession* _tmp4_; - const gchar* _tmp5_; - PublishingYandexTransaction* _tmp6_; - GError * _inner_error_ = NULL; -#line 414 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - g_return_if_fail (PUBLISHING_YANDEX_IS_YANDEX_PUBLISHER (self)); -#line 415 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp0_ = self->priv->options; -#line 415 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp1_ = _tmp0_->destination_album; -#line 415 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp2_ = g_strdup (_tmp1_); -#line 415 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - album = _tmp2_; -#line 416 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp3_ = g_strdup_printf ("" \ -"%s", album); -#line 416 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - data = _tmp3_; -#line 418 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp4_ = self->priv->session; -#line 418 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp5_ = self->priv->service_url; -#line 418 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp6_ = publishing_yandex_transaction_new_with_url (_tmp4_, _tmp5_, PUBLISHING_REST_SUPPORT_HTTP_METHOD_POST); -#line 418 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - t = _tmp6_; -#line 420 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - publishing_yandex_transaction_add_data (t, "application/atom+xml; charset=utf-8; type=entry", data); -#line 422 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (t, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "completed", (GCallback) _publishing_yandex_yandex_publisher_album_creation_complete_publishing_rest_support_transaction_completed, self, 0); -#line 423 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (t, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "network-error", (GCallback) _publishing_yandex_yandex_publisher_album_creation_error_publishing_rest_support_transaction_network_error, self, 0); -#line 3778 "YandexPublishing.c" - { -#line 426 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - publishing_rest_support_transaction_execute (G_TYPE_CHECK_INSTANCE_CAST (t, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), &_inner_error_); -#line 426 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 426 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - if (_inner_error_->domain == SPIT_PUBLISHING_PUBLISHING_ERROR) { -#line 3786 "YandexPublishing.c" - goto __catch36_spit_publishing_publishing_error; - } -#line 426 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _publishing_rest_support_transaction_unref0 (t); -#line 426 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _g_free0 (data); -#line 426 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _g_free0 (album); -#line 426 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 426 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - g_clear_error (&_inner_error_); -#line 426 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - return; -#line 3801 "YandexPublishing.c" - } - } - goto __finally36; - __catch36_spit_publishing_publishing_error: - { - GError* err = NULL; - SpitPublishingPluginHost* _tmp7_; - GError* _tmp8_; -#line 425 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - err = _inner_error_; -#line 425 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _inner_error_ = NULL; -#line 428 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp7_ = self->priv->host; -#line 428 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp8_ = err; -#line 428 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - spit_publishing_plugin_host_post_error (_tmp7_, _tmp8_); -#line 425 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _g_error_free0 (err); -#line 3822 "YandexPublishing.c" - } - __finally36: -#line 425 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 425 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _publishing_rest_support_transaction_unref0 (t); -#line 425 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _g_free0 (data); -#line 425 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _g_free0 (album); -#line 425 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 425 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - g_clear_error (&_inner_error_); -#line 425 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - return; -#line 3839 "YandexPublishing.c" - } -#line 414 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _publishing_rest_support_transaction_unref0 (t); -#line 414 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _g_free0 (data); -#line 414 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _g_free0 (album); -#line 3847 "YandexPublishing.c" -} - - -static void -_publishing_yandex_yandex_publisher_on_upload_complete_publishing_rest_support_batch_uploader_upload_complete (PublishingRESTSupportBatchUploader* _sender, - gint num_photos_published, - gpointer self) -{ -#line 433 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - publishing_yandex_yandex_publisher_on_upload_complete ((PublishingYandexYandexPublisher*) self, _sender, num_photos_published); -#line 3858 "YandexPublishing.c" -} - - -static void -_publishing_yandex_yandex_publisher_on_upload_error_publishing_rest_support_batch_uploader_upload_error (PublishingRESTSupportBatchUploader* _sender, - GError* err, - gpointer self) -{ -#line 434 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - publishing_yandex_yandex_publisher_on_upload_error ((PublishingYandexYandexPublisher*) self, _sender, err); -#line 3869 "YandexPublishing.c" -} - - -static void -publishing_yandex_yandex_publisher_on_upload_complete (PublishingYandexYandexPublisher* self, - PublishingRESTSupportBatchUploader* uploader, - gint num_published) -{ - guint _tmp0_; - guint _tmp1_; - SpitPublishingPluginHost* _tmp5_; - SpitPublishingPluginHost* _tmp6_; -#line 432 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - g_return_if_fail (PUBLISHING_YANDEX_IS_YANDEX_PUBLISHER (self)); -#line 432 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - g_return_if_fail (PUBLISHING_REST_SUPPORT_IS_BATCH_UPLOADER (uploader)); -#line 433 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - g_signal_parse_name ("upload-complete", PUBLISHING_REST_SUPPORT_TYPE_BATCH_UPLOADER, &_tmp0_, NULL, FALSE); -#line 433 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - g_signal_handlers_disconnect_matched (uploader, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp0_, 0, NULL, (GCallback) _publishing_yandex_yandex_publisher_on_upload_complete_publishing_rest_support_batch_uploader_upload_complete, self); -#line 434 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - g_signal_parse_name ("upload-error", PUBLISHING_REST_SUPPORT_TYPE_BATCH_UPLOADER, &_tmp1_, NULL, FALSE); -#line 434 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - g_signal_handlers_disconnect_matched (uploader, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp1_, 0, NULL, (GCallback) _publishing_yandex_yandex_publisher_on_upload_error_publishing_rest_support_batch_uploader_upload_error, self); -#line 436 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - if (num_published == 0) { -#line 3896 "YandexPublishing.c" - SpitPublishingPluginHost* _tmp2_; - GError* _tmp3_; - GError* _tmp4_; -#line 437 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp2_ = self->priv->host; -#line 437 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp3_ = g_error_new_literal (SPIT_PUBLISHING_PUBLISHING_ERROR, SPIT_PUBLISHING_PUBLISHING_ERROR_LOCAL_FILE_ERROR, ""); -#line 437 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp4_ = _tmp3_; -#line 437 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - spit_publishing_plugin_host_post_error (_tmp2_, _tmp4_); -#line 437 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _g_error_free0 (_tmp4_); -#line 3910 "YandexPublishing.c" - } -#line 439 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp5_ = self->priv->host; -#line 439 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - spit_publishing_plugin_host_set_service_locked (_tmp5_, FALSE); -#line 441 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp6_ = self->priv->host; -#line 441 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - spit_publishing_plugin_host_install_success_pane (_tmp6_); -#line 3920 "YandexPublishing.c" -} - - -static void -publishing_yandex_yandex_publisher_on_upload_error (PublishingYandexYandexPublisher* self, - PublishingRESTSupportBatchUploader* uploader, - GError* err) -{ - guint _tmp0_; - guint _tmp1_; - const gchar* _tmp2_; -#line 444 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - g_return_if_fail (PUBLISHING_YANDEX_IS_YANDEX_PUBLISHER (self)); -#line 444 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - g_return_if_fail (PUBLISHING_REST_SUPPORT_IS_BATCH_UPLOADER (uploader)); -#line 445 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - g_signal_parse_name ("upload-complete", PUBLISHING_REST_SUPPORT_TYPE_BATCH_UPLOADER, &_tmp0_, NULL, FALSE); -#line 445 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - g_signal_handlers_disconnect_matched (uploader, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp0_, 0, NULL, (GCallback) _publishing_yandex_yandex_publisher_on_upload_complete_publishing_rest_support_batch_uploader_upload_complete, self); -#line 446 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - g_signal_parse_name ("upload-error", PUBLISHING_REST_SUPPORT_TYPE_BATCH_UPLOADER, &_tmp1_, NULL, FALSE); -#line 446 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - g_signal_handlers_disconnect_matched (uploader, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp1_, 0, NULL, (GCallback) _publishing_yandex_yandex_publisher_on_upload_error_publishing_rest_support_batch_uploader_upload_error, self); -#line 448 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp2_ = err->message; -#line 448 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - g_warning ("YandexPublishing.vala:448: Photo upload error: %s", _tmp2_); -#line 3948 "YandexPublishing.c" -} - - -static void -publishing_yandex_yandex_publisher_on_upload_status_updated (PublishingYandexYandexPublisher* self, - gint file_number, - gdouble completed_fraction) -{ - SpitPublishingProgressCallback _tmp0_; - void* _tmp0__target; - SpitPublishingProgressCallback _tmp1_; - void* _tmp1__target; -#line 451 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - g_return_if_fail (PUBLISHING_YANDEX_IS_YANDEX_PUBLISHER (self)); -#line 452 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - g_debug ("YandexPublishing.vala:452: EVENT: uploader reports upload %.2f percent" \ -" complete.", 100.0 * completed_fraction); -#line 454 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp0_ = self->priv->progress_reporter; -#line 454 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp0__target = self->priv->progress_reporter_target; -#line 454 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _vala_assert (_tmp0_ != NULL, "progress_reporter != null"); -#line 456 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp1_ = self->priv->progress_reporter; -#line 456 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp1__target = self->priv->progress_reporter_target; -#line 456 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp1_ (file_number, completed_fraction, _tmp1__target); -#line 3977 "YandexPublishing.c" -} - - -static void -_publishing_yandex_yandex_publisher_on_upload_status_updated_spit_publishing_progress_callback (gint file_number, - gdouble fraction_complete, - gpointer self) -{ -#line 470 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - publishing_yandex_yandex_publisher_on_upload_status_updated ((PublishingYandexYandexPublisher*) self, file_number, fraction_complete); -#line 3988 "YandexPublishing.c" -} - - -static void -publishing_yandex_yandex_publisher_start_upload (PublishingYandexYandexPublisher* self) -{ - SpitPublishingPluginHost* _tmp0_; - SpitPublishingPluginHost* _tmp1_; - void* _tmp2_; - GDestroyNotify _tmp3_; - SpitPublishingProgressCallback _tmp4_; - PublishingYandexPublishOptions* _tmp5_; - GeeHashMap* _tmp6_; - PublishingYandexPublishOptions* _tmp7_; - const gchar* _tmp8_; - gpointer _tmp9_; - SpitPublishingPublishable** publishables = NULL; - SpitPublishingPluginHost* _tmp10_; - gint _tmp11_; - SpitPublishingPublishable** _tmp12_; - gint publishables_length1; - gint _publishables_size_; - PublishingYandexUploader* uploader = NULL; - PublishingYandexSession* _tmp13_; - PublishingYandexPublishOptions* _tmp14_; - PublishingYandexUploader* _tmp15_; -#line 459 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - g_return_if_fail (PUBLISHING_YANDEX_IS_YANDEX_PUBLISHER (self)); -#line 460 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp0_ = self->priv->host; -#line 460 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - spit_publishing_plugin_host_set_service_locked (_tmp0_, TRUE); -#line 462 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp1_ = self->priv->host; -#line 462 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp4_ = spit_publishing_plugin_host_serialize_publishables (_tmp1_, 0, FALSE, &_tmp2_, &_tmp3_); -#line 462 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - (self->priv->progress_reporter_target_destroy_notify == NULL) ? NULL : (self->priv->progress_reporter_target_destroy_notify (self->priv->progress_reporter_target), NULL); -#line 462 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - self->priv->progress_reporter = NULL; -#line 462 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - self->priv->progress_reporter_target = NULL; -#line 462 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - self->priv->progress_reporter_target_destroy_notify = NULL; -#line 462 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - self->priv->progress_reporter = _tmp4_; -#line 462 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - self->priv->progress_reporter_target = _tmp2_; -#line 462 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - self->priv->progress_reporter_target_destroy_notify = _tmp3_; -#line 464 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp5_ = self->priv->options; -#line 464 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp6_ = self->priv->album_list; -#line 464 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp7_ = self->priv->options; -#line 464 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp8_ = _tmp7_->destination_album; -#line 464 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp9_ = gee_abstract_map_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp8_); -#line 464 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _g_free0 (_tmp5_->destination_album_url); -#line 464 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp5_->destination_album_url = (gchar*) _tmp9_; -#line 465 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp10_ = self->priv->host; -#line 465 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp12_ = spit_publishing_plugin_host_get_publishables (_tmp10_, &_tmp11_); -#line 465 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - publishables = _tmp12_; -#line 465 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - publishables_length1 = _tmp11_; -#line 465 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _publishables_size_ = publishables_length1; -#line 466 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp13_ = self->priv->session; -#line 466 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp14_ = self->priv->options; -#line 466 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp15_ = publishing_yandex_uploader_new (_tmp13_, _tmp14_, publishables, publishables_length1); -#line 466 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - uploader = _tmp15_; -#line 468 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (uploader, PUBLISHING_REST_SUPPORT_TYPE_BATCH_UPLOADER, PublishingRESTSupportBatchUploader), "upload-complete", (GCallback) _publishing_yandex_yandex_publisher_on_upload_complete_publishing_rest_support_batch_uploader_upload_complete, self, 0); -#line 469 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (uploader, PUBLISHING_REST_SUPPORT_TYPE_BATCH_UPLOADER, PublishingRESTSupportBatchUploader), "upload-error", (GCallback) _publishing_yandex_yandex_publisher_on_upload_error_publishing_rest_support_batch_uploader_upload_error, self, 0); -#line 470 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - publishing_rest_support_batch_uploader_upload (G_TYPE_CHECK_INSTANCE_CAST (uploader, PUBLISHING_REST_SUPPORT_TYPE_BATCH_UPLOADER, PublishingRESTSupportBatchUploader), _publishing_yandex_yandex_publisher_on_upload_status_updated_spit_publishing_progress_callback, self); -#line 459 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _publishing_rest_support_batch_uploader_unref0 (uploader); -#line 459 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - publishables = (_vala_array_free (publishables, publishables_length1, (GDestroyNotify) g_object_unref), NULL); -#line 4081 "YandexPublishing.c" -} - - -static void -publishing_yandex_yandex_publisher_on_logout (PublishingYandexYandexPublisher* self) -{ - PublishingYandexSession* _tmp0_; -#line 473 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - g_return_if_fail (PUBLISHING_YANDEX_IS_YANDEX_PUBLISHER (self)); -#line 474 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - if (!spit_publishing_publisher_is_running (G_TYPE_CHECK_INSTANCE_CAST (self, SPIT_PUBLISHING_TYPE_PUBLISHER, SpitPublishingPublisher))) { -#line 475 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - return; -#line 4095 "YandexPublishing.c" - } -#line 477 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp0_ = self->priv->session; -#line 477 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - publishing_yandex_session_deauthenticate (_tmp0_); -#line 478 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - publishing_yandex_yandex_publisher_invalidate_persistent_session (self); -#line 480 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - self->priv->running = FALSE; -#line 482 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - spit_publishing_publisher_start (G_TYPE_CHECK_INSTANCE_CAST (self, SPIT_PUBLISHING_TYPE_PUBLISHER, SpitPublishingPublisher)); -#line 4107 "YandexPublishing.c" -} - - -static void -publishing_yandex_yandex_publisher_on_publish (PublishingYandexYandexPublisher* self) -{ - PublishingYandexPublishOptions* _tmp0_; - const gchar* _tmp1_; - GeeHashMap* _tmp2_; - PublishingYandexPublishOptions* _tmp3_; - const gchar* _tmp4_; - gpointer _tmp5_; - gchar* _tmp6_; - GeeHashMap* _tmp7_; - PublishingYandexPublishOptions* _tmp8_; - const gchar* _tmp9_; - gpointer _tmp10_; - gchar* _tmp11_; - gboolean _tmp12_; -#line 485 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - g_return_if_fail (PUBLISHING_YANDEX_IS_YANDEX_PUBLISHER (self)); -#line 486 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp0_ = self->priv->options; -#line 486 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp1_ = _tmp0_->destination_album; -#line 486 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp2_ = self->priv->album_list; -#line 486 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp3_ = self->priv->options; -#line 486 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp4_ = _tmp3_->destination_album; -#line 486 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp5_ = gee_abstract_map_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp4_); -#line 486 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp6_ = (gchar*) _tmp5_; -#line 486 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - g_debug ("YandexPublishing.vala:486: Going to publish to '%s' : %s", _tmp1_, _tmp6_); -#line 486 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _g_free0 (_tmp6_); -#line 487 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp7_ = self->priv->album_list; -#line 487 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp8_ = self->priv->options; -#line 487 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp9_ = _tmp8_->destination_album; -#line 487 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp10_ = gee_abstract_map_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp9_); -#line 487 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp11_ = (gchar*) _tmp10_; -#line 487 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp12_ = _tmp11_ == NULL; -#line 487 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _g_free0 (_tmp11_); -#line 487 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - if (_tmp12_) { -#line 488 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - publishing_yandex_yandex_publisher_create_destination_album (self); -#line 4165 "YandexPublishing.c" - } else { -#line 490 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - publishing_yandex_yandex_publisher_start_upload (self); -#line 4169 "YandexPublishing.c" - } -} - - -static void -_publishing_yandex_yandex_publisher_service_get_album_list_complete_publishing_rest_support_transaction_completed (PublishingRESTSupportTransaction* _sender, - gpointer self) -{ -#line 494 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - publishing_yandex_yandex_publisher_service_get_album_list_complete ((PublishingYandexYandexPublisher*) self, _sender); -#line 4180 "YandexPublishing.c" -} - - -static void -_publishing_yandex_yandex_publisher_service_get_album_list_error_publishing_rest_support_transaction_network_error (PublishingRESTSupportTransaction* _sender, - GError* err, - gpointer self) -{ -#line 495 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - publishing_yandex_yandex_publisher_service_get_album_list_error ((PublishingYandexYandexPublisher*) self, _sender, err); -#line 4191 "YandexPublishing.c" -} - - -void -publishing_yandex_yandex_publisher_service_get_album_list_error (PublishingYandexYandexPublisher* self, - PublishingRESTSupportTransaction* t, - GError* err) -{ - guint _tmp0_; - guint _tmp1_; - const gchar* _tmp2_; -#line 493 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - g_return_if_fail (PUBLISHING_YANDEX_IS_YANDEX_PUBLISHER (self)); -#line 493 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - g_return_if_fail (PUBLISHING_REST_SUPPORT_IS_TRANSACTION (t)); -#line 494 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - g_signal_parse_name ("completed", PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, &_tmp0_, NULL, FALSE); -#line 494 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - g_signal_handlers_disconnect_matched (t, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp0_, 0, NULL, (GCallback) _publishing_yandex_yandex_publisher_service_get_album_list_complete_publishing_rest_support_transaction_completed, self); -#line 495 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - g_signal_parse_name ("network-error", PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, &_tmp1_, NULL, FALSE); -#line 495 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - g_signal_handlers_disconnect_matched (t, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp1_, 0, NULL, (GCallback) _publishing_yandex_yandex_publisher_service_get_album_list_error_publishing_rest_support_transaction_network_error, self); -#line 497 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - publishing_yandex_yandex_publisher_invalidate_persistent_session (self); -#line 498 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp2_ = err->message; -#line 498 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - g_warning ("YandexPublishing.vala:498: Failed to get album list: %s", _tmp2_); -#line 4221 "YandexPublishing.c" -} - - -static void -_publishing_yandex_yandex_publisher_on_publish_publishing_yandex_publishing_options_pane_publish (PublishingYandexPublishingOptionsPane* _sender, - gpointer self) -{ -#line 515 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - publishing_yandex_yandex_publisher_on_publish ((PublishingYandexYandexPublisher*) self); -#line 4231 "YandexPublishing.c" -} - - -static void -_publishing_yandex_yandex_publisher_on_logout_publishing_yandex_publishing_options_pane_logout (PublishingYandexPublishingOptionsPane* _sender, - gpointer self) -{ -#line 516 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - publishing_yandex_yandex_publisher_on_logout ((PublishingYandexYandexPublisher*) self); -#line 4241 "YandexPublishing.c" -} - - -void -publishing_yandex_yandex_publisher_service_get_album_list_complete (PublishingYandexYandexPublisher* self, - PublishingRESTSupportTransaction* t) -{ - guint _tmp0_; - guint _tmp1_; - gchar* _tmp2_; - gchar* _tmp3_; - PublishingYandexPublishingOptionsPane* publishing_options_pane = NULL; - PublishingYandexPublishOptions* _tmp8_; - GeeHashMap* _tmp9_; - SpitPublishingPluginHost* _tmp10_; - PublishingYandexPublishingOptionsPane* _tmp11_; - SpitPublishingPluginHost* _tmp12_; - GError * _inner_error_ = NULL; -#line 501 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - g_return_if_fail (PUBLISHING_YANDEX_IS_YANDEX_PUBLISHER (self)); -#line 501 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - g_return_if_fail (PUBLISHING_REST_SUPPORT_IS_TRANSACTION (t)); -#line 502 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - g_signal_parse_name ("completed", PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, &_tmp0_, NULL, FALSE); -#line 502 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - g_signal_handlers_disconnect_matched (t, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp0_, 0, NULL, (GCallback) _publishing_yandex_yandex_publisher_service_get_album_list_complete_publishing_rest_support_transaction_completed, self); -#line 503 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - g_signal_parse_name ("network-error", PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, &_tmp1_, NULL, FALSE); -#line 503 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - g_signal_handlers_disconnect_matched (t, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp1_, 0, NULL, (GCallback) _publishing_yandex_yandex_publisher_service_get_album_list_error_publishing_rest_support_transaction_network_error, self); -#line 505 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp2_ = publishing_rest_support_transaction_get_response (t); -#line 505 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp3_ = _tmp2_; -#line 505 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - g_debug ("YandexPublishing.vala:505: service_get_album_list_complete: %s", _tmp3_); -#line 505 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _g_free0 (_tmp3_); -#line 4280 "YandexPublishing.c" - { - gchar* _tmp4_; - gchar* _tmp5_; -#line 507 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp4_ = publishing_rest_support_transaction_get_response (t); -#line 507 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp5_ = _tmp4_; -#line 507 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - publishing_yandex_yandex_publisher_parse_album_list (self, _tmp5_, &_inner_error_); -#line 507 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _g_free0 (_tmp5_); -#line 507 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 507 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - if (_inner_error_->domain == SPIT_PUBLISHING_PUBLISHING_ERROR) { -#line 4296 "YandexPublishing.c" - goto __catch37_spit_publishing_publishing_error; - } -#line 507 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 507 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - g_clear_error (&_inner_error_); -#line 507 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - return; -#line 4305 "YandexPublishing.c" - } - } - goto __finally37; - __catch37_spit_publishing_publishing_error: - { - GError* err = NULL; - SpitPublishingPluginHost* _tmp6_; - GError* _tmp7_; -#line 506 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - err = _inner_error_; -#line 506 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _inner_error_ = NULL; -#line 509 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp6_ = self->priv->host; -#line 509 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp7_ = err; -#line 509 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - spit_publishing_plugin_host_post_error (_tmp6_, _tmp7_); -#line 506 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _g_error_free0 (err); -#line 4326 "YandexPublishing.c" - } - __finally37: -#line 506 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 506 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 506 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - g_clear_error (&_inner_error_); -#line 506 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - return; -#line 4337 "YandexPublishing.c" - } -#line 512 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp8_ = self->priv->options; -#line 512 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp9_ = self->priv->album_list; -#line 512 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp10_ = self->priv->host; -#line 512 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp11_ = publishing_yandex_publishing_options_pane_new (_tmp8_, _tmp9_, _tmp10_); -#line 512 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - publishing_options_pane = _tmp11_; -#line 515 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - g_signal_connect_object (publishing_options_pane, "publish", (GCallback) _publishing_yandex_yandex_publisher_on_publish_publishing_yandex_publishing_options_pane_publish, self, 0); -#line 516 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - g_signal_connect_object (publishing_options_pane, "logout", (GCallback) _publishing_yandex_yandex_publisher_on_logout_publishing_yandex_publishing_options_pane_logout, self, 0); -#line 517 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp12_ = self->priv->host; -#line 517 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - spit_publishing_plugin_host_install_dialog_pane (_tmp12_, G_TYPE_CHECK_INSTANCE_CAST (publishing_options_pane, SPIT_PUBLISHING_TYPE_DIALOG_PANE, SpitPublishingDialogPane), SPIT_PUBLISHING_PLUGIN_HOST_BUTTON_MODE_CANCEL); -#line 501 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _g_object_unref0 (publishing_options_pane); -#line 4359 "YandexPublishing.c" -} - - -void -publishing_yandex_yandex_publisher_service_get_album_list (PublishingYandexYandexPublisher* self, - const gchar* url) -{ - gchar* _tmp0_; - PublishingYandexTransaction* t = NULL; - PublishingYandexSession* _tmp1_; - PublishingYandexTransaction* _tmp2_; - GError * _inner_error_ = NULL; -#line 520 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - g_return_if_fail (PUBLISHING_YANDEX_IS_YANDEX_PUBLISHER (self)); -#line 520 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - g_return_if_fail (url != NULL); -#line 521 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp0_ = g_strdup (url); -#line 521 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _g_free0 (self->priv->service_url); -#line 521 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - self->priv->service_url = _tmp0_; -#line 523 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp1_ = self->priv->session; -#line 523 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp2_ = publishing_yandex_transaction_new_with_url (_tmp1_, url, PUBLISHING_REST_SUPPORT_HTTP_METHOD_GET); -#line 523 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - t = _tmp2_; -#line 524 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (t, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "completed", (GCallback) _publishing_yandex_yandex_publisher_service_get_album_list_complete_publishing_rest_support_transaction_completed, self, 0); -#line 525 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (t, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "network-error", (GCallback) _publishing_yandex_yandex_publisher_service_get_album_list_error_publishing_rest_support_transaction_network_error, self, 0); -#line 4392 "YandexPublishing.c" - { -#line 528 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - publishing_rest_support_transaction_execute (G_TYPE_CHECK_INSTANCE_CAST (t, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), &_inner_error_); -#line 528 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 528 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - if (_inner_error_->domain == SPIT_PUBLISHING_PUBLISHING_ERROR) { -#line 4400 "YandexPublishing.c" - goto __catch38_spit_publishing_publishing_error; - } -#line 528 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _publishing_rest_support_transaction_unref0 (t); -#line 528 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 528 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - g_clear_error (&_inner_error_); -#line 528 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - return; -#line 4411 "YandexPublishing.c" - } - } - goto __finally38; - __catch38_spit_publishing_publishing_error: - { - GError* err = NULL; - SpitPublishingPluginHost* _tmp3_; - GError* _tmp4_; -#line 527 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - err = _inner_error_; -#line 527 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _inner_error_ = NULL; -#line 530 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp3_ = self->priv->host; -#line 530 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp4_ = err; -#line 530 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - spit_publishing_plugin_host_post_error (_tmp3_, _tmp4_); -#line 527 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _g_error_free0 (err); -#line 4432 "YandexPublishing.c" - } - __finally38: -#line 527 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 527 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _publishing_rest_support_transaction_unref0 (t); -#line 527 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 527 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - g_clear_error (&_inner_error_); -#line 527 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - return; -#line 4445 "YandexPublishing.c" - } -#line 520 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _publishing_rest_support_transaction_unref0 (t); -#line 4449 "YandexPublishing.c" -} - - -static void -_publishing_yandex_yandex_publisher_fetch_account_complete_publishing_rest_support_transaction_completed (PublishingRESTSupportTransaction* _sender, - gpointer self) -{ -#line 535 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - publishing_yandex_yandex_publisher_fetch_account_complete ((PublishingYandexYandexPublisher*) self, _sender); -#line 4459 "YandexPublishing.c" -} - - -static void -_publishing_yandex_yandex_publisher_fetch_account_error_publishing_rest_support_transaction_network_error (PublishingRESTSupportTransaction* _sender, - GError* err, - gpointer self) -{ -#line 536 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - publishing_yandex_yandex_publisher_fetch_account_error ((PublishingYandexYandexPublisher*) self, _sender, err); -#line 4470 "YandexPublishing.c" -} - - -void -publishing_yandex_yandex_publisher_fetch_account_error (PublishingYandexYandexPublisher* self, - PublishingRESTSupportTransaction* t, - GError* err) -{ - guint _tmp0_; - guint _tmp1_; - const gchar* _tmp2_; -#line 534 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - g_return_if_fail (PUBLISHING_YANDEX_IS_YANDEX_PUBLISHER (self)); -#line 534 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - g_return_if_fail (PUBLISHING_REST_SUPPORT_IS_TRANSACTION (t)); -#line 535 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - g_signal_parse_name ("completed", PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, &_tmp0_, NULL, FALSE); -#line 535 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - g_signal_handlers_disconnect_matched (t, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp0_, 0, NULL, (GCallback) _publishing_yandex_yandex_publisher_fetch_account_complete_publishing_rest_support_transaction_completed, self); -#line 536 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - g_signal_parse_name ("network-error", PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, &_tmp1_, NULL, FALSE); -#line 536 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - g_signal_handlers_disconnect_matched (t, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp1_, 0, NULL, (GCallback) _publishing_yandex_yandex_publisher_fetch_account_error_publishing_rest_support_transaction_network_error, self); -#line 538 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp2_ = err->message; -#line 538 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - g_warning ("YandexPublishing.vala:538: Failed to fetch account info: %s", _tmp2_); -#line 4498 "YandexPublishing.c" -} - - -void -publishing_yandex_yandex_publisher_fetch_account_complete (PublishingYandexYandexPublisher* self, - PublishingRESTSupportTransaction* t) -{ - guint _tmp0_; - guint _tmp1_; - gchar* _tmp2_; - gchar* _tmp3_; - GError * _inner_error_ = NULL; -#line 541 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - g_return_if_fail (PUBLISHING_YANDEX_IS_YANDEX_PUBLISHER (self)); -#line 541 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - g_return_if_fail (PUBLISHING_REST_SUPPORT_IS_TRANSACTION (t)); -#line 542 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - g_signal_parse_name ("completed", PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, &_tmp0_, NULL, FALSE); -#line 542 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - g_signal_handlers_disconnect_matched (t, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp0_, 0, NULL, (GCallback) _publishing_yandex_yandex_publisher_fetch_account_complete_publishing_rest_support_transaction_completed, self); -#line 543 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - g_signal_parse_name ("network-error", PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, &_tmp1_, NULL, FALSE); -#line 543 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - g_signal_handlers_disconnect_matched (t, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp1_, 0, NULL, (GCallback) _publishing_yandex_yandex_publisher_fetch_account_error_publishing_rest_support_transaction_network_error, self); -#line 545 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp2_ = publishing_rest_support_transaction_get_response (t); -#line 545 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp3_ = _tmp2_; -#line 545 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - g_debug ("YandexPublishing.vala:545: account info: %s", _tmp3_); -#line 545 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _g_free0 (_tmp3_); -#line 4531 "YandexPublishing.c" - { - PublishingRESTSupportXmlDocument* doc = NULL; - gchar* _tmp4_; - gchar* _tmp5_; - PublishingRESTSupportXmlDocument* _tmp6_; - PublishingRESTSupportXmlDocument* _tmp7_; - xmlNode* root = NULL; - PublishingRESTSupportXmlDocument* _tmp8_; - xmlNode* _tmp9_; -#line 547 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp4_ = publishing_rest_support_transaction_get_response (t); -#line 547 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp5_ = _tmp4_; -#line 547 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp6_ = publishing_rest_support_xml_document_parse_string (_tmp5_, _publishing_yandex_yandex_publisher_check_response_publishing_rest_support_xml_document_check_for_error_response, self, &_inner_error_); -#line 547 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp7_ = _tmp6_; -#line 547 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _g_free0 (_tmp5_); -#line 547 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - doc = _tmp7_; -#line 547 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 547 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - if (_inner_error_->domain == SPIT_PUBLISHING_PUBLISHING_ERROR) { -#line 4557 "YandexPublishing.c" - goto __catch39_spit_publishing_publishing_error; - } -#line 547 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 547 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - g_clear_error (&_inner_error_); -#line 547 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - return; -#line 4566 "YandexPublishing.c" - } -#line 548 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp8_ = doc; -#line 548 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp9_ = publishing_rest_support_xml_document_get_root_node (_tmp8_); -#line 548 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - root = _tmp9_; -#line 4574 "YandexPublishing.c" - { - xmlNode* work = NULL; - xmlNode* _tmp10_; - xmlNode* _tmp11_; -#line 550 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp10_ = root; -#line 550 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp11_ = _tmp10_->children; -#line 550 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - work = _tmp11_; -#line 4585 "YandexPublishing.c" - { - gboolean _tmp12_ = FALSE; -#line 550 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp12_ = TRUE; -#line 550 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - while (TRUE) { -#line 4592 "YandexPublishing.c" - xmlNode* _tmp15_; - xmlNode* _tmp16_; - const gchar* _tmp17_; -#line 550 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - if (!_tmp12_) { -#line 4598 "YandexPublishing.c" - xmlNode* _tmp13_; - xmlNode* _tmp14_; -#line 550 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp13_ = work; -#line 550 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp14_ = _tmp13_->next; -#line 550 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - work = _tmp14_; -#line 4607 "YandexPublishing.c" - } -#line 550 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp12_ = FALSE; -#line 550 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp15_ = work; -#line 550 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - if (!(_tmp15_ != NULL)) { -#line 550 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - break; -#line 4617 "YandexPublishing.c" - } -#line 551 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp16_ = work; -#line 551 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp17_ = _tmp16_->name; -#line 551 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - if (g_strcmp0 (_tmp17_, "workspace") != 0) { -#line 552 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - continue; -#line 4627 "YandexPublishing.c" - } - { - xmlNode* c = NULL; - xmlNode* _tmp18_; - xmlNode* _tmp19_; -#line 553 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp18_ = work; -#line 553 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp19_ = _tmp18_->children; -#line 553 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - c = _tmp19_; -#line 4639 "YandexPublishing.c" - { - gboolean _tmp20_ = FALSE; -#line 553 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp20_ = TRUE; -#line 553 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - while (TRUE) { -#line 4646 "YandexPublishing.c" - xmlNode* _tmp23_; - xmlNode* _tmp24_; - const gchar* _tmp25_; - xmlNode* _tmp26_; - gchar* _tmp27_; - gchar* _tmp28_; - gboolean _tmp29_; -#line 553 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - if (!_tmp20_) { -#line 4656 "YandexPublishing.c" - xmlNode* _tmp21_; - xmlNode* _tmp22_; -#line 553 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp21_ = c; -#line 553 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp22_ = _tmp21_->next; -#line 553 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - c = _tmp22_; -#line 4665 "YandexPublishing.c" - } -#line 553 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp20_ = FALSE; -#line 553 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp23_ = c; -#line 553 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - if (!(_tmp23_ != NULL)) { -#line 553 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - break; -#line 4675 "YandexPublishing.c" - } -#line 554 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp24_ = c; -#line 554 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp25_ = _tmp24_->name; -#line 554 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - if (g_strcmp0 (_tmp25_, "collection") != 0) { -#line 555 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - continue; -#line 4685 "YandexPublishing.c" - } -#line 557 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp26_ = c; -#line 557 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp27_ = (gchar*) xmlGetProp (_tmp26_, (xmlChar*) "id"); -#line 557 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp28_ = _tmp27_; -#line 557 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp29_ = g_strcmp0 (_tmp28_, "album-list") == 0; -#line 557 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _g_free0 (_tmp28_); -#line 557 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - if (_tmp29_) { -#line 4699 "YandexPublishing.c" - gchar* url = NULL; - xmlNode* _tmp30_; - gchar* _tmp31_; - PublishingYandexSession* _tmp32_; - gchar* _tmp33_; - gchar* _tmp34_; - const gchar* _tmp35_; -#line 558 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp30_ = c; -#line 558 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp31_ = (gchar*) xmlGetProp (_tmp30_, (xmlChar*) "href"); -#line 558 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - url = _tmp31_; -#line 560 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp32_ = self->priv->session; -#line 560 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp33_ = publishing_yandex_session_get_auth_token (_tmp32_); -#line 560 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp34_ = _tmp33_; -#line 560 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - publishing_yandex_yandex_publisher_set_persistent_auth_token (self, _tmp34_); -#line 560 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _g_free0 (_tmp34_); -#line 561 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp35_ = url; -#line 561 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - publishing_yandex_yandex_publisher_service_get_album_list (self, _tmp35_); -#line 562 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _g_free0 (url); -#line 562 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - break; -#line 4731 "YandexPublishing.c" - } - } - } - } - } - } - } -#line 546 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _publishing_rest_support_xml_document_unref0 (doc); -#line 4741 "YandexPublishing.c" - } - goto __finally39; - __catch39_spit_publishing_publishing_error: - { - GError* err = NULL; - SpitPublishingPluginHost* _tmp36_; - GError* _tmp37_; -#line 546 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - err = _inner_error_; -#line 546 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _inner_error_ = NULL; -#line 567 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp36_ = self->priv->host; -#line 567 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp37_ = err; -#line 567 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - spit_publishing_plugin_host_post_error (_tmp36_, _tmp37_); -#line 546 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _g_error_free0 (err); -#line 4761 "YandexPublishing.c" - } - __finally39: -#line 546 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 546 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 546 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - g_clear_error (&_inner_error_); -#line 546 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - return; -#line 4772 "YandexPublishing.c" - } -} - - -void -publishing_yandex_yandex_publisher_fetch_account_information (PublishingYandexYandexPublisher* self, - const gchar* auth_token) -{ - PublishingYandexSession* _tmp0_; - PublishingYandexTransaction* t = NULL; - PublishingYandexSession* _tmp1_; - PublishingYandexTransaction* _tmp2_; - GError * _inner_error_ = NULL; -#line 571 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - g_return_if_fail (PUBLISHING_YANDEX_IS_YANDEX_PUBLISHER (self)); -#line 571 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - g_return_if_fail (auth_token != NULL); -#line 572 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp0_ = self->priv->session; -#line 572 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - publishing_yandex_session_set_auth_token (_tmp0_, auth_token); -#line 574 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp1_ = self->priv->session; -#line 574 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp2_ = publishing_yandex_transaction_new_with_url (_tmp1_, "https://api-fotki.yandex.ru/api/me/", PUBLISHING_REST_SUPPORT_HTTP_METHOD_GET); -#line 574 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - t = _tmp2_; -#line 575 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (t, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "completed", (GCallback) _publishing_yandex_yandex_publisher_fetch_account_complete_publishing_rest_support_transaction_completed, self, 0); -#line 576 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (t, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "network-error", (GCallback) _publishing_yandex_yandex_publisher_fetch_account_error_publishing_rest_support_transaction_network_error, self, 0); -#line 4804 "YandexPublishing.c" - { -#line 579 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - publishing_rest_support_transaction_execute (G_TYPE_CHECK_INSTANCE_CAST (t, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), &_inner_error_); -#line 579 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 579 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - if (_inner_error_->domain == SPIT_PUBLISHING_PUBLISHING_ERROR) { -#line 4812 "YandexPublishing.c" - goto __catch40_spit_publishing_publishing_error; - } -#line 579 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _publishing_rest_support_transaction_unref0 (t); -#line 579 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 579 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - g_clear_error (&_inner_error_); -#line 579 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - return; -#line 4823 "YandexPublishing.c" - } - } - goto __finally40; - __catch40_spit_publishing_publishing_error: - { - GError* err = NULL; - SpitPublishingPluginHost* _tmp3_; - GError* _tmp4_; -#line 578 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - err = _inner_error_; -#line 578 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _inner_error_ = NULL; -#line 581 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp3_ = self->priv->host; -#line 581 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp4_ = err; -#line 581 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - spit_publishing_plugin_host_post_error (_tmp3_, _tmp4_); -#line 578 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _g_error_free0 (err); -#line 4844 "YandexPublishing.c" - } - __finally40: -#line 578 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 578 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _publishing_rest_support_transaction_unref0 (t); -#line 578 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 578 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - g_clear_error (&_inner_error_); -#line 578 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - return; -#line 4857 "YandexPublishing.c" - } -#line 571 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _publishing_rest_support_transaction_unref0 (t); -#line 4861 "YandexPublishing.c" -} - - -static void -publishing_yandex_yandex_publisher_web_auth_login_succeeded (PublishingYandexYandexPublisher* self, - const gchar* access_token) -{ - SpitPublishingPluginHost* _tmp0_; - SpitPublishingPluginHost* _tmp1_; -#line 585 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - g_return_if_fail (PUBLISHING_YANDEX_IS_YANDEX_PUBLISHER (self)); -#line 585 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - g_return_if_fail (access_token != NULL); -#line 586 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - g_debug ("YandexPublishing.vala:586: login succeeded with token %s", access_token); -#line 588 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp0_ = self->priv->host; -#line 588 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - spit_publishing_plugin_host_set_service_locked (_tmp0_, TRUE); -#line 589 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp1_ = self->priv->host; -#line 589 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - spit_publishing_plugin_host_install_account_fetch_wait_pane (_tmp1_); -#line 591 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - publishing_yandex_yandex_publisher_fetch_account_information (self, access_token); -#line 4887 "YandexPublishing.c" -} - - -static void -publishing_yandex_yandex_publisher_web_auth_login_failed (PublishingYandexYandexPublisher* self) -{ -#line 594 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - g_return_if_fail (PUBLISHING_YANDEX_IS_YANDEX_PUBLISHER (self)); -#line 595 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - g_debug ("YandexPublishing.vala:595: login failed"); -#line 4898 "YandexPublishing.c" -} - - -static void -_publishing_yandex_yandex_publisher_web_auth_login_succeeded_publishing_yandex_web_auth_pane_login_succeeded (PublishingYandexWebAuthPane* _sender, - const gchar* success_url, - gpointer self) -{ -#line 602 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - publishing_yandex_yandex_publisher_web_auth_login_succeeded ((PublishingYandexYandexPublisher*) self, success_url); -#line 4909 "YandexPublishing.c" -} - - -static void -_publishing_yandex_yandex_publisher_web_auth_login_failed_publishing_yandex_web_auth_pane_login_failed (PublishingYandexWebAuthPane* _sender, - gpointer self) -{ -#line 603 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - publishing_yandex_yandex_publisher_web_auth_login_failed ((PublishingYandexYandexPublisher*) self); -#line 4919 "YandexPublishing.c" -} - - -static void -publishing_yandex_yandex_publisher_start_web_auth (PublishingYandexYandexPublisher* self) -{ - SpitPublishingPluginHost* _tmp0_; - gchar* _tmp1_; - gchar* _tmp2_; - PublishingYandexWebAuthPane* _tmp3_; - PublishingYandexWebAuthPane* _tmp4_; - PublishingYandexWebAuthPane* _tmp5_; - SpitPublishingPluginHost* _tmp6_; - PublishingYandexWebAuthPane* _tmp7_; -#line 598 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - g_return_if_fail (PUBLISHING_YANDEX_IS_YANDEX_PUBLISHER (self)); -#line 599 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp0_ = self->priv->host; -#line 599 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - spit_publishing_plugin_host_set_service_locked (_tmp0_, FALSE); -#line 601 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp1_ = g_strdup_printf ("https://oauth.yandex.ru/authorize?client_id=%s&response_type=token", PUBLISHING_YANDEX_client_id); -#line 601 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp2_ = _tmp1_; -#line 601 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp3_ = publishing_yandex_web_auth_pane_new (_tmp2_); -#line 601 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _g_object_unref0 (self->priv->web_auth_pane); -#line 601 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - self->priv->web_auth_pane = _tmp3_; -#line 601 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _g_free0 (_tmp2_); -#line 602 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp4_ = self->priv->web_auth_pane; -#line 602 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - g_signal_connect_object (_tmp4_, "login-succeeded", (GCallback) _publishing_yandex_yandex_publisher_web_auth_login_succeeded_publishing_yandex_web_auth_pane_login_succeeded, self, 0); -#line 603 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp5_ = self->priv->web_auth_pane; -#line 603 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - g_signal_connect_object (_tmp5_, "login-failed", (GCallback) _publishing_yandex_yandex_publisher_web_auth_login_failed_publishing_yandex_web_auth_pane_login_failed, self, 0); -#line 605 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp6_ = self->priv->host; -#line 605 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp7_ = self->priv->web_auth_pane; -#line 605 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - spit_publishing_plugin_host_install_dialog_pane (_tmp6_, G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, SPIT_PUBLISHING_TYPE_DIALOG_PANE, SpitPublishingDialogPane), SPIT_PUBLISHING_PLUGIN_HOST_BUTTON_MODE_CANCEL); -#line 4966 "YandexPublishing.c" -} - - -static void -_publishing_yandex_yandex_publisher_start_web_auth_spit_publishing_login_callback (gpointer self) -{ -#line 609 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - publishing_yandex_yandex_publisher_start_web_auth ((PublishingYandexYandexPublisher*) self); -#line 4975 "YandexPublishing.c" -} - - -static void -publishing_yandex_yandex_publisher_show_welcome_page (PublishingYandexYandexPublisher* self) -{ - SpitPublishingPluginHost* _tmp0_; -#line 608 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - g_return_if_fail (PUBLISHING_YANDEX_IS_YANDEX_PUBLISHER (self)); -#line 609 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp0_ = self->priv->host; -#line 609 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - spit_publishing_plugin_host_install_welcome_pane (_tmp0_, _ ("You are not currently logged into Yandex.Fotki."), _publishing_yandex_yandex_publisher_start_web_auth_spit_publishing_login_callback, self); -#line 4989 "YandexPublishing.c" -} - - -static void -publishing_yandex_yandex_publisher_real_start (SpitPublishingPublisher* base) -{ - PublishingYandexYandexPublisher * self; - SpitPublishingPluginHost* _tmp0_; -#line 613 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_YANDEX_TYPE_YANDEX_PUBLISHER, PublishingYandexYandexPublisher); -#line 614 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - if (spit_publishing_publisher_is_running (G_TYPE_CHECK_INSTANCE_CAST (self, SPIT_PUBLISHING_TYPE_PUBLISHER, SpitPublishingPublisher))) { -#line 615 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - return; -#line 5004 "YandexPublishing.c" - } -#line 617 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp0_ = self->priv->host; -#line 617 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - if (_tmp0_ == NULL) { -#line 618 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - g_error ("YandexPublishing.vala:618: YandexPublisher: start( ): can't start; thi" \ -"s publisher is not restartable."); -#line 5012 "YandexPublishing.c" - } -#line 620 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - g_debug ("YandexPublishing.vala:620: YandexPublisher: starting interaction."); -#line 622 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - self->priv->running = TRUE; -#line 624 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - if (publishing_yandex_yandex_publisher_is_persistent_session_available (self)) { -#line 5020 "YandexPublishing.c" - PublishingYandexSession* _tmp1_; - gchar* _tmp2_; - gchar* _tmp3_; - gchar* _tmp4_; - gchar* _tmp5_; -#line 625 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp1_ = self->priv->session; -#line 625 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp2_ = publishing_yandex_yandex_publisher_get_persistent_auth_token (self); -#line 625 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp3_ = _tmp2_; -#line 625 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - publishing_yandex_session_set_auth_token (_tmp1_, _tmp3_); -#line 625 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _g_free0 (_tmp3_); -#line 627 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp4_ = publishing_yandex_yandex_publisher_get_persistent_auth_token (self); -#line 627 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp5_ = _tmp4_; -#line 627 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - publishing_yandex_yandex_publisher_fetch_account_information (self, _tmp5_); -#line 627 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _g_free0 (_tmp5_); -#line 5044 "YandexPublishing.c" - } else { -#line 629 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - publishing_yandex_yandex_publisher_show_welcome_page (self); -#line 5048 "YandexPublishing.c" - } -} - - -static void -publishing_yandex_yandex_publisher_real_stop (SpitPublishingPublisher* base) -{ - PublishingYandexYandexPublisher * self; -#line 633 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_YANDEX_TYPE_YANDEX_PUBLISHER, PublishingYandexYandexPublisher); -#line 634 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - g_debug ("YandexPublishing.vala:634: YandexPublisher: stop( ) invoked."); -#line 636 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - self->priv->host = NULL; -#line 637 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - self->priv->running = FALSE; -#line 5065 "YandexPublishing.c" -} - - -static void -publishing_yandex_yandex_publisher_class_init (PublishingYandexYandexPublisherClass * klass) -{ -#line 298 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - publishing_yandex_yandex_publisher_parent_class = g_type_class_peek_parent (klass); -#line 298 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - g_type_class_add_private (klass, sizeof (PublishingYandexYandexPublisherPrivate)); -#line 298 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - G_OBJECT_CLASS (klass)->finalize = publishing_yandex_yandex_publisher_finalize; -#line 5078 "YandexPublishing.c" -} - - -static void -publishing_yandex_yandex_publisher_spit_publishing_publisher_interface_init (SpitPublishingPublisherIface * iface) -{ -#line 298 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - publishing_yandex_yandex_publisher_spit_publishing_publisher_parent_iface = g_type_interface_peek_parent (iface); -#line 298 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - iface->is_running = (gboolean (*) (SpitPublishingPublisher *)) publishing_yandex_yandex_publisher_real_is_running; -#line 298 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - iface->get_service = (SpitPublishingService* (*) (SpitPublishingPublisher *)) publishing_yandex_yandex_publisher_real_get_service; -#line 298 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - iface->start = (void (*) (SpitPublishingPublisher *)) publishing_yandex_yandex_publisher_real_start; -#line 298 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - iface->stop = (void (*) (SpitPublishingPublisher *)) publishing_yandex_yandex_publisher_real_stop; -#line 5095 "YandexPublishing.c" -} - - -static void -publishing_yandex_yandex_publisher_instance_init (PublishingYandexYandexPublisher * self) -{ -#line 298 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - self->priv = PUBLISHING_YANDEX_YANDEX_PUBLISHER_GET_PRIVATE (self); -#line 299 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - self->priv->host = NULL; -#line 300 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - self->priv->progress_reporter = NULL; -#line 300 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - self->priv->progress_reporter_target = self; -#line 300 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - self->priv->progress_reporter_target_destroy_notify = NULL; -#line 301 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - self->priv->service = NULL; -#line 303 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - self->priv->service_url = NULL; -#line 305 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - self->priv->album_list = NULL; -#line 308 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - self->priv->running = FALSE; -#line 310 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - self->priv->web_auth_pane = NULL; -#line 5122 "YandexPublishing.c" -} - - -static void -publishing_yandex_yandex_publisher_finalize (GObject * obj) -{ - PublishingYandexYandexPublisher * self; -#line 298 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, PUBLISHING_YANDEX_TYPE_YANDEX_PUBLISHER, PublishingYandexYandexPublisher); -#line 300 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - (self->priv->progress_reporter_target_destroy_notify == NULL) ? NULL : (self->priv->progress_reporter_target_destroy_notify (self->priv->progress_reporter_target), NULL); -#line 300 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - self->priv->progress_reporter = NULL; -#line 300 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - self->priv->progress_reporter_target = NULL; -#line 300 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - self->priv->progress_reporter_target_destroy_notify = NULL; -#line 303 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _g_free0 (self->priv->service_url); -#line 305 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _g_object_unref0 (self->priv->album_list); -#line 306 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _publishing_yandex_publish_options_unref0 (self->priv->options); -#line 310 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _g_object_unref0 (self->priv->web_auth_pane); -#line 312 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _publishing_rest_support_session_unref0 (self->priv->session); -#line 298 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - G_OBJECT_CLASS (publishing_yandex_yandex_publisher_parent_class)->finalize (obj); -#line 5152 "YandexPublishing.c" -} - - -GType -publishing_yandex_yandex_publisher_get_type (void) -{ - static volatile gsize publishing_yandex_yandex_publisher_type_id__volatile = 0; - if (g_once_init_enter (&publishing_yandex_yandex_publisher_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (PublishingYandexYandexPublisherClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) publishing_yandex_yandex_publisher_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PublishingYandexYandexPublisher), 0, (GInstanceInitFunc) publishing_yandex_yandex_publisher_instance_init, NULL }; - static const GInterfaceInfo spit_publishing_publisher_info = { (GInterfaceInitFunc) publishing_yandex_yandex_publisher_spit_publishing_publisher_interface_init, (GInterfaceFinalizeFunc) NULL, NULL}; - GType publishing_yandex_yandex_publisher_type_id; - publishing_yandex_yandex_publisher_type_id = g_type_register_static (G_TYPE_OBJECT, "PublishingYandexYandexPublisher", &g_define_type_info, 0); - g_type_add_interface_static (publishing_yandex_yandex_publisher_type_id, SPIT_PUBLISHING_TYPE_PUBLISHER, &spit_publishing_publisher_info); - g_once_init_leave (&publishing_yandex_yandex_publisher_type_id__volatile, publishing_yandex_yandex_publisher_type_id); - } - return publishing_yandex_yandex_publisher_type_id__volatile; -} - - -static void -_vala_array_destroy (gpointer array, - gint array_length, - GDestroyNotify destroy_func) -{ - if ((array != NULL) && (destroy_func != NULL)) { - int i; - for (i = 0; i < array_length; i = i + 1) { - if (((gpointer*) array)[i] != NULL) { - destroy_func (((gpointer*) array)[i]); - } - } - } -} - - -static void -_vala_array_free (gpointer array, - gint array_length, - GDestroyNotify destroy_func) -{ - _vala_array_destroy (array, array_length, destroy_func); - g_free (array); -} - - -static gint -_vala_array_length (gpointer array) -{ - int length; - length = 0; - if (array) { - while (((gpointer*) array)[length]) { - length++; - } - } - return length; -} - - - diff --git a/plugins/shotwell-publishing-extras/shotwell-publishing-extras.c b/plugins/shotwell-publishing-extras/shotwell-publishing-extras.c deleted file mode 100644 index e873272..0000000 --- a/plugins/shotwell-publishing-extras/shotwell-publishing-extras.c +++ /dev/null @@ -1,387 +0,0 @@ -/* shotwell-publishing-extras.c generated by valac 0.40.4, the Vala compiler - * generated from shotwell-publishing-extras.vala, do not modify */ - -/* Copyright 2016 Software Freedom Conservancy Inc. - * - * This software is licensed under the GNU Lesser General Public License - * (version 2.1 or later). See the COPYING file in this distribution. - */ - - -#include -#include -#include -#include -#include -#include -#include - - -#define TYPE_SHOTWELL_PUBLISHING_EXTRA_SERVICES (shotwell_publishing_extra_services_get_type ()) -#define SHOTWELL_PUBLISHING_EXTRA_SERVICES(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SHOTWELL_PUBLISHING_EXTRA_SERVICES, ShotwellPublishingExtraServices)) -#define SHOTWELL_PUBLISHING_EXTRA_SERVICES_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SHOTWELL_PUBLISHING_EXTRA_SERVICES, ShotwellPublishingExtraServicesClass)) -#define IS_SHOTWELL_PUBLISHING_EXTRA_SERVICES(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SHOTWELL_PUBLISHING_EXTRA_SERVICES)) -#define IS_SHOTWELL_PUBLISHING_EXTRA_SERVICES_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SHOTWELL_PUBLISHING_EXTRA_SERVICES)) -#define SHOTWELL_PUBLISHING_EXTRA_SERVICES_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SHOTWELL_PUBLISHING_EXTRA_SERVICES, ShotwellPublishingExtraServicesClass)) - -typedef struct _ShotwellPublishingExtraServices ShotwellPublishingExtraServices; -typedef struct _ShotwellPublishingExtraServicesClass ShotwellPublishingExtraServicesClass; -typedef struct _ShotwellPublishingExtraServicesPrivate ShotwellPublishingExtraServicesPrivate; -enum { - SHOTWELL_PUBLISHING_EXTRA_SERVICES_0_PROPERTY, - SHOTWELL_PUBLISHING_EXTRA_SERVICES_NUM_PROPERTIES -}; -static GParamSpec* shotwell_publishing_extra_services_properties[SHOTWELL_PUBLISHING_EXTRA_SERVICES_NUM_PROPERTIES]; - -#define TYPE_GALLERY3_SERVICE (gallery3_service_get_type ()) -#define GALLERY3_SERVICE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_GALLERY3_SERVICE, Gallery3Service)) -#define GALLERY3_SERVICE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_GALLERY3_SERVICE, Gallery3ServiceClass)) -#define IS_GALLERY3_SERVICE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_GALLERY3_SERVICE)) -#define IS_GALLERY3_SERVICE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_GALLERY3_SERVICE)) -#define GALLERY3_SERVICE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_GALLERY3_SERVICE, Gallery3ServiceClass)) - -typedef struct _Gallery3Service Gallery3Service; -typedef struct _Gallery3ServiceClass Gallery3ServiceClass; -#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL))) - -struct _ShotwellPublishingExtraServices { - GObject parent_instance; - ShotwellPublishingExtraServicesPrivate * priv; -}; - -struct _ShotwellPublishingExtraServicesClass { - GObjectClass parent_class; -}; - -struct _ShotwellPublishingExtraServicesPrivate { - SpitPluggable** pluggables; - gint pluggables_length1; - gint _pluggables_size_; -}; - - -static gpointer shotwell_publishing_extra_services_parent_class = NULL; -static SpitModuleIface * shotwell_publishing_extra_services_spit_module_parent_iface = NULL; - -GType shotwell_publishing_extra_services_get_type (void) G_GNUC_CONST; -#define SHOTWELL_PUBLISHING_EXTRA_SERVICES_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_SHOTWELL_PUBLISHING_EXTRA_SERVICES, ShotwellPublishingExtraServicesPrivate)) -ShotwellPublishingExtraServices* shotwell_publishing_extra_services_new (GFile* module_file); -ShotwellPublishingExtraServices* shotwell_publishing_extra_services_construct (GType object_type, - GFile* module_file); -Gallery3Service* gallery3_service_new (GFile* resource_directory); -Gallery3Service* gallery3_service_construct (GType object_type, - GFile* resource_directory); -GType gallery3_service_get_type (void) G_GNUC_CONST; -static void _vala_array_add14 (SpitPluggable** * array, - int* length, - int* size, - SpitPluggable* value); -static const gchar* shotwell_publishing_extra_services_real_get_module_name (SpitModule* base); -static const gchar* shotwell_publishing_extra_services_real_get_version (SpitModule* base); -static const gchar* shotwell_publishing_extra_services_real_get_id (SpitModule* base); -static SpitPluggable** shotwell_publishing_extra_services_real_get_pluggables (SpitModule* base, - int* result_length1); -static void shotwell_publishing_extra_services_finalize (GObject * obj); -SpitModule* spit_entry_point (SpitEntryPointParams* params); -static void _vala_array_destroy (gpointer array, - gint array_length, - GDestroyNotify destroy_func); -static void _vala_array_free (gpointer array, - gint array_length, - GDestroyNotify destroy_func); - - -static void -_vala_array_add14 (SpitPluggable** * array, - int* length, - int* size, - SpitPluggable* value) -{ -#line 22 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/shotwell-publishing-extras.vala" - if ((*length) == (*size)) { -#line 22 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/shotwell-publishing-extras.vala" - *size = (*size) ? (2 * (*size)) : 4; -#line 22 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/shotwell-publishing-extras.vala" - *array = g_renew (SpitPluggable*, *array, (*size) + 1); -#line 107 "shotwell-publishing-extras.c" - } -#line 22 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/shotwell-publishing-extras.vala" - (*array)[(*length)++] = value; -#line 22 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/shotwell-publishing-extras.vala" - (*array)[*length] = NULL; -#line 113 "shotwell-publishing-extras.c" -} - - -ShotwellPublishingExtraServices* -shotwell_publishing_extra_services_construct (GType object_type, - GFile* module_file) -{ - ShotwellPublishingExtraServices * self = NULL; - SpitPluggable** _tmp0_; - gint _tmp0__length1; - GFile* _tmp1_; - GFile* _tmp2_; - Gallery3Service* _tmp3_; -#line 12 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/shotwell-publishing-extras.vala" - g_return_val_if_fail (G_IS_FILE (module_file), NULL); -#line 12 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/shotwell-publishing-extras.vala" - self = (ShotwellPublishingExtraServices*) g_object_new (object_type, NULL); -#line 22 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/shotwell-publishing-extras.vala" - _tmp0_ = self->priv->pluggables; -#line 22 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/shotwell-publishing-extras.vala" - _tmp0__length1 = self->priv->pluggables_length1; -#line 22 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/shotwell-publishing-extras.vala" - _tmp1_ = g_file_get_parent (module_file); -#line 22 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/shotwell-publishing-extras.vala" - _tmp2_ = _tmp1_; -#line 22 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/shotwell-publishing-extras.vala" - _tmp3_ = gallery3_service_new (_tmp2_); -#line 22 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/shotwell-publishing-extras.vala" - _vala_array_add14 (&self->priv->pluggables, &self->priv->pluggables_length1, &self->priv->_pluggables_size_, G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, SPIT_TYPE_PLUGGABLE, SpitPluggable)); -#line 22 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/shotwell-publishing-extras.vala" - _g_object_unref0 (_tmp2_); -#line 12 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/shotwell-publishing-extras.vala" - return self; -#line 147 "shotwell-publishing-extras.c" -} - - -ShotwellPublishingExtraServices* -shotwell_publishing_extra_services_new (GFile* module_file) -{ -#line 12 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/shotwell-publishing-extras.vala" - return shotwell_publishing_extra_services_construct (TYPE_SHOTWELL_PUBLISHING_EXTRA_SERVICES, module_file); -#line 156 "shotwell-publishing-extras.c" -} - - -static const gchar* -shotwell_publishing_extra_services_real_get_module_name (SpitModule* base) -{ - ShotwellPublishingExtraServices * self; - const gchar* result = NULL; -#line 26 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/shotwell-publishing-extras.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_SHOTWELL_PUBLISHING_EXTRA_SERVICES, ShotwellPublishingExtraServices); -#line 27 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/shotwell-publishing-extras.vala" - result = _ ("Shotwell Extra Publishing Services"); -#line 27 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/shotwell-publishing-extras.vala" - return result; -#line 171 "shotwell-publishing-extras.c" -} - - -static const gchar* -shotwell_publishing_extra_services_real_get_version (SpitModule* base) -{ - ShotwellPublishingExtraServices * self; - const gchar* result = NULL; -#line 30 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/shotwell-publishing-extras.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_SHOTWELL_PUBLISHING_EXTRA_SERVICES, ShotwellPublishingExtraServices); -#line 31 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/shotwell-publishing-extras.vala" - result = _VERSION; -#line 31 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/shotwell-publishing-extras.vala" - return result; -#line 186 "shotwell-publishing-extras.c" -} - - -static const gchar* -shotwell_publishing_extra_services_real_get_id (SpitModule* base) -{ - ShotwellPublishingExtraServices * self; - const gchar* result = NULL; -#line 34 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/shotwell-publishing-extras.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_SHOTWELL_PUBLISHING_EXTRA_SERVICES, ShotwellPublishingExtraServices); -#line 35 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/shotwell-publishing-extras.vala" - result = "org.yorba.shotwell.publishing.extras"; -#line 35 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/shotwell-publishing-extras.vala" - return result; -#line 201 "shotwell-publishing-extras.c" -} - - -static SpitPluggable** -shotwell_publishing_extra_services_real_get_pluggables (SpitModule* base, - int* result_length1) -{ - ShotwellPublishingExtraServices * self; - SpitPluggable** result = NULL; - SpitPluggable** _tmp0_; - gint _tmp0__length1; - SpitPluggable** _tmp1_; - gint _tmp1__length1; -#line 38 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/shotwell-publishing-extras.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_SHOTWELL_PUBLISHING_EXTRA_SERVICES, ShotwellPublishingExtraServices); -#line 39 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/shotwell-publishing-extras.vala" - _tmp0_ = self->priv->pluggables; -#line 39 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/shotwell-publishing-extras.vala" - _tmp0__length1 = self->priv->pluggables_length1; -#line 39 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/shotwell-publishing-extras.vala" - _tmp1_ = _tmp0_; -#line 39 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/shotwell-publishing-extras.vala" - _tmp1__length1 = _tmp0__length1; -#line 39 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/shotwell-publishing-extras.vala" - if (result_length1) { -#line 39 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/shotwell-publishing-extras.vala" - *result_length1 = _tmp1__length1; -#line 229 "shotwell-publishing-extras.c" - } -#line 39 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/shotwell-publishing-extras.vala" - result = _tmp1_; -#line 39 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/shotwell-publishing-extras.vala" - return result; -#line 235 "shotwell-publishing-extras.c" -} - - -static void -shotwell_publishing_extra_services_class_init (ShotwellPublishingExtraServicesClass * klass) -{ -#line 9 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/shotwell-publishing-extras.vala" - shotwell_publishing_extra_services_parent_class = g_type_class_peek_parent (klass); -#line 9 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/shotwell-publishing-extras.vala" - g_type_class_add_private (klass, sizeof (ShotwellPublishingExtraServicesPrivate)); -#line 9 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/shotwell-publishing-extras.vala" - G_OBJECT_CLASS (klass)->finalize = shotwell_publishing_extra_services_finalize; -#line 248 "shotwell-publishing-extras.c" -} - - -static void -shotwell_publishing_extra_services_spit_module_interface_init (SpitModuleIface * iface) -{ -#line 9 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/shotwell-publishing-extras.vala" - shotwell_publishing_extra_services_spit_module_parent_iface = g_type_interface_peek_parent (iface); -#line 9 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/shotwell-publishing-extras.vala" - iface->get_module_name = (const gchar* (*) (SpitModule *)) shotwell_publishing_extra_services_real_get_module_name; -#line 9 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/shotwell-publishing-extras.vala" - iface->get_version = (const gchar* (*) (SpitModule *)) shotwell_publishing_extra_services_real_get_version; -#line 9 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/shotwell-publishing-extras.vala" - iface->get_id = (const gchar* (*) (SpitModule *)) shotwell_publishing_extra_services_real_get_id; -#line 9 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/shotwell-publishing-extras.vala" - iface->get_pluggables = (SpitPluggable** (*) (SpitModule *, int*)) shotwell_publishing_extra_services_real_get_pluggables; -#line 265 "shotwell-publishing-extras.c" -} - - -static void -shotwell_publishing_extra_services_instance_init (ShotwellPublishingExtraServices * self) -{ - SpitPluggable** _tmp0_; -#line 9 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/shotwell-publishing-extras.vala" - self->priv = SHOTWELL_PUBLISHING_EXTRA_SERVICES_GET_PRIVATE (self); -#line 10 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/shotwell-publishing-extras.vala" - _tmp0_ = g_new0 (SpitPluggable*, 0 + 1); -#line 10 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/shotwell-publishing-extras.vala" - self->priv->pluggables = _tmp0_; -#line 10 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/shotwell-publishing-extras.vala" - self->priv->pluggables_length1 = 0; -#line 10 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/shotwell-publishing-extras.vala" - self->priv->_pluggables_size_ = self->priv->pluggables_length1; -#line 283 "shotwell-publishing-extras.c" -} - - -static void -shotwell_publishing_extra_services_finalize (GObject * obj) -{ - ShotwellPublishingExtraServices * self; -#line 9 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/shotwell-publishing-extras.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_SHOTWELL_PUBLISHING_EXTRA_SERVICES, ShotwellPublishingExtraServices); -#line 10 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/shotwell-publishing-extras.vala" - self->priv->pluggables = (_vala_array_free (self->priv->pluggables, self->priv->pluggables_length1, (GDestroyNotify) g_object_unref), NULL); -#line 9 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/shotwell-publishing-extras.vala" - G_OBJECT_CLASS (shotwell_publishing_extra_services_parent_class)->finalize (obj); -#line 297 "shotwell-publishing-extras.c" -} - - -GType -shotwell_publishing_extra_services_get_type (void) -{ - static volatile gsize shotwell_publishing_extra_services_type_id__volatile = 0; - if (g_once_init_enter (&shotwell_publishing_extra_services_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (ShotwellPublishingExtraServicesClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) shotwell_publishing_extra_services_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (ShotwellPublishingExtraServices), 0, (GInstanceInitFunc) shotwell_publishing_extra_services_instance_init, NULL }; - static const GInterfaceInfo spit_module_info = { (GInterfaceInitFunc) shotwell_publishing_extra_services_spit_module_interface_init, (GInterfaceFinalizeFunc) NULL, NULL}; - GType shotwell_publishing_extra_services_type_id; - shotwell_publishing_extra_services_type_id = g_type_register_static (G_TYPE_OBJECT, "ShotwellPublishingExtraServices", &g_define_type_info, 0); - g_type_add_interface_static (shotwell_publishing_extra_services_type_id, SPIT_TYPE_MODULE, &spit_module_info); - g_once_init_leave (&shotwell_publishing_extra_services_type_id__volatile, shotwell_publishing_extra_services_type_id); - } - return shotwell_publishing_extra_services_type_id__volatile; -} - - -SpitModule* -spit_entry_point (SpitEntryPointParams* params) -{ - SpitModule* result = NULL; - gint _tmp0_; - gint _tmp1_; - ShotwellPublishingExtraServices* _tmp2_ = NULL; - gint _tmp3_; -#line 45 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/shotwell-publishing-extras.vala" - _tmp0_ = (*params).host_min_spit_interface; -#line 45 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/shotwell-publishing-extras.vala" - _tmp1_ = (*params).host_max_spit_interface; -#line 45 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/shotwell-publishing-extras.vala" - (*params).module_spit_interface = spit_negotiate_interfaces (_tmp0_, _tmp1_, SPIT_CURRENT_INTERFACE); -#line 48 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/shotwell-publishing-extras.vala" - _tmp3_ = (*params).module_spit_interface; -#line 48 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/shotwell-publishing-extras.vala" - if (_tmp3_ != SPIT_UNSUPPORTED_INTERFACE) { -#line 335 "shotwell-publishing-extras.c" - GFile* _tmp4_; - ShotwellPublishingExtraServices* _tmp5_; -#line 49 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/shotwell-publishing-extras.vala" - _tmp4_ = (*params).module_file; -#line 49 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/shotwell-publishing-extras.vala" - _tmp5_ = shotwell_publishing_extra_services_new (_tmp4_); -#line 49 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/shotwell-publishing-extras.vala" - _g_object_unref0 (_tmp2_); -#line 49 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/shotwell-publishing-extras.vala" - _tmp2_ = _tmp5_; -#line 346 "shotwell-publishing-extras.c" - } else { -#line 49 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/shotwell-publishing-extras.vala" - _g_object_unref0 (_tmp2_); -#line 49 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/shotwell-publishing-extras.vala" - _tmp2_ = NULL; -#line 352 "shotwell-publishing-extras.c" - } -#line 48 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/shotwell-publishing-extras.vala" - result = G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, SPIT_TYPE_MODULE, SpitModule); -#line 48 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/shotwell-publishing-extras.vala" - return result; -#line 358 "shotwell-publishing-extras.c" -} - - -static void -_vala_array_destroy (gpointer array, - gint array_length, - GDestroyNotify destroy_func) -{ - if ((array != NULL) && (destroy_func != NULL)) { - int i; - for (i = 0; i < array_length; i = i + 1) { - if (((gpointer*) array)[i] != NULL) { - destroy_func (((gpointer*) array)[i]); - } - } - } -} - - -static void -_vala_array_free (gpointer array, - gint array_length, - GDestroyNotify destroy_func) -{ - _vala_array_destroy (array, array_length, destroy_func); - g_free (array); -} - - - diff --git a/plugins/shotwell-publishing/FacebookPublishing.c b/plugins/shotwell-publishing/FacebookPublishing.c deleted file mode 100644 index 3b257d4..0000000 --- a/plugins/shotwell-publishing/FacebookPublishing.c +++ /dev/null @@ -1,10155 +0,0 @@ -/* FacebookPublishing.c generated by valac 0.40.4, the Vala compiler - * generated from FacebookPublishing.vala, do not modify */ - -/* Copyright 2016 Software Freedom Conservancy Inc. - * - * This software is licensed under the GNU Lesser General Public License - * (version 2.1 or later). See the COPYING file in this distribution. - */ - - -#include -#include -#include -#include -#include -#include -#include -#include "shotwell-plugin-common.h" -#include -#include "shotwell-authenticator.h" -#include -#include -#include -#include -#include -#include - - -#define TYPE_FACEBOOK_SERVICE (facebook_service_get_type ()) -#define FACEBOOK_SERVICE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_FACEBOOK_SERVICE, FacebookService)) -#define FACEBOOK_SERVICE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_FACEBOOK_SERVICE, FacebookServiceClass)) -#define IS_FACEBOOK_SERVICE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_FACEBOOK_SERVICE)) -#define IS_FACEBOOK_SERVICE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_FACEBOOK_SERVICE)) -#define FACEBOOK_SERVICE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_FACEBOOK_SERVICE, FacebookServiceClass)) - -typedef struct _FacebookService FacebookService; -typedef struct _FacebookServiceClass FacebookServiceClass; -typedef struct _FacebookServicePrivate FacebookServicePrivate; -enum { - FACEBOOK_SERVICE_0_PROPERTY, - FACEBOOK_SERVICE_NUM_PROPERTIES -}; -static GParamSpec* facebook_service_properties[FACEBOOK_SERVICE_NUM_PROPERTIES]; -#define _g_free0(var) (var = (g_free (var), NULL)) - -#define PUBLISHING_FACEBOOK_TYPE_FACEBOOK_PUBLISHER (publishing_facebook_facebook_publisher_get_type ()) -#define PUBLISHING_FACEBOOK_FACEBOOK_PUBLISHER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_FACEBOOK_TYPE_FACEBOOK_PUBLISHER, PublishingFacebookFacebookPublisher)) -#define PUBLISHING_FACEBOOK_FACEBOOK_PUBLISHER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_FACEBOOK_TYPE_FACEBOOK_PUBLISHER, PublishingFacebookFacebookPublisherClass)) -#define PUBLISHING_FACEBOOK_IS_FACEBOOK_PUBLISHER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_FACEBOOK_TYPE_FACEBOOK_PUBLISHER)) -#define PUBLISHING_FACEBOOK_IS_FACEBOOK_PUBLISHER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_FACEBOOK_TYPE_FACEBOOK_PUBLISHER)) -#define PUBLISHING_FACEBOOK_FACEBOOK_PUBLISHER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_FACEBOOK_TYPE_FACEBOOK_PUBLISHER, PublishingFacebookFacebookPublisherClass)) - -typedef struct _PublishingFacebookFacebookPublisher PublishingFacebookFacebookPublisher; -typedef struct _PublishingFacebookFacebookPublisherClass PublishingFacebookFacebookPublisherClass; - -#define PUBLISHING_FACEBOOK_TYPE_ALBUM (publishing_facebook_album_get_type ()) -#define PUBLISHING_FACEBOOK_ALBUM(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_FACEBOOK_TYPE_ALBUM, PublishingFacebookAlbum)) -#define PUBLISHING_FACEBOOK_ALBUM_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_FACEBOOK_TYPE_ALBUM, PublishingFacebookAlbumClass)) -#define PUBLISHING_FACEBOOK_IS_ALBUM(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_FACEBOOK_TYPE_ALBUM)) -#define PUBLISHING_FACEBOOK_IS_ALBUM_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_FACEBOOK_TYPE_ALBUM)) -#define PUBLISHING_FACEBOOK_ALBUM_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_FACEBOOK_TYPE_ALBUM, PublishingFacebookAlbumClass)) - -typedef struct _PublishingFacebookAlbum PublishingFacebookAlbum; -typedef struct _PublishingFacebookAlbumClass PublishingFacebookAlbumClass; -typedef struct _PublishingFacebookAlbumPrivate PublishingFacebookAlbumPrivate; -typedef struct _PublishingFacebookParamSpecAlbum PublishingFacebookParamSpecAlbum; - -#define PUBLISHING_FACEBOOK_TYPE_RESOLUTION (publishing_facebook_resolution_get_type ()) - -#define PUBLISHING_FACEBOOK_TYPE_PUBLISHING_PARAMETERS (publishing_facebook_publishing_parameters_get_type ()) -#define PUBLISHING_FACEBOOK_PUBLISHING_PARAMETERS(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_FACEBOOK_TYPE_PUBLISHING_PARAMETERS, PublishingFacebookPublishingParameters)) -#define PUBLISHING_FACEBOOK_PUBLISHING_PARAMETERS_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_FACEBOOK_TYPE_PUBLISHING_PARAMETERS, PublishingFacebookPublishingParametersClass)) -#define PUBLISHING_FACEBOOK_IS_PUBLISHING_PARAMETERS(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_FACEBOOK_TYPE_PUBLISHING_PARAMETERS)) -#define PUBLISHING_FACEBOOK_IS_PUBLISHING_PARAMETERS_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_FACEBOOK_TYPE_PUBLISHING_PARAMETERS)) -#define PUBLISHING_FACEBOOK_PUBLISHING_PARAMETERS_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_FACEBOOK_TYPE_PUBLISHING_PARAMETERS, PublishingFacebookPublishingParametersClass)) - -typedef struct _PublishingFacebookPublishingParameters PublishingFacebookPublishingParameters; -typedef struct _PublishingFacebookPublishingParametersClass PublishingFacebookPublishingParametersClass; -typedef struct _PublishingFacebookPublishingParametersPrivate PublishingFacebookPublishingParametersPrivate; -#define _publishing_facebook_album_unref0(var) ((var == NULL) ? NULL : (var = (publishing_facebook_album_unref (var), NULL))) -typedef struct _PublishingFacebookParamSpecPublishingParameters PublishingFacebookParamSpecPublishingParameters; -typedef struct _PublishingFacebookFacebookPublisherPrivate PublishingFacebookFacebookPublisherPrivate; - -#define PUBLISHING_FACEBOOK_TYPE_GRAPH_SESSION (publishing_facebook_graph_session_get_type ()) -#define PUBLISHING_FACEBOOK_GRAPH_SESSION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_FACEBOOK_TYPE_GRAPH_SESSION, PublishingFacebookGraphSession)) -#define PUBLISHING_FACEBOOK_GRAPH_SESSION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_FACEBOOK_TYPE_GRAPH_SESSION, PublishingFacebookGraphSessionClass)) -#define PUBLISHING_FACEBOOK_IS_GRAPH_SESSION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_FACEBOOK_TYPE_GRAPH_SESSION)) -#define PUBLISHING_FACEBOOK_IS_GRAPH_SESSION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_FACEBOOK_TYPE_GRAPH_SESSION)) -#define PUBLISHING_FACEBOOK_GRAPH_SESSION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_FACEBOOK_TYPE_GRAPH_SESSION, PublishingFacebookGraphSessionClass)) - -typedef struct _PublishingFacebookGraphSession PublishingFacebookGraphSession; -typedef struct _PublishingFacebookGraphSessionClass PublishingFacebookGraphSessionClass; - -#define PUBLISHING_FACEBOOK_TYPE_PUBLISHING_OPTIONS_PANE (publishing_facebook_publishing_options_pane_get_type ()) -#define PUBLISHING_FACEBOOK_PUBLISHING_OPTIONS_PANE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_FACEBOOK_TYPE_PUBLISHING_OPTIONS_PANE, PublishingFacebookPublishingOptionsPane)) -#define PUBLISHING_FACEBOOK_PUBLISHING_OPTIONS_PANE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_FACEBOOK_TYPE_PUBLISHING_OPTIONS_PANE, PublishingFacebookPublishingOptionsPaneClass)) -#define PUBLISHING_FACEBOOK_IS_PUBLISHING_OPTIONS_PANE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_FACEBOOK_TYPE_PUBLISHING_OPTIONS_PANE)) -#define PUBLISHING_FACEBOOK_IS_PUBLISHING_OPTIONS_PANE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_FACEBOOK_TYPE_PUBLISHING_OPTIONS_PANE)) -#define PUBLISHING_FACEBOOK_PUBLISHING_OPTIONS_PANE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_FACEBOOK_TYPE_PUBLISHING_OPTIONS_PANE, PublishingFacebookPublishingOptionsPaneClass)) - -typedef struct _PublishingFacebookPublishingOptionsPane PublishingFacebookPublishingOptionsPane; -typedef struct _PublishingFacebookPublishingOptionsPaneClass PublishingFacebookPublishingOptionsPaneClass; - -#define PUBLISHING_FACEBOOK_TYPE_UPLOADER (publishing_facebook_uploader_get_type ()) -#define PUBLISHING_FACEBOOK_UPLOADER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_FACEBOOK_TYPE_UPLOADER, PublishingFacebookUploader)) -#define PUBLISHING_FACEBOOK_UPLOADER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_FACEBOOK_TYPE_UPLOADER, PublishingFacebookUploaderClass)) -#define PUBLISHING_FACEBOOK_IS_UPLOADER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_FACEBOOK_TYPE_UPLOADER)) -#define PUBLISHING_FACEBOOK_IS_UPLOADER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_FACEBOOK_TYPE_UPLOADER)) -#define PUBLISHING_FACEBOOK_UPLOADER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_FACEBOOK_TYPE_UPLOADER, PublishingFacebookUploaderClass)) - -typedef struct _PublishingFacebookUploader PublishingFacebookUploader; -typedef struct _PublishingFacebookUploaderClass PublishingFacebookUploaderClass; -enum { - PUBLISHING_FACEBOOK_FACEBOOK_PUBLISHER_0_PROPERTY, - PUBLISHING_FACEBOOK_FACEBOOK_PUBLISHER_NUM_PROPERTIES -}; -static GParamSpec* publishing_facebook_facebook_publisher_properties[PUBLISHING_FACEBOOK_FACEBOOK_PUBLISHER_NUM_PROPERTIES]; -#define _publishing_facebook_publishing_parameters_unref0(var) ((var == NULL) ? NULL : (var = (publishing_facebook_publishing_parameters_unref (var), NULL))) -#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL))) -#define _publishing_facebook_graph_session_unref0(var) ((var == NULL) ? NULL : (var = (publishing_facebook_graph_session_unref (var), NULL))) -#define _publishing_facebook_uploader_unref0(var) ((var == NULL) ? NULL : (var = (publishing_facebook_uploader_unref (var), NULL))) - -#define PUBLISHING_FACEBOOK_TYPE_GRAPH_MESSAGE (publishing_facebook_graph_message_get_type ()) -#define PUBLISHING_FACEBOOK_GRAPH_MESSAGE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_FACEBOOK_TYPE_GRAPH_MESSAGE, PublishingFacebookGraphMessage)) -#define PUBLISHING_FACEBOOK_GRAPH_MESSAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_FACEBOOK_TYPE_GRAPH_MESSAGE, PublishingFacebookGraphMessageClass)) -#define PUBLISHING_FACEBOOK_IS_GRAPH_MESSAGE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_FACEBOOK_TYPE_GRAPH_MESSAGE)) -#define PUBLISHING_FACEBOOK_IS_GRAPH_MESSAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_FACEBOOK_TYPE_GRAPH_MESSAGE)) -#define PUBLISHING_FACEBOOK_GRAPH_MESSAGE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_FACEBOOK_TYPE_GRAPH_MESSAGE, PublishingFacebookGraphMessageClass)) - -typedef struct _PublishingFacebookGraphMessage PublishingFacebookGraphMessage; -typedef struct _PublishingFacebookGraphMessageClass PublishingFacebookGraphMessageClass; -#define _publishing_facebook_graph_message_unref0(var) ((var == NULL) ? NULL : (var = (publishing_facebook_graph_message_unref (var), NULL))) -#define _json_object_unref0(var) ((var == NULL) ? NULL : (var = (json_object_unref (var), NULL))) -#define __vala_JsonNode_free0(var) ((var == NULL) ? NULL : (var = (_vala_JsonNode_free (var), NULL))) -#define _g_error_free0(var) ((var == NULL) ? NULL : (var = (g_error_free (var), NULL))) -#define _json_array_unref0(var) ((var == NULL) ? NULL : (var = (json_array_unref (var), NULL))) -#define _g_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))) -typedef struct _PublishingFacebookPublishingOptionsPanePrivate PublishingFacebookPublishingOptionsPanePrivate; - -#define PUBLISHING_FACEBOOK_PUBLISHING_OPTIONS_PANE_TYPE_PRIVACY_DESCRIPTION (publishing_facebook_publishing_options_pane_privacy_description_get_type ()) -#define PUBLISHING_FACEBOOK_PUBLISHING_OPTIONS_PANE_PRIVACY_DESCRIPTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_FACEBOOK_PUBLISHING_OPTIONS_PANE_TYPE_PRIVACY_DESCRIPTION, PublishingFacebookPublishingOptionsPanePrivacyDescription)) -#define PUBLISHING_FACEBOOK_PUBLISHING_OPTIONS_PANE_PRIVACY_DESCRIPTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_FACEBOOK_PUBLISHING_OPTIONS_PANE_TYPE_PRIVACY_DESCRIPTION, PublishingFacebookPublishingOptionsPanePrivacyDescriptionClass)) -#define PUBLISHING_FACEBOOK_PUBLISHING_OPTIONS_PANE_IS_PRIVACY_DESCRIPTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_FACEBOOK_PUBLISHING_OPTIONS_PANE_TYPE_PRIVACY_DESCRIPTION)) -#define PUBLISHING_FACEBOOK_PUBLISHING_OPTIONS_PANE_IS_PRIVACY_DESCRIPTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_FACEBOOK_PUBLISHING_OPTIONS_PANE_TYPE_PRIVACY_DESCRIPTION)) -#define PUBLISHING_FACEBOOK_PUBLISHING_OPTIONS_PANE_PRIVACY_DESCRIPTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_FACEBOOK_PUBLISHING_OPTIONS_PANE_TYPE_PRIVACY_DESCRIPTION, PublishingFacebookPublishingOptionsPanePrivacyDescriptionClass)) - -typedef struct _PublishingFacebookPublishingOptionsPanePrivacyDescription PublishingFacebookPublishingOptionsPanePrivacyDescription; -typedef struct _PublishingFacebookPublishingOptionsPanePrivacyDescriptionClass PublishingFacebookPublishingOptionsPanePrivacyDescriptionClass; -enum { - PUBLISHING_FACEBOOK_PUBLISHING_OPTIONS_PANE_0_PROPERTY, - PUBLISHING_FACEBOOK_PUBLISHING_OPTIONS_PANE_NUM_PROPERTIES -}; -static GParamSpec* publishing_facebook_publishing_options_pane_properties[PUBLISHING_FACEBOOK_PUBLISHING_OPTIONS_PANE_NUM_PROPERTIES]; -#define _g_slist_free0(var) ((var == NULL) ? NULL : (var = (g_slist_free (var), NULL))) -typedef struct _PublishingFacebookPublishingOptionsPanePrivacyDescriptionPrivate PublishingFacebookPublishingOptionsPanePrivacyDescriptionPrivate; -#define _publishing_facebook_publishing_options_pane_privacy_description_unref0(var) ((var == NULL) ? NULL : (var = (publishing_facebook_publishing_options_pane_privacy_description_unref (var), NULL))) -typedef struct _PublishingFacebookPublishingOptionsPaneParamSpecPrivacyDescription PublishingFacebookPublishingOptionsPaneParamSpecPrivacyDescription; -enum { - PUBLISHING_FACEBOOK_PUBLISHING_OPTIONS_PANE_LOGOUT_SIGNAL, - PUBLISHING_FACEBOOK_PUBLISHING_OPTIONS_PANE_PUBLISH_SIGNAL, - PUBLISHING_FACEBOOK_PUBLISHING_OPTIONS_PANE_NUM_SIGNALS -}; -static guint publishing_facebook_publishing_options_pane_signals[PUBLISHING_FACEBOOK_PUBLISHING_OPTIONS_PANE_NUM_SIGNALS] = {0}; - -#define PUBLISHING_FACEBOOK_TYPE_ENDPOINT (publishing_facebook_endpoint_get_type ()) -typedef struct _PublishingFacebookGraphMessagePrivate PublishingFacebookGraphMessagePrivate; -typedef struct _PublishingFacebookParamSpecGraphMessage PublishingFacebookParamSpecGraphMessage; -enum { - PUBLISHING_FACEBOOK_GRAPH_MESSAGE_COMPLETED_SIGNAL, - PUBLISHING_FACEBOOK_GRAPH_MESSAGE_FAILED_SIGNAL, - PUBLISHING_FACEBOOK_GRAPH_MESSAGE_DATA_TRANSMITTED_SIGNAL, - PUBLISHING_FACEBOOK_GRAPH_MESSAGE_NUM_SIGNALS -}; -static guint publishing_facebook_graph_message_signals[PUBLISHING_FACEBOOK_GRAPH_MESSAGE_NUM_SIGNALS] = {0}; -typedef struct _PublishingFacebookGraphSessionPrivate PublishingFacebookGraphSessionPrivate; - -#define PUBLISHING_FACEBOOK_GRAPH_SESSION_TYPE_GRAPH_MESSAGE_IMPL (publishing_facebook_graph_session_graph_message_impl_get_type ()) -#define PUBLISHING_FACEBOOK_GRAPH_SESSION_GRAPH_MESSAGE_IMPL(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_FACEBOOK_GRAPH_SESSION_TYPE_GRAPH_MESSAGE_IMPL, PublishingFacebookGraphSessionGraphMessageImpl)) -#define PUBLISHING_FACEBOOK_GRAPH_SESSION_GRAPH_MESSAGE_IMPL_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_FACEBOOK_GRAPH_SESSION_TYPE_GRAPH_MESSAGE_IMPL, PublishingFacebookGraphSessionGraphMessageImplClass)) -#define PUBLISHING_FACEBOOK_GRAPH_SESSION_IS_GRAPH_MESSAGE_IMPL(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_FACEBOOK_GRAPH_SESSION_TYPE_GRAPH_MESSAGE_IMPL)) -#define PUBLISHING_FACEBOOK_GRAPH_SESSION_IS_GRAPH_MESSAGE_IMPL_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_FACEBOOK_GRAPH_SESSION_TYPE_GRAPH_MESSAGE_IMPL)) -#define PUBLISHING_FACEBOOK_GRAPH_SESSION_GRAPH_MESSAGE_IMPL_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_FACEBOOK_GRAPH_SESSION_TYPE_GRAPH_MESSAGE_IMPL, PublishingFacebookGraphSessionGraphMessageImplClass)) - -typedef struct _PublishingFacebookGraphSessionGraphMessageImpl PublishingFacebookGraphSessionGraphMessageImpl; -typedef struct _PublishingFacebookGraphSessionGraphMessageImplClass PublishingFacebookGraphSessionGraphMessageImplClass; -typedef struct _PublishingFacebookGraphSessionGraphMessageImplPrivate PublishingFacebookGraphSessionGraphMessageImplPrivate; - -#define PUBLISHING_FACEBOOK_GRAPH_SESSION_TYPE_GRAPH_QUERY_MESSAGE (publishing_facebook_graph_session_graph_query_message_get_type ()) -#define PUBLISHING_FACEBOOK_GRAPH_SESSION_GRAPH_QUERY_MESSAGE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_FACEBOOK_GRAPH_SESSION_TYPE_GRAPH_QUERY_MESSAGE, PublishingFacebookGraphSessionGraphQueryMessage)) -#define PUBLISHING_FACEBOOK_GRAPH_SESSION_GRAPH_QUERY_MESSAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_FACEBOOK_GRAPH_SESSION_TYPE_GRAPH_QUERY_MESSAGE, PublishingFacebookGraphSessionGraphQueryMessageClass)) -#define PUBLISHING_FACEBOOK_GRAPH_SESSION_IS_GRAPH_QUERY_MESSAGE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_FACEBOOK_GRAPH_SESSION_TYPE_GRAPH_QUERY_MESSAGE)) -#define PUBLISHING_FACEBOOK_GRAPH_SESSION_IS_GRAPH_QUERY_MESSAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_FACEBOOK_GRAPH_SESSION_TYPE_GRAPH_QUERY_MESSAGE)) -#define PUBLISHING_FACEBOOK_GRAPH_SESSION_GRAPH_QUERY_MESSAGE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_FACEBOOK_GRAPH_SESSION_TYPE_GRAPH_QUERY_MESSAGE, PublishingFacebookGraphSessionGraphQueryMessageClass)) - -typedef struct _PublishingFacebookGraphSessionGraphQueryMessage PublishingFacebookGraphSessionGraphQueryMessage; -typedef struct _PublishingFacebookGraphSessionGraphQueryMessageClass PublishingFacebookGraphSessionGraphQueryMessageClass; - -#define PUBLISHING_FACEBOOK_GRAPH_SESSION_TYPE_GRAPH_UPLOAD_MESSAGE (publishing_facebook_graph_session_graph_upload_message_get_type ()) -#define PUBLISHING_FACEBOOK_GRAPH_SESSION_GRAPH_UPLOAD_MESSAGE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_FACEBOOK_GRAPH_SESSION_TYPE_GRAPH_UPLOAD_MESSAGE, PublishingFacebookGraphSessionGraphUploadMessage)) -#define PUBLISHING_FACEBOOK_GRAPH_SESSION_GRAPH_UPLOAD_MESSAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_FACEBOOK_GRAPH_SESSION_TYPE_GRAPH_UPLOAD_MESSAGE, PublishingFacebookGraphSessionGraphUploadMessageClass)) -#define PUBLISHING_FACEBOOK_GRAPH_SESSION_IS_GRAPH_UPLOAD_MESSAGE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_FACEBOOK_GRAPH_SESSION_TYPE_GRAPH_UPLOAD_MESSAGE)) -#define PUBLISHING_FACEBOOK_GRAPH_SESSION_IS_GRAPH_UPLOAD_MESSAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_FACEBOOK_GRAPH_SESSION_TYPE_GRAPH_UPLOAD_MESSAGE)) -#define PUBLISHING_FACEBOOK_GRAPH_SESSION_GRAPH_UPLOAD_MESSAGE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_FACEBOOK_GRAPH_SESSION_TYPE_GRAPH_UPLOAD_MESSAGE, PublishingFacebookGraphSessionGraphUploadMessageClass)) - -typedef struct _PublishingFacebookGraphSessionGraphUploadMessage PublishingFacebookGraphSessionGraphUploadMessage; -typedef struct _PublishingFacebookGraphSessionGraphUploadMessageClass PublishingFacebookGraphSessionGraphUploadMessageClass; - -#define PUBLISHING_FACEBOOK_GRAPH_SESSION_TYPE_GRAPH_CREATE_ALBUM_MESSAGE (publishing_facebook_graph_session_graph_create_album_message_get_type ()) -#define PUBLISHING_FACEBOOK_GRAPH_SESSION_GRAPH_CREATE_ALBUM_MESSAGE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_FACEBOOK_GRAPH_SESSION_TYPE_GRAPH_CREATE_ALBUM_MESSAGE, PublishingFacebookGraphSessionGraphCreateAlbumMessage)) -#define PUBLISHING_FACEBOOK_GRAPH_SESSION_GRAPH_CREATE_ALBUM_MESSAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_FACEBOOK_GRAPH_SESSION_TYPE_GRAPH_CREATE_ALBUM_MESSAGE, PublishingFacebookGraphSessionGraphCreateAlbumMessageClass)) -#define PUBLISHING_FACEBOOK_GRAPH_SESSION_IS_GRAPH_CREATE_ALBUM_MESSAGE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_FACEBOOK_GRAPH_SESSION_TYPE_GRAPH_CREATE_ALBUM_MESSAGE)) -#define PUBLISHING_FACEBOOK_GRAPH_SESSION_IS_GRAPH_CREATE_ALBUM_MESSAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_FACEBOOK_GRAPH_SESSION_TYPE_GRAPH_CREATE_ALBUM_MESSAGE)) -#define PUBLISHING_FACEBOOK_GRAPH_SESSION_GRAPH_CREATE_ALBUM_MESSAGE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_FACEBOOK_GRAPH_SESSION_TYPE_GRAPH_CREATE_ALBUM_MESSAGE, PublishingFacebookGraphSessionGraphCreateAlbumMessageClass)) - -typedef struct _PublishingFacebookGraphSessionGraphCreateAlbumMessage PublishingFacebookGraphSessionGraphCreateAlbumMessage; -typedef struct _PublishingFacebookGraphSessionGraphCreateAlbumMessageClass PublishingFacebookGraphSessionGraphCreateAlbumMessageClass; -#define _g_regex_unref0(var) ((var == NULL) ? NULL : (var = (g_regex_unref (var), NULL))) -typedef struct _PublishingFacebookGraphSessionGraphQueryMessagePrivate PublishingFacebookGraphSessionGraphQueryMessagePrivate; -#define __vala_SoupURI_free0(var) ((var == NULL) ? NULL : (var = (_vala_SoupURI_free (var), NULL))) - -#define PUBLISHING_FACEBOOK_GRAPH_SESSION_TYPE_GRAPH_ENDPOINT_PROBE_MESSAGE (publishing_facebook_graph_session_graph_endpoint_probe_message_get_type ()) -#define PUBLISHING_FACEBOOK_GRAPH_SESSION_GRAPH_ENDPOINT_PROBE_MESSAGE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_FACEBOOK_GRAPH_SESSION_TYPE_GRAPH_ENDPOINT_PROBE_MESSAGE, PublishingFacebookGraphSessionGraphEndpointProbeMessage)) -#define PUBLISHING_FACEBOOK_GRAPH_SESSION_GRAPH_ENDPOINT_PROBE_MESSAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_FACEBOOK_GRAPH_SESSION_TYPE_GRAPH_ENDPOINT_PROBE_MESSAGE, PublishingFacebookGraphSessionGraphEndpointProbeMessageClass)) -#define PUBLISHING_FACEBOOK_GRAPH_SESSION_IS_GRAPH_ENDPOINT_PROBE_MESSAGE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_FACEBOOK_GRAPH_SESSION_TYPE_GRAPH_ENDPOINT_PROBE_MESSAGE)) -#define PUBLISHING_FACEBOOK_GRAPH_SESSION_IS_GRAPH_ENDPOINT_PROBE_MESSAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_FACEBOOK_GRAPH_SESSION_TYPE_GRAPH_ENDPOINT_PROBE_MESSAGE)) -#define PUBLISHING_FACEBOOK_GRAPH_SESSION_GRAPH_ENDPOINT_PROBE_MESSAGE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_FACEBOOK_GRAPH_SESSION_TYPE_GRAPH_ENDPOINT_PROBE_MESSAGE, PublishingFacebookGraphSessionGraphEndpointProbeMessageClass)) - -typedef struct _PublishingFacebookGraphSessionGraphEndpointProbeMessage PublishingFacebookGraphSessionGraphEndpointProbeMessage; -typedef struct _PublishingFacebookGraphSessionGraphEndpointProbeMessageClass PublishingFacebookGraphSessionGraphEndpointProbeMessageClass; -typedef struct _PublishingFacebookGraphSessionGraphEndpointProbeMessagePrivate PublishingFacebookGraphSessionGraphEndpointProbeMessagePrivate; -typedef struct _PublishingFacebookGraphSessionGraphUploadMessagePrivate PublishingFacebookGraphSessionGraphUploadMessagePrivate; -#define _g_mapped_file_unref0(var) ((var == NULL) ? NULL : (var = (g_mapped_file_unref (var), NULL))) -#define _g_date_time_unref0(var) ((var == NULL) ? NULL : (var = (g_date_time_unref (var), NULL))) -#define __vala_SoupMultipart_free0(var) ((var == NULL) ? NULL : (var = (_vala_SoupMultipart_free (var), NULL))) -#define __vala_SoupBuffer_free0(var) ((var == NULL) ? NULL : (var = (_vala_SoupBuffer_free (var), NULL))) -typedef struct _PublishingFacebookGraphSessionGraphCreateAlbumMessagePrivate PublishingFacebookGraphSessionGraphCreateAlbumMessagePrivate; -typedef struct _PublishingFacebookParamSpecGraphSession PublishingFacebookParamSpecGraphSession; -enum { - PUBLISHING_FACEBOOK_GRAPH_SESSION_AUTHENTICATED_SIGNAL, - PUBLISHING_FACEBOOK_GRAPH_SESSION_NUM_SIGNALS -}; -static guint publishing_facebook_graph_session_signals[PUBLISHING_FACEBOOK_GRAPH_SESSION_NUM_SIGNALS] = {0}; -typedef struct _PublishingFacebookUploaderPrivate PublishingFacebookUploaderPrivate; -typedef struct _PublishingFacebookParamSpecUploader PublishingFacebookParamSpecUploader; -enum { - PUBLISHING_FACEBOOK_UPLOADER_UPLOAD_COMPLETE_SIGNAL, - PUBLISHING_FACEBOOK_UPLOADER_UPLOAD_ERROR_SIGNAL, - PUBLISHING_FACEBOOK_UPLOADER_NUM_SIGNALS -}; -static guint publishing_facebook_uploader_signals[PUBLISHING_FACEBOOK_UPLOADER_NUM_SIGNALS] = {0}; -#define _vala_assert(expr, msg) if G_LIKELY (expr) ; else g_assertion_message_expr (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg); -#define _vala_return_if_fail(expr, msg) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return; } -#define _vala_return_val_if_fail(expr, msg, val) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return val; } -#define _vala_warn_if_fail(expr, msg) if G_LIKELY (expr) ; else g_warn_message (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg); - -struct _FacebookService { - GObject parent_instance; - FacebookServicePrivate * priv; -}; - -struct _FacebookServiceClass { - GObjectClass parent_class; -}; - -struct _PublishingFacebookAlbum { - GTypeInstance parent_instance; - volatile int ref_count; - PublishingFacebookAlbumPrivate * priv; - gchar* name; - gchar* id; -}; - -struct _PublishingFacebookAlbumClass { - GTypeClass parent_class; - void (*finalize) (PublishingFacebookAlbum *self); -}; - -struct _PublishingFacebookParamSpecAlbum { - GParamSpec parent_instance; -}; - -typedef enum { - PUBLISHING_FACEBOOK_RESOLUTION_STANDARD, - PUBLISHING_FACEBOOK_RESOLUTION_HIGH -} PublishingFacebookResolution; - -struct _PublishingFacebookPublishingParameters { - GTypeInstance parent_instance; - volatile int ref_count; - PublishingFacebookPublishingParametersPrivate * priv; - gboolean strip_metadata; - PublishingFacebookAlbum** albums; - gint albums_length1; - gint _albums_size_; - gint target_album; - gchar* new_album_name; - gchar* privacy_object; - PublishingFacebookResolution resolution; -}; - -struct _PublishingFacebookPublishingParametersClass { - GTypeClass parent_class; - void (*finalize) (PublishingFacebookPublishingParameters *self); -}; - -struct _PublishingFacebookParamSpecPublishingParameters { - GParamSpec parent_instance; -}; - -struct _PublishingFacebookFacebookPublisher { - GObject parent_instance; - PublishingFacebookFacebookPublisherPrivate * priv; -}; - -struct _PublishingFacebookFacebookPublisherClass { - GObjectClass parent_class; -}; - -struct _PublishingFacebookFacebookPublisherPrivate { - PublishingFacebookPublishingParameters* publishing_params; - SpitPublishingPluginHost* host; - SpitPublishingProgressCallback progress_reporter; - gpointer progress_reporter_target; - GDestroyNotify progress_reporter_target_destroy_notify; - SpitPublishingService* service; - SpitPublishingAuthenticator* authenticator; - gboolean running; - PublishingFacebookGraphSession* graph_session; - PublishingFacebookPublishingOptionsPane* publishing_options_pane; - PublishingFacebookUploader* uploader; - gchar* uid; - gchar* username; -}; - -struct _PublishingFacebookPublishingOptionsPane { - GObject parent_instance; - PublishingFacebookPublishingOptionsPanePrivate * priv; -}; - -struct _PublishingFacebookPublishingOptionsPaneClass { - GObjectClass parent_class; -}; - -struct _PublishingFacebookPublishingOptionsPanePrivate { - GtkBuilder* builder; - GtkBox* pane_widget; - GtkRadioButton* use_existing_radio; - GtkRadioButton* create_new_radio; - GtkComboBoxText* existing_albums_combo; - GtkComboBoxText* visibility_combo; - GtkEntry* new_album_entry; - GtkCheckButton* strip_metadata_check; - GtkButton* publish_button; - GtkButton* logout_button; - GtkLabel* how_to_label; - PublishingFacebookAlbum** albums; - gint albums_length1; - gint _albums_size_; - PublishingFacebookFacebookPublisher* publisher; - PublishingFacebookPublishingOptionsPanePrivacyDescription** privacy_descriptions; - gint privacy_descriptions_length1; - gint _privacy_descriptions_size_; - PublishingFacebookResolution* possible_resolutions; - gint possible_resolutions_length1; - gint _possible_resolutions_size_; - GtkComboBoxText* resolution_combo; - SpitPublishingPublisherMediaType media_type; -}; - -struct _PublishingFacebookPublishingOptionsPanePrivacyDescription { - GTypeInstance parent_instance; - volatile int ref_count; - PublishingFacebookPublishingOptionsPanePrivacyDescriptionPrivate * priv; - gchar* description; - gchar* privacy_setting; -}; - -struct _PublishingFacebookPublishingOptionsPanePrivacyDescriptionClass { - GTypeClass parent_class; - void (*finalize) (PublishingFacebookPublishingOptionsPanePrivacyDescription *self); -}; - -struct _PublishingFacebookPublishingOptionsPaneParamSpecPrivacyDescription { - GParamSpec parent_instance; -}; - -typedef enum { - PUBLISHING_FACEBOOK_ENDPOINT_DEFAULT, - PUBLISHING_FACEBOOK_ENDPOINT_VIDEO, - PUBLISHING_FACEBOOK_ENDPOINT_TEST_CONNECTION -} PublishingFacebookEndpoint; - -struct _PublishingFacebookGraphMessage { - GTypeInstance parent_instance; - volatile int ref_count; - PublishingFacebookGraphMessagePrivate * priv; -}; - -struct _PublishingFacebookGraphMessageClass { - GTypeClass parent_class; - void (*finalize) (PublishingFacebookGraphMessage *self); - gchar* (*get_uri) (PublishingFacebookGraphMessage* self); - gchar* (*get_response_body) (PublishingFacebookGraphMessage* self); -}; - -struct _PublishingFacebookParamSpecGraphMessage { - GParamSpec parent_instance; -}; - -struct _PublishingFacebookGraphSession { - GTypeInstance parent_instance; - volatile int ref_count; - PublishingFacebookGraphSessionPrivate * priv; -}; - -struct _PublishingFacebookGraphSessionClass { - GTypeClass parent_class; - void (*finalize) (PublishingFacebookGraphSession *self); -}; - -struct _PublishingFacebookGraphSessionPrivate { - SoupSession* soup_session; - gchar* access_token; - PublishingFacebookGraphMessage* current_message; -}; - -struct _PublishingFacebookGraphSessionGraphMessageImpl { - PublishingFacebookGraphMessage parent_instance; - PublishingFacebookGraphSessionGraphMessageImplPrivate * priv; - PublishingRESTSupportHttpMethod method; - gchar* uri; - gchar* access_token; - SoupMessage* soup_message; - PublishingFacebookGraphSession* host_session; - gint bytes_so_far; -}; - -struct _PublishingFacebookGraphSessionGraphMessageImplClass { - PublishingFacebookGraphMessageClass parent_class; - gboolean (*prepare_for_transmission) (PublishingFacebookGraphSessionGraphMessageImpl* self); -}; - -struct _PublishingFacebookGraphSessionGraphQueryMessage { - PublishingFacebookGraphSessionGraphMessageImpl parent_instance; - PublishingFacebookGraphSessionGraphQueryMessagePrivate * priv; -}; - -struct _PublishingFacebookGraphSessionGraphQueryMessageClass { - PublishingFacebookGraphSessionGraphMessageImplClass parent_class; -}; - -struct _PublishingFacebookGraphSessionGraphEndpointProbeMessage { - PublishingFacebookGraphSessionGraphMessageImpl parent_instance; - PublishingFacebookGraphSessionGraphEndpointProbeMessagePrivate * priv; -}; - -struct _PublishingFacebookGraphSessionGraphEndpointProbeMessageClass { - PublishingFacebookGraphSessionGraphMessageImplClass parent_class; -}; - -struct _PublishingFacebookGraphSessionGraphUploadMessage { - PublishingFacebookGraphSessionGraphMessageImpl parent_instance; - PublishingFacebookGraphSessionGraphUploadMessagePrivate * priv; -}; - -struct _PublishingFacebookGraphSessionGraphUploadMessageClass { - PublishingFacebookGraphSessionGraphMessageImplClass parent_class; -}; - -struct _PublishingFacebookGraphSessionGraphUploadMessagePrivate { - GMappedFile* mapped_file; - SpitPublishingPublishable* publishable; -}; - -struct _PublishingFacebookGraphSessionGraphCreateAlbumMessage { - PublishingFacebookGraphSessionGraphMessageImpl parent_instance; - PublishingFacebookGraphSessionGraphCreateAlbumMessagePrivate * priv; -}; - -struct _PublishingFacebookGraphSessionGraphCreateAlbumMessageClass { - PublishingFacebookGraphSessionGraphMessageImplClass parent_class; -}; - -struct _PublishingFacebookParamSpecGraphSession { - GParamSpec parent_instance; -}; - -struct _PublishingFacebookUploader { - GTypeInstance parent_instance; - volatile int ref_count; - PublishingFacebookUploaderPrivate * priv; -}; - -struct _PublishingFacebookUploaderClass { - GTypeClass parent_class; - void (*finalize) (PublishingFacebookUploader *self); -}; - -struct _PublishingFacebookUploaderPrivate { - gint current_file; - SpitPublishingPublishable** publishables; - gint publishables_length1; - gint _publishables_size_; - PublishingFacebookGraphSession* session; - PublishingFacebookPublishingParameters* publishing_params; - SpitPublishingProgressCallback status_updated; - gpointer status_updated_target; -}; - -struct _PublishingFacebookParamSpecUploader { - GParamSpec parent_instance; -}; - - -static gpointer facebook_service_parent_class = NULL; -static GdkPixbuf** facebook_service_icon_pixbuf_set; -static gint facebook_service_icon_pixbuf_set_length1; -static GdkPixbuf** facebook_service_icon_pixbuf_set = NULL; -static gint facebook_service_icon_pixbuf_set_length1 = 0; -static gint _facebook_service_icon_pixbuf_set_size_ = 0; -static SpitPluggableIface * facebook_service_spit_pluggable_parent_iface = NULL; -static SpitPublishingServiceIface * facebook_service_spit_publishing_service_parent_iface = NULL; -static gpointer publishing_facebook_album_parent_class = NULL; -static gpointer publishing_facebook_publishing_parameters_parent_class = NULL; -static gpointer publishing_facebook_facebook_publisher_parent_class = NULL; -static SpitPublishingPublisherIface * publishing_facebook_facebook_publisher_spit_publishing_publisher_parent_iface = NULL; -static gpointer publishing_facebook_publishing_options_pane_parent_class = NULL; -static gpointer publishing_facebook_publishing_options_pane_privacy_description_parent_class = NULL; -static SpitPublishingDialogPaneIface * publishing_facebook_publishing_options_pane_spit_publishing_dialog_pane_parent_iface = NULL; -static gpointer publishing_facebook_graph_message_parent_class = NULL; -static gpointer publishing_facebook_graph_session_parent_class = NULL; -static gpointer publishing_facebook_graph_session_graph_message_impl_parent_class = NULL; -static gpointer publishing_facebook_graph_session_graph_query_message_parent_class = NULL; -static gpointer publishing_facebook_graph_session_graph_endpoint_probe_message_parent_class = NULL; -static gpointer publishing_facebook_graph_session_graph_upload_message_parent_class = NULL; -static gpointer publishing_facebook_graph_session_graph_create_album_message_parent_class = NULL; -static gpointer publishing_facebook_uploader_parent_class = NULL; - -GType facebook_service_get_type (void) G_GNUC_CONST; -#define FACEBOOK_SERVICE_ICON_FILENAME "facebook.png" -FacebookService* facebook_service_new (GFile* resource_directory); -FacebookService* facebook_service_construct (GType object_type, - GFile* resource_directory); -static gint facebook_service_real_get_pluggable_interface (SpitPluggable* base, - gint min_host_interface, - gint max_host_interface); -static const gchar* facebook_service_real_get_id (SpitPluggable* base); -static const gchar* facebook_service_real_get_pluggable_name (SpitPluggable* base); -static void facebook_service_real_get_info (SpitPluggable* base, - SpitPluggableInfo* info); -static GdkPixbuf** _vala_array_dup1 (GdkPixbuf** self, - int length); -static void facebook_service_real_activation (SpitPluggable* base, - gboolean enabled); -static SpitPublishingPublisher* facebook_service_real_create_publisher (SpitPublishingService* base, - SpitPublishingPluginHost* host); -PublishingFacebookFacebookPublisher* publishing_facebook_facebook_publisher_new (SpitPublishingService* service, - SpitPublishingPluginHost* host); -PublishingFacebookFacebookPublisher* publishing_facebook_facebook_publisher_construct (GType object_type, - SpitPublishingService* service, - SpitPublishingPluginHost* host); -GType publishing_facebook_facebook_publisher_get_type (void) G_GNUC_CONST; -static SpitPublishingPublisherMediaType facebook_service_real_get_supported_media (SpitPublishingService* base); -static void facebook_service_finalize (GObject * obj); -#define PUBLISHING_FACEBOOK_SERVICE_NAME "facebook" -#define PUBLISHING_FACEBOOK_USER_VISIBLE_NAME "Facebook" -#define PUBLISHING_FACEBOOK_DEFAULT_ALBUM_NAME _ ("Shotwell Connect") -#define PUBLISHING_FACEBOOK_EXPIRED_SESSION_STATUS_CODE 400 -gpointer publishing_facebook_album_ref (gpointer instance); -void publishing_facebook_album_unref (gpointer instance); -GParamSpec* publishing_facebook_param_spec_album (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void publishing_facebook_value_set_album (GValue* value, - gpointer v_object); -void publishing_facebook_value_take_album (GValue* value, - gpointer v_object); -gpointer publishing_facebook_value_get_album (const GValue* value); -GType publishing_facebook_album_get_type (void) G_GNUC_CONST; -PublishingFacebookAlbum* publishing_facebook_album_new (const gchar* name, - const gchar* id); -PublishingFacebookAlbum* publishing_facebook_album_construct (GType object_type, - const gchar* name, - const gchar* id); -static void publishing_facebook_album_finalize (PublishingFacebookAlbum * obj); -GType publishing_facebook_resolution_get_type (void) G_GNUC_CONST; -gchar* publishing_facebook_resolution_get_name (PublishingFacebookResolution self); -const gchar* publishing_facebook_resolution_to_string (PublishingFacebookResolution self); -gint publishing_facebook_resolution_get_pixels (PublishingFacebookResolution self); -gpointer publishing_facebook_publishing_parameters_ref (gpointer instance); -void publishing_facebook_publishing_parameters_unref (gpointer instance); -GParamSpec* publishing_facebook_param_spec_publishing_parameters (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void publishing_facebook_value_set_publishing_parameters (GValue* value, - gpointer v_object); -void publishing_facebook_value_take_publishing_parameters (GValue* value, - gpointer v_object); -gpointer publishing_facebook_value_get_publishing_parameters (const GValue* value); -GType publishing_facebook_publishing_parameters_get_type (void) G_GNUC_CONST; -#define PUBLISHING_FACEBOOK_PUBLISHING_PARAMETERS_UNKNOWN_ALBUM -1 -PublishingFacebookPublishingParameters* publishing_facebook_publishing_parameters_new (void); -PublishingFacebookPublishingParameters* publishing_facebook_publishing_parameters_construct (GType object_type); -void publishing_facebook_publishing_parameters_add_album (PublishingFacebookPublishingParameters* self, - const gchar* name, - const gchar* id); -static void _vala_array_add7 (PublishingFacebookAlbum** * array, - int* length, - int* size, - PublishingFacebookAlbum* value); -void publishing_facebook_publishing_parameters_set_target_album_by_name (PublishingFacebookPublishingParameters* self, - const gchar* name); -gchar* publishing_facebook_publishing_parameters_get_target_album_name (PublishingFacebookPublishingParameters* self); -gchar* publishing_facebook_publishing_parameters_get_target_album_id (PublishingFacebookPublishingParameters* self); -static void publishing_facebook_publishing_parameters_finalize (PublishingFacebookPublishingParameters * obj); -gpointer publishing_facebook_graph_session_ref (gpointer instance); -void publishing_facebook_graph_session_unref (gpointer instance); -GParamSpec* publishing_facebook_param_spec_graph_session (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void publishing_facebook_value_set_graph_session (GValue* value, - gpointer v_object); -void publishing_facebook_value_take_graph_session (GValue* value, - gpointer v_object); -gpointer publishing_facebook_value_get_graph_session (const GValue* value); -GType publishing_facebook_graph_session_get_type (void) G_GNUC_CONST; -GType publishing_facebook_publishing_options_pane_get_type (void) G_GNUC_CONST; -gpointer publishing_facebook_uploader_ref (gpointer instance); -void publishing_facebook_uploader_unref (gpointer instance); -GParamSpec* publishing_facebook_param_spec_uploader (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void publishing_facebook_value_set_uploader (GValue* value, - gpointer v_object); -void publishing_facebook_value_take_uploader (GValue* value, - gpointer v_object); -gpointer publishing_facebook_value_get_uploader (const GValue* value); -GType publishing_facebook_uploader_get_type (void) G_GNUC_CONST; -#define PUBLISHING_FACEBOOK_FACEBOOK_PUBLISHER_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), PUBLISHING_FACEBOOK_TYPE_FACEBOOK_PUBLISHER, PublishingFacebookFacebookPublisherPrivate)) -PublishingFacebookGraphSession* publishing_facebook_graph_session_new (void); -PublishingFacebookGraphSession* publishing_facebook_graph_session_construct (GType object_type); -static void publishing_facebook_facebook_publisher_on_session_authenticated (PublishingFacebookFacebookPublisher* self); -static void _publishing_facebook_facebook_publisher_on_session_authenticated_publishing_facebook_graph_session_authenticated (PublishingFacebookGraphSession* _sender, - gpointer self); -static gboolean publishing_facebook_facebook_publisher_get_persistent_strip_metadata (PublishingFacebookFacebookPublisher* self); -static void publishing_facebook_facebook_publisher_set_persistent_strip_metadata (PublishingFacebookFacebookPublisher* self, - gboolean strip_metadata); -gint publishing_facebook_facebook_publisher_get_persistent_default_size (PublishingFacebookFacebookPublisher* self); -void publishing_facebook_facebook_publisher_set_persistent_default_size (PublishingFacebookFacebookPublisher* self, - gint size); -static void publishing_facebook_facebook_publisher_do_fetch_user_info (PublishingFacebookFacebookPublisher* self); -gpointer publishing_facebook_graph_message_ref (gpointer instance); -void publishing_facebook_graph_message_unref (gpointer instance); -GParamSpec* publishing_facebook_param_spec_graph_message (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void publishing_facebook_value_set_graph_message (GValue* value, - gpointer v_object); -void publishing_facebook_value_take_graph_message (GValue* value, - gpointer v_object); -gpointer publishing_facebook_value_get_graph_message (const GValue* value); -GType publishing_facebook_graph_message_get_type (void) G_GNUC_CONST; -PublishingFacebookGraphMessage* publishing_facebook_graph_session_new_query (PublishingFacebookGraphSession* self, - const gchar* resource_path); -static void publishing_facebook_facebook_publisher_on_fetch_user_info_completed (PublishingFacebookFacebookPublisher* self, - PublishingFacebookGraphMessage* message); -static void _publishing_facebook_facebook_publisher_on_fetch_user_info_completed_publishing_facebook_graph_message_completed (PublishingFacebookGraphMessage* _sender, - gpointer self); -static void publishing_facebook_facebook_publisher_on_fetch_user_info_error (PublishingFacebookFacebookPublisher* self, - PublishingFacebookGraphMessage* message, - GError* _error_); -static void _publishing_facebook_facebook_publisher_on_fetch_user_info_error_publishing_facebook_graph_message_failed (PublishingFacebookGraphMessage* _sender, - GError* err, - gpointer self); -void publishing_facebook_graph_session_send_message (PublishingFacebookGraphSession* self, - PublishingFacebookGraphMessage* message); -static void publishing_facebook_facebook_publisher_do_fetch_album_descriptions (PublishingFacebookFacebookPublisher* self); -static void publishing_facebook_facebook_publisher_on_fetch_albums_completed (PublishingFacebookFacebookPublisher* self, - PublishingFacebookGraphMessage* message); -static void _publishing_facebook_facebook_publisher_on_fetch_albums_completed_publishing_facebook_graph_message_completed (PublishingFacebookGraphMessage* _sender, - gpointer self); -static void publishing_facebook_facebook_publisher_on_fetch_albums_error (PublishingFacebookFacebookPublisher* self, - PublishingFacebookGraphMessage* message, - GError* err); -static void _publishing_facebook_facebook_publisher_on_fetch_albums_error_publishing_facebook_graph_message_failed (PublishingFacebookGraphMessage* _sender, - GError* err, - gpointer self); -static void publishing_facebook_facebook_publisher_do_extract_user_info_from_json (PublishingFacebookFacebookPublisher* self, - const gchar* json); -static JsonNode* _vala_JsonNode_copy (JsonNode* self); -static void _vala_JsonNode_free (JsonNode* self); -static void publishing_facebook_facebook_publisher_on_user_info_extracted (PublishingFacebookFacebookPublisher* self); -static void publishing_facebook_facebook_publisher_do_extract_albums_from_json (PublishingFacebookFacebookPublisher* self, - const gchar* json); -static void publishing_facebook_facebook_publisher_on_albums_extracted (PublishingFacebookFacebookPublisher* self); -static void publishing_facebook_facebook_publisher_do_create_new_album (PublishingFacebookFacebookPublisher* self); -PublishingFacebookGraphMessage* publishing_facebook_graph_session_new_create_album (PublishingFacebookGraphSession* self, - const gchar* album_name, - const gchar* privacy); -static void publishing_facebook_facebook_publisher_on_create_album_completed (PublishingFacebookFacebookPublisher* self, - PublishingFacebookGraphMessage* message); -static void _publishing_facebook_facebook_publisher_on_create_album_completed_publishing_facebook_graph_message_completed (PublishingFacebookGraphMessage* _sender, - gpointer self); -static void publishing_facebook_facebook_publisher_on_create_album_error (PublishingFacebookFacebookPublisher* self, - PublishingFacebookGraphMessage* message, - GError* err); -static void _publishing_facebook_facebook_publisher_on_create_album_error_publishing_facebook_graph_message_failed (PublishingFacebookGraphMessage* _sender, - GError* err, - gpointer self); -static void publishing_facebook_facebook_publisher_do_show_publishing_options_pane (PublishingFacebookFacebookPublisher* self); -PublishingFacebookPublishingOptionsPane* publishing_facebook_publishing_options_pane_new (const gchar* username, - PublishingFacebookAlbum** albums, - int albums_length1, - SpitPublishingPublisherMediaType media_type, - PublishingFacebookFacebookPublisher* publisher, - GtkBuilder* builder, - gboolean strip_metadata, - gboolean can_logout); -PublishingFacebookPublishingOptionsPane* publishing_facebook_publishing_options_pane_construct (GType object_type, - const gchar* username, - PublishingFacebookAlbum** albums, - int albums_length1, - SpitPublishingPublisherMediaType media_type, - PublishingFacebookFacebookPublisher* publisher, - GtkBuilder* builder, - gboolean strip_metadata, - gboolean can_logout); -static void publishing_facebook_facebook_publisher_on_publishing_options_pane_logout (PublishingFacebookFacebookPublisher* self); -static void _publishing_facebook_facebook_publisher_on_publishing_options_pane_logout_publishing_facebook_publishing_options_pane_logout (PublishingFacebookPublishingOptionsPane* _sender, - gpointer self); -static void publishing_facebook_facebook_publisher_on_publishing_options_pane_publish (PublishingFacebookFacebookPublisher* self, - const gchar* target_album, - const gchar* privacy_setting, - PublishingFacebookResolution resolution, - gboolean strip_metadata); -static void _publishing_facebook_facebook_publisher_on_publishing_options_pane_publish_publishing_facebook_publishing_options_pane_publish (PublishingFacebookPublishingOptionsPane* _sender, - const gchar* target_album, - const gchar* privacy_setting, - PublishingFacebookResolution target_resolution, - gboolean strip_metadata, - gpointer self); -static void publishing_facebook_facebook_publisher_do_logout (PublishingFacebookFacebookPublisher* self); -static void publishing_facebook_facebook_publisher_do_add_new_local_album_from_json (PublishingFacebookFacebookPublisher* self, - const gchar* album_name, - const gchar* json); -static void publishing_facebook_facebook_publisher_do_upload (PublishingFacebookFacebookPublisher* self); -static void publishing_facebook_facebook_publisher_on_authenticator_succeeded (PublishingFacebookFacebookPublisher* self); -static void publishing_facebook_facebook_publisher_do_authenticate_session (PublishingFacebookFacebookPublisher* self); -static void publishing_facebook_facebook_publisher_on_authenticator_failed (PublishingFacebookFacebookPublisher* self); -void publishing_facebook_graph_session_authenticate (PublishingFacebookGraphSession* self, - const gchar* access_token); -PublishingFacebookUploader* publishing_facebook_uploader_new (PublishingFacebookGraphSession* session, - PublishingFacebookPublishingParameters* publishing_params, - SpitPublishingPublishable** publishables, - int publishables_length1); -PublishingFacebookUploader* publishing_facebook_uploader_construct (GType object_type, - PublishingFacebookGraphSession* session, - PublishingFacebookPublishingParameters* publishing_params, - SpitPublishingPublishable** publishables, - int publishables_length1); -static void publishing_facebook_facebook_publisher_on_upload_complete (PublishingFacebookFacebookPublisher* self, - PublishingFacebookUploader* uploader, - gint num_published); -static void _publishing_facebook_facebook_publisher_on_upload_complete_publishing_facebook_uploader_upload_complete (PublishingFacebookUploader* _sender, - gint num_photos_published, - gpointer self); -static void publishing_facebook_facebook_publisher_on_upload_error (PublishingFacebookFacebookPublisher* self, - PublishingFacebookUploader* uploader, - GError* err); -static void _publishing_facebook_facebook_publisher_on_upload_error_publishing_facebook_uploader_upload_error (PublishingFacebookUploader* _sender, - GError* err, - gpointer self); -void publishing_facebook_uploader_upload (PublishingFacebookUploader* self, - SpitPublishingProgressCallback status_updated, - void* status_updated_target); -static void publishing_facebook_facebook_publisher_on_upload_status_updated (PublishingFacebookFacebookPublisher* self, - gint file_number, - gdouble completed_fraction); -static void _publishing_facebook_facebook_publisher_on_upload_status_updated_spit_publishing_progress_callback (gint file_number, - gdouble fraction_complete, - gpointer self); -static void publishing_facebook_facebook_publisher_do_show_success_pane (PublishingFacebookFacebookPublisher* self); -static void publishing_facebook_facebook_publisher_on_generic_error (PublishingFacebookFacebookPublisher* self, - GError* _error_); -gboolean publishing_facebook_graph_session_is_authenticated (PublishingFacebookGraphSession* self); -gchar* publishing_facebook_graph_message_get_response_body (PublishingFacebookGraphMessage* self); -static SpitPublishingService* publishing_facebook_facebook_publisher_real_get_service (SpitPublishingPublisher* base); -gchar* publishing_facebook_facebook_publisher_get_service_name (PublishingFacebookFacebookPublisher* self); -gchar* publishing_facebook_facebook_publisher_get_user_visible_name (PublishingFacebookFacebookPublisher* self); -static void publishing_facebook_facebook_publisher_real_start (SpitPublishingPublisher* base); -static void _publishing_facebook_facebook_publisher_on_authenticator_succeeded_spit_publishing_authenticator_authenticated (SpitPublishingAuthenticator* _sender, - gpointer self); -static void _publishing_facebook_facebook_publisher_on_authenticator_failed_spit_publishing_authenticator_authentication_failed (SpitPublishingAuthenticator* _sender, - gpointer self); -static void publishing_facebook_facebook_publisher_real_stop (SpitPublishingPublisher* base); -void publishing_facebook_graph_session_stop_transactions (PublishingFacebookGraphSession* self); -static gboolean publishing_facebook_facebook_publisher_real_is_running (SpitPublishingPublisher* base); -static void publishing_facebook_facebook_publisher_finalize (GObject * obj); -static gpointer publishing_facebook_publishing_options_pane_privacy_description_ref (gpointer instance); -static void publishing_facebook_publishing_options_pane_privacy_description_unref (gpointer instance); -static GParamSpec* publishing_facebook_publishing_options_pane_param_spec_privacy_description (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags) G_GNUC_UNUSED; -static void publishing_facebook_publishing_options_pane_value_set_privacy_description (GValue* value, - gpointer v_object) G_GNUC_UNUSED; -static void publishing_facebook_publishing_options_pane_value_take_privacy_description (GValue* value, - gpointer v_object) G_GNUC_UNUSED; -static gpointer publishing_facebook_publishing_options_pane_value_get_privacy_description (const GValue* value) G_GNUC_UNUSED; -static GType publishing_facebook_publishing_options_pane_privacy_description_get_type (void) G_GNUC_CONST G_GNUC_UNUSED; -#define PUBLISHING_FACEBOOK_PUBLISHING_OPTIONS_PANE_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), PUBLISHING_FACEBOOK_TYPE_PUBLISHING_OPTIONS_PANE, PublishingFacebookPublishingOptionsPanePrivate)) -#define PUBLISHING_FACEBOOK_PUBLISHING_OPTIONS_PANE_HEADER_LABEL_TEXT _ ("You are logged into Facebook as %s.\n\n") -#define PUBLISHING_FACEBOOK_PUBLISHING_OPTIONS_PANE_PHOTOS_LABEL_TEXT _ ("Where would you like to publish the selected photos?") -#define PUBLISHING_FACEBOOK_PUBLISHING_OPTIONS_PANE_RESOLUTION_LABEL_TEXT _ ("Upload _size:") -#define PUBLISHING_FACEBOOK_PUBLISHING_OPTIONS_PANE_CONTENT_GROUP_SPACING 32 -#define PUBLISHING_FACEBOOK_PUBLISHING_OPTIONS_PANE_STANDARD_ACTION_BUTTON_WIDTH 128 -static PublishingFacebookAlbum** _vala_array_dup2 (PublishingFacebookAlbum** self, - int length); -static PublishingFacebookPublishingOptionsPanePrivacyDescription** publishing_facebook_publishing_options_pane_create_privacy_descriptions (PublishingFacebookPublishingOptionsPane* self, - int* result_length1); -static PublishingFacebookResolution* publishing_facebook_publishing_options_pane_create_resolution_list (PublishingFacebookPublishingOptionsPane* self, - int* result_length1); -static void publishing_facebook_publishing_options_pane_on_create_new_toggled (PublishingFacebookPublishingOptionsPane* self); -static void _publishing_facebook_publishing_options_pane_on_create_new_toggled_gtk_button_clicked (GtkButton* _sender, - gpointer self); -static void publishing_facebook_publishing_options_pane_on_use_existing_toggled (PublishingFacebookPublishingOptionsPane* self); -static void _publishing_facebook_publishing_options_pane_on_use_existing_toggled_gtk_button_clicked (GtkButton* _sender, - gpointer self); -static void publishing_facebook_publishing_options_pane_setup_visibility_combo (PublishingFacebookPublishingOptionsPane* self); -static void publishing_facebook_publishing_options_pane_on_publish_button_clicked (PublishingFacebookPublishingOptionsPane* self); -static void _publishing_facebook_publishing_options_pane_on_publish_button_clicked_gtk_button_clicked (GtkButton* _sender, - gpointer self); -static void publishing_facebook_publishing_options_pane_on_logout_button_clicked (PublishingFacebookPublishingOptionsPane* self); -static void _publishing_facebook_publishing_options_pane_on_logout_button_clicked_gtk_button_clicked (GtkButton* _sender, - gpointer self); -static void publishing_facebook_publishing_options_pane_setup_resolution_combo (PublishingFacebookPublishingOptionsPane* self); -static void publishing_facebook_publishing_options_pane_on_size_changed (PublishingFacebookPublishingOptionsPane* self); -static void _publishing_facebook_publishing_options_pane_on_size_changed_gtk_combo_box_changed (GtkComboBox* _sender, - gpointer self); -static gboolean publishing_facebook_publishing_options_pane_publishing_photos (PublishingFacebookPublishingOptionsPane* self); -static PublishingFacebookPublishingOptionsPanePrivacyDescription* publishing_facebook_publishing_options_pane_privacy_description_new (const gchar* description, - const gchar* privacy_setting); -static PublishingFacebookPublishingOptionsPanePrivacyDescription* publishing_facebook_publishing_options_pane_privacy_description_construct (GType object_type, - const gchar* description, - const gchar* privacy_setting); -static void _vala_array_add8 (PublishingFacebookPublishingOptionsPanePrivacyDescription** * array, - int* length, - int* size, - PublishingFacebookPublishingOptionsPanePrivacyDescription* value); -static void _vala_array_add9 (PublishingFacebookPublishingOptionsPanePrivacyDescription** * array, - int* length, - int* size, - PublishingFacebookPublishingOptionsPanePrivacyDescription* value); -static void _vala_array_add10 (PublishingFacebookPublishingOptionsPanePrivacyDescription** * array, - int* length, - int* size, - PublishingFacebookPublishingOptionsPanePrivacyDescription* value); -static void _vala_array_add11 (PublishingFacebookResolution* * array, - int* length, - int* size, - PublishingFacebookResolution value); -static void _vala_array_add12 (PublishingFacebookResolution* * array, - int* length, - int* size, - PublishingFacebookResolution value); -void publishing_facebook_publishing_options_pane_installed (PublishingFacebookPublishingOptionsPane* self); -static void publishing_facebook_publishing_options_pane_notify_logout (PublishingFacebookPublishingOptionsPane* self); -static void publishing_facebook_publishing_options_pane_notify_publish (PublishingFacebookPublishingOptionsPane* self, - const gchar* target_album, - const gchar* privacy_setting, - PublishingFacebookResolution target_resolution); -static GtkWidget* publishing_facebook_publishing_options_pane_real_get_widget (SpitPublishingDialogPane* base); -static SpitPublishingDialogPaneGeometryOptions publishing_facebook_publishing_options_pane_real_get_preferred_geometry (SpitPublishingDialogPane* base); -static void publishing_facebook_publishing_options_pane_real_on_pane_installed (SpitPublishingDialogPane* base); -static void _publishing_facebook_publishing_options_pane_notify_logout_publishing_facebook_publishing_options_pane_logout (PublishingFacebookPublishingOptionsPane* _sender, - gpointer self); -static void _publishing_facebook_publishing_options_pane_notify_publish_publishing_facebook_publishing_options_pane_publish (PublishingFacebookPublishingOptionsPane* _sender, - const gchar* target_album, - const gchar* privacy_setting, - PublishingFacebookResolution target_resolution, - gboolean strip_metadata, - gpointer self); -static void publishing_facebook_publishing_options_pane_real_on_pane_uninstalled (SpitPublishingDialogPane* base); -static void g_cclosure_user_marshal_VOID__STRING_STRING_ENUM_BOOLEAN (GClosure * closure, - GValue * return_value, - guint n_param_values, - const GValue * param_values, - gpointer invocation_hint, - gpointer marshal_data); -static void publishing_facebook_publishing_options_pane_privacy_description_finalize (PublishingFacebookPublishingOptionsPanePrivacyDescription * obj); -static void publishing_facebook_publishing_options_pane_finalize (GObject * obj); -GType publishing_facebook_endpoint_get_type (void) G_GNUC_CONST; -gchar* publishing_facebook_endpoint_to_uri (PublishingFacebookEndpoint self); -gchar* publishing_facebook_graph_message_get_uri (PublishingFacebookGraphMessage* self); -static gchar* publishing_facebook_graph_message_real_get_uri (PublishingFacebookGraphMessage* self); -static gchar* publishing_facebook_graph_message_real_get_response_body (PublishingFacebookGraphMessage* self); -PublishingFacebookGraphMessage* publishing_facebook_graph_message_construct (GType object_type); -static void g_cclosure_user_marshal_VOID__INT_INT (GClosure * closure, - GValue * return_value, - guint n_param_values, - const GValue * param_values, - gpointer invocation_hint, - gpointer marshal_data); -static void publishing_facebook_graph_message_finalize (PublishingFacebookGraphMessage * obj); -#define PUBLISHING_FACEBOOK_GRAPH_SESSION_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), PUBLISHING_FACEBOOK_TYPE_GRAPH_SESSION, PublishingFacebookGraphSessionPrivate)) -static void publishing_facebook_graph_session_on_request_unqueued (PublishingFacebookGraphSession* self, - SoupMessage* msg); -static void _publishing_facebook_graph_session_on_request_unqueued_soup_session_request_unqueued (SoupSession* _sender, - SoupMessage* msg, - gpointer self); -static void publishing_facebook_graph_session_manage_message (PublishingFacebookGraphSession* self, - PublishingFacebookGraphMessage* msg); -static void publishing_facebook_graph_session_unmanage_message (PublishingFacebookGraphSession* self, - PublishingFacebookGraphMessage* msg); -static GType publishing_facebook_graph_session_graph_message_impl_get_type (void) G_GNUC_CONST G_GNUC_UNUSED; -static void publishing_facebook_graph_session_graph_message_impl_on_wrote_body_data (PublishingFacebookGraphSessionGraphMessageImpl* self, - SoupBuffer* chunk); -static void _publishing_facebook_graph_session_graph_message_impl_on_wrote_body_data_soup_message_wrote_body_data (SoupMessage* _sender, - SoupBuffer* chunk, - gpointer self); -static PublishingFacebookGraphSessionGraphQueryMessage* publishing_facebook_graph_session_graph_query_message_new (PublishingFacebookGraphSession* host_session, - const gchar* relative_uri, - const gchar* access_token); -static PublishingFacebookGraphSessionGraphQueryMessage* publishing_facebook_graph_session_graph_query_message_construct (GType object_type, - PublishingFacebookGraphSession* host_session, - const gchar* relative_uri, - const gchar* access_token); -static GType publishing_facebook_graph_session_graph_query_message_get_type (void) G_GNUC_CONST G_GNUC_UNUSED; -PublishingFacebookGraphMessage* publishing_facebook_graph_session_new_upload (PublishingFacebookGraphSession* self, - const gchar* resource_path, - SpitPublishingPublishable* publishable, - gboolean suppress_titling, - const gchar* resource_privacy); -static PublishingFacebookGraphSessionGraphUploadMessage* publishing_facebook_graph_session_graph_upload_message_new (PublishingFacebookGraphSession* host_session, - const gchar* access_token, - const gchar* relative_uri, - SpitPublishingPublishable* publishable, - gboolean suppress_titling, - const gchar* resource_privacy); -static PublishingFacebookGraphSessionGraphUploadMessage* publishing_facebook_graph_session_graph_upload_message_construct (GType object_type, - PublishingFacebookGraphSession* host_session, - const gchar* access_token, - const gchar* relative_uri, - SpitPublishingPublishable* publishable, - gboolean suppress_titling, - const gchar* resource_privacy); -static GType publishing_facebook_graph_session_graph_upload_message_get_type (void) G_GNUC_CONST G_GNUC_UNUSED; -static PublishingFacebookGraphSessionGraphCreateAlbumMessage* publishing_facebook_graph_session_graph_create_album_message_new (PublishingFacebookGraphSession* host_session, - const gchar* access_token, - const gchar* album_name, - const gchar* album_privacy); -static PublishingFacebookGraphSessionGraphCreateAlbumMessage* publishing_facebook_graph_session_graph_create_album_message_construct (GType object_type, - PublishingFacebookGraphSession* host_session, - const gchar* access_token, - const gchar* album_name, - const gchar* album_privacy); -static GType publishing_facebook_graph_session_graph_create_album_message_get_type (void) G_GNUC_CONST G_GNUC_UNUSED; -static gboolean publishing_facebook_graph_session_graph_message_impl_prepare_for_transmission (PublishingFacebookGraphSessionGraphMessageImpl* self); -static PublishingFacebookGraphSessionGraphMessageImpl* publishing_facebook_graph_session_graph_message_impl_construct (GType object_type, - PublishingFacebookGraphSession* host_session, - PublishingRESTSupportHttpMethod method, - const gchar* relative_uri, - const gchar* access_token, - PublishingFacebookEndpoint endpoint); -static gboolean publishing_facebook_graph_session_graph_message_impl_real_prepare_for_transmission (PublishingFacebookGraphSessionGraphMessageImpl* self); -static gchar* publishing_facebook_graph_session_graph_message_impl_real_get_uri (PublishingFacebookGraphMessage* base); -static gchar* publishing_facebook_graph_session_graph_message_impl_real_get_response_body (PublishingFacebookGraphMessage* base); -static void publishing_facebook_graph_session_graph_message_impl_finalize (PublishingFacebookGraphMessage * obj); -static void _vala_SoupURI_free (SoupURI* self); -static GType publishing_facebook_graph_session_graph_endpoint_probe_message_get_type (void) G_GNUC_CONST G_GNUC_UNUSED; -static PublishingFacebookGraphSessionGraphEndpointProbeMessage* publishing_facebook_graph_session_graph_endpoint_probe_message_new (PublishingFacebookGraphSession* host_session); -static PublishingFacebookGraphSessionGraphEndpointProbeMessage* publishing_facebook_graph_session_graph_endpoint_probe_message_construct (GType object_type, - PublishingFacebookGraphSession* host_session); -#define PUBLISHING_FACEBOOK_GRAPH_SESSION_GRAPH_UPLOAD_MESSAGE_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), PUBLISHING_FACEBOOK_GRAPH_SESSION_TYPE_GRAPH_UPLOAD_MESSAGE, PublishingFacebookGraphSessionGraphUploadMessagePrivate)) -static void _vala_SoupMultipart_free (SoupMultipart* self); -static void _vala_SoupBuffer_free (SoupBuffer* self); -static gboolean publishing_facebook_graph_session_graph_upload_message_real_prepare_for_transmission (PublishingFacebookGraphSessionGraphMessageImpl* base); -static void publishing_facebook_graph_session_graph_upload_message_finalize (PublishingFacebookGraphMessage * obj); -static void publishing_facebook_graph_session_finalize (PublishingFacebookGraphSession * obj); -#define PUBLISHING_FACEBOOK_UPLOADER_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), PUBLISHING_FACEBOOK_TYPE_UPLOADER, PublishingFacebookUploaderPrivate)) -static SpitPublishingPublishable** _vala_array_dup3 (SpitPublishingPublishable** self, - int length); -static void publishing_facebook_uploader_send_current_file (PublishingFacebookUploader* self); -static void publishing_facebook_uploader_on_chunk_transmitted (PublishingFacebookUploader* self, - gint bytes_written_so_far, - gint total_bytes); -static void _publishing_facebook_uploader_on_chunk_transmitted_publishing_facebook_graph_message_data_transmitted (PublishingFacebookGraphMessage* _sender, - gint bytes_sent_so_far, - gint total_bytes, - gpointer self); -static void publishing_facebook_uploader_on_message_completed (PublishingFacebookUploader* self, - PublishingFacebookGraphMessage* message); -static void _publishing_facebook_uploader_on_message_completed_publishing_facebook_graph_message_completed (PublishingFacebookGraphMessage* _sender, - gpointer self); -static void publishing_facebook_uploader_on_message_failed (PublishingFacebookUploader* self, - PublishingFacebookGraphMessage* message, - GError* _error_); -static void _publishing_facebook_uploader_on_message_failed_publishing_facebook_graph_message_failed (PublishingFacebookGraphMessage* _sender, - GError* err, - gpointer self); -static void publishing_facebook_uploader_send_files (PublishingFacebookUploader* self); -static void publishing_facebook_uploader_finalize (PublishingFacebookUploader * obj); -static void _vala_array_destroy (gpointer array, - gint array_length, - GDestroyNotify destroy_func); -static void _vala_array_free (gpointer array, - gint array_length, - GDestroyNotify destroy_func); - - -FacebookService* -facebook_service_construct (GType object_type, - GFile* resource_directory) -{ - FacebookService * self = NULL; - GdkPixbuf** _tmp0_; - gint _tmp0__length1; -#line 12 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_return_val_if_fail (G_IS_FILE (resource_directory), NULL); -#line 12 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - self = (FacebookService*) g_object_new (object_type, NULL); -#line 13 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp0_ = facebook_service_icon_pixbuf_set; -#line 13 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp0__length1 = facebook_service_icon_pixbuf_set_length1; -#line 13 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - if (_tmp0_ == NULL) { -#line 1041 "FacebookPublishing.c" - gint _tmp1_; - GdkPixbuf** _tmp2_; -#line 14 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp2_ = resources_load_from_resource (PLUGIN_RESOURCE_PATH "/" FACEBOOK_SERVICE_ICON_FILENAME, &_tmp1_); -#line 14 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - facebook_service_icon_pixbuf_set = (_vala_array_free (facebook_service_icon_pixbuf_set, facebook_service_icon_pixbuf_set_length1, (GDestroyNotify) g_object_unref), NULL); -#line 14 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - facebook_service_icon_pixbuf_set = _tmp2_; -#line 14 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - facebook_service_icon_pixbuf_set_length1 = _tmp1_; -#line 14 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _facebook_service_icon_pixbuf_set_size_ = facebook_service_icon_pixbuf_set_length1; -#line 1054 "FacebookPublishing.c" - } -#line 12 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - return self; -#line 1058 "FacebookPublishing.c" -} - - -FacebookService* -facebook_service_new (GFile* resource_directory) -{ -#line 12 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - return facebook_service_construct (TYPE_FACEBOOK_SERVICE, resource_directory); -#line 1067 "FacebookPublishing.c" -} - - -static gint -facebook_service_real_get_pluggable_interface (SpitPluggable* base, - gint min_host_interface, - gint max_host_interface) -{ - FacebookService * self; - gint result = 0; -#line 18 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_FACEBOOK_SERVICE, FacebookService); -#line 19 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - result = spit_negotiate_interfaces (min_host_interface, max_host_interface, SPIT_PUBLISHING_CURRENT_INTERFACE); -#line 19 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - return result; -#line 1084 "FacebookPublishing.c" -} - - -static const gchar* -facebook_service_real_get_id (SpitPluggable* base) -{ - FacebookService * self; - const gchar* result = NULL; -#line 23 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_FACEBOOK_SERVICE, FacebookService); -#line 24 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - result = "org.yorba.shotwell.publishing.facebook"; -#line 24 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - return result; -#line 1099 "FacebookPublishing.c" -} - - -static const gchar* -facebook_service_real_get_pluggable_name (SpitPluggable* base) -{ - FacebookService * self; - const gchar* result = NULL; -#line 27 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_FACEBOOK_SERVICE, FacebookService); -#line 28 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - result = "Facebook"; -#line 28 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - return result; -#line 1114 "FacebookPublishing.c" -} - - -static gpointer -_g_object_ref0 (gpointer self) -{ -#line 40 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - return self ? g_object_ref (self) : NULL; -#line 1123 "FacebookPublishing.c" -} - - -static GdkPixbuf** -_vala_array_dup1 (GdkPixbuf** self, - int length) -{ - GdkPixbuf** result; - int i; -#line 40 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - result = g_new0 (GdkPixbuf*, length + 1); -#line 40 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - for (i = 0; i < length; i++) { -#line 1137 "FacebookPublishing.c" - GdkPixbuf* _tmp0_; -#line 40 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp0_ = _g_object_ref0 (self[i]); -#line 40 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - result[i] = _tmp0_; -#line 1143 "FacebookPublishing.c" - } -#line 40 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - return result; -#line 1147 "FacebookPublishing.c" -} - - -static void -facebook_service_real_get_info (SpitPluggable* base, - SpitPluggableInfo* info) -{ - FacebookService * 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 31 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_FACEBOOK_SERVICE, FacebookService); -#line 31 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_return_if_fail (info != NULL); -#line 32 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp0_ = g_strdup ("Lucas Beeler"); -#line 32 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _g_free0 ((*info).authors); -#line 32 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - (*info).authors = _tmp0_; -#line 33 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp1_ = g_strdup (_ ("Copyright 2016 Software Freedom Conservancy Inc.")); -#line 33 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _g_free0 ((*info).copyright); -#line 33 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - (*info).copyright = _tmp1_; -#line 34 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp2_ = g_strdup (RESOURCES_TRANSLATORS); -#line 34 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _g_free0 ((*info).translators); -#line 34 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - (*info).translators = _tmp2_; -#line 35 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp3_ = g_strdup (_VERSION); -#line 35 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _g_free0 ((*info).version); -#line 35 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - (*info).version = _tmp3_; -#line 36 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp4_ = g_strdup (RESOURCES_WEBSITE_NAME); -#line 36 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _g_free0 ((*info).website_name); -#line 36 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - (*info).website_name = _tmp4_; -#line 37 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp5_ = g_strdup (RESOURCES_WEBSITE_URL); -#line 37 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _g_free0 ((*info).website_url); -#line 37 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - (*info).website_url = _tmp5_; -#line 38 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - (*info).is_license_wordwrapped = FALSE; -#line 39 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp6_ = g_strdup (RESOURCES_LICENSE); -#line 39 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _g_free0 ((*info).license); -#line 39 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - (*info).license = _tmp6_; -#line 40 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp7_ = facebook_service_icon_pixbuf_set; -#line 40 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp7__length1 = facebook_service_icon_pixbuf_set_length1; -#line 40 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp8_ = (_tmp7_ != NULL) ? _vala_array_dup1 (_tmp7_, _tmp7__length1) : ((gpointer) _tmp7_); -#line 40 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp8__length1 = _tmp7__length1; -#line 40 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - (*info).icons = (_vala_array_free ((*info).icons, (*info).icons_length1, (GDestroyNotify) g_object_unref), NULL); -#line 40 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - (*info).icons = _tmp8_; -#line 40 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - (*info).icons_length1 = _tmp8__length1; -#line 1229 "FacebookPublishing.c" -} - - -static void -facebook_service_real_activation (SpitPluggable* base, - gboolean enabled) -{ - FacebookService * self; -#line 43 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_FACEBOOK_SERVICE, FacebookService); -#line 1240 "FacebookPublishing.c" -} - - -static SpitPublishingPublisher* -facebook_service_real_create_publisher (SpitPublishingService* base, - SpitPublishingPluginHost* host) -{ - FacebookService * self; - SpitPublishingPublisher* result = NULL; - PublishingFacebookFacebookPublisher* _tmp0_; -#line 46 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_FACEBOOK_SERVICE, FacebookService); -#line 46 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_return_val_if_fail (SPIT_PUBLISHING_IS_PLUGIN_HOST (host), NULL); -#line 47 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp0_ = publishing_facebook_facebook_publisher_new (G_TYPE_CHECK_INSTANCE_CAST (self, SPIT_PUBLISHING_TYPE_SERVICE, SpitPublishingService), host); -#line 47 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - result = G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, SPIT_PUBLISHING_TYPE_PUBLISHER, SpitPublishingPublisher); -#line 47 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - return result; -#line 1261 "FacebookPublishing.c" -} - - -static SpitPublishingPublisherMediaType -facebook_service_real_get_supported_media (SpitPublishingService* base) -{ - FacebookService * self; - SpitPublishingPublisherMediaType result = 0; -#line 50 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_FACEBOOK_SERVICE, FacebookService); -#line 51 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - result = SPIT_PUBLISHING_PUBLISHER_MEDIA_TYPE_PHOTO | SPIT_PUBLISHING_PUBLISHER_MEDIA_TYPE_VIDEO; -#line 51 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - return result; -#line 1276 "FacebookPublishing.c" -} - - -static void -facebook_service_class_init (FacebookServiceClass * klass) -{ -#line 7 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - facebook_service_parent_class = g_type_class_peek_parent (klass); -#line 7 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - G_OBJECT_CLASS (klass)->finalize = facebook_service_finalize; -#line 1287 "FacebookPublishing.c" -} - - -static void -facebook_service_spit_pluggable_interface_init (SpitPluggableIface * iface) -{ -#line 7 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - facebook_service_spit_pluggable_parent_iface = g_type_interface_peek_parent (iface); -#line 7 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - iface->get_pluggable_interface = (gint (*) (SpitPluggable *, gint, gint)) facebook_service_real_get_pluggable_interface; -#line 7 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - iface->get_id = (const gchar* (*) (SpitPluggable *)) facebook_service_real_get_id; -#line 7 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - iface->get_pluggable_name = (const gchar* (*) (SpitPluggable *)) facebook_service_real_get_pluggable_name; -#line 7 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - iface->get_info = (void (*) (SpitPluggable *, SpitPluggableInfo*)) facebook_service_real_get_info; -#line 7 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - iface->activation = (void (*) (SpitPluggable *, gboolean)) facebook_service_real_activation; -#line 1306 "FacebookPublishing.c" -} - - -static void -facebook_service_spit_publishing_service_interface_init (SpitPublishingServiceIface * iface) -{ -#line 7 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - facebook_service_spit_publishing_service_parent_iface = g_type_interface_peek_parent (iface); -#line 7 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - iface->create_publisher = (SpitPublishingPublisher* (*) (SpitPublishingService *, SpitPublishingPluginHost*)) facebook_service_real_create_publisher; -#line 7 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - iface->get_supported_media = (SpitPublishingPublisherMediaType (*) (SpitPublishingService *)) facebook_service_real_get_supported_media; -#line 1319 "FacebookPublishing.c" -} - - -static void -facebook_service_instance_init (FacebookService * self) -{ -} - - -static void -facebook_service_finalize (GObject * obj) -{ - FacebookService * self; -#line 7 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_FACEBOOK_SERVICE, FacebookService); -#line 7 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - G_OBJECT_CLASS (facebook_service_parent_class)->finalize (obj); -#line 1337 "FacebookPublishing.c" -} - - -GType -facebook_service_get_type (void) -{ - static volatile gsize facebook_service_type_id__volatile = 0; - if (g_once_init_enter (&facebook_service_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (FacebookServiceClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) facebook_service_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (FacebookService), 0, (GInstanceInitFunc) facebook_service_instance_init, NULL }; - static const GInterfaceInfo spit_pluggable_info = { (GInterfaceInitFunc) facebook_service_spit_pluggable_interface_init, (GInterfaceFinalizeFunc) NULL, NULL}; - static const GInterfaceInfo spit_publishing_service_info = { (GInterfaceInitFunc) facebook_service_spit_publishing_service_interface_init, (GInterfaceFinalizeFunc) NULL, NULL}; - GType facebook_service_type_id; - facebook_service_type_id = g_type_register_static (G_TYPE_OBJECT, "FacebookService", &g_define_type_info, 0); - g_type_add_interface_static (facebook_service_type_id, SPIT_TYPE_PLUGGABLE, &spit_pluggable_info); - g_type_add_interface_static (facebook_service_type_id, SPIT_PUBLISHING_TYPE_SERVICE, &spit_publishing_service_info); - g_once_init_leave (&facebook_service_type_id__volatile, facebook_service_type_id); - } - return facebook_service_type_id__volatile; -} - - -PublishingFacebookAlbum* -publishing_facebook_album_construct (GType object_type, - const gchar* name, - const gchar* id) -{ - PublishingFacebookAlbum* self = NULL; - gchar* _tmp0_; - gchar* _tmp1_; -#line 68 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_return_val_if_fail (name != NULL, NULL); -#line 68 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_return_val_if_fail (id != NULL, NULL); -#line 68 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - self = (PublishingFacebookAlbum*) g_type_create_instance (object_type); -#line 69 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp0_ = g_strdup (name); -#line 69 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _g_free0 (self->name); -#line 69 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - self->name = _tmp0_; -#line 70 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp1_ = g_strdup (id); -#line 70 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _g_free0 (self->id); -#line 70 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - self->id = _tmp1_; -#line 68 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - return self; -#line 1387 "FacebookPublishing.c" -} - - -PublishingFacebookAlbum* -publishing_facebook_album_new (const gchar* name, - const gchar* id) -{ -#line 68 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - return publishing_facebook_album_construct (PUBLISHING_FACEBOOK_TYPE_ALBUM, name, id); -#line 1397 "FacebookPublishing.c" -} - - -static void -publishing_facebook_value_album_init (GValue* value) -{ -#line 64 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - value->data[0].v_pointer = NULL; -#line 1406 "FacebookPublishing.c" -} - - -static void -publishing_facebook_value_album_free_value (GValue* value) -{ -#line 64 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - if (value->data[0].v_pointer) { -#line 64 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - publishing_facebook_album_unref (value->data[0].v_pointer); -#line 1417 "FacebookPublishing.c" - } -} - - -static void -publishing_facebook_value_album_copy_value (const GValue* src_value, - GValue* dest_value) -{ -#line 64 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - if (src_value->data[0].v_pointer) { -#line 64 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - dest_value->data[0].v_pointer = publishing_facebook_album_ref (src_value->data[0].v_pointer); -#line 1430 "FacebookPublishing.c" - } else { -#line 64 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - dest_value->data[0].v_pointer = NULL; -#line 1434 "FacebookPublishing.c" - } -} - - -static gpointer -publishing_facebook_value_album_peek_pointer (const GValue* value) -{ -#line 64 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - return value->data[0].v_pointer; -#line 1444 "FacebookPublishing.c" -} - - -static gchar* -publishing_facebook_value_album_collect_value (GValue* value, - guint n_collect_values, - GTypeCValue* collect_values, - guint collect_flags) -{ -#line 64 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - if (collect_values[0].v_pointer) { -#line 1456 "FacebookPublishing.c" - PublishingFacebookAlbum * object; - object = collect_values[0].v_pointer; -#line 64 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - if (object->parent_instance.g_class == NULL) { -#line 64 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL); -#line 1463 "FacebookPublishing.c" - } else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) { -#line 64 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - return g_strconcat ("invalid object type `", g_type_name (G_TYPE_FROM_INSTANCE (object)), "' for value type `", G_VALUE_TYPE_NAME (value), "'", NULL); -#line 1467 "FacebookPublishing.c" - } -#line 64 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - value->data[0].v_pointer = publishing_facebook_album_ref (object); -#line 1471 "FacebookPublishing.c" - } else { -#line 64 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - value->data[0].v_pointer = NULL; -#line 1475 "FacebookPublishing.c" - } -#line 64 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - return NULL; -#line 1479 "FacebookPublishing.c" -} - - -static gchar* -publishing_facebook_value_album_lcopy_value (const GValue* value, - guint n_collect_values, - GTypeCValue* collect_values, - guint collect_flags) -{ - PublishingFacebookAlbum ** object_p; - object_p = collect_values[0].v_pointer; -#line 64 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - if (!object_p) { -#line 64 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value)); -#line 1495 "FacebookPublishing.c" - } -#line 64 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - if (!value->data[0].v_pointer) { -#line 64 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - *object_p = NULL; -#line 1501 "FacebookPublishing.c" - } else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) { -#line 64 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - *object_p = value->data[0].v_pointer; -#line 1505 "FacebookPublishing.c" - } else { -#line 64 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - *object_p = publishing_facebook_album_ref (value->data[0].v_pointer); -#line 1509 "FacebookPublishing.c" - } -#line 64 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - return NULL; -#line 1513 "FacebookPublishing.c" -} - - -GParamSpec* -publishing_facebook_param_spec_album (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags) -{ - PublishingFacebookParamSpecAlbum* spec; -#line 64 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_return_val_if_fail (g_type_is_a (object_type, PUBLISHING_FACEBOOK_TYPE_ALBUM), NULL); -#line 64 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags); -#line 64 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - G_PARAM_SPEC (spec)->value_type = object_type; -#line 64 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - return G_PARAM_SPEC (spec); -#line 1533 "FacebookPublishing.c" -} - - -gpointer -publishing_facebook_value_get_album (const GValue* value) -{ -#line 64 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, PUBLISHING_FACEBOOK_TYPE_ALBUM), NULL); -#line 64 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - return value->data[0].v_pointer; -#line 1544 "FacebookPublishing.c" -} - - -void -publishing_facebook_value_set_album (GValue* value, - gpointer v_object) -{ - PublishingFacebookAlbum * old; -#line 64 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, PUBLISHING_FACEBOOK_TYPE_ALBUM)); -#line 64 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - old = value->data[0].v_pointer; -#line 64 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - if (v_object) { -#line 64 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, PUBLISHING_FACEBOOK_TYPE_ALBUM)); -#line 64 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value))); -#line 64 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - value->data[0].v_pointer = v_object; -#line 64 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - publishing_facebook_album_ref (value->data[0].v_pointer); -#line 1567 "FacebookPublishing.c" - } else { -#line 64 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - value->data[0].v_pointer = NULL; -#line 1571 "FacebookPublishing.c" - } -#line 64 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - if (old) { -#line 64 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - publishing_facebook_album_unref (old); -#line 1577 "FacebookPublishing.c" - } -} - - -void -publishing_facebook_value_take_album (GValue* value, - gpointer v_object) -{ - PublishingFacebookAlbum * old; -#line 64 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, PUBLISHING_FACEBOOK_TYPE_ALBUM)); -#line 64 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - old = value->data[0].v_pointer; -#line 64 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - if (v_object) { -#line 64 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, PUBLISHING_FACEBOOK_TYPE_ALBUM)); -#line 64 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value))); -#line 64 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - value->data[0].v_pointer = v_object; -#line 1599 "FacebookPublishing.c" - } else { -#line 64 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - value->data[0].v_pointer = NULL; -#line 1603 "FacebookPublishing.c" - } -#line 64 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - if (old) { -#line 64 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - publishing_facebook_album_unref (old); -#line 1609 "FacebookPublishing.c" - } -} - - -static void -publishing_facebook_album_class_init (PublishingFacebookAlbumClass * klass) -{ -#line 64 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - publishing_facebook_album_parent_class = g_type_class_peek_parent (klass); -#line 64 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - ((PublishingFacebookAlbumClass *) klass)->finalize = publishing_facebook_album_finalize; -#line 1621 "FacebookPublishing.c" -} - - -static void -publishing_facebook_album_instance_init (PublishingFacebookAlbum * self) -{ -#line 64 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - self->ref_count = 1; -#line 1630 "FacebookPublishing.c" -} - - -static void -publishing_facebook_album_finalize (PublishingFacebookAlbum * obj) -{ - PublishingFacebookAlbum * self; -#line 64 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, PUBLISHING_FACEBOOK_TYPE_ALBUM, PublishingFacebookAlbum); -#line 64 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_signal_handlers_destroy (self); -#line 65 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _g_free0 (self->name); -#line 66 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _g_free0 (self->id); -#line 1646 "FacebookPublishing.c" -} - - -GType -publishing_facebook_album_get_type (void) -{ - static volatile gsize publishing_facebook_album_type_id__volatile = 0; - if (g_once_init_enter (&publishing_facebook_album_type_id__volatile)) { - static const GTypeValueTable g_define_type_value_table = { publishing_facebook_value_album_init, publishing_facebook_value_album_free_value, publishing_facebook_value_album_copy_value, publishing_facebook_value_album_peek_pointer, "p", publishing_facebook_value_album_collect_value, "p", publishing_facebook_value_album_lcopy_value }; - static const GTypeInfo g_define_type_info = { sizeof (PublishingFacebookAlbumClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) publishing_facebook_album_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PublishingFacebookAlbum), 0, (GInstanceInitFunc) publishing_facebook_album_instance_init, &g_define_type_value_table }; - static const GTypeFundamentalInfo g_define_type_fundamental_info = { (G_TYPE_FLAG_CLASSED | G_TYPE_FLAG_INSTANTIATABLE | G_TYPE_FLAG_DERIVABLE | G_TYPE_FLAG_DEEP_DERIVABLE) }; - GType publishing_facebook_album_type_id; - publishing_facebook_album_type_id = g_type_register_fundamental (g_type_fundamental_next (), "PublishingFacebookAlbum", &g_define_type_info, &g_define_type_fundamental_info, 0); - g_once_init_leave (&publishing_facebook_album_type_id__volatile, publishing_facebook_album_type_id); - } - return publishing_facebook_album_type_id__volatile; -} - - -gpointer -publishing_facebook_album_ref (gpointer instance) -{ - PublishingFacebookAlbum * self; - self = instance; -#line 64 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_atomic_int_inc (&self->ref_count); -#line 64 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - return instance; -#line 1675 "FacebookPublishing.c" -} - - -void -publishing_facebook_album_unref (gpointer instance) -{ - PublishingFacebookAlbum * self; - self = instance; -#line 64 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - if (g_atomic_int_dec_and_test (&self->ref_count)) { -#line 64 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - PUBLISHING_FACEBOOK_ALBUM_GET_CLASS (self)->finalize (self); -#line 64 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_type_free_instance ((GTypeInstance *) self); -#line 1690 "FacebookPublishing.c" - } -} - - -gchar* -publishing_facebook_resolution_get_name (PublishingFacebookResolution self) -{ - gchar* result = NULL; -#line 79 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - switch (self) { -#line 79 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - case PUBLISHING_FACEBOOK_RESOLUTION_STANDARD: -#line 1703 "FacebookPublishing.c" - { - gchar* _tmp0_; -#line 81 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp0_ = g_strdup (_ ("Standard (720 pixels)")); -#line 81 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - result = _tmp0_; -#line 81 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - return result; -#line 1712 "FacebookPublishing.c" - } -#line 79 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - case PUBLISHING_FACEBOOK_RESOLUTION_HIGH: -#line 1716 "FacebookPublishing.c" - { - gchar* _tmp1_; -#line 84 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp1_ = g_strdup (_ ("Large (2048 pixels)")); -#line 84 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - result = _tmp1_; -#line 84 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - return result; -#line 1725 "FacebookPublishing.c" - } - default: - { - GEnumValue* _tmp2_; -#line 87 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp2_ = g_enum_get_value (g_type_class_ref (PUBLISHING_FACEBOOK_TYPE_RESOLUTION), self); -#line 87 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_error ("FacebookPublishing.vala:87: Unknown resolution %s", (_tmp2_ != NULL) ? _tmp2_->value_name : NULL); -#line 1734 "FacebookPublishing.c" - } - } -} - - -gint -publishing_facebook_resolution_get_pixels (PublishingFacebookResolution self) -{ - gint result = 0; -#line 92 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - switch (self) { -#line 92 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - case PUBLISHING_FACEBOOK_RESOLUTION_STANDARD: -#line 1748 "FacebookPublishing.c" - { -#line 94 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - result = 720; -#line 94 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - return result; -#line 1754 "FacebookPublishing.c" - } -#line 92 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - case PUBLISHING_FACEBOOK_RESOLUTION_HIGH: -#line 1758 "FacebookPublishing.c" - { -#line 97 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - result = 2048; -#line 97 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - return result; -#line 1764 "FacebookPublishing.c" - } - default: - { - GEnumValue* _tmp0_; -#line 100 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp0_ = g_enum_get_value (g_type_class_ref (PUBLISHING_FACEBOOK_TYPE_RESOLUTION), self); -#line 100 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_error ("FacebookPublishing.vala:100: Unknown resolution %s", (_tmp0_ != NULL) ? _tmp0_->value_name : NULL); -#line 1773 "FacebookPublishing.c" - } - } -} - - -GType -publishing_facebook_resolution_get_type (void) -{ - static volatile gsize publishing_facebook_resolution_type_id__volatile = 0; - if (g_once_init_enter (&publishing_facebook_resolution_type_id__volatile)) { - static const GEnumValue values[] = {{PUBLISHING_FACEBOOK_RESOLUTION_STANDARD, "PUBLISHING_FACEBOOK_RESOLUTION_STANDARD", "standard"}, {PUBLISHING_FACEBOOK_RESOLUTION_HIGH, "PUBLISHING_FACEBOOK_RESOLUTION_HIGH", "high"}, {0, NULL, NULL}}; - GType publishing_facebook_resolution_type_id; - publishing_facebook_resolution_type_id = g_enum_register_static ("PublishingFacebookResolution", values); - g_once_init_leave (&publishing_facebook_resolution_type_id__volatile, publishing_facebook_resolution_type_id); - } - return publishing_facebook_resolution_type_id__volatile; -} - - -PublishingFacebookPublishingParameters* -publishing_facebook_publishing_parameters_construct (GType object_type) -{ - PublishingFacebookPublishingParameters* self = NULL; -#line 119 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - self = (PublishingFacebookPublishingParameters*) g_type_create_instance (object_type); -#line 120 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - self->albums = (_vala_array_free (self->albums, self->albums_length1, (GDestroyNotify) publishing_facebook_album_unref), NULL); -#line 120 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - self->albums = NULL; -#line 120 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - self->albums_length1 = 0; -#line 120 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - self->_albums_size_ = self->albums_length1; -#line 121 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _g_free0 (self->privacy_object); -#line 121 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - self->privacy_object = NULL; -#line 122 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - self->target_album = PUBLISHING_FACEBOOK_PUBLISHING_PARAMETERS_UNKNOWN_ALBUM; -#line 123 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _g_free0 (self->new_album_name); -#line 123 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - self->new_album_name = NULL; -#line 124 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - self->strip_metadata = FALSE; -#line 125 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - self->resolution = PUBLISHING_FACEBOOK_RESOLUTION_HIGH; -#line 119 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - return self; -#line 1823 "FacebookPublishing.c" -} - - -PublishingFacebookPublishingParameters* -publishing_facebook_publishing_parameters_new (void) -{ -#line 119 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - return publishing_facebook_publishing_parameters_construct (PUBLISHING_FACEBOOK_TYPE_PUBLISHING_PARAMETERS); -#line 1832 "FacebookPublishing.c" -} - - -static gpointer -_publishing_facebook_album_ref0 (gpointer self) -{ -#line 133 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - return self ? publishing_facebook_album_ref (self) : NULL; -#line 1841 "FacebookPublishing.c" -} - - -static void -_vala_array_add7 (PublishingFacebookAlbum** * array, - int* length, - int* size, - PublishingFacebookAlbum* value) -{ -#line 133 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - if ((*length) == (*size)) { -#line 133 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - *size = (*size) ? (2 * (*size)) : 4; -#line 133 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - *array = g_renew (PublishingFacebookAlbum*, *array, (*size) + 1); -#line 1857 "FacebookPublishing.c" - } -#line 133 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - (*array)[(*length)++] = value; -#line 133 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - (*array)[*length] = NULL; -#line 1863 "FacebookPublishing.c" -} - - -void -publishing_facebook_publishing_parameters_add_album (PublishingFacebookPublishingParameters* self, - const gchar* name, - const gchar* id) -{ - PublishingFacebookAlbum** _tmp0_; - gint _tmp0__length1; - PublishingFacebookAlbum* new_album = NULL; - PublishingFacebookAlbum* _tmp2_; - PublishingFacebookAlbum** _tmp3_; - gint _tmp3__length1; - PublishingFacebookAlbum* _tmp4_; -#line 128 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_return_if_fail (PUBLISHING_FACEBOOK_IS_PUBLISHING_PARAMETERS (self)); -#line 128 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_return_if_fail (name != NULL); -#line 128 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_return_if_fail (id != NULL); -#line 129 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp0_ = self->albums; -#line 129 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp0__length1 = self->albums_length1; -#line 129 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - if (_tmp0_ == NULL) { -#line 1891 "FacebookPublishing.c" - PublishingFacebookAlbum** _tmp1_; -#line 130 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp1_ = g_new0 (PublishingFacebookAlbum*, 0 + 1); -#line 130 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - self->albums = (_vala_array_free (self->albums, self->albums_length1, (GDestroyNotify) publishing_facebook_album_unref), NULL); -#line 130 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - self->albums = _tmp1_; -#line 130 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - self->albums_length1 = 0; -#line 130 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - self->_albums_size_ = self->albums_length1; -#line 1903 "FacebookPublishing.c" - } -#line 132 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp2_ = publishing_facebook_album_new (name, id); -#line 132 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - new_album = _tmp2_; -#line 133 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp3_ = self->albums; -#line 133 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp3__length1 = self->albums_length1; -#line 133 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp4_ = _publishing_facebook_album_ref0 (new_album); -#line 133 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _vala_array_add7 (&self->albums, &self->albums_length1, &self->_albums_size_, _tmp4_); -#line 128 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _publishing_facebook_album_unref0 (new_album); -#line 1919 "FacebookPublishing.c" -} - - -void -publishing_facebook_publishing_parameters_set_target_album_by_name (PublishingFacebookPublishingParameters* self, - const gchar* name) -{ -#line 136 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_return_if_fail (PUBLISHING_FACEBOOK_IS_PUBLISHING_PARAMETERS (self)); -#line 137 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - if (name == NULL) { -#line 138 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - self->target_album = PUBLISHING_FACEBOOK_PUBLISHING_PARAMETERS_UNKNOWN_ALBUM; -#line 139 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - return; -#line 1935 "FacebookPublishing.c" - } - { - gint i = 0; -#line 142 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - i = 0; -#line 1941 "FacebookPublishing.c" - { - gboolean _tmp0_ = FALSE; -#line 142 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp0_ = TRUE; -#line 142 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - while (TRUE) { -#line 1948 "FacebookPublishing.c" - gint _tmp2_; - PublishingFacebookAlbum** _tmp3_; - gint _tmp3__length1; - PublishingFacebookAlbum** _tmp4_; - gint _tmp4__length1; - gint _tmp5_; - PublishingFacebookAlbum* _tmp6_; - const gchar* _tmp7_; -#line 142 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - if (!_tmp0_) { -#line 1959 "FacebookPublishing.c" - gint _tmp1_; -#line 142 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp1_ = i; -#line 142 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - i = _tmp1_ + 1; -#line 1965 "FacebookPublishing.c" - } -#line 142 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp0_ = FALSE; -#line 142 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp2_ = i; -#line 142 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp3_ = self->albums; -#line 142 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp3__length1 = self->albums_length1; -#line 142 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - if (!(_tmp2_ < _tmp3__length1)) { -#line 142 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - break; -#line 1979 "FacebookPublishing.c" - } -#line 144 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp4_ = self->albums; -#line 144 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp4__length1 = self->albums_length1; -#line 144 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp5_ = i; -#line 144 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp6_ = _tmp4_[_tmp5_]; -#line 144 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp7_ = _tmp6_->name; -#line 144 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - if (g_strcmp0 (_tmp7_, name) == 0) { -#line 1993 "FacebookPublishing.c" - gint _tmp8_; -#line 145 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp8_ = i; -#line 145 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - self->target_album = _tmp8_; -#line 146 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - return; -#line 2001 "FacebookPublishing.c" - } - } - } - } -#line 150 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - self->target_album = PUBLISHING_FACEBOOK_PUBLISHING_PARAMETERS_UNKNOWN_ALBUM; -#line 2008 "FacebookPublishing.c" -} - - -gchar* -publishing_facebook_publishing_parameters_get_target_album_name (PublishingFacebookPublishingParameters* self) -{ - gchar* result = NULL; - gboolean _tmp0_ = FALSE; - PublishingFacebookAlbum** _tmp1_; - gint _tmp1__length1; - PublishingFacebookAlbum** _tmp3_; - gint _tmp3__length1; - gint _tmp4_; - PublishingFacebookAlbum* _tmp5_; - const gchar* _tmp6_; - gchar* _tmp7_; -#line 153 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_return_val_if_fail (PUBLISHING_FACEBOOK_IS_PUBLISHING_PARAMETERS (self), NULL); -#line 154 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp1_ = self->albums; -#line 154 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp1__length1 = self->albums_length1; -#line 154 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - if (_tmp1_ == NULL) { -#line 154 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp0_ = TRUE; -#line 2035 "FacebookPublishing.c" - } else { - gint _tmp2_; -#line 154 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp2_ = self->target_album; -#line 154 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp0_ = _tmp2_ == PUBLISHING_FACEBOOK_PUBLISHING_PARAMETERS_UNKNOWN_ALBUM; -#line 2042 "FacebookPublishing.c" - } -#line 154 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - if (_tmp0_) { -#line 155 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - result = NULL; -#line 155 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - return result; -#line 2050 "FacebookPublishing.c" - } -#line 157 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp3_ = self->albums; -#line 157 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp3__length1 = self->albums_length1; -#line 157 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp4_ = self->target_album; -#line 157 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp5_ = _tmp3_[_tmp4_]; -#line 157 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp6_ = _tmp5_->name; -#line 157 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp7_ = g_strdup (_tmp6_); -#line 157 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - result = _tmp7_; -#line 157 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - return result; -#line 2068 "FacebookPublishing.c" -} - - -gchar* -publishing_facebook_publishing_parameters_get_target_album_id (PublishingFacebookPublishingParameters* self) -{ - gchar* result = NULL; - gboolean _tmp0_ = FALSE; - PublishingFacebookAlbum** _tmp1_; - gint _tmp1__length1; - PublishingFacebookAlbum** _tmp3_; - gint _tmp3__length1; - gint _tmp4_; - PublishingFacebookAlbum* _tmp5_; - const gchar* _tmp6_; - gchar* _tmp7_; -#line 160 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_return_val_if_fail (PUBLISHING_FACEBOOK_IS_PUBLISHING_PARAMETERS (self), NULL); -#line 161 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp1_ = self->albums; -#line 161 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp1__length1 = self->albums_length1; -#line 161 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - if (_tmp1_ == NULL) { -#line 161 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp0_ = TRUE; -#line 2095 "FacebookPublishing.c" - } else { - gint _tmp2_; -#line 161 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp2_ = self->target_album; -#line 161 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp0_ = _tmp2_ == PUBLISHING_FACEBOOK_PUBLISHING_PARAMETERS_UNKNOWN_ALBUM; -#line 2102 "FacebookPublishing.c" - } -#line 161 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - if (_tmp0_) { -#line 162 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - result = NULL; -#line 162 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - return result; -#line 2110 "FacebookPublishing.c" - } -#line 164 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp3_ = self->albums; -#line 164 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp3__length1 = self->albums_length1; -#line 164 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp4_ = self->target_album; -#line 164 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp5_ = _tmp3_[_tmp4_]; -#line 164 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp6_ = _tmp5_->id; -#line 164 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp7_ = g_strdup (_tmp6_); -#line 164 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - result = _tmp7_; -#line 164 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - return result; -#line 2128 "FacebookPublishing.c" -} - - -static void -publishing_facebook_value_publishing_parameters_init (GValue* value) -{ -#line 105 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - value->data[0].v_pointer = NULL; -#line 2137 "FacebookPublishing.c" -} - - -static void -publishing_facebook_value_publishing_parameters_free_value (GValue* value) -{ -#line 105 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - if (value->data[0].v_pointer) { -#line 105 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - publishing_facebook_publishing_parameters_unref (value->data[0].v_pointer); -#line 2148 "FacebookPublishing.c" - } -} - - -static void -publishing_facebook_value_publishing_parameters_copy_value (const GValue* src_value, - GValue* dest_value) -{ -#line 105 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - if (src_value->data[0].v_pointer) { -#line 105 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - dest_value->data[0].v_pointer = publishing_facebook_publishing_parameters_ref (src_value->data[0].v_pointer); -#line 2161 "FacebookPublishing.c" - } else { -#line 105 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - dest_value->data[0].v_pointer = NULL; -#line 2165 "FacebookPublishing.c" - } -} - - -static gpointer -publishing_facebook_value_publishing_parameters_peek_pointer (const GValue* value) -{ -#line 105 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - return value->data[0].v_pointer; -#line 2175 "FacebookPublishing.c" -} - - -static gchar* -publishing_facebook_value_publishing_parameters_collect_value (GValue* value, - guint n_collect_values, - GTypeCValue* collect_values, - guint collect_flags) -{ -#line 105 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - if (collect_values[0].v_pointer) { -#line 2187 "FacebookPublishing.c" - PublishingFacebookPublishingParameters * object; - object = collect_values[0].v_pointer; -#line 105 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - if (object->parent_instance.g_class == NULL) { -#line 105 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL); -#line 2194 "FacebookPublishing.c" - } else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) { -#line 105 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - return g_strconcat ("invalid object type `", g_type_name (G_TYPE_FROM_INSTANCE (object)), "' for value type `", G_VALUE_TYPE_NAME (value), "'", NULL); -#line 2198 "FacebookPublishing.c" - } -#line 105 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - value->data[0].v_pointer = publishing_facebook_publishing_parameters_ref (object); -#line 2202 "FacebookPublishing.c" - } else { -#line 105 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - value->data[0].v_pointer = NULL; -#line 2206 "FacebookPublishing.c" - } -#line 105 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - return NULL; -#line 2210 "FacebookPublishing.c" -} - - -static gchar* -publishing_facebook_value_publishing_parameters_lcopy_value (const GValue* value, - guint n_collect_values, - GTypeCValue* collect_values, - guint collect_flags) -{ - PublishingFacebookPublishingParameters ** object_p; - object_p = collect_values[0].v_pointer; -#line 105 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - if (!object_p) { -#line 105 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value)); -#line 2226 "FacebookPublishing.c" - } -#line 105 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - if (!value->data[0].v_pointer) { -#line 105 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - *object_p = NULL; -#line 2232 "FacebookPublishing.c" - } else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) { -#line 105 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - *object_p = value->data[0].v_pointer; -#line 2236 "FacebookPublishing.c" - } else { -#line 105 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - *object_p = publishing_facebook_publishing_parameters_ref (value->data[0].v_pointer); -#line 2240 "FacebookPublishing.c" - } -#line 105 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - return NULL; -#line 2244 "FacebookPublishing.c" -} - - -GParamSpec* -publishing_facebook_param_spec_publishing_parameters (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags) -{ - PublishingFacebookParamSpecPublishingParameters* spec; -#line 105 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_return_val_if_fail (g_type_is_a (object_type, PUBLISHING_FACEBOOK_TYPE_PUBLISHING_PARAMETERS), NULL); -#line 105 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags); -#line 105 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - G_PARAM_SPEC (spec)->value_type = object_type; -#line 105 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - return G_PARAM_SPEC (spec); -#line 2264 "FacebookPublishing.c" -} - - -gpointer -publishing_facebook_value_get_publishing_parameters (const GValue* value) -{ -#line 105 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, PUBLISHING_FACEBOOK_TYPE_PUBLISHING_PARAMETERS), NULL); -#line 105 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - return value->data[0].v_pointer; -#line 2275 "FacebookPublishing.c" -} - - -void -publishing_facebook_value_set_publishing_parameters (GValue* value, - gpointer v_object) -{ - PublishingFacebookPublishingParameters * old; -#line 105 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, PUBLISHING_FACEBOOK_TYPE_PUBLISHING_PARAMETERS)); -#line 105 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - old = value->data[0].v_pointer; -#line 105 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - if (v_object) { -#line 105 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, PUBLISHING_FACEBOOK_TYPE_PUBLISHING_PARAMETERS)); -#line 105 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value))); -#line 105 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - value->data[0].v_pointer = v_object; -#line 105 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - publishing_facebook_publishing_parameters_ref (value->data[0].v_pointer); -#line 2298 "FacebookPublishing.c" - } else { -#line 105 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - value->data[0].v_pointer = NULL; -#line 2302 "FacebookPublishing.c" - } -#line 105 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - if (old) { -#line 105 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - publishing_facebook_publishing_parameters_unref (old); -#line 2308 "FacebookPublishing.c" - } -} - - -void -publishing_facebook_value_take_publishing_parameters (GValue* value, - gpointer v_object) -{ - PublishingFacebookPublishingParameters * old; -#line 105 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, PUBLISHING_FACEBOOK_TYPE_PUBLISHING_PARAMETERS)); -#line 105 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - old = value->data[0].v_pointer; -#line 105 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - if (v_object) { -#line 105 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, PUBLISHING_FACEBOOK_TYPE_PUBLISHING_PARAMETERS)); -#line 105 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value))); -#line 105 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - value->data[0].v_pointer = v_object; -#line 2330 "FacebookPublishing.c" - } else { -#line 105 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - value->data[0].v_pointer = NULL; -#line 2334 "FacebookPublishing.c" - } -#line 105 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - if (old) { -#line 105 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - publishing_facebook_publishing_parameters_unref (old); -#line 2340 "FacebookPublishing.c" - } -} - - -static void -publishing_facebook_publishing_parameters_class_init (PublishingFacebookPublishingParametersClass * klass) -{ -#line 105 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - publishing_facebook_publishing_parameters_parent_class = g_type_class_peek_parent (klass); -#line 105 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - ((PublishingFacebookPublishingParametersClass *) klass)->finalize = publishing_facebook_publishing_parameters_finalize; -#line 2352 "FacebookPublishing.c" -} - - -static void -publishing_facebook_publishing_parameters_instance_init (PublishingFacebookPublishingParameters * self) -{ -#line 105 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - self->ref_count = 1; -#line 2361 "FacebookPublishing.c" -} - - -static void -publishing_facebook_publishing_parameters_finalize (PublishingFacebookPublishingParameters * obj) -{ - PublishingFacebookPublishingParameters * self; -#line 105 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, PUBLISHING_FACEBOOK_TYPE_PUBLISHING_PARAMETERS, PublishingFacebookPublishingParameters); -#line 105 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_signal_handlers_destroy (self); -#line 109 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - self->albums = (_vala_array_free (self->albums, self->albums_length1, (GDestroyNotify) publishing_facebook_album_unref), NULL); -#line 111 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _g_free0 (self->new_album_name); -#line 115 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _g_free0 (self->privacy_object); -#line 2379 "FacebookPublishing.c" -} - - -GType -publishing_facebook_publishing_parameters_get_type (void) -{ - static volatile gsize publishing_facebook_publishing_parameters_type_id__volatile = 0; - if (g_once_init_enter (&publishing_facebook_publishing_parameters_type_id__volatile)) { - static const GTypeValueTable g_define_type_value_table = { publishing_facebook_value_publishing_parameters_init, publishing_facebook_value_publishing_parameters_free_value, publishing_facebook_value_publishing_parameters_copy_value, publishing_facebook_value_publishing_parameters_peek_pointer, "p", publishing_facebook_value_publishing_parameters_collect_value, "p", publishing_facebook_value_publishing_parameters_lcopy_value }; - static const GTypeInfo g_define_type_info = { sizeof (PublishingFacebookPublishingParametersClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) publishing_facebook_publishing_parameters_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PublishingFacebookPublishingParameters), 0, (GInstanceInitFunc) publishing_facebook_publishing_parameters_instance_init, &g_define_type_value_table }; - static const GTypeFundamentalInfo g_define_type_fundamental_info = { (G_TYPE_FLAG_CLASSED | G_TYPE_FLAG_INSTANTIATABLE | G_TYPE_FLAG_DERIVABLE | G_TYPE_FLAG_DEEP_DERIVABLE) }; - GType publishing_facebook_publishing_parameters_type_id; - publishing_facebook_publishing_parameters_type_id = g_type_register_fundamental (g_type_fundamental_next (), "PublishingFacebookPublishingParameters", &g_define_type_info, &g_define_type_fundamental_info, 0); - g_once_init_leave (&publishing_facebook_publishing_parameters_type_id__volatile, publishing_facebook_publishing_parameters_type_id); - } - return publishing_facebook_publishing_parameters_type_id__volatile; -} - - -gpointer -publishing_facebook_publishing_parameters_ref (gpointer instance) -{ - PublishingFacebookPublishingParameters * self; - self = instance; -#line 105 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_atomic_int_inc (&self->ref_count); -#line 105 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - return instance; -#line 2408 "FacebookPublishing.c" -} - - -void -publishing_facebook_publishing_parameters_unref (gpointer instance) -{ - PublishingFacebookPublishingParameters * self; - self = instance; -#line 105 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - if (g_atomic_int_dec_and_test (&self->ref_count)) { -#line 105 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - PUBLISHING_FACEBOOK_PUBLISHING_PARAMETERS_GET_CLASS (self)->finalize (self); -#line 105 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_type_free_instance ((GTypeInstance *) self); -#line 2423 "FacebookPublishing.c" - } -} - - -static void -_publishing_facebook_facebook_publisher_on_session_authenticated_publishing_facebook_graph_session_authenticated (PublishingFacebookGraphSession* _sender, - gpointer self) -{ -#line 194 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - publishing_facebook_facebook_publisher_on_session_authenticated ((PublishingFacebookFacebookPublisher*) self); -#line 2434 "FacebookPublishing.c" -} - - -PublishingFacebookFacebookPublisher* -publishing_facebook_facebook_publisher_construct (GType object_type, - SpitPublishingService* service, - SpitPublishingPluginHost* host) -{ - PublishingFacebookFacebookPublisher * self = NULL; - PublishingFacebookPublishingParameters* _tmp0_; - PublishingAuthenticatorFactory* _tmp1_; - PublishingAuthenticatorFactory* _tmp2_; - SpitPublishingAuthenticator* _tmp3_; - PublishingFacebookGraphSession* _tmp4_; - PublishingFacebookGraphSession* _tmp5_; -#line 181 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_return_val_if_fail (SPIT_PUBLISHING_IS_SERVICE (service), NULL); -#line 181 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_return_val_if_fail (SPIT_PUBLISHING_IS_PLUGIN_HOST (host), NULL); -#line 181 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - self = (PublishingFacebookFacebookPublisher*) g_object_new (object_type, NULL); -#line 183 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_debug ("FacebookPublishing.vala:183: FacebookPublisher instantiated."); -#line 185 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - self->priv->service = service; -#line 186 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - self->priv->host = host; -#line 188 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp0_ = publishing_facebook_publishing_parameters_new (); -#line 188 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _publishing_facebook_publishing_parameters_unref0 (self->priv->publishing_params); -#line 188 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - self->priv->publishing_params = _tmp0_; -#line 189 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp1_ = publishing_authenticator_factory_get_instance (); -#line 189 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp2_ = _tmp1_; -#line 189 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp3_ = spit_publishing_authenticator_factory_create (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, SPIT_PUBLISHING_TYPE_AUTHENTICATOR_FACTORY, SpitPublishingAuthenticatorFactory), "facebook", host); -#line 189 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _g_object_unref0 (self->priv->authenticator); -#line 189 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - self->priv->authenticator = _tmp3_; -#line 189 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _g_object_unref0 (_tmp2_); -#line 193 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp4_ = publishing_facebook_graph_session_new (); -#line 193 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _publishing_facebook_graph_session_unref0 (self->priv->graph_session); -#line 193 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - self->priv->graph_session = _tmp4_; -#line 194 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp5_ = self->priv->graph_session; -#line 194 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_signal_connect_object (_tmp5_, "authenticated", (GCallback) _publishing_facebook_facebook_publisher_on_session_authenticated_publishing_facebook_graph_session_authenticated, self, 0); -#line 181 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - return self; -#line 2492 "FacebookPublishing.c" -} - - -PublishingFacebookFacebookPublisher* -publishing_facebook_facebook_publisher_new (SpitPublishingService* service, - SpitPublishingPluginHost* host) -{ -#line 181 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - return publishing_facebook_facebook_publisher_construct (PUBLISHING_FACEBOOK_TYPE_FACEBOOK_PUBLISHER, service, host); -#line 2502 "FacebookPublishing.c" -} - - -static gboolean -publishing_facebook_facebook_publisher_get_persistent_strip_metadata (PublishingFacebookFacebookPublisher* self) -{ - gboolean result = FALSE; - SpitPublishingPluginHost* _tmp0_; -#line 197 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_return_val_if_fail (PUBLISHING_FACEBOOK_IS_FACEBOOK_PUBLISHER (self), FALSE); -#line 198 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp0_ = self->priv->host; -#line 198 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - result = spit_host_interface_get_config_bool (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, SPIT_TYPE_HOST_INTERFACE, SpitHostInterface), "strip_metadata", FALSE); -#line 198 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - return result; -#line 2519 "FacebookPublishing.c" -} - - -static void -publishing_facebook_facebook_publisher_set_persistent_strip_metadata (PublishingFacebookFacebookPublisher* self, - gboolean strip_metadata) -{ - SpitPublishingPluginHost* _tmp0_; -#line 201 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_return_if_fail (PUBLISHING_FACEBOOK_IS_FACEBOOK_PUBLISHER (self)); -#line 202 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp0_ = self->priv->host; -#line 202 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - spit_host_interface_set_config_bool (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, SPIT_TYPE_HOST_INTERFACE, SpitHostInterface), "strip_metadata", strip_metadata); -#line 2534 "FacebookPublishing.c" -} - - -gint -publishing_facebook_facebook_publisher_get_persistent_default_size (PublishingFacebookFacebookPublisher* self) -{ - gint result = 0; - SpitPublishingPluginHost* _tmp0_; -#line 207 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_return_val_if_fail (PUBLISHING_FACEBOOK_IS_FACEBOOK_PUBLISHER (self), 0); -#line 208 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp0_ = self->priv->host; -#line 208 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - result = spit_host_interface_get_config_int (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, SPIT_TYPE_HOST_INTERFACE, SpitHostInterface), "default_size", 0); -#line 208 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - return result; -#line 2551 "FacebookPublishing.c" -} - - -void -publishing_facebook_facebook_publisher_set_persistent_default_size (PublishingFacebookFacebookPublisher* self, - gint size) -{ - SpitPublishingPluginHost* _tmp0_; -#line 211 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_return_if_fail (PUBLISHING_FACEBOOK_IS_FACEBOOK_PUBLISHER (self)); -#line 212 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp0_ = self->priv->host; -#line 212 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - spit_host_interface_set_config_int (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, SPIT_TYPE_HOST_INTERFACE, SpitHostInterface), "default_size", size); -#line 2566 "FacebookPublishing.c" -} - - -static void -_publishing_facebook_facebook_publisher_on_fetch_user_info_completed_publishing_facebook_graph_message_completed (PublishingFacebookGraphMessage* _sender, - gpointer self) -{ -#line 238 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - publishing_facebook_facebook_publisher_on_fetch_user_info_completed ((PublishingFacebookFacebookPublisher*) self, _sender); -#line 2576 "FacebookPublishing.c" -} - - -static void -_publishing_facebook_facebook_publisher_on_fetch_user_info_error_publishing_facebook_graph_message_failed (PublishingFacebookGraphMessage* _sender, - GError* err, - gpointer self) -{ -#line 239 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - publishing_facebook_facebook_publisher_on_fetch_user_info_error ((PublishingFacebookFacebookPublisher*) self, _sender, err); -#line 2587 "FacebookPublishing.c" -} - - -static void -publishing_facebook_facebook_publisher_do_fetch_user_info (PublishingFacebookFacebookPublisher* self) -{ - SpitPublishingPluginHost* _tmp0_; - SpitPublishingPluginHost* _tmp1_; - PublishingFacebookGraphMessage* user_info_message = NULL; - PublishingFacebookGraphSession* _tmp2_; - PublishingFacebookGraphMessage* _tmp3_; - PublishingFacebookGraphSession* _tmp4_; -#line 230 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_return_if_fail (PUBLISHING_FACEBOOK_IS_FACEBOOK_PUBLISHER (self)); -#line 231 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_debug ("FacebookPublishing.vala:231: ACTION: fetching user information."); -#line 233 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp0_ = self->priv->host; -#line 233 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - spit_publishing_plugin_host_set_service_locked (_tmp0_, TRUE); -#line 234 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp1_ = self->priv->host; -#line 234 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - spit_publishing_plugin_host_install_account_fetch_wait_pane (_tmp1_); -#line 236 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp2_ = self->priv->graph_session; -#line 236 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp3_ = publishing_facebook_graph_session_new_query (_tmp2_, "/me"); -#line 236 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - user_info_message = _tmp3_; -#line 238 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_signal_connect_object (user_info_message, "completed", (GCallback) _publishing_facebook_facebook_publisher_on_fetch_user_info_completed_publishing_facebook_graph_message_completed, self, 0); -#line 239 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_signal_connect_object (user_info_message, "failed", (GCallback) _publishing_facebook_facebook_publisher_on_fetch_user_info_error_publishing_facebook_graph_message_failed, self, 0); -#line 241 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp4_ = self->priv->graph_session; -#line 241 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - publishing_facebook_graph_session_send_message (_tmp4_, user_info_message); -#line 230 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _publishing_facebook_graph_message_unref0 (user_info_message); -#line 2628 "FacebookPublishing.c" -} - - -static void -_publishing_facebook_facebook_publisher_on_fetch_albums_completed_publishing_facebook_graph_message_completed (PublishingFacebookGraphMessage* _sender, - gpointer self) -{ -#line 252 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - publishing_facebook_facebook_publisher_on_fetch_albums_completed ((PublishingFacebookFacebookPublisher*) self, _sender); -#line 2638 "FacebookPublishing.c" -} - - -static void -_publishing_facebook_facebook_publisher_on_fetch_albums_error_publishing_facebook_graph_message_failed (PublishingFacebookGraphMessage* _sender, - GError* err, - gpointer self) -{ -#line 253 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - publishing_facebook_facebook_publisher_on_fetch_albums_error ((PublishingFacebookFacebookPublisher*) self, _sender, err); -#line 2649 "FacebookPublishing.c" -} - - -static void -publishing_facebook_facebook_publisher_do_fetch_album_descriptions (PublishingFacebookFacebookPublisher* self) -{ - SpitPublishingPluginHost* _tmp0_; - SpitPublishingPluginHost* _tmp1_; - PublishingFacebookGraphMessage* albums_message = NULL; - PublishingFacebookGraphSession* _tmp2_; - const gchar* _tmp3_; - gchar* _tmp4_; - gchar* _tmp5_; - PublishingFacebookGraphMessage* _tmp6_; - PublishingFacebookGraphMessage* _tmp7_; - PublishingFacebookGraphSession* _tmp8_; -#line 244 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_return_if_fail (PUBLISHING_FACEBOOK_IS_FACEBOOK_PUBLISHER (self)); -#line 245 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_debug ("FacebookPublishing.vala:245: ACTION: fetching album list."); -#line 247 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp0_ = self->priv->host; -#line 247 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - spit_publishing_plugin_host_set_service_locked (_tmp0_, TRUE); -#line 248 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp1_ = self->priv->host; -#line 248 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - spit_publishing_plugin_host_install_account_fetch_wait_pane (_tmp1_); -#line 250 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp2_ = self->priv->graph_session; -#line 250 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp3_ = self->priv->uid; -#line 250 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp4_ = g_strdup_printf ("/%s/albums", _tmp3_); -#line 250 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp5_ = _tmp4_; -#line 250 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp6_ = publishing_facebook_graph_session_new_query (_tmp2_, _tmp5_); -#line 250 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp7_ = _tmp6_; -#line 250 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _g_free0 (_tmp5_); -#line 250 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - albums_message = _tmp7_; -#line 252 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_signal_connect_object (albums_message, "completed", (GCallback) _publishing_facebook_facebook_publisher_on_fetch_albums_completed_publishing_facebook_graph_message_completed, self, 0); -#line 253 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_signal_connect_object (albums_message, "failed", (GCallback) _publishing_facebook_facebook_publisher_on_fetch_albums_error_publishing_facebook_graph_message_failed, self, 0); -#line 255 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp8_ = self->priv->graph_session; -#line 255 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - publishing_facebook_graph_session_send_message (_tmp8_, albums_message); -#line 244 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _publishing_facebook_graph_message_unref0 (albums_message); -#line 2704 "FacebookPublishing.c" -} - - -static JsonNode* -_vala_JsonNode_copy (JsonNode* self) -{ -#line 265 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - return g_boxed_copy (json_node_get_type (), self); -#line 2713 "FacebookPublishing.c" -} - - -static gpointer -__vala_JsonNode_copy0 (gpointer self) -{ -#line 265 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - return self ? _vala_JsonNode_copy (self) : NULL; -#line 2722 "FacebookPublishing.c" -} - - -static gpointer -_json_object_ref0 (gpointer self) -{ -#line 266 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - return self ? json_object_ref (self) : NULL; -#line 2731 "FacebookPublishing.c" -} - - -static void -_vala_JsonNode_free (JsonNode* self) -{ -#line 261 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_boxed_free (json_node_get_type (), self); -#line 2740 "FacebookPublishing.c" -} - - -static void -publishing_facebook_facebook_publisher_do_extract_user_info_from_json (PublishingFacebookFacebookPublisher* self, - const gchar* json) -{ - GError * _inner_error_ = NULL; -#line 258 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_return_if_fail (PUBLISHING_FACEBOOK_IS_FACEBOOK_PUBLISHER (self)); -#line 258 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_return_if_fail (json != NULL); -#line 259 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_debug ("FacebookPublishing.vala:259: ACTION: extracting user info from JSON re" \ -"sponse."); -#line 2755 "FacebookPublishing.c" - { - JsonParser* parser = NULL; - JsonParser* _tmp0_; - JsonParser* _tmp1_; - JsonNode* root = NULL; - JsonParser* _tmp2_; - JsonNode* _tmp3_; - JsonNode* _tmp4_; - JsonObject* response_object = NULL; - JsonNode* _tmp5_; - JsonObject* _tmp6_; - JsonObject* _tmp7_; - JsonObject* _tmp8_; - const gchar* _tmp9_; - gchar* _tmp10_; - JsonObject* _tmp11_; - const gchar* _tmp12_; - gchar* _tmp13_; -#line 262 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp0_ = json_parser_new (); -#line 262 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - parser = _tmp0_; -#line 263 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp1_ = parser; -#line 263 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - json_parser_load_from_data (_tmp1_, json, (gssize) -1, &_inner_error_); -#line 263 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 263 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _g_object_unref0 (parser); -#line 2786 "FacebookPublishing.c" - goto __catch0_g_error; - } -#line 265 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp2_ = parser; -#line 265 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp3_ = json_parser_get_root (_tmp2_); -#line 265 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp4_ = __vala_JsonNode_copy0 (_tmp3_); -#line 265 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - root = _tmp4_; -#line 266 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp5_ = root; -#line 266 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp6_ = json_node_get_object (_tmp5_); -#line 266 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp7_ = _json_object_ref0 (_tmp6_); -#line 266 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - response_object = _tmp7_; -#line 267 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp8_ = response_object; -#line 267 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp9_ = json_object_get_string_member (_tmp8_, "id"); -#line 267 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp10_ = g_strdup (_tmp9_); -#line 267 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _g_free0 (self->priv->uid); -#line 267 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - self->priv->uid = _tmp10_; -#line 268 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp11_ = response_object; -#line 268 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp12_ = json_object_get_string_member (_tmp11_, "name"); -#line 268 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp13_ = g_strdup (_tmp12_); -#line 268 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _g_free0 (self->priv->username); -#line 268 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - self->priv->username = _tmp13_; -#line 261 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _json_object_unref0 (response_object); -#line 261 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - __vala_JsonNode_free0 (root); -#line 261 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _g_object_unref0 (parser); -#line 2831 "FacebookPublishing.c" - } - goto __finally0; - __catch0_g_error: - { - GError* _error_ = NULL; - SpitPublishingPluginHost* _tmp14_; - GError* _tmp15_; - const gchar* _tmp16_; - GError* _tmp17_; - GError* _tmp18_; -#line 261 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _error_ = _inner_error_; -#line 261 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _inner_error_ = NULL; -#line 270 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp14_ = self->priv->host; -#line 270 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp15_ = _error_; -#line 270 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp16_ = _tmp15_->message; -#line 270 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp17_ = g_error_new_literal (SPIT_PUBLISHING_PUBLISHING_ERROR, SPIT_PUBLISHING_PUBLISHING_ERROR_MALFORMED_RESPONSE, _tmp16_); -#line 270 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp18_ = _tmp17_; -#line 270 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - spit_publishing_plugin_host_post_error (_tmp14_, _tmp18_); -#line 270 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _g_error_free0 (_tmp18_); -#line 271 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _g_error_free0 (_error_); -#line 271 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - return; -#line 2864 "FacebookPublishing.c" - } - __finally0: -#line 261 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 261 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 261 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_clear_error (&_inner_error_); -#line 261 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - return; -#line 2875 "FacebookPublishing.c" - } -#line 274 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - publishing_facebook_facebook_publisher_on_user_info_extracted (self); -#line 2879 "FacebookPublishing.c" -} - - -static gpointer -_json_array_ref0 (gpointer self) -{ -#line 286 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - return self ? json_array_ref (self) : NULL; -#line 2888 "FacebookPublishing.c" -} - - -static void -publishing_facebook_facebook_publisher_do_extract_albums_from_json (PublishingFacebookFacebookPublisher* self, - const gchar* json) -{ - GError * _inner_error_ = NULL; -#line 277 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_return_if_fail (PUBLISHING_FACEBOOK_IS_FACEBOOK_PUBLISHER (self)); -#line 277 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_return_if_fail (json != NULL); -#line 278 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_debug ("FacebookPublishing.vala:278: ACTION: extracting album info from JSON r" \ -"esponse."); -#line 2903 "FacebookPublishing.c" - { - JsonParser* parser = NULL; - JsonParser* _tmp0_; - JsonParser* _tmp1_; - JsonNode* root = NULL; - JsonParser* _tmp2_; - JsonNode* _tmp3_; - JsonNode* _tmp4_; - JsonObject* response_object = NULL; - JsonNode* _tmp5_; - JsonObject* _tmp6_; - JsonObject* _tmp7_; - JsonArray* album_list = NULL; - JsonObject* _tmp8_; - JsonArray* _tmp9_; - JsonArray* _tmp10_; - PublishingFacebookPublishingParameters* _tmp11_; - PublishingFacebookAlbum** _tmp12_; -#line 281 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp0_ = json_parser_new (); -#line 281 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - parser = _tmp0_; -#line 282 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp1_ = parser; -#line 282 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - json_parser_load_from_data (_tmp1_, json, (gssize) -1, &_inner_error_); -#line 282 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 282 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _g_object_unref0 (parser); -#line 2934 "FacebookPublishing.c" - goto __catch1_g_error; - } -#line 284 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp2_ = parser; -#line 284 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp3_ = json_parser_get_root (_tmp2_); -#line 284 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp4_ = __vala_JsonNode_copy0 (_tmp3_); -#line 284 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - root = _tmp4_; -#line 285 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp5_ = root; -#line 285 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp6_ = json_node_get_object (_tmp5_); -#line 285 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp7_ = _json_object_ref0 (_tmp6_); -#line 285 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - response_object = _tmp7_; -#line 286 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp8_ = response_object; -#line 286 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp9_ = json_object_get_array_member (_tmp8_, "data"); -#line 286 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp10_ = _json_array_ref0 (_tmp9_); -#line 286 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - album_list = _tmp10_; -#line 288 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp11_ = self->priv->publishing_params; -#line 288 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp12_ = g_new0 (PublishingFacebookAlbum*, 0 + 1); -#line 288 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp11_->albums = (_vala_array_free (_tmp11_->albums, _tmp11_->albums_length1, (GDestroyNotify) publishing_facebook_album_unref), NULL); -#line 288 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp11_->albums = _tmp12_; -#line 288 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp11_->albums_length1 = 0; -#line 288 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp11_->_albums_size_ = _tmp11_->albums_length1; -#line 2973 "FacebookPublishing.c" - { - gint i = 0; -#line 290 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - i = 0; -#line 2978 "FacebookPublishing.c" - { - gboolean _tmp13_ = FALSE; -#line 290 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp13_ = TRUE; -#line 290 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - while (TRUE) { -#line 2985 "FacebookPublishing.c" - gint _tmp15_; - JsonArray* _tmp16_; - JsonObject* current_album = NULL; - JsonArray* _tmp17_; - gint _tmp18_; - JsonObject* _tmp19_; - JsonObject* _tmp20_; - gchar* album_id = NULL; - JsonObject* _tmp21_; - const gchar* _tmp22_; - gchar* _tmp23_; - gchar* album_name = NULL; - JsonObject* _tmp24_; - const gchar* _tmp25_; - gchar* _tmp26_; - PublishingFacebookPublishingParameters* _tmp27_; - const gchar* _tmp28_; - const gchar* _tmp29_; -#line 290 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - if (!_tmp13_) { -#line 3006 "FacebookPublishing.c" - gint _tmp14_; -#line 290 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp14_ = i; -#line 290 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - i = _tmp14_ + 1; -#line 3012 "FacebookPublishing.c" - } -#line 290 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp13_ = FALSE; -#line 290 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp15_ = i; -#line 290 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp16_ = album_list; -#line 290 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - if (!(((guint) _tmp15_) < json_array_get_length (_tmp16_))) { -#line 290 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - break; -#line 3024 "FacebookPublishing.c" - } -#line 291 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp17_ = album_list; -#line 291 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp18_ = i; -#line 291 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp19_ = json_array_get_object_element (_tmp17_, (guint) _tmp18_); -#line 291 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp20_ = _json_object_ref0 (_tmp19_); -#line 291 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - current_album = _tmp20_; -#line 292 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp21_ = current_album; -#line 292 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp22_ = json_object_get_string_member (_tmp21_, "id"); -#line 292 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp23_ = g_strdup (_tmp22_); -#line 292 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - album_id = _tmp23_; -#line 293 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp24_ = current_album; -#line 293 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp25_ = json_object_get_string_member (_tmp24_, "name"); -#line 293 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp26_ = g_strdup (_tmp25_); -#line 293 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - album_name = _tmp26_; -#line 300 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp27_ = self->priv->publishing_params; -#line 300 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp28_ = album_name; -#line 300 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp29_ = album_id; -#line 300 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - publishing_facebook_publishing_parameters_add_album (_tmp27_, _tmp28_, _tmp29_); -#line 290 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _g_free0 (album_name); -#line 290 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _g_free0 (album_id); -#line 290 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _json_object_unref0 (current_album); -#line 3066 "FacebookPublishing.c" - } - } - } -#line 280 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _json_array_unref0 (album_list); -#line 280 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _json_object_unref0 (response_object); -#line 280 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - __vala_JsonNode_free0 (root); -#line 280 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _g_object_unref0 (parser); -#line 3078 "FacebookPublishing.c" - } - goto __finally1; - __catch1_g_error: - { - GError* _error_ = NULL; - SpitPublishingPluginHost* _tmp30_; - GError* _tmp31_; - const gchar* _tmp32_; - GError* _tmp33_; - GError* _tmp34_; -#line 280 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _error_ = _inner_error_; -#line 280 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _inner_error_ = NULL; -#line 303 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp30_ = self->priv->host; -#line 303 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp31_ = _error_; -#line 303 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp32_ = _tmp31_->message; -#line 303 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp33_ = g_error_new_literal (SPIT_PUBLISHING_PUBLISHING_ERROR, SPIT_PUBLISHING_PUBLISHING_ERROR_MALFORMED_RESPONSE, _tmp32_); -#line 303 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp34_ = _tmp33_; -#line 303 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - spit_publishing_plugin_host_post_error (_tmp30_, _tmp34_); -#line 303 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _g_error_free0 (_tmp34_); -#line 304 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _g_error_free0 (_error_); -#line 304 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - return; -#line 3111 "FacebookPublishing.c" - } - __finally1: -#line 280 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 280 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 280 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_clear_error (&_inner_error_); -#line 280 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - return; -#line 3122 "FacebookPublishing.c" - } -#line 307 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - publishing_facebook_facebook_publisher_on_albums_extracted (self); -#line 3126 "FacebookPublishing.c" -} - - -static void -_publishing_facebook_facebook_publisher_on_create_album_completed_publishing_facebook_graph_message_completed (PublishingFacebookGraphMessage* _sender, - gpointer self) -{ -#line 319 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - publishing_facebook_facebook_publisher_on_create_album_completed ((PublishingFacebookFacebookPublisher*) self, _sender); -#line 3136 "FacebookPublishing.c" -} - - -static void -_publishing_facebook_facebook_publisher_on_create_album_error_publishing_facebook_graph_message_failed (PublishingFacebookGraphMessage* _sender, - GError* err, - gpointer self) -{ -#line 320 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - publishing_facebook_facebook_publisher_on_create_album_error ((PublishingFacebookFacebookPublisher*) self, _sender, err); -#line 3147 "FacebookPublishing.c" -} - - -static void -publishing_facebook_facebook_publisher_do_create_new_album (PublishingFacebookFacebookPublisher* self) -{ - PublishingFacebookPublishingParameters* _tmp0_; - const gchar* _tmp1_; - SpitPublishingPluginHost* _tmp2_; - SpitPublishingPluginHost* _tmp3_; - PublishingFacebookGraphMessage* create_album_message = NULL; - PublishingFacebookGraphSession* _tmp4_; - PublishingFacebookPublishingParameters* _tmp5_; - const gchar* _tmp6_; - PublishingFacebookPublishingParameters* _tmp7_; - const gchar* _tmp8_; - PublishingFacebookGraphMessage* _tmp9_; - PublishingFacebookGraphSession* _tmp10_; -#line 310 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_return_if_fail (PUBLISHING_FACEBOOK_IS_FACEBOOK_PUBLISHER (self)); -#line 311 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp0_ = self->priv->publishing_params; -#line 311 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp1_ = _tmp0_->new_album_name; -#line 311 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_debug ("FacebookPublishing.vala:311: ACTION: creating a new album named \"%s\"" \ -".\n", _tmp1_); -#line 313 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp2_ = self->priv->host; -#line 313 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - spit_publishing_plugin_host_set_service_locked (_tmp2_, TRUE); -#line 314 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp3_ = self->priv->host; -#line 314 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - spit_publishing_plugin_host_install_static_message_pane (_tmp3_, _ ("Creating album…"), SPIT_PUBLISHING_PLUGIN_HOST_BUTTON_MODE_CANCEL); -#line 316 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp4_ = self->priv->graph_session; -#line 316 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp5_ = self->priv->publishing_params; -#line 316 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp6_ = _tmp5_->new_album_name; -#line 316 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp7_ = self->priv->publishing_params; -#line 316 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp8_ = _tmp7_->privacy_object; -#line 316 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp9_ = publishing_facebook_graph_session_new_create_album (_tmp4_, _tmp6_, _tmp8_); -#line 316 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - create_album_message = _tmp9_; -#line 319 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_signal_connect_object (create_album_message, "completed", (GCallback) _publishing_facebook_facebook_publisher_on_create_album_completed_publishing_facebook_graph_message_completed, self, 0); -#line 320 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_signal_connect_object (create_album_message, "failed", (GCallback) _publishing_facebook_facebook_publisher_on_create_album_error_publishing_facebook_graph_message_failed, self, 0); -#line 322 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp10_ = self->priv->graph_session; -#line 322 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - publishing_facebook_graph_session_send_message (_tmp10_, create_album_message); -#line 310 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _publishing_facebook_graph_message_unref0 (create_album_message); -#line 3206 "FacebookPublishing.c" -} - - -static void -_publishing_facebook_facebook_publisher_on_publishing_options_pane_logout_publishing_facebook_publishing_options_pane_logout (PublishingFacebookPublishingOptionsPane* _sender, - gpointer self) -{ -#line 347 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - publishing_facebook_facebook_publisher_on_publishing_options_pane_logout ((PublishingFacebookFacebookPublisher*) self); -#line 3216 "FacebookPublishing.c" -} - - -static void -_publishing_facebook_facebook_publisher_on_publishing_options_pane_publish_publishing_facebook_publishing_options_pane_publish (PublishingFacebookPublishingOptionsPane* _sender, - const gchar* target_album, - const gchar* privacy_setting, - PublishingFacebookResolution target_resolution, - gboolean strip_metadata, - gpointer self) -{ -#line 348 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - publishing_facebook_facebook_publisher_on_publishing_options_pane_publish ((PublishingFacebookFacebookPublisher*) self, target_album, privacy_setting, target_resolution, strip_metadata); -#line 3230 "FacebookPublishing.c" -} - - -static void -publishing_facebook_facebook_publisher_do_show_publishing_options_pane (PublishingFacebookFacebookPublisher* self) -{ - SpitPublishingPluginHost* _tmp0_; - GtkBuilder* builder = NULL; - GtkBuilder* _tmp1_; - const gchar* _tmp8_; - PublishingFacebookPublishingParameters* _tmp9_; - PublishingFacebookAlbum** _tmp10_; - gint _tmp10__length1; - SpitPublishingPluginHost* _tmp11_; - GtkBuilder* _tmp12_; - SpitPublishingAuthenticator* _tmp13_; - PublishingFacebookPublishingOptionsPane* _tmp14_; - PublishingFacebookPublishingOptionsPane* _tmp15_; - PublishingFacebookPublishingOptionsPane* _tmp16_; - SpitPublishingPluginHost* _tmp17_; - PublishingFacebookPublishingOptionsPane* _tmp18_; - GError * _inner_error_ = NULL; -#line 325 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_return_if_fail (PUBLISHING_FACEBOOK_IS_FACEBOOK_PUBLISHER (self)); -#line 326 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_debug ("FacebookPublishing.vala:326: ACTION: showing publishing options pane."); -#line 328 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp0_ = self->priv->host; -#line 328 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - spit_publishing_plugin_host_set_service_locked (_tmp0_, FALSE); -#line 329 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp1_ = gtk_builder_new (); -#line 329 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - builder = _tmp1_; -#line 3265 "FacebookPublishing.c" - { - GtkBuilder* _tmp2_; -#line 334 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp2_ = builder; -#line 334 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - gtk_builder_add_from_resource (_tmp2_, PLUGIN_RESOURCE_PATH "/" "facebook_publishing_options_pane.ui", &_inner_error_); -#line 334 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 3274 "FacebookPublishing.c" - goto __catch2_g_error; - } - } - goto __finally2; - __catch2_g_error: - { - GError* e = NULL; - GError* _tmp3_; - const gchar* _tmp4_; - SpitPublishingPluginHost* _tmp5_; - GError* _tmp6_; - GError* _tmp7_; -#line 331 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - e = _inner_error_; -#line 331 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _inner_error_ = NULL; -#line 337 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp3_ = e; -#line 337 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp4_ = _tmp3_->message; -#line 337 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_warning ("FacebookPublishing.vala:337: Could not parse UI file! Error: %s.", _tmp4_); -#line 338 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp5_ = self->priv->host; -#line 338 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp6_ = g_error_new_literal (SPIT_PUBLISHING_PUBLISHING_ERROR, SPIT_PUBLISHING_PUBLISHING_ERROR_LOCAL_FILE_ERROR, _ ("A file required for publishing is unavailable. Publishing to Facebook " \ -"can’t continue.")); -#line 338 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp7_ = _tmp6_; -#line 338 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - spit_publishing_plugin_host_post_error (_tmp5_, _tmp7_); -#line 338 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _g_error_free0 (_tmp7_); -#line 341 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _g_error_free0 (e); -#line 341 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _g_object_unref0 (builder); -#line 341 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - return; -#line 3313 "FacebookPublishing.c" - } - __finally2: -#line 331 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 331 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _g_object_unref0 (builder); -#line 331 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 331 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_clear_error (&_inner_error_); -#line 331 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - return; -#line 3326 "FacebookPublishing.c" - } -#line 344 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp8_ = self->priv->username; -#line 344 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp9_ = self->priv->publishing_params; -#line 344 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp10_ = _tmp9_->albums; -#line 344 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp10__length1 = _tmp9_->albums_length1; -#line 344 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp11_ = self->priv->host; -#line 344 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp12_ = builder; -#line 344 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp13_ = self->priv->authenticator; -#line 344 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp14_ = publishing_facebook_publishing_options_pane_new (_tmp8_, _tmp10_, _tmp10__length1, spit_publishing_plugin_host_get_publishable_media_type (_tmp11_), self, _tmp12_, publishing_facebook_facebook_publisher_get_persistent_strip_metadata (self), spit_publishing_authenticator_can_logout (_tmp13_)); -#line 344 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _g_object_unref0 (self->priv->publishing_options_pane); -#line 344 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - self->priv->publishing_options_pane = _tmp14_; -#line 347 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp15_ = self->priv->publishing_options_pane; -#line 347 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_signal_connect_object (_tmp15_, "logout", (GCallback) _publishing_facebook_facebook_publisher_on_publishing_options_pane_logout_publishing_facebook_publishing_options_pane_logout, self, 0); -#line 348 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp16_ = self->priv->publishing_options_pane; -#line 348 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_signal_connect_object (_tmp16_, "publish", (GCallback) _publishing_facebook_facebook_publisher_on_publishing_options_pane_publish_publishing_facebook_publishing_options_pane_publish, self, 0); -#line 349 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp17_ = self->priv->host; -#line 349 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp18_ = self->priv->publishing_options_pane; -#line 349 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - spit_publishing_plugin_host_install_dialog_pane (_tmp17_, G_TYPE_CHECK_INSTANCE_CAST (_tmp18_, SPIT_PUBLISHING_TYPE_DIALOG_PANE, SpitPublishingDialogPane), SPIT_PUBLISHING_PLUGIN_HOST_BUTTON_MODE_CANCEL); -#line 325 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _g_object_unref0 (builder); -#line 3364 "FacebookPublishing.c" -} - - -static void -publishing_facebook_facebook_publisher_do_logout (PublishingFacebookFacebookPublisher* self) -{ - SpitPublishingAuthenticator* _tmp0_; -#line 353 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_return_if_fail (PUBLISHING_FACEBOOK_IS_FACEBOOK_PUBLISHER (self)); -#line 354 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_debug ("FacebookPublishing.vala:354: ACTION: clearing persistent session infor" \ -"mation and restaring interaction."); -#line 355 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp0_ = self->priv->authenticator; -#line 355 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - spit_publishing_authenticator_logout (_tmp0_); -#line 357 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - self->priv->running = FALSE; -#line 358 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - spit_publishing_publisher_start (G_TYPE_CHECK_INSTANCE_CAST (self, SPIT_PUBLISHING_TYPE_PUBLISHER, SpitPublishingPublisher)); -#line 3384 "FacebookPublishing.c" -} - - -static void -publishing_facebook_facebook_publisher_do_add_new_local_album_from_json (PublishingFacebookFacebookPublisher* self, - const gchar* album_name, - const gchar* json) -{ - PublishingFacebookPublishingParameters* _tmp18_; - GError * _inner_error_ = NULL; -#line 361 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_return_if_fail (PUBLISHING_FACEBOOK_IS_FACEBOOK_PUBLISHER (self)); -#line 361 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_return_if_fail (album_name != NULL); -#line 361 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_return_if_fail (json != NULL); -#line 3401 "FacebookPublishing.c" - { - JsonParser* parser = NULL; - JsonParser* _tmp0_; - JsonParser* _tmp1_; - JsonNode* root = NULL; - JsonParser* _tmp2_; - JsonNode* _tmp3_; - JsonNode* _tmp4_; - JsonObject* response_object = NULL; - JsonNode* _tmp5_; - JsonObject* _tmp6_; - JsonObject* _tmp7_; - gchar* album_id = NULL; - JsonObject* _tmp8_; - const gchar* _tmp9_; - gchar* _tmp10_; - PublishingFacebookPublishingParameters* _tmp11_; - const gchar* _tmp12_; -#line 363 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp0_ = json_parser_new (); -#line 363 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - parser = _tmp0_; -#line 364 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp1_ = parser; -#line 364 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - json_parser_load_from_data (_tmp1_, json, (gssize) -1, &_inner_error_); -#line 364 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 364 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _g_object_unref0 (parser); -#line 3432 "FacebookPublishing.c" - goto __catch3_g_error; - } -#line 366 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp2_ = parser; -#line 366 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp3_ = json_parser_get_root (_tmp2_); -#line 366 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp4_ = __vala_JsonNode_copy0 (_tmp3_); -#line 366 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - root = _tmp4_; -#line 367 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp5_ = root; -#line 367 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp6_ = json_node_get_object (_tmp5_); -#line 367 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp7_ = _json_object_ref0 (_tmp6_); -#line 367 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - response_object = _tmp7_; -#line 368 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp8_ = response_object; -#line 368 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp9_ = json_object_get_string_member (_tmp8_, "id"); -#line 368 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp10_ = g_strdup (_tmp9_); -#line 368 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - album_id = _tmp10_; -#line 370 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp11_ = self->priv->publishing_params; -#line 370 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp12_ = album_id; -#line 370 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - publishing_facebook_publishing_parameters_add_album (_tmp11_, album_name, _tmp12_); -#line 362 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _g_free0 (album_id); -#line 362 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _json_object_unref0 (response_object); -#line 362 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - __vala_JsonNode_free0 (root); -#line 362 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _g_object_unref0 (parser); -#line 3473 "FacebookPublishing.c" - } - goto __finally3; - __catch3_g_error: - { - GError* _error_ = NULL; - SpitPublishingPluginHost* _tmp13_; - GError* _tmp14_; - const gchar* _tmp15_; - GError* _tmp16_; - GError* _tmp17_; -#line 362 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _error_ = _inner_error_; -#line 362 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _inner_error_ = NULL; -#line 372 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp13_ = self->priv->host; -#line 372 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp14_ = _error_; -#line 372 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp15_ = _tmp14_->message; -#line 372 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp16_ = g_error_new_literal (SPIT_PUBLISHING_PUBLISHING_ERROR, SPIT_PUBLISHING_PUBLISHING_ERROR_MALFORMED_RESPONSE, _tmp15_); -#line 372 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp17_ = _tmp16_; -#line 372 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - spit_publishing_plugin_host_post_error (_tmp13_, _tmp17_); -#line 372 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _g_error_free0 (_tmp17_); -#line 373 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _g_error_free0 (_error_); -#line 373 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - return; -#line 3506 "FacebookPublishing.c" - } - __finally3: -#line 362 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 362 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 362 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_clear_error (&_inner_error_); -#line 362 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - return; -#line 3517 "FacebookPublishing.c" - } -#line 376 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp18_ = self->priv->publishing_params; -#line 376 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - publishing_facebook_publishing_parameters_set_target_album_by_name (_tmp18_, album_name); -#line 377 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - publishing_facebook_facebook_publisher_do_upload (self); -#line 3525 "FacebookPublishing.c" -} - - -static void -publishing_facebook_facebook_publisher_on_authenticator_succeeded (PublishingFacebookFacebookPublisher* self) -{ -#line 381 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_return_if_fail (PUBLISHING_FACEBOOK_IS_FACEBOOK_PUBLISHER (self)); -#line 382 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_debug ("FacebookPublishing.vala:382: EVENT: Authenticator login succeeded."); -#line 384 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - publishing_facebook_facebook_publisher_do_authenticate_session (self); -#line 3538 "FacebookPublishing.c" -} - - -static void -publishing_facebook_facebook_publisher_on_authenticator_failed (PublishingFacebookFacebookPublisher* self) -{ -#line 387 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_return_if_fail (PUBLISHING_FACEBOOK_IS_FACEBOOK_PUBLISHER (self)); -#line 3547 "FacebookPublishing.c" -} - - -static gpointer -_g_variant_ref0 (gpointer self) -{ -#line 393 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - return self ? g_variant_ref (self) : NULL; -#line 3556 "FacebookPublishing.c" -} - - -static void -publishing_facebook_facebook_publisher_do_authenticate_session (PublishingFacebookFacebookPublisher* self) -{ - GHashTable* parameter = NULL; - SpitPublishingAuthenticator* _tmp0_; - GHashTable* _tmp1_; - GVariant* access_token = NULL; - gconstpointer _tmp2_ = NULL; - gboolean _tmp3_; - GVariant* _tmp4_; - PublishingFacebookGraphSession* _tmp5_; - PublishingFacebookGraphSession* _tmp6_; - const gchar* _tmp7_; -#line 390 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_return_if_fail (PUBLISHING_FACEBOOK_IS_FACEBOOK_PUBLISHER (self)); -#line 391 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp0_ = self->priv->authenticator; -#line 391 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp1_ = spit_publishing_authenticator_get_authentication_parameter (_tmp0_); -#line 391 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - parameter = _tmp1_; -#line 393 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp3_ = g_hash_table_lookup_extended (parameter, "AccessToken", NULL, &_tmp2_); -#line 393 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _g_variant_unref0 (access_token); -#line 393 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp4_ = _g_variant_ref0 (_tmp2_); -#line 393 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - access_token = _tmp4_; -#line 393 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - if (!_tmp3_) { -#line 394 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_critical ("FacebookPublishing.vala:394: Authenticator signalled success, but does" \ -" not provide access token"); -#line 395 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_assert_not_reached (); -#line 3595 "FacebookPublishing.c" - } -#line 397 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp5_ = self->priv->graph_session; -#line 397 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_signal_connect_object (_tmp5_, "authenticated", (GCallback) _publishing_facebook_facebook_publisher_on_session_authenticated_publishing_facebook_graph_session_authenticated, self, 0); -#line 398 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp6_ = self->priv->graph_session; -#line 398 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp7_ = g_variant_get_string (access_token, NULL); -#line 398 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - publishing_facebook_graph_session_authenticate (_tmp6_, _tmp7_); -#line 390 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _g_variant_unref0 (access_token); -#line 390 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _g_hash_table_unref0 (parameter); -#line 3611 "FacebookPublishing.c" -} - - -static void -_publishing_facebook_facebook_publisher_on_upload_complete_publishing_facebook_uploader_upload_complete (PublishingFacebookUploader* _sender, - gint num_photos_published, - gpointer self) -{ -#line 421 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - publishing_facebook_facebook_publisher_on_upload_complete ((PublishingFacebookFacebookPublisher*) self, _sender, num_photos_published); -#line 3622 "FacebookPublishing.c" -} - - -static void -_publishing_facebook_facebook_publisher_on_upload_error_publishing_facebook_uploader_upload_error (PublishingFacebookUploader* _sender, - GError* err, - gpointer self) -{ -#line 422 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - publishing_facebook_facebook_publisher_on_upload_error ((PublishingFacebookFacebookPublisher*) self, _sender, err); -#line 3633 "FacebookPublishing.c" -} - - -static void -_publishing_facebook_facebook_publisher_on_upload_status_updated_spit_publishing_progress_callback (gint file_number, - gdouble fraction_complete, - gpointer self) -{ -#line 424 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - publishing_facebook_facebook_publisher_on_upload_status_updated ((PublishingFacebookFacebookPublisher*) self, file_number, fraction_complete); -#line 3644 "FacebookPublishing.c" -} - - -static void -publishing_facebook_facebook_publisher_do_upload (PublishingFacebookFacebookPublisher* self) -{ - gchar* _tmp0_ = NULL; - PublishingFacebookPublishingParameters* _tmp1_; - gint _tmp2_; - SpitPublishingPluginHost* _tmp6_; - SpitPublishingPluginHost* _tmp7_; - PublishingFacebookPublishingParameters* _tmp8_; - PublishingFacebookResolution _tmp9_; - PublishingFacebookPublishingParameters* _tmp10_; - gboolean _tmp11_; - void* _tmp12_; - GDestroyNotify _tmp13_; - SpitPublishingProgressCallback _tmp14_; - SpitPublishingPublishable** publishables = NULL; - SpitPublishingPluginHost* _tmp15_; - gint _tmp16_; - SpitPublishingPublishable** _tmp17_; - gint publishables_length1; - gint _publishables_size_; - PublishingFacebookGraphSession* _tmp18_; - PublishingFacebookPublishingParameters* _tmp19_; - SpitPublishingPublishable** _tmp20_; - gint _tmp20__length1; - PublishingFacebookUploader* _tmp21_; - PublishingFacebookUploader* _tmp22_; - PublishingFacebookUploader* _tmp23_; - PublishingFacebookUploader* _tmp24_; -#line 401 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_return_if_fail (PUBLISHING_FACEBOOK_IS_FACEBOOK_PUBLISHER (self)); -#line 403 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp1_ = self->priv->publishing_params; -#line 403 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp2_ = _tmp1_->target_album; -#line 403 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - if (_tmp2_ == PUBLISHING_FACEBOOK_PUBLISHING_PARAMETERS_UNKNOWN_ALBUM) { -#line 3685 "FacebookPublishing.c" - gchar* _tmp3_; -#line 403 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp3_ = g_strdup ("(none)"); -#line 403 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _g_free0 (_tmp0_); -#line 403 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp0_ = _tmp3_; -#line 3693 "FacebookPublishing.c" - } else { - PublishingFacebookPublishingParameters* _tmp4_; - gchar* _tmp5_; -#line 404 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp4_ = self->priv->publishing_params; -#line 404 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp5_ = publishing_facebook_publishing_parameters_get_target_album_name (_tmp4_); -#line 404 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _g_free0 (_tmp0_); -#line 404 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp0_ = _tmp5_; -#line 3705 "FacebookPublishing.c" - } -#line 402 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_debug ("FacebookPublishing.vala:402: ACTION: uploading photos to album '%s'", _tmp0_); -#line 406 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp6_ = self->priv->host; -#line 406 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - spit_publishing_plugin_host_set_service_locked (_tmp6_, TRUE); -#line 408 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp7_ = self->priv->host; -#line 408 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp8_ = self->priv->publishing_params; -#line 408 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp9_ = _tmp8_->resolution; -#line 408 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp10_ = self->priv->publishing_params; -#line 408 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp11_ = _tmp10_->strip_metadata; -#line 408 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp14_ = spit_publishing_plugin_host_serialize_publishables (_tmp7_, publishing_facebook_resolution_get_pixels (_tmp9_), _tmp11_, &_tmp12_, &_tmp13_); -#line 408 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - (self->priv->progress_reporter_target_destroy_notify == NULL) ? NULL : (self->priv->progress_reporter_target_destroy_notify (self->priv->progress_reporter_target), NULL); -#line 408 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - self->priv->progress_reporter = NULL; -#line 408 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - self->priv->progress_reporter_target = NULL; -#line 408 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - self->priv->progress_reporter_target_destroy_notify = NULL; -#line 408 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - self->priv->progress_reporter = _tmp14_; -#line 408 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - self->priv->progress_reporter_target = _tmp12_; -#line 408 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - self->priv->progress_reporter_target_destroy_notify = _tmp13_; -#line 415 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - if (!spit_publishing_publisher_is_running (G_TYPE_CHECK_INSTANCE_CAST (self, SPIT_PUBLISHING_TYPE_PUBLISHER, SpitPublishingPublisher))) { -#line 416 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _g_free0 (_tmp0_); -#line 416 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - return; -#line 3745 "FacebookPublishing.c" - } -#line 418 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp15_ = self->priv->host; -#line 418 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp17_ = spit_publishing_plugin_host_get_publishables (_tmp15_, &_tmp16_); -#line 418 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - publishables = _tmp17_; -#line 418 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - publishables_length1 = _tmp16_; -#line 418 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _publishables_size_ = publishables_length1; -#line 419 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp18_ = self->priv->graph_session; -#line 419 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp19_ = self->priv->publishing_params; -#line 419 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp20_ = publishables; -#line 419 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp20__length1 = publishables_length1; -#line 419 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp21_ = publishing_facebook_uploader_new (_tmp18_, _tmp19_, _tmp20_, _tmp20__length1); -#line 419 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _publishing_facebook_uploader_unref0 (self->priv->uploader); -#line 419 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - self->priv->uploader = _tmp21_; -#line 421 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp22_ = self->priv->uploader; -#line 421 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_signal_connect_object (_tmp22_, "upload-complete", (GCallback) _publishing_facebook_facebook_publisher_on_upload_complete_publishing_facebook_uploader_upload_complete, self, 0); -#line 422 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp23_ = self->priv->uploader; -#line 422 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_signal_connect_object (_tmp23_, "upload-error", (GCallback) _publishing_facebook_facebook_publisher_on_upload_error_publishing_facebook_uploader_upload_error, self, 0); -#line 424 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp24_ = self->priv->uploader; -#line 424 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - publishing_facebook_uploader_upload (_tmp24_, _publishing_facebook_facebook_publisher_on_upload_status_updated_spit_publishing_progress_callback, self); -#line 401 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - publishables = (_vala_array_free (publishables, publishables_length1, (GDestroyNotify) g_object_unref), NULL); -#line 401 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _g_free0 (_tmp0_); -#line 3787 "FacebookPublishing.c" -} - - -static void -publishing_facebook_facebook_publisher_do_show_success_pane (PublishingFacebookFacebookPublisher* self) -{ - SpitPublishingPluginHost* _tmp0_; - SpitPublishingPluginHost* _tmp1_; -#line 427 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_return_if_fail (PUBLISHING_FACEBOOK_IS_FACEBOOK_PUBLISHER (self)); -#line 428 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_debug ("FacebookPublishing.vala:428: ACTION: showing success pane."); -#line 430 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp0_ = self->priv->host; -#line 430 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - spit_publishing_plugin_host_set_service_locked (_tmp0_, FALSE); -#line 431 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp1_ = self->priv->host; -#line 431 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - spit_publishing_plugin_host_install_success_pane (_tmp1_); -#line 3808 "FacebookPublishing.c" -} - - -static void -publishing_facebook_facebook_publisher_on_generic_error (PublishingFacebookFacebookPublisher* self, - GError* _error_) -{ -#line 434 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_return_if_fail (PUBLISHING_FACEBOOK_IS_FACEBOOK_PUBLISHER (self)); -#line 435 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - if (g_error_matches (_error_, SPIT_PUBLISHING_PUBLISHING_ERROR, SPIT_PUBLISHING_PUBLISHING_ERROR_EXPIRED_SESSION)) { -#line 436 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - publishing_facebook_facebook_publisher_do_logout (self); -#line 3822 "FacebookPublishing.c" - } else { - SpitPublishingPluginHost* _tmp0_; -#line 438 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp0_ = self->priv->host; -#line 438 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - spit_publishing_plugin_host_post_error (_tmp0_, _error_); -#line 3829 "FacebookPublishing.c" - } -} - - -static void -publishing_facebook_facebook_publisher_on_session_authenticated (PublishingFacebookFacebookPublisher* self) -{ - PublishingFacebookGraphSession* _tmp0_; - guint _tmp1_; - PublishingFacebookGraphSession* _tmp2_; -#line 469 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_return_if_fail (PUBLISHING_FACEBOOK_IS_FACEBOOK_PUBLISHER (self)); -#line 470 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp0_ = self->priv->graph_session; -#line 470 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_signal_parse_name ("authenticated", PUBLISHING_FACEBOOK_TYPE_GRAPH_SESSION, &_tmp1_, NULL, FALSE); -#line 470 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_signal_handlers_disconnect_matched (_tmp0_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp1_, 0, NULL, (GCallback) _publishing_facebook_facebook_publisher_on_session_authenticated_publishing_facebook_graph_session_authenticated, self); -#line 472 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - if (!spit_publishing_publisher_is_running (G_TYPE_CHECK_INSTANCE_CAST (self, SPIT_PUBLISHING_TYPE_PUBLISHER, SpitPublishingPublisher))) { -#line 473 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - return; -#line 3852 "FacebookPublishing.c" - } -#line 475 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp2_ = self->priv->graph_session; -#line 475 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _vala_assert (publishing_facebook_graph_session_is_authenticated (_tmp2_), "graph_session.is_authenticated()"); -#line 476 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_debug ("FacebookPublishing.vala:476: EVENT: an authenticated session has becom" \ -"e available."); -#line 478 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - publishing_facebook_facebook_publisher_do_fetch_user_info (self); -#line 3862 "FacebookPublishing.c" -} - - -static void -publishing_facebook_facebook_publisher_on_fetch_user_info_completed (PublishingFacebookFacebookPublisher* self, - PublishingFacebookGraphMessage* message) -{ - guint _tmp0_; - guint _tmp1_; - gchar* _tmp2_; - gchar* _tmp3_; - gchar* _tmp4_; - gchar* _tmp5_; -#line 481 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_return_if_fail (PUBLISHING_FACEBOOK_IS_FACEBOOK_PUBLISHER (self)); -#line 481 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_return_if_fail (PUBLISHING_FACEBOOK_IS_GRAPH_MESSAGE (message)); -#line 482 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_signal_parse_name ("completed", PUBLISHING_FACEBOOK_TYPE_GRAPH_MESSAGE, &_tmp0_, NULL, FALSE); -#line 482 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_signal_handlers_disconnect_matched (message, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp0_, 0, NULL, (GCallback) _publishing_facebook_facebook_publisher_on_fetch_user_info_completed_publishing_facebook_graph_message_completed, self); -#line 483 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_signal_parse_name ("failed", PUBLISHING_FACEBOOK_TYPE_GRAPH_MESSAGE, &_tmp1_, NULL, FALSE); -#line 483 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_signal_handlers_disconnect_matched (message, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp1_, 0, NULL, (GCallback) _publishing_facebook_facebook_publisher_on_fetch_user_info_error_publishing_facebook_graph_message_failed, self); -#line 485 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - if (!spit_publishing_publisher_is_running (G_TYPE_CHECK_INSTANCE_CAST (self, SPIT_PUBLISHING_TYPE_PUBLISHER, SpitPublishingPublisher))) { -#line 486 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - return; -#line 3892 "FacebookPublishing.c" - } -#line 488 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp2_ = publishing_facebook_graph_message_get_response_body (message); -#line 488 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp3_ = _tmp2_; -#line 488 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_debug ("FacebookPublishing.vala:488: EVENT: user info fetch completed; respons" \ -"e = '%s'.", _tmp3_); -#line 488 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _g_free0 (_tmp3_); -#line 490 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp4_ = publishing_facebook_graph_message_get_response_body (message); -#line 490 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp5_ = _tmp4_; -#line 490 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - publishing_facebook_facebook_publisher_do_extract_user_info_from_json (self, _tmp5_); -#line 490 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _g_free0 (_tmp5_); -#line 3910 "FacebookPublishing.c" -} - - -static void -publishing_facebook_facebook_publisher_on_fetch_user_info_error (PublishingFacebookFacebookPublisher* self, - PublishingFacebookGraphMessage* message, - GError* _error_) -{ - guint _tmp0_; - guint _tmp1_; -#line 493 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_return_if_fail (PUBLISHING_FACEBOOK_IS_FACEBOOK_PUBLISHER (self)); -#line 493 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_return_if_fail (PUBLISHING_FACEBOOK_IS_GRAPH_MESSAGE (message)); -#line 495 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_signal_parse_name ("completed", PUBLISHING_FACEBOOK_TYPE_GRAPH_MESSAGE, &_tmp0_, NULL, FALSE); -#line 495 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_signal_handlers_disconnect_matched (message, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp0_, 0, NULL, (GCallback) _publishing_facebook_facebook_publisher_on_fetch_user_info_completed_publishing_facebook_graph_message_completed, self); -#line 496 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_signal_parse_name ("failed", PUBLISHING_FACEBOOK_TYPE_GRAPH_MESSAGE, &_tmp1_, NULL, FALSE); -#line 496 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_signal_handlers_disconnect_matched (message, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp1_, 0, NULL, (GCallback) _publishing_facebook_facebook_publisher_on_fetch_user_info_error_publishing_facebook_graph_message_failed, self); -#line 498 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - if (!spit_publishing_publisher_is_running (G_TYPE_CHECK_INSTANCE_CAST (self, SPIT_PUBLISHING_TYPE_PUBLISHER, SpitPublishingPublisher))) { -#line 499 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - return; -#line 3937 "FacebookPublishing.c" - } -#line 501 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_debug ("FacebookPublishing.vala:501: EVENT: fetching user info generated and e" \ -"rror."); -#line 503 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - publishing_facebook_facebook_publisher_on_generic_error (self, _error_); -#line 3943 "FacebookPublishing.c" -} - - -static void -publishing_facebook_facebook_publisher_on_user_info_extracted (PublishingFacebookFacebookPublisher* self) -{ - const gchar* _tmp0_; - const gchar* _tmp1_; -#line 506 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_return_if_fail (PUBLISHING_FACEBOOK_IS_FACEBOOK_PUBLISHER (self)); -#line 507 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - if (!spit_publishing_publisher_is_running (G_TYPE_CHECK_INSTANCE_CAST (self, SPIT_PUBLISHING_TYPE_PUBLISHER, SpitPublishingPublisher))) { -#line 508 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - return; -#line 3958 "FacebookPublishing.c" - } -#line 510 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp0_ = self->priv->uid; -#line 510 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp1_ = self->priv->username; -#line 510 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_debug ("FacebookPublishing.vala:510: EVENT: user info extracted from JSON resp" \ -"onse: uid = %s; name = %s.", _tmp0_, _tmp1_); -#line 512 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - publishing_facebook_facebook_publisher_do_fetch_album_descriptions (self); -#line 3968 "FacebookPublishing.c" -} - - -static void -publishing_facebook_facebook_publisher_on_fetch_albums_completed (PublishingFacebookFacebookPublisher* self, - PublishingFacebookGraphMessage* message) -{ - guint _tmp0_; - guint _tmp1_; - gchar* _tmp2_; - gchar* _tmp3_; - gchar* _tmp4_; - gchar* _tmp5_; -#line 515 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_return_if_fail (PUBLISHING_FACEBOOK_IS_FACEBOOK_PUBLISHER (self)); -#line 515 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_return_if_fail (PUBLISHING_FACEBOOK_IS_GRAPH_MESSAGE (message)); -#line 516 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_signal_parse_name ("completed", PUBLISHING_FACEBOOK_TYPE_GRAPH_MESSAGE, &_tmp0_, NULL, FALSE); -#line 516 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_signal_handlers_disconnect_matched (message, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp0_, 0, NULL, (GCallback) _publishing_facebook_facebook_publisher_on_fetch_albums_completed_publishing_facebook_graph_message_completed, self); -#line 517 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_signal_parse_name ("failed", PUBLISHING_FACEBOOK_TYPE_GRAPH_MESSAGE, &_tmp1_, NULL, FALSE); -#line 517 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_signal_handlers_disconnect_matched (message, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp1_, 0, NULL, (GCallback) _publishing_facebook_facebook_publisher_on_fetch_albums_error_publishing_facebook_graph_message_failed, self); -#line 519 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - if (!spit_publishing_publisher_is_running (G_TYPE_CHECK_INSTANCE_CAST (self, SPIT_PUBLISHING_TYPE_PUBLISHER, SpitPublishingPublisher))) { -#line 520 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - return; -#line 3998 "FacebookPublishing.c" - } -#line 522 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp2_ = publishing_facebook_graph_message_get_response_body (message); -#line 522 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp3_ = _tmp2_; -#line 522 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_debug ("FacebookPublishing.vala:522: EVENT: album descriptions fetch transacti" \ -"on completed; response = '%s'.", _tmp3_); -#line 522 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _g_free0 (_tmp3_); -#line 525 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp4_ = publishing_facebook_graph_message_get_response_body (message); -#line 525 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp5_ = _tmp4_; -#line 525 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - publishing_facebook_facebook_publisher_do_extract_albums_from_json (self, _tmp5_); -#line 525 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _g_free0 (_tmp5_); -#line 4016 "FacebookPublishing.c" -} - - -static void -publishing_facebook_facebook_publisher_on_fetch_albums_error (PublishingFacebookFacebookPublisher* self, - PublishingFacebookGraphMessage* message, - GError* err) -{ - guint _tmp0_; - guint _tmp1_; -#line 528 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_return_if_fail (PUBLISHING_FACEBOOK_IS_FACEBOOK_PUBLISHER (self)); -#line 528 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_return_if_fail (PUBLISHING_FACEBOOK_IS_GRAPH_MESSAGE (message)); -#line 530 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_signal_parse_name ("completed", PUBLISHING_FACEBOOK_TYPE_GRAPH_MESSAGE, &_tmp0_, NULL, FALSE); -#line 530 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_signal_handlers_disconnect_matched (message, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp0_, 0, NULL, (GCallback) _publishing_facebook_facebook_publisher_on_fetch_albums_completed_publishing_facebook_graph_message_completed, self); -#line 531 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_signal_parse_name ("failed", PUBLISHING_FACEBOOK_TYPE_GRAPH_MESSAGE, &_tmp1_, NULL, FALSE); -#line 531 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_signal_handlers_disconnect_matched (message, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp1_, 0, NULL, (GCallback) _publishing_facebook_facebook_publisher_on_fetch_albums_error_publishing_facebook_graph_message_failed, self); -#line 533 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - if (!spit_publishing_publisher_is_running (G_TYPE_CHECK_INSTANCE_CAST (self, SPIT_PUBLISHING_TYPE_PUBLISHER, SpitPublishingPublisher))) { -#line 534 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - return; -#line 4043 "FacebookPublishing.c" - } -#line 536 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_debug ("FacebookPublishing.vala:536: EVENT: album description fetch attempt ge" \ -"nerated an error."); -#line 538 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - publishing_facebook_facebook_publisher_on_generic_error (self, err); -#line 4049 "FacebookPublishing.c" -} - - -static void -publishing_facebook_facebook_publisher_on_albums_extracted (PublishingFacebookFacebookPublisher* self) -{ - PublishingFacebookPublishingParameters* _tmp0_; - PublishingFacebookAlbum** _tmp1_; - gint _tmp1__length1; -#line 541 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_return_if_fail (PUBLISHING_FACEBOOK_IS_FACEBOOK_PUBLISHER (self)); -#line 542 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - if (!spit_publishing_publisher_is_running (G_TYPE_CHECK_INSTANCE_CAST (self, SPIT_PUBLISHING_TYPE_PUBLISHER, SpitPublishingPublisher))) { -#line 543 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - return; -#line 4065 "FacebookPublishing.c" - } -#line 545 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp0_ = self->priv->publishing_params; -#line 545 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp1_ = _tmp0_->albums; -#line 545 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp1__length1 = _tmp0_->albums_length1; -#line 545 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_debug ("FacebookPublishing.vala:545: EVENT: successfully extracted %d albums f" \ -"rom JSON response", _tmp1__length1); -#line 548 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - publishing_facebook_facebook_publisher_do_show_publishing_options_pane (self); -#line 4077 "FacebookPublishing.c" -} - - -static void -publishing_facebook_facebook_publisher_on_publishing_options_pane_logout (PublishingFacebookFacebookPublisher* self) -{ - PublishingFacebookPublishingOptionsPane* _tmp0_; - guint _tmp1_; - PublishingFacebookPublishingOptionsPane* _tmp2_; - guint _tmp3_; -#line 551 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_return_if_fail (PUBLISHING_FACEBOOK_IS_FACEBOOK_PUBLISHER (self)); -#line 552 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp0_ = self->priv->publishing_options_pane; -#line 552 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_signal_parse_name ("publish", PUBLISHING_FACEBOOK_TYPE_PUBLISHING_OPTIONS_PANE, &_tmp1_, NULL, FALSE); -#line 552 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_signal_handlers_disconnect_matched (_tmp0_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp1_, 0, NULL, (GCallback) _publishing_facebook_facebook_publisher_on_publishing_options_pane_publish_publishing_facebook_publishing_options_pane_publish, self); -#line 553 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp2_ = self->priv->publishing_options_pane; -#line 553 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_signal_parse_name ("logout", PUBLISHING_FACEBOOK_TYPE_PUBLISHING_OPTIONS_PANE, &_tmp3_, NULL, FALSE); -#line 553 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_signal_handlers_disconnect_matched (_tmp2_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp3_, 0, NULL, (GCallback) _publishing_facebook_facebook_publisher_on_publishing_options_pane_logout_publishing_facebook_publishing_options_pane_logout, self); -#line 555 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - if (!spit_publishing_publisher_is_running (G_TYPE_CHECK_INSTANCE_CAST (self, SPIT_PUBLISHING_TYPE_PUBLISHER, SpitPublishingPublisher))) { -#line 556 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - return; -#line 4106 "FacebookPublishing.c" - } -#line 558 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_debug ("FacebookPublishing.vala:558: EVENT: user clicked 'Logout' in publishin" \ -"g options pane."); -#line 560 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - publishing_facebook_facebook_publisher_do_logout (self); -#line 4112 "FacebookPublishing.c" -} - - -static void -publishing_facebook_facebook_publisher_on_publishing_options_pane_publish (PublishingFacebookFacebookPublisher* self, - const gchar* target_album, - const gchar* privacy_setting, - PublishingFacebookResolution resolution, - gboolean strip_metadata) -{ - PublishingFacebookPublishingOptionsPane* _tmp0_; - guint _tmp1_; - PublishingFacebookPublishingOptionsPane* _tmp2_; - guint _tmp3_; - PublishingFacebookPublishingParameters* _tmp4_; - PublishingFacebookPublishingParameters* _tmp5_; - PublishingFacebookPublishingParameters* _tmp6_; - gchar* _tmp7_; -#line 563 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_return_if_fail (PUBLISHING_FACEBOOK_IS_FACEBOOK_PUBLISHER (self)); -#line 563 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_return_if_fail (privacy_setting != NULL); -#line 565 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp0_ = self->priv->publishing_options_pane; -#line 565 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_signal_parse_name ("publish", PUBLISHING_FACEBOOK_TYPE_PUBLISHING_OPTIONS_PANE, &_tmp1_, NULL, FALSE); -#line 565 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_signal_handlers_disconnect_matched (_tmp0_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp1_, 0, NULL, (GCallback) _publishing_facebook_facebook_publisher_on_publishing_options_pane_publish_publishing_facebook_publishing_options_pane_publish, self); -#line 566 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp2_ = self->priv->publishing_options_pane; -#line 566 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_signal_parse_name ("logout", PUBLISHING_FACEBOOK_TYPE_PUBLISHING_OPTIONS_PANE, &_tmp3_, NULL, FALSE); -#line 566 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_signal_handlers_disconnect_matched (_tmp2_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp3_, 0, NULL, (GCallback) _publishing_facebook_facebook_publisher_on_publishing_options_pane_logout_publishing_facebook_publishing_options_pane_logout, self); -#line 568 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - if (!spit_publishing_publisher_is_running (G_TYPE_CHECK_INSTANCE_CAST (self, SPIT_PUBLISHING_TYPE_PUBLISHER, SpitPublishingPublisher))) { -#line 569 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - return; -#line 4151 "FacebookPublishing.c" - } -#line 571 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_debug ("FacebookPublishing.vala:571: EVENT: user clicked 'Publish' in publishi" \ -"ng options pane."); -#line 573 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp4_ = self->priv->publishing_params; -#line 573 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp4_->strip_metadata = strip_metadata; -#line 574 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - publishing_facebook_facebook_publisher_set_persistent_strip_metadata (self, strip_metadata); -#line 575 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp5_ = self->priv->publishing_params; -#line 575 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp5_->resolution = resolution; -#line 576 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - publishing_facebook_facebook_publisher_set_persistent_default_size (self, (gint) resolution); -#line 577 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp6_ = self->priv->publishing_params; -#line 577 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp7_ = g_strdup (privacy_setting); -#line 577 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _g_free0 (_tmp6_->privacy_object); -#line 577 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp6_->privacy_object = _tmp7_; -#line 579 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - if (target_album != NULL) { -#line 4177 "FacebookPublishing.c" - PublishingFacebookPublishingParameters* _tmp8_; - PublishingFacebookPublishingParameters* _tmp9_; - gint _tmp10_; -#line 582 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp8_ = self->priv->publishing_params; -#line 582 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - publishing_facebook_publishing_parameters_set_target_album_by_name (_tmp8_, target_album); -#line 583 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp9_ = self->priv->publishing_params; -#line 583 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp10_ = _tmp9_->target_album; -#line 583 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - if (_tmp10_ != PUBLISHING_FACEBOOK_PUBLISHING_PARAMETERS_UNKNOWN_ALBUM) { -#line 584 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - publishing_facebook_facebook_publisher_do_upload (self); -#line 4193 "FacebookPublishing.c" - } else { - PublishingFacebookPublishingParameters* _tmp11_; - gchar* _tmp12_; -#line 586 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp11_ = self->priv->publishing_params; -#line 586 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp12_ = g_strdup (target_album); -#line 586 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _g_free0 (_tmp11_->new_album_name); -#line 586 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp11_->new_album_name = _tmp12_; -#line 587 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - publishing_facebook_facebook_publisher_do_create_new_album (self); -#line 4207 "FacebookPublishing.c" - } - } else { -#line 591 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - publishing_facebook_facebook_publisher_do_upload (self); -#line 4212 "FacebookPublishing.c" - } -} - - -static void -publishing_facebook_facebook_publisher_on_create_album_completed (PublishingFacebookFacebookPublisher* self, - PublishingFacebookGraphMessage* message) -{ - guint _tmp0_; - guint _tmp1_; - PublishingFacebookPublishingParameters* _tmp2_; - const gchar* _tmp3_; - gchar* _tmp4_; - gchar* _tmp5_; - PublishingFacebookPublishingParameters* _tmp6_; - const gchar* _tmp7_; - gchar* _tmp8_; - gchar* _tmp9_; -#line 595 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_return_if_fail (PUBLISHING_FACEBOOK_IS_FACEBOOK_PUBLISHER (self)); -#line 595 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_return_if_fail (PUBLISHING_FACEBOOK_IS_GRAPH_MESSAGE (message)); -#line 596 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_signal_parse_name ("completed", PUBLISHING_FACEBOOK_TYPE_GRAPH_MESSAGE, &_tmp0_, NULL, FALSE); -#line 596 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_signal_handlers_disconnect_matched (message, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp0_, 0, NULL, (GCallback) _publishing_facebook_facebook_publisher_on_create_album_completed_publishing_facebook_graph_message_completed, self); -#line 597 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_signal_parse_name ("failed", PUBLISHING_FACEBOOK_TYPE_GRAPH_MESSAGE, &_tmp1_, NULL, FALSE); -#line 597 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_signal_handlers_disconnect_matched (message, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp1_, 0, NULL, (GCallback) _publishing_facebook_facebook_publisher_on_create_album_error_publishing_facebook_graph_message_failed, self); -#line 599 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp2_ = self->priv->publishing_params; -#line 599 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp3_ = _tmp2_->new_album_name; -#line 599 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _vala_assert (_tmp3_ != NULL, "publishing_params.new_album_name != null"); -#line 601 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - if (!spit_publishing_publisher_is_running (G_TYPE_CHECK_INSTANCE_CAST (self, SPIT_PUBLISHING_TYPE_PUBLISHER, SpitPublishingPublisher))) { -#line 602 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - return; -#line 4253 "FacebookPublishing.c" - } -#line 604 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp4_ = publishing_facebook_graph_message_get_response_body (message); -#line 604 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp5_ = _tmp4_; -#line 604 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_debug ("FacebookPublishing.vala:604: EVENT: created new album resource on remo" \ -"te host; response body = %s.\n", _tmp5_); -#line 604 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _g_free0 (_tmp5_); -#line 607 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp6_ = self->priv->publishing_params; -#line 607 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp7_ = _tmp6_->new_album_name; -#line 607 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp8_ = publishing_facebook_graph_message_get_response_body (message); -#line 607 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp9_ = _tmp8_; -#line 607 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - publishing_facebook_facebook_publisher_do_add_new_local_album_from_json (self, _tmp7_, _tmp9_); -#line 607 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _g_free0 (_tmp9_); -#line 4275 "FacebookPublishing.c" -} - - -static void -publishing_facebook_facebook_publisher_on_create_album_error (PublishingFacebookFacebookPublisher* self, - PublishingFacebookGraphMessage* message, - GError* err) -{ - guint _tmp0_; - guint _tmp1_; -#line 611 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_return_if_fail (PUBLISHING_FACEBOOK_IS_FACEBOOK_PUBLISHER (self)); -#line 611 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_return_if_fail (PUBLISHING_FACEBOOK_IS_GRAPH_MESSAGE (message)); -#line 612 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_signal_parse_name ("completed", PUBLISHING_FACEBOOK_TYPE_GRAPH_MESSAGE, &_tmp0_, NULL, FALSE); -#line 612 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_signal_handlers_disconnect_matched (message, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp0_, 0, NULL, (GCallback) _publishing_facebook_facebook_publisher_on_create_album_completed_publishing_facebook_graph_message_completed, self); -#line 613 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_signal_parse_name ("failed", PUBLISHING_FACEBOOK_TYPE_GRAPH_MESSAGE, &_tmp1_, NULL, FALSE); -#line 613 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_signal_handlers_disconnect_matched (message, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp1_, 0, NULL, (GCallback) _publishing_facebook_facebook_publisher_on_create_album_error_publishing_facebook_graph_message_failed, self); -#line 615 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - if (!spit_publishing_publisher_is_running (G_TYPE_CHECK_INSTANCE_CAST (self, SPIT_PUBLISHING_TYPE_PUBLISHER, SpitPublishingPublisher))) { -#line 616 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - return; -#line 4302 "FacebookPublishing.c" - } -#line 618 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_debug ("FacebookPublishing.vala:618: EVENT: attempt to create new album genera" \ -"ted an error."); -#line 620 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - publishing_facebook_facebook_publisher_on_generic_error (self, err); -#line 4308 "FacebookPublishing.c" -} - - -static void -publishing_facebook_facebook_publisher_on_upload_status_updated (PublishingFacebookFacebookPublisher* self, - gint file_number, - gdouble completed_fraction) -{ - SpitPublishingProgressCallback _tmp0_; - void* _tmp0__target; - SpitPublishingProgressCallback _tmp1_; - void* _tmp1__target; -#line 623 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_return_if_fail (PUBLISHING_FACEBOOK_IS_FACEBOOK_PUBLISHER (self)); -#line 624 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - if (!spit_publishing_publisher_is_running (G_TYPE_CHECK_INSTANCE_CAST (self, SPIT_PUBLISHING_TYPE_PUBLISHER, SpitPublishingPublisher))) { -#line 625 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - return; -#line 4327 "FacebookPublishing.c" - } -#line 627 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_debug ("FacebookPublishing.vala:627: EVENT: uploader reports upload %.2f perce" \ -"nt complete.", 100.0 * completed_fraction); -#line 629 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp0_ = self->priv->progress_reporter; -#line 629 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp0__target = self->priv->progress_reporter_target; -#line 629 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _vala_assert (_tmp0_ != NULL, "progress_reporter != null"); -#line 631 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp1_ = self->priv->progress_reporter; -#line 631 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp1__target = self->priv->progress_reporter_target; -#line 631 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp1_ (file_number, completed_fraction, _tmp1__target); -#line 4343 "FacebookPublishing.c" -} - - -static void -publishing_facebook_facebook_publisher_on_upload_complete (PublishingFacebookFacebookPublisher* self, - PublishingFacebookUploader* uploader, - gint num_published) -{ - guint _tmp0_; - guint _tmp1_; -#line 634 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_return_if_fail (PUBLISHING_FACEBOOK_IS_FACEBOOK_PUBLISHER (self)); -#line 634 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_return_if_fail (PUBLISHING_FACEBOOK_IS_UPLOADER (uploader)); -#line 635 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_signal_parse_name ("upload-complete", PUBLISHING_FACEBOOK_TYPE_UPLOADER, &_tmp0_, NULL, FALSE); -#line 635 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_signal_handlers_disconnect_matched (uploader, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp0_, 0, NULL, (GCallback) _publishing_facebook_facebook_publisher_on_upload_complete_publishing_facebook_uploader_upload_complete, self); -#line 636 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_signal_parse_name ("upload-error", PUBLISHING_FACEBOOK_TYPE_UPLOADER, &_tmp1_, NULL, FALSE); -#line 636 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_signal_handlers_disconnect_matched (uploader, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp1_, 0, NULL, (GCallback) _publishing_facebook_facebook_publisher_on_upload_error_publishing_facebook_uploader_upload_error, self); -#line 638 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - if (!spit_publishing_publisher_is_running (G_TYPE_CHECK_INSTANCE_CAST (self, SPIT_PUBLISHING_TYPE_PUBLISHER, SpitPublishingPublisher))) { -#line 639 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - return; -#line 4370 "FacebookPublishing.c" - } -#line 641 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_debug ("FacebookPublishing.vala:641: EVENT: uploader reports upload complete; " \ -"%d items published.", num_published); -#line 643 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - publishing_facebook_facebook_publisher_do_show_success_pane (self); -#line 4376 "FacebookPublishing.c" -} - - -static void -publishing_facebook_facebook_publisher_on_upload_error (PublishingFacebookFacebookPublisher* self, - PublishingFacebookUploader* uploader, - GError* err) -{ - guint _tmp0_; - guint _tmp1_; - const gchar* _tmp2_; - SpitPublishingPluginHost* _tmp3_; -#line 646 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_return_if_fail (PUBLISHING_FACEBOOK_IS_FACEBOOK_PUBLISHER (self)); -#line 646 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_return_if_fail (PUBLISHING_FACEBOOK_IS_UPLOADER (uploader)); -#line 647 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_signal_parse_name ("upload-complete", PUBLISHING_FACEBOOK_TYPE_UPLOADER, &_tmp0_, NULL, FALSE); -#line 647 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_signal_handlers_disconnect_matched (uploader, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp0_, 0, NULL, (GCallback) _publishing_facebook_facebook_publisher_on_upload_complete_publishing_facebook_uploader_upload_complete, self); -#line 648 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_signal_parse_name ("upload-error", PUBLISHING_FACEBOOK_TYPE_UPLOADER, &_tmp1_, NULL, FALSE); -#line 648 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_signal_handlers_disconnect_matched (uploader, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp1_, 0, NULL, (GCallback) _publishing_facebook_facebook_publisher_on_upload_error_publishing_facebook_uploader_upload_error, self); -#line 650 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - if (!spit_publishing_publisher_is_running (G_TYPE_CHECK_INSTANCE_CAST (self, SPIT_PUBLISHING_TYPE_PUBLISHER, SpitPublishingPublisher))) { -#line 651 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - return; -#line 4405 "FacebookPublishing.c" - } -#line 653 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp2_ = err->message; -#line 653 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_debug ("FacebookPublishing.vala:653: EVENT: uploader reports upload error = '%" \ -"s'.", _tmp2_); -#line 655 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp3_ = self->priv->host; -#line 655 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - spit_publishing_plugin_host_post_error (_tmp3_, err); -#line 4415 "FacebookPublishing.c" -} - - -static SpitPublishingService* -publishing_facebook_facebook_publisher_real_get_service (SpitPublishingPublisher* base) -{ - PublishingFacebookFacebookPublisher * self; - SpitPublishingService* result = NULL; - SpitPublishingService* _tmp0_; - SpitPublishingService* _tmp1_; -#line 658 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_FACEBOOK_TYPE_FACEBOOK_PUBLISHER, PublishingFacebookFacebookPublisher); -#line 659 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp0_ = self->priv->service; -#line 659 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp1_ = _g_object_ref0 (_tmp0_); -#line 659 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - result = _tmp1_; -#line 659 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - return result; -#line 4436 "FacebookPublishing.c" -} - - -gchar* -publishing_facebook_facebook_publisher_get_service_name (PublishingFacebookFacebookPublisher* self) -{ - gchar* result = NULL; - gchar* _tmp0_; -#line 662 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_return_val_if_fail (PUBLISHING_FACEBOOK_IS_FACEBOOK_PUBLISHER (self), NULL); -#line 663 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp0_ = g_strdup (PUBLISHING_FACEBOOK_SERVICE_NAME); -#line 663 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - result = _tmp0_; -#line 663 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - return result; -#line 4453 "FacebookPublishing.c" -} - - -gchar* -publishing_facebook_facebook_publisher_get_user_visible_name (PublishingFacebookFacebookPublisher* self) -{ - gchar* result = NULL; - gchar* _tmp0_; -#line 666 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_return_val_if_fail (PUBLISHING_FACEBOOK_IS_FACEBOOK_PUBLISHER (self), NULL); -#line 667 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp0_ = g_strdup (PUBLISHING_FACEBOOK_USER_VISIBLE_NAME); -#line 667 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - result = _tmp0_; -#line 667 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - return result; -#line 4470 "FacebookPublishing.c" -} - - -static void -_publishing_facebook_facebook_publisher_on_authenticator_succeeded_spit_publishing_authenticator_authenticated (SpitPublishingAuthenticator* _sender, - gpointer self) -{ -#line 682 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - publishing_facebook_facebook_publisher_on_authenticator_succeeded ((PublishingFacebookFacebookPublisher*) self); -#line 4480 "FacebookPublishing.c" -} - - -static void -_publishing_facebook_facebook_publisher_on_authenticator_failed_spit_publishing_authenticator_authentication_failed (SpitPublishingAuthenticator* _sender, - gpointer self) -{ -#line 683 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - publishing_facebook_facebook_publisher_on_authenticator_failed ((PublishingFacebookFacebookPublisher*) self); -#line 4490 "FacebookPublishing.c" -} - - -static void -publishing_facebook_facebook_publisher_real_start (SpitPublishingPublisher* base) -{ - PublishingFacebookFacebookPublisher * self; - PublishingFacebookPublishingParameters* _tmp0_; - SpitPublishingAuthenticator* _tmp1_; - SpitPublishingAuthenticator* _tmp2_; - SpitPublishingAuthenticator* _tmp3_; -#line 670 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_FACEBOOK_TYPE_FACEBOOK_PUBLISHER, PublishingFacebookFacebookPublisher); -#line 671 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - if (spit_publishing_publisher_is_running (G_TYPE_CHECK_INSTANCE_CAST (self, SPIT_PUBLISHING_TYPE_PUBLISHER, SpitPublishingPublisher))) { -#line 672 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - return; -#line 4508 "FacebookPublishing.c" - } -#line 674 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_debug ("FacebookPublishing.vala:674: FacebookPublisher: starting interaction."); -#line 676 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - self->priv->running = TRUE; -#line 680 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp0_ = publishing_facebook_publishing_parameters_new (); -#line 680 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _publishing_facebook_publishing_parameters_unref0 (self->priv->publishing_params); -#line 680 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - self->priv->publishing_params = _tmp0_; -#line 682 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp1_ = self->priv->authenticator; -#line 682 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_signal_connect_object (_tmp1_, "authenticated", (GCallback) _publishing_facebook_facebook_publisher_on_authenticator_succeeded_spit_publishing_authenticator_authenticated, self, 0); -#line 683 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp2_ = self->priv->authenticator; -#line 683 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_signal_connect_object (_tmp2_, "authentication-failed", (GCallback) _publishing_facebook_facebook_publisher_on_authenticator_failed_spit_publishing_authenticator_authentication_failed, self, 0); -#line 684 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp3_ = self->priv->authenticator; -#line 684 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - spit_publishing_authenticator_authenticate (_tmp3_); -#line 4532 "FacebookPublishing.c" -} - - -static void -publishing_facebook_facebook_publisher_real_stop (SpitPublishingPublisher* base) -{ - PublishingFacebookFacebookPublisher * self; - PublishingFacebookGraphSession* _tmp0_; -#line 687 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_FACEBOOK_TYPE_FACEBOOK_PUBLISHER, PublishingFacebookFacebookPublisher); -#line 688 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_debug ("FacebookPublishing.vala:688: FacebookPublisher: stop( ) invoked."); -#line 690 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp0_ = self->priv->graph_session; -#line 690 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - if (_tmp0_ != NULL) { -#line 4549 "FacebookPublishing.c" - PublishingFacebookGraphSession* _tmp1_; -#line 691 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp1_ = self->priv->graph_session; -#line 691 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - publishing_facebook_graph_session_stop_transactions (_tmp1_); -#line 4555 "FacebookPublishing.c" - } -#line 693 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - self->priv->host = NULL; -#line 694 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - self->priv->running = FALSE; -#line 4561 "FacebookPublishing.c" -} - - -static gboolean -publishing_facebook_facebook_publisher_real_is_running (SpitPublishingPublisher* base) -{ - PublishingFacebookFacebookPublisher * self; - gboolean result = FALSE; - gboolean _tmp0_; -#line 697 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_FACEBOOK_TYPE_FACEBOOK_PUBLISHER, PublishingFacebookFacebookPublisher); -#line 698 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp0_ = self->priv->running; -#line 698 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - result = _tmp0_; -#line 698 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - return result; -#line 4579 "FacebookPublishing.c" -} - - -static void -publishing_facebook_facebook_publisher_class_init (PublishingFacebookFacebookPublisherClass * klass) -{ -#line 168 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - publishing_facebook_facebook_publisher_parent_class = g_type_class_peek_parent (klass); -#line 168 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_type_class_add_private (klass, sizeof (PublishingFacebookFacebookPublisherPrivate)); -#line 168 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - G_OBJECT_CLASS (klass)->finalize = publishing_facebook_facebook_publisher_finalize; -#line 4592 "FacebookPublishing.c" -} - - -static void -publishing_facebook_facebook_publisher_spit_publishing_publisher_interface_init (SpitPublishingPublisherIface * iface) -{ -#line 168 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - publishing_facebook_facebook_publisher_spit_publishing_publisher_parent_iface = g_type_interface_peek_parent (iface); -#line 168 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - iface->get_service = (SpitPublishingService* (*) (SpitPublishingPublisher *)) publishing_facebook_facebook_publisher_real_get_service; -#line 168 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - iface->start = (void (*) (SpitPublishingPublisher *)) publishing_facebook_facebook_publisher_real_start; -#line 168 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - iface->stop = (void (*) (SpitPublishingPublisher *)) publishing_facebook_facebook_publisher_real_stop; -#line 168 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - iface->is_running = (gboolean (*) (SpitPublishingPublisher *)) publishing_facebook_facebook_publisher_real_is_running; -#line 4609 "FacebookPublishing.c" -} - - -static void -publishing_facebook_facebook_publisher_instance_init (PublishingFacebookFacebookPublisher * self) -{ -#line 168 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - self->priv = PUBLISHING_FACEBOOK_FACEBOOK_PUBLISHER_GET_PRIVATE (self); -#line 170 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - self->priv->host = NULL; -#line 171 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - self->priv->progress_reporter = NULL; -#line 171 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - self->priv->progress_reporter_target = self; -#line 171 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - self->priv->progress_reporter_target_destroy_notify = NULL; -#line 172 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - self->priv->service = NULL; -#line 173 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - self->priv->authenticator = NULL; -#line 174 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - self->priv->running = FALSE; -#line 176 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - self->priv->publishing_options_pane = NULL; -#line 177 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - self->priv->uploader = NULL; -#line 178 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - self->priv->uid = NULL; -#line 179 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - self->priv->username = NULL; -#line 4640 "FacebookPublishing.c" -} - - -static void -publishing_facebook_facebook_publisher_finalize (GObject * obj) -{ - PublishingFacebookFacebookPublisher * self; -#line 168 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, PUBLISHING_FACEBOOK_TYPE_FACEBOOK_PUBLISHER, PublishingFacebookFacebookPublisher); -#line 169 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _publishing_facebook_publishing_parameters_unref0 (self->priv->publishing_params); -#line 171 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - (self->priv->progress_reporter_target_destroy_notify == NULL) ? NULL : (self->priv->progress_reporter_target_destroy_notify (self->priv->progress_reporter_target), NULL); -#line 171 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - self->priv->progress_reporter = NULL; -#line 171 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - self->priv->progress_reporter_target = NULL; -#line 171 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - self->priv->progress_reporter_target_destroy_notify = NULL; -#line 173 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _g_object_unref0 (self->priv->authenticator); -#line 175 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _publishing_facebook_graph_session_unref0 (self->priv->graph_session); -#line 176 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _g_object_unref0 (self->priv->publishing_options_pane); -#line 177 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _publishing_facebook_uploader_unref0 (self->priv->uploader); -#line 178 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _g_free0 (self->priv->uid); -#line 179 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _g_free0 (self->priv->username); -#line 168 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - G_OBJECT_CLASS (publishing_facebook_facebook_publisher_parent_class)->finalize (obj); -#line 4674 "FacebookPublishing.c" -} - - -GType -publishing_facebook_facebook_publisher_get_type (void) -{ - static volatile gsize publishing_facebook_facebook_publisher_type_id__volatile = 0; - if (g_once_init_enter (&publishing_facebook_facebook_publisher_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (PublishingFacebookFacebookPublisherClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) publishing_facebook_facebook_publisher_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PublishingFacebookFacebookPublisher), 0, (GInstanceInitFunc) publishing_facebook_facebook_publisher_instance_init, NULL }; - static const GInterfaceInfo spit_publishing_publisher_info = { (GInterfaceInitFunc) publishing_facebook_facebook_publisher_spit_publishing_publisher_interface_init, (GInterfaceFinalizeFunc) NULL, NULL}; - GType publishing_facebook_facebook_publisher_type_id; - publishing_facebook_facebook_publisher_type_id = g_type_register_static (G_TYPE_OBJECT, "PublishingFacebookFacebookPublisher", &g_define_type_info, 0); - g_type_add_interface_static (publishing_facebook_facebook_publisher_type_id, SPIT_PUBLISHING_TYPE_PUBLISHER, &spit_publishing_publisher_info); - g_once_init_leave (&publishing_facebook_facebook_publisher_type_id__volatile, publishing_facebook_facebook_publisher_type_id); - } - return publishing_facebook_facebook_publisher_type_id__volatile; -} - - -static PublishingFacebookAlbum** -_vala_array_dup2 (PublishingFacebookAlbum** self, - int length) -{ - PublishingFacebookAlbum** result; - int i; -#line 751 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - result = g_new0 (PublishingFacebookAlbum*, length + 1); -#line 751 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - for (i = 0; i < length; i++) { -#line 4704 "FacebookPublishing.c" - PublishingFacebookAlbum* _tmp0_; -#line 751 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp0_ = _publishing_facebook_album_ref0 (self[i]); -#line 751 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - result[i] = _tmp0_; -#line 4710 "FacebookPublishing.c" - } -#line 751 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - return result; -#line 4714 "FacebookPublishing.c" -} - - -static void -_publishing_facebook_publishing_options_pane_on_create_new_toggled_gtk_button_clicked (GtkButton* _sender, - gpointer self) -{ -#line 777 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - publishing_facebook_publishing_options_pane_on_create_new_toggled ((PublishingFacebookPublishingOptionsPane*) self); -#line 4724 "FacebookPublishing.c" -} - - -static void -_publishing_facebook_publishing_options_pane_on_use_existing_toggled_gtk_button_clicked (GtkButton* _sender, - gpointer self) -{ -#line 778 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - publishing_facebook_publishing_options_pane_on_use_existing_toggled ((PublishingFacebookPublishingOptionsPane*) self); -#line 4734 "FacebookPublishing.c" -} - - -static void -_publishing_facebook_publishing_options_pane_on_publish_button_clicked_gtk_button_clicked (GtkButton* _sender, - gpointer self) -{ -#line 789 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - publishing_facebook_publishing_options_pane_on_publish_button_clicked ((PublishingFacebookPublishingOptionsPane*) self); -#line 4744 "FacebookPublishing.c" -} - - -static void -_publishing_facebook_publishing_options_pane_on_logout_button_clicked_gtk_button_clicked (GtkButton* _sender, - gpointer self) -{ -#line 790 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - publishing_facebook_publishing_options_pane_on_logout_button_clicked ((PublishingFacebookPublishingOptionsPane*) self); -#line 4754 "FacebookPublishing.c" -} - - -static void -_publishing_facebook_publishing_options_pane_on_size_changed_gtk_combo_box_changed (GtkComboBox* _sender, - gpointer self) -{ -#line 794 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - publishing_facebook_publishing_options_pane_on_size_changed ((PublishingFacebookPublishingOptionsPane*) self); -#line 4764 "FacebookPublishing.c" -} - - -PublishingFacebookPublishingOptionsPane* -publishing_facebook_publishing_options_pane_construct (GType object_type, - const gchar* username, - PublishingFacebookAlbum** albums, - int albums_length1, - SpitPublishingPublisherMediaType media_type, - PublishingFacebookFacebookPublisher* publisher, - GtkBuilder* builder, - gboolean strip_metadata, - gboolean can_logout) -{ - PublishingFacebookPublishingOptionsPane * self = NULL; - GtkBuilder* _tmp0_; - GSList* _tmp1_; - GSList* _tmp2_; - PublishingFacebookAlbum** _tmp3_; - gint _tmp3__length1; - gint _tmp4_; - PublishingFacebookPublishingOptionsPanePrivacyDescription** _tmp5_; - gint _tmp6_; - PublishingFacebookResolution* _tmp7_; - PublishingFacebookFacebookPublisher* _tmp8_; - GObject* _tmp9_; - GtkBox* _tmp10_; - GtkBox* _tmp11_; - GtkBuilder* _tmp12_; - GObject* _tmp13_; - GtkRadioButton* _tmp14_; - GtkBuilder* _tmp15_; - GObject* _tmp16_; - GtkRadioButton* _tmp17_; - GtkBuilder* _tmp18_; - GObject* _tmp19_; - GtkComboBoxText* _tmp20_; - GtkBuilder* _tmp21_; - GObject* _tmp22_; - GtkComboBoxText* _tmp23_; - GtkBuilder* _tmp24_; - GObject* _tmp25_; - GtkButton* _tmp26_; - GtkBuilder* _tmp27_; - GObject* _tmp28_; - GtkButton* _tmp29_; - GtkBuilder* _tmp34_; - GObject* _tmp35_; - GtkEntry* _tmp36_; - GtkBuilder* _tmp37_; - GObject* _tmp38_; - GtkComboBoxText* _tmp39_; - GtkBuilder* _tmp40_; - GObject* _tmp41_; - GtkLabel* _tmp42_; - GtkBuilder* _tmp43_; - GObject* _tmp44_; - GtkCheckButton* _tmp45_; - GtkRadioButton* _tmp46_; - GtkRadioButton* _tmp47_; - gchar* label_text = NULL; - gchar* _tmp48_; - GtkLabel* _tmp51_; - const gchar* _tmp52_; - GtkCheckButton* _tmp53_; - GtkComboBoxText* _tmp54_; - GtkButton* _tmp55_; - GtkButton* _tmp56_; - GtkComboBoxText* _tmp57_; - GtkComboBoxText* _tmp58_; - gboolean _tmp59_ = FALSE; - gboolean _tmp60_ = FALSE; - GtkRadioButton* _tmp61_; - GtkComboBoxText* _tmp65_; -#line 743 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_return_val_if_fail (username != NULL, NULL); -#line 743 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_return_val_if_fail (PUBLISHING_FACEBOOK_IS_FACEBOOK_PUBLISHER (publisher), NULL); -#line 743 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_return_val_if_fail (GTK_IS_BUILDER (builder), NULL); -#line 743 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - self = (PublishingFacebookPublishingOptionsPane*) g_object_new (object_type, NULL); -#line 747 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp0_ = _g_object_ref0 (builder); -#line 747 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _g_object_unref0 (self->priv->builder); -#line 747 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - self->priv->builder = _tmp0_; -#line 748 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _vala_assert (builder != NULL, "builder != null"); -#line 749 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp1_ = gtk_builder_get_objects (builder); -#line 749 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp2_ = _tmp1_; -#line 749 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _vala_assert (g_slist_length (_tmp2_) > ((guint) 0), "builder.get_objects().length() > 0"); -#line 749 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _g_slist_free0 (_tmp2_); -#line 751 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp3_ = (albums != NULL) ? _vala_array_dup2 (albums, albums_length1) : ((gpointer) albums); -#line 751 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp3__length1 = albums_length1; -#line 751 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - self->priv->albums = (_vala_array_free (self->priv->albums, self->priv->albums_length1, (GDestroyNotify) publishing_facebook_album_unref), NULL); -#line 751 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - self->priv->albums = _tmp3_; -#line 751 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - self->priv->albums_length1 = _tmp3__length1; -#line 751 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - self->priv->_albums_size_ = self->priv->albums_length1; -#line 752 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp5_ = publishing_facebook_publishing_options_pane_create_privacy_descriptions (self, &_tmp4_); -#line 752 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - self->priv->privacy_descriptions = (_vala_array_free (self->priv->privacy_descriptions, self->priv->privacy_descriptions_length1, (GDestroyNotify) publishing_facebook_publishing_options_pane_privacy_description_unref), NULL); -#line 752 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - self->priv->privacy_descriptions = _tmp5_; -#line 752 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - self->priv->privacy_descriptions_length1 = _tmp4_; -#line 752 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - self->priv->_privacy_descriptions_size_ = self->priv->privacy_descriptions_length1; -#line 754 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp7_ = publishing_facebook_publishing_options_pane_create_resolution_list (self, &_tmp6_); -#line 754 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - self->priv->possible_resolutions = (g_free (self->priv->possible_resolutions), NULL); -#line 754 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - self->priv->possible_resolutions = _tmp7_; -#line 754 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - self->priv->possible_resolutions_length1 = _tmp6_; -#line 754 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - self->priv->_possible_resolutions_size_ = self->priv->possible_resolutions_length1; -#line 755 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp8_ = _g_object_ref0 (publisher); -#line 755 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _g_object_unref0 (self->priv->publisher); -#line 755 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - self->priv->publisher = _tmp8_; -#line 758 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - self->priv->media_type = media_type; -#line 760 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp9_ = gtk_builder_get_object (builder, "facebook_pane_box"); -#line 760 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp10_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, gtk_box_get_type (), GtkBox)); -#line 760 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _g_object_unref0 (self->priv->pane_widget); -#line 760 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - self->priv->pane_widget = _tmp10_; -#line 761 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp11_ = self->priv->pane_widget; -#line 761 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - gtk_container_set_border_width (G_TYPE_CHECK_INSTANCE_CAST (_tmp11_, gtk_container_get_type (), GtkContainer), (guint) 16); -#line 763 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp12_ = self->priv->builder; -#line 763 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp13_ = gtk_builder_get_object (_tmp12_, "use_existing_radio"); -#line 763 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp14_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp13_, gtk_radio_button_get_type (), GtkRadioButton)); -#line 763 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _g_object_unref0 (self->priv->use_existing_radio); -#line 763 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - self->priv->use_existing_radio = _tmp14_; -#line 764 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp15_ = self->priv->builder; -#line 764 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp16_ = gtk_builder_get_object (_tmp15_, "create_new_radio"); -#line 764 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp17_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp16_, gtk_radio_button_get_type (), GtkRadioButton)); -#line 764 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _g_object_unref0 (self->priv->create_new_radio); -#line 764 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - self->priv->create_new_radio = _tmp17_; -#line 765 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp18_ = self->priv->builder; -#line 765 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp19_ = gtk_builder_get_object (_tmp18_, "existing_albums_combo"); -#line 765 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp20_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp19_, gtk_combo_box_text_get_type (), GtkComboBoxText)); -#line 765 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _g_object_unref0 (self->priv->existing_albums_combo); -#line 765 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - self->priv->existing_albums_combo = _tmp20_; -#line 766 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp21_ = self->priv->builder; -#line 766 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp22_ = gtk_builder_get_object (_tmp21_, "visibility_combo"); -#line 766 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp23_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp22_, gtk_combo_box_text_get_type (), GtkComboBoxText)); -#line 766 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _g_object_unref0 (self->priv->visibility_combo); -#line 766 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - self->priv->visibility_combo = _tmp23_; -#line 767 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp24_ = self->priv->builder; -#line 767 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp25_ = gtk_builder_get_object (_tmp24_, "publish_button"); -#line 767 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp26_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp25_, gtk_button_get_type (), GtkButton)); -#line 767 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _g_object_unref0 (self->priv->publish_button); -#line 767 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - self->priv->publish_button = _tmp26_; -#line 768 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp27_ = self->priv->builder; -#line 768 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp28_ = gtk_builder_get_object (_tmp27_, "logout_button"); -#line 768 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp29_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp28_, gtk_button_get_type (), GtkButton)); -#line 768 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _g_object_unref0 (self->priv->logout_button); -#line 768 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - self->priv->logout_button = _tmp29_; -#line 769 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - if (!can_logout) { -#line 4977 "FacebookPublishing.c" - GtkButton* _tmp30_; - GtkContainer* _tmp31_; - GtkContainer* _tmp32_; - GtkButton* _tmp33_; -#line 770 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp30_ = self->priv->logout_button; -#line 770 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp31_ = gtk_widget_get_parent (G_TYPE_CHECK_INSTANCE_CAST (_tmp30_, gtk_widget_get_type (), GtkWidget)); -#line 770 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp32_ = _tmp31_; -#line 770 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp33_ = self->priv->logout_button; -#line 770 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - gtk_container_remove (_tmp32_, G_TYPE_CHECK_INSTANCE_CAST (_tmp33_, gtk_widget_get_type (), GtkWidget)); -#line 4992 "FacebookPublishing.c" - } -#line 772 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp34_ = self->priv->builder; -#line 772 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp35_ = gtk_builder_get_object (_tmp34_, "new_album_entry"); -#line 772 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp36_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp35_, gtk_entry_get_type (), GtkEntry)); -#line 772 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _g_object_unref0 (self->priv->new_album_entry); -#line 772 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - self->priv->new_album_entry = _tmp36_; -#line 773 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp37_ = self->priv->builder; -#line 773 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp38_ = gtk_builder_get_object (_tmp37_, "resolution_combo"); -#line 773 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp39_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp38_, gtk_combo_box_text_get_type (), GtkComboBoxText)); -#line 773 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _g_object_unref0 (self->priv->resolution_combo); -#line 773 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - self->priv->resolution_combo = _tmp39_; -#line 774 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp40_ = self->priv->builder; -#line 774 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp41_ = gtk_builder_get_object (_tmp40_, "how_to_label"); -#line 774 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp42_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp41_, gtk_label_get_type (), GtkLabel)); -#line 774 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _g_object_unref0 (self->priv->how_to_label); -#line 774 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - self->priv->how_to_label = _tmp42_; -#line 775 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp43_ = self->priv->builder; -#line 775 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp44_ = gtk_builder_get_object (_tmp43_, "strip_metadata_check"); -#line 775 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp45_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp44_, gtk_check_button_get_type (), GtkCheckButton)); -#line 775 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _g_object_unref0 (self->priv->strip_metadata_check); -#line 775 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - self->priv->strip_metadata_check = _tmp45_; -#line 777 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp46_ = self->priv->create_new_radio; -#line 777 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp46_, gtk_button_get_type (), GtkButton), "clicked", (GCallback) _publishing_facebook_publishing_options_pane_on_create_new_toggled_gtk_button_clicked, self, 0); -#line 778 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp47_ = self->priv->use_existing_radio; -#line 778 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp47_, gtk_button_get_type (), GtkButton), "clicked", (GCallback) _publishing_facebook_publishing_options_pane_on_use_existing_toggled_gtk_button_clicked, self, 0); -#line 780 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp48_ = g_strdup_printf (PUBLISHING_FACEBOOK_PUBLISHING_OPTIONS_PANE_HEADER_LABEL_TEXT, username); -#line 780 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - label_text = _tmp48_; -#line 781 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - if ((media_type & SPIT_PUBLISHING_PUBLISHER_MEDIA_TYPE_PHOTO) != 0) { -#line 5048 "FacebookPublishing.c" - const gchar* _tmp49_; - gchar* _tmp50_; -#line 782 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp49_ = label_text; -#line 782 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp50_ = g_strconcat (_tmp49_, PUBLISHING_FACEBOOK_PUBLISHING_OPTIONS_PANE_PHOTOS_LABEL_TEXT, NULL); -#line 782 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _g_free0 (label_text); -#line 782 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - label_text = _tmp50_; -#line 5059 "FacebookPublishing.c" - } -#line 783 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp51_ = self->priv->how_to_label; -#line 783 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp52_ = label_text; -#line 783 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - gtk_label_set_label (_tmp51_, _tmp52_); -#line 784 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp53_ = self->priv->strip_metadata_check; -#line 784 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - gtk_toggle_button_set_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp53_, gtk_toggle_button_get_type (), GtkToggleButton), strip_metadata); -#line 786 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - publishing_facebook_publishing_options_pane_setup_visibility_combo (self); -#line 787 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp54_ = self->priv->visibility_combo; -#line 787 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - gtk_combo_box_set_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp54_, gtk_combo_box_get_type (), GtkComboBox), 0); -#line 789 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp55_ = self->priv->publish_button; -#line 789 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_signal_connect_object (_tmp55_, "clicked", (GCallback) _publishing_facebook_publishing_options_pane_on_publish_button_clicked_gtk_button_clicked, self, 0); -#line 790 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp56_ = self->priv->logout_button; -#line 790 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_signal_connect_object (_tmp56_, "clicked", (GCallback) _publishing_facebook_publishing_options_pane_on_logout_button_clicked_gtk_button_clicked, self, 0); -#line 792 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - publishing_facebook_publishing_options_pane_setup_resolution_combo (self); -#line 793 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp57_ = self->priv->resolution_combo; -#line 793 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - gtk_combo_box_set_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp57_, gtk_combo_box_get_type (), GtkComboBox), publishing_facebook_facebook_publisher_get_persistent_default_size (publisher)); -#line 794 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp58_ = self->priv->resolution_combo; -#line 794 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp58_, gtk_combo_box_get_type (), GtkComboBox), "changed", (GCallback) _publishing_facebook_publishing_options_pane_on_size_changed_gtk_combo_box_changed, self, 0); -#line 800 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp61_ = self->priv->create_new_radio; -#line 800 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - if (_tmp61_ != NULL) { -#line 5099 "FacebookPublishing.c" - GtkRadioButton* _tmp62_; - gboolean _tmp63_; - gboolean _tmp64_; -#line 800 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp62_ = self->priv->create_new_radio; -#line 800 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp63_ = gtk_toggle_button_get_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp62_, gtk_toggle_button_get_type (), GtkToggleButton)); -#line 800 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp64_ = _tmp63_; -#line 800 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp60_ = _tmp64_; -#line 5111 "FacebookPublishing.c" - } else { -#line 800 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp60_ = FALSE; -#line 5115 "FacebookPublishing.c" - } -#line 800 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - if (_tmp60_) { -#line 800 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp59_ = TRUE; -#line 5121 "FacebookPublishing.c" - } else { -#line 801 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp59_ = (media_type & SPIT_PUBLISHING_PUBLISHER_MEDIA_TYPE_VIDEO) != 0; -#line 5125 "FacebookPublishing.c" - } -#line 799 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp65_ = self->priv->visibility_combo; -#line 799 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - gtk_widget_set_sensitive (G_TYPE_CHECK_INSTANCE_CAST (_tmp65_, gtk_widget_get_type (), GtkWidget), _tmp59_); -#line 804 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - if (media_type == SPIT_PUBLISHING_PUBLISHER_MEDIA_TYPE_VIDEO) { -#line 5133 "FacebookPublishing.c" - GtkCheckButton* _tmp66_; - GtkCheckButton* _tmp67_; - GtkComboBoxText* _tmp68_; - GtkRadioButton* _tmp69_; - GtkRadioButton* _tmp70_; - GtkComboBoxText* _tmp71_; - GtkEntry* _tmp72_; -#line 805 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp66_ = self->priv->strip_metadata_check; -#line 805 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - gtk_toggle_button_set_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp66_, gtk_toggle_button_get_type (), GtkToggleButton), FALSE); -#line 806 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp67_ = self->priv->strip_metadata_check; -#line 806 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - gtk_widget_set_sensitive (G_TYPE_CHECK_INSTANCE_CAST (_tmp67_, gtk_widget_get_type (), GtkWidget), FALSE); -#line 807 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp68_ = self->priv->resolution_combo; -#line 807 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - gtk_widget_set_sensitive (G_TYPE_CHECK_INSTANCE_CAST (_tmp68_, gtk_widget_get_type (), GtkWidget), FALSE); -#line 808 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp69_ = self->priv->use_existing_radio; -#line 808 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - gtk_widget_set_sensitive (G_TYPE_CHECK_INSTANCE_CAST (_tmp69_, gtk_widget_get_type (), GtkWidget), FALSE); -#line 809 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp70_ = self->priv->create_new_radio; -#line 809 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - gtk_widget_set_sensitive (G_TYPE_CHECK_INSTANCE_CAST (_tmp70_, gtk_widget_get_type (), GtkWidget), FALSE); -#line 810 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp71_ = self->priv->existing_albums_combo; -#line 810 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - gtk_widget_set_sensitive (G_TYPE_CHECK_INSTANCE_CAST (_tmp71_, gtk_widget_get_type (), GtkWidget), FALSE); -#line 811 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp72_ = self->priv->new_album_entry; -#line 811 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - gtk_widget_set_sensitive (G_TYPE_CHECK_INSTANCE_CAST (_tmp72_, gtk_widget_get_type (), GtkWidget), FALSE); -#line 5169 "FacebookPublishing.c" - } -#line 743 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _g_free0 (label_text); -#line 743 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - return self; -#line 5175 "FacebookPublishing.c" -} - - -PublishingFacebookPublishingOptionsPane* -publishing_facebook_publishing_options_pane_new (const gchar* username, - PublishingFacebookAlbum** albums, - int albums_length1, - SpitPublishingPublisherMediaType media_type, - PublishingFacebookFacebookPublisher* publisher, - GtkBuilder* builder, - gboolean strip_metadata, - gboolean can_logout) -{ -#line 743 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - return publishing_facebook_publishing_options_pane_construct (PUBLISHING_FACEBOOK_TYPE_PUBLISHING_OPTIONS_PANE, username, albums, albums_length1, media_type, publisher, builder, strip_metadata, can_logout); -#line 5191 "FacebookPublishing.c" -} - - -static gboolean -publishing_facebook_publishing_options_pane_publishing_photos (PublishingFacebookPublishingOptionsPane* self) -{ - gboolean result = FALSE; - SpitPublishingPublisherMediaType _tmp0_; -#line 815 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_return_val_if_fail (PUBLISHING_FACEBOOK_IS_PUBLISHING_OPTIONS_PANE (self), FALSE); -#line 816 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp0_ = self->priv->media_type; -#line 816 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - result = (_tmp0_ & SPIT_PUBLISHING_PUBLISHER_MEDIA_TYPE_PHOTO) != 0; -#line 816 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - return result; -#line 5208 "FacebookPublishing.c" -} - - -static gpointer -_publishing_facebook_publishing_options_pane_privacy_description_ref0 (gpointer self) -{ -#line 820 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - return self ? publishing_facebook_publishing_options_pane_privacy_description_ref (self) : NULL; -#line 5217 "FacebookPublishing.c" -} - - -static void -publishing_facebook_publishing_options_pane_setup_visibility_combo (PublishingFacebookPublishingOptionsPane* self) -{ - PublishingFacebookPublishingOptionsPanePrivacyDescription** _tmp0_; - gint _tmp0__length1; -#line 819 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_return_if_fail (PUBLISHING_FACEBOOK_IS_PUBLISHING_OPTIONS_PANE (self)); -#line 820 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp0_ = self->priv->privacy_descriptions; -#line 820 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp0__length1 = self->priv->privacy_descriptions_length1; -#line 5232 "FacebookPublishing.c" - { - PublishingFacebookPublishingOptionsPanePrivacyDescription** p_collection = NULL; - gint p_collection_length1 = 0; - gint _p_collection_size_ = 0; - gint p_it = 0; -#line 820 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - p_collection = _tmp0_; -#line 820 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - p_collection_length1 = _tmp0__length1; -#line 820 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - for (p_it = 0; p_it < _tmp0__length1; p_it = p_it + 1) { -#line 5244 "FacebookPublishing.c" - PublishingFacebookPublishingOptionsPanePrivacyDescription* _tmp1_; - PublishingFacebookPublishingOptionsPanePrivacyDescription* p = NULL; -#line 820 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp1_ = _publishing_facebook_publishing_options_pane_privacy_description_ref0 (p_collection[p_it]); -#line 820 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - p = _tmp1_; -#line 5251 "FacebookPublishing.c" - { - GtkComboBoxText* _tmp2_; - PublishingFacebookPublishingOptionsPanePrivacyDescription* _tmp3_; - const gchar* _tmp4_; -#line 821 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp2_ = self->priv->visibility_combo; -#line 821 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp3_ = p; -#line 821 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp4_ = _tmp3_->description; -#line 821 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - gtk_combo_box_text_append_text (_tmp2_, _tmp4_); -#line 820 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _publishing_facebook_publishing_options_pane_privacy_description_unref0 (p); -#line 5266 "FacebookPublishing.c" - } - } - } -} - - -static void -publishing_facebook_publishing_options_pane_setup_resolution_combo (PublishingFacebookPublishingOptionsPane* self) -{ - PublishingFacebookResolution* _tmp0_; - gint _tmp0__length1; -#line 824 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_return_if_fail (PUBLISHING_FACEBOOK_IS_PUBLISHING_OPTIONS_PANE (self)); -#line 825 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp0_ = self->priv->possible_resolutions; -#line 825 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp0__length1 = self->priv->possible_resolutions_length1; -#line 5284 "FacebookPublishing.c" - { - PublishingFacebookResolution* res_collection = NULL; - gint res_collection_length1 = 0; - gint _res_collection_size_ = 0; - gint res_it = 0; -#line 825 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - res_collection = _tmp0_; -#line 825 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - res_collection_length1 = _tmp0__length1; -#line 825 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - for (res_it = 0; res_it < _tmp0__length1; res_it = res_it + 1) { -#line 5296 "FacebookPublishing.c" - PublishingFacebookResolution res = 0; -#line 825 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - res = res_collection[res_it]; -#line 5300 "FacebookPublishing.c" - { - GtkComboBoxText* _tmp1_; - PublishingFacebookResolution _tmp2_; - gchar* _tmp3_; - gchar* _tmp4_; -#line 826 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp1_ = self->priv->resolution_combo; -#line 826 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp2_ = res; -#line 826 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp3_ = publishing_facebook_resolution_get_name (_tmp2_); -#line 826 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp4_ = _tmp3_; -#line 826 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - gtk_combo_box_text_append_text (_tmp1_, _tmp4_); -#line 826 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _g_free0 (_tmp4_); -#line 5318 "FacebookPublishing.c" - } - } - } -} - - -static void -publishing_facebook_publishing_options_pane_on_use_existing_toggled (PublishingFacebookPublishingOptionsPane* self) -{ - GtkRadioButton* _tmp0_; - gboolean _tmp1_; - gboolean _tmp2_; -#line 829 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_return_if_fail (PUBLISHING_FACEBOOK_IS_PUBLISHING_OPTIONS_PANE (self)); -#line 830 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp0_ = self->priv->use_existing_radio; -#line 830 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp1_ = gtk_toggle_button_get_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, gtk_toggle_button_get_type (), GtkToggleButton)); -#line 830 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp2_ = _tmp1_; -#line 830 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - if (_tmp2_) { -#line 5341 "FacebookPublishing.c" - GtkComboBoxText* _tmp3_; - GtkEntry* _tmp4_; - GtkComboBoxText* _tmp5_; - SpitPublishingPublisherMediaType _tmp6_; - GtkComboBoxText* _tmp7_; -#line 831 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp3_ = self->priv->existing_albums_combo; -#line 831 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - gtk_widget_set_sensitive (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, gtk_widget_get_type (), GtkWidget), TRUE); -#line 832 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp4_ = self->priv->new_album_entry; -#line 832 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - gtk_widget_set_sensitive (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, gtk_widget_get_type (), GtkWidget), FALSE); -#line 837 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp5_ = self->priv->visibility_combo; -#line 837 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp6_ = self->priv->media_type; -#line 837 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - gtk_widget_set_sensitive (G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, gtk_widget_get_type (), GtkWidget), (_tmp6_ & SPIT_PUBLISHING_PUBLISHER_MEDIA_TYPE_VIDEO) != 0); -#line 839 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp7_ = self->priv->existing_albums_combo; -#line 839 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - gtk_widget_grab_focus (G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, gtk_widget_get_type (), GtkWidget)); -#line 5365 "FacebookPublishing.c" - } -} - - -static void -publishing_facebook_publishing_options_pane_on_create_new_toggled (PublishingFacebookPublishingOptionsPane* self) -{ - GtkRadioButton* _tmp0_; - gboolean _tmp1_; - gboolean _tmp2_; -#line 843 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_return_if_fail (PUBLISHING_FACEBOOK_IS_PUBLISHING_OPTIONS_PANE (self)); -#line 844 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp0_ = self->priv->create_new_radio; -#line 844 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp1_ = gtk_toggle_button_get_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, gtk_toggle_button_get_type (), GtkToggleButton)); -#line 844 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp2_ = _tmp1_; -#line 844 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - if (_tmp2_) { -#line 5386 "FacebookPublishing.c" - GtkComboBoxText* _tmp3_; - GtkEntry* _tmp4_; - GtkEntry* _tmp5_; - GtkComboBoxText* _tmp6_; -#line 845 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp3_ = self->priv->existing_albums_combo; -#line 845 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - gtk_widget_set_sensitive (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, gtk_widget_get_type (), GtkWidget), FALSE); -#line 846 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp4_ = self->priv->new_album_entry; -#line 846 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - gtk_widget_set_sensitive (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, gtk_widget_get_type (), GtkWidget), TRUE); -#line 847 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp5_ = self->priv->new_album_entry; -#line 847 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - gtk_widget_grab_focus (G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, gtk_widget_get_type (), GtkWidget)); -#line 851 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp6_ = self->priv->visibility_combo; -#line 851 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - gtk_widget_set_sensitive (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, gtk_widget_get_type (), GtkWidget), TRUE); -#line 5407 "FacebookPublishing.c" - } -} - - -static void -publishing_facebook_publishing_options_pane_on_size_changed (PublishingFacebookPublishingOptionsPane* self) -{ - PublishingFacebookFacebookPublisher* _tmp0_; - GtkComboBoxText* _tmp1_; -#line 855 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_return_if_fail (PUBLISHING_FACEBOOK_IS_PUBLISHING_OPTIONS_PANE (self)); -#line 856 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp0_ = self->priv->publisher; -#line 856 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp1_ = self->priv->resolution_combo; -#line 856 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - publishing_facebook_facebook_publisher_set_persistent_default_size (_tmp0_, gtk_combo_box_get_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, gtk_combo_box_get_type (), GtkComboBox))); -#line 5425 "FacebookPublishing.c" -} - - -static void -publishing_facebook_publishing_options_pane_on_logout_button_clicked (PublishingFacebookPublishingOptionsPane* self) -{ -#line 859 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_return_if_fail (PUBLISHING_FACEBOOK_IS_PUBLISHING_OPTIONS_PANE (self)); -#line 860 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_signal_emit (self, publishing_facebook_publishing_options_pane_signals[PUBLISHING_FACEBOOK_PUBLISHING_OPTIONS_PANE_LOGOUT_SIGNAL], 0); -#line 5436 "FacebookPublishing.c" -} - - -static void -publishing_facebook_publishing_options_pane_on_publish_button_clicked (PublishingFacebookPublishingOptionsPane* self) -{ - gchar* album_name = NULL; - gchar* privacy_setting = NULL; - PublishingFacebookPublishingOptionsPanePrivacyDescription** _tmp0_; - gint _tmp0__length1; - GtkComboBoxText* _tmp1_; - PublishingFacebookPublishingOptionsPanePrivacyDescription* _tmp2_; - const gchar* _tmp3_; - gchar* _tmp4_; - PublishingFacebookResolution resolution_setting = 0; - const gchar* _tmp16_; - const gchar* _tmp17_; - PublishingFacebookResolution _tmp18_; - GtkCheckButton* _tmp19_; -#line 863 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_return_if_fail (PUBLISHING_FACEBOOK_IS_PUBLISHING_OPTIONS_PANE (self)); -#line 865 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp0_ = self->priv->privacy_descriptions; -#line 865 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp0__length1 = self->priv->privacy_descriptions_length1; -#line 865 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp1_ = self->priv->visibility_combo; -#line 865 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp2_ = _tmp0_[gtk_combo_box_get_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, gtk_combo_box_get_type (), GtkComboBox))]; -#line 865 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp3_ = _tmp2_->privacy_setting; -#line 865 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp4_ = g_strdup (_tmp3_); -#line 865 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - privacy_setting = _tmp4_; -#line 869 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - if (publishing_facebook_publishing_options_pane_publishing_photos (self)) { -#line 5474 "FacebookPublishing.c" - PublishingFacebookResolution* _tmp5_; - gint _tmp5__length1; - GtkComboBoxText* _tmp6_; - PublishingFacebookResolution _tmp7_; - GtkRadioButton* _tmp8_; - gboolean _tmp9_; - gboolean _tmp10_; -#line 870 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp5_ = self->priv->possible_resolutions; -#line 870 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp5__length1 = self->priv->possible_resolutions_length1; -#line 870 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp6_ = self->priv->resolution_combo; -#line 870 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp7_ = _tmp5_[gtk_combo_box_get_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, gtk_combo_box_get_type (), GtkComboBox))]; -#line 870 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - resolution_setting = _tmp7_; -#line 871 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp8_ = self->priv->use_existing_radio; -#line 871 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp9_ = gtk_toggle_button_get_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, gtk_toggle_button_get_type (), GtkToggleButton)); -#line 871 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp10_ = _tmp9_; -#line 871 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - if (_tmp10_) { -#line 5500 "FacebookPublishing.c" - GtkComboBoxText* _tmp11_; - gchar* _tmp12_; -#line 872 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp11_ = self->priv->existing_albums_combo; -#line 872 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp12_ = gtk_combo_box_text_get_active_text (_tmp11_); -#line 872 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _g_free0 (album_name); -#line 872 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - album_name = _tmp12_; -#line 5511 "FacebookPublishing.c" - } else { - GtkEntry* _tmp13_; - const gchar* _tmp14_; - gchar* _tmp15_; -#line 874 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp13_ = self->priv->new_album_entry; -#line 874 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp14_ = gtk_entry_get_text (_tmp13_); -#line 874 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp15_ = g_strdup (_tmp14_); -#line 874 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _g_free0 (album_name); -#line 874 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - album_name = _tmp15_; -#line 5526 "FacebookPublishing.c" - } - } else { -#line 877 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - resolution_setting = PUBLISHING_FACEBOOK_RESOLUTION_STANDARD; -#line 878 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _g_free0 (album_name); -#line 878 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - album_name = NULL; -#line 5535 "FacebookPublishing.c" - } -#line 881 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp16_ = album_name; -#line 881 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp17_ = privacy_setting; -#line 881 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp18_ = resolution_setting; -#line 881 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp19_ = self->priv->strip_metadata_check; -#line 881 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_signal_emit (self, publishing_facebook_publishing_options_pane_signals[PUBLISHING_FACEBOOK_PUBLISHING_OPTIONS_PANE_PUBLISH_SIGNAL], 0, _tmp16_, _tmp17_, _tmp18_, gtk_toggle_button_get_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp19_, gtk_toggle_button_get_type (), GtkToggleButton))); -#line 863 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _g_free0 (privacy_setting); -#line 863 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _g_free0 (album_name); -#line 5551 "FacebookPublishing.c" -} - - -static void -_vala_array_add8 (PublishingFacebookPublishingOptionsPanePrivacyDescription** * array, - int* length, - int* size, - PublishingFacebookPublishingOptionsPanePrivacyDescription* value) -{ -#line 887 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - if ((*length) == (*size)) { -#line 887 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - *size = (*size) ? (2 * (*size)) : 4; -#line 887 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - *array = g_renew (PublishingFacebookPublishingOptionsPanePrivacyDescription*, *array, (*size) + 1); -#line 5567 "FacebookPublishing.c" - } -#line 887 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - (*array)[(*length)++] = value; -#line 887 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - (*array)[*length] = NULL; -#line 5573 "FacebookPublishing.c" -} - - -static void -_vala_array_add9 (PublishingFacebookPublishingOptionsPanePrivacyDescription** * array, - int* length, - int* size, - PublishingFacebookPublishingOptionsPanePrivacyDescription* value) -{ -#line 888 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - if ((*length) == (*size)) { -#line 888 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - *size = (*size) ? (2 * (*size)) : 4; -#line 888 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - *array = g_renew (PublishingFacebookPublishingOptionsPanePrivacyDescription*, *array, (*size) + 1); -#line 5589 "FacebookPublishing.c" - } -#line 888 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - (*array)[(*length)++] = value; -#line 888 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - (*array)[*length] = NULL; -#line 5595 "FacebookPublishing.c" -} - - -static void -_vala_array_add10 (PublishingFacebookPublishingOptionsPanePrivacyDescription** * array, - int* length, - int* size, - PublishingFacebookPublishingOptionsPanePrivacyDescription* value) -{ -#line 889 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - if ((*length) == (*size)) { -#line 889 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - *size = (*size) ? (2 * (*size)) : 4; -#line 889 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - *array = g_renew (PublishingFacebookPublishingOptionsPanePrivacyDescription*, *array, (*size) + 1); -#line 5611 "FacebookPublishing.c" - } -#line 889 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - (*array)[(*length)++] = value; -#line 889 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - (*array)[*length] = NULL; -#line 5617 "FacebookPublishing.c" -} - - -static PublishingFacebookPublishingOptionsPanePrivacyDescription** -publishing_facebook_publishing_options_pane_create_privacy_descriptions (PublishingFacebookPublishingOptionsPane* self, - int* result_length1) -{ - PublishingFacebookPublishingOptionsPanePrivacyDescription** result = NULL; - PublishingFacebookPublishingOptionsPanePrivacyDescription** _result_ = NULL; - PublishingFacebookPublishingOptionsPanePrivacyDescription** _tmp0_; - gint _result__length1; - gint __result__size_; - PublishingFacebookPublishingOptionsPanePrivacyDescription** _tmp1_; - gint _tmp1__length1; - PublishingFacebookPublishingOptionsPanePrivacyDescription* _tmp2_; - PublishingFacebookPublishingOptionsPanePrivacyDescription** _tmp3_; - gint _tmp3__length1; - PublishingFacebookPublishingOptionsPanePrivacyDescription* _tmp4_; - PublishingFacebookPublishingOptionsPanePrivacyDescription** _tmp5_; - gint _tmp5__length1; - PublishingFacebookPublishingOptionsPanePrivacyDescription* _tmp6_; - PublishingFacebookPublishingOptionsPanePrivacyDescription** _tmp7_; - gint _tmp7__length1; -#line 884 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_return_val_if_fail (PUBLISHING_FACEBOOK_IS_PUBLISHING_OPTIONS_PANE (self), NULL); -#line 885 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp0_ = g_new0 (PublishingFacebookPublishingOptionsPanePrivacyDescription*, 0 + 1); -#line 885 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _result_ = _tmp0_; -#line 885 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _result__length1 = 0; -#line 885 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - __result__size_ = _result__length1; -#line 887 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp1_ = _result_; -#line 887 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp1__length1 = _result__length1; -#line 887 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp2_ = publishing_facebook_publishing_options_pane_privacy_description_new (_ ("Just me"), "{ 'value' : 'SELF' }"); -#line 887 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _vala_array_add8 (&_result_, &_result__length1, &__result__size_, _tmp2_); -#line 888 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp3_ = _result_; -#line 888 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp3__length1 = _result__length1; -#line 888 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp4_ = publishing_facebook_publishing_options_pane_privacy_description_new (_ ("Friends"), "{ 'value' : 'ALL_FRIENDS' }"); -#line 888 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _vala_array_add9 (&_result_, &_result__length1, &__result__size_, _tmp4_); -#line 889 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp5_ = _result_; -#line 889 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp5__length1 = _result__length1; -#line 889 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp6_ = publishing_facebook_publishing_options_pane_privacy_description_new (_ ("Everyone"), "{ 'value' : 'EVERYONE' }"); -#line 889 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _vala_array_add10 (&_result_, &_result__length1, &__result__size_, _tmp6_); -#line 891 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp7_ = _result_; -#line 891 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp7__length1 = _result__length1; -#line 891 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - if (result_length1) { -#line 891 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - *result_length1 = _tmp7__length1; -#line 5683 "FacebookPublishing.c" - } -#line 891 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - result = _tmp7_; -#line 891 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - return result; -#line 5689 "FacebookPublishing.c" -} - - -static void -_vala_array_add11 (PublishingFacebookResolution* * array, - int* length, - int* size, - PublishingFacebookResolution value) -{ -#line 897 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - if ((*length) == (*size)) { -#line 897 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - *size = (*size) ? (2 * (*size)) : 4; -#line 897 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - *array = g_renew (PublishingFacebookResolution, *array, *size); -#line 5705 "FacebookPublishing.c" - } -#line 897 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - (*array)[(*length)++] = value; -#line 5709 "FacebookPublishing.c" -} - - -static void -_vala_array_add12 (PublishingFacebookResolution* * array, - int* length, - int* size, - PublishingFacebookResolution value) -{ -#line 898 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - if ((*length) == (*size)) { -#line 898 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - *size = (*size) ? (2 * (*size)) : 4; -#line 898 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - *array = g_renew (PublishingFacebookResolution, *array, *size); -#line 5725 "FacebookPublishing.c" - } -#line 898 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - (*array)[(*length)++] = value; -#line 5729 "FacebookPublishing.c" -} - - -static PublishingFacebookResolution* -publishing_facebook_publishing_options_pane_create_resolution_list (PublishingFacebookPublishingOptionsPane* self, - int* result_length1) -{ - PublishingFacebookResolution* result = NULL; - PublishingFacebookResolution* _result_ = NULL; - PublishingFacebookResolution* _tmp0_; - gint _result__length1; - gint __result__size_; - PublishingFacebookResolution* _tmp1_; - gint _tmp1__length1; - PublishingFacebookResolution* _tmp2_; - gint _tmp2__length1; - PublishingFacebookResolution* _tmp3_; - gint _tmp3__length1; -#line 894 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_return_val_if_fail (PUBLISHING_FACEBOOK_IS_PUBLISHING_OPTIONS_PANE (self), NULL); -#line 895 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp0_ = g_new0 (PublishingFacebookResolution, 0); -#line 895 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _result_ = _tmp0_; -#line 895 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _result__length1 = 0; -#line 895 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - __result__size_ = _result__length1; -#line 897 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp1_ = _result_; -#line 897 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp1__length1 = _result__length1; -#line 897 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _vala_array_add11 (&_result_, &_result__length1, &__result__size_, PUBLISHING_FACEBOOK_RESOLUTION_STANDARD); -#line 898 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp2_ = _result_; -#line 898 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp2__length1 = _result__length1; -#line 898 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _vala_array_add12 (&_result_, &_result__length1, &__result__size_, PUBLISHING_FACEBOOK_RESOLUTION_HIGH); -#line 900 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp3_ = _result_; -#line 900 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp3__length1 = _result__length1; -#line 900 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - if (result_length1) { -#line 900 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - *result_length1 = _tmp3__length1; -#line 5778 "FacebookPublishing.c" - } -#line 900 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - result = _tmp3_; -#line 900 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - return result; -#line 5784 "FacebookPublishing.c" -} - - -void -publishing_facebook_publishing_options_pane_installed (PublishingFacebookPublishingOptionsPane* self) -{ - GtkButton* _tmp23_; -#line 903 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_return_if_fail (PUBLISHING_FACEBOOK_IS_PUBLISHING_OPTIONS_PANE (self)); -#line 904 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - if (publishing_facebook_publishing_options_pane_publishing_photos (self)) { -#line 5796 "FacebookPublishing.c" - PublishingFacebookAlbum** _tmp0_; - gint _tmp0__length1; -#line 905 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp0_ = self->priv->albums; -#line 905 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp0__length1 = self->priv->albums_length1; -#line 905 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - if (_tmp0__length1 == 0) { -#line 5805 "FacebookPublishing.c" - GtkRadioButton* _tmp1_; - GtkEntry* _tmp2_; - GtkComboBoxText* _tmp3_; - GtkRadioButton* _tmp4_; -#line 906 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp1_ = self->priv->create_new_radio; -#line 906 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - gtk_toggle_button_set_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, gtk_toggle_button_get_type (), GtkToggleButton), TRUE); -#line 907 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp2_ = self->priv->new_album_entry; -#line 907 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - gtk_entry_set_text (_tmp2_, PUBLISHING_FACEBOOK_DEFAULT_ALBUM_NAME); -#line 908 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp3_ = self->priv->existing_albums_combo; -#line 908 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - gtk_widget_set_sensitive (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, gtk_widget_get_type (), GtkWidget), FALSE); -#line 909 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp4_ = self->priv->use_existing_radio; -#line 909 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - gtk_widget_set_sensitive (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, gtk_widget_get_type (), GtkWidget), FALSE); -#line 5826 "FacebookPublishing.c" - } else { - gint default_album_seq_num = 0; - gint ticker = 0; - PublishingFacebookAlbum** _tmp5_; - gint _tmp5__length1; - gint _tmp14_; -#line 911 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - default_album_seq_num = -1; -#line 912 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - ticker = 0; -#line 913 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp5_ = self->priv->albums; -#line 913 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp5__length1 = self->priv->albums_length1; -#line 5841 "FacebookPublishing.c" - { - PublishingFacebookAlbum** album_collection = NULL; - gint album_collection_length1 = 0; - gint _album_collection_size_ = 0; - gint album_it = 0; -#line 913 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - album_collection = _tmp5_; -#line 913 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - album_collection_length1 = _tmp5__length1; -#line 913 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - for (album_it = 0; album_it < _tmp5__length1; album_it = album_it + 1) { -#line 5853 "FacebookPublishing.c" - PublishingFacebookAlbum* _tmp6_; - PublishingFacebookAlbum* album = NULL; -#line 913 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp6_ = _publishing_facebook_album_ref0 (album_collection[album_it]); -#line 913 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - album = _tmp6_; -#line 5860 "FacebookPublishing.c" - { - GtkComboBoxText* _tmp7_; - PublishingFacebookAlbum* _tmp8_; - const gchar* _tmp9_; - PublishingFacebookAlbum* _tmp10_; - const gchar* _tmp11_; - gint _tmp13_; -#line 914 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp7_ = self->priv->existing_albums_combo; -#line 914 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp8_ = album; -#line 914 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp9_ = _tmp8_->name; -#line 914 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - gtk_combo_box_text_append_text (_tmp7_, _tmp9_); -#line 915 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp10_ = album; -#line 915 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp11_ = _tmp10_->name; -#line 915 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - if (g_strcmp0 (_tmp11_, PUBLISHING_FACEBOOK_DEFAULT_ALBUM_NAME) == 0) { -#line 5882 "FacebookPublishing.c" - gint _tmp12_; -#line 916 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp12_ = ticker; -#line 916 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - default_album_seq_num = _tmp12_; -#line 5888 "FacebookPublishing.c" - } -#line 917 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp13_ = ticker; -#line 917 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - ticker = _tmp13_ + 1; -#line 913 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _publishing_facebook_album_unref0 (album); -#line 5896 "FacebookPublishing.c" - } - } - } -#line 919 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp14_ = default_album_seq_num; -#line 919 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - if (_tmp14_ != -1) { -#line 5904 "FacebookPublishing.c" - GtkComboBoxText* _tmp15_; - gint _tmp16_; - GtkRadioButton* _tmp17_; - GtkEntry* _tmp18_; -#line 920 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp15_ = self->priv->existing_albums_combo; -#line 920 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp16_ = default_album_seq_num; -#line 920 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - gtk_combo_box_set_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp15_, gtk_combo_box_get_type (), GtkComboBox), _tmp16_); -#line 921 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp17_ = self->priv->use_existing_radio; -#line 921 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - gtk_toggle_button_set_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp17_, gtk_toggle_button_get_type (), GtkToggleButton), TRUE); -#line 922 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp18_ = self->priv->new_album_entry; -#line 922 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - gtk_widget_set_sensitive (G_TYPE_CHECK_INSTANCE_CAST (_tmp18_, gtk_widget_get_type (), GtkWidget), FALSE); -#line 5923 "FacebookPublishing.c" - } else { - GtkRadioButton* _tmp19_; - GtkComboBoxText* _tmp20_; - GtkComboBoxText* _tmp21_; - GtkEntry* _tmp22_; -#line 925 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp19_ = self->priv->create_new_radio; -#line 925 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - gtk_toggle_button_set_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp19_, gtk_toggle_button_get_type (), GtkToggleButton), TRUE); -#line 926 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp20_ = self->priv->existing_albums_combo; -#line 926 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - gtk_combo_box_set_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp20_, gtk_combo_box_get_type (), GtkComboBox), 0); -#line 927 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp21_ = self->priv->existing_albums_combo; -#line 927 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - gtk_widget_set_sensitive (G_TYPE_CHECK_INSTANCE_CAST (_tmp21_, gtk_widget_get_type (), GtkWidget), FALSE); -#line 928 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp22_ = self->priv->new_album_entry; -#line 928 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - gtk_entry_set_text (_tmp22_, PUBLISHING_FACEBOOK_DEFAULT_ALBUM_NAME); -#line 5945 "FacebookPublishing.c" - } - } - } -#line 933 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp23_ = self->priv->publish_button; -#line 933 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - gtk_widget_grab_focus (G_TYPE_CHECK_INSTANCE_CAST (_tmp23_, gtk_widget_get_type (), GtkWidget)); -#line 5953 "FacebookPublishing.c" -} - - -static void -publishing_facebook_publishing_options_pane_notify_logout (PublishingFacebookPublishingOptionsPane* self) -{ -#line 936 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_return_if_fail (PUBLISHING_FACEBOOK_IS_PUBLISHING_OPTIONS_PANE (self)); -#line 937 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_signal_emit (self, publishing_facebook_publishing_options_pane_signals[PUBLISHING_FACEBOOK_PUBLISHING_OPTIONS_PANE_LOGOUT_SIGNAL], 0); -#line 5964 "FacebookPublishing.c" -} - - -static void -publishing_facebook_publishing_options_pane_notify_publish (PublishingFacebookPublishingOptionsPane* self, - const gchar* target_album, - const gchar* privacy_setting, - PublishingFacebookResolution target_resolution) -{ - GtkCheckButton* _tmp0_; -#line 940 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_return_if_fail (PUBLISHING_FACEBOOK_IS_PUBLISHING_OPTIONS_PANE (self)); -#line 940 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_return_if_fail (privacy_setting != NULL); -#line 941 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp0_ = self->priv->strip_metadata_check; -#line 941 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_signal_emit (self, publishing_facebook_publishing_options_pane_signals[PUBLISHING_FACEBOOK_PUBLISHING_OPTIONS_PANE_PUBLISH_SIGNAL], 0, target_album, privacy_setting, target_resolution, gtk_toggle_button_get_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, gtk_toggle_button_get_type (), GtkToggleButton))); -#line 5983 "FacebookPublishing.c" -} - - -static GtkWidget* -publishing_facebook_publishing_options_pane_real_get_widget (SpitPublishingDialogPane* base) -{ - PublishingFacebookPublishingOptionsPane * self; - GtkWidget* result = NULL; - GtkBox* _tmp0_; - GtkWidget* _tmp1_; -#line 944 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_FACEBOOK_TYPE_PUBLISHING_OPTIONS_PANE, PublishingFacebookPublishingOptionsPane); -#line 945 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp0_ = self->priv->pane_widget; -#line 945 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp1_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, gtk_widget_get_type (), GtkWidget)); -#line 945 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - result = _tmp1_; -#line 945 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - return result; -#line 6004 "FacebookPublishing.c" -} - - -static SpitPublishingDialogPaneGeometryOptions -publishing_facebook_publishing_options_pane_real_get_preferred_geometry (SpitPublishingDialogPane* base) -{ - PublishingFacebookPublishingOptionsPane * self; - SpitPublishingDialogPaneGeometryOptions result = 0; -#line 948 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_FACEBOOK_TYPE_PUBLISHING_OPTIONS_PANE, PublishingFacebookPublishingOptionsPane); -#line 949 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - result = SPIT_PUBLISHING_DIALOG_PANE_GEOMETRY_OPTIONS_NONE; -#line 949 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - return result; -#line 6019 "FacebookPublishing.c" -} - - -static void -_publishing_facebook_publishing_options_pane_notify_logout_publishing_facebook_publishing_options_pane_logout (PublishingFacebookPublishingOptionsPane* _sender, - gpointer self) -{ -#line 953 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - publishing_facebook_publishing_options_pane_notify_logout ((PublishingFacebookPublishingOptionsPane*) self); -#line 6029 "FacebookPublishing.c" -} - - -static void -_publishing_facebook_publishing_options_pane_notify_publish_publishing_facebook_publishing_options_pane_publish (PublishingFacebookPublishingOptionsPane* _sender, - const gchar* target_album, - const gchar* privacy_setting, - PublishingFacebookResolution target_resolution, - gboolean strip_metadata, - gpointer self) -{ -#line 954 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - publishing_facebook_publishing_options_pane_notify_publish ((PublishingFacebookPublishingOptionsPane*) self, target_album, privacy_setting, target_resolution); -#line 6043 "FacebookPublishing.c" -} - - -static void -publishing_facebook_publishing_options_pane_real_on_pane_installed (SpitPublishingDialogPane* base) -{ - PublishingFacebookPublishingOptionsPane * self; -#line 952 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_FACEBOOK_TYPE_PUBLISHING_OPTIONS_PANE, PublishingFacebookPublishingOptionsPane); -#line 953 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_signal_connect_object (self, "logout", (GCallback) _publishing_facebook_publishing_options_pane_notify_logout_publishing_facebook_publishing_options_pane_logout, self, 0); -#line 954 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_signal_connect_object (self, "publish", (GCallback) _publishing_facebook_publishing_options_pane_notify_publish_publishing_facebook_publishing_options_pane_publish, self, 0); -#line 956 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - publishing_facebook_publishing_options_pane_installed (self); -#line 6059 "FacebookPublishing.c" -} - - -static void -publishing_facebook_publishing_options_pane_real_on_pane_uninstalled (SpitPublishingDialogPane* base) -{ - PublishingFacebookPublishingOptionsPane * self; - guint _tmp0_; - guint _tmp1_; -#line 959 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_FACEBOOK_TYPE_PUBLISHING_OPTIONS_PANE, PublishingFacebookPublishingOptionsPane); -#line 960 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_signal_parse_name ("logout", PUBLISHING_FACEBOOK_TYPE_PUBLISHING_OPTIONS_PANE, &_tmp0_, NULL, FALSE); -#line 960 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_signal_handlers_disconnect_matched (self, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp0_, 0, NULL, (GCallback) _publishing_facebook_publishing_options_pane_notify_logout_publishing_facebook_publishing_options_pane_logout, self); -#line 961 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_signal_parse_name ("publish", PUBLISHING_FACEBOOK_TYPE_PUBLISHING_OPTIONS_PANE, &_tmp1_, NULL, FALSE); -#line 961 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_signal_handlers_disconnect_matched (self, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp1_, 0, NULL, (GCallback) _publishing_facebook_publishing_options_pane_notify_publish_publishing_facebook_publishing_options_pane_publish, self); -#line 6079 "FacebookPublishing.c" -} - - -static void -g_cclosure_user_marshal_VOID__STRING_STRING_ENUM_BOOLEAN (GClosure * closure, - GValue * return_value, - guint n_param_values, - const GValue * param_values, - gpointer invocation_hint, - gpointer marshal_data) -{ - typedef void (*GMarshalFunc_VOID__STRING_STRING_ENUM_BOOLEAN) (gpointer data1, const char* arg_1, const char* arg_2, gint arg_3, gboolean arg_4, gpointer data2); - register GMarshalFunc_VOID__STRING_STRING_ENUM_BOOLEAN callback; - register GCClosure * cc; - register gpointer data1; - register gpointer data2; - cc = (GCClosure *) closure; -#line 702 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_return_if_fail (n_param_values == 5); -#line 702 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - if (G_CCLOSURE_SWAP_DATA (closure)) { -#line 702 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - data1 = closure->data; -#line 702 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - data2 = param_values->data[0].v_pointer; -#line 6105 "FacebookPublishing.c" - } else { -#line 702 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - data1 = param_values->data[0].v_pointer; -#line 702 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - data2 = closure->data; -#line 6111 "FacebookPublishing.c" - } -#line 702 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - callback = (GMarshalFunc_VOID__STRING_STRING_ENUM_BOOLEAN) (marshal_data ? marshal_data : cc->callback); -#line 702 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - callback (data1, g_value_get_string (param_values + 1), g_value_get_string (param_values + 2), g_value_get_enum (param_values + 3), g_value_get_boolean (param_values + 4), data2); -#line 6117 "FacebookPublishing.c" -} - - -static PublishingFacebookPublishingOptionsPanePrivacyDescription* -publishing_facebook_publishing_options_pane_privacy_description_construct (GType object_type, - const gchar* description, - const gchar* privacy_setting) -{ - PublishingFacebookPublishingOptionsPanePrivacyDescription* self = NULL; - gchar* _tmp0_; - gchar* _tmp1_; -#line 737 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_return_val_if_fail (description != NULL, NULL); -#line 737 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_return_val_if_fail (privacy_setting != NULL, NULL); -#line 737 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - self = (PublishingFacebookPublishingOptionsPanePrivacyDescription*) g_type_create_instance (object_type); -#line 738 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp0_ = g_strdup (description); -#line 738 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _g_free0 (self->description); -#line 738 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - self->description = _tmp0_; -#line 739 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp1_ = g_strdup (privacy_setting); -#line 739 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _g_free0 (self->privacy_setting); -#line 739 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - self->privacy_setting = _tmp1_; -#line 737 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - return self; -#line 6149 "FacebookPublishing.c" -} - - -static PublishingFacebookPublishingOptionsPanePrivacyDescription* -publishing_facebook_publishing_options_pane_privacy_description_new (const gchar* description, - const gchar* privacy_setting) -{ -#line 737 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - return publishing_facebook_publishing_options_pane_privacy_description_construct (PUBLISHING_FACEBOOK_PUBLISHING_OPTIONS_PANE_TYPE_PRIVACY_DESCRIPTION, description, privacy_setting); -#line 6159 "FacebookPublishing.c" -} - - -static void -publishing_facebook_publishing_options_pane_value_privacy_description_init (GValue* value) -{ -#line 733 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - value->data[0].v_pointer = NULL; -#line 6168 "FacebookPublishing.c" -} - - -static void -publishing_facebook_publishing_options_pane_value_privacy_description_free_value (GValue* value) -{ -#line 733 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - if (value->data[0].v_pointer) { -#line 733 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - publishing_facebook_publishing_options_pane_privacy_description_unref (value->data[0].v_pointer); -#line 6179 "FacebookPublishing.c" - } -} - - -static void -publishing_facebook_publishing_options_pane_value_privacy_description_copy_value (const GValue* src_value, - GValue* dest_value) -{ -#line 733 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - if (src_value->data[0].v_pointer) { -#line 733 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - dest_value->data[0].v_pointer = publishing_facebook_publishing_options_pane_privacy_description_ref (src_value->data[0].v_pointer); -#line 6192 "FacebookPublishing.c" - } else { -#line 733 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - dest_value->data[0].v_pointer = NULL; -#line 6196 "FacebookPublishing.c" - } -} - - -static gpointer -publishing_facebook_publishing_options_pane_value_privacy_description_peek_pointer (const GValue* value) -{ -#line 733 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - return value->data[0].v_pointer; -#line 6206 "FacebookPublishing.c" -} - - -static gchar* -publishing_facebook_publishing_options_pane_value_privacy_description_collect_value (GValue* value, - guint n_collect_values, - GTypeCValue* collect_values, - guint collect_flags) -{ -#line 733 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - if (collect_values[0].v_pointer) { -#line 6218 "FacebookPublishing.c" - PublishingFacebookPublishingOptionsPanePrivacyDescription * object; - object = collect_values[0].v_pointer; -#line 733 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - if (object->parent_instance.g_class == NULL) { -#line 733 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL); -#line 6225 "FacebookPublishing.c" - } else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) { -#line 733 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - return g_strconcat ("invalid object type `", g_type_name (G_TYPE_FROM_INSTANCE (object)), "' for value type `", G_VALUE_TYPE_NAME (value), "'", NULL); -#line 6229 "FacebookPublishing.c" - } -#line 733 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - value->data[0].v_pointer = publishing_facebook_publishing_options_pane_privacy_description_ref (object); -#line 6233 "FacebookPublishing.c" - } else { -#line 733 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - value->data[0].v_pointer = NULL; -#line 6237 "FacebookPublishing.c" - } -#line 733 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - return NULL; -#line 6241 "FacebookPublishing.c" -} - - -static gchar* -publishing_facebook_publishing_options_pane_value_privacy_description_lcopy_value (const GValue* value, - guint n_collect_values, - GTypeCValue* collect_values, - guint collect_flags) -{ - PublishingFacebookPublishingOptionsPanePrivacyDescription ** object_p; - object_p = collect_values[0].v_pointer; -#line 733 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - if (!object_p) { -#line 733 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value)); -#line 6257 "FacebookPublishing.c" - } -#line 733 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - if (!value->data[0].v_pointer) { -#line 733 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - *object_p = NULL; -#line 6263 "FacebookPublishing.c" - } else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) { -#line 733 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - *object_p = value->data[0].v_pointer; -#line 6267 "FacebookPublishing.c" - } else { -#line 733 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - *object_p = publishing_facebook_publishing_options_pane_privacy_description_ref (value->data[0].v_pointer); -#line 6271 "FacebookPublishing.c" - } -#line 733 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - return NULL; -#line 6275 "FacebookPublishing.c" -} - - -static GParamSpec* -publishing_facebook_publishing_options_pane_param_spec_privacy_description (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags) -{ - PublishingFacebookPublishingOptionsPaneParamSpecPrivacyDescription* spec; -#line 733 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_return_val_if_fail (g_type_is_a (object_type, PUBLISHING_FACEBOOK_PUBLISHING_OPTIONS_PANE_TYPE_PRIVACY_DESCRIPTION), NULL); -#line 733 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags); -#line 733 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - G_PARAM_SPEC (spec)->value_type = object_type; -#line 733 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - return G_PARAM_SPEC (spec); -#line 6295 "FacebookPublishing.c" -} - - -static gpointer -publishing_facebook_publishing_options_pane_value_get_privacy_description (const GValue* value) -{ -#line 733 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, PUBLISHING_FACEBOOK_PUBLISHING_OPTIONS_PANE_TYPE_PRIVACY_DESCRIPTION), NULL); -#line 733 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - return value->data[0].v_pointer; -#line 6306 "FacebookPublishing.c" -} - - -static void -publishing_facebook_publishing_options_pane_value_set_privacy_description (GValue* value, - gpointer v_object) -{ - PublishingFacebookPublishingOptionsPanePrivacyDescription * old; -#line 733 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, PUBLISHING_FACEBOOK_PUBLISHING_OPTIONS_PANE_TYPE_PRIVACY_DESCRIPTION)); -#line 733 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - old = value->data[0].v_pointer; -#line 733 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - if (v_object) { -#line 733 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, PUBLISHING_FACEBOOK_PUBLISHING_OPTIONS_PANE_TYPE_PRIVACY_DESCRIPTION)); -#line 733 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value))); -#line 733 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - value->data[0].v_pointer = v_object; -#line 733 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - publishing_facebook_publishing_options_pane_privacy_description_ref (value->data[0].v_pointer); -#line 6329 "FacebookPublishing.c" - } else { -#line 733 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - value->data[0].v_pointer = NULL; -#line 6333 "FacebookPublishing.c" - } -#line 733 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - if (old) { -#line 733 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - publishing_facebook_publishing_options_pane_privacy_description_unref (old); -#line 6339 "FacebookPublishing.c" - } -} - - -static void -publishing_facebook_publishing_options_pane_value_take_privacy_description (GValue* value, - gpointer v_object) -{ - PublishingFacebookPublishingOptionsPanePrivacyDescription * old; -#line 733 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, PUBLISHING_FACEBOOK_PUBLISHING_OPTIONS_PANE_TYPE_PRIVACY_DESCRIPTION)); -#line 733 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - old = value->data[0].v_pointer; -#line 733 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - if (v_object) { -#line 733 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, PUBLISHING_FACEBOOK_PUBLISHING_OPTIONS_PANE_TYPE_PRIVACY_DESCRIPTION)); -#line 733 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value))); -#line 733 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - value->data[0].v_pointer = v_object; -#line 6361 "FacebookPublishing.c" - } else { -#line 733 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - value->data[0].v_pointer = NULL; -#line 6365 "FacebookPublishing.c" - } -#line 733 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - if (old) { -#line 733 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - publishing_facebook_publishing_options_pane_privacy_description_unref (old); -#line 6371 "FacebookPublishing.c" - } -} - - -static void -publishing_facebook_publishing_options_pane_privacy_description_class_init (PublishingFacebookPublishingOptionsPanePrivacyDescriptionClass * klass) -{ -#line 733 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - publishing_facebook_publishing_options_pane_privacy_description_parent_class = g_type_class_peek_parent (klass); -#line 733 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - ((PublishingFacebookPublishingOptionsPanePrivacyDescriptionClass *) klass)->finalize = publishing_facebook_publishing_options_pane_privacy_description_finalize; -#line 6383 "FacebookPublishing.c" -} - - -static void -publishing_facebook_publishing_options_pane_privacy_description_instance_init (PublishingFacebookPublishingOptionsPanePrivacyDescription * self) -{ -#line 733 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - self->ref_count = 1; -#line 6392 "FacebookPublishing.c" -} - - -static void -publishing_facebook_publishing_options_pane_privacy_description_finalize (PublishingFacebookPublishingOptionsPanePrivacyDescription * obj) -{ - PublishingFacebookPublishingOptionsPanePrivacyDescription * self; -#line 733 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, PUBLISHING_FACEBOOK_PUBLISHING_OPTIONS_PANE_TYPE_PRIVACY_DESCRIPTION, PublishingFacebookPublishingOptionsPanePrivacyDescription); -#line 733 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_signal_handlers_destroy (self); -#line 734 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _g_free0 (self->description); -#line 735 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _g_free0 (self->privacy_setting); -#line 6408 "FacebookPublishing.c" -} - - -static GType -publishing_facebook_publishing_options_pane_privacy_description_get_type (void) -{ - static volatile gsize publishing_facebook_publishing_options_pane_privacy_description_type_id__volatile = 0; - if (g_once_init_enter (&publishing_facebook_publishing_options_pane_privacy_description_type_id__volatile)) { - static const GTypeValueTable g_define_type_value_table = { publishing_facebook_publishing_options_pane_value_privacy_description_init, publishing_facebook_publishing_options_pane_value_privacy_description_free_value, publishing_facebook_publishing_options_pane_value_privacy_description_copy_value, publishing_facebook_publishing_options_pane_value_privacy_description_peek_pointer, "p", publishing_facebook_publishing_options_pane_value_privacy_description_collect_value, "p", publishing_facebook_publishing_options_pane_value_privacy_description_lcopy_value }; - static const GTypeInfo g_define_type_info = { sizeof (PublishingFacebookPublishingOptionsPanePrivacyDescriptionClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) publishing_facebook_publishing_options_pane_privacy_description_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PublishingFacebookPublishingOptionsPanePrivacyDescription), 0, (GInstanceInitFunc) publishing_facebook_publishing_options_pane_privacy_description_instance_init, &g_define_type_value_table }; - static const GTypeFundamentalInfo g_define_type_fundamental_info = { (G_TYPE_FLAG_CLASSED | G_TYPE_FLAG_INSTANTIATABLE | G_TYPE_FLAG_DERIVABLE | G_TYPE_FLAG_DEEP_DERIVABLE) }; - GType publishing_facebook_publishing_options_pane_privacy_description_type_id; - publishing_facebook_publishing_options_pane_privacy_description_type_id = g_type_register_fundamental (g_type_fundamental_next (), "PublishingFacebookPublishingOptionsPanePrivacyDescription", &g_define_type_info, &g_define_type_fundamental_info, 0); - g_once_init_leave (&publishing_facebook_publishing_options_pane_privacy_description_type_id__volatile, publishing_facebook_publishing_options_pane_privacy_description_type_id); - } - return publishing_facebook_publishing_options_pane_privacy_description_type_id__volatile; -} - - -static gpointer -publishing_facebook_publishing_options_pane_privacy_description_ref (gpointer instance) -{ - PublishingFacebookPublishingOptionsPanePrivacyDescription * self; - self = instance; -#line 733 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_atomic_int_inc (&self->ref_count); -#line 733 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - return instance; -#line 6437 "FacebookPublishing.c" -} - - -static void -publishing_facebook_publishing_options_pane_privacy_description_unref (gpointer instance) -{ - PublishingFacebookPublishingOptionsPanePrivacyDescription * self; - self = instance; -#line 733 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - if (g_atomic_int_dec_and_test (&self->ref_count)) { -#line 733 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - PUBLISHING_FACEBOOK_PUBLISHING_OPTIONS_PANE_PRIVACY_DESCRIPTION_GET_CLASS (self)->finalize (self); -#line 733 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_type_free_instance ((GTypeInstance *) self); -#line 6452 "FacebookPublishing.c" - } -} - - -static void -publishing_facebook_publishing_options_pane_class_init (PublishingFacebookPublishingOptionsPaneClass * klass) -{ -#line 702 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - publishing_facebook_publishing_options_pane_parent_class = g_type_class_peek_parent (klass); -#line 702 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_type_class_add_private (klass, sizeof (PublishingFacebookPublishingOptionsPanePrivate)); -#line 702 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - G_OBJECT_CLASS (klass)->finalize = publishing_facebook_publishing_options_pane_finalize; -#line 702 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - publishing_facebook_publishing_options_pane_signals[PUBLISHING_FACEBOOK_PUBLISHING_OPTIONS_PANE_LOGOUT_SIGNAL] = g_signal_new ("logout", PUBLISHING_FACEBOOK_TYPE_PUBLISHING_OPTIONS_PANE, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_marshal_VOID__VOID, G_TYPE_NONE, 0); -#line 702 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - publishing_facebook_publishing_options_pane_signals[PUBLISHING_FACEBOOK_PUBLISHING_OPTIONS_PANE_PUBLISH_SIGNAL] = g_signal_new ("publish", PUBLISHING_FACEBOOK_TYPE_PUBLISHING_OPTIONS_PANE, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_user_marshal_VOID__STRING_STRING_ENUM_BOOLEAN, G_TYPE_NONE, 4, G_TYPE_STRING, G_TYPE_STRING, PUBLISHING_FACEBOOK_TYPE_RESOLUTION, G_TYPE_BOOLEAN); -#line 6470 "FacebookPublishing.c" -} - - -static void -publishing_facebook_publishing_options_pane_spit_publishing_dialog_pane_interface_init (SpitPublishingDialogPaneIface * iface) -{ -#line 702 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - publishing_facebook_publishing_options_pane_spit_publishing_dialog_pane_parent_iface = g_type_interface_peek_parent (iface); -#line 702 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - iface->get_widget = (GtkWidget* (*) (SpitPublishingDialogPane *)) publishing_facebook_publishing_options_pane_real_get_widget; -#line 702 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - iface->get_preferred_geometry = (SpitPublishingDialogPaneGeometryOptions (*) (SpitPublishingDialogPane *)) publishing_facebook_publishing_options_pane_real_get_preferred_geometry; -#line 702 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - iface->on_pane_installed = (void (*) (SpitPublishingDialogPane *)) publishing_facebook_publishing_options_pane_real_on_pane_installed; -#line 702 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - iface->on_pane_uninstalled = (void (*) (SpitPublishingDialogPane *)) publishing_facebook_publishing_options_pane_real_on_pane_uninstalled; -#line 6487 "FacebookPublishing.c" -} - - -static void -publishing_facebook_publishing_options_pane_instance_init (PublishingFacebookPublishingOptionsPane * self) -{ -#line 702 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - self->priv = PUBLISHING_FACEBOOK_PUBLISHING_OPTIONS_PANE_GET_PRIVATE (self); -#line 704 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - self->priv->pane_widget = NULL; -#line 705 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - self->priv->use_existing_radio = NULL; -#line 706 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - self->priv->create_new_radio = NULL; -#line 707 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - self->priv->existing_albums_combo = NULL; -#line 708 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - self->priv->visibility_combo = NULL; -#line 709 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - self->priv->new_album_entry = NULL; -#line 710 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - self->priv->strip_metadata_check = NULL; -#line 711 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - self->priv->publish_button = NULL; -#line 712 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - self->priv->logout_button = NULL; -#line 713 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - self->priv->how_to_label = NULL; -#line 714 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - self->priv->albums = NULL; -#line 714 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - self->priv->albums_length1 = 0; -#line 714 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - self->priv->_albums_size_ = self->priv->albums_length1; -#line 715 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - self->priv->publisher = NULL; -#line 719 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - self->priv->resolution_combo = NULL; -#line 6526 "FacebookPublishing.c" -} - - -static void -publishing_facebook_publishing_options_pane_finalize (GObject * obj) -{ - PublishingFacebookPublishingOptionsPane * self; -#line 702 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, PUBLISHING_FACEBOOK_TYPE_PUBLISHING_OPTIONS_PANE, PublishingFacebookPublishingOptionsPane); -#line 703 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _g_object_unref0 (self->priv->builder); -#line 704 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _g_object_unref0 (self->priv->pane_widget); -#line 705 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _g_object_unref0 (self->priv->use_existing_radio); -#line 706 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _g_object_unref0 (self->priv->create_new_radio); -#line 707 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _g_object_unref0 (self->priv->existing_albums_combo); -#line 708 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _g_object_unref0 (self->priv->visibility_combo); -#line 709 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _g_object_unref0 (self->priv->new_album_entry); -#line 710 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _g_object_unref0 (self->priv->strip_metadata_check); -#line 711 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _g_object_unref0 (self->priv->publish_button); -#line 712 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _g_object_unref0 (self->priv->logout_button); -#line 713 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _g_object_unref0 (self->priv->how_to_label); -#line 714 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - self->priv->albums = (_vala_array_free (self->priv->albums, self->priv->albums_length1, (GDestroyNotify) publishing_facebook_album_unref), NULL); -#line 715 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _g_object_unref0 (self->priv->publisher); -#line 716 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - self->priv->privacy_descriptions = (_vala_array_free (self->priv->privacy_descriptions, self->priv->privacy_descriptions_length1, (GDestroyNotify) publishing_facebook_publishing_options_pane_privacy_description_unref), NULL); -#line 718 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - self->priv->possible_resolutions = (g_free (self->priv->possible_resolutions), NULL); -#line 719 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _g_object_unref0 (self->priv->resolution_combo); -#line 702 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - G_OBJECT_CLASS (publishing_facebook_publishing_options_pane_parent_class)->finalize (obj); -#line 6570 "FacebookPublishing.c" -} - - -GType -publishing_facebook_publishing_options_pane_get_type (void) -{ - static volatile gsize publishing_facebook_publishing_options_pane_type_id__volatile = 0; - if (g_once_init_enter (&publishing_facebook_publishing_options_pane_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (PublishingFacebookPublishingOptionsPaneClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) publishing_facebook_publishing_options_pane_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PublishingFacebookPublishingOptionsPane), 0, (GInstanceInitFunc) publishing_facebook_publishing_options_pane_instance_init, NULL }; - static const GInterfaceInfo spit_publishing_dialog_pane_info = { (GInterfaceInitFunc) publishing_facebook_publishing_options_pane_spit_publishing_dialog_pane_interface_init, (GInterfaceFinalizeFunc) NULL, NULL}; - GType publishing_facebook_publishing_options_pane_type_id; - publishing_facebook_publishing_options_pane_type_id = g_type_register_static (G_TYPE_OBJECT, "PublishingFacebookPublishingOptionsPane", &g_define_type_info, 0); - g_type_add_interface_static (publishing_facebook_publishing_options_pane_type_id, SPIT_PUBLISHING_TYPE_DIALOG_PANE, &spit_publishing_dialog_pane_info); - g_once_init_leave (&publishing_facebook_publishing_options_pane_type_id__volatile, publishing_facebook_publishing_options_pane_type_id); - } - return publishing_facebook_publishing_options_pane_type_id__volatile; -} - - -gchar* -publishing_facebook_endpoint_to_uri (PublishingFacebookEndpoint self) -{ - gchar* result = NULL; -#line 971 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - switch (self) { -#line 971 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - case PUBLISHING_FACEBOOK_ENDPOINT_DEFAULT: -#line 6598 "FacebookPublishing.c" - { - gchar* _tmp0_; -#line 973 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp0_ = g_strdup ("https://graph.facebook.com/"); -#line 973 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - result = _tmp0_; -#line 973 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - return result; -#line 6607 "FacebookPublishing.c" - } -#line 971 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - case PUBLISHING_FACEBOOK_ENDPOINT_VIDEO: -#line 6611 "FacebookPublishing.c" - { - gchar* _tmp1_; -#line 976 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp1_ = g_strdup ("https://graph-video.facebook.com/"); -#line 976 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - result = _tmp1_; -#line 976 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - return result; -#line 6620 "FacebookPublishing.c" - } -#line 971 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - case PUBLISHING_FACEBOOK_ENDPOINT_TEST_CONNECTION: -#line 6624 "FacebookPublishing.c" - { - gchar* _tmp2_; -#line 979 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp2_ = g_strdup ("https://www.facebook.com/"); -#line 979 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - result = _tmp2_; -#line 979 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - return result; -#line 6633 "FacebookPublishing.c" - } - default: - { -#line 982 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_assert_not_reached (); -#line 6639 "FacebookPublishing.c" - } - } -} - - -GType -publishing_facebook_endpoint_get_type (void) -{ - static volatile gsize publishing_facebook_endpoint_type_id__volatile = 0; - if (g_once_init_enter (&publishing_facebook_endpoint_type_id__volatile)) { - static const GEnumValue values[] = {{PUBLISHING_FACEBOOK_ENDPOINT_DEFAULT, "PUBLISHING_FACEBOOK_ENDPOINT_DEFAULT", "default"}, {PUBLISHING_FACEBOOK_ENDPOINT_VIDEO, "PUBLISHING_FACEBOOK_ENDPOINT_VIDEO", "video"}, {PUBLISHING_FACEBOOK_ENDPOINT_TEST_CONNECTION, "PUBLISHING_FACEBOOK_ENDPOINT_TEST_CONNECTION", "test-connection"}, {0, NULL, NULL}}; - GType publishing_facebook_endpoint_type_id; - publishing_facebook_endpoint_type_id = g_enum_register_static ("PublishingFacebookEndpoint", values); - g_once_init_leave (&publishing_facebook_endpoint_type_id__volatile, publishing_facebook_endpoint_type_id); - } - return publishing_facebook_endpoint_type_id__volatile; -} - - -static gchar* -publishing_facebook_graph_message_real_get_uri (PublishingFacebookGraphMessage* self) -{ -#line 992 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_critical ("Type `%s' does not implement abstract method `publishing_facebook_graph_message_get_uri'", g_type_name (G_TYPE_FROM_INSTANCE (self))); -#line 992 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - return NULL; -#line 6666 "FacebookPublishing.c" -} - - -gchar* -publishing_facebook_graph_message_get_uri (PublishingFacebookGraphMessage* self) -{ -#line 992 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_return_val_if_fail (PUBLISHING_FACEBOOK_IS_GRAPH_MESSAGE (self), NULL); -#line 992 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - return PUBLISHING_FACEBOOK_GRAPH_MESSAGE_GET_CLASS (self)->get_uri (self); -#line 6677 "FacebookPublishing.c" -} - - -static gchar* -publishing_facebook_graph_message_real_get_response_body (PublishingFacebookGraphMessage* self) -{ -#line 993 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_critical ("Type `%s' does not implement abstract method `publishing_facebook_graph_message_get_response_body'", g_type_name (G_TYPE_FROM_INSTANCE (self))); -#line 993 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - return NULL; -#line 6688 "FacebookPublishing.c" -} - - -gchar* -publishing_facebook_graph_message_get_response_body (PublishingFacebookGraphMessage* self) -{ -#line 993 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_return_val_if_fail (PUBLISHING_FACEBOOK_IS_GRAPH_MESSAGE (self), NULL); -#line 993 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - return PUBLISHING_FACEBOOK_GRAPH_MESSAGE_GET_CLASS (self)->get_response_body (self); -#line 6699 "FacebookPublishing.c" -} - - -PublishingFacebookGraphMessage* -publishing_facebook_graph_message_construct (GType object_type) -{ - PublishingFacebookGraphMessage* self = NULL; -#line 987 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - self = (PublishingFacebookGraphMessage*) g_type_create_instance (object_type); -#line 987 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - return self; -#line 6711 "FacebookPublishing.c" -} - - -static void -g_cclosure_user_marshal_VOID__INT_INT (GClosure * closure, - GValue * return_value, - guint n_param_values, - const GValue * param_values, - gpointer invocation_hint, - gpointer marshal_data) -{ - typedef void (*GMarshalFunc_VOID__INT_INT) (gpointer data1, gint arg_1, gint arg_2, gpointer data2); - register GMarshalFunc_VOID__INT_INT callback; - register GCClosure * cc; - register gpointer data1; - register gpointer data2; - cc = (GCClosure *) closure; -#line 987 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_return_if_fail (n_param_values == 3); -#line 987 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - if (G_CCLOSURE_SWAP_DATA (closure)) { -#line 987 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - data1 = closure->data; -#line 987 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - data2 = param_values->data[0].v_pointer; -#line 6737 "FacebookPublishing.c" - } else { -#line 987 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - data1 = param_values->data[0].v_pointer; -#line 987 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - data2 = closure->data; -#line 6743 "FacebookPublishing.c" - } -#line 987 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - callback = (GMarshalFunc_VOID__INT_INT) (marshal_data ? marshal_data : cc->callback); -#line 987 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - callback (data1, g_value_get_int (param_values + 1), g_value_get_int (param_values + 2), data2); -#line 6749 "FacebookPublishing.c" -} - - -static void -publishing_facebook_value_graph_message_init (GValue* value) -{ -#line 987 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - value->data[0].v_pointer = NULL; -#line 6758 "FacebookPublishing.c" -} - - -static void -publishing_facebook_value_graph_message_free_value (GValue* value) -{ -#line 987 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - if (value->data[0].v_pointer) { -#line 987 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - publishing_facebook_graph_message_unref (value->data[0].v_pointer); -#line 6769 "FacebookPublishing.c" - } -} - - -static void -publishing_facebook_value_graph_message_copy_value (const GValue* src_value, - GValue* dest_value) -{ -#line 987 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - if (src_value->data[0].v_pointer) { -#line 987 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - dest_value->data[0].v_pointer = publishing_facebook_graph_message_ref (src_value->data[0].v_pointer); -#line 6782 "FacebookPublishing.c" - } else { -#line 987 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - dest_value->data[0].v_pointer = NULL; -#line 6786 "FacebookPublishing.c" - } -} - - -static gpointer -publishing_facebook_value_graph_message_peek_pointer (const GValue* value) -{ -#line 987 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - return value->data[0].v_pointer; -#line 6796 "FacebookPublishing.c" -} - - -static gchar* -publishing_facebook_value_graph_message_collect_value (GValue* value, - guint n_collect_values, - GTypeCValue* collect_values, - guint collect_flags) -{ -#line 987 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - if (collect_values[0].v_pointer) { -#line 6808 "FacebookPublishing.c" - PublishingFacebookGraphMessage * object; - object = collect_values[0].v_pointer; -#line 987 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - if (object->parent_instance.g_class == NULL) { -#line 987 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL); -#line 6815 "FacebookPublishing.c" - } else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) { -#line 987 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - return g_strconcat ("invalid object type `", g_type_name (G_TYPE_FROM_INSTANCE (object)), "' for value type `", G_VALUE_TYPE_NAME (value), "'", NULL); -#line 6819 "FacebookPublishing.c" - } -#line 987 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - value->data[0].v_pointer = publishing_facebook_graph_message_ref (object); -#line 6823 "FacebookPublishing.c" - } else { -#line 987 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - value->data[0].v_pointer = NULL; -#line 6827 "FacebookPublishing.c" - } -#line 987 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - return NULL; -#line 6831 "FacebookPublishing.c" -} - - -static gchar* -publishing_facebook_value_graph_message_lcopy_value (const GValue* value, - guint n_collect_values, - GTypeCValue* collect_values, - guint collect_flags) -{ - PublishingFacebookGraphMessage ** object_p; - object_p = collect_values[0].v_pointer; -#line 987 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - if (!object_p) { -#line 987 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value)); -#line 6847 "FacebookPublishing.c" - } -#line 987 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - if (!value->data[0].v_pointer) { -#line 987 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - *object_p = NULL; -#line 6853 "FacebookPublishing.c" - } else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) { -#line 987 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - *object_p = value->data[0].v_pointer; -#line 6857 "FacebookPublishing.c" - } else { -#line 987 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - *object_p = publishing_facebook_graph_message_ref (value->data[0].v_pointer); -#line 6861 "FacebookPublishing.c" - } -#line 987 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - return NULL; -#line 6865 "FacebookPublishing.c" -} - - -GParamSpec* -publishing_facebook_param_spec_graph_message (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags) -{ - PublishingFacebookParamSpecGraphMessage* spec; -#line 987 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_return_val_if_fail (g_type_is_a (object_type, PUBLISHING_FACEBOOK_TYPE_GRAPH_MESSAGE), NULL); -#line 987 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags); -#line 987 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - G_PARAM_SPEC (spec)->value_type = object_type; -#line 987 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - return G_PARAM_SPEC (spec); -#line 6885 "FacebookPublishing.c" -} - - -gpointer -publishing_facebook_value_get_graph_message (const GValue* value) -{ -#line 987 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, PUBLISHING_FACEBOOK_TYPE_GRAPH_MESSAGE), NULL); -#line 987 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - return value->data[0].v_pointer; -#line 6896 "FacebookPublishing.c" -} - - -void -publishing_facebook_value_set_graph_message (GValue* value, - gpointer v_object) -{ - PublishingFacebookGraphMessage * old; -#line 987 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, PUBLISHING_FACEBOOK_TYPE_GRAPH_MESSAGE)); -#line 987 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - old = value->data[0].v_pointer; -#line 987 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - if (v_object) { -#line 987 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, PUBLISHING_FACEBOOK_TYPE_GRAPH_MESSAGE)); -#line 987 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value))); -#line 987 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - value->data[0].v_pointer = v_object; -#line 987 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - publishing_facebook_graph_message_ref (value->data[0].v_pointer); -#line 6919 "FacebookPublishing.c" - } else { -#line 987 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - value->data[0].v_pointer = NULL; -#line 6923 "FacebookPublishing.c" - } -#line 987 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - if (old) { -#line 987 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - publishing_facebook_graph_message_unref (old); -#line 6929 "FacebookPublishing.c" - } -} - - -void -publishing_facebook_value_take_graph_message (GValue* value, - gpointer v_object) -{ - PublishingFacebookGraphMessage * old; -#line 987 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, PUBLISHING_FACEBOOK_TYPE_GRAPH_MESSAGE)); -#line 987 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - old = value->data[0].v_pointer; -#line 987 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - if (v_object) { -#line 987 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, PUBLISHING_FACEBOOK_TYPE_GRAPH_MESSAGE)); -#line 987 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value))); -#line 987 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - value->data[0].v_pointer = v_object; -#line 6951 "FacebookPublishing.c" - } else { -#line 987 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - value->data[0].v_pointer = NULL; -#line 6955 "FacebookPublishing.c" - } -#line 987 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - if (old) { -#line 987 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - publishing_facebook_graph_message_unref (old); -#line 6961 "FacebookPublishing.c" - } -} - - -static void -publishing_facebook_graph_message_class_init (PublishingFacebookGraphMessageClass * klass) -{ -#line 987 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - publishing_facebook_graph_message_parent_class = g_type_class_peek_parent (klass); -#line 987 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - ((PublishingFacebookGraphMessageClass *) klass)->finalize = publishing_facebook_graph_message_finalize; -#line 987 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - ((PublishingFacebookGraphMessageClass *) klass)->get_uri = (gchar* (*) (PublishingFacebookGraphMessage *)) publishing_facebook_graph_message_real_get_uri; -#line 987 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - ((PublishingFacebookGraphMessageClass *) klass)->get_response_body = (gchar* (*) (PublishingFacebookGraphMessage *)) publishing_facebook_graph_message_real_get_response_body; -#line 987 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - publishing_facebook_graph_message_signals[PUBLISHING_FACEBOOK_GRAPH_MESSAGE_COMPLETED_SIGNAL] = g_signal_new ("completed", PUBLISHING_FACEBOOK_TYPE_GRAPH_MESSAGE, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_marshal_VOID__VOID, G_TYPE_NONE, 0); -#line 987 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - publishing_facebook_graph_message_signals[PUBLISHING_FACEBOOK_GRAPH_MESSAGE_FAILED_SIGNAL] = g_signal_new ("failed", PUBLISHING_FACEBOOK_TYPE_GRAPH_MESSAGE, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_marshal_VOID__POINTER, G_TYPE_NONE, 1, G_TYPE_POINTER); -#line 987 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - publishing_facebook_graph_message_signals[PUBLISHING_FACEBOOK_GRAPH_MESSAGE_DATA_TRANSMITTED_SIGNAL] = g_signal_new ("data-transmitted", PUBLISHING_FACEBOOK_TYPE_GRAPH_MESSAGE, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_user_marshal_VOID__INT_INT, G_TYPE_NONE, 2, G_TYPE_INT, G_TYPE_INT); -#line 6983 "FacebookPublishing.c" -} - - -static void -publishing_facebook_graph_message_instance_init (PublishingFacebookGraphMessage * self) -{ -#line 987 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - self->ref_count = 1; -#line 6992 "FacebookPublishing.c" -} - - -static void -publishing_facebook_graph_message_finalize (PublishingFacebookGraphMessage * obj) -{ - PublishingFacebookGraphMessage * self; -#line 987 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, PUBLISHING_FACEBOOK_TYPE_GRAPH_MESSAGE, PublishingFacebookGraphMessage); -#line 987 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_signal_handlers_destroy (self); -#line 7004 "FacebookPublishing.c" -} - - -GType -publishing_facebook_graph_message_get_type (void) -{ - static volatile gsize publishing_facebook_graph_message_type_id__volatile = 0; - if (g_once_init_enter (&publishing_facebook_graph_message_type_id__volatile)) { - static const GTypeValueTable g_define_type_value_table = { publishing_facebook_value_graph_message_init, publishing_facebook_value_graph_message_free_value, publishing_facebook_value_graph_message_copy_value, publishing_facebook_value_graph_message_peek_pointer, "p", publishing_facebook_value_graph_message_collect_value, "p", publishing_facebook_value_graph_message_lcopy_value }; - static const GTypeInfo g_define_type_info = { sizeof (PublishingFacebookGraphMessageClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) publishing_facebook_graph_message_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PublishingFacebookGraphMessage), 0, (GInstanceInitFunc) publishing_facebook_graph_message_instance_init, &g_define_type_value_table }; - static const GTypeFundamentalInfo g_define_type_fundamental_info = { (G_TYPE_FLAG_CLASSED | G_TYPE_FLAG_INSTANTIATABLE | G_TYPE_FLAG_DERIVABLE | G_TYPE_FLAG_DEEP_DERIVABLE) }; - GType publishing_facebook_graph_message_type_id; - publishing_facebook_graph_message_type_id = g_type_register_fundamental (g_type_fundamental_next (), "PublishingFacebookGraphMessage", &g_define_type_info, &g_define_type_fundamental_info, G_TYPE_FLAG_ABSTRACT); - g_once_init_leave (&publishing_facebook_graph_message_type_id__volatile, publishing_facebook_graph_message_type_id); - } - return publishing_facebook_graph_message_type_id__volatile; -} - - -gpointer -publishing_facebook_graph_message_ref (gpointer instance) -{ - PublishingFacebookGraphMessage * self; - self = instance; -#line 987 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_atomic_int_inc (&self->ref_count); -#line 987 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - return instance; -#line 7033 "FacebookPublishing.c" -} - - -void -publishing_facebook_graph_message_unref (gpointer instance) -{ - PublishingFacebookGraphMessage * self; - self = instance; -#line 987 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - if (g_atomic_int_dec_and_test (&self->ref_count)) { -#line 987 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - PUBLISHING_FACEBOOK_GRAPH_MESSAGE_GET_CLASS (self)->finalize (self); -#line 987 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_type_free_instance ((GTypeInstance *) self); -#line 7048 "FacebookPublishing.c" - } -} - - -static void -_publishing_facebook_graph_session_on_request_unqueued_soup_session_request_unqueued (SoupSession* _sender, - SoupMessage* msg, - gpointer self) -{ -#line 1172 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - publishing_facebook_graph_session_on_request_unqueued ((PublishingFacebookGraphSession*) self, msg); -#line 7060 "FacebookPublishing.c" -} - - -PublishingFacebookGraphSession* -publishing_facebook_graph_session_construct (GType object_type) -{ - PublishingFacebookGraphSession* self = NULL; - SoupSession* _tmp0_; - SoupSession* _tmp1_; - SoupSession* _tmp2_; - SoupSession* _tmp3_; -#line 1162 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - self = (PublishingFacebookGraphSession*) g_type_create_instance (object_type); -#line 1163 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp0_ = soup_session_new (); -#line 1163 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _g_object_unref0 (self->priv->soup_session); -#line 1163 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - self->priv->soup_session = _tmp0_; -#line 1164 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp1_ = self->priv->soup_session; -#line 1164 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_signal_connect (_tmp1_, "request-unqueued", (GCallback) _publishing_facebook_graph_session_on_request_unqueued_soup_session_request_unqueued, self); -#line 1165 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp2_ = self->priv->soup_session; -#line 1165 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_object_set (_tmp2_, "timeout", (guint) 15, NULL); -#line 1166 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _g_free0 (self->priv->access_token); -#line 1166 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - self->priv->access_token = NULL; -#line 1167 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _publishing_facebook_graph_message_unref0 (self->priv->current_message); -#line 1167 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - self->priv->current_message = NULL; -#line 1168 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp3_ = self->priv->soup_session; -#line 1168 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_object_set (_tmp3_, "ssl-use-system-ca-file", TRUE, NULL); -#line 1162 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - return self; -#line 7102 "FacebookPublishing.c" -} - - -PublishingFacebookGraphSession* -publishing_facebook_graph_session_new (void) -{ -#line 1162 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - return publishing_facebook_graph_session_construct (PUBLISHING_FACEBOOK_TYPE_GRAPH_SESSION); -#line 7111 "FacebookPublishing.c" -} - - -static gpointer -_publishing_facebook_graph_message_ref0 (gpointer self) -{ -#line 1178 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - return self ? publishing_facebook_graph_message_ref (self) : NULL; -#line 7120 "FacebookPublishing.c" -} - - -static void -publishing_facebook_graph_session_manage_message (PublishingFacebookGraphSession* self, - PublishingFacebookGraphMessage* msg) -{ - PublishingFacebookGraphMessage* _tmp0_; - PublishingFacebookGraphMessage* _tmp1_; -#line 1175 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_return_if_fail (PUBLISHING_FACEBOOK_IS_GRAPH_SESSION (self)); -#line 1175 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_return_if_fail (PUBLISHING_FACEBOOK_IS_GRAPH_MESSAGE (msg)); -#line 1176 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp0_ = self->priv->current_message; -#line 1176 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _vala_assert (_tmp0_ == NULL, "current_message == null"); -#line 1178 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp1_ = _publishing_facebook_graph_message_ref0 (msg); -#line 1178 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _publishing_facebook_graph_message_unref0 (self->priv->current_message); -#line 1178 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - self->priv->current_message = _tmp1_; -#line 7144 "FacebookPublishing.c" -} - - -static void -publishing_facebook_graph_session_unmanage_message (PublishingFacebookGraphSession* self, - PublishingFacebookGraphMessage* msg) -{ - PublishingFacebookGraphMessage* _tmp0_; -#line 1181 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_return_if_fail (PUBLISHING_FACEBOOK_IS_GRAPH_SESSION (self)); -#line 1181 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_return_if_fail (PUBLISHING_FACEBOOK_IS_GRAPH_MESSAGE (msg)); -#line 1182 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp0_ = self->priv->current_message; -#line 1182 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _vala_assert (_tmp0_ != NULL, "current_message != null"); -#line 1184 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _publishing_facebook_graph_message_unref0 (self->priv->current_message); -#line 1184 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - self->priv->current_message = NULL; -#line 7165 "FacebookPublishing.c" -} - - -static void -_publishing_facebook_graph_session_graph_message_impl_on_wrote_body_data_soup_message_wrote_body_data (SoupMessage* _sender, - SoupBuffer* chunk, - gpointer self) -{ -#line 1203 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - publishing_facebook_graph_session_graph_message_impl_on_wrote_body_data ((PublishingFacebookGraphSessionGraphMessageImpl*) self, chunk); -#line 7176 "FacebookPublishing.c" -} - - -static void -publishing_facebook_graph_session_on_request_unqueued (PublishingFacebookGraphSession* self, - SoupMessage* msg) -{ - PublishingFacebookGraphMessage* _tmp0_; - PublishingFacebookGraphSessionGraphMessageImpl* real_message = NULL; - PublishingFacebookGraphMessage* _tmp1_; - PublishingFacebookGraphSessionGraphMessageImpl* _tmp2_; - PublishingFacebookGraphSessionGraphMessageImpl* _tmp3_; - SoupMessage* _tmp4_; - gboolean _tmp5_ = FALSE; - gboolean _tmp6_ = FALSE; - guint _tmp7_; - guint _tmp8_; - PublishingFacebookGraphSessionGraphMessageImpl* _tmp16_; - PublishingFacebookGraphSessionGraphMessageImpl* _tmp17_; - guint _tmp18_; - GError* _error_ = NULL; - guint _tmp19_; - guint _tmp20_; - GError* _tmp54_; - GError* _tmp64_; -#line 1187 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_return_if_fail (PUBLISHING_FACEBOOK_IS_GRAPH_SESSION (self)); -#line 1187 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_return_if_fail (SOUP_IS_MESSAGE (msg)); -#line 1188 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp0_ = self->priv->current_message; -#line 1188 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _vala_assert (_tmp0_ != NULL, "current_message != null"); -#line 1189 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp1_ = self->priv->current_message; -#line 1189 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp2_ = _publishing_facebook_graph_message_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, PUBLISHING_FACEBOOK_GRAPH_SESSION_TYPE_GRAPH_MESSAGE_IMPL, PublishingFacebookGraphSessionGraphMessageImpl)); -#line 1189 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - real_message = _tmp2_; -#line 1190 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp3_ = real_message; -#line 1190 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp4_ = _tmp3_->soup_message; -#line 1190 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _vala_assert (_tmp4_ == msg, "real_message.soup_message == msg"); -#line 1194 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_object_get (msg, "status-code", &_tmp7_, NULL); -#line 1194 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp8_ = _tmp7_; -#line 1194 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - if (_tmp8_ == ((guint) SOUP_STATUS_IO_ERROR)) { -#line 1194 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp6_ = TRUE; -#line 7230 "FacebookPublishing.c" - } else { - guint _tmp9_; - guint _tmp10_; -#line 1195 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_object_get (msg, "status-code", &_tmp9_, NULL); -#line 1195 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp10_ = _tmp9_; -#line 1195 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp6_ = _tmp10_ == ((guint) SOUP_STATUS_MALFORMED); -#line 7240 "FacebookPublishing.c" - } -#line 1194 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - if (_tmp6_) { -#line 1194 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp5_ = TRUE; -#line 7246 "FacebookPublishing.c" - } else { - guint _tmp11_; - guint _tmp12_; -#line 1196 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_object_get (msg, "status-code", &_tmp11_, NULL); -#line 1196 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp12_ = _tmp11_; -#line 1196 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp5_ = _tmp12_ == ((guint) SOUP_STATUS_TRY_AGAIN); -#line 7256 "FacebookPublishing.c" - } -#line 1194 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - if (_tmp5_) { -#line 7260 "FacebookPublishing.c" - PublishingFacebookGraphSessionGraphMessageImpl* _tmp13_; - SoupSession* _tmp14_; - SoupMessage* _tmp15_; -#line 1197 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp13_ = real_message; -#line 1197 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp13_->bytes_so_far = 0; -#line 1198 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp14_ = self->priv->soup_session; -#line 1198 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp15_ = _g_object_ref0 (msg); -#line 1198 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - soup_session_queue_message (_tmp14_, _tmp15_, NULL, NULL); -#line 1199 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _publishing_facebook_graph_message_unref0 (real_message); -#line 1199 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - return; -#line 7278 "FacebookPublishing.c" - } -#line 1202 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp16_ = real_message; -#line 1202 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - publishing_facebook_graph_session_unmanage_message (self, G_TYPE_CHECK_INSTANCE_CAST (_tmp16_, PUBLISHING_FACEBOOK_TYPE_GRAPH_MESSAGE, PublishingFacebookGraphMessage)); -#line 1203 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp17_ = real_message; -#line 1203 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_signal_parse_name ("wrote-body-data", soup_message_get_type (), &_tmp18_, NULL, FALSE); -#line 1203 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_signal_handlers_disconnect_matched (msg, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp18_, 0, NULL, (GCallback) _publishing_facebook_graph_session_graph_message_impl_on_wrote_body_data_soup_message_wrote_body_data, _tmp17_); -#line 1205 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _error_ = NULL; -#line 1206 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_object_get (msg, "status-code", &_tmp19_, NULL); -#line 1206 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp20_ = _tmp19_; -#line 1206 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - switch (_tmp20_) { -#line 1206 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - case SOUP_STATUS_OK: -#line 1206 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - case SOUP_STATUS_CREATED: -#line 7302 "FacebookPublishing.c" - { -#line 1211 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - break; -#line 7306 "FacebookPublishing.c" - } -#line 1206 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - case PUBLISHING_FACEBOOK_EXPIRED_SESSION_STATUS_CODE: -#line 7310 "FacebookPublishing.c" - { - GError* _tmp21_; -#line 1214 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp21_ = g_error_new_literal (SPIT_PUBLISHING_PUBLISHING_ERROR, SPIT_PUBLISHING_PUBLISHING_ERROR_EXPIRED_SESSION, "OAuth Access Token has Expired. Logout user."); -#line 1214 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _g_error_free0 (_error_); -#line 1214 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _error_ = _tmp21_; -#line 1216 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - break; -#line 7321 "FacebookPublishing.c" - } -#line 1206 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - case SOUP_STATUS_CANT_RESOLVE: -#line 1206 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - case SOUP_STATUS_CANT_RESOLVE_PROXY: -#line 7327 "FacebookPublishing.c" - { - PublishingFacebookGraphSessionGraphMessageImpl* _tmp22_; - gchar* _tmp23_; - gchar* _tmp24_; - guint _tmp25_; - guint _tmp26_; - GError* _tmp27_; -#line 1220 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp22_ = real_message; -#line 1220 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp23_ = publishing_facebook_graph_message_get_uri (G_TYPE_CHECK_INSTANCE_CAST (_tmp22_, PUBLISHING_FACEBOOK_TYPE_GRAPH_MESSAGE, PublishingFacebookGraphMessage)); -#line 1220 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp24_ = _tmp23_; -#line 1220 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_object_get (msg, "status-code", &_tmp25_, NULL); -#line 1220 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp26_ = _tmp25_; -#line 1220 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp27_ = g_error_new (SPIT_PUBLISHING_PUBLISHING_ERROR, SPIT_PUBLISHING_PUBLISHING_ERROR_NO_ANSWER, "Unable to resolve %s (error code %u)", _tmp24_, _tmp26_); -#line 1220 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _g_error_free0 (_error_); -#line 1220 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _error_ = _tmp27_; -#line 1220 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _g_free0 (_tmp24_); -#line 1222 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - break; -#line 7355 "FacebookPublishing.c" - } -#line 1206 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - case SOUP_STATUS_CANT_CONNECT: -#line 1206 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - case SOUP_STATUS_CANT_CONNECT_PROXY: -#line 7361 "FacebookPublishing.c" - { - PublishingFacebookGraphSessionGraphMessageImpl* _tmp28_; - gchar* _tmp29_; - gchar* _tmp30_; - guint _tmp31_; - guint _tmp32_; - GError* _tmp33_; -#line 1226 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp28_ = real_message; -#line 1226 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp29_ = publishing_facebook_graph_message_get_uri (G_TYPE_CHECK_INSTANCE_CAST (_tmp28_, PUBLISHING_FACEBOOK_TYPE_GRAPH_MESSAGE, PublishingFacebookGraphMessage)); -#line 1226 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp30_ = _tmp29_; -#line 1226 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_object_get (msg, "status-code", &_tmp31_, NULL); -#line 1226 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp32_ = _tmp31_; -#line 1226 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp33_ = g_error_new (SPIT_PUBLISHING_PUBLISHING_ERROR, SPIT_PUBLISHING_PUBLISHING_ERROR_NO_ANSWER, "Unable to connect to %s (error code %u)", _tmp30_, _tmp32_); -#line 1226 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _g_error_free0 (_error_); -#line 1226 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _error_ = _tmp33_; -#line 1226 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _g_free0 (_tmp30_); -#line 1228 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - break; -#line 7389 "FacebookPublishing.c" - } - default: - { - guint _tmp34_; - guint _tmp35_; -#line 1233 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_object_get (msg, "status-code", &_tmp34_, NULL); -#line 1233 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp35_ = _tmp34_; -#line 1233 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - if (_tmp35_ >= ((guint) 100)) { -#line 7401 "FacebookPublishing.c" - PublishingFacebookGraphSessionGraphMessageImpl* _tmp36_; - gchar* _tmp37_; - gchar* _tmp38_; - guint _tmp39_; - guint _tmp40_; - gchar* _tmp41_; - gchar* _tmp42_; - gchar* _tmp43_; - GError* _tmp44_; -#line 1234 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp36_ = real_message; -#line 1234 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp37_ = publishing_facebook_graph_message_get_uri (G_TYPE_CHECK_INSTANCE_CAST (_tmp36_, PUBLISHING_FACEBOOK_TYPE_GRAPH_MESSAGE, PublishingFacebookGraphMessage)); -#line 1234 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp38_ = _tmp37_; -#line 1234 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_object_get (msg, "status-code", &_tmp39_, NULL); -#line 1234 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp40_ = _tmp39_; -#line 1234 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_object_get (msg, "reason-phrase", &_tmp41_, NULL); -#line 1234 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp42_ = _tmp41_; -#line 1234 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp43_ = _tmp42_; -#line 1234 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp44_ = g_error_new (SPIT_PUBLISHING_PUBLISHING_ERROR, SPIT_PUBLISHING_PUBLISHING_ERROR_NO_ANSWER, "Service %s returned HTTP status code %u %s", _tmp38_, _tmp40_, _tmp43_); -#line 1234 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _g_error_free0 (_error_); -#line 1234 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _error_ = _tmp44_; -#line 1234 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _g_free0 (_tmp43_); -#line 1234 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _g_free0 (_tmp38_); -#line 7437 "FacebookPublishing.c" - } else { - gchar* _tmp45_; - gchar* _tmp46_; - gchar* _tmp47_; - PublishingFacebookGraphSessionGraphMessageImpl* _tmp48_; - gchar* _tmp49_; - gchar* _tmp50_; - guint _tmp51_; - guint _tmp52_; - GError* _tmp53_; -#line 1238 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_object_get (msg, "reason-phrase", &_tmp45_, NULL); -#line 1238 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp46_ = _tmp45_; -#line 1238 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp47_ = _tmp46_; -#line 1238 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_debug ("FacebookPublishing.vala:1238: %s", _tmp47_); -#line 1238 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _g_free0 (_tmp47_); -#line 1239 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp48_ = real_message; -#line 1239 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp49_ = publishing_facebook_graph_message_get_uri (G_TYPE_CHECK_INSTANCE_CAST (_tmp48_, PUBLISHING_FACEBOOK_TYPE_GRAPH_MESSAGE, PublishingFacebookGraphMessage)); -#line 1239 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp50_ = _tmp49_; -#line 1239 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_object_get (msg, "status-code", &_tmp51_, NULL); -#line 1239 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp52_ = _tmp51_; -#line 1239 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp53_ = g_error_new (SPIT_PUBLISHING_PUBLISHING_ERROR, SPIT_PUBLISHING_PUBLISHING_ERROR_NO_ANSWER, "Failure communicating with %s (error code %u)", _tmp50_, _tmp52_); -#line 1239 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _g_error_free0 (_error_); -#line 1239 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _error_ = _tmp53_; -#line 1239 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _g_free0 (_tmp50_); -#line 7476 "FacebookPublishing.c" - } -#line 1243 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - break; -#line 7480 "FacebookPublishing.c" - } - } -#line 1247 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp54_ = _error_; -#line 1247 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - if (_tmp54_ == NULL) { -#line 7487 "FacebookPublishing.c" - gboolean _tmp55_ = FALSE; - SoupMessageBody* _tmp56_; - guint8* _tmp57_; - gint _tmp57__length1; -#line 1248 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp56_ = msg->response_body; -#line 1248 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp57_ = _tmp56_->data; -#line 1248 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp57__length1 = (gint) _tmp56_->length; -#line 1248 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - if (_tmp57_ == NULL) { -#line 1248 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp55_ = TRUE; -#line 7502 "FacebookPublishing.c" - } else { - SoupMessageBody* _tmp58_; - guint8* _tmp59_; - gint _tmp59__length1; -#line 1248 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp58_ = msg->response_body; -#line 1248 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp59_ = _tmp58_->data; -#line 1248 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp59__length1 = (gint) _tmp58_->length; -#line 1248 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp55_ = _tmp59__length1 == 0; -#line 7515 "FacebookPublishing.c" - } -#line 1248 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - if (_tmp55_) { -#line 7519 "FacebookPublishing.c" - PublishingFacebookGraphSessionGraphMessageImpl* _tmp60_; - gchar* _tmp61_; - gchar* _tmp62_; - GError* _tmp63_; -#line 1249 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp60_ = real_message; -#line 1249 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp61_ = publishing_facebook_graph_message_get_uri (G_TYPE_CHECK_INSTANCE_CAST (_tmp60_, PUBLISHING_FACEBOOK_TYPE_GRAPH_MESSAGE, PublishingFacebookGraphMessage)); -#line 1249 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp62_ = _tmp61_; -#line 1249 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp63_ = g_error_new (SPIT_PUBLISHING_PUBLISHING_ERROR, SPIT_PUBLISHING_PUBLISHING_ERROR_MALFORMED_RESPONSE, "No response data from %s", _tmp62_); -#line 1249 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _g_error_free0 (_error_); -#line 1249 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _error_ = _tmp63_; -#line 1249 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _g_free0 (_tmp62_); -#line 7538 "FacebookPublishing.c" - } - } -#line 1252 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp64_ = _error_; -#line 1252 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - if (_tmp64_ == NULL) { -#line 7545 "FacebookPublishing.c" - PublishingFacebookGraphSessionGraphMessageImpl* _tmp65_; -#line 1253 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp65_ = real_message; -#line 1253 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_signal_emit (G_TYPE_CHECK_INSTANCE_CAST (_tmp65_, PUBLISHING_FACEBOOK_TYPE_GRAPH_MESSAGE, PublishingFacebookGraphMessage), publishing_facebook_graph_message_signals[PUBLISHING_FACEBOOK_GRAPH_MESSAGE_COMPLETED_SIGNAL], 0); -#line 7551 "FacebookPublishing.c" - } else { - PublishingFacebookGraphSessionGraphMessageImpl* _tmp66_; - GError* _tmp67_; -#line 1255 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp66_ = real_message; -#line 1255 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp67_ = _error_; -#line 1255 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_signal_emit (G_TYPE_CHECK_INSTANCE_CAST (_tmp66_, PUBLISHING_FACEBOOK_TYPE_GRAPH_MESSAGE, PublishingFacebookGraphMessage), publishing_facebook_graph_message_signals[PUBLISHING_FACEBOOK_GRAPH_MESSAGE_FAILED_SIGNAL], 0, _tmp67_); -#line 7561 "FacebookPublishing.c" - } -#line 1187 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _g_error_free0 (_error_); -#line 1187 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _publishing_facebook_graph_message_unref0 (real_message); -#line 7567 "FacebookPublishing.c" -} - - -void -publishing_facebook_graph_session_authenticate (PublishingFacebookGraphSession* self, - const gchar* access_token) -{ - gchar* _tmp0_; -#line 1258 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_return_if_fail (PUBLISHING_FACEBOOK_IS_GRAPH_SESSION (self)); -#line 1258 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_return_if_fail (access_token != NULL); -#line 1259 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp0_ = g_strdup (access_token); -#line 1259 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _g_free0 (self->priv->access_token); -#line 1259 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - self->priv->access_token = _tmp0_; -#line 1260 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_signal_emit (self, publishing_facebook_graph_session_signals[PUBLISHING_FACEBOOK_GRAPH_SESSION_AUTHENTICATED_SIGNAL], 0); -#line 7588 "FacebookPublishing.c" -} - - -gboolean -publishing_facebook_graph_session_is_authenticated (PublishingFacebookGraphSession* self) -{ - gboolean result = FALSE; - const gchar* _tmp0_; -#line 1263 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_return_val_if_fail (PUBLISHING_FACEBOOK_IS_GRAPH_SESSION (self), FALSE); -#line 1264 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp0_ = self->priv->access_token; -#line 1264 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - result = _tmp0_ != NULL; -#line 1264 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - return result; -#line 7605 "FacebookPublishing.c" -} - - -PublishingFacebookGraphMessage* -publishing_facebook_graph_session_new_query (PublishingFacebookGraphSession* self, - const gchar* resource_path) -{ - PublishingFacebookGraphMessage* result = NULL; - const gchar* _tmp0_; - PublishingFacebookGraphSessionGraphQueryMessage* _tmp1_; -#line 1273 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_return_val_if_fail (PUBLISHING_FACEBOOK_IS_GRAPH_SESSION (self), NULL); -#line 1273 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_return_val_if_fail (resource_path != NULL, NULL); -#line 1274 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp0_ = self->priv->access_token; -#line 1274 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp1_ = publishing_facebook_graph_session_graph_query_message_new (self, resource_path, _tmp0_); -#line 1274 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - result = G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, PUBLISHING_FACEBOOK_TYPE_GRAPH_MESSAGE, PublishingFacebookGraphMessage); -#line 1274 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - return result; -#line 7628 "FacebookPublishing.c" -} - - -PublishingFacebookGraphMessage* -publishing_facebook_graph_session_new_upload (PublishingFacebookGraphSession* self, - const gchar* resource_path, - SpitPublishingPublishable* publishable, - gboolean suppress_titling, - const gchar* resource_privacy) -{ - PublishingFacebookGraphMessage* result = NULL; - const gchar* _tmp0_; - PublishingFacebookGraphSessionGraphUploadMessage* _tmp1_; -#line 1277 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_return_val_if_fail (PUBLISHING_FACEBOOK_IS_GRAPH_SESSION (self), NULL); -#line 1277 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_return_val_if_fail (resource_path != NULL, NULL); -#line 1277 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_return_val_if_fail (SPIT_PUBLISHING_IS_PUBLISHABLE (publishable), NULL); -#line 1279 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp0_ = self->priv->access_token; -#line 1279 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp1_ = publishing_facebook_graph_session_graph_upload_message_new (self, _tmp0_, resource_path, publishable, suppress_titling, resource_privacy); -#line 1279 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - result = G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, PUBLISHING_FACEBOOK_TYPE_GRAPH_MESSAGE, PublishingFacebookGraphMessage); -#line 1279 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - return result; -#line 7656 "FacebookPublishing.c" -} - - -PublishingFacebookGraphMessage* -publishing_facebook_graph_session_new_create_album (PublishingFacebookGraphSession* self, - const gchar* album_name, - const gchar* privacy) -{ - PublishingFacebookGraphMessage* result = NULL; - const gchar* _tmp0_; - PublishingFacebookGraphSessionGraphCreateAlbumMessage* _tmp1_; -#line 1283 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_return_val_if_fail (PUBLISHING_FACEBOOK_IS_GRAPH_SESSION (self), NULL); -#line 1283 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_return_val_if_fail (album_name != NULL, NULL); -#line 1283 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_return_val_if_fail (privacy != NULL, NULL); -#line 1284 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp0_ = self->priv->access_token; -#line 1284 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp1_ = publishing_facebook_graph_session_graph_create_album_message_new (self, _tmp0_, album_name, privacy); -#line 1284 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - result = G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, PUBLISHING_FACEBOOK_TYPE_GRAPH_MESSAGE, PublishingFacebookGraphMessage); -#line 1284 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - return result; -#line 7682 "FacebookPublishing.c" -} - - -void -publishing_facebook_graph_session_send_message (PublishingFacebookGraphSession* self, - PublishingFacebookGraphMessage* message) -{ - PublishingFacebookGraphSessionGraphMessageImpl* real_message = NULL; - PublishingFacebookGraphSessionGraphMessageImpl* _tmp0_; - PublishingFacebookGraphSessionGraphMessageImpl* _tmp1_; - SoupMessage* _tmp2_; - SoupURI* _tmp3_; - SoupURI* _tmp4_; - gchar* _tmp5_; - gchar* _tmp6_; - gchar* _tmp7_; - gchar* _tmp8_; - PublishingFacebookGraphSessionGraphMessageImpl* _tmp9_; -#line 1287 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_return_if_fail (PUBLISHING_FACEBOOK_IS_GRAPH_SESSION (self)); -#line 1287 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_return_if_fail (PUBLISHING_FACEBOOK_IS_GRAPH_MESSAGE (message)); -#line 1288 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp0_ = _publishing_facebook_graph_message_ref0 (G_TYPE_CHECK_INSTANCE_CAST (message, PUBLISHING_FACEBOOK_GRAPH_SESSION_TYPE_GRAPH_MESSAGE_IMPL, PublishingFacebookGraphSessionGraphMessageImpl)); -#line 1288 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - real_message = _tmp0_; -#line 1290 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp1_ = real_message; -#line 1290 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp2_ = _tmp1_->soup_message; -#line 1290 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp3_ = soup_message_get_uri (_tmp2_); -#line 1290 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp4_ = _tmp3_; -#line 1290 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp5_ = soup_uri_to_string (_tmp4_, FALSE); -#line 1290 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp6_ = _tmp5_; -#line 1290 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp7_ = g_strconcat ("making HTTP request to URI: ", _tmp6_, NULL); -#line 1290 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp8_ = _tmp7_; -#line 1290 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_debug ("FacebookPublishing.vala:1290: %s", _tmp8_); -#line 1290 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _g_free0 (_tmp8_); -#line 1290 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _g_free0 (_tmp6_); -#line 1292 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp9_ = real_message; -#line 1292 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - if (publishing_facebook_graph_session_graph_message_impl_prepare_for_transmission (_tmp9_)) { -#line 7735 "FacebookPublishing.c" - SoupSession* _tmp10_; - PublishingFacebookGraphSessionGraphMessageImpl* _tmp11_; - SoupMessage* _tmp12_; - SoupMessage* _tmp13_; -#line 1293 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - publishing_facebook_graph_session_manage_message (self, message); -#line 1294 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp10_ = self->priv->soup_session; -#line 1294 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp11_ = real_message; -#line 1294 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp12_ = _tmp11_->soup_message; -#line 1294 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp13_ = _g_object_ref0 (_tmp12_); -#line 1294 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - soup_session_queue_message (_tmp10_, _tmp13_, NULL, NULL); -#line 7752 "FacebookPublishing.c" - } -#line 1287 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _publishing_facebook_graph_message_unref0 (real_message); -#line 7756 "FacebookPublishing.c" -} - - -void -publishing_facebook_graph_session_stop_transactions (PublishingFacebookGraphSession* self) -{ - SoupSession* _tmp0_; -#line 1298 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_return_if_fail (PUBLISHING_FACEBOOK_IS_GRAPH_SESSION (self)); -#line 1299 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp0_ = self->priv->soup_session; -#line 1299 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - soup_session_abort (_tmp0_); -#line 7770 "FacebookPublishing.c" -} - - -static PublishingFacebookGraphSessionGraphMessageImpl* -publishing_facebook_graph_session_graph_message_impl_construct (GType object_type, - PublishingFacebookGraphSession* host_session, - PublishingRESTSupportHttpMethod method, - const gchar* relative_uri, - const gchar* access_token, - PublishingFacebookEndpoint endpoint) -{ - PublishingFacebookGraphSessionGraphMessageImpl* self = NULL; - gchar* _tmp0_; - gchar* endpoint_uri = NULL; - gchar* _tmp1_; - GError * _inner_error_ = NULL; -#line 1005 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_return_val_if_fail (PUBLISHING_FACEBOOK_IS_GRAPH_SESSION (host_session), NULL); -#line 1005 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_return_val_if_fail (relative_uri != NULL, NULL); -#line 1005 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_return_val_if_fail (access_token != NULL, NULL); -#line 1005 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - self = (PublishingFacebookGraphSessionGraphMessageImpl*) publishing_facebook_graph_message_construct (object_type); -#line 1007 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - self->method = method; -#line 1008 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp0_ = g_strdup (access_token); -#line 1008 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _g_free0 (self->access_token); -#line 1008 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - self->access_token = _tmp0_; -#line 1009 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - self->host_session = host_session; -#line 1010 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - self->bytes_so_far = 0; -#line 1012 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp1_ = publishing_facebook_endpoint_to_uri (endpoint); -#line 1012 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - endpoint_uri = _tmp1_; -#line 7811 "FacebookPublishing.c" - { - GRegex* starting_slashes = NULL; - GRegex* _tmp2_; - gchar* _tmp3_ = NULL; - GRegex* _tmp4_; - gchar* _tmp5_; - const gchar* _tmp6_; - gchar* _tmp7_; -#line 1014 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp2_ = g_regex_new ("^/+", 0, 0, &_inner_error_); -#line 1014 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - starting_slashes = _tmp2_; -#line 1014 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 1014 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - if (_inner_error_->domain == G_REGEX_ERROR) { -#line 7828 "FacebookPublishing.c" - goto __catch4_g_regex_error; - } -#line 1014 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _g_free0 (endpoint_uri); -#line 1014 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 1014 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_clear_error (&_inner_error_); -#line 1014 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - return NULL; -#line 7839 "FacebookPublishing.c" - } -#line 1015 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp4_ = starting_slashes; -#line 1015 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp5_ = g_regex_replace (_tmp4_, relative_uri, (gssize) -1, 0, "", 0, &_inner_error_); -#line 1015 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp3_ = _tmp5_; -#line 1015 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 1015 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _g_regex_unref0 (starting_slashes); -#line 1015 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - if (_inner_error_->domain == G_REGEX_ERROR) { -#line 7853 "FacebookPublishing.c" - goto __catch4_g_regex_error; - } -#line 1015 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _g_regex_unref0 (starting_slashes); -#line 1015 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _g_free0 (endpoint_uri); -#line 1015 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 1015 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_clear_error (&_inner_error_); -#line 1015 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - return NULL; -#line 7866 "FacebookPublishing.c" - } -#line 1015 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp6_ = endpoint_uri; -#line 1015 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp7_ = g_strconcat (_tmp6_, _tmp3_, NULL); -#line 1015 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _g_free0 (self->uri); -#line 1015 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - self->uri = _tmp7_; -#line 1013 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _g_free0 (_tmp3_); -#line 1013 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _g_regex_unref0 (starting_slashes); -#line 7880 "FacebookPublishing.c" - } - goto __finally4; - __catch4_g_regex_error: - { - GError* err = NULL; -#line 1013 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - err = _inner_error_; -#line 1013 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _inner_error_ = NULL; -#line 1017 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_assert_not_reached (); -#line 1013 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _g_error_free0 (err); -#line 7894 "FacebookPublishing.c" - } - __finally4: -#line 1013 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 1013 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _g_free0 (endpoint_uri); -#line 1013 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 1013 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_clear_error (&_inner_error_); -#line 1013 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - return NULL; -#line 7907 "FacebookPublishing.c" - } -#line 1005 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _g_free0 (endpoint_uri); -#line 1005 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - return self; -#line 7913 "FacebookPublishing.c" -} - - -static gboolean -publishing_facebook_graph_session_graph_message_impl_real_prepare_for_transmission (PublishingFacebookGraphSessionGraphMessageImpl* self) -{ - gboolean result = FALSE; -#line 1022 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - result = TRUE; -#line 1022 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - return result; -#line 7925 "FacebookPublishing.c" -} - - -gboolean -publishing_facebook_graph_session_graph_message_impl_prepare_for_transmission (PublishingFacebookGraphSessionGraphMessageImpl* self) -{ -#line 1021 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_return_val_if_fail (PUBLISHING_FACEBOOK_GRAPH_SESSION_IS_GRAPH_MESSAGE_IMPL (self), FALSE); -#line 1021 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - return PUBLISHING_FACEBOOK_GRAPH_SESSION_GRAPH_MESSAGE_IMPL_GET_CLASS (self)->prepare_for_transmission (self); -#line 7936 "FacebookPublishing.c" -} - - -static gchar* -publishing_facebook_graph_session_graph_message_impl_real_get_uri (PublishingFacebookGraphMessage* base) -{ - PublishingFacebookGraphSessionGraphMessageImpl * self; - gchar* result = NULL; - const gchar* _tmp0_; - gchar* _tmp1_; -#line 1025 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_FACEBOOK_GRAPH_SESSION_TYPE_GRAPH_MESSAGE_IMPL, PublishingFacebookGraphSessionGraphMessageImpl); -#line 1026 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp0_ = self->uri; -#line 1026 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp1_ = g_strdup (_tmp0_); -#line 1026 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - result = _tmp1_; -#line 1026 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - return result; -#line 7957 "FacebookPublishing.c" -} - - -static gchar* -publishing_facebook_graph_session_graph_message_impl_real_get_response_body (PublishingFacebookGraphMessage* base) -{ - PublishingFacebookGraphSessionGraphMessageImpl * self; - gchar* result = NULL; - SoupMessage* _tmp0_; - SoupMessageBody* _tmp1_; - guint8* _tmp2_; - gint _tmp2__length1; - gchar* _tmp3_; -#line 1029 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_FACEBOOK_GRAPH_SESSION_TYPE_GRAPH_MESSAGE_IMPL, PublishingFacebookGraphSessionGraphMessageImpl); -#line 1030 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp0_ = self->soup_message; -#line 1030 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp1_ = _tmp0_->response_body; -#line 1030 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp2_ = _tmp1_->data; -#line 1030 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp2__length1 = (gint) _tmp1_->length; -#line 1030 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp3_ = g_strdup ((const gchar*) _tmp2_); -#line 1030 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - result = _tmp3_; -#line 1030 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - return result; -#line 7987 "FacebookPublishing.c" -} - - -static void -publishing_facebook_graph_session_graph_message_impl_on_wrote_body_data (PublishingFacebookGraphSessionGraphMessageImpl* self, - SoupBuffer* chunk) -{ - gint _tmp0_; - gsize _tmp1_; - gint _tmp2_; - SoupMessage* _tmp3_; - SoupMessageBody* _tmp4_; - gint64 _tmp5_; -#line 1033 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_return_if_fail (PUBLISHING_FACEBOOK_GRAPH_SESSION_IS_GRAPH_MESSAGE_IMPL (self)); -#line 1033 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_return_if_fail (chunk != NULL); -#line 1034 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp0_ = self->bytes_so_far; -#line 1034 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp1_ = chunk->length; -#line 1034 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - self->bytes_so_far = _tmp0_ + ((gint) _tmp1_); -#line 1036 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp2_ = self->bytes_so_far; -#line 1036 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp3_ = self->soup_message; -#line 1036 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp4_ = _tmp3_->request_body; -#line 1036 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp5_ = _tmp4_->length; -#line 1036 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_signal_emit (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_FACEBOOK_TYPE_GRAPH_MESSAGE, PublishingFacebookGraphMessage), publishing_facebook_graph_message_signals[PUBLISHING_FACEBOOK_GRAPH_MESSAGE_DATA_TRANSMITTED_SIGNAL], 0, _tmp2_, (gint) _tmp5_); -#line 8021 "FacebookPublishing.c" -} - - -static void -publishing_facebook_graph_session_graph_message_impl_class_init (PublishingFacebookGraphSessionGraphMessageImplClass * klass) -{ -#line 997 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - publishing_facebook_graph_session_graph_message_impl_parent_class = g_type_class_peek_parent (klass); -#line 997 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - ((PublishingFacebookGraphMessageClass *) klass)->finalize = publishing_facebook_graph_session_graph_message_impl_finalize; -#line 997 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - ((PublishingFacebookGraphSessionGraphMessageImplClass *) klass)->prepare_for_transmission = (gboolean (*) (PublishingFacebookGraphSessionGraphMessageImpl *)) publishing_facebook_graph_session_graph_message_impl_real_prepare_for_transmission; -#line 997 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - ((PublishingFacebookGraphMessageClass *) klass)->get_uri = (gchar* (*) (PublishingFacebookGraphMessage *)) publishing_facebook_graph_session_graph_message_impl_real_get_uri; -#line 997 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - ((PublishingFacebookGraphMessageClass *) klass)->get_response_body = (gchar* (*) (PublishingFacebookGraphMessage *)) publishing_facebook_graph_session_graph_message_impl_real_get_response_body; -#line 8038 "FacebookPublishing.c" -} - - -static void -publishing_facebook_graph_session_graph_message_impl_instance_init (PublishingFacebookGraphSessionGraphMessageImpl * self) -{ -} - - -static void -publishing_facebook_graph_session_graph_message_impl_finalize (PublishingFacebookGraphMessage * obj) -{ - PublishingFacebookGraphSessionGraphMessageImpl * self; -#line 997 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, PUBLISHING_FACEBOOK_GRAPH_SESSION_TYPE_GRAPH_MESSAGE_IMPL, PublishingFacebookGraphSessionGraphMessageImpl); -#line 999 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _g_free0 (self->uri); -#line 1000 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _g_free0 (self->access_token); -#line 1001 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _g_object_unref0 (self->soup_message); -#line 997 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - PUBLISHING_FACEBOOK_GRAPH_MESSAGE_CLASS (publishing_facebook_graph_session_graph_message_impl_parent_class)->finalize (obj); -#line 8062 "FacebookPublishing.c" -} - - -static GType -publishing_facebook_graph_session_graph_message_impl_get_type (void) -{ - static volatile gsize publishing_facebook_graph_session_graph_message_impl_type_id__volatile = 0; - if (g_once_init_enter (&publishing_facebook_graph_session_graph_message_impl_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (PublishingFacebookGraphSessionGraphMessageImplClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) publishing_facebook_graph_session_graph_message_impl_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PublishingFacebookGraphSessionGraphMessageImpl), 0, (GInstanceInitFunc) publishing_facebook_graph_session_graph_message_impl_instance_init, NULL }; - GType publishing_facebook_graph_session_graph_message_impl_type_id; - publishing_facebook_graph_session_graph_message_impl_type_id = g_type_register_static (PUBLISHING_FACEBOOK_TYPE_GRAPH_MESSAGE, "PublishingFacebookGraphSessionGraphMessageImpl", &g_define_type_info, G_TYPE_FLAG_ABSTRACT); - g_once_init_leave (&publishing_facebook_graph_session_graph_message_impl_type_id__volatile, publishing_facebook_graph_session_graph_message_impl_type_id); - } - return publishing_facebook_graph_session_graph_message_impl_type_id__volatile; -} - - -static void -_vala_SoupURI_free (SoupURI* self) -{ -#line 1041 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_boxed_free (soup_uri_get_type (), self); -#line 8085 "FacebookPublishing.c" -} - - -static PublishingFacebookGraphSessionGraphQueryMessage* -publishing_facebook_graph_session_graph_query_message_construct (GType object_type, - PublishingFacebookGraphSession* host_session, - const gchar* relative_uri, - const gchar* access_token) -{ - PublishingFacebookGraphSessionGraphQueryMessage* self = NULL; - SoupURI* destination_uri = NULL; - const gchar* _tmp0_; - gchar* _tmp1_; - gchar* _tmp2_; - gchar* _tmp3_; - gchar* _tmp4_; - SoupURI* _tmp5_; - SoupURI* _tmp6_; - PublishingRESTSupportHttpMethod _tmp7_; - gchar* _tmp8_; - gchar* _tmp9_; - SoupMessage* _tmp10_; - SoupMessage* _tmp11_; -#line 1041 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_return_val_if_fail (PUBLISHING_FACEBOOK_IS_GRAPH_SESSION (host_session), NULL); -#line 1041 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_return_val_if_fail (relative_uri != NULL, NULL); -#line 1041 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_return_val_if_fail (access_token != NULL, NULL); -#line 1043 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - self = (PublishingFacebookGraphSessionGraphQueryMessage*) publishing_facebook_graph_session_graph_message_impl_construct (object_type, host_session, PUBLISHING_REST_SUPPORT_HTTP_METHOD_GET, relative_uri, access_token, PUBLISHING_FACEBOOK_ENDPOINT_DEFAULT); -#line 1045 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp0_ = G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_FACEBOOK_GRAPH_SESSION_TYPE_GRAPH_MESSAGE_IMPL, PublishingFacebookGraphSessionGraphMessageImpl)->uri; -#line 1045 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp1_ = g_strconcat (_tmp0_, "?access_token=", NULL); -#line 1045 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp2_ = _tmp1_; -#line 1045 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp3_ = g_strconcat (_tmp2_, access_token, NULL); -#line 1045 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp4_ = _tmp3_; -#line 1045 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp5_ = soup_uri_new (_tmp4_); -#line 1045 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp6_ = _tmp5_; -#line 1045 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _g_free0 (_tmp4_); -#line 1045 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _g_free0 (_tmp2_); -#line 1045 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - destination_uri = _tmp6_; -#line 1046 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp7_ = G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_FACEBOOK_GRAPH_SESSION_TYPE_GRAPH_MESSAGE_IMPL, PublishingFacebookGraphSessionGraphMessageImpl)->method; -#line 1046 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp8_ = publishing_rest_support_http_method_to_string (_tmp7_); -#line 1046 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp9_ = _tmp8_; -#line 1046 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp10_ = soup_message_new_from_uri (_tmp9_, destination_uri); -#line 1046 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _g_object_unref0 (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_FACEBOOK_GRAPH_SESSION_TYPE_GRAPH_MESSAGE_IMPL, PublishingFacebookGraphSessionGraphMessageImpl)->soup_message); -#line 1046 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_FACEBOOK_GRAPH_SESSION_TYPE_GRAPH_MESSAGE_IMPL, PublishingFacebookGraphSessionGraphMessageImpl)->soup_message = _tmp10_; -#line 1046 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _g_free0 (_tmp9_); -#line 1047 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp11_ = G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_FACEBOOK_GRAPH_SESSION_TYPE_GRAPH_MESSAGE_IMPL, PublishingFacebookGraphSessionGraphMessageImpl)->soup_message; -#line 1047 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_signal_connect (_tmp11_, "wrote-body-data", (GCallback) _publishing_facebook_graph_session_graph_message_impl_on_wrote_body_data_soup_message_wrote_body_data, G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_FACEBOOK_GRAPH_SESSION_TYPE_GRAPH_MESSAGE_IMPL, PublishingFacebookGraphSessionGraphMessageImpl)); -#line 1041 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - __vala_SoupURI_free0 (destination_uri); -#line 1041 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - return self; -#line 8159 "FacebookPublishing.c" -} - - -static PublishingFacebookGraphSessionGraphQueryMessage* -publishing_facebook_graph_session_graph_query_message_new (PublishingFacebookGraphSession* host_session, - const gchar* relative_uri, - const gchar* access_token) -{ -#line 1041 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - return publishing_facebook_graph_session_graph_query_message_construct (PUBLISHING_FACEBOOK_GRAPH_SESSION_TYPE_GRAPH_QUERY_MESSAGE, host_session, relative_uri, access_token); -#line 8170 "FacebookPublishing.c" -} - - -static void -publishing_facebook_graph_session_graph_query_message_class_init (PublishingFacebookGraphSessionGraphQueryMessageClass * klass) -{ -#line 1040 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - publishing_facebook_graph_session_graph_query_message_parent_class = g_type_class_peek_parent (klass); -#line 8179 "FacebookPublishing.c" -} - - -static void -publishing_facebook_graph_session_graph_query_message_instance_init (PublishingFacebookGraphSessionGraphQueryMessage * self) -{ -} - - -static GType -publishing_facebook_graph_session_graph_query_message_get_type (void) -{ - static volatile gsize publishing_facebook_graph_session_graph_query_message_type_id__volatile = 0; - if (g_once_init_enter (&publishing_facebook_graph_session_graph_query_message_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (PublishingFacebookGraphSessionGraphQueryMessageClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) publishing_facebook_graph_session_graph_query_message_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PublishingFacebookGraphSessionGraphQueryMessage), 0, (GInstanceInitFunc) publishing_facebook_graph_session_graph_query_message_instance_init, NULL }; - GType publishing_facebook_graph_session_graph_query_message_type_id; - publishing_facebook_graph_session_graph_query_message_type_id = g_type_register_static (PUBLISHING_FACEBOOK_GRAPH_SESSION_TYPE_GRAPH_MESSAGE_IMPL, "PublishingFacebookGraphSessionGraphQueryMessage", &g_define_type_info, 0); - g_once_init_leave (&publishing_facebook_graph_session_graph_query_message_type_id__volatile, publishing_facebook_graph_session_graph_query_message_type_id); - } - return publishing_facebook_graph_session_graph_query_message_type_id__volatile; -} - - -static PublishingFacebookGraphSessionGraphEndpointProbeMessage* -publishing_facebook_graph_session_graph_endpoint_probe_message_construct (GType object_type, - PublishingFacebookGraphSession* host_session) -{ - PublishingFacebookGraphSessionGraphEndpointProbeMessage* self = NULL; - PublishingRESTSupportHttpMethod _tmp0_; - gchar* _tmp1_; - gchar* _tmp2_; - const gchar* _tmp3_; - SoupURI* _tmp4_; - SoupURI* _tmp5_; - SoupMessage* _tmp6_; - SoupMessage* _tmp7_; -#line 1052 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_return_val_if_fail (PUBLISHING_FACEBOOK_IS_GRAPH_SESSION (host_session), NULL); -#line 1053 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - self = (PublishingFacebookGraphSessionGraphEndpointProbeMessage*) publishing_facebook_graph_session_graph_message_impl_construct (object_type, host_session, PUBLISHING_REST_SUPPORT_HTTP_METHOD_GET, "/", "", PUBLISHING_FACEBOOK_ENDPOINT_TEST_CONNECTION); -#line 1056 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp0_ = G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_FACEBOOK_GRAPH_SESSION_TYPE_GRAPH_MESSAGE_IMPL, PublishingFacebookGraphSessionGraphMessageImpl)->method; -#line 1056 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp1_ = publishing_rest_support_http_method_to_string (_tmp0_); -#line 1056 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp2_ = _tmp1_; -#line 1056 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp3_ = G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_FACEBOOK_GRAPH_SESSION_TYPE_GRAPH_MESSAGE_IMPL, PublishingFacebookGraphSessionGraphMessageImpl)->uri; -#line 1056 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp4_ = soup_uri_new (_tmp3_); -#line 1056 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp5_ = _tmp4_; -#line 1056 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp6_ = soup_message_new_from_uri (_tmp2_, _tmp5_); -#line 1056 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _g_object_unref0 (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_FACEBOOK_GRAPH_SESSION_TYPE_GRAPH_MESSAGE_IMPL, PublishingFacebookGraphSessionGraphMessageImpl)->soup_message); -#line 1056 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_FACEBOOK_GRAPH_SESSION_TYPE_GRAPH_MESSAGE_IMPL, PublishingFacebookGraphSessionGraphMessageImpl)->soup_message = _tmp6_; -#line 1056 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - __vala_SoupURI_free0 (_tmp5_); -#line 1056 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _g_free0 (_tmp2_); -#line 1057 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp7_ = G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_FACEBOOK_GRAPH_SESSION_TYPE_GRAPH_MESSAGE_IMPL, PublishingFacebookGraphSessionGraphMessageImpl)->soup_message; -#line 1057 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_signal_connect (_tmp7_, "wrote-body-data", (GCallback) _publishing_facebook_graph_session_graph_message_impl_on_wrote_body_data_soup_message_wrote_body_data, G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_FACEBOOK_GRAPH_SESSION_TYPE_GRAPH_MESSAGE_IMPL, PublishingFacebookGraphSessionGraphMessageImpl)); -#line 1052 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - return self; -#line 8248 "FacebookPublishing.c" -} - - -static PublishingFacebookGraphSessionGraphEndpointProbeMessage* -publishing_facebook_graph_session_graph_endpoint_probe_message_new (PublishingFacebookGraphSession* host_session) -{ -#line 1052 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - return publishing_facebook_graph_session_graph_endpoint_probe_message_construct (PUBLISHING_FACEBOOK_GRAPH_SESSION_TYPE_GRAPH_ENDPOINT_PROBE_MESSAGE, host_session); -#line 8257 "FacebookPublishing.c" -} - - -static void -publishing_facebook_graph_session_graph_endpoint_probe_message_class_init (PublishingFacebookGraphSessionGraphEndpointProbeMessageClass * klass) -{ -#line 1051 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - publishing_facebook_graph_session_graph_endpoint_probe_message_parent_class = g_type_class_peek_parent (klass); -#line 8266 "FacebookPublishing.c" -} - - -static void -publishing_facebook_graph_session_graph_endpoint_probe_message_instance_init (PublishingFacebookGraphSessionGraphEndpointProbeMessage * self) -{ -} - - -static GType -publishing_facebook_graph_session_graph_endpoint_probe_message_get_type (void) -{ - static volatile gsize publishing_facebook_graph_session_graph_endpoint_probe_message_type_id__volatile = 0; - if (g_once_init_enter (&publishing_facebook_graph_session_graph_endpoint_probe_message_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (PublishingFacebookGraphSessionGraphEndpointProbeMessageClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) publishing_facebook_graph_session_graph_endpoint_probe_message_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PublishingFacebookGraphSessionGraphEndpointProbeMessage), 0, (GInstanceInitFunc) publishing_facebook_graph_session_graph_endpoint_probe_message_instance_init, NULL }; - GType publishing_facebook_graph_session_graph_endpoint_probe_message_type_id; - publishing_facebook_graph_session_graph_endpoint_probe_message_type_id = g_type_register_static (PUBLISHING_FACEBOOK_GRAPH_SESSION_TYPE_GRAPH_MESSAGE_IMPL, "PublishingFacebookGraphSessionGraphEndpointProbeMessage", &g_define_type_info, 0); - g_once_init_leave (&publishing_facebook_graph_session_graph_endpoint_probe_message_type_id__volatile, publishing_facebook_graph_session_graph_endpoint_probe_message_type_id); - } - return publishing_facebook_graph_session_graph_endpoint_probe_message_type_id__volatile; -} - - -static gchar* -g_date_time_to_string (GDateTime* self) -{ - gchar* result = NULL; - gchar* _tmp0_; -#line 2952 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - g_return_val_if_fail (self != NULL, NULL); -#line 2953 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp0_ = g_date_time_format (self, "%FT%H:%M:%S%z"); -#line 2953 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - result = _tmp0_; -#line 2953 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - return result; -#line 8303 "FacebookPublishing.c" -} - - -static void -_vala_SoupMultipart_free (SoupMultipart* self) -{ -#line 1065 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_boxed_free (soup_multipart_get_type (), self); -#line 8312 "FacebookPublishing.c" -} - - -static void -_vala_SoupBuffer_free (SoupBuffer* self) -{ -#line 1065 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_boxed_free (soup_buffer_get_type (), self); -#line 8321 "FacebookPublishing.c" -} - - -static PublishingFacebookGraphSessionGraphUploadMessage* -publishing_facebook_graph_session_graph_upload_message_construct (GType object_type, - PublishingFacebookGraphSession* host_session, - const gchar* access_token, - const gchar* relative_uri, - SpitPublishingPublishable* publishable, - gboolean suppress_titling, - const gchar* resource_privacy) -{ - PublishingFacebookGraphSessionGraphUploadMessage* self = NULL; - PublishingFacebookEndpoint _tmp0_ = 0; - gboolean _tmp1_ = FALSE; - SpitPublishingPublishable* _tmp2_; - PublishingRESTSupportHttpMethod _tmp11_; - gchar* _tmp12_; - gchar* _tmp13_; - const gchar* _tmp14_; - SoupURI* _tmp15_; - SoupURI* _tmp16_; - SoupMessage* _tmp17_; - SoupMessage* _tmp18_; - guint8* payload = NULL; - GMappedFile* _tmp19_; - gchar* _tmp20_; - gint payload_length1; - gint _payload_size_; - GMappedFile* _tmp21_; - gint _tmp22_; - SoupBuffer* image_data = NULL; - guint8* _tmp23_; - gint _tmp23__length1; - SoupBuffer* _tmp24_; - SoupMultipart* mp_envelope = NULL; - SoupMultipart* _tmp25_; - SoupMultipart* _tmp26_; - gchar* publishable_title = NULL; - gchar* _tmp28_; - gboolean _tmp29_ = FALSE; - gchar* publishable_comment = NULL; - gchar* _tmp33_; - gboolean _tmp34_ = FALSE; - const gchar* _tmp43_ = NULL; - gchar* source_file_mime_type = NULL; - gchar* _tmp44_; - SoupMultipart* _tmp45_; - GFile* _tmp46_; - GFile* _tmp47_; - gchar* _tmp48_; - gchar* _tmp49_; - const gchar* _tmp50_; - SoupBuffer* _tmp51_; - SoupMultipart* _tmp52_; - SoupMessage* _tmp53_; - SoupMessageHeaders* _tmp54_; - SoupMessage* _tmp55_; - SoupMessageBody* _tmp56_; - GError * _inner_error_ = NULL; -#line 1065 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_return_val_if_fail (PUBLISHING_FACEBOOK_IS_GRAPH_SESSION (host_session), NULL); -#line 1065 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_return_val_if_fail (access_token != NULL, NULL); -#line 1065 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_return_val_if_fail (relative_uri != NULL, NULL); -#line 1065 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_return_val_if_fail (SPIT_PUBLISHING_IS_PUBLISHABLE (publishable), NULL); -#line 1069 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - if (spit_publishing_publishable_get_media_type (publishable) == SPIT_PUBLISHING_PUBLISHER_MEDIA_TYPE_VIDEO) { -#line 1070 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp0_ = PUBLISHING_FACEBOOK_ENDPOINT_VIDEO; -#line 8394 "FacebookPublishing.c" - } else { -#line 1070 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp0_ = PUBLISHING_FACEBOOK_ENDPOINT_DEFAULT; -#line 8398 "FacebookPublishing.c" - } -#line 1068 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - self = (PublishingFacebookGraphSessionGraphUploadMessage*) publishing_facebook_graph_session_graph_message_impl_construct (object_type, host_session, PUBLISHING_REST_SUPPORT_HTTP_METHOD_POST, relative_uri, access_token, _tmp0_); -#line 1075 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - if (spit_publishing_publishable_get_media_type (publishable) != SPIT_PUBLISHING_PUBLISHER_MEDIA_TYPE_VIDEO) { -#line 1075 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp1_ = TRUE; -#line 8406 "FacebookPublishing.c" - } else { -#line 1076 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp1_ = resource_privacy != NULL; -#line 8410 "FacebookPublishing.c" - } -#line 1075 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _vala_assert (_tmp1_, "publishable.get_media_type() != Spit.Publishing.Publisher.MediaType.VIDEO || resource_privacy != null"); -#line 1078 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp2_ = _g_object_ref0 (publishable); -#line 1078 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _g_object_unref0 (self->priv->publishable); -#line 1078 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - self->priv->publishable = _tmp2_; -#line 8420 "FacebookPublishing.c" - { - GMappedFile* _tmp3_ = NULL; - GFile* _tmp4_; - GFile* _tmp5_; - gchar* _tmp6_; - gchar* _tmp7_; - GMappedFile* _tmp8_; - GMappedFile* _tmp9_; - GMappedFile* _tmp10_; -#line 1082 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp4_ = spit_publishing_publishable_get_serialized_file (publishable); -#line 1082 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp5_ = _tmp4_; -#line 1082 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp6_ = g_file_get_path (_tmp5_); -#line 1082 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp7_ = _tmp6_; -#line 1082 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp8_ = g_mapped_file_new (_tmp7_, FALSE, &_inner_error_); -#line 1082 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp9_ = _tmp8_; -#line 1082 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _g_free0 (_tmp7_); -#line 1082 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _g_object_unref0 (_tmp5_); -#line 1082 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp3_ = _tmp9_; -#line 1082 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 1082 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - if (_inner_error_->domain == G_FILE_ERROR) { -#line 8452 "FacebookPublishing.c" - goto __catch5_g_file_error; - } -#line 1082 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 1082 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_clear_error (&_inner_error_); -#line 1082 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - return NULL; -#line 8461 "FacebookPublishing.c" - } -#line 1082 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp10_ = _tmp3_; -#line 1082 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp3_ = NULL; -#line 1082 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _g_mapped_file_unref0 (self->priv->mapped_file); -#line 1082 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - self->priv->mapped_file = _tmp10_; -#line 1081 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _g_mapped_file_unref0 (_tmp3_); -#line 8473 "FacebookPublishing.c" - } - goto __finally5; - __catch5_g_file_error: - { - GError* e = NULL; -#line 1081 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - e = _inner_error_; -#line 1081 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _inner_error_ = NULL; -#line 1085 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _g_error_free0 (e); -#line 1085 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - return self; -#line 8487 "FacebookPublishing.c" - } - __finally5: -#line 1081 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 1081 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 1081 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_clear_error (&_inner_error_); -#line 1081 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - return NULL; -#line 8498 "FacebookPublishing.c" - } -#line 1088 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp11_ = G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_FACEBOOK_GRAPH_SESSION_TYPE_GRAPH_MESSAGE_IMPL, PublishingFacebookGraphSessionGraphMessageImpl)->method; -#line 1088 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp12_ = publishing_rest_support_http_method_to_string (_tmp11_); -#line 1088 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp13_ = _tmp12_; -#line 1088 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp14_ = G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_FACEBOOK_GRAPH_SESSION_TYPE_GRAPH_MESSAGE_IMPL, PublishingFacebookGraphSessionGraphMessageImpl)->uri; -#line 1088 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp15_ = soup_uri_new (_tmp14_); -#line 1088 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp16_ = _tmp15_; -#line 1088 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp17_ = soup_message_new_from_uri (_tmp13_, _tmp16_); -#line 1088 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _g_object_unref0 (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_FACEBOOK_GRAPH_SESSION_TYPE_GRAPH_MESSAGE_IMPL, PublishingFacebookGraphSessionGraphMessageImpl)->soup_message); -#line 1088 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_FACEBOOK_GRAPH_SESSION_TYPE_GRAPH_MESSAGE_IMPL, PublishingFacebookGraphSessionGraphMessageImpl)->soup_message = _tmp17_; -#line 1088 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - __vala_SoupURI_free0 (_tmp16_); -#line 1088 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _g_free0 (_tmp13_); -#line 1089 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp18_ = G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_FACEBOOK_GRAPH_SESSION_TYPE_GRAPH_MESSAGE_IMPL, PublishingFacebookGraphSessionGraphMessageImpl)->soup_message; -#line 1089 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_signal_connect (_tmp18_, "wrote-body-data", (GCallback) _publishing_facebook_graph_session_graph_message_impl_on_wrote_body_data_soup_message_wrote_body_data, G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_FACEBOOK_GRAPH_SESSION_TYPE_GRAPH_MESSAGE_IMPL, PublishingFacebookGraphSessionGraphMessageImpl)); -#line 1091 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp19_ = self->priv->mapped_file; -#line 1091 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp20_ = g_mapped_file_get_contents (_tmp19_); -#line 1091 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - payload = (guint8*) _tmp20_; -#line 1091 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - payload_length1 = sizeof (gchar) / sizeof (guint8); -#line 1091 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _payload_size_ = payload_length1; -#line 1092 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp21_ = self->priv->mapped_file; -#line 1092 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - payload_length1 = (gint) g_mapped_file_get_length (_tmp21_); -#line 1092 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp22_ = payload_length1; -#line 1094 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp23_ = payload; -#line 1094 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp23__length1 = payload_length1; -#line 1094 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp24_ = soup_buffer_new (SOUP_MEMORY_TEMPORARY, _tmp23_, _tmp23__length1); -#line 1094 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - image_data = _tmp24_; -#line 1096 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp25_ = soup_multipart_new ("multipart/form-data"); -#line 1096 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - mp_envelope = _tmp25_; -#line 1098 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp26_ = mp_envelope; -#line 1098 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - soup_multipart_append_form_string (_tmp26_, "access_token", access_token); -#line 1100 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - if (spit_publishing_publishable_get_media_type (publishable) == SPIT_PUBLISHING_PUBLISHER_MEDIA_TYPE_VIDEO) { -#line 8560 "FacebookPublishing.c" - SoupMultipart* _tmp27_; -#line 1101 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp27_ = mp_envelope; -#line 1101 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - soup_multipart_append_form_string (_tmp27_, "privacy", resource_privacy); -#line 8566 "FacebookPublishing.c" - } -#line 1104 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp28_ = spit_publishing_publishable_get_param_string (publishable, "title"); -#line 1104 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - publishable_title = _tmp28_; -#line 1105 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - if (!suppress_titling) { -#line 8574 "FacebookPublishing.c" - const gchar* _tmp30_; -#line 1105 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp30_ = publishable_title; -#line 1105 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp29_ = _tmp30_ != NULL; -#line 8580 "FacebookPublishing.c" - } else { -#line 1105 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp29_ = FALSE; -#line 8584 "FacebookPublishing.c" - } -#line 1105 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - if (_tmp29_) { -#line 8588 "FacebookPublishing.c" - SoupMultipart* _tmp31_; - const gchar* _tmp32_; -#line 1106 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp31_ = mp_envelope; -#line 1106 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp32_ = publishable_title; -#line 1106 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - soup_multipart_append_form_string (_tmp31_, "name", _tmp32_); -#line 8597 "FacebookPublishing.c" - } -#line 1109 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp33_ = spit_publishing_publishable_get_param_string (publishable, "comment"); -#line 1109 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - publishable_comment = _tmp33_; -#line 1110 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - if (!suppress_titling) { -#line 8605 "FacebookPublishing.c" - const gchar* _tmp35_; -#line 1110 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp35_ = publishable_comment; -#line 1110 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp34_ = _tmp35_ != NULL; -#line 8611 "FacebookPublishing.c" - } else { -#line 1110 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp34_ = FALSE; -#line 8615 "FacebookPublishing.c" - } -#line 1110 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - if (_tmp34_) { -#line 8619 "FacebookPublishing.c" - SoupMultipart* _tmp36_; - const gchar* _tmp37_; -#line 1111 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp36_ = mp_envelope; -#line 1111 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp37_ = publishable_comment; -#line 1111 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - soup_multipart_append_form_string (_tmp36_, "message", _tmp37_); -#line 8628 "FacebookPublishing.c" - } -#line 1114 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - if (!suppress_titling) { -#line 8632 "FacebookPublishing.c" - SoupMultipart* _tmp38_; - GDateTime* _tmp39_; - GDateTime* _tmp40_; - gchar* _tmp41_; - gchar* _tmp42_; -#line 1115 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp38_ = mp_envelope; -#line 1115 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp39_ = spit_publishing_publishable_get_exposure_date_time (publishable); -#line 1115 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp40_ = _tmp39_; -#line 1115 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp41_ = g_date_time_to_string (_tmp40_); -#line 1115 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp42_ = _tmp41_; -#line 1115 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - soup_multipart_append_form_string (_tmp38_, "backdated_time", _tmp42_); -#line 1115 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _g_free0 (_tmp42_); -#line 1115 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _g_date_time_unref0 (_tmp40_); -#line 8654 "FacebookPublishing.c" - } -#line 1118 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - if (spit_publishing_publishable_get_media_type (publishable) == SPIT_PUBLISHING_PUBLISHER_MEDIA_TYPE_VIDEO) { -#line 1119 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp43_ = "video"; -#line 8660 "FacebookPublishing.c" - } else { -#line 1119 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp43_ = "image/jpeg"; -#line 8664 "FacebookPublishing.c" - } -#line 1117 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp44_ = g_strdup (_tmp43_); -#line 1117 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - source_file_mime_type = _tmp44_; -#line 1120 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp45_ = mp_envelope; -#line 1120 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp46_ = spit_publishing_publishable_get_serialized_file (publishable); -#line 1120 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp47_ = _tmp46_; -#line 1120 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp48_ = g_file_get_basename (_tmp47_); -#line 1120 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp49_ = _tmp48_; -#line 1120 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp50_ = source_file_mime_type; -#line 1120 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp51_ = image_data; -#line 1120 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - soup_multipart_append_form_file (_tmp45_, "source", _tmp49_, _tmp50_, _tmp51_); -#line 1120 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _g_free0 (_tmp49_); -#line 1120 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _g_object_unref0 (_tmp47_); -#line 1123 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp52_ = mp_envelope; -#line 1123 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp53_ = G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_FACEBOOK_GRAPH_SESSION_TYPE_GRAPH_MESSAGE_IMPL, PublishingFacebookGraphSessionGraphMessageImpl)->soup_message; -#line 1123 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp54_ = _tmp53_->request_headers; -#line 1123 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp55_ = G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_FACEBOOK_GRAPH_SESSION_TYPE_GRAPH_MESSAGE_IMPL, PublishingFacebookGraphSessionGraphMessageImpl)->soup_message; -#line 1123 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp56_ = _tmp55_->request_body; -#line 1123 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - soup_multipart_to_message (_tmp52_, _tmp54_, _tmp56_); -#line 1065 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _g_free0 (source_file_mime_type); -#line 1065 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _g_free0 (publishable_comment); -#line 1065 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _g_free0 (publishable_title); -#line 1065 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - __vala_SoupMultipart_free0 (mp_envelope); -#line 1065 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - __vala_SoupBuffer_free0 (image_data); -#line 1065 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - return self; -#line 8714 "FacebookPublishing.c" -} - - -static PublishingFacebookGraphSessionGraphUploadMessage* -publishing_facebook_graph_session_graph_upload_message_new (PublishingFacebookGraphSession* host_session, - const gchar* access_token, - const gchar* relative_uri, - SpitPublishingPublishable* publishable, - gboolean suppress_titling, - const gchar* resource_privacy) -{ -#line 1065 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - return publishing_facebook_graph_session_graph_upload_message_construct (PUBLISHING_FACEBOOK_GRAPH_SESSION_TYPE_GRAPH_UPLOAD_MESSAGE, host_session, access_token, relative_uri, publishable, suppress_titling, resource_privacy); -#line 8728 "FacebookPublishing.c" -} - - -static gboolean -publishing_facebook_graph_session_graph_upload_message_real_prepare_for_transmission (PublishingFacebookGraphSessionGraphMessageImpl* base) -{ - PublishingFacebookGraphSessionGraphUploadMessage * self; - gboolean result = FALSE; - GMappedFile* _tmp0_; -#line 1126 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_FACEBOOK_GRAPH_SESSION_TYPE_GRAPH_UPLOAD_MESSAGE, PublishingFacebookGraphSessionGraphUploadMessage); -#line 1127 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp0_ = self->priv->mapped_file; -#line 1127 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - if (_tmp0_ == NULL) { -#line 8744 "FacebookPublishing.c" - SpitPublishingPublishable* _tmp1_; - GFile* _tmp2_; - GFile* _tmp3_; - gchar* _tmp4_; - gchar* _tmp5_; - gchar* _tmp6_; - gchar* _tmp7_; - GError* _tmp8_; - GError* _tmp9_; -#line 1128 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp1_ = self->priv->publishable; -#line 1128 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp2_ = spit_publishing_publishable_get_serialized_file (_tmp1_); -#line 1128 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp3_ = _tmp2_; -#line 1128 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp4_ = g_file_get_path (_tmp3_); -#line 1128 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp5_ = _tmp4_; -#line 1128 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp6_ = g_strdup_printf ("File %s is unavailable.", _tmp5_); -#line 1128 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp7_ = _tmp6_; -#line 1128 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp8_ = g_error_new_literal (SPIT_PUBLISHING_PUBLISHING_ERROR, SPIT_PUBLISHING_PUBLISHING_ERROR_LOCAL_FILE_ERROR, _tmp7_); -#line 1128 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp9_ = _tmp8_; -#line 1128 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_signal_emit (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_FACEBOOK_TYPE_GRAPH_MESSAGE, PublishingFacebookGraphMessage), publishing_facebook_graph_message_signals[PUBLISHING_FACEBOOK_GRAPH_MESSAGE_FAILED_SIGNAL], 0, _tmp9_); -#line 1128 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _g_error_free0 (_tmp9_); -#line 1128 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _g_free0 (_tmp7_); -#line 1128 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _g_free0 (_tmp5_); -#line 1128 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _g_object_unref0 (_tmp3_); -#line 1130 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - result = FALSE; -#line 1130 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - return result; -#line 8786 "FacebookPublishing.c" - } else { -#line 1132 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - result = TRUE; -#line 1132 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - return result; -#line 8792 "FacebookPublishing.c" - } -} - - -static void -publishing_facebook_graph_session_graph_upload_message_class_init (PublishingFacebookGraphSessionGraphUploadMessageClass * klass) -{ -#line 1061 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - publishing_facebook_graph_session_graph_upload_message_parent_class = g_type_class_peek_parent (klass); -#line 1061 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - ((PublishingFacebookGraphMessageClass *) klass)->finalize = publishing_facebook_graph_session_graph_upload_message_finalize; -#line 1061 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_type_class_add_private (klass, sizeof (PublishingFacebookGraphSessionGraphUploadMessagePrivate)); -#line 1061 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - ((PublishingFacebookGraphSessionGraphMessageImplClass *) klass)->prepare_for_transmission = (gboolean (*) (PublishingFacebookGraphSessionGraphMessageImpl *)) publishing_facebook_graph_session_graph_upload_message_real_prepare_for_transmission; -#line 8808 "FacebookPublishing.c" -} - - -static void -publishing_facebook_graph_session_graph_upload_message_instance_init (PublishingFacebookGraphSessionGraphUploadMessage * self) -{ -#line 1061 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - self->priv = PUBLISHING_FACEBOOK_GRAPH_SESSION_GRAPH_UPLOAD_MESSAGE_GET_PRIVATE (self); -#line 1062 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - self->priv->mapped_file = NULL; -#line 8819 "FacebookPublishing.c" -} - - -static void -publishing_facebook_graph_session_graph_upload_message_finalize (PublishingFacebookGraphMessage * obj) -{ - PublishingFacebookGraphSessionGraphUploadMessage * self; -#line 1061 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, PUBLISHING_FACEBOOK_GRAPH_SESSION_TYPE_GRAPH_UPLOAD_MESSAGE, PublishingFacebookGraphSessionGraphUploadMessage); -#line 1062 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _g_mapped_file_unref0 (self->priv->mapped_file); -#line 1063 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _g_object_unref0 (self->priv->publishable); -#line 1061 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - PUBLISHING_FACEBOOK_GRAPH_MESSAGE_CLASS (publishing_facebook_graph_session_graph_upload_message_parent_class)->finalize (obj); -#line 8835 "FacebookPublishing.c" -} - - -static GType -publishing_facebook_graph_session_graph_upload_message_get_type (void) -{ - static volatile gsize publishing_facebook_graph_session_graph_upload_message_type_id__volatile = 0; - if (g_once_init_enter (&publishing_facebook_graph_session_graph_upload_message_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (PublishingFacebookGraphSessionGraphUploadMessageClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) publishing_facebook_graph_session_graph_upload_message_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PublishingFacebookGraphSessionGraphUploadMessage), 0, (GInstanceInitFunc) publishing_facebook_graph_session_graph_upload_message_instance_init, NULL }; - GType publishing_facebook_graph_session_graph_upload_message_type_id; - publishing_facebook_graph_session_graph_upload_message_type_id = g_type_register_static (PUBLISHING_FACEBOOK_GRAPH_SESSION_TYPE_GRAPH_MESSAGE_IMPL, "PublishingFacebookGraphSessionGraphUploadMessage", &g_define_type_info, 0); - g_once_init_leave (&publishing_facebook_graph_session_graph_upload_message_type_id__volatile, publishing_facebook_graph_session_graph_upload_message_type_id); - } - return publishing_facebook_graph_session_graph_upload_message_type_id__volatile; -} - - -static PublishingFacebookGraphSessionGraphCreateAlbumMessage* -publishing_facebook_graph_session_graph_create_album_message_construct (GType object_type, - PublishingFacebookGraphSession* host_session, - const gchar* access_token, - const gchar* album_name, - const gchar* album_privacy) -{ - PublishingFacebookGraphSessionGraphCreateAlbumMessage* self = NULL; - gboolean _tmp0_ = FALSE; - PublishingRESTSupportHttpMethod _tmp1_; - gchar* _tmp2_; - gchar* _tmp3_; - const gchar* _tmp4_; - SoupURI* _tmp5_; - SoupURI* _tmp6_; - SoupMessage* _tmp7_; - SoupMultipart* mp_envelope = NULL; - SoupMultipart* _tmp8_; - SoupMessage* _tmp9_; - SoupMessageHeaders* _tmp10_; - SoupMessage* _tmp11_; - SoupMessageBody* _tmp12_; -#line 1138 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_return_val_if_fail (PUBLISHING_FACEBOOK_IS_GRAPH_SESSION (host_session), NULL); -#line 1138 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_return_val_if_fail (access_token != NULL, NULL); -#line 1138 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_return_val_if_fail (album_name != NULL, NULL); -#line 1138 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_return_val_if_fail (album_privacy != NULL, NULL); -#line 1140 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - self = (PublishingFacebookGraphSessionGraphCreateAlbumMessage*) publishing_facebook_graph_session_graph_message_impl_construct (object_type, host_session, PUBLISHING_REST_SUPPORT_HTTP_METHOD_POST, "/me/albums", access_token, PUBLISHING_FACEBOOK_ENDPOINT_DEFAULT); -#line 1142 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - if (album_privacy != NULL) { -#line 1142 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp0_ = g_strcmp0 (album_privacy, "") != 0; -#line 8889 "FacebookPublishing.c" - } else { -#line 1142 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp0_ = FALSE; -#line 8893 "FacebookPublishing.c" - } -#line 1142 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _vala_assert (_tmp0_, "album_privacy != null && album_privacy != \"\""); -#line 1144 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp1_ = G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_FACEBOOK_GRAPH_SESSION_TYPE_GRAPH_MESSAGE_IMPL, PublishingFacebookGraphSessionGraphMessageImpl)->method; -#line 1144 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp2_ = publishing_rest_support_http_method_to_string (_tmp1_); -#line 1144 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp3_ = _tmp2_; -#line 1144 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp4_ = G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_FACEBOOK_GRAPH_SESSION_TYPE_GRAPH_MESSAGE_IMPL, PublishingFacebookGraphSessionGraphMessageImpl)->uri; -#line 1144 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp5_ = soup_uri_new (_tmp4_); -#line 1144 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp6_ = _tmp5_; -#line 1144 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp7_ = soup_message_new_from_uri (_tmp3_, _tmp6_); -#line 1144 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _g_object_unref0 (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_FACEBOOK_GRAPH_SESSION_TYPE_GRAPH_MESSAGE_IMPL, PublishingFacebookGraphSessionGraphMessageImpl)->soup_message); -#line 1144 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_FACEBOOK_GRAPH_SESSION_TYPE_GRAPH_MESSAGE_IMPL, PublishingFacebookGraphSessionGraphMessageImpl)->soup_message = _tmp7_; -#line 1144 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - __vala_SoupURI_free0 (_tmp6_); -#line 1144 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _g_free0 (_tmp3_); -#line 1146 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp8_ = soup_multipart_new ("multipart/form-data"); -#line 1146 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - mp_envelope = _tmp8_; -#line 1148 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - soup_multipart_append_form_string (mp_envelope, "access_token", access_token); -#line 1149 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - soup_multipart_append_form_string (mp_envelope, "name", album_name); -#line 1150 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - soup_multipart_append_form_string (mp_envelope, "privacy", album_privacy); -#line 1152 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp9_ = G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_FACEBOOK_GRAPH_SESSION_TYPE_GRAPH_MESSAGE_IMPL, PublishingFacebookGraphSessionGraphMessageImpl)->soup_message; -#line 1152 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp10_ = _tmp9_->request_headers; -#line 1152 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp11_ = G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_FACEBOOK_GRAPH_SESSION_TYPE_GRAPH_MESSAGE_IMPL, PublishingFacebookGraphSessionGraphMessageImpl)->soup_message; -#line 1152 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp12_ = _tmp11_->request_body; -#line 1152 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - soup_multipart_to_message (mp_envelope, _tmp10_, _tmp12_); -#line 1138 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - __vala_SoupMultipart_free0 (mp_envelope); -#line 1138 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - return self; -#line 8943 "FacebookPublishing.c" -} - - -static PublishingFacebookGraphSessionGraphCreateAlbumMessage* -publishing_facebook_graph_session_graph_create_album_message_new (PublishingFacebookGraphSession* host_session, - const gchar* access_token, - const gchar* album_name, - const gchar* album_privacy) -{ -#line 1138 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - return publishing_facebook_graph_session_graph_create_album_message_construct (PUBLISHING_FACEBOOK_GRAPH_SESSION_TYPE_GRAPH_CREATE_ALBUM_MESSAGE, host_session, access_token, album_name, album_privacy); -#line 8955 "FacebookPublishing.c" -} - - -static void -publishing_facebook_graph_session_graph_create_album_message_class_init (PublishingFacebookGraphSessionGraphCreateAlbumMessageClass * klass) -{ -#line 1137 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - publishing_facebook_graph_session_graph_create_album_message_parent_class = g_type_class_peek_parent (klass); -#line 8964 "FacebookPublishing.c" -} - - -static void -publishing_facebook_graph_session_graph_create_album_message_instance_init (PublishingFacebookGraphSessionGraphCreateAlbumMessage * self) -{ -} - - -static GType -publishing_facebook_graph_session_graph_create_album_message_get_type (void) -{ - static volatile gsize publishing_facebook_graph_session_graph_create_album_message_type_id__volatile = 0; - if (g_once_init_enter (&publishing_facebook_graph_session_graph_create_album_message_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (PublishingFacebookGraphSessionGraphCreateAlbumMessageClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) publishing_facebook_graph_session_graph_create_album_message_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PublishingFacebookGraphSessionGraphCreateAlbumMessage), 0, (GInstanceInitFunc) publishing_facebook_graph_session_graph_create_album_message_instance_init, NULL }; - GType publishing_facebook_graph_session_graph_create_album_message_type_id; - publishing_facebook_graph_session_graph_create_album_message_type_id = g_type_register_static (PUBLISHING_FACEBOOK_GRAPH_SESSION_TYPE_GRAPH_MESSAGE_IMPL, "PublishingFacebookGraphSessionGraphCreateAlbumMessage", &g_define_type_info, 0); - g_once_init_leave (&publishing_facebook_graph_session_graph_create_album_message_type_id__volatile, publishing_facebook_graph_session_graph_create_album_message_type_id); - } - return publishing_facebook_graph_session_graph_create_album_message_type_id__volatile; -} - - -static void -publishing_facebook_value_graph_session_init (GValue* value) -{ -#line 996 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - value->data[0].v_pointer = NULL; -#line 8993 "FacebookPublishing.c" -} - - -static void -publishing_facebook_value_graph_session_free_value (GValue* value) -{ -#line 996 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - if (value->data[0].v_pointer) { -#line 996 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - publishing_facebook_graph_session_unref (value->data[0].v_pointer); -#line 9004 "FacebookPublishing.c" - } -} - - -static void -publishing_facebook_value_graph_session_copy_value (const GValue* src_value, - GValue* dest_value) -{ -#line 996 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - if (src_value->data[0].v_pointer) { -#line 996 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - dest_value->data[0].v_pointer = publishing_facebook_graph_session_ref (src_value->data[0].v_pointer); -#line 9017 "FacebookPublishing.c" - } else { -#line 996 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - dest_value->data[0].v_pointer = NULL; -#line 9021 "FacebookPublishing.c" - } -} - - -static gpointer -publishing_facebook_value_graph_session_peek_pointer (const GValue* value) -{ -#line 996 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - return value->data[0].v_pointer; -#line 9031 "FacebookPublishing.c" -} - - -static gchar* -publishing_facebook_value_graph_session_collect_value (GValue* value, - guint n_collect_values, - GTypeCValue* collect_values, - guint collect_flags) -{ -#line 996 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - if (collect_values[0].v_pointer) { -#line 9043 "FacebookPublishing.c" - PublishingFacebookGraphSession * object; - object = collect_values[0].v_pointer; -#line 996 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - if (object->parent_instance.g_class == NULL) { -#line 996 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL); -#line 9050 "FacebookPublishing.c" - } else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) { -#line 996 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - return g_strconcat ("invalid object type `", g_type_name (G_TYPE_FROM_INSTANCE (object)), "' for value type `", G_VALUE_TYPE_NAME (value), "'", NULL); -#line 9054 "FacebookPublishing.c" - } -#line 996 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - value->data[0].v_pointer = publishing_facebook_graph_session_ref (object); -#line 9058 "FacebookPublishing.c" - } else { -#line 996 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - value->data[0].v_pointer = NULL; -#line 9062 "FacebookPublishing.c" - } -#line 996 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - return NULL; -#line 9066 "FacebookPublishing.c" -} - - -static gchar* -publishing_facebook_value_graph_session_lcopy_value (const GValue* value, - guint n_collect_values, - GTypeCValue* collect_values, - guint collect_flags) -{ - PublishingFacebookGraphSession ** object_p; - object_p = collect_values[0].v_pointer; -#line 996 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - if (!object_p) { -#line 996 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value)); -#line 9082 "FacebookPublishing.c" - } -#line 996 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - if (!value->data[0].v_pointer) { -#line 996 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - *object_p = NULL; -#line 9088 "FacebookPublishing.c" - } else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) { -#line 996 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - *object_p = value->data[0].v_pointer; -#line 9092 "FacebookPublishing.c" - } else { -#line 996 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - *object_p = publishing_facebook_graph_session_ref (value->data[0].v_pointer); -#line 9096 "FacebookPublishing.c" - } -#line 996 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - return NULL; -#line 9100 "FacebookPublishing.c" -} - - -GParamSpec* -publishing_facebook_param_spec_graph_session (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags) -{ - PublishingFacebookParamSpecGraphSession* spec; -#line 996 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_return_val_if_fail (g_type_is_a (object_type, PUBLISHING_FACEBOOK_TYPE_GRAPH_SESSION), NULL); -#line 996 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags); -#line 996 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - G_PARAM_SPEC (spec)->value_type = object_type; -#line 996 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - return G_PARAM_SPEC (spec); -#line 9120 "FacebookPublishing.c" -} - - -gpointer -publishing_facebook_value_get_graph_session (const GValue* value) -{ -#line 996 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, PUBLISHING_FACEBOOK_TYPE_GRAPH_SESSION), NULL); -#line 996 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - return value->data[0].v_pointer; -#line 9131 "FacebookPublishing.c" -} - - -void -publishing_facebook_value_set_graph_session (GValue* value, - gpointer v_object) -{ - PublishingFacebookGraphSession * old; -#line 996 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, PUBLISHING_FACEBOOK_TYPE_GRAPH_SESSION)); -#line 996 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - old = value->data[0].v_pointer; -#line 996 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - if (v_object) { -#line 996 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, PUBLISHING_FACEBOOK_TYPE_GRAPH_SESSION)); -#line 996 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value))); -#line 996 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - value->data[0].v_pointer = v_object; -#line 996 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - publishing_facebook_graph_session_ref (value->data[0].v_pointer); -#line 9154 "FacebookPublishing.c" - } else { -#line 996 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - value->data[0].v_pointer = NULL; -#line 9158 "FacebookPublishing.c" - } -#line 996 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - if (old) { -#line 996 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - publishing_facebook_graph_session_unref (old); -#line 9164 "FacebookPublishing.c" - } -} - - -void -publishing_facebook_value_take_graph_session (GValue* value, - gpointer v_object) -{ - PublishingFacebookGraphSession * old; -#line 996 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, PUBLISHING_FACEBOOK_TYPE_GRAPH_SESSION)); -#line 996 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - old = value->data[0].v_pointer; -#line 996 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - if (v_object) { -#line 996 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, PUBLISHING_FACEBOOK_TYPE_GRAPH_SESSION)); -#line 996 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value))); -#line 996 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - value->data[0].v_pointer = v_object; -#line 9186 "FacebookPublishing.c" - } else { -#line 996 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - value->data[0].v_pointer = NULL; -#line 9190 "FacebookPublishing.c" - } -#line 996 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - if (old) { -#line 996 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - publishing_facebook_graph_session_unref (old); -#line 9196 "FacebookPublishing.c" - } -} - - -static void -publishing_facebook_graph_session_class_init (PublishingFacebookGraphSessionClass * klass) -{ -#line 996 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - publishing_facebook_graph_session_parent_class = g_type_class_peek_parent (klass); -#line 996 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - ((PublishingFacebookGraphSessionClass *) klass)->finalize = publishing_facebook_graph_session_finalize; -#line 996 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_type_class_add_private (klass, sizeof (PublishingFacebookGraphSessionPrivate)); -#line 996 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - publishing_facebook_graph_session_signals[PUBLISHING_FACEBOOK_GRAPH_SESSION_AUTHENTICATED_SIGNAL] = g_signal_new ("authenticated", PUBLISHING_FACEBOOK_TYPE_GRAPH_SESSION, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_marshal_VOID__VOID, G_TYPE_NONE, 0); -#line 9212 "FacebookPublishing.c" -} - - -static void -publishing_facebook_graph_session_instance_init (PublishingFacebookGraphSession * self) -{ -#line 996 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - self->priv = PUBLISHING_FACEBOOK_GRAPH_SESSION_GET_PRIVATE (self); -#line 996 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - self->ref_count = 1; -#line 9223 "FacebookPublishing.c" -} - - -static void -publishing_facebook_graph_session_finalize (PublishingFacebookGraphSession * obj) -{ - PublishingFacebookGraphSession * self; - SoupSession* _tmp0_; - guint _tmp1_; -#line 996 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, PUBLISHING_FACEBOOK_TYPE_GRAPH_SESSION, PublishingFacebookGraphSession); -#line 996 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_signal_handlers_destroy (self); -#line 1172 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp0_ = self->priv->soup_session; -#line 1172 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_signal_parse_name ("request-unqueued", soup_session_get_type (), &_tmp1_, NULL, FALSE); -#line 1172 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_signal_handlers_disconnect_matched (_tmp0_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp1_, 0, NULL, (GCallback) _publishing_facebook_graph_session_on_request_unqueued_soup_session_request_unqueued, self); -#line 1158 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _g_object_unref0 (self->priv->soup_session); -#line 1159 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _g_free0 (self->priv->access_token); -#line 1160 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _publishing_facebook_graph_message_unref0 (self->priv->current_message); -#line 9249 "FacebookPublishing.c" -} - - -GType -publishing_facebook_graph_session_get_type (void) -{ - static volatile gsize publishing_facebook_graph_session_type_id__volatile = 0; - if (g_once_init_enter (&publishing_facebook_graph_session_type_id__volatile)) { - static const GTypeValueTable g_define_type_value_table = { publishing_facebook_value_graph_session_init, publishing_facebook_value_graph_session_free_value, publishing_facebook_value_graph_session_copy_value, publishing_facebook_value_graph_session_peek_pointer, "p", publishing_facebook_value_graph_session_collect_value, "p", publishing_facebook_value_graph_session_lcopy_value }; - static const GTypeInfo g_define_type_info = { sizeof (PublishingFacebookGraphSessionClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) publishing_facebook_graph_session_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PublishingFacebookGraphSession), 0, (GInstanceInitFunc) publishing_facebook_graph_session_instance_init, &g_define_type_value_table }; - static const GTypeFundamentalInfo g_define_type_fundamental_info = { (G_TYPE_FLAG_CLASSED | G_TYPE_FLAG_INSTANTIATABLE | G_TYPE_FLAG_DERIVABLE | G_TYPE_FLAG_DEEP_DERIVABLE) }; - GType publishing_facebook_graph_session_type_id; - publishing_facebook_graph_session_type_id = g_type_register_fundamental (g_type_fundamental_next (), "PublishingFacebookGraphSession", &g_define_type_info, &g_define_type_fundamental_info, 0); - g_once_init_leave (&publishing_facebook_graph_session_type_id__volatile, publishing_facebook_graph_session_type_id); - } - return publishing_facebook_graph_session_type_id__volatile; -} - - -gpointer -publishing_facebook_graph_session_ref (gpointer instance) -{ - PublishingFacebookGraphSession * self; - self = instance; -#line 996 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_atomic_int_inc (&self->ref_count); -#line 996 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - return instance; -#line 9278 "FacebookPublishing.c" -} - - -void -publishing_facebook_graph_session_unref (gpointer instance) -{ - PublishingFacebookGraphSession * self; - self = instance; -#line 996 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - if (g_atomic_int_dec_and_test (&self->ref_count)) { -#line 996 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - PUBLISHING_FACEBOOK_GRAPH_SESSION_GET_CLASS (self)->finalize (self); -#line 996 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_type_free_instance ((GTypeInstance *) self); -#line 9293 "FacebookPublishing.c" - } -} - - -static SpitPublishingPublishable** -_vala_array_dup3 (SpitPublishingPublishable** self, - int length) -{ - SpitPublishingPublishable** result; - int i; -#line 1316 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - result = g_new0 (SpitPublishingPublishable*, length + 1); -#line 1316 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - for (i = 0; i < length; i++) { -#line 9308 "FacebookPublishing.c" - SpitPublishingPublishable* _tmp0_; -#line 1316 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp0_ = _g_object_ref0 (self[i]); -#line 1316 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - result[i] = _tmp0_; -#line 9314 "FacebookPublishing.c" - } -#line 1316 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - return result; -#line 9318 "FacebookPublishing.c" -} - - -static gpointer -_publishing_facebook_graph_session_ref0 (gpointer self) -{ -#line 1317 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - return self ? publishing_facebook_graph_session_ref (self) : NULL; -#line 9327 "FacebookPublishing.c" -} - - -static gpointer -_publishing_facebook_publishing_parameters_ref0 (gpointer self) -{ -#line 1318 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - return self ? publishing_facebook_publishing_parameters_ref (self) : NULL; -#line 9336 "FacebookPublishing.c" -} - - -PublishingFacebookUploader* -publishing_facebook_uploader_construct (GType object_type, - PublishingFacebookGraphSession* session, - PublishingFacebookPublishingParameters* publishing_params, - SpitPublishingPublishable** publishables, - int publishables_length1) -{ - PublishingFacebookUploader* self = NULL; - SpitPublishingPublishable** _tmp0_; - gint _tmp0__length1; - PublishingFacebookGraphSession* _tmp1_; - PublishingFacebookPublishingParameters* _tmp2_; -#line 1313 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_return_val_if_fail (PUBLISHING_FACEBOOK_IS_GRAPH_SESSION (session), NULL); -#line 1313 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_return_val_if_fail (PUBLISHING_FACEBOOK_IS_PUBLISHING_PARAMETERS (publishing_params), NULL); -#line 1313 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - self = (PublishingFacebookUploader*) g_type_create_instance (object_type); -#line 1315 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - self->priv->current_file = 0; -#line 1316 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp0_ = (publishables != NULL) ? _vala_array_dup3 (publishables, publishables_length1) : ((gpointer) publishables); -#line 1316 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp0__length1 = publishables_length1; -#line 1316 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - self->priv->publishables = (_vala_array_free (self->priv->publishables, self->priv->publishables_length1, (GDestroyNotify) g_object_unref), NULL); -#line 1316 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - self->priv->publishables = _tmp0_; -#line 1316 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - self->priv->publishables_length1 = _tmp0__length1; -#line 1316 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - self->priv->_publishables_size_ = self->priv->publishables_length1; -#line 1317 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp1_ = _publishing_facebook_graph_session_ref0 (session); -#line 1317 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _publishing_facebook_graph_session_unref0 (self->priv->session); -#line 1317 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - self->priv->session = _tmp1_; -#line 1318 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp2_ = _publishing_facebook_publishing_parameters_ref0 (publishing_params); -#line 1318 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _publishing_facebook_publishing_parameters_unref0 (self->priv->publishing_params); -#line 1318 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - self->priv->publishing_params = _tmp2_; -#line 1313 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - return self; -#line 9386 "FacebookPublishing.c" -} - - -PublishingFacebookUploader* -publishing_facebook_uploader_new (PublishingFacebookGraphSession* session, - PublishingFacebookPublishingParameters* publishing_params, - SpitPublishingPublishable** publishables, - int publishables_length1) -{ -#line 1313 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - return publishing_facebook_uploader_construct (PUBLISHING_FACEBOOK_TYPE_UPLOADER, session, publishing_params, publishables, publishables_length1); -#line 9398 "FacebookPublishing.c" -} - - -static void -_publishing_facebook_uploader_on_chunk_transmitted_publishing_facebook_graph_message_data_transmitted (PublishingFacebookGraphMessage* _sender, - gint bytes_sent_so_far, - gint total_bytes, - gpointer self) -{ -#line 1340 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - publishing_facebook_uploader_on_chunk_transmitted ((PublishingFacebookUploader*) self, bytes_sent_so_far, total_bytes); -#line 9410 "FacebookPublishing.c" -} - - -static void -_publishing_facebook_uploader_on_message_completed_publishing_facebook_graph_message_completed (PublishingFacebookGraphMessage* _sender, - gpointer self) -{ -#line 1341 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - publishing_facebook_uploader_on_message_completed ((PublishingFacebookUploader*) self, _sender); -#line 9420 "FacebookPublishing.c" -} - - -static void -_publishing_facebook_uploader_on_message_failed_publishing_facebook_graph_message_failed (PublishingFacebookGraphMessage* _sender, - GError* err, - gpointer self) -{ -#line 1342 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - publishing_facebook_uploader_on_message_failed ((PublishingFacebookUploader*) self, _sender, err); -#line 9431 "FacebookPublishing.c" -} - - -static void -publishing_facebook_uploader_send_current_file (PublishingFacebookUploader* self) -{ - SpitPublishingPublishable* publishable = NULL; - SpitPublishingPublishable** _tmp0_; - gint _tmp0__length1; - gint _tmp1_; - SpitPublishingPublishable* _tmp2_; - SpitPublishingPublishable* _tmp3_; - GFile* file = NULL; - SpitPublishingPublishable* _tmp4_; - GFile* _tmp5_; - GFile* _tmp6_; - gchar* _tmp8_ = NULL; - SpitPublishingPublishable* _tmp9_; - gchar* resource_uri = NULL; - gchar* _tmp15_; - const gchar* _tmp16_ = NULL; - SpitPublishingPublishable* _tmp17_; - gchar* resource_privacy = NULL; - gchar* _tmp20_; - PublishingFacebookGraphMessage* upload_message = NULL; - PublishingFacebookGraphSession* _tmp21_; - const gchar* _tmp22_; - SpitPublishingPublishable* _tmp23_; - PublishingFacebookPublishingParameters* _tmp24_; - gboolean _tmp25_; - const gchar* _tmp26_; - PublishingFacebookGraphMessage* _tmp27_; - PublishingFacebookGraphMessage* _tmp28_; - PublishingFacebookGraphMessage* _tmp29_; - PublishingFacebookGraphMessage* _tmp30_; - PublishingFacebookGraphSession* _tmp31_; - PublishingFacebookGraphMessage* _tmp32_; -#line 1321 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_return_if_fail (PUBLISHING_FACEBOOK_IS_UPLOADER (self)); -#line 1322 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp0_ = self->priv->publishables; -#line 1322 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp0__length1 = self->priv->publishables_length1; -#line 1322 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp1_ = self->priv->current_file; -#line 1322 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp2_ = _tmp0_[_tmp1_]; -#line 1322 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp3_ = _g_object_ref0 (_tmp2_); -#line 1322 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - publishable = _tmp3_; -#line 1323 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp4_ = publishable; -#line 1323 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp5_ = spit_publishing_publishable_get_serialized_file (_tmp4_); -#line 1323 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - file = _tmp5_; -#line 1326 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp6_ = file; -#line 1326 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - if (_tmp6_ == NULL) { -#line 9493 "FacebookPublishing.c" - gint _tmp7_; -#line 1327 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp7_ = self->priv->current_file; -#line 1327 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - self->priv->current_file = _tmp7_ + 1; -#line 1328 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _g_object_unref0 (file); -#line 1328 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _g_object_unref0 (publishable); -#line 1328 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - return; -#line 9505 "FacebookPublishing.c" - } -#line 1332 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp9_ = publishable; -#line 1332 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - if (spit_publishing_publishable_get_media_type (_tmp9_) == SPIT_PUBLISHING_PUBLISHER_MEDIA_TYPE_PHOTO) { -#line 9511 "FacebookPublishing.c" - PublishingFacebookPublishingParameters* _tmp10_; - gchar* _tmp11_; - gchar* _tmp12_; - gchar* _tmp13_; -#line 1333 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp10_ = self->priv->publishing_params; -#line 1333 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp11_ = publishing_facebook_publishing_parameters_get_target_album_id (_tmp10_); -#line 1333 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp12_ = _tmp11_; -#line 1333 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp13_ = g_strdup_printf ("/%s/photos", _tmp12_); -#line 1333 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _g_free0 (_tmp8_); -#line 1333 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp8_ = _tmp13_; -#line 1333 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _g_free0 (_tmp12_); -#line 9530 "FacebookPublishing.c" - } else { - gchar* _tmp14_; -#line 1333 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp14_ = g_strdup ("/me/videos"); -#line 1333 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _g_free0 (_tmp8_); -#line 1333 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp8_ = _tmp14_; -#line 9539 "FacebookPublishing.c" - } -#line 1331 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp15_ = g_strdup (_tmp8_); -#line 1331 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - resource_uri = _tmp15_; -#line 1335 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp17_ = publishable; -#line 1335 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - if (spit_publishing_publishable_get_media_type (_tmp17_) == SPIT_PUBLISHING_PUBLISHER_MEDIA_TYPE_VIDEO) { -#line 9549 "FacebookPublishing.c" - PublishingFacebookPublishingParameters* _tmp18_; - const gchar* _tmp19_; -#line 1336 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp18_ = self->priv->publishing_params; -#line 1336 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp19_ = _tmp18_->privacy_object; -#line 1336 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp16_ = _tmp19_; -#line 9558 "FacebookPublishing.c" - } else { -#line 1336 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp16_ = NULL; -#line 9562 "FacebookPublishing.c" - } -#line 1334 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp20_ = g_strdup (_tmp16_); -#line 1334 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - resource_privacy = _tmp20_; -#line 1337 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp21_ = self->priv->session; -#line 1337 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp22_ = resource_uri; -#line 1337 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp23_ = publishable; -#line 1337 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp24_ = self->priv->publishing_params; -#line 1337 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp25_ = _tmp24_->strip_metadata; -#line 1337 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp26_ = resource_privacy; -#line 1337 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp27_ = publishing_facebook_graph_session_new_upload (_tmp21_, _tmp22_, _tmp23_, _tmp25_, _tmp26_); -#line 1337 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - upload_message = _tmp27_; -#line 1340 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp28_ = upload_message; -#line 1340 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_signal_connect (_tmp28_, "data-transmitted", (GCallback) _publishing_facebook_uploader_on_chunk_transmitted_publishing_facebook_graph_message_data_transmitted, self); -#line 1341 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp29_ = upload_message; -#line 1341 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_signal_connect (_tmp29_, "completed", (GCallback) _publishing_facebook_uploader_on_message_completed_publishing_facebook_graph_message_completed, self); -#line 1342 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp30_ = upload_message; -#line 1342 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_signal_connect (_tmp30_, "failed", (GCallback) _publishing_facebook_uploader_on_message_failed_publishing_facebook_graph_message_failed, self); -#line 1344 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp31_ = self->priv->session; -#line 1344 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp32_ = upload_message; -#line 1344 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - publishing_facebook_graph_session_send_message (_tmp31_, _tmp32_); -#line 1321 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _publishing_facebook_graph_message_unref0 (upload_message); -#line 1321 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _g_free0 (resource_privacy); -#line 1321 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _g_free0 (resource_uri); -#line 1321 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _g_free0 (_tmp8_); -#line 1321 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _g_object_unref0 (file); -#line 1321 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _g_object_unref0 (publishable); -#line 9614 "FacebookPublishing.c" -} - - -static void -publishing_facebook_uploader_send_files (PublishingFacebookUploader* self) -{ -#line 1347 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_return_if_fail (PUBLISHING_FACEBOOK_IS_UPLOADER (self)); -#line 1348 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - self->priv->current_file = 0; -#line 1349 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - publishing_facebook_uploader_send_current_file (self); -#line 9627 "FacebookPublishing.c" -} - - -static void -publishing_facebook_uploader_on_chunk_transmitted (PublishingFacebookUploader* self, - gint bytes_written_so_far, - gint total_bytes) -{ - gdouble file_span = 0.0; - SpitPublishingPublishable** _tmp0_; - gint _tmp0__length1; - gdouble this_file_fraction_complete = 0.0; - gdouble fraction_complete = 0.0; - gint _tmp1_; - gdouble _tmp2_; - gdouble _tmp3_; - gdouble _tmp4_; - SpitPublishingProgressCallback _tmp5_; - void* _tmp5__target; -#line 1352 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_return_if_fail (PUBLISHING_FACEBOOK_IS_UPLOADER (self)); -#line 1353 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp0_ = self->priv->publishables; -#line 1353 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp0__length1 = self->priv->publishables_length1; -#line 1353 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - file_span = 1.0 / _tmp0__length1; -#line 1354 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - this_file_fraction_complete = ((gdouble) bytes_written_so_far) / total_bytes; -#line 1355 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp1_ = self->priv->current_file; -#line 1355 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp2_ = file_span; -#line 1355 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp3_ = this_file_fraction_complete; -#line 1355 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp4_ = file_span; -#line 1355 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - fraction_complete = (_tmp1_ * _tmp2_) + (_tmp3_ * _tmp4_); -#line 1358 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp5_ = self->priv->status_updated; -#line 1358 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp5__target = self->priv->status_updated_target; -#line 1358 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - if (_tmp5_ != NULL) { -#line 9673 "FacebookPublishing.c" - SpitPublishingProgressCallback _tmp6_; - void* _tmp6__target; - gint _tmp7_; - gdouble _tmp8_; -#line 1359 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp6_ = self->priv->status_updated; -#line 1359 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp6__target = self->priv->status_updated_target; -#line 1359 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp7_ = self->priv->current_file; -#line 1359 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp8_ = fraction_complete; -#line 1359 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp6_ (_tmp7_ + 1, _tmp8_, _tmp6__target); -#line 9688 "FacebookPublishing.c" - } -} - - -static void -publishing_facebook_uploader_on_message_completed (PublishingFacebookUploader* self, - PublishingFacebookGraphMessage* message) -{ - guint _tmp0_; - guint _tmp1_; - guint _tmp2_; - gint _tmp3_; - gint _tmp4_; - SpitPublishingPublishable** _tmp5_; - gint _tmp5__length1; -#line 1362 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_return_if_fail (PUBLISHING_FACEBOOK_IS_UPLOADER (self)); -#line 1362 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_return_if_fail (PUBLISHING_FACEBOOK_IS_GRAPH_MESSAGE (message)); -#line 1363 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_signal_parse_name ("data-transmitted", PUBLISHING_FACEBOOK_TYPE_GRAPH_MESSAGE, &_tmp0_, NULL, FALSE); -#line 1363 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_signal_handlers_disconnect_matched (message, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp0_, 0, NULL, (GCallback) _publishing_facebook_uploader_on_chunk_transmitted_publishing_facebook_graph_message_data_transmitted, self); -#line 1364 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_signal_parse_name ("completed", PUBLISHING_FACEBOOK_TYPE_GRAPH_MESSAGE, &_tmp1_, NULL, FALSE); -#line 1364 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_signal_handlers_disconnect_matched (message, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp1_, 0, NULL, (GCallback) _publishing_facebook_uploader_on_message_completed_publishing_facebook_graph_message_completed, self); -#line 1365 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_signal_parse_name ("failed", PUBLISHING_FACEBOOK_TYPE_GRAPH_MESSAGE, &_tmp2_, NULL, FALSE); -#line 1365 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_signal_handlers_disconnect_matched (message, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp2_, 0, NULL, (GCallback) _publishing_facebook_uploader_on_message_failed_publishing_facebook_graph_message_failed, self); -#line 1367 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp3_ = self->priv->current_file; -#line 1367 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - self->priv->current_file = _tmp3_ + 1; -#line 1368 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp4_ = self->priv->current_file; -#line 1368 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp5_ = self->priv->publishables; -#line 1368 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp5__length1 = self->priv->publishables_length1; -#line 1368 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - if (_tmp4_ < _tmp5__length1) { -#line 1369 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - publishing_facebook_uploader_send_current_file (self); -#line 9734 "FacebookPublishing.c" - } else { - gint _tmp6_; -#line 1371 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp6_ = self->priv->current_file; -#line 1371 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_signal_emit (self, publishing_facebook_uploader_signals[PUBLISHING_FACEBOOK_UPLOADER_UPLOAD_COMPLETE_SIGNAL], 0, _tmp6_); -#line 9741 "FacebookPublishing.c" - } -} - - -static void -publishing_facebook_uploader_on_message_failed (PublishingFacebookUploader* self, - PublishingFacebookGraphMessage* message, - GError* _error_) -{ - guint _tmp0_; - guint _tmp1_; - guint _tmp2_; -#line 1375 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_return_if_fail (PUBLISHING_FACEBOOK_IS_UPLOADER (self)); -#line 1375 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_return_if_fail (PUBLISHING_FACEBOOK_IS_GRAPH_MESSAGE (message)); -#line 1376 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_signal_parse_name ("data-transmitted", PUBLISHING_FACEBOOK_TYPE_GRAPH_MESSAGE, &_tmp0_, NULL, FALSE); -#line 1376 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_signal_handlers_disconnect_matched (message, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp0_, 0, NULL, (GCallback) _publishing_facebook_uploader_on_chunk_transmitted_publishing_facebook_graph_message_data_transmitted, self); -#line 1377 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_signal_parse_name ("completed", PUBLISHING_FACEBOOK_TYPE_GRAPH_MESSAGE, &_tmp1_, NULL, FALSE); -#line 1377 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_signal_handlers_disconnect_matched (message, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp1_, 0, NULL, (GCallback) _publishing_facebook_uploader_on_message_completed_publishing_facebook_graph_message_completed, self); -#line 1378 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_signal_parse_name ("failed", PUBLISHING_FACEBOOK_TYPE_GRAPH_MESSAGE, &_tmp2_, NULL, FALSE); -#line 1378 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_signal_handlers_disconnect_matched (message, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp2_, 0, NULL, (GCallback) _publishing_facebook_uploader_on_message_failed_publishing_facebook_graph_message_failed, self); -#line 1380 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_signal_emit (self, publishing_facebook_uploader_signals[PUBLISHING_FACEBOOK_UPLOADER_UPLOAD_ERROR_SIGNAL], 0, _error_); -#line 9772 "FacebookPublishing.c" -} - - -void -publishing_facebook_uploader_upload (PublishingFacebookUploader* self, - SpitPublishingProgressCallback status_updated, - void* status_updated_target) -{ - SpitPublishingPublishable** _tmp0_; - gint _tmp0__length1; -#line 1383 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_return_if_fail (PUBLISHING_FACEBOOK_IS_UPLOADER (self)); -#line 1384 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - self->priv->status_updated = status_updated; -#line 1384 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - self->priv->status_updated_target = status_updated_target; -#line 1386 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp0_ = self->priv->publishables; -#line 1386 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp0__length1 = self->priv->publishables_length1; -#line 1386 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - if (_tmp0__length1 > 0) { -#line 1387 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - publishing_facebook_uploader_send_files (self); -#line 9797 "FacebookPublishing.c" - } -} - - -static void -publishing_facebook_value_uploader_init (GValue* value) -{ -#line 1303 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - value->data[0].v_pointer = NULL; -#line 9807 "FacebookPublishing.c" -} - - -static void -publishing_facebook_value_uploader_free_value (GValue* value) -{ -#line 1303 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - if (value->data[0].v_pointer) { -#line 1303 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - publishing_facebook_uploader_unref (value->data[0].v_pointer); -#line 9818 "FacebookPublishing.c" - } -} - - -static void -publishing_facebook_value_uploader_copy_value (const GValue* src_value, - GValue* dest_value) -{ -#line 1303 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - if (src_value->data[0].v_pointer) { -#line 1303 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - dest_value->data[0].v_pointer = publishing_facebook_uploader_ref (src_value->data[0].v_pointer); -#line 9831 "FacebookPublishing.c" - } else { -#line 1303 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - dest_value->data[0].v_pointer = NULL; -#line 9835 "FacebookPublishing.c" - } -} - - -static gpointer -publishing_facebook_value_uploader_peek_pointer (const GValue* value) -{ -#line 1303 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - return value->data[0].v_pointer; -#line 9845 "FacebookPublishing.c" -} - - -static gchar* -publishing_facebook_value_uploader_collect_value (GValue* value, - guint n_collect_values, - GTypeCValue* collect_values, - guint collect_flags) -{ -#line 1303 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - if (collect_values[0].v_pointer) { -#line 9857 "FacebookPublishing.c" - PublishingFacebookUploader * object; - object = collect_values[0].v_pointer; -#line 1303 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - if (object->parent_instance.g_class == NULL) { -#line 1303 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL); -#line 9864 "FacebookPublishing.c" - } else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) { -#line 1303 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - return g_strconcat ("invalid object type `", g_type_name (G_TYPE_FROM_INSTANCE (object)), "' for value type `", G_VALUE_TYPE_NAME (value), "'", NULL); -#line 9868 "FacebookPublishing.c" - } -#line 1303 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - value->data[0].v_pointer = publishing_facebook_uploader_ref (object); -#line 9872 "FacebookPublishing.c" - } else { -#line 1303 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - value->data[0].v_pointer = NULL; -#line 9876 "FacebookPublishing.c" - } -#line 1303 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - return NULL; -#line 9880 "FacebookPublishing.c" -} - - -static gchar* -publishing_facebook_value_uploader_lcopy_value (const GValue* value, - guint n_collect_values, - GTypeCValue* collect_values, - guint collect_flags) -{ - PublishingFacebookUploader ** object_p; - object_p = collect_values[0].v_pointer; -#line 1303 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - if (!object_p) { -#line 1303 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value)); -#line 9896 "FacebookPublishing.c" - } -#line 1303 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - if (!value->data[0].v_pointer) { -#line 1303 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - *object_p = NULL; -#line 9902 "FacebookPublishing.c" - } else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) { -#line 1303 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - *object_p = value->data[0].v_pointer; -#line 9906 "FacebookPublishing.c" - } else { -#line 1303 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - *object_p = publishing_facebook_uploader_ref (value->data[0].v_pointer); -#line 9910 "FacebookPublishing.c" - } -#line 1303 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - return NULL; -#line 9914 "FacebookPublishing.c" -} - - -GParamSpec* -publishing_facebook_param_spec_uploader (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags) -{ - PublishingFacebookParamSpecUploader* spec; -#line 1303 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_return_val_if_fail (g_type_is_a (object_type, PUBLISHING_FACEBOOK_TYPE_UPLOADER), NULL); -#line 1303 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags); -#line 1303 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - G_PARAM_SPEC (spec)->value_type = object_type; -#line 1303 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - return G_PARAM_SPEC (spec); -#line 9934 "FacebookPublishing.c" -} - - -gpointer -publishing_facebook_value_get_uploader (const GValue* value) -{ -#line 1303 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, PUBLISHING_FACEBOOK_TYPE_UPLOADER), NULL); -#line 1303 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - return value->data[0].v_pointer; -#line 9945 "FacebookPublishing.c" -} - - -void -publishing_facebook_value_set_uploader (GValue* value, - gpointer v_object) -{ - PublishingFacebookUploader * old; -#line 1303 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, PUBLISHING_FACEBOOK_TYPE_UPLOADER)); -#line 1303 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - old = value->data[0].v_pointer; -#line 1303 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - if (v_object) { -#line 1303 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, PUBLISHING_FACEBOOK_TYPE_UPLOADER)); -#line 1303 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value))); -#line 1303 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - value->data[0].v_pointer = v_object; -#line 1303 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - publishing_facebook_uploader_ref (value->data[0].v_pointer); -#line 9968 "FacebookPublishing.c" - } else { -#line 1303 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - value->data[0].v_pointer = NULL; -#line 9972 "FacebookPublishing.c" - } -#line 1303 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - if (old) { -#line 1303 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - publishing_facebook_uploader_unref (old); -#line 9978 "FacebookPublishing.c" - } -} - - -void -publishing_facebook_value_take_uploader (GValue* value, - gpointer v_object) -{ - PublishingFacebookUploader * old; -#line 1303 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, PUBLISHING_FACEBOOK_TYPE_UPLOADER)); -#line 1303 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - old = value->data[0].v_pointer; -#line 1303 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - if (v_object) { -#line 1303 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, PUBLISHING_FACEBOOK_TYPE_UPLOADER)); -#line 1303 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value))); -#line 1303 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - value->data[0].v_pointer = v_object; -#line 10000 "FacebookPublishing.c" - } else { -#line 1303 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - value->data[0].v_pointer = NULL; -#line 10004 "FacebookPublishing.c" - } -#line 1303 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - if (old) { -#line 1303 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - publishing_facebook_uploader_unref (old); -#line 10010 "FacebookPublishing.c" - } -} - - -static void -publishing_facebook_uploader_class_init (PublishingFacebookUploaderClass * klass) -{ -#line 1303 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - publishing_facebook_uploader_parent_class = g_type_class_peek_parent (klass); -#line 1303 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - ((PublishingFacebookUploaderClass *) klass)->finalize = publishing_facebook_uploader_finalize; -#line 1303 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_type_class_add_private (klass, sizeof (PublishingFacebookUploaderPrivate)); -#line 1303 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - publishing_facebook_uploader_signals[PUBLISHING_FACEBOOK_UPLOADER_UPLOAD_COMPLETE_SIGNAL] = g_signal_new ("upload-complete", PUBLISHING_FACEBOOK_TYPE_UPLOADER, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_marshal_VOID__INT, G_TYPE_NONE, 1, G_TYPE_INT); -#line 1303 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - publishing_facebook_uploader_signals[PUBLISHING_FACEBOOK_UPLOADER_UPLOAD_ERROR_SIGNAL] = g_signal_new ("upload-error", PUBLISHING_FACEBOOK_TYPE_UPLOADER, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_marshal_VOID__POINTER, G_TYPE_NONE, 1, G_TYPE_POINTER); -#line 10028 "FacebookPublishing.c" -} - - -static void -publishing_facebook_uploader_instance_init (PublishingFacebookUploader * self) -{ -#line 1303 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - self->priv = PUBLISHING_FACEBOOK_UPLOADER_GET_PRIVATE (self); -#line 1308 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - self->priv->status_updated = NULL; -#line 1308 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - self->priv->status_updated_target = self; -#line 1303 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - self->ref_count = 1; -#line 10043 "FacebookPublishing.c" -} - - -static void -publishing_facebook_uploader_finalize (PublishingFacebookUploader * obj) -{ - PublishingFacebookUploader * self; -#line 1303 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, PUBLISHING_FACEBOOK_TYPE_UPLOADER, PublishingFacebookUploader); -#line 1303 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_signal_handlers_destroy (self); -#line 1305 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - self->priv->publishables = (_vala_array_free (self->priv->publishables, self->priv->publishables_length1, (GDestroyNotify) g_object_unref), NULL); -#line 1306 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _publishing_facebook_graph_session_unref0 (self->priv->session); -#line 1307 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _publishing_facebook_publishing_parameters_unref0 (self->priv->publishing_params); -#line 10061 "FacebookPublishing.c" -} - - -GType -publishing_facebook_uploader_get_type (void) -{ - static volatile gsize publishing_facebook_uploader_type_id__volatile = 0; - if (g_once_init_enter (&publishing_facebook_uploader_type_id__volatile)) { - static const GTypeValueTable g_define_type_value_table = { publishing_facebook_value_uploader_init, publishing_facebook_value_uploader_free_value, publishing_facebook_value_uploader_copy_value, publishing_facebook_value_uploader_peek_pointer, "p", publishing_facebook_value_uploader_collect_value, "p", publishing_facebook_value_uploader_lcopy_value }; - static const GTypeInfo g_define_type_info = { sizeof (PublishingFacebookUploaderClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) publishing_facebook_uploader_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PublishingFacebookUploader), 0, (GInstanceInitFunc) publishing_facebook_uploader_instance_init, &g_define_type_value_table }; - static const GTypeFundamentalInfo g_define_type_fundamental_info = { (G_TYPE_FLAG_CLASSED | G_TYPE_FLAG_INSTANTIATABLE | G_TYPE_FLAG_DERIVABLE | G_TYPE_FLAG_DEEP_DERIVABLE) }; - GType publishing_facebook_uploader_type_id; - publishing_facebook_uploader_type_id = g_type_register_fundamental (g_type_fundamental_next (), "PublishingFacebookUploader", &g_define_type_info, &g_define_type_fundamental_info, 0); - g_once_init_leave (&publishing_facebook_uploader_type_id__volatile, publishing_facebook_uploader_type_id); - } - return publishing_facebook_uploader_type_id__volatile; -} - - -gpointer -publishing_facebook_uploader_ref (gpointer instance) -{ - PublishingFacebookUploader * self; - self = instance; -#line 1303 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_atomic_int_inc (&self->ref_count); -#line 1303 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - return instance; -#line 10090 "FacebookPublishing.c" -} - - -void -publishing_facebook_uploader_unref (gpointer instance) -{ - PublishingFacebookUploader * self; - self = instance; -#line 1303 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - if (g_atomic_int_dec_and_test (&self->ref_count)) { -#line 1303 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - PUBLISHING_FACEBOOK_UPLOADER_GET_CLASS (self)->finalize (self); -#line 1303 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_type_free_instance ((GTypeInstance *) self); -#line 10105 "FacebookPublishing.c" - } -} - - -static void -_vala_array_destroy (gpointer array, - gint array_length, - GDestroyNotify destroy_func) -{ - if ((array != NULL) && (destroy_func != NULL)) { - int i; - for (i = 0; i < array_length; i = i + 1) { - if (((gpointer*) array)[i] != NULL) { - destroy_func (((gpointer*) array)[i]); - } - } - } -} - - -static void -_vala_array_free (gpointer array, - gint array_length, - GDestroyNotify destroy_func) -{ - _vala_array_destroy (array, array_length, destroy_func); - g_free (array); -} - - - diff --git a/plugins/shotwell-publishing/FlickrPublishing.c b/plugins/shotwell-publishing/FlickrPublishing.c deleted file mode 100644 index 1601192..0000000 --- a/plugins/shotwell-publishing/FlickrPublishing.c +++ /dev/null @@ -1,6939 +0,0 @@ -/* FlickrPublishing.c generated by valac 0.40.4, the Vala compiler - * generated from FlickrPublishing.vala, do not modify */ - -/* Copyright 2016 Software Freedom Conservancy Inc. - * - * This software is licensed under the GNU Lesser General Public License - * (version 2.1 or later). See the COPYING file in this distribution. - */ - - -#include -#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_FLICKR_SERVICE (flickr_service_get_type ()) -#define FLICKR_SERVICE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_FLICKR_SERVICE, FlickrService)) -#define FLICKR_SERVICE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_FLICKR_SERVICE, FlickrServiceClass)) -#define IS_FLICKR_SERVICE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_FLICKR_SERVICE)) -#define IS_FLICKR_SERVICE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_FLICKR_SERVICE)) -#define FLICKR_SERVICE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_FLICKR_SERVICE, FlickrServiceClass)) - -typedef struct _FlickrService FlickrService; -typedef struct _FlickrServiceClass FlickrServiceClass; -typedef struct _FlickrServicePrivate FlickrServicePrivate; -enum { - FLICKR_SERVICE_0_PROPERTY, - FLICKR_SERVICE_NUM_PROPERTIES -}; -static GParamSpec* flickr_service_properties[FLICKR_SERVICE_NUM_PROPERTIES]; -#define _g_free0(var) (var = (g_free (var), NULL)) - -#define PUBLISHING_FLICKR_TYPE_FLICKR_PUBLISHER (publishing_flickr_flickr_publisher_get_type ()) -#define PUBLISHING_FLICKR_FLICKR_PUBLISHER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_FLICKR_TYPE_FLICKR_PUBLISHER, PublishingFlickrFlickrPublisher)) -#define PUBLISHING_FLICKR_FLICKR_PUBLISHER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_FLICKR_TYPE_FLICKR_PUBLISHER, PublishingFlickrFlickrPublisherClass)) -#define PUBLISHING_FLICKR_IS_FLICKR_PUBLISHER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_FLICKR_TYPE_FLICKR_PUBLISHER)) -#define PUBLISHING_FLICKR_IS_FLICKR_PUBLISHER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_FLICKR_TYPE_FLICKR_PUBLISHER)) -#define PUBLISHING_FLICKR_FLICKR_PUBLISHER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_FLICKR_TYPE_FLICKR_PUBLISHER, PublishingFlickrFlickrPublisherClass)) - -typedef struct _PublishingFlickrFlickrPublisher PublishingFlickrFlickrPublisher; -typedef struct _PublishingFlickrFlickrPublisherClass PublishingFlickrFlickrPublisherClass; - -#define PUBLISHING_FLICKR_TYPE_USER_KIND (publishing_flickr_user_kind_get_type ()) - -#define PUBLISHING_FLICKR_TYPE_VISIBILITY_SPECIFICATION (publishing_flickr_visibility_specification_get_type ()) -#define PUBLISHING_FLICKR_VISIBILITY_SPECIFICATION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_FLICKR_TYPE_VISIBILITY_SPECIFICATION, PublishingFlickrVisibilitySpecification)) -#define PUBLISHING_FLICKR_VISIBILITY_SPECIFICATION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_FLICKR_TYPE_VISIBILITY_SPECIFICATION, PublishingFlickrVisibilitySpecificationClass)) -#define PUBLISHING_FLICKR_IS_VISIBILITY_SPECIFICATION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_FLICKR_TYPE_VISIBILITY_SPECIFICATION)) -#define PUBLISHING_FLICKR_IS_VISIBILITY_SPECIFICATION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_FLICKR_TYPE_VISIBILITY_SPECIFICATION)) -#define PUBLISHING_FLICKR_VISIBILITY_SPECIFICATION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_FLICKR_TYPE_VISIBILITY_SPECIFICATION, PublishingFlickrVisibilitySpecificationClass)) - -typedef struct _PublishingFlickrVisibilitySpecification PublishingFlickrVisibilitySpecification; -typedef struct _PublishingFlickrVisibilitySpecificationClass PublishingFlickrVisibilitySpecificationClass; -typedef struct _PublishingFlickrVisibilitySpecificationPrivate PublishingFlickrVisibilitySpecificationPrivate; -typedef struct _PublishingFlickrParamSpecVisibilitySpecification PublishingFlickrParamSpecVisibilitySpecification; - -#define PUBLISHING_FLICKR_TYPE_PUBLISHING_PARAMETERS (publishing_flickr_publishing_parameters_get_type ()) -#define PUBLISHING_FLICKR_PUBLISHING_PARAMETERS(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_FLICKR_TYPE_PUBLISHING_PARAMETERS, PublishingFlickrPublishingParameters)) -#define PUBLISHING_FLICKR_PUBLISHING_PARAMETERS_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_FLICKR_TYPE_PUBLISHING_PARAMETERS, PublishingFlickrPublishingParametersClass)) -#define PUBLISHING_FLICKR_IS_PUBLISHING_PARAMETERS(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_FLICKR_TYPE_PUBLISHING_PARAMETERS)) -#define PUBLISHING_FLICKR_IS_PUBLISHING_PARAMETERS_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_FLICKR_TYPE_PUBLISHING_PARAMETERS)) -#define PUBLISHING_FLICKR_PUBLISHING_PARAMETERS_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_FLICKR_TYPE_PUBLISHING_PARAMETERS, PublishingFlickrPublishingParametersClass)) - -typedef struct _PublishingFlickrPublishingParameters PublishingFlickrPublishingParameters; -typedef struct _PublishingFlickrPublishingParametersClass PublishingFlickrPublishingParametersClass; -typedef struct _PublishingFlickrPublishingParametersPrivate PublishingFlickrPublishingParametersPrivate; -#define _publishing_flickr_visibility_specification_unref0(var) ((var == NULL) ? NULL : (var = (publishing_flickr_visibility_specification_unref (var), NULL))) -typedef struct _PublishingFlickrParamSpecPublishingParameters PublishingFlickrParamSpecPublishingParameters; -typedef struct _PublishingFlickrFlickrPublisherPrivate PublishingFlickrFlickrPublisherPrivate; - -#define PUBLISHING_FLICKR_TYPE_PUBLISHING_OPTIONS_PANE (publishing_flickr_publishing_options_pane_get_type ()) -#define PUBLISHING_FLICKR_PUBLISHING_OPTIONS_PANE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_FLICKR_TYPE_PUBLISHING_OPTIONS_PANE, PublishingFlickrPublishingOptionsPane)) -#define PUBLISHING_FLICKR_PUBLISHING_OPTIONS_PANE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_FLICKR_TYPE_PUBLISHING_OPTIONS_PANE, PublishingFlickrPublishingOptionsPaneClass)) -#define PUBLISHING_FLICKR_IS_PUBLISHING_OPTIONS_PANE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_FLICKR_TYPE_PUBLISHING_OPTIONS_PANE)) -#define PUBLISHING_FLICKR_IS_PUBLISHING_OPTIONS_PANE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_FLICKR_TYPE_PUBLISHING_OPTIONS_PANE)) -#define PUBLISHING_FLICKR_PUBLISHING_OPTIONS_PANE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_FLICKR_TYPE_PUBLISHING_OPTIONS_PANE, PublishingFlickrPublishingOptionsPaneClass)) - -typedef struct _PublishingFlickrPublishingOptionsPane PublishingFlickrPublishingOptionsPane; -typedef struct _PublishingFlickrPublishingOptionsPaneClass PublishingFlickrPublishingOptionsPaneClass; -enum { - PUBLISHING_FLICKR_FLICKR_PUBLISHER_0_PROPERTY, - PUBLISHING_FLICKR_FLICKR_PUBLISHER_NUM_PROPERTIES -}; -static GParamSpec* publishing_flickr_flickr_publisher_properties[PUBLISHING_FLICKR_FLICKR_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 _publishing_flickr_publishing_parameters_unref0(var) ((var == NULL) ? NULL : (var = (publishing_flickr_publishing_parameters_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_FLICKR_TYPE_ACCOUNT_INFO_FETCH_TRANSACTION (publishing_flickr_account_info_fetch_transaction_get_type ()) -#define PUBLISHING_FLICKR_ACCOUNT_INFO_FETCH_TRANSACTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_FLICKR_TYPE_ACCOUNT_INFO_FETCH_TRANSACTION, PublishingFlickrAccountInfoFetchTransaction)) -#define PUBLISHING_FLICKR_ACCOUNT_INFO_FETCH_TRANSACTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_FLICKR_TYPE_ACCOUNT_INFO_FETCH_TRANSACTION, PublishingFlickrAccountInfoFetchTransactionClass)) -#define PUBLISHING_FLICKR_IS_ACCOUNT_INFO_FETCH_TRANSACTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_FLICKR_TYPE_ACCOUNT_INFO_FETCH_TRANSACTION)) -#define PUBLISHING_FLICKR_IS_ACCOUNT_INFO_FETCH_TRANSACTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_FLICKR_TYPE_ACCOUNT_INFO_FETCH_TRANSACTION)) -#define PUBLISHING_FLICKR_ACCOUNT_INFO_FETCH_TRANSACTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_FLICKR_TYPE_ACCOUNT_INFO_FETCH_TRANSACTION, PublishingFlickrAccountInfoFetchTransactionClass)) - -typedef struct _PublishingFlickrAccountInfoFetchTransaction PublishingFlickrAccountInfoFetchTransaction; -typedef struct _PublishingFlickrAccountInfoFetchTransactionClass PublishingFlickrAccountInfoFetchTransactionClass; -#define _publishing_rest_support_transaction_unref0(var) ((var == NULL) ? NULL : (var = (publishing_rest_support_transaction_unref (var), NULL))) -#define _g_error_free0(var) ((var == NULL) ? NULL : (var = (g_error_free (var), NULL))) -#define _publishing_rest_support_xml_document_unref0(var) ((var == NULL) ? NULL : (var = (publishing_rest_support_xml_document_unref (var), NULL))) -#define _g_date_time_unref0(var) ((var == NULL) ? NULL : (var = (g_date_time_unref (var), NULL))) - -#define PUBLISHING_FLICKR_TYPE_UPLOADER (publishing_flickr_uploader_get_type ()) -#define PUBLISHING_FLICKR_UPLOADER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_FLICKR_TYPE_UPLOADER, PublishingFlickrUploader)) -#define PUBLISHING_FLICKR_UPLOADER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_FLICKR_TYPE_UPLOADER, PublishingFlickrUploaderClass)) -#define PUBLISHING_FLICKR_IS_UPLOADER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_FLICKR_TYPE_UPLOADER)) -#define PUBLISHING_FLICKR_IS_UPLOADER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_FLICKR_TYPE_UPLOADER)) -#define PUBLISHING_FLICKR_UPLOADER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_FLICKR_TYPE_UPLOADER, PublishingFlickrUploaderClass)) - -typedef struct _PublishingFlickrUploader PublishingFlickrUploader; -typedef struct _PublishingFlickrUploaderClass PublishingFlickrUploaderClass; -#define _publishing_rest_support_batch_uploader_unref0(var) ((var == NULL) ? NULL : (var = (publishing_rest_support_batch_uploader_unref (var), NULL))) -typedef struct _PublishingFlickrAccountInfoFetchTransactionPrivate PublishingFlickrAccountInfoFetchTransactionPrivate; - -#define PUBLISHING_FLICKR_TYPE_UPLOAD_TRANSACTION (publishing_flickr_upload_transaction_get_type ()) -#define PUBLISHING_FLICKR_UPLOAD_TRANSACTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_FLICKR_TYPE_UPLOAD_TRANSACTION, PublishingFlickrUploadTransaction)) -#define PUBLISHING_FLICKR_UPLOAD_TRANSACTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_FLICKR_TYPE_UPLOAD_TRANSACTION, PublishingFlickrUploadTransactionClass)) -#define PUBLISHING_FLICKR_IS_UPLOAD_TRANSACTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_FLICKR_TYPE_UPLOAD_TRANSACTION)) -#define PUBLISHING_FLICKR_IS_UPLOAD_TRANSACTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_FLICKR_TYPE_UPLOAD_TRANSACTION)) -#define PUBLISHING_FLICKR_UPLOAD_TRANSACTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_FLICKR_TYPE_UPLOAD_TRANSACTION, PublishingFlickrUploadTransactionClass)) - -typedef struct _PublishingFlickrUploadTransaction PublishingFlickrUploadTransaction; -typedef struct _PublishingFlickrUploadTransactionClass PublishingFlickrUploadTransactionClass; -typedef struct _PublishingFlickrUploadTransactionPrivate PublishingFlickrUploadTransactionPrivate; -typedef struct _PublishingFlickrPublishingOptionsPanePrivate PublishingFlickrPublishingOptionsPanePrivate; - -#define PUBLISHING_FLICKR_PUBLISHING_OPTIONS_PANE_TYPE_VISIBILITY_ENTRY (publishing_flickr_publishing_options_pane_visibility_entry_get_type ()) -#define PUBLISHING_FLICKR_PUBLISHING_OPTIONS_PANE_VISIBILITY_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_FLICKR_PUBLISHING_OPTIONS_PANE_TYPE_VISIBILITY_ENTRY, PublishingFlickrPublishingOptionsPaneVisibilityEntry)) -#define PUBLISHING_FLICKR_PUBLISHING_OPTIONS_PANE_VISIBILITY_ENTRY_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_FLICKR_PUBLISHING_OPTIONS_PANE_TYPE_VISIBILITY_ENTRY, PublishingFlickrPublishingOptionsPaneVisibilityEntryClass)) -#define PUBLISHING_FLICKR_PUBLISHING_OPTIONS_PANE_IS_VISIBILITY_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_FLICKR_PUBLISHING_OPTIONS_PANE_TYPE_VISIBILITY_ENTRY)) -#define PUBLISHING_FLICKR_PUBLISHING_OPTIONS_PANE_IS_VISIBILITY_ENTRY_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_FLICKR_PUBLISHING_OPTIONS_PANE_TYPE_VISIBILITY_ENTRY)) -#define PUBLISHING_FLICKR_PUBLISHING_OPTIONS_PANE_VISIBILITY_ENTRY_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_FLICKR_PUBLISHING_OPTIONS_PANE_TYPE_VISIBILITY_ENTRY, PublishingFlickrPublishingOptionsPaneVisibilityEntryClass)) - -typedef struct _PublishingFlickrPublishingOptionsPaneVisibilityEntry PublishingFlickrPublishingOptionsPaneVisibilityEntry; -typedef struct _PublishingFlickrPublishingOptionsPaneVisibilityEntryClass PublishingFlickrPublishingOptionsPaneVisibilityEntryClass; - -#define PUBLISHING_FLICKR_PUBLISHING_OPTIONS_PANE_TYPE_SIZE_ENTRY (publishing_flickr_publishing_options_pane_size_entry_get_type ()) -#define PUBLISHING_FLICKR_PUBLISHING_OPTIONS_PANE_SIZE_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_FLICKR_PUBLISHING_OPTIONS_PANE_TYPE_SIZE_ENTRY, PublishingFlickrPublishingOptionsPaneSizeEntry)) -#define PUBLISHING_FLICKR_PUBLISHING_OPTIONS_PANE_SIZE_ENTRY_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_FLICKR_PUBLISHING_OPTIONS_PANE_TYPE_SIZE_ENTRY, PublishingFlickrPublishingOptionsPaneSizeEntryClass)) -#define PUBLISHING_FLICKR_PUBLISHING_OPTIONS_PANE_IS_SIZE_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_FLICKR_PUBLISHING_OPTIONS_PANE_TYPE_SIZE_ENTRY)) -#define PUBLISHING_FLICKR_PUBLISHING_OPTIONS_PANE_IS_SIZE_ENTRY_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_FLICKR_PUBLISHING_OPTIONS_PANE_TYPE_SIZE_ENTRY)) -#define PUBLISHING_FLICKR_PUBLISHING_OPTIONS_PANE_SIZE_ENTRY_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_FLICKR_PUBLISHING_OPTIONS_PANE_TYPE_SIZE_ENTRY, PublishingFlickrPublishingOptionsPaneSizeEntryClass)) - -typedef struct _PublishingFlickrPublishingOptionsPaneSizeEntry PublishingFlickrPublishingOptionsPaneSizeEntry; -typedef struct _PublishingFlickrPublishingOptionsPaneSizeEntryClass PublishingFlickrPublishingOptionsPaneSizeEntryClass; -enum { - PUBLISHING_FLICKR_PUBLISHING_OPTIONS_PANE_0_PROPERTY, - PUBLISHING_FLICKR_PUBLISHING_OPTIONS_PANE_NUM_PROPERTIES -}; -static GParamSpec* publishing_flickr_publishing_options_pane_properties[PUBLISHING_FLICKR_PUBLISHING_OPTIONS_PANE_NUM_PROPERTIES]; -#define _g_slist_free0(var) ((var == NULL) ? NULL : (var = (g_slist_free (var), NULL))) -typedef struct _PublishingFlickrPublishingOptionsPaneVisibilityEntryPrivate PublishingFlickrPublishingOptionsPaneVisibilityEntryPrivate; -typedef struct _PublishingFlickrPublishingOptionsPaneSizeEntryPrivate PublishingFlickrPublishingOptionsPaneSizeEntryPrivate; -#define _publishing_flickr_publishing_options_pane_visibility_entry_unref0(var) ((var == NULL) ? NULL : (var = (publishing_flickr_publishing_options_pane_visibility_entry_unref (var), NULL))) -#define _publishing_flickr_publishing_options_pane_size_entry_unref0(var) ((var == NULL) ? NULL : (var = (publishing_flickr_publishing_options_pane_size_entry_unref (var), NULL))) -typedef struct _PublishingFlickrPublishingOptionsPaneParamSpecSizeEntry PublishingFlickrPublishingOptionsPaneParamSpecSizeEntry; -typedef struct _PublishingFlickrPublishingOptionsPaneParamSpecVisibilityEntry PublishingFlickrPublishingOptionsPaneParamSpecVisibilityEntry; -enum { - PUBLISHING_FLICKR_PUBLISHING_OPTIONS_PANE_PUBLISH_SIGNAL, - PUBLISHING_FLICKR_PUBLISHING_OPTIONS_PANE_LOGOUT_SIGNAL, - PUBLISHING_FLICKR_PUBLISHING_OPTIONS_PANE_NUM_SIGNALS -}; -static guint publishing_flickr_publishing_options_pane_signals[PUBLISHING_FLICKR_PUBLISHING_OPTIONS_PANE_NUM_SIGNALS] = {0}; -typedef struct _PublishingFlickrUploaderPrivate PublishingFlickrUploaderPrivate; -#define _vala_assert(expr, msg) if G_LIKELY (expr) ; else g_assertion_message_expr (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg); -#define _vala_return_if_fail(expr, msg) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return; } -#define _vala_return_val_if_fail(expr, msg, val) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return val; } -#define _vala_warn_if_fail(expr, msg) if G_LIKELY (expr) ; else g_warn_message (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg); - -struct _FlickrService { - GObject parent_instance; - FlickrServicePrivate * priv; -}; - -struct _FlickrServiceClass { - GObjectClass parent_class; -}; - -typedef enum { - PUBLISHING_FLICKR_USER_KIND_PRO, - PUBLISHING_FLICKR_USER_KIND_FREE -} PublishingFlickrUserKind; - -struct _PublishingFlickrVisibilitySpecification { - GTypeInstance parent_instance; - volatile int ref_count; - PublishingFlickrVisibilitySpecificationPrivate * priv; - gint friends_level; - gint family_level; - gint everyone_level; -}; - -struct _PublishingFlickrVisibilitySpecificationClass { - GTypeClass parent_class; - void (*finalize) (PublishingFlickrVisibilitySpecification *self); -}; - -struct _PublishingFlickrParamSpecVisibilitySpecification { - GParamSpec parent_instance; -}; - -struct _PublishingFlickrPublishingParameters { - GTypeInstance parent_instance; - volatile int ref_count; - PublishingFlickrPublishingParametersPrivate * priv; - PublishingFlickrUserKind user_kind; - gint64 quota_free_bytes; - gint photo_major_axis_size; - gchar* username; - PublishingFlickrVisibilitySpecification* visibility_specification; -}; - -struct _PublishingFlickrPublishingParametersClass { - GTypeClass parent_class; - void (*finalize) (PublishingFlickrPublishingParameters *self); -}; - -struct _PublishingFlickrParamSpecPublishingParameters { - GParamSpec parent_instance; -}; - -struct _PublishingFlickrFlickrPublisher { - GObject parent_instance; - PublishingFlickrFlickrPublisherPrivate * priv; -}; - -struct _PublishingFlickrFlickrPublisherClass { - GObjectClass parent_class; -}; - -struct _PublishingFlickrFlickrPublisherPrivate { - SpitPublishingService* service; - SpitPublishingPluginHost* host; - SpitPublishingProgressCallback progress_reporter; - gpointer progress_reporter_target; - GDestroyNotify progress_reporter_target_destroy_notify; - gboolean running; - gboolean was_started; - PublishingRESTSupportOAuth1Session* session; - PublishingFlickrPublishingOptionsPane* publishing_options_pane; - SpitPublishingAuthenticator* authenticator; - PublishingFlickrPublishingParameters* parameters; -}; - -struct _PublishingFlickrAccountInfoFetchTransaction { - PublishingRESTSupportOAuth1Transaction parent_instance; - PublishingFlickrAccountInfoFetchTransactionPrivate * priv; -}; - -struct _PublishingFlickrAccountInfoFetchTransactionClass { - PublishingRESTSupportOAuth1TransactionClass parent_class; -}; - -struct _PublishingFlickrUploadTransaction { - PublishingRESTSupportOAuth1UploadTransaction parent_instance; - PublishingFlickrUploadTransactionPrivate * priv; -}; - -struct _PublishingFlickrUploadTransactionClass { - PublishingRESTSupportOAuth1UploadTransactionClass parent_class; -}; - -struct _PublishingFlickrUploadTransactionPrivate { - PublishingFlickrPublishingParameters* parameters; -}; - -struct _PublishingFlickrPublishingOptionsPane { - GObject parent_instance; - PublishingFlickrPublishingOptionsPanePrivate * priv; -}; - -struct _PublishingFlickrPublishingOptionsPaneClass { - GObjectClass parent_class; -}; - -struct _PublishingFlickrPublishingOptionsPanePrivate { - GtkBuilder* builder; - GtkBox* pane_widget; - GtkLabel* visibility_label; - GtkLabel* upload_info_label; - GtkLabel* size_label; - GtkButton* logout_button; - GtkButton* publish_button; - GtkComboBoxText* visibility_combo; - GtkComboBoxText* size_combo; - GtkCheckButton* strip_metadata_check; - PublishingFlickrPublishingOptionsPaneVisibilityEntry** visibilities; - gint visibilities_length1; - gint _visibilities_size_; - PublishingFlickrPublishingOptionsPaneSizeEntry** sizes; - gint sizes_length1; - gint _sizes_size_; - PublishingFlickrPublishingParameters* parameters; - PublishingFlickrFlickrPublisher* publisher; - SpitPublishingPublisherMediaType media_type; -}; - -struct _PublishingFlickrPublishingOptionsPaneVisibilityEntry { - GTypeInstance parent_instance; - volatile int ref_count; - PublishingFlickrPublishingOptionsPaneVisibilityEntryPrivate * priv; - PublishingFlickrVisibilitySpecification* specification; - gchar* title; -}; - -struct _PublishingFlickrPublishingOptionsPaneVisibilityEntryClass { - GTypeClass parent_class; - void (*finalize) (PublishingFlickrPublishingOptionsPaneVisibilityEntry *self); -}; - -struct _PublishingFlickrPublishingOptionsPaneSizeEntry { - GTypeInstance parent_instance; - volatile int ref_count; - PublishingFlickrPublishingOptionsPaneSizeEntryPrivate * priv; - gchar* title; - gint size; -}; - -struct _PublishingFlickrPublishingOptionsPaneSizeEntryClass { - GTypeClass parent_class; - void (*finalize) (PublishingFlickrPublishingOptionsPaneSizeEntry *self); -}; - -struct _PublishingFlickrPublishingOptionsPaneParamSpecSizeEntry { - GParamSpec parent_instance; -}; - -struct _PublishingFlickrPublishingOptionsPaneParamSpecVisibilityEntry { - GParamSpec parent_instance; -}; - -struct _PublishingFlickrUploader { - PublishingRESTSupportBatchUploader parent_instance; - PublishingFlickrUploaderPrivate * priv; -}; - -struct _PublishingFlickrUploaderClass { - PublishingRESTSupportBatchUploaderClass parent_class; -}; - -struct _PublishingFlickrUploaderPrivate { - PublishingFlickrPublishingParameters* parameters; - gboolean strip_metadata; -}; - - -static gpointer flickr_service_parent_class = NULL; -static GdkPixbuf** flickr_service_icon_pixbuf_set; -static gint flickr_service_icon_pixbuf_set_length1; -static GdkPixbuf** flickr_service_icon_pixbuf_set = NULL; -static gint flickr_service_icon_pixbuf_set_length1 = 0; -static gint _flickr_service_icon_pixbuf_set_size_ = 0; -static SpitPluggableIface * flickr_service_spit_pluggable_parent_iface = NULL; -static SpitPublishingServiceIface * flickr_service_spit_publishing_service_parent_iface = NULL; -static gpointer publishing_flickr_visibility_specification_parent_class = NULL; -static gpointer publishing_flickr_publishing_parameters_parent_class = NULL; -static gpointer publishing_flickr_flickr_publisher_parent_class = NULL; -static SpitPublishingPublisherIface * publishing_flickr_flickr_publisher_spit_publishing_publisher_parent_iface = NULL; -static gpointer publishing_flickr_account_info_fetch_transaction_parent_class = NULL; -static gpointer publishing_flickr_upload_transaction_parent_class = NULL; -static gpointer publishing_flickr_publishing_options_pane_parent_class = NULL; -static gpointer publishing_flickr_publishing_options_pane_size_entry_parent_class = NULL; -static gpointer publishing_flickr_publishing_options_pane_visibility_entry_parent_class = NULL; -static SpitPublishingDialogPaneIface * publishing_flickr_publishing_options_pane_spit_publishing_dialog_pane_parent_iface = NULL; -static gpointer publishing_flickr_uploader_parent_class = NULL; - -GType flickr_service_get_type (void) G_GNUC_CONST; -#define FLICKR_SERVICE_ICON_FILENAME "flickr.png" -FlickrService* flickr_service_new (GFile* resource_directory); -FlickrService* flickr_service_construct (GType object_type, - GFile* resource_directory); -static gint flickr_service_real_get_pluggable_interface (SpitPluggable* base, - gint min_host_interface, - gint max_host_interface); -static const gchar* flickr_service_real_get_id (SpitPluggable* base); -static const gchar* flickr_service_real_get_pluggable_name (SpitPluggable* base); -static void flickr_service_real_get_info (SpitPluggable* base, - SpitPluggableInfo* info); -static GdkPixbuf** _vala_array_dup7 (GdkPixbuf** self, - int length); -static void flickr_service_real_activation (SpitPluggable* base, - gboolean enabled); -static SpitPublishingPublisher* flickr_service_real_create_publisher (SpitPublishingService* base, - SpitPublishingPluginHost* host); -PublishingFlickrFlickrPublisher* publishing_flickr_flickr_publisher_new (SpitPublishingService* service, - SpitPublishingPluginHost* host); -PublishingFlickrFlickrPublisher* publishing_flickr_flickr_publisher_construct (GType object_type, - SpitPublishingService* service, - SpitPublishingPluginHost* host); -GType publishing_flickr_flickr_publisher_get_type (void) G_GNUC_CONST; -static SpitPublishingPublisherMediaType flickr_service_real_get_supported_media (SpitPublishingService* base); -static void flickr_service_finalize (GObject * obj); -#define PUBLISHING_FLICKR_SERVICE_NAME "Flickr" -#define PUBLISHING_FLICKR_ENDPOINT_URL "https://api.flickr.com/services/rest" -#define PUBLISHING_FLICKR_ORIGINAL_SIZE -1 -#define PUBLISHING_FLICKR_EXPIRED_SESSION_ERROR_CODE "98" -GType publishing_flickr_user_kind_get_type (void) G_GNUC_CONST; -gpointer publishing_flickr_visibility_specification_ref (gpointer instance); -void publishing_flickr_visibility_specification_unref (gpointer instance); -GParamSpec* publishing_flickr_param_spec_visibility_specification (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void publishing_flickr_value_set_visibility_specification (GValue* value, - gpointer v_object); -void publishing_flickr_value_take_visibility_specification (GValue* value, - gpointer v_object); -gpointer publishing_flickr_value_get_visibility_specification (const GValue* value); -GType publishing_flickr_visibility_specification_get_type (void) G_GNUC_CONST; -PublishingFlickrVisibilitySpecification* publishing_flickr_visibility_specification_new (gint friends_level, - gint family_level, - gint everyone_level); -PublishingFlickrVisibilitySpecification* publishing_flickr_visibility_specification_construct (GType object_type, - gint friends_level, - gint family_level, - gint everyone_level); -static void publishing_flickr_visibility_specification_finalize (PublishingFlickrVisibilitySpecification * obj); -gpointer publishing_flickr_publishing_parameters_ref (gpointer instance); -void publishing_flickr_publishing_parameters_unref (gpointer instance); -GParamSpec* publishing_flickr_param_spec_publishing_parameters (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void publishing_flickr_value_set_publishing_parameters (GValue* value, - gpointer v_object); -void publishing_flickr_value_take_publishing_parameters (GValue* value, - gpointer v_object); -gpointer publishing_flickr_value_get_publishing_parameters (const GValue* value); -GType publishing_flickr_publishing_parameters_get_type (void) G_GNUC_CONST; -PublishingFlickrPublishingParameters* publishing_flickr_publishing_parameters_new (void); -PublishingFlickrPublishingParameters* publishing_flickr_publishing_parameters_construct (GType object_type); -static void publishing_flickr_publishing_parameters_finalize (PublishingFlickrPublishingParameters * obj); -GType publishing_flickr_publishing_options_pane_get_type (void) G_GNUC_CONST; -#define PUBLISHING_FLICKR_FLICKR_PUBLISHER_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), PUBLISHING_FLICKR_TYPE_FLICKR_PUBLISHER, PublishingFlickrFlickrPublisherPrivate)) -static void publishing_flickr_flickr_publisher_on_session_authenticated (PublishingFlickrFlickrPublisher* self); -static void _publishing_flickr_flickr_publisher_on_session_authenticated_spit_publishing_authenticator_authenticated (SpitPublishingAuthenticator* _sender, - gpointer self); -SpitPublishingAuthenticator* publishing_flickr_flickr_publisher_get_authenticator (PublishingFlickrFlickrPublisher* self); -static gboolean publishing_flickr_flickr_publisher_get_persistent_strip_metadata (PublishingFlickrFlickrPublisher* self); -static void publishing_flickr_flickr_publisher_set_persistent_strip_metadata (PublishingFlickrFlickrPublisher* self, - gboolean strip_metadata); -static void publishing_flickr_flickr_publisher_do_fetch_account_info (PublishingFlickrFlickrPublisher* self); -static void publishing_flickr_flickr_publisher_on_account_fetch_txn_completed (PublishingFlickrFlickrPublisher* self, - PublishingRESTSupportTransaction* txn); -static void _publishing_flickr_flickr_publisher_on_account_fetch_txn_completed_publishing_rest_support_transaction_completed (PublishingRESTSupportTransaction* _sender, - gpointer self); -static void publishing_flickr_flickr_publisher_on_account_fetch_txn_error (PublishingFlickrFlickrPublisher* self, - PublishingRESTSupportTransaction* txn, - GError* err); -static void _publishing_flickr_flickr_publisher_on_account_fetch_txn_error_publishing_rest_support_transaction_network_error (PublishingRESTSupportTransaction* _sender, - GError* err, - gpointer self); -static void publishing_flickr_flickr_publisher_do_parse_account_info_from_xml (PublishingFlickrFlickrPublisher* self, - const gchar* xml); -static void publishing_flickr_flickr_publisher_on_account_info_available (PublishingFlickrFlickrPublisher* self); -static void publishing_flickr_flickr_publisher_do_show_publishing_options_pane (PublishingFlickrFlickrPublisher* self); -static void publishing_flickr_flickr_publisher_on_publishing_options_pane_publish (PublishingFlickrFlickrPublisher* self, - gboolean strip_metadata); -static void _publishing_flickr_flickr_publisher_on_publishing_options_pane_publish_publishing_flickr_publishing_options_pane_publish (PublishingFlickrPublishingOptionsPane* _sender, - gboolean strip_metadata, - gpointer self); -static void publishing_flickr_flickr_publisher_on_publishing_options_pane_logout (PublishingFlickrFlickrPublisher* self); -static void _publishing_flickr_flickr_publisher_on_publishing_options_pane_logout_publishing_flickr_publishing_options_pane_logout (PublishingFlickrPublishingOptionsPane* _sender, - gpointer self); -static void publishing_flickr_flickr_publisher_do_publish (PublishingFlickrFlickrPublisher* self, - gboolean strip_metadata); -static void publishing_flickr_flickr_publisher_do_logout (PublishingFlickrFlickrPublisher* self); -static void publishing_flickr_flickr_publisher_on_upload_status_updated (PublishingFlickrFlickrPublisher* self, - gint file_number, - gdouble completed_fraction); -static void publishing_flickr_flickr_publisher_on_upload_complete (PublishingFlickrFlickrPublisher* self, - PublishingRESTSupportBatchUploader* uploader, - gint num_published); -static void _publishing_flickr_flickr_publisher_on_upload_complete_publishing_rest_support_batch_uploader_upload_complete (PublishingRESTSupportBatchUploader* _sender, - gint num_photos_published, - gpointer self); -static void publishing_flickr_flickr_publisher_on_upload_error (PublishingFlickrFlickrPublisher* self, - PublishingRESTSupportBatchUploader* uploader, - GError* err); -static void _publishing_flickr_flickr_publisher_on_upload_error_publishing_rest_support_batch_uploader_upload_error (PublishingRESTSupportBatchUploader* _sender, - GError* err, - gpointer self); -static void publishing_flickr_flickr_publisher_do_show_success_pane (PublishingFlickrFlickrPublisher* self); -GType publishing_flickr_account_info_fetch_transaction_get_type (void) G_GNUC_CONST; -PublishingFlickrAccountInfoFetchTransaction* publishing_flickr_account_info_fetch_transaction_new (PublishingRESTSupportOAuth1Session* session); -PublishingFlickrAccountInfoFetchTransaction* publishing_flickr_account_info_fetch_transaction_construct (GType object_type, - PublishingRESTSupportOAuth1Session* session); -PublishingRESTSupportXmlDocument* publishing_flickr_transaction_parse_flickr_response (const gchar* xml, - GError** error); -static void publishing_flickr_flickr_publisher_attempt_start (PublishingFlickrFlickrPublisher* self); -PublishingFlickrPublishingOptionsPane* publishing_flickr_publishing_options_pane_new (PublishingFlickrFlickrPublisher* publisher, - PublishingFlickrPublishingParameters* parameters, - SpitPublishingPublisherMediaType media_type, - GtkBuilder* builder, - gboolean strip_metadata); -PublishingFlickrPublishingOptionsPane* publishing_flickr_publishing_options_pane_construct (GType object_type, - PublishingFlickrFlickrPublisher* publisher, - PublishingFlickrPublishingParameters* parameters, - SpitPublishingPublisherMediaType media_type, - GtkBuilder* builder, - gboolean strip_metadata); -gint publishing_flickr_flickr_publisher_flickr_date_time_compare_func (SpitPublishingPublishable* a, - SpitPublishingPublishable* b); -static gint _publishing_flickr_flickr_publisher_flickr_date_time_compare_func_gcompare_data_func (gconstpointer a, - gconstpointer b, - gpointer self); -GType publishing_flickr_uploader_get_type (void) G_GNUC_CONST; -PublishingFlickrUploader* publishing_flickr_uploader_new (PublishingRESTSupportOAuth1Session* session, - SpitPublishingPublishable** publishables, - int publishables_length1, - PublishingFlickrPublishingParameters* parameters, - gboolean strip_metadata); -PublishingFlickrUploader* publishing_flickr_uploader_construct (GType object_type, - PublishingRESTSupportOAuth1Session* session, - SpitPublishingPublishable** publishables, - int publishables_length1, - PublishingFlickrPublishingParameters* parameters, - gboolean strip_metadata); -static void _publishing_flickr_flickr_publisher_on_upload_status_updated_spit_publishing_progress_callback (gint file_number, - gdouble fraction_complete, - gpointer self); -gint publishing_flickr_flickr_publisher_get_persistent_visibility (PublishingFlickrFlickrPublisher* self); -void publishing_flickr_flickr_publisher_set_persistent_visibility (PublishingFlickrFlickrPublisher* self, - gint vis); -gint publishing_flickr_flickr_publisher_get_persistent_default_size (PublishingFlickrFlickrPublisher* self); -void publishing_flickr_flickr_publisher_set_persistent_default_size (PublishingFlickrFlickrPublisher* self, - gint size); -static SpitPublishingService* publishing_flickr_flickr_publisher_real_get_service (SpitPublishingPublisher* base); -static gboolean publishing_flickr_flickr_publisher_real_is_running (SpitPublishingPublisher* base); -static void publishing_flickr_flickr_publisher_real_start (SpitPublishingPublisher* base); -static void publishing_flickr_flickr_publisher_real_stop (SpitPublishingPublisher* base); -static void publishing_flickr_flickr_publisher_finalize (GObject * obj); -gchar* publishing_flickr_transaction_validate_xml (PublishingRESTSupportXmlDocument* doc); -static gchar* _publishing_flickr_transaction_validate_xml_publishing_rest_support_xml_document_check_for_error_response (PublishingRESTSupportXmlDocument* doc, - gpointer self); -GType publishing_flickr_upload_transaction_get_type (void) G_GNUC_CONST; -#define PUBLISHING_FLICKR_UPLOAD_TRANSACTION_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), PUBLISHING_FLICKR_TYPE_UPLOAD_TRANSACTION, PublishingFlickrUploadTransactionPrivate)) -PublishingFlickrUploadTransaction* publishing_flickr_upload_transaction_new (PublishingRESTSupportOAuth1Session* session, - PublishingFlickrPublishingParameters* parameters, - SpitPublishingPublishable* publishable); -PublishingFlickrUploadTransaction* publishing_flickr_upload_transaction_construct (GType object_type, - PublishingRESTSupportOAuth1Session* session, - PublishingFlickrPublishingParameters* parameters, - SpitPublishingPublishable* publishable); -static void _g_free0_ (gpointer var); -static void publishing_flickr_upload_transaction_real_execute (PublishingRESTSupportTransaction* base, - GError** error); -static void publishing_flickr_upload_transaction_finalize (PublishingRESTSupportTransaction * obj); -static gpointer publishing_flickr_publishing_options_pane_visibility_entry_ref (gpointer instance); -static void publishing_flickr_publishing_options_pane_visibility_entry_unref (gpointer instance); -static GParamSpec* publishing_flickr_publishing_options_pane_param_spec_visibility_entry (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags) G_GNUC_UNUSED; -static void publishing_flickr_publishing_options_pane_value_set_visibility_entry (GValue* value, - gpointer v_object) G_GNUC_UNUSED; -static void publishing_flickr_publishing_options_pane_value_take_visibility_entry (GValue* value, - gpointer v_object) G_GNUC_UNUSED; -static gpointer publishing_flickr_publishing_options_pane_value_get_visibility_entry (const GValue* value) G_GNUC_UNUSED; -static GType publishing_flickr_publishing_options_pane_visibility_entry_get_type (void) G_GNUC_CONST G_GNUC_UNUSED; -static gpointer publishing_flickr_publishing_options_pane_size_entry_ref (gpointer instance); -static void publishing_flickr_publishing_options_pane_size_entry_unref (gpointer instance); -static GParamSpec* publishing_flickr_publishing_options_pane_param_spec_size_entry (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags) G_GNUC_UNUSED; -static void publishing_flickr_publishing_options_pane_value_set_size_entry (GValue* value, - gpointer v_object) G_GNUC_UNUSED; -static void publishing_flickr_publishing_options_pane_value_take_size_entry (GValue* value, - gpointer v_object) G_GNUC_UNUSED; -static gpointer publishing_flickr_publishing_options_pane_value_get_size_entry (const GValue* value) G_GNUC_UNUSED; -static GType publishing_flickr_publishing_options_pane_size_entry_get_type (void) G_GNUC_CONST G_GNUC_UNUSED; -#define PUBLISHING_FLICKR_PUBLISHING_OPTIONS_PANE_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), PUBLISHING_FLICKR_TYPE_PUBLISHING_OPTIONS_PANE, PublishingFlickrPublishingOptionsPanePrivate)) -static PublishingFlickrPublishingOptionsPaneVisibilityEntry** publishing_flickr_publishing_options_pane_create_visibilities (PublishingFlickrPublishingOptionsPane* self, - int* result_length1); -static PublishingFlickrPublishingOptionsPaneSizeEntry** publishing_flickr_publishing_options_pane_create_sizes (PublishingFlickrPublishingOptionsPane* self, - int* result_length1); -static void publishing_flickr_publishing_options_pane_populate_visibility_combo (PublishingFlickrPublishingOptionsPane* self); -static void publishing_flickr_publishing_options_pane_on_visibility_changed (PublishingFlickrPublishingOptionsPane* self); -static void _publishing_flickr_publishing_options_pane_on_visibility_changed_gtk_combo_box_changed (GtkComboBox* _sender, - gpointer self); -static void publishing_flickr_publishing_options_pane_populate_size_combo (PublishingFlickrPublishingOptionsPane* self); -static void publishing_flickr_publishing_options_pane_on_size_changed (PublishingFlickrPublishingOptionsPane* self); -static void _publishing_flickr_publishing_options_pane_on_size_changed_gtk_combo_box_changed (GtkComboBox* _sender, - gpointer self); -static void publishing_flickr_publishing_options_pane_on_logout_clicked (PublishingFlickrPublishingOptionsPane* self); -static void _publishing_flickr_publishing_options_pane_on_logout_clicked_gtk_button_clicked (GtkButton* _sender, - gpointer self); -static void publishing_flickr_publishing_options_pane_on_publish_clicked (PublishingFlickrPublishingOptionsPane* self); -static void _publishing_flickr_publishing_options_pane_on_publish_clicked_gtk_button_clicked (GtkButton* _sender, - gpointer self); -static PublishingFlickrPublishingOptionsPaneVisibilityEntry* publishing_flickr_publishing_options_pane_visibility_entry_new (const gchar* creator_title, - PublishingFlickrVisibilitySpecification* creator_specification); -static PublishingFlickrPublishingOptionsPaneVisibilityEntry* publishing_flickr_publishing_options_pane_visibility_entry_construct (GType object_type, - const gchar* creator_title, - PublishingFlickrVisibilitySpecification* creator_specification); -static void _vala_array_add20 (PublishingFlickrPublishingOptionsPaneVisibilityEntry** * array, - int* length, - int* size, - PublishingFlickrPublishingOptionsPaneVisibilityEntry* value); -static void _vala_array_add21 (PublishingFlickrPublishingOptionsPaneVisibilityEntry** * array, - int* length, - int* size, - PublishingFlickrPublishingOptionsPaneVisibilityEntry* value); -static void _vala_array_add22 (PublishingFlickrPublishingOptionsPaneVisibilityEntry** * array, - int* length, - int* size, - PublishingFlickrPublishingOptionsPaneVisibilityEntry* value); -static void _vala_array_add23 (PublishingFlickrPublishingOptionsPaneVisibilityEntry** * array, - int* length, - int* size, - PublishingFlickrPublishingOptionsPaneVisibilityEntry* value); -static void _vala_array_add24 (PublishingFlickrPublishingOptionsPaneVisibilityEntry** * array, - int* length, - int* size, - PublishingFlickrPublishingOptionsPaneVisibilityEntry* value); -static PublishingFlickrPublishingOptionsPaneSizeEntry* publishing_flickr_publishing_options_pane_size_entry_new (const gchar* creator_title, - gint creator_size); -static PublishingFlickrPublishingOptionsPaneSizeEntry* publishing_flickr_publishing_options_pane_size_entry_construct (GType object_type, - const gchar* creator_title, - gint creator_size); -static void _vala_array_add25 (PublishingFlickrPublishingOptionsPaneSizeEntry** * array, - int* length, - int* size, - PublishingFlickrPublishingOptionsPaneSizeEntry* value); -static void _vala_array_add26 (PublishingFlickrPublishingOptionsPaneSizeEntry** * array, - int* length, - int* size, - PublishingFlickrPublishingOptionsPaneSizeEntry* value); -static void _vala_array_add27 (PublishingFlickrPublishingOptionsPaneSizeEntry** * array, - int* length, - int* size, - PublishingFlickrPublishingOptionsPaneSizeEntry* value); -static void _vala_array_add28 (PublishingFlickrPublishingOptionsPaneSizeEntry** * array, - int* length, - int* size, - PublishingFlickrPublishingOptionsPaneSizeEntry* value); -static void _vala_array_add29 (PublishingFlickrPublishingOptionsPaneSizeEntry** * array, - int* length, - int* size, - PublishingFlickrPublishingOptionsPaneSizeEntry* value); -void publishing_flickr_publishing_options_pane_notify_publish (PublishingFlickrPublishingOptionsPane* self); -void publishing_flickr_publishing_options_pane_notify_logout (PublishingFlickrPublishingOptionsPane* self); -static GtkWidget* publishing_flickr_publishing_options_pane_real_get_widget (SpitPublishingDialogPane* base); -static SpitPublishingDialogPaneGeometryOptions publishing_flickr_publishing_options_pane_real_get_preferred_geometry (SpitPublishingDialogPane* base); -static void publishing_flickr_publishing_options_pane_real_on_pane_installed (SpitPublishingDialogPane* base); -static void _publishing_flickr_publishing_options_pane_notify_publish_publishing_flickr_publishing_options_pane_publish (PublishingFlickrPublishingOptionsPane* _sender, - gboolean strip_metadata, - gpointer self); -static void _publishing_flickr_publishing_options_pane_notify_logout_publishing_flickr_publishing_options_pane_logout (PublishingFlickrPublishingOptionsPane* _sender, - gpointer self); -static void publishing_flickr_publishing_options_pane_real_on_pane_uninstalled (SpitPublishingDialogPane* base); -static void publishing_flickr_publishing_options_pane_size_entry_finalize (PublishingFlickrPublishingOptionsPaneSizeEntry * obj); -static void publishing_flickr_publishing_options_pane_visibility_entry_finalize (PublishingFlickrPublishingOptionsPaneVisibilityEntry * obj); -static void publishing_flickr_publishing_options_pane_finalize (GObject * obj); -#define PUBLISHING_FLICKR_UPLOADER_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), PUBLISHING_FLICKR_TYPE_UPLOADER, PublishingFlickrUploaderPrivate)) -static void publishing_flickr_uploader_preprocess_publishable (PublishingFlickrUploader* self, - SpitPublishingPublishable* publishable); -static void _vala_array_add30 (gchar** * array, - int* length, - int* size, - gchar* value); -static PublishingRESTSupportTransaction* publishing_flickr_uploader_real_create_transaction (PublishingRESTSupportBatchUploader* base, - SpitPublishingPublishable* publishable); -static void publishing_flickr_uploader_finalize (PublishingRESTSupportBatchUploader * obj); -static void _vala_array_destroy (gpointer array, - gint array_length, - GDestroyNotify destroy_func); -static void _vala_array_free (gpointer array, - gint array_length, - GDestroyNotify destroy_func); -static gint _vala_array_length (gpointer array); - - -FlickrService* -flickr_service_construct (GType object_type, - GFile* resource_directory) -{ - FlickrService * self = NULL; - GdkPixbuf** _tmp0_; - gint _tmp0__length1; -#line 12 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_return_val_if_fail (G_IS_FILE (resource_directory), NULL); -#line 12 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - self = (FlickrService*) g_object_new (object_type, NULL); -#line 13 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp0_ = flickr_service_icon_pixbuf_set; -#line 13 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp0__length1 = flickr_service_icon_pixbuf_set_length1; -#line 13 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - if (_tmp0_ == NULL) { -#line 714 "FlickrPublishing.c" - gint _tmp1_; - GdkPixbuf** _tmp2_; -#line 14 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp2_ = resources_load_from_resource (PLUGIN_RESOURCE_PATH "/" FLICKR_SERVICE_ICON_FILENAME, &_tmp1_); -#line 14 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - flickr_service_icon_pixbuf_set = (_vala_array_free (flickr_service_icon_pixbuf_set, flickr_service_icon_pixbuf_set_length1, (GDestroyNotify) g_object_unref), NULL); -#line 14 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - flickr_service_icon_pixbuf_set = _tmp2_; -#line 14 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - flickr_service_icon_pixbuf_set_length1 = _tmp1_; -#line 14 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _flickr_service_icon_pixbuf_set_size_ = flickr_service_icon_pixbuf_set_length1; -#line 727 "FlickrPublishing.c" - } -#line 12 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - return self; -#line 731 "FlickrPublishing.c" -} - - -FlickrService* -flickr_service_new (GFile* resource_directory) -{ -#line 12 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - return flickr_service_construct (TYPE_FLICKR_SERVICE, resource_directory); -#line 740 "FlickrPublishing.c" -} - - -static gint -flickr_service_real_get_pluggable_interface (SpitPluggable* base, - gint min_host_interface, - gint max_host_interface) -{ - FlickrService * self; - gint result = 0; -#line 18 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_FLICKR_SERVICE, FlickrService); -#line 19 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - result = spit_negotiate_interfaces (min_host_interface, max_host_interface, SPIT_PUBLISHING_CURRENT_INTERFACE); -#line 19 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - return result; -#line 757 "FlickrPublishing.c" -} - - -static const gchar* -flickr_service_real_get_id (SpitPluggable* base) -{ - FlickrService * self; - const gchar* result = NULL; -#line 23 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_FLICKR_SERVICE, FlickrService); -#line 24 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - result = "org.yorba.shotwell.publishing.flickr"; -#line 24 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - return result; -#line 772 "FlickrPublishing.c" -} - - -static const gchar* -flickr_service_real_get_pluggable_name (SpitPluggable* base) -{ - FlickrService * self; - const gchar* result = NULL; -#line 27 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_FLICKR_SERVICE, FlickrService); -#line 28 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - result = "Flickr"; -#line 28 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - return result; -#line 787 "FlickrPublishing.c" -} - - -static gpointer -_g_object_ref0 (gpointer self) -{ -#line 40 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - return self ? g_object_ref (self) : NULL; -#line 796 "FlickrPublishing.c" -} - - -static GdkPixbuf** -_vala_array_dup7 (GdkPixbuf** self, - int length) -{ - GdkPixbuf** result; - int i; -#line 40 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - result = g_new0 (GdkPixbuf*, length + 1); -#line 40 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - for (i = 0; i < length; i++) { -#line 810 "FlickrPublishing.c" - GdkPixbuf* _tmp0_; -#line 40 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp0_ = _g_object_ref0 (self[i]); -#line 40 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - result[i] = _tmp0_; -#line 816 "FlickrPublishing.c" - } -#line 40 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - return result; -#line 820 "FlickrPublishing.c" -} - - -static void -flickr_service_real_get_info (SpitPluggable* base, - SpitPluggableInfo* info) -{ - FlickrService * 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 31 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_FLICKR_SERVICE, FlickrService); -#line 31 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_return_if_fail (info != NULL); -#line 32 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp0_ = g_strdup ("Lucas Beeler"); -#line 32 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _g_free0 ((*info).authors); -#line 32 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - (*info).authors = _tmp0_; -#line 33 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp1_ = g_strdup (_ ("Copyright 2016 Software Freedom Conservancy Inc.")); -#line 33 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _g_free0 ((*info).copyright); -#line 33 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - (*info).copyright = _tmp1_; -#line 34 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp2_ = g_strdup (RESOURCES_TRANSLATORS); -#line 34 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _g_free0 ((*info).translators); -#line 34 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - (*info).translators = _tmp2_; -#line 35 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp3_ = g_strdup (_VERSION); -#line 35 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _g_free0 ((*info).version); -#line 35 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - (*info).version = _tmp3_; -#line 36 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp4_ = g_strdup (RESOURCES_WEBSITE_NAME); -#line 36 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _g_free0 ((*info).website_name); -#line 36 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - (*info).website_name = _tmp4_; -#line 37 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp5_ = g_strdup (RESOURCES_WEBSITE_URL); -#line 37 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _g_free0 ((*info).website_url); -#line 37 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - (*info).website_url = _tmp5_; -#line 38 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - (*info).is_license_wordwrapped = FALSE; -#line 39 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp6_ = g_strdup (RESOURCES_LICENSE); -#line 39 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _g_free0 ((*info).license); -#line 39 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - (*info).license = _tmp6_; -#line 40 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp7_ = flickr_service_icon_pixbuf_set; -#line 40 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp7__length1 = flickr_service_icon_pixbuf_set_length1; -#line 40 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp8_ = (_tmp7_ != NULL) ? _vala_array_dup7 (_tmp7_, _tmp7__length1) : ((gpointer) _tmp7_); -#line 40 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp8__length1 = _tmp7__length1; -#line 40 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - (*info).icons = (_vala_array_free ((*info).icons, (*info).icons_length1, (GDestroyNotify) g_object_unref), NULL); -#line 40 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - (*info).icons = _tmp8_; -#line 40 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - (*info).icons_length1 = _tmp8__length1; -#line 902 "FlickrPublishing.c" -} - - -static void -flickr_service_real_activation (SpitPluggable* base, - gboolean enabled) -{ - FlickrService * self; -#line 43 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_FLICKR_SERVICE, FlickrService); -#line 913 "FlickrPublishing.c" -} - - -static SpitPublishingPublisher* -flickr_service_real_create_publisher (SpitPublishingService* base, - SpitPublishingPluginHost* host) -{ - FlickrService * self; - SpitPublishingPublisher* result = NULL; - PublishingFlickrFlickrPublisher* _tmp0_; -#line 46 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_FLICKR_SERVICE, FlickrService); -#line 46 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_return_val_if_fail (SPIT_PUBLISHING_IS_PLUGIN_HOST (host), NULL); -#line 47 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp0_ = publishing_flickr_flickr_publisher_new (G_TYPE_CHECK_INSTANCE_CAST (self, SPIT_PUBLISHING_TYPE_SERVICE, SpitPublishingService), host); -#line 47 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - result = G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, SPIT_PUBLISHING_TYPE_PUBLISHER, SpitPublishingPublisher); -#line 47 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - return result; -#line 934 "FlickrPublishing.c" -} - - -static SpitPublishingPublisherMediaType -flickr_service_real_get_supported_media (SpitPublishingService* base) -{ - FlickrService * self; - SpitPublishingPublisherMediaType result = 0; -#line 50 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_FLICKR_SERVICE, FlickrService); -#line 51 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - result = SPIT_PUBLISHING_PUBLISHER_MEDIA_TYPE_PHOTO | SPIT_PUBLISHING_PUBLISHER_MEDIA_TYPE_VIDEO; -#line 51 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - return result; -#line 949 "FlickrPublishing.c" -} - - -static void -flickr_service_class_init (FlickrServiceClass * klass) -{ -#line 7 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - flickr_service_parent_class = g_type_class_peek_parent (klass); -#line 7 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - G_OBJECT_CLASS (klass)->finalize = flickr_service_finalize; -#line 960 "FlickrPublishing.c" -} - - -static void -flickr_service_spit_pluggable_interface_init (SpitPluggableIface * iface) -{ -#line 7 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - flickr_service_spit_pluggable_parent_iface = g_type_interface_peek_parent (iface); -#line 7 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - iface->get_pluggable_interface = (gint (*) (SpitPluggable *, gint, gint)) flickr_service_real_get_pluggable_interface; -#line 7 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - iface->get_id = (const gchar* (*) (SpitPluggable *)) flickr_service_real_get_id; -#line 7 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - iface->get_pluggable_name = (const gchar* (*) (SpitPluggable *)) flickr_service_real_get_pluggable_name; -#line 7 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - iface->get_info = (void (*) (SpitPluggable *, SpitPluggableInfo*)) flickr_service_real_get_info; -#line 7 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - iface->activation = (void (*) (SpitPluggable *, gboolean)) flickr_service_real_activation; -#line 979 "FlickrPublishing.c" -} - - -static void -flickr_service_spit_publishing_service_interface_init (SpitPublishingServiceIface * iface) -{ -#line 7 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - flickr_service_spit_publishing_service_parent_iface = g_type_interface_peek_parent (iface); -#line 7 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - iface->create_publisher = (SpitPublishingPublisher* (*) (SpitPublishingService *, SpitPublishingPluginHost*)) flickr_service_real_create_publisher; -#line 7 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - iface->get_supported_media = (SpitPublishingPublisherMediaType (*) (SpitPublishingService *)) flickr_service_real_get_supported_media; -#line 992 "FlickrPublishing.c" -} - - -static void -flickr_service_instance_init (FlickrService * self) -{ -} - - -static void -flickr_service_finalize (GObject * obj) -{ - FlickrService * self; -#line 7 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_FLICKR_SERVICE, FlickrService); -#line 7 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - G_OBJECT_CLASS (flickr_service_parent_class)->finalize (obj); -#line 1010 "FlickrPublishing.c" -} - - -GType -flickr_service_get_type (void) -{ - static volatile gsize flickr_service_type_id__volatile = 0; - if (g_once_init_enter (&flickr_service_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (FlickrServiceClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) flickr_service_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (FlickrService), 0, (GInstanceInitFunc) flickr_service_instance_init, NULL }; - static const GInterfaceInfo spit_pluggable_info = { (GInterfaceInitFunc) flickr_service_spit_pluggable_interface_init, (GInterfaceFinalizeFunc) NULL, NULL}; - static const GInterfaceInfo spit_publishing_service_info = { (GInterfaceInitFunc) flickr_service_spit_publishing_service_interface_init, (GInterfaceFinalizeFunc) NULL, NULL}; - GType flickr_service_type_id; - flickr_service_type_id = g_type_register_static (G_TYPE_OBJECT, "FlickrService", &g_define_type_info, 0); - g_type_add_interface_static (flickr_service_type_id, SPIT_TYPE_PLUGGABLE, &spit_pluggable_info); - g_type_add_interface_static (flickr_service_type_id, SPIT_PUBLISHING_TYPE_SERVICE, &spit_publishing_service_info); - g_once_init_leave (&flickr_service_type_id__volatile, flickr_service_type_id); - } - return flickr_service_type_id__volatile; -} - - -GType -publishing_flickr_user_kind_get_type (void) -{ - static volatile gsize publishing_flickr_user_kind_type_id__volatile = 0; - if (g_once_init_enter (&publishing_flickr_user_kind_type_id__volatile)) { - static const GEnumValue values[] = {{PUBLISHING_FLICKR_USER_KIND_PRO, "PUBLISHING_FLICKR_USER_KIND_PRO", "pro"}, {PUBLISHING_FLICKR_USER_KIND_FREE, "PUBLISHING_FLICKR_USER_KIND_FREE", "free"}, {0, NULL, NULL}}; - GType publishing_flickr_user_kind_type_id; - publishing_flickr_user_kind_type_id = g_enum_register_static ("PublishingFlickrUserKind", values); - g_once_init_leave (&publishing_flickr_user_kind_type_id__volatile, publishing_flickr_user_kind_type_id); - } - return publishing_flickr_user_kind_type_id__volatile; -} - - -PublishingFlickrVisibilitySpecification* -publishing_flickr_visibility_specification_construct (GType object_type, - gint friends_level, - gint family_level, - gint everyone_level) -{ - PublishingFlickrVisibilitySpecification* self = NULL; -#line 73 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - self = (PublishingFlickrVisibilitySpecification*) g_type_create_instance (object_type); -#line 74 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - self->friends_level = friends_level; -#line 75 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - self->family_level = family_level; -#line 76 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - self->everyone_level = everyone_level; -#line 73 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - return self; -#line 1063 "FlickrPublishing.c" -} - - -PublishingFlickrVisibilitySpecification* -publishing_flickr_visibility_specification_new (gint friends_level, - gint family_level, - gint everyone_level) -{ -#line 73 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - return publishing_flickr_visibility_specification_construct (PUBLISHING_FLICKR_TYPE_VISIBILITY_SPECIFICATION, friends_level, family_level, everyone_level); -#line 1074 "FlickrPublishing.c" -} - - -static void -publishing_flickr_value_visibility_specification_init (GValue* value) -{ -#line 68 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - value->data[0].v_pointer = NULL; -#line 1083 "FlickrPublishing.c" -} - - -static void -publishing_flickr_value_visibility_specification_free_value (GValue* value) -{ -#line 68 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - if (value->data[0].v_pointer) { -#line 68 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - publishing_flickr_visibility_specification_unref (value->data[0].v_pointer); -#line 1094 "FlickrPublishing.c" - } -} - - -static void -publishing_flickr_value_visibility_specification_copy_value (const GValue* src_value, - GValue* dest_value) -{ -#line 68 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - if (src_value->data[0].v_pointer) { -#line 68 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - dest_value->data[0].v_pointer = publishing_flickr_visibility_specification_ref (src_value->data[0].v_pointer); -#line 1107 "FlickrPublishing.c" - } else { -#line 68 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - dest_value->data[0].v_pointer = NULL; -#line 1111 "FlickrPublishing.c" - } -} - - -static gpointer -publishing_flickr_value_visibility_specification_peek_pointer (const GValue* value) -{ -#line 68 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - return value->data[0].v_pointer; -#line 1121 "FlickrPublishing.c" -} - - -static gchar* -publishing_flickr_value_visibility_specification_collect_value (GValue* value, - guint n_collect_values, - GTypeCValue* collect_values, - guint collect_flags) -{ -#line 68 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - if (collect_values[0].v_pointer) { -#line 1133 "FlickrPublishing.c" - PublishingFlickrVisibilitySpecification * object; - object = collect_values[0].v_pointer; -#line 68 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - if (object->parent_instance.g_class == NULL) { -#line 68 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL); -#line 1140 "FlickrPublishing.c" - } else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) { -#line 68 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - return g_strconcat ("invalid object type `", g_type_name (G_TYPE_FROM_INSTANCE (object)), "' for value type `", G_VALUE_TYPE_NAME (value), "'", NULL); -#line 1144 "FlickrPublishing.c" - } -#line 68 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - value->data[0].v_pointer = publishing_flickr_visibility_specification_ref (object); -#line 1148 "FlickrPublishing.c" - } else { -#line 68 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - value->data[0].v_pointer = NULL; -#line 1152 "FlickrPublishing.c" - } -#line 68 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - return NULL; -#line 1156 "FlickrPublishing.c" -} - - -static gchar* -publishing_flickr_value_visibility_specification_lcopy_value (const GValue* value, - guint n_collect_values, - GTypeCValue* collect_values, - guint collect_flags) -{ - PublishingFlickrVisibilitySpecification ** object_p; - object_p = collect_values[0].v_pointer; -#line 68 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - if (!object_p) { -#line 68 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value)); -#line 1172 "FlickrPublishing.c" - } -#line 68 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - if (!value->data[0].v_pointer) { -#line 68 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - *object_p = NULL; -#line 1178 "FlickrPublishing.c" - } else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) { -#line 68 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - *object_p = value->data[0].v_pointer; -#line 1182 "FlickrPublishing.c" - } else { -#line 68 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - *object_p = publishing_flickr_visibility_specification_ref (value->data[0].v_pointer); -#line 1186 "FlickrPublishing.c" - } -#line 68 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - return NULL; -#line 1190 "FlickrPublishing.c" -} - - -GParamSpec* -publishing_flickr_param_spec_visibility_specification (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags) -{ - PublishingFlickrParamSpecVisibilitySpecification* spec; -#line 68 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_return_val_if_fail (g_type_is_a (object_type, PUBLISHING_FLICKR_TYPE_VISIBILITY_SPECIFICATION), NULL); -#line 68 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags); -#line 68 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - G_PARAM_SPEC (spec)->value_type = object_type; -#line 68 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - return G_PARAM_SPEC (spec); -#line 1210 "FlickrPublishing.c" -} - - -gpointer -publishing_flickr_value_get_visibility_specification (const GValue* value) -{ -#line 68 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, PUBLISHING_FLICKR_TYPE_VISIBILITY_SPECIFICATION), NULL); -#line 68 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - return value->data[0].v_pointer; -#line 1221 "FlickrPublishing.c" -} - - -void -publishing_flickr_value_set_visibility_specification (GValue* value, - gpointer v_object) -{ - PublishingFlickrVisibilitySpecification * old; -#line 68 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, PUBLISHING_FLICKR_TYPE_VISIBILITY_SPECIFICATION)); -#line 68 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - old = value->data[0].v_pointer; -#line 68 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - if (v_object) { -#line 68 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, PUBLISHING_FLICKR_TYPE_VISIBILITY_SPECIFICATION)); -#line 68 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value))); -#line 68 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - value->data[0].v_pointer = v_object; -#line 68 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - publishing_flickr_visibility_specification_ref (value->data[0].v_pointer); -#line 1244 "FlickrPublishing.c" - } else { -#line 68 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - value->data[0].v_pointer = NULL; -#line 1248 "FlickrPublishing.c" - } -#line 68 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - if (old) { -#line 68 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - publishing_flickr_visibility_specification_unref (old); -#line 1254 "FlickrPublishing.c" - } -} - - -void -publishing_flickr_value_take_visibility_specification (GValue* value, - gpointer v_object) -{ - PublishingFlickrVisibilitySpecification * old; -#line 68 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, PUBLISHING_FLICKR_TYPE_VISIBILITY_SPECIFICATION)); -#line 68 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - old = value->data[0].v_pointer; -#line 68 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - if (v_object) { -#line 68 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, PUBLISHING_FLICKR_TYPE_VISIBILITY_SPECIFICATION)); -#line 68 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value))); -#line 68 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - value->data[0].v_pointer = v_object; -#line 1276 "FlickrPublishing.c" - } else { -#line 68 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - value->data[0].v_pointer = NULL; -#line 1280 "FlickrPublishing.c" - } -#line 68 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - if (old) { -#line 68 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - publishing_flickr_visibility_specification_unref (old); -#line 1286 "FlickrPublishing.c" - } -} - - -static void -publishing_flickr_visibility_specification_class_init (PublishingFlickrVisibilitySpecificationClass * klass) -{ -#line 68 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - publishing_flickr_visibility_specification_parent_class = g_type_class_peek_parent (klass); -#line 68 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - ((PublishingFlickrVisibilitySpecificationClass *) klass)->finalize = publishing_flickr_visibility_specification_finalize; -#line 1298 "FlickrPublishing.c" -} - - -static void -publishing_flickr_visibility_specification_instance_init (PublishingFlickrVisibilitySpecification * self) -{ -#line 68 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - self->ref_count = 1; -#line 1307 "FlickrPublishing.c" -} - - -static void -publishing_flickr_visibility_specification_finalize (PublishingFlickrVisibilitySpecification * obj) -{ - PublishingFlickrVisibilitySpecification * self; -#line 68 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, PUBLISHING_FLICKR_TYPE_VISIBILITY_SPECIFICATION, PublishingFlickrVisibilitySpecification); -#line 68 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_signal_handlers_destroy (self); -#line 1319 "FlickrPublishing.c" -} - - -GType -publishing_flickr_visibility_specification_get_type (void) -{ - static volatile gsize publishing_flickr_visibility_specification_type_id__volatile = 0; - if (g_once_init_enter (&publishing_flickr_visibility_specification_type_id__volatile)) { - static const GTypeValueTable g_define_type_value_table = { publishing_flickr_value_visibility_specification_init, publishing_flickr_value_visibility_specification_free_value, publishing_flickr_value_visibility_specification_copy_value, publishing_flickr_value_visibility_specification_peek_pointer, "p", publishing_flickr_value_visibility_specification_collect_value, "p", publishing_flickr_value_visibility_specification_lcopy_value }; - static const GTypeInfo g_define_type_info = { sizeof (PublishingFlickrVisibilitySpecificationClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) publishing_flickr_visibility_specification_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PublishingFlickrVisibilitySpecification), 0, (GInstanceInitFunc) publishing_flickr_visibility_specification_instance_init, &g_define_type_value_table }; - static const GTypeFundamentalInfo g_define_type_fundamental_info = { (G_TYPE_FLAG_CLASSED | G_TYPE_FLAG_INSTANTIATABLE | G_TYPE_FLAG_DERIVABLE | G_TYPE_FLAG_DEEP_DERIVABLE) }; - GType publishing_flickr_visibility_specification_type_id; - publishing_flickr_visibility_specification_type_id = g_type_register_fundamental (g_type_fundamental_next (), "PublishingFlickrVisibilitySpecification", &g_define_type_info, &g_define_type_fundamental_info, 0); - g_once_init_leave (&publishing_flickr_visibility_specification_type_id__volatile, publishing_flickr_visibility_specification_type_id); - } - return publishing_flickr_visibility_specification_type_id__volatile; -} - - -gpointer -publishing_flickr_visibility_specification_ref (gpointer instance) -{ - PublishingFlickrVisibilitySpecification * self; - self = instance; -#line 68 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_atomic_int_inc (&self->ref_count); -#line 68 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - return instance; -#line 1348 "FlickrPublishing.c" -} - - -void -publishing_flickr_visibility_specification_unref (gpointer instance) -{ - PublishingFlickrVisibilitySpecification * self; - self = instance; -#line 68 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - if (g_atomic_int_dec_and_test (&self->ref_count)) { -#line 68 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - PUBLISHING_FLICKR_VISIBILITY_SPECIFICATION_GET_CLASS (self)->finalize (self); -#line 68 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_type_free_instance ((GTypeInstance *) self); -#line 1363 "FlickrPublishing.c" - } -} - - -PublishingFlickrPublishingParameters* -publishing_flickr_publishing_parameters_construct (GType object_type) -{ - PublishingFlickrPublishingParameters* self = NULL; -#line 88 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - self = (PublishingFlickrPublishingParameters*) g_type_create_instance (object_type); -#line 88 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - return self; -#line 1376 "FlickrPublishing.c" -} - - -PublishingFlickrPublishingParameters* -publishing_flickr_publishing_parameters_new (void) -{ -#line 88 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - return publishing_flickr_publishing_parameters_construct (PUBLISHING_FLICKR_TYPE_PUBLISHING_PARAMETERS); -#line 1385 "FlickrPublishing.c" -} - - -static void -publishing_flickr_value_publishing_parameters_init (GValue* value) -{ -#line 81 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - value->data[0].v_pointer = NULL; -#line 1394 "FlickrPublishing.c" -} - - -static void -publishing_flickr_value_publishing_parameters_free_value (GValue* value) -{ -#line 81 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - if (value->data[0].v_pointer) { -#line 81 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - publishing_flickr_publishing_parameters_unref (value->data[0].v_pointer); -#line 1405 "FlickrPublishing.c" - } -} - - -static void -publishing_flickr_value_publishing_parameters_copy_value (const GValue* src_value, - GValue* dest_value) -{ -#line 81 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - if (src_value->data[0].v_pointer) { -#line 81 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - dest_value->data[0].v_pointer = publishing_flickr_publishing_parameters_ref (src_value->data[0].v_pointer); -#line 1418 "FlickrPublishing.c" - } else { -#line 81 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - dest_value->data[0].v_pointer = NULL; -#line 1422 "FlickrPublishing.c" - } -} - - -static gpointer -publishing_flickr_value_publishing_parameters_peek_pointer (const GValue* value) -{ -#line 81 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - return value->data[0].v_pointer; -#line 1432 "FlickrPublishing.c" -} - - -static gchar* -publishing_flickr_value_publishing_parameters_collect_value (GValue* value, - guint n_collect_values, - GTypeCValue* collect_values, - guint collect_flags) -{ -#line 81 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - if (collect_values[0].v_pointer) { -#line 1444 "FlickrPublishing.c" - PublishingFlickrPublishingParameters * object; - object = collect_values[0].v_pointer; -#line 81 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - if (object->parent_instance.g_class == NULL) { -#line 81 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL); -#line 1451 "FlickrPublishing.c" - } else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) { -#line 81 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - return g_strconcat ("invalid object type `", g_type_name (G_TYPE_FROM_INSTANCE (object)), "' for value type `", G_VALUE_TYPE_NAME (value), "'", NULL); -#line 1455 "FlickrPublishing.c" - } -#line 81 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - value->data[0].v_pointer = publishing_flickr_publishing_parameters_ref (object); -#line 1459 "FlickrPublishing.c" - } else { -#line 81 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - value->data[0].v_pointer = NULL; -#line 1463 "FlickrPublishing.c" - } -#line 81 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - return NULL; -#line 1467 "FlickrPublishing.c" -} - - -static gchar* -publishing_flickr_value_publishing_parameters_lcopy_value (const GValue* value, - guint n_collect_values, - GTypeCValue* collect_values, - guint collect_flags) -{ - PublishingFlickrPublishingParameters ** object_p; - object_p = collect_values[0].v_pointer; -#line 81 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - if (!object_p) { -#line 81 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value)); -#line 1483 "FlickrPublishing.c" - } -#line 81 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - if (!value->data[0].v_pointer) { -#line 81 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - *object_p = NULL; -#line 1489 "FlickrPublishing.c" - } else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) { -#line 81 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - *object_p = value->data[0].v_pointer; -#line 1493 "FlickrPublishing.c" - } else { -#line 81 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - *object_p = publishing_flickr_publishing_parameters_ref (value->data[0].v_pointer); -#line 1497 "FlickrPublishing.c" - } -#line 81 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - return NULL; -#line 1501 "FlickrPublishing.c" -} - - -GParamSpec* -publishing_flickr_param_spec_publishing_parameters (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags) -{ - PublishingFlickrParamSpecPublishingParameters* spec; -#line 81 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_return_val_if_fail (g_type_is_a (object_type, PUBLISHING_FLICKR_TYPE_PUBLISHING_PARAMETERS), NULL); -#line 81 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags); -#line 81 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - G_PARAM_SPEC (spec)->value_type = object_type; -#line 81 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - return G_PARAM_SPEC (spec); -#line 1521 "FlickrPublishing.c" -} - - -gpointer -publishing_flickr_value_get_publishing_parameters (const GValue* value) -{ -#line 81 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, PUBLISHING_FLICKR_TYPE_PUBLISHING_PARAMETERS), NULL); -#line 81 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - return value->data[0].v_pointer; -#line 1532 "FlickrPublishing.c" -} - - -void -publishing_flickr_value_set_publishing_parameters (GValue* value, - gpointer v_object) -{ - PublishingFlickrPublishingParameters * old; -#line 81 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, PUBLISHING_FLICKR_TYPE_PUBLISHING_PARAMETERS)); -#line 81 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - old = value->data[0].v_pointer; -#line 81 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - if (v_object) { -#line 81 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, PUBLISHING_FLICKR_TYPE_PUBLISHING_PARAMETERS)); -#line 81 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value))); -#line 81 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - value->data[0].v_pointer = v_object; -#line 81 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - publishing_flickr_publishing_parameters_ref (value->data[0].v_pointer); -#line 1555 "FlickrPublishing.c" - } else { -#line 81 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - value->data[0].v_pointer = NULL; -#line 1559 "FlickrPublishing.c" - } -#line 81 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - if (old) { -#line 81 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - publishing_flickr_publishing_parameters_unref (old); -#line 1565 "FlickrPublishing.c" - } -} - - -void -publishing_flickr_value_take_publishing_parameters (GValue* value, - gpointer v_object) -{ - PublishingFlickrPublishingParameters * old; -#line 81 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, PUBLISHING_FLICKR_TYPE_PUBLISHING_PARAMETERS)); -#line 81 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - old = value->data[0].v_pointer; -#line 81 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - if (v_object) { -#line 81 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, PUBLISHING_FLICKR_TYPE_PUBLISHING_PARAMETERS)); -#line 81 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value))); -#line 81 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - value->data[0].v_pointer = v_object; -#line 1587 "FlickrPublishing.c" - } else { -#line 81 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - value->data[0].v_pointer = NULL; -#line 1591 "FlickrPublishing.c" - } -#line 81 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - if (old) { -#line 81 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - publishing_flickr_publishing_parameters_unref (old); -#line 1597 "FlickrPublishing.c" - } -} - - -static void -publishing_flickr_publishing_parameters_class_init (PublishingFlickrPublishingParametersClass * klass) -{ -#line 81 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - publishing_flickr_publishing_parameters_parent_class = g_type_class_peek_parent (klass); -#line 81 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - ((PublishingFlickrPublishingParametersClass *) klass)->finalize = publishing_flickr_publishing_parameters_finalize; -#line 1609 "FlickrPublishing.c" -} - - -static void -publishing_flickr_publishing_parameters_instance_init (PublishingFlickrPublishingParameters * self) -{ -#line 81 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - self->ref_count = 1; -#line 1618 "FlickrPublishing.c" -} - - -static void -publishing_flickr_publishing_parameters_finalize (PublishingFlickrPublishingParameters * obj) -{ - PublishingFlickrPublishingParameters * self; -#line 81 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, PUBLISHING_FLICKR_TYPE_PUBLISHING_PARAMETERS, PublishingFlickrPublishingParameters); -#line 81 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_signal_handlers_destroy (self); -#line 85 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _g_free0 (self->username); -#line 86 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _publishing_flickr_visibility_specification_unref0 (self->visibility_specification); -#line 1634 "FlickrPublishing.c" -} - - -GType -publishing_flickr_publishing_parameters_get_type (void) -{ - static volatile gsize publishing_flickr_publishing_parameters_type_id__volatile = 0; - if (g_once_init_enter (&publishing_flickr_publishing_parameters_type_id__volatile)) { - static const GTypeValueTable g_define_type_value_table = { publishing_flickr_value_publishing_parameters_init, publishing_flickr_value_publishing_parameters_free_value, publishing_flickr_value_publishing_parameters_copy_value, publishing_flickr_value_publishing_parameters_peek_pointer, "p", publishing_flickr_value_publishing_parameters_collect_value, "p", publishing_flickr_value_publishing_parameters_lcopy_value }; - static const GTypeInfo g_define_type_info = { sizeof (PublishingFlickrPublishingParametersClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) publishing_flickr_publishing_parameters_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PublishingFlickrPublishingParameters), 0, (GInstanceInitFunc) publishing_flickr_publishing_parameters_instance_init, &g_define_type_value_table }; - static const GTypeFundamentalInfo g_define_type_fundamental_info = { (G_TYPE_FLAG_CLASSED | G_TYPE_FLAG_INSTANTIATABLE | G_TYPE_FLAG_DERIVABLE | G_TYPE_FLAG_DEEP_DERIVABLE) }; - GType publishing_flickr_publishing_parameters_type_id; - publishing_flickr_publishing_parameters_type_id = g_type_register_fundamental (g_type_fundamental_next (), "PublishingFlickrPublishingParameters", &g_define_type_info, &g_define_type_fundamental_info, 0); - g_once_init_leave (&publishing_flickr_publishing_parameters_type_id__volatile, publishing_flickr_publishing_parameters_type_id); - } - return publishing_flickr_publishing_parameters_type_id__volatile; -} - - -gpointer -publishing_flickr_publishing_parameters_ref (gpointer instance) -{ - PublishingFlickrPublishingParameters * self; - self = instance; -#line 81 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_atomic_int_inc (&self->ref_count); -#line 81 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - return instance; -#line 1663 "FlickrPublishing.c" -} - - -void -publishing_flickr_publishing_parameters_unref (gpointer instance) -{ - PublishingFlickrPublishingParameters * self; - self = instance; -#line 81 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - if (g_atomic_int_dec_and_test (&self->ref_count)) { -#line 81 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - PUBLISHING_FLICKR_PUBLISHING_PARAMETERS_GET_CLASS (self)->finalize (self); -#line 81 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_type_free_instance ((GTypeInstance *) self); -#line 1678 "FlickrPublishing.c" - } -} - - -static void -_publishing_flickr_flickr_publisher_on_session_authenticated_spit_publishing_authenticator_authenticated (SpitPublishingAuthenticator* _sender, - gpointer self) -{ -#line 117 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - publishing_flickr_flickr_publisher_on_session_authenticated ((PublishingFlickrFlickrPublisher*) self); -#line 1689 "FlickrPublishing.c" -} - - -PublishingFlickrFlickrPublisher* -publishing_flickr_flickr_publisher_construct (GType object_type, - SpitPublishingService* service, - SpitPublishingPluginHost* host) -{ - PublishingFlickrFlickrPublisher * self = NULL; - SpitPublishingService* _tmp0_; - SpitPublishingPluginHost* _tmp1_; - PublishingRESTSupportOAuth1Session* _tmp2_; - PublishingFlickrPublishingParameters* _tmp3_; - PublishingAuthenticatorFactory* _tmp4_; - PublishingAuthenticatorFactory* _tmp5_; - SpitPublishingAuthenticator* _tmp6_; - SpitPublishingAuthenticator* _tmp7_; -#line 104 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_return_val_if_fail (SPIT_PUBLISHING_IS_SERVICE (service), NULL); -#line 104 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_return_val_if_fail (SPIT_PUBLISHING_IS_PLUGIN_HOST (host), NULL); -#line 104 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - self = (PublishingFlickrFlickrPublisher*) g_object_new (object_type, NULL); -#line 106 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_debug ("FlickrPublishing.vala:106: FlickrPublisher instantiated."); -#line 107 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp0_ = _g_object_ref0 (service); -#line 107 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _g_object_unref0 (self->priv->service); -#line 107 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - self->priv->service = _tmp0_; -#line 108 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp1_ = _g_object_ref0 (host); -#line 108 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _g_object_unref0 (self->priv->host); -#line 108 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - self->priv->host = _tmp1_; -#line 109 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp2_ = publishing_rest_support_oauth1_session_new (PUBLISHING_FLICKR_ENDPOINT_URL); -#line 109 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _publishing_rest_support_session_unref0 (self->priv->session); -#line 109 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - self->priv->session = _tmp2_; -#line 110 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp3_ = publishing_flickr_publishing_parameters_new (); -#line 110 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _publishing_flickr_publishing_parameters_unref0 (self->priv->parameters); -#line 110 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - self->priv->parameters = _tmp3_; -#line 111 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp4_ = publishing_authenticator_factory_get_instance (); -#line 111 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp5_ = _tmp4_; -#line 111 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp6_ = spit_publishing_authenticator_factory_create (G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, SPIT_PUBLISHING_TYPE_AUTHENTICATOR_FACTORY, SpitPublishingAuthenticatorFactory), "flickr", host); -#line 111 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _g_object_unref0 (self->priv->authenticator); -#line 111 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - self->priv->authenticator = _tmp6_; -#line 111 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _g_object_unref0 (_tmp5_); -#line 113 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp7_ = self->priv->authenticator; -#line 113 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_signal_connect_object (_tmp7_, "authenticated", (GCallback) _publishing_flickr_flickr_publisher_on_session_authenticated_spit_publishing_authenticator_authenticated, self, 0); -#line 104 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - return self; -#line 1757 "FlickrPublishing.c" -} - - -PublishingFlickrFlickrPublisher* -publishing_flickr_flickr_publisher_new (SpitPublishingService* service, - SpitPublishingPluginHost* host) -{ -#line 104 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - return publishing_flickr_flickr_publisher_construct (PUBLISHING_FLICKR_TYPE_FLICKR_PUBLISHER, service, host); -#line 1767 "FlickrPublishing.c" -} - - -SpitPublishingAuthenticator* -publishing_flickr_flickr_publisher_get_authenticator (PublishingFlickrFlickrPublisher* self) -{ - SpitPublishingAuthenticator* result = NULL; - SpitPublishingAuthenticator* _tmp0_; - SpitPublishingAuthenticator* _tmp1_; -#line 120 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_return_val_if_fail (PUBLISHING_FLICKR_IS_FLICKR_PUBLISHER (self), NULL); -#line 121 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp0_ = self->priv->authenticator; -#line 121 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp1_ = _g_object_ref0 (_tmp0_); -#line 121 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - result = _tmp1_; -#line 121 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - return result; -#line 1787 "FlickrPublishing.c" -} - - -static gboolean -publishing_flickr_flickr_publisher_get_persistent_strip_metadata (PublishingFlickrFlickrPublisher* self) -{ - gboolean result = FALSE; - SpitPublishingPluginHost* _tmp0_; -#line 124 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_return_val_if_fail (PUBLISHING_FLICKR_IS_FLICKR_PUBLISHER (self), FALSE); -#line 125 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp0_ = self->priv->host; -#line 125 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - result = spit_host_interface_get_config_bool (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, SPIT_TYPE_HOST_INTERFACE, SpitHostInterface), "strip_metadata", FALSE); -#line 125 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - return result; -#line 1804 "FlickrPublishing.c" -} - - -static void -publishing_flickr_flickr_publisher_set_persistent_strip_metadata (PublishingFlickrFlickrPublisher* self, - gboolean strip_metadata) -{ - SpitPublishingPluginHost* _tmp0_; -#line 128 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_return_if_fail (PUBLISHING_FLICKR_IS_FLICKR_PUBLISHER (self)); -#line 129 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp0_ = self->priv->host; -#line 129 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - spit_host_interface_set_config_bool (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, SPIT_TYPE_HOST_INTERFACE, SpitHostInterface), "strip_metadata", strip_metadata); -#line 1819 "FlickrPublishing.c" -} - - -static gpointer -_g_variant_ref0 (gpointer self) -{ -#line 145 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - return self ? g_variant_ref (self) : NULL; -#line 1828 "FlickrPublishing.c" -} - - -static void -publishing_flickr_flickr_publisher_on_session_authenticated (PublishingFlickrFlickrPublisher* self) -{ - GHashTable* params = NULL; - SpitPublishingAuthenticator* _tmp0_; - GHashTable* _tmp1_; - GVariant* consumer_key = NULL; - GVariant* consumer_secret = NULL; - GVariant* auth_token = NULL; - GVariant* auth_token_secret = NULL; - GVariant* username = NULL; - 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_; - GHashTable* _tmp19_; - gconstpointer _tmp20_ = NULL; - GVariant* _tmp21_; - PublishingRESTSupportOAuth1Session* _tmp22_; - GVariant* _tmp23_; - const gchar* _tmp24_; - GVariant* _tmp25_; - const gchar* _tmp26_; - GVariant* _tmp27_; - const gchar* _tmp28_; - PublishingFlickrPublishingParameters* _tmp29_; - PublishingRESTSupportOAuth1Session* _tmp30_; - gchar* _tmp31_; -#line 132 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_return_if_fail (PUBLISHING_FLICKR_IS_FLICKR_PUBLISHER (self)); -#line 133 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - if (!spit_publishing_publisher_is_running (G_TYPE_CHECK_INSTANCE_CAST (self, SPIT_PUBLISHING_TYPE_PUBLISHER, SpitPublishingPublisher))) { -#line 134 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - return; -#line 1879 "FlickrPublishing.c" - } -#line 136 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_debug ("FlickrPublishing.vala:136: EVENT: a fully authenticated session has be" \ -"come available"); -#line 138 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp0_ = self->priv->authenticator; -#line 138 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp1_ = spit_publishing_authenticator_get_authentication_parameter (_tmp0_); -#line 138 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - params = _tmp1_; -#line 139 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - consumer_key = NULL; -#line 140 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - consumer_secret = NULL; -#line 141 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - auth_token = NULL; -#line 142 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - auth_token_secret = NULL; -#line 143 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - username = NULL; -#line 145 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp2_ = params; -#line 145 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_hash_table_lookup_extended (_tmp2_, "ConsumerKey", NULL, &_tmp3_); -#line 145 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _g_variant_unref0 (consumer_key); -#line 145 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp4_ = _g_variant_ref0 (_tmp3_); -#line 145 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - consumer_key = _tmp4_; -#line 146 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp5_ = params; -#line 146 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_hash_table_lookup_extended (_tmp5_, "ConsumerSecret", NULL, &_tmp6_); -#line 146 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _g_variant_unref0 (consumer_secret); -#line 146 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp7_ = _g_variant_ref0 (_tmp6_); -#line 146 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - consumer_secret = _tmp7_; -#line 147 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp8_ = self->priv->session; -#line 147 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp9_ = consumer_key; -#line 147 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp10_ = g_variant_get_string (_tmp9_, NULL); -#line 147 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp11_ = consumer_secret; -#line 147 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp12_ = g_variant_get_string (_tmp11_, NULL); -#line 147 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - publishing_rest_support_oauth1_session_set_api_credentials (_tmp8_, _tmp10_, _tmp12_); -#line 149 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp13_ = params; -#line 149 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_hash_table_lookup_extended (_tmp13_, "AuthToken", NULL, &_tmp14_); -#line 149 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _g_variant_unref0 (auth_token); -#line 149 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp15_ = _g_variant_ref0 (_tmp14_); -#line 149 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - auth_token = _tmp15_; -#line 150 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp16_ = params; -#line 150 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_hash_table_lookup_extended (_tmp16_, "AuthTokenSecret", NULL, &_tmp17_); -#line 150 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _g_variant_unref0 (auth_token_secret); -#line 150 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp18_ = _g_variant_ref0 (_tmp17_); -#line 150 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - auth_token_secret = _tmp18_; -#line 151 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp19_ = params; -#line 151 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_hash_table_lookup_extended (_tmp19_, "Username", NULL, &_tmp20_); -#line 151 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _g_variant_unref0 (username); -#line 151 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp21_ = _g_variant_ref0 (_tmp20_); -#line 151 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - username = _tmp21_; -#line 152 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp22_ = self->priv->session; -#line 152 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp23_ = auth_token; -#line 152 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp24_ = g_variant_get_string (_tmp23_, NULL); -#line 152 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp25_ = auth_token_secret; -#line 152 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp26_ = g_variant_get_string (_tmp25_, NULL); -#line 152 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp27_ = username; -#line 152 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp28_ = g_variant_get_string (_tmp27_, NULL); -#line 152 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - publishing_rest_support_oauth1_session_set_access_phase_credentials (_tmp22_, _tmp24_, _tmp26_, _tmp28_); -#line 155 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp29_ = self->priv->parameters; -#line 155 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp30_ = self->priv->session; -#line 155 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp31_ = publishing_rest_support_oauth1_session_get_username (_tmp30_); -#line 155 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _g_free0 (_tmp29_->username); -#line 155 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp29_->username = _tmp31_; -#line 157 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - publishing_flickr_flickr_publisher_do_fetch_account_info (self); -#line 132 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _g_variant_unref0 (username); -#line 132 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _g_variant_unref0 (auth_token_secret); -#line 132 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _g_variant_unref0 (auth_token); -#line 132 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _g_variant_unref0 (consumer_secret); -#line 132 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _g_variant_unref0 (consumer_key); -#line 132 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _g_hash_table_unref0 (params); -#line 2001 "FlickrPublishing.c" -} - - -static void -_publishing_flickr_flickr_publisher_on_account_fetch_txn_completed_publishing_rest_support_transaction_completed (PublishingRESTSupportTransaction* _sender, - gpointer self) -{ -#line 161 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - publishing_flickr_flickr_publisher_on_account_fetch_txn_completed ((PublishingFlickrFlickrPublisher*) self, _sender); -#line 2011 "FlickrPublishing.c" -} - - -static void -_publishing_flickr_flickr_publisher_on_account_fetch_txn_error_publishing_rest_support_transaction_network_error (PublishingRESTSupportTransaction* _sender, - GError* err, - gpointer self) -{ -#line 162 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - publishing_flickr_flickr_publisher_on_account_fetch_txn_error ((PublishingFlickrFlickrPublisher*) self, _sender, err); -#line 2022 "FlickrPublishing.c" -} - - -static void -publishing_flickr_flickr_publisher_on_account_fetch_txn_completed (PublishingFlickrFlickrPublisher* self, - PublishingRESTSupportTransaction* txn) -{ - guint _tmp0_; - guint _tmp1_; - gchar* _tmp2_; - gchar* _tmp3_; -#line 160 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_return_if_fail (PUBLISHING_FLICKR_IS_FLICKR_PUBLISHER (self)); -#line 160 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_return_if_fail (PUBLISHING_REST_SUPPORT_IS_TRANSACTION (txn)); -#line 161 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_signal_parse_name ("completed", PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, &_tmp0_, NULL, FALSE); -#line 161 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_signal_handlers_disconnect_matched (txn, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp0_, 0, NULL, (GCallback) _publishing_flickr_flickr_publisher_on_account_fetch_txn_completed_publishing_rest_support_transaction_completed, self); -#line 162 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_signal_parse_name ("network-error", PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, &_tmp1_, NULL, FALSE); -#line 162 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_signal_handlers_disconnect_matched (txn, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp1_, 0, NULL, (GCallback) _publishing_flickr_flickr_publisher_on_account_fetch_txn_error_publishing_rest_support_transaction_network_error, self); -#line 164 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - if (!spit_publishing_publisher_is_running (G_TYPE_CHECK_INSTANCE_CAST (self, SPIT_PUBLISHING_TYPE_PUBLISHER, SpitPublishingPublisher))) { -#line 165 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - return; -#line 2050 "FlickrPublishing.c" - } -#line 167 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_debug ("FlickrPublishing.vala:167: EVENT: account fetch transaction response r" \ -"eceived over the network"); -#line 168 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp2_ = publishing_rest_support_transaction_get_response (txn); -#line 168 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp3_ = _tmp2_; -#line 168 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - publishing_flickr_flickr_publisher_do_parse_account_info_from_xml (self, _tmp3_); -#line 168 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _g_free0 (_tmp3_); -#line 2062 "FlickrPublishing.c" -} - - -static void -publishing_flickr_flickr_publisher_on_account_fetch_txn_error (PublishingFlickrFlickrPublisher* self, - PublishingRESTSupportTransaction* txn, - GError* err) -{ - guint _tmp0_; - guint _tmp1_; - SpitPublishingPluginHost* _tmp2_; -#line 171 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_return_if_fail (PUBLISHING_FLICKR_IS_FLICKR_PUBLISHER (self)); -#line 171 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_return_if_fail (PUBLISHING_REST_SUPPORT_IS_TRANSACTION (txn)); -#line 173 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_signal_parse_name ("completed", PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, &_tmp0_, NULL, FALSE); -#line 173 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_signal_handlers_disconnect_matched (txn, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp0_, 0, NULL, (GCallback) _publishing_flickr_flickr_publisher_on_account_fetch_txn_completed_publishing_rest_support_transaction_completed, self); -#line 174 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_signal_parse_name ("network-error", PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, &_tmp1_, NULL, FALSE); -#line 174 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_signal_handlers_disconnect_matched (txn, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp1_, 0, NULL, (GCallback) _publishing_flickr_flickr_publisher_on_account_fetch_txn_error_publishing_rest_support_transaction_network_error, self); -#line 176 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - if (!spit_publishing_publisher_is_running (G_TYPE_CHECK_INSTANCE_CAST (self, SPIT_PUBLISHING_TYPE_PUBLISHER, SpitPublishingPublisher))) { -#line 177 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - return; -#line 2090 "FlickrPublishing.c" - } -#line 179 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_debug ("FlickrPublishing.vala:179: EVENT: account fetch transaction caused a n" \ -"etwork error"); -#line 180 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp2_ = self->priv->host; -#line 180 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - spit_publishing_plugin_host_post_error (_tmp2_, err); -#line 2098 "FlickrPublishing.c" -} - - -static void -publishing_flickr_flickr_publisher_on_account_info_available (PublishingFlickrFlickrPublisher* self) -{ -#line 183 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_return_if_fail (PUBLISHING_FLICKR_IS_FLICKR_PUBLISHER (self)); -#line 184 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - if (!spit_publishing_publisher_is_running (G_TYPE_CHECK_INSTANCE_CAST (self, SPIT_PUBLISHING_TYPE_PUBLISHER, SpitPublishingPublisher))) { -#line 185 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - return; -#line 2111 "FlickrPublishing.c" - } -#line 187 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_debug ("FlickrPublishing.vala:187: EVENT: account information has become avail" \ -"able"); -#line 188 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - publishing_flickr_flickr_publisher_do_show_publishing_options_pane (self); -#line 2117 "FlickrPublishing.c" -} - - -static void -_publishing_flickr_flickr_publisher_on_publishing_options_pane_publish_publishing_flickr_publishing_options_pane_publish (PublishingFlickrPublishingOptionsPane* _sender, - gboolean strip_metadata, - gpointer self) -{ -#line 192 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - publishing_flickr_flickr_publisher_on_publishing_options_pane_publish ((PublishingFlickrFlickrPublisher*) self, strip_metadata); -#line 2128 "FlickrPublishing.c" -} - - -static void -_publishing_flickr_flickr_publisher_on_publishing_options_pane_logout_publishing_flickr_publishing_options_pane_logout (PublishingFlickrPublishingOptionsPane* _sender, - gpointer self) -{ -#line 193 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - publishing_flickr_flickr_publisher_on_publishing_options_pane_logout ((PublishingFlickrFlickrPublisher*) self); -#line 2138 "FlickrPublishing.c" -} - - -static void -publishing_flickr_flickr_publisher_on_publishing_options_pane_publish (PublishingFlickrFlickrPublisher* self, - gboolean strip_metadata) -{ - PublishingFlickrPublishingOptionsPane* _tmp0_; - guint _tmp1_; - PublishingFlickrPublishingOptionsPane* _tmp2_; - guint _tmp3_; -#line 191 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_return_if_fail (PUBLISHING_FLICKR_IS_FLICKR_PUBLISHER (self)); -#line 192 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp0_ = self->priv->publishing_options_pane; -#line 192 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_signal_parse_name ("publish", PUBLISHING_FLICKR_TYPE_PUBLISHING_OPTIONS_PANE, &_tmp1_, NULL, FALSE); -#line 192 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_signal_handlers_disconnect_matched (_tmp0_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp1_, 0, NULL, (GCallback) _publishing_flickr_flickr_publisher_on_publishing_options_pane_publish_publishing_flickr_publishing_options_pane_publish, self); -#line 193 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp2_ = self->priv->publishing_options_pane; -#line 193 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_signal_parse_name ("logout", PUBLISHING_FLICKR_TYPE_PUBLISHING_OPTIONS_PANE, &_tmp3_, NULL, FALSE); -#line 193 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_signal_handlers_disconnect_matched (_tmp2_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp3_, 0, NULL, (GCallback) _publishing_flickr_flickr_publisher_on_publishing_options_pane_logout_publishing_flickr_publishing_options_pane_logout, self); -#line 195 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - if (!spit_publishing_publisher_is_running (G_TYPE_CHECK_INSTANCE_CAST (self, SPIT_PUBLISHING_TYPE_PUBLISHER, SpitPublishingPublisher))) { -#line 196 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - return; -#line 2168 "FlickrPublishing.c" - } -#line 198 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_debug ("FlickrPublishing.vala:198: EVENT: user clicked the 'Publish' button in" \ -" the publishing options pane"); -#line 199 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - publishing_flickr_flickr_publisher_do_publish (self, strip_metadata); -#line 2174 "FlickrPublishing.c" -} - - -static void -publishing_flickr_flickr_publisher_on_publishing_options_pane_logout (PublishingFlickrFlickrPublisher* self) -{ - PublishingFlickrPublishingOptionsPane* _tmp0_; - guint _tmp1_; - PublishingFlickrPublishingOptionsPane* _tmp2_; - guint _tmp3_; -#line 202 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_return_if_fail (PUBLISHING_FLICKR_IS_FLICKR_PUBLISHER (self)); -#line 203 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp0_ = self->priv->publishing_options_pane; -#line 203 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_signal_parse_name ("publish", PUBLISHING_FLICKR_TYPE_PUBLISHING_OPTIONS_PANE, &_tmp1_, NULL, FALSE); -#line 203 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_signal_handlers_disconnect_matched (_tmp0_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp1_, 0, NULL, (GCallback) _publishing_flickr_flickr_publisher_on_publishing_options_pane_publish_publishing_flickr_publishing_options_pane_publish, self); -#line 204 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp2_ = self->priv->publishing_options_pane; -#line 204 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_signal_parse_name ("logout", PUBLISHING_FLICKR_TYPE_PUBLISHING_OPTIONS_PANE, &_tmp3_, NULL, FALSE); -#line 204 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_signal_handlers_disconnect_matched (_tmp2_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp3_, 0, NULL, (GCallback) _publishing_flickr_flickr_publisher_on_publishing_options_pane_logout_publishing_flickr_publishing_options_pane_logout, self); -#line 206 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - if (!spit_publishing_publisher_is_running (G_TYPE_CHECK_INSTANCE_CAST (self, SPIT_PUBLISHING_TYPE_PUBLISHER, SpitPublishingPublisher))) { -#line 207 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - return; -#line 2203 "FlickrPublishing.c" - } -#line 209 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_debug ("FlickrPublishing.vala:209: EVENT: user clicked the 'Logout' button in " \ -"the publishing options pane"); -#line 211 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - publishing_flickr_flickr_publisher_do_logout (self); -#line 2209 "FlickrPublishing.c" -} - - -static void -publishing_flickr_flickr_publisher_on_upload_status_updated (PublishingFlickrFlickrPublisher* self, - gint file_number, - gdouble completed_fraction) -{ - SpitPublishingProgressCallback _tmp0_; - void* _tmp0__target; - SpitPublishingProgressCallback _tmp1_; - void* _tmp1__target; -#line 214 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_return_if_fail (PUBLISHING_FLICKR_IS_FLICKR_PUBLISHER (self)); -#line 215 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - 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/FlickrPublishing.vala" - return; -#line 2228 "FlickrPublishing.c" - } -#line 218 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_debug ("FlickrPublishing.vala:218: EVENT: uploader reports upload %.2f percent" \ -" complete.", 100.0 * completed_fraction); -#line 220 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp0_ = self->priv->progress_reporter; -#line 220 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp0__target = self->priv->progress_reporter_target; -#line 220 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _vala_assert (_tmp0_ != NULL, "progress_reporter != null"); -#line 222 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp1_ = self->priv->progress_reporter; -#line 222 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp1__target = self->priv->progress_reporter_target; -#line 222 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp1_ (file_number, completed_fraction, _tmp1__target); -#line 2244 "FlickrPublishing.c" -} - - -static void -_publishing_flickr_flickr_publisher_on_upload_complete_publishing_rest_support_batch_uploader_upload_complete (PublishingRESTSupportBatchUploader* _sender, - gint num_photos_published, - gpointer self) -{ -#line 232 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - publishing_flickr_flickr_publisher_on_upload_complete ((PublishingFlickrFlickrPublisher*) self, _sender, num_photos_published); -#line 2255 "FlickrPublishing.c" -} - - -static void -_publishing_flickr_flickr_publisher_on_upload_error_publishing_rest_support_batch_uploader_upload_error (PublishingRESTSupportBatchUploader* _sender, - GError* err, - gpointer self) -{ -#line 233 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - publishing_flickr_flickr_publisher_on_upload_error ((PublishingFlickrFlickrPublisher*) self, _sender, err); -#line 2266 "FlickrPublishing.c" -} - - -static void -publishing_flickr_flickr_publisher_on_upload_complete (PublishingFlickrFlickrPublisher* self, - PublishingRESTSupportBatchUploader* uploader, - gint num_published) -{ - guint _tmp0_; - guint _tmp1_; -#line 225 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_return_if_fail (PUBLISHING_FLICKR_IS_FLICKR_PUBLISHER (self)); -#line 225 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_return_if_fail (PUBLISHING_REST_SUPPORT_IS_BATCH_UPLOADER (uploader)); -#line 227 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - if (!spit_publishing_publisher_is_running (G_TYPE_CHECK_INSTANCE_CAST (self, SPIT_PUBLISHING_TYPE_PUBLISHER, SpitPublishingPublisher))) { -#line 228 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - return; -#line 2285 "FlickrPublishing.c" - } -#line 230 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_debug ("FlickrPublishing.vala:230: EVENT: uploader reports upload complete; %d" \ -" items published.", num_published); -#line 232 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_signal_parse_name ("upload-complete", PUBLISHING_REST_SUPPORT_TYPE_BATCH_UPLOADER, &_tmp0_, NULL, FALSE); -#line 232 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_signal_handlers_disconnect_matched (uploader, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp0_, 0, NULL, (GCallback) _publishing_flickr_flickr_publisher_on_upload_complete_publishing_rest_support_batch_uploader_upload_complete, self); -#line 233 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_signal_parse_name ("upload-error", PUBLISHING_REST_SUPPORT_TYPE_BATCH_UPLOADER, &_tmp1_, NULL, FALSE); -#line 233 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_signal_handlers_disconnect_matched (uploader, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp1_, 0, NULL, (GCallback) _publishing_flickr_flickr_publisher_on_upload_error_publishing_rest_support_batch_uploader_upload_error, self); -#line 235 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - publishing_flickr_flickr_publisher_do_show_success_pane (self); -#line 2299 "FlickrPublishing.c" -} - - -static void -publishing_flickr_flickr_publisher_on_upload_error (PublishingFlickrFlickrPublisher* self, - PublishingRESTSupportBatchUploader* uploader, - GError* err) -{ - const gchar* _tmp0_; - guint _tmp1_; - guint _tmp2_; - SpitPublishingPluginHost* _tmp3_; -#line 238 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_return_if_fail (PUBLISHING_FLICKR_IS_FLICKR_PUBLISHER (self)); -#line 238 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_return_if_fail (PUBLISHING_REST_SUPPORT_IS_BATCH_UPLOADER (uploader)); -#line 240 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - if (!spit_publishing_publisher_is_running (G_TYPE_CHECK_INSTANCE_CAST (self, SPIT_PUBLISHING_TYPE_PUBLISHER, SpitPublishingPublisher))) { -#line 241 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - return; -#line 2320 "FlickrPublishing.c" - } -#line 243 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp0_ = err->message; -#line 243 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_debug ("FlickrPublishing.vala:243: EVENT: uploader reports upload error = '%s'" \ -".", _tmp0_); -#line 245 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_signal_parse_name ("upload-complete", PUBLISHING_REST_SUPPORT_TYPE_BATCH_UPLOADER, &_tmp1_, NULL, FALSE); -#line 245 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_signal_handlers_disconnect_matched (uploader, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp1_, 0, NULL, (GCallback) _publishing_flickr_flickr_publisher_on_upload_complete_publishing_rest_support_batch_uploader_upload_complete, self); -#line 246 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_signal_parse_name ("upload-error", PUBLISHING_REST_SUPPORT_TYPE_BATCH_UPLOADER, &_tmp2_, NULL, FALSE); -#line 246 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_signal_handlers_disconnect_matched (uploader, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp2_, 0, NULL, (GCallback) _publishing_flickr_flickr_publisher_on_upload_error_publishing_rest_support_batch_uploader_upload_error, self); -#line 248 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp3_ = self->priv->host; -#line 248 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - spit_publishing_plugin_host_post_error (_tmp3_, err); -#line 2338 "FlickrPublishing.c" -} - - -static void -publishing_flickr_flickr_publisher_do_fetch_account_info (PublishingFlickrFlickrPublisher* self) -{ - SpitPublishingPluginHost* _tmp0_; - SpitPublishingPluginHost* _tmp1_; - PublishingFlickrAccountInfoFetchTransaction* txn = NULL; - PublishingRESTSupportOAuth1Session* _tmp2_; - PublishingFlickrAccountInfoFetchTransaction* _tmp3_; - GError * _inner_error_ = NULL; -#line 251 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_return_if_fail (PUBLISHING_FLICKR_IS_FLICKR_PUBLISHER (self)); -#line 252 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_debug ("FlickrPublishing.vala:252: ACTION: running network transaction to fetc" \ -"h account information"); -#line 254 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp0_ = self->priv->host; -#line 254 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - spit_publishing_plugin_host_set_service_locked (_tmp0_, TRUE); -#line 255 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp1_ = self->priv->host; -#line 255 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - spit_publishing_plugin_host_install_account_fetch_wait_pane (_tmp1_); -#line 257 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp2_ = self->priv->session; -#line 257 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp3_ = publishing_flickr_account_info_fetch_transaction_new (_tmp2_); -#line 257 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - txn = _tmp3_; -#line 258 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (txn, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "completed", (GCallback) _publishing_flickr_flickr_publisher_on_account_fetch_txn_completed_publishing_rest_support_transaction_completed, self, 0); -#line 259 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (txn, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "network-error", (GCallback) _publishing_flickr_flickr_publisher_on_account_fetch_txn_error_publishing_rest_support_transaction_network_error, self, 0); -#line 2373 "FlickrPublishing.c" - { -#line 262 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - publishing_rest_support_transaction_execute (G_TYPE_CHECK_INSTANCE_CAST (txn, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), &_inner_error_); -#line 262 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 262 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - if (_inner_error_->domain == SPIT_PUBLISHING_PUBLISHING_ERROR) { -#line 2381 "FlickrPublishing.c" - goto __catch13_spit_publishing_publishing_error; - } -#line 262 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _publishing_rest_support_transaction_unref0 (txn); -#line 262 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 262 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_clear_error (&_inner_error_); -#line 262 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - return; -#line 2392 "FlickrPublishing.c" - } - } - goto __finally13; - __catch13_spit_publishing_publishing_error: - { - GError* err = NULL; - SpitPublishingPluginHost* _tmp4_; - GError* _tmp5_; -#line 261 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - err = _inner_error_; -#line 261 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _inner_error_ = NULL; -#line 264 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp4_ = self->priv->host; -#line 264 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp5_ = err; -#line 264 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - spit_publishing_plugin_host_post_error (_tmp4_, _tmp5_); -#line 261 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _g_error_free0 (err); -#line 2413 "FlickrPublishing.c" - } - __finally13: -#line 261 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 261 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _publishing_rest_support_transaction_unref0 (txn); -#line 261 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 261 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_clear_error (&_inner_error_); -#line 261 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - return; -#line 2426 "FlickrPublishing.c" - } -#line 251 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _publishing_rest_support_transaction_unref0 (txn); -#line 2430 "FlickrPublishing.c" -} - - -static gint64 -int64_parse (const gchar* str) -{ - gint64 result = 0LL; - gint64 _tmp0_; -#line 687 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - g_return_val_if_fail (str != NULL, 0LL); -#line 688 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp0_ = g_ascii_strtoll (str, NULL, (guint) 0); -#line 688 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - result = _tmp0_; -#line 688 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - return result; -#line 2447 "FlickrPublishing.c" -} - - -static void -publishing_flickr_flickr_publisher_do_parse_account_info_from_xml (PublishingFlickrFlickrPublisher* self, - const gchar* xml) -{ - GError * _inner_error_ = NULL; -#line 268 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_return_if_fail (PUBLISHING_FLICKR_IS_FLICKR_PUBLISHER (self)); -#line 268 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_return_if_fail (xml != NULL); -#line 269 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_debug ("FlickrPublishing.vala:269: ACTION: parsing account information from xm" \ -"l = '%s'", xml); -#line 2462 "FlickrPublishing.c" - { - PublishingRESTSupportXmlDocument* response_doc = NULL; - PublishingRESTSupportXmlDocument* _tmp0_; - xmlNode* root_node = NULL; - PublishingRESTSupportXmlDocument* _tmp1_; - xmlNode* _tmp2_; - xmlNode* user_node = NULL; - PublishingRESTSupportXmlDocument* _tmp3_; - xmlNode* _tmp4_; - xmlNode* _tmp5_; - gchar* is_pro_str = NULL; - PublishingRESTSupportXmlDocument* _tmp6_; - xmlNode* _tmp7_; - gchar* _tmp8_; - xmlNode* bandwidth_node = NULL; - PublishingRESTSupportXmlDocument* _tmp9_; - xmlNode* _tmp10_; - xmlNode* _tmp11_; - gchar* remaining_kb_str = NULL; - PublishingRESTSupportXmlDocument* _tmp12_; - xmlNode* _tmp13_; - gchar* _tmp14_; - PublishingFlickrUserKind user_kind = 0; - const gchar* _tmp15_; - gint64 quota_bytes_left = 0LL; - const gchar* _tmp18_; - PublishingFlickrPublishingParameters* _tmp19_; - gint64 _tmp20_; - PublishingFlickrPublishingParameters* _tmp21_; - PublishingFlickrUserKind _tmp22_; -#line 271 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp0_ = publishing_flickr_transaction_parse_flickr_response (xml, &_inner_error_); -#line 271 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - response_doc = _tmp0_; -#line 271 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 271 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - if (_inner_error_->domain == SPIT_PUBLISHING_PUBLISHING_ERROR) { -#line 2501 "FlickrPublishing.c" - goto __catch14_spit_publishing_publishing_error; - } -#line 271 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 271 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_clear_error (&_inner_error_); -#line 271 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - return; -#line 2510 "FlickrPublishing.c" - } -#line 272 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp1_ = response_doc; -#line 272 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp2_ = publishing_rest_support_xml_document_get_root_node (_tmp1_); -#line 272 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - root_node = _tmp2_; -#line 274 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp3_ = response_doc; -#line 274 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp4_ = root_node; -#line 274 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp5_ = publishing_rest_support_xml_document_get_named_child (_tmp3_, _tmp4_, "user", &_inner_error_); -#line 274 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - user_node = _tmp5_; -#line 274 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 274 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _publishing_rest_support_xml_document_unref0 (response_doc); -#line 274 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - if (_inner_error_->domain == SPIT_PUBLISHING_PUBLISHING_ERROR) { -#line 2532 "FlickrPublishing.c" - goto __catch14_spit_publishing_publishing_error; - } -#line 274 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _publishing_rest_support_xml_document_unref0 (response_doc); -#line 274 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 274 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_clear_error (&_inner_error_); -#line 274 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - return; -#line 2543 "FlickrPublishing.c" - } -#line 276 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp6_ = response_doc; -#line 276 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp7_ = user_node; -#line 276 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp8_ = publishing_rest_support_xml_document_get_property_value (_tmp6_, _tmp7_, "ispro", &_inner_error_); -#line 276 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - is_pro_str = _tmp8_; -#line 276 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 276 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _publishing_rest_support_xml_document_unref0 (response_doc); -#line 276 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - if (_inner_error_->domain == SPIT_PUBLISHING_PUBLISHING_ERROR) { -#line 2559 "FlickrPublishing.c" - goto __catch14_spit_publishing_publishing_error; - } -#line 276 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _publishing_rest_support_xml_document_unref0 (response_doc); -#line 276 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 276 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_clear_error (&_inner_error_); -#line 276 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - return; -#line 2570 "FlickrPublishing.c" - } -#line 278 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp9_ = response_doc; -#line 278 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp10_ = user_node; -#line 278 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp11_ = publishing_rest_support_xml_document_get_named_child (_tmp9_, _tmp10_, "bandwidth", &_inner_error_); -#line 278 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - bandwidth_node = _tmp11_; -#line 278 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 278 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _g_free0 (is_pro_str); -#line 278 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _publishing_rest_support_xml_document_unref0 (response_doc); -#line 278 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - if (_inner_error_->domain == SPIT_PUBLISHING_PUBLISHING_ERROR) { -#line 2588 "FlickrPublishing.c" - goto __catch14_spit_publishing_publishing_error; - } -#line 278 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _g_free0 (is_pro_str); -#line 278 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _publishing_rest_support_xml_document_unref0 (response_doc); -#line 278 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 278 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_clear_error (&_inner_error_); -#line 278 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - return; -#line 2601 "FlickrPublishing.c" - } -#line 280 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp12_ = response_doc; -#line 280 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp13_ = bandwidth_node; -#line 280 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp14_ = publishing_rest_support_xml_document_get_property_value (_tmp12_, _tmp13_, "remainingkb", &_inner_error_); -#line 280 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - remaining_kb_str = _tmp14_; -#line 280 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 280 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _g_free0 (is_pro_str); -#line 280 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _publishing_rest_support_xml_document_unref0 (response_doc); -#line 280 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - if (_inner_error_->domain == SPIT_PUBLISHING_PUBLISHING_ERROR) { -#line 2619 "FlickrPublishing.c" - goto __catch14_spit_publishing_publishing_error; - } -#line 280 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _g_free0 (is_pro_str); -#line 280 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _publishing_rest_support_xml_document_unref0 (response_doc); -#line 280 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 280 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_clear_error (&_inner_error_); -#line 280 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - return; -#line 2632 "FlickrPublishing.c" - } -#line 283 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp15_ = is_pro_str; -#line 283 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - if (g_strcmp0 (_tmp15_, "0") == 0) { -#line 284 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - user_kind = PUBLISHING_FLICKR_USER_KIND_FREE; -#line 2640 "FlickrPublishing.c" - } else { - const gchar* _tmp16_; -#line 285 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp16_ = is_pro_str; -#line 285 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - if (g_strcmp0 (_tmp16_, "1") == 0) { -#line 286 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - user_kind = PUBLISHING_FLICKR_USER_KIND_PRO; -#line 2649 "FlickrPublishing.c" - } else { - GError* _tmp17_; -#line 288 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp17_ = g_error_new_literal (SPIT_PUBLISHING_PUBLISHING_ERROR, SPIT_PUBLISHING_PUBLISHING_ERROR_MALFORMED_RESPONSE, "Unable to determine if user has free or pro account"); -#line 288 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _inner_error_ = _tmp17_; -#line 288 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _g_free0 (remaining_kb_str); -#line 288 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _g_free0 (is_pro_str); -#line 288 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _publishing_rest_support_xml_document_unref0 (response_doc); -#line 288 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - if (_inner_error_->domain == SPIT_PUBLISHING_PUBLISHING_ERROR) { -#line 2664 "FlickrPublishing.c" - goto __catch14_spit_publishing_publishing_error; - } -#line 288 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _g_free0 (remaining_kb_str); -#line 288 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _g_free0 (is_pro_str); -#line 288 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _publishing_rest_support_xml_document_unref0 (response_doc); -#line 288 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 288 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_clear_error (&_inner_error_); -#line 288 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - return; -#line 2679 "FlickrPublishing.c" - } - } -#line 291 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp18_ = remaining_kb_str; -#line 291 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - quota_bytes_left = int64_parse (_tmp18_) * 1024; -#line 293 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp19_ = self->priv->parameters; -#line 293 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp20_ = quota_bytes_left; -#line 293 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp19_->quota_free_bytes = _tmp20_; -#line 294 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp21_ = self->priv->parameters; -#line 294 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp22_ = user_kind; -#line 294 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp21_->user_kind = _tmp22_; -#line 270 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _g_free0 (remaining_kb_str); -#line 270 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _g_free0 (is_pro_str); -#line 270 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _publishing_rest_support_xml_document_unref0 (response_doc); -#line 2704 "FlickrPublishing.c" - } - goto __finally14; - __catch14_spit_publishing_publishing_error: - { - GError* err = NULL; - GError* _tmp23_; - SpitPublishingPluginHost* _tmp24_; - GError* _tmp25_; -#line 270 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - err = _inner_error_; -#line 270 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _inner_error_ = NULL; -#line 300 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp23_ = err; -#line 300 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - if (g_error_matches (_tmp23_, SPIT_PUBLISHING_PUBLISHING_ERROR, SPIT_PUBLISHING_PUBLISHING_ERROR_EXPIRED_SESSION)) { -#line 301 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - publishing_flickr_flickr_publisher_do_logout (self); -#line 302 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _g_error_free0 (err); -#line 302 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - return; -#line 2727 "FlickrPublishing.c" - } -#line 305 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp24_ = self->priv->host; -#line 305 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp25_ = err; -#line 305 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - spit_publishing_plugin_host_post_error (_tmp24_, _tmp25_); -#line 306 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _g_error_free0 (err); -#line 306 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - return; -#line 2739 "FlickrPublishing.c" - } - __finally14: -#line 270 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 270 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 270 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_clear_error (&_inner_error_); -#line 270 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - return; -#line 2750 "FlickrPublishing.c" - } -#line 309 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - publishing_flickr_flickr_publisher_on_account_info_available (self); -#line 2754 "FlickrPublishing.c" -} - - -static void -publishing_flickr_flickr_publisher_do_logout (PublishingFlickrFlickrPublisher* self) -{ - SpitPublishingAuthenticator* _tmp0_; -#line 312 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_return_if_fail (PUBLISHING_FLICKR_IS_FLICKR_PUBLISHER (self)); -#line 313 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_debug ("FlickrPublishing.vala:313: ACTION: logging user out, deauthenticating " \ -"session, and erasing stored credentials"); -#line 315 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp0_ = self->priv->authenticator; -#line 315 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - if (spit_publishing_authenticator_can_logout (_tmp0_)) { -#line 2770 "FlickrPublishing.c" - SpitPublishingAuthenticator* _tmp1_; -#line 316 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp1_ = self->priv->authenticator; -#line 316 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - spit_publishing_authenticator_logout (_tmp1_); -#line 2776 "FlickrPublishing.c" - } -#line 319 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - self->priv->running = FALSE; -#line 321 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - publishing_flickr_flickr_publisher_attempt_start (self); -#line 2782 "FlickrPublishing.c" -} - - -static void -publishing_flickr_flickr_publisher_do_show_publishing_options_pane (PublishingFlickrFlickrPublisher* self) -{ - SpitPublishingPluginHost* _tmp0_; - GtkBuilder* builder = NULL; - GtkBuilder* _tmp1_; - PublishingFlickrPublishingParameters* _tmp8_; - SpitPublishingPluginHost* _tmp9_; - GtkBuilder* _tmp10_; - PublishingFlickrPublishingOptionsPane* _tmp11_; - PublishingFlickrPublishingOptionsPane* _tmp12_; - PublishingFlickrPublishingOptionsPane* _tmp13_; - SpitPublishingPluginHost* _tmp14_; - PublishingFlickrPublishingOptionsPane* _tmp15_; - GError * _inner_error_ = NULL; -#line 324 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_return_if_fail (PUBLISHING_FLICKR_IS_FLICKR_PUBLISHER (self)); -#line 325 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_debug ("FlickrPublishing.vala:325: ACTION: displaying publishing options pane"); -#line 327 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp0_ = self->priv->host; -#line 327 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - spit_publishing_plugin_host_set_service_locked (_tmp0_, FALSE); -#line 329 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp1_ = gtk_builder_new (); -#line 329 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - builder = _tmp1_; -#line 2813 "FlickrPublishing.c" - { - GtkBuilder* _tmp2_; -#line 334 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp2_ = builder; -#line 334 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - gtk_builder_add_from_resource (_tmp2_, PLUGIN_RESOURCE_PATH "/" "flickr_publishing_options_pane.ui", &_inner_error_); -#line 334 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 2822 "FlickrPublishing.c" - goto __catch15_g_error; - } - } - goto __finally15; - __catch15_g_error: - { - GError* e = NULL; - GError* _tmp3_; - const gchar* _tmp4_; - SpitPublishingPluginHost* _tmp5_; - GError* _tmp6_; - GError* _tmp7_; -#line 331 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - e = _inner_error_; -#line 331 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _inner_error_ = NULL; -#line 337 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp3_ = e; -#line 337 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp4_ = _tmp3_->message; -#line 337 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_warning ("FlickrPublishing.vala:337: Could not parse UI file! Error: %s.", _tmp4_); -#line 338 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp5_ = self->priv->host; -#line 338 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp6_ = g_error_new_literal (SPIT_PUBLISHING_PUBLISHING_ERROR, SPIT_PUBLISHING_PUBLISHING_ERROR_LOCAL_FILE_ERROR, _ ("A file required for publishing is unavailable. Publishing to Flickr ca" \ -"n’t continue.")); -#line 338 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp7_ = _tmp6_; -#line 338 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - spit_publishing_plugin_host_post_error (_tmp5_, _tmp7_); -#line 338 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _g_error_free0 (_tmp7_); -#line 341 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _g_error_free0 (e); -#line 341 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _g_object_unref0 (builder); -#line 341 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - return; -#line 2861 "FlickrPublishing.c" - } - __finally15: -#line 331 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 331 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _g_object_unref0 (builder); -#line 331 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 331 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_clear_error (&_inner_error_); -#line 331 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - return; -#line 2874 "FlickrPublishing.c" - } -#line 344 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp8_ = self->priv->parameters; -#line 344 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp9_ = self->priv->host; -#line 344 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp10_ = builder; -#line 344 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp11_ = publishing_flickr_publishing_options_pane_new (self, _tmp8_, spit_publishing_plugin_host_get_publishable_media_type (_tmp9_), _tmp10_, publishing_flickr_flickr_publisher_get_persistent_strip_metadata (self)); -#line 344 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _g_object_unref0 (self->priv->publishing_options_pane); -#line 344 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - self->priv->publishing_options_pane = _tmp11_; -#line 346 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp12_ = self->priv->publishing_options_pane; -#line 346 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_signal_connect_object (_tmp12_, "publish", (GCallback) _publishing_flickr_flickr_publisher_on_publishing_options_pane_publish_publishing_flickr_publishing_options_pane_publish, self, 0); -#line 347 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp13_ = self->priv->publishing_options_pane; -#line 347 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_signal_connect_object (_tmp13_, "logout", (GCallback) _publishing_flickr_flickr_publisher_on_publishing_options_pane_logout_publishing_flickr_publishing_options_pane_logout, self, 0); -#line 348 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp14_ = self->priv->host; -#line 348 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp15_ = self->priv->publishing_options_pane; -#line 348 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - spit_publishing_plugin_host_install_dialog_pane (_tmp14_, G_TYPE_CHECK_INSTANCE_CAST (_tmp15_, SPIT_PUBLISHING_TYPE_DIALOG_PANE, SpitPublishingDialogPane), SPIT_PUBLISHING_PLUGIN_HOST_BUTTON_MODE_CANCEL); -#line 324 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _g_object_unref0 (builder); -#line 2904 "FlickrPublishing.c" -} - - -gint -publishing_flickr_flickr_publisher_flickr_date_time_compare_func (SpitPublishingPublishable* a, - SpitPublishingPublishable* b) -{ - gint result = 0; - GDateTime* _tmp0_; - GDateTime* _tmp1_; - GDateTime* _tmp2_; - GDateTime* _tmp3_; - gint _tmp4_; -#line 351 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_return_val_if_fail (SPIT_PUBLISHING_IS_PUBLISHABLE (a), 0); -#line 351 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_return_val_if_fail (SPIT_PUBLISHING_IS_PUBLISHABLE (b), 0); -#line 353 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp0_ = spit_publishing_publishable_get_exposure_date_time (a); -#line 353 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp1_ = _tmp0_; -#line 353 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp2_ = spit_publishing_publishable_get_exposure_date_time (b); -#line 353 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp3_ = _tmp2_; -#line 353 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp4_ = g_date_time_compare (_tmp1_, _tmp3_); -#line 353 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _g_date_time_unref0 (_tmp3_); -#line 353 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _g_date_time_unref0 (_tmp1_); -#line 353 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - result = _tmp4_; -#line 353 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - return result; -#line 2940 "FlickrPublishing.c" -} - - -static gint -_publishing_flickr_flickr_publisher_flickr_date_time_compare_func_gcompare_data_func (gconstpointer a, - gconstpointer b, - gpointer self) -{ - gint result; - result = publishing_flickr_flickr_publisher_flickr_date_time_compare_func ((SpitPublishingPublishable*) a, (SpitPublishingPublishable*) b); -#line 377 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - return result; -#line 2953 "FlickrPublishing.c" -} - - -static void -_publishing_flickr_flickr_publisher_on_upload_status_updated_spit_publishing_progress_callback (gint file_number, - gdouble fraction_complete, - gpointer self) -{ -#line 382 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - publishing_flickr_flickr_publisher_on_upload_status_updated ((PublishingFlickrFlickrPublisher*) self, file_number, fraction_complete); -#line 2964 "FlickrPublishing.c" -} - - -static void -publishing_flickr_flickr_publisher_do_publish (PublishingFlickrFlickrPublisher* self, - gboolean strip_metadata) -{ - SpitPublishingPluginHost* _tmp0_; - SpitPublishingPluginHost* _tmp1_; - PublishingFlickrPublishingParameters* _tmp2_; - gint _tmp3_; - void* _tmp4_; - GDestroyNotify _tmp5_; - SpitPublishingProgressCallback _tmp6_; - SpitPublishingPublishable** publishables = NULL; - SpitPublishingPluginHost* _tmp7_; - gint _tmp8_; - SpitPublishingPublishable** _tmp9_; - gint publishables_length1; - gint _publishables_size_; - GeeArrayList* sorted_list = NULL; - GeeArrayList* _tmp10_; - SpitPublishingPublishable** _tmp11_; - gint _tmp11__length1; - GeeArrayList* _tmp15_; - PublishingFlickrUploader* uploader = NULL; - PublishingRESTSupportOAuth1Session* _tmp16_; - GeeArrayList* _tmp17_; - gint _tmp18_; - gpointer* _tmp19_; - SpitPublishingPublishable** _tmp20_; - gint _tmp20__length1; - PublishingFlickrPublishingParameters* _tmp21_; - PublishingFlickrUploader* _tmp22_; - PublishingFlickrUploader* _tmp23_; - PublishingFlickrUploader* _tmp24_; - PublishingFlickrUploader* _tmp25_; - PublishingFlickrUploader* _tmp26_; -#line 356 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_return_if_fail (PUBLISHING_FLICKR_IS_FLICKR_PUBLISHER (self)); -#line 357 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - publishing_flickr_flickr_publisher_set_persistent_strip_metadata (self, strip_metadata); -#line 358 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_debug ("FlickrPublishing.vala:358: ACTION: uploading media items to remote ser" \ -"ver."); -#line 360 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp0_ = self->priv->host; -#line 360 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - spit_publishing_plugin_host_set_service_locked (_tmp0_, TRUE); -#line 361 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp1_ = self->priv->host; -#line 361 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp2_ = self->priv->parameters; -#line 361 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp3_ = _tmp2_->photo_major_axis_size; -#line 361 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp6_ = spit_publishing_plugin_host_serialize_publishables (_tmp1_, _tmp3_, strip_metadata, &_tmp4_, &_tmp5_); -#line 361 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - (self->priv->progress_reporter_target_destroy_notify == NULL) ? NULL : (self->priv->progress_reporter_target_destroy_notify (self->priv->progress_reporter_target), NULL); -#line 361 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - self->priv->progress_reporter = NULL; -#line 361 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - self->priv->progress_reporter_target = NULL; -#line 361 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - self->priv->progress_reporter_target_destroy_notify = NULL; -#line 361 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - self->priv->progress_reporter = _tmp6_; -#line 361 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - self->priv->progress_reporter_target = _tmp4_; -#line 361 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - self->priv->progress_reporter_target_destroy_notify = _tmp5_; -#line 367 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - if (!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/FlickrPublishing.vala" - return; -#line 3039 "FlickrPublishing.c" - } -#line 371 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp7_ = self->priv->host; -#line 371 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp9_ = spit_publishing_plugin_host_get_publishables (_tmp7_, &_tmp8_); -#line 371 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - publishables = _tmp9_; -#line 371 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - publishables_length1 = _tmp8_; -#line 371 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _publishables_size_ = publishables_length1; -#line 372 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp10_ = gee_array_list_new (SPIT_PUBLISHING_TYPE_PUBLISHABLE, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL); -#line 372 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - sorted_list = _tmp10_; -#line 374 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp11_ = publishables; -#line 374 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp11__length1 = publishables_length1; -#line 3059 "FlickrPublishing.c" - { - SpitPublishingPublishable** p_collection = NULL; - gint p_collection_length1 = 0; - gint _p_collection_size_ = 0; - gint p_it = 0; -#line 374 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - p_collection = _tmp11_; -#line 374 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - p_collection_length1 = _tmp11__length1; -#line 374 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - for (p_it = 0; p_it < _tmp11__length1; p_it = p_it + 1) { -#line 3071 "FlickrPublishing.c" - SpitPublishingPublishable* _tmp12_; - SpitPublishingPublishable* p = NULL; -#line 374 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp12_ = _g_object_ref0 (p_collection[p_it]); -#line 374 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - p = _tmp12_; -#line 3078 "FlickrPublishing.c" - { - GeeArrayList* _tmp13_; - SpitPublishingPublishable* _tmp14_; -#line 375 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp13_ = sorted_list; -#line 375 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp14_ = p; -#line 375 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp13_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), _tmp14_); -#line 374 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _g_object_unref0 (p); -#line 3090 "FlickrPublishing.c" - } - } - } -#line 377 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp15_ = sorted_list; -#line 377 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - gee_list_sort (G_TYPE_CHECK_INSTANCE_CAST (_tmp15_, GEE_TYPE_LIST, GeeList), _publishing_flickr_flickr_publisher_flickr_date_time_compare_func_gcompare_data_func, NULL, NULL); -#line 379 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp16_ = self->priv->session; -#line 379 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp17_ = sorted_list; -#line 379 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp19_ = gee_collection_to_array (G_TYPE_CHECK_INSTANCE_CAST (_tmp17_, GEE_TYPE_COLLECTION, GeeCollection), &_tmp18_); -#line 379 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp20_ = _tmp19_; -#line 379 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp20__length1 = _tmp18_; -#line 379 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp21_ = self->priv->parameters; -#line 379 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp22_ = publishing_flickr_uploader_new (_tmp16_, _tmp20_, _tmp18_, _tmp21_, strip_metadata); -#line 379 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp23_ = _tmp22_; -#line 379 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp20_ = (_vala_array_free (_tmp20_, _tmp20__length1, (GDestroyNotify) g_object_unref), NULL); -#line 379 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - uploader = _tmp23_; -#line 380 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp24_ = uploader; -#line 380 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp24_, PUBLISHING_REST_SUPPORT_TYPE_BATCH_UPLOADER, PublishingRESTSupportBatchUploader), "upload-complete", (GCallback) _publishing_flickr_flickr_publisher_on_upload_complete_publishing_rest_support_batch_uploader_upload_complete, self, 0); -#line 381 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp25_ = uploader; -#line 381 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp25_, PUBLISHING_REST_SUPPORT_TYPE_BATCH_UPLOADER, PublishingRESTSupportBatchUploader), "upload-error", (GCallback) _publishing_flickr_flickr_publisher_on_upload_error_publishing_rest_support_batch_uploader_upload_error, self, 0); -#line 382 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp26_ = uploader; -#line 382 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - publishing_rest_support_batch_uploader_upload (G_TYPE_CHECK_INSTANCE_CAST (_tmp26_, PUBLISHING_REST_SUPPORT_TYPE_BATCH_UPLOADER, PublishingRESTSupportBatchUploader), _publishing_flickr_flickr_publisher_on_upload_status_updated_spit_publishing_progress_callback, self); -#line 356 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _publishing_rest_support_batch_uploader_unref0 (uploader); -#line 356 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _g_object_unref0 (sorted_list); -#line 356 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - publishables = (_vala_array_free (publishables, publishables_length1, (GDestroyNotify) g_object_unref), NULL); -#line 3136 "FlickrPublishing.c" -} - - -static void -publishing_flickr_flickr_publisher_do_show_success_pane (PublishingFlickrFlickrPublisher* self) -{ - SpitPublishingPluginHost* _tmp0_; - SpitPublishingPluginHost* _tmp1_; -#line 385 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_return_if_fail (PUBLISHING_FLICKR_IS_FLICKR_PUBLISHER (self)); -#line 386 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_debug ("FlickrPublishing.vala:386: ACTION: showing success pane."); -#line 388 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp0_ = self->priv->host; -#line 388 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - spit_publishing_plugin_host_set_service_locked (_tmp0_, FALSE); -#line 389 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp1_ = self->priv->host; -#line 389 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - spit_publishing_plugin_host_install_success_pane (_tmp1_); -#line 3157 "FlickrPublishing.c" -} - - -gint -publishing_flickr_flickr_publisher_get_persistent_visibility (PublishingFlickrFlickrPublisher* self) -{ - gint result = 0; - SpitPublishingPluginHost* _tmp0_; -#line 392 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_return_val_if_fail (PUBLISHING_FLICKR_IS_FLICKR_PUBLISHER (self), 0); -#line 393 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp0_ = self->priv->host; -#line 393 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - result = spit_host_interface_get_config_int (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, SPIT_TYPE_HOST_INTERFACE, SpitHostInterface), "visibility", 0); -#line 393 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - return result; -#line 3174 "FlickrPublishing.c" -} - - -void -publishing_flickr_flickr_publisher_set_persistent_visibility (PublishingFlickrFlickrPublisher* self, - gint vis) -{ - SpitPublishingPluginHost* _tmp0_; -#line 396 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_return_if_fail (PUBLISHING_FLICKR_IS_FLICKR_PUBLISHER (self)); -#line 397 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp0_ = self->priv->host; -#line 397 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - spit_host_interface_set_config_int (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, SPIT_TYPE_HOST_INTERFACE, SpitHostInterface), "visibility", vis); -#line 3189 "FlickrPublishing.c" -} - - -gint -publishing_flickr_flickr_publisher_get_persistent_default_size (PublishingFlickrFlickrPublisher* self) -{ - gint result = 0; - SpitPublishingPluginHost* _tmp0_; -#line 400 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_return_val_if_fail (PUBLISHING_FLICKR_IS_FLICKR_PUBLISHER (self), 0); -#line 401 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp0_ = self->priv->host; -#line 401 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - result = spit_host_interface_get_config_int (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, SPIT_TYPE_HOST_INTERFACE, SpitHostInterface), "default_size", 1); -#line 401 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - return result; -#line 3206 "FlickrPublishing.c" -} - - -void -publishing_flickr_flickr_publisher_set_persistent_default_size (PublishingFlickrFlickrPublisher* self, - gint size) -{ - SpitPublishingPluginHost* _tmp0_; -#line 404 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_return_if_fail (PUBLISHING_FLICKR_IS_FLICKR_PUBLISHER (self)); -#line 405 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp0_ = self->priv->host; -#line 405 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - spit_host_interface_set_config_int (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, SPIT_TYPE_HOST_INTERFACE, SpitHostInterface), "default_size", size); -#line 3221 "FlickrPublishing.c" -} - - -static SpitPublishingService* -publishing_flickr_flickr_publisher_real_get_service (SpitPublishingPublisher* base) -{ - PublishingFlickrFlickrPublisher * self; - SpitPublishingService* result = NULL; - SpitPublishingService* _tmp0_; - SpitPublishingService* _tmp1_; -#line 408 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_FLICKR_TYPE_FLICKR_PUBLISHER, PublishingFlickrFlickrPublisher); -#line 409 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp0_ = self->priv->service; -#line 409 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp1_ = _g_object_ref0 (_tmp0_); -#line 409 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - result = _tmp1_; -#line 409 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - return result; -#line 3242 "FlickrPublishing.c" -} - - -static gboolean -publishing_flickr_flickr_publisher_real_is_running (SpitPublishingPublisher* base) -{ - PublishingFlickrFlickrPublisher * self; - gboolean result = FALSE; - gboolean _tmp0_; -#line 412 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_FLICKR_TYPE_FLICKR_PUBLISHER, PublishingFlickrFlickrPublisher); -#line 413 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp0_ = self->priv->running; -#line 413 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - result = _tmp0_; -#line 413 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - return result; -#line 3260 "FlickrPublishing.c" -} - - -static void -publishing_flickr_flickr_publisher_attempt_start (PublishingFlickrFlickrPublisher* self) -{ - SpitPublishingAuthenticator* _tmp0_; -#line 418 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_return_if_fail (PUBLISHING_FLICKR_IS_FLICKR_PUBLISHER (self)); -#line 419 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - self->priv->running = TRUE; -#line 420 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - self->priv->was_started = TRUE; -#line 422 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp0_ = self->priv->authenticator; -#line 422 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - spit_publishing_authenticator_authenticate (_tmp0_); -#line 3278 "FlickrPublishing.c" -} - - -static void -publishing_flickr_flickr_publisher_real_start (SpitPublishingPublisher* base) -{ - PublishingFlickrFlickrPublisher * self; - gboolean _tmp0_; -#line 425 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_FLICKR_TYPE_FLICKR_PUBLISHER, PublishingFlickrFlickrPublisher); -#line 426 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - if (spit_publishing_publisher_is_running (G_TYPE_CHECK_INSTANCE_CAST (self, SPIT_PUBLISHING_TYPE_PUBLISHER, SpitPublishingPublisher))) { -#line 427 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - return; -#line 3293 "FlickrPublishing.c" - } -#line 429 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp0_ = self->priv->was_started; -#line 429 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - if (_tmp0_) { -#line 430 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_error ("FlickrPublishing.vala:430: FlickrPublisher: start( ): can't start; thi" \ -"s publisher is not restartable."); -#line 3301 "FlickrPublishing.c" - } -#line 432 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_debug ("FlickrPublishing.vala:432: FlickrPublisher: starting interaction."); -#line 434 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - publishing_flickr_flickr_publisher_attempt_start (self); -#line 3307 "FlickrPublishing.c" -} - - -static void -publishing_flickr_flickr_publisher_real_stop (SpitPublishingPublisher* base) -{ - PublishingFlickrFlickrPublisher * self; - PublishingRESTSupportOAuth1Session* _tmp0_; -#line 437 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_FLICKR_TYPE_FLICKR_PUBLISHER, PublishingFlickrFlickrPublisher); -#line 438 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_debug ("FlickrPublishing.vala:438: FlickrPublisher: stop( ) invoked."); -#line 440 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp0_ = self->priv->session; -#line 440 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - if (_tmp0_ != NULL) { -#line 3324 "FlickrPublishing.c" - PublishingRESTSupportOAuth1Session* _tmp1_; -#line 441 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp1_ = self->priv->session; -#line 441 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - publishing_rest_support_session_stop_transactions (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, PUBLISHING_REST_SUPPORT_TYPE_SESSION, PublishingRESTSupportSession)); -#line 3330 "FlickrPublishing.c" - } -#line 443 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - self->priv->running = FALSE; -#line 3334 "FlickrPublishing.c" -} - - -static void -publishing_flickr_flickr_publisher_class_init (PublishingFlickrFlickrPublisherClass * klass) -{ -#line 92 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - publishing_flickr_flickr_publisher_parent_class = g_type_class_peek_parent (klass); -#line 92 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_type_class_add_private (klass, sizeof (PublishingFlickrFlickrPublisherPrivate)); -#line 92 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - G_OBJECT_CLASS (klass)->finalize = publishing_flickr_flickr_publisher_finalize; -#line 3347 "FlickrPublishing.c" -} - - -static void -publishing_flickr_flickr_publisher_spit_publishing_publisher_interface_init (SpitPublishingPublisherIface * iface) -{ -#line 92 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - publishing_flickr_flickr_publisher_spit_publishing_publisher_parent_iface = g_type_interface_peek_parent (iface); -#line 92 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - iface->get_service = (SpitPublishingService* (*) (SpitPublishingPublisher *)) publishing_flickr_flickr_publisher_real_get_service; -#line 92 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - iface->is_running = (gboolean (*) (SpitPublishingPublisher *)) publishing_flickr_flickr_publisher_real_is_running; -#line 92 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - iface->start = (void (*) (SpitPublishingPublisher *)) publishing_flickr_flickr_publisher_real_start; -#line 92 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - iface->stop = (void (*) (SpitPublishingPublisher *)) publishing_flickr_flickr_publisher_real_stop; -#line 3364 "FlickrPublishing.c" -} - - -static void -publishing_flickr_flickr_publisher_instance_init (PublishingFlickrFlickrPublisher * self) -{ -#line 92 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - self->priv = PUBLISHING_FLICKR_FLICKR_PUBLISHER_GET_PRIVATE (self); -#line 95 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - self->priv->progress_reporter = NULL; -#line 95 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - self->priv->progress_reporter_target = self; -#line 95 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - self->priv->progress_reporter_target_destroy_notify = NULL; -#line 96 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - self->priv->running = FALSE; -#line 97 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - self->priv->was_started = FALSE; -#line 98 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - self->priv->session = NULL; -#line 99 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - self->priv->publishing_options_pane = NULL; -#line 100 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - self->priv->authenticator = NULL; -#line 102 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - self->priv->parameters = NULL; -#line 3391 "FlickrPublishing.c" -} - - -static void -publishing_flickr_flickr_publisher_finalize (GObject * obj) -{ - PublishingFlickrFlickrPublisher * self; - SpitPublishingAuthenticator* _tmp0_; - guint _tmp1_; -#line 92 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, PUBLISHING_FLICKR_TYPE_FLICKR_PUBLISHER, PublishingFlickrFlickrPublisher); -#line 117 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp0_ = self->priv->authenticator; -#line 117 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_signal_parse_name ("authenticated", SPIT_PUBLISHING_TYPE_AUTHENTICATOR, &_tmp1_, NULL, FALSE); -#line 117 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_signal_handlers_disconnect_matched (_tmp0_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp1_, 0, NULL, (GCallback) _publishing_flickr_flickr_publisher_on_session_authenticated_spit_publishing_authenticator_authenticated, self); -#line 93 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _g_object_unref0 (self->priv->service); -#line 94 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _g_object_unref0 (self->priv->host); -#line 95 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - (self->priv->progress_reporter_target_destroy_notify == NULL) ? NULL : (self->priv->progress_reporter_target_destroy_notify (self->priv->progress_reporter_target), NULL); -#line 95 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - self->priv->progress_reporter = NULL; -#line 95 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - self->priv->progress_reporter_target = NULL; -#line 95 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - self->priv->progress_reporter_target_destroy_notify = NULL; -#line 98 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _publishing_rest_support_session_unref0 (self->priv->session); -#line 99 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _g_object_unref0 (self->priv->publishing_options_pane); -#line 100 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _g_object_unref0 (self->priv->authenticator); -#line 102 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _publishing_flickr_publishing_parameters_unref0 (self->priv->parameters); -#line 92 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - G_OBJECT_CLASS (publishing_flickr_flickr_publisher_parent_class)->finalize (obj); -#line 3431 "FlickrPublishing.c" -} - - -GType -publishing_flickr_flickr_publisher_get_type (void) -{ - static volatile gsize publishing_flickr_flickr_publisher_type_id__volatile = 0; - if (g_once_init_enter (&publishing_flickr_flickr_publisher_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (PublishingFlickrFlickrPublisherClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) publishing_flickr_flickr_publisher_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PublishingFlickrFlickrPublisher), 0, (GInstanceInitFunc) publishing_flickr_flickr_publisher_instance_init, NULL }; - static const GInterfaceInfo spit_publishing_publisher_info = { (GInterfaceInitFunc) publishing_flickr_flickr_publisher_spit_publishing_publisher_interface_init, (GInterfaceFinalizeFunc) NULL, NULL}; - GType publishing_flickr_flickr_publisher_type_id; - publishing_flickr_flickr_publisher_type_id = g_type_register_static (G_TYPE_OBJECT, "PublishingFlickrFlickrPublisher", &g_define_type_info, 0); - g_type_add_interface_static (publishing_flickr_flickr_publisher_type_id, SPIT_PUBLISHING_TYPE_PUBLISHER, &spit_publishing_publisher_info); - g_once_init_leave (&publishing_flickr_flickr_publisher_type_id__volatile, publishing_flickr_flickr_publisher_type_id); - } - return publishing_flickr_flickr_publisher_type_id__volatile; -} - - -gchar* -publishing_flickr_transaction_validate_xml (PublishingRESTSupportXmlDocument* doc) -{ - gchar* result = NULL; - xmlNode* root = NULL; - xmlNode* _tmp0_; - gchar* status = NULL; - xmlNode* _tmp1_; - gchar* _tmp2_; - const gchar* _tmp3_; - const gchar* _tmp5_; - xmlNode* errcode = NULL; - xmlNode* _tmp10_; - gchar* _tmp11_; - gchar* _tmp12_; - xmlNode* _tmp13_; - gchar* _tmp14_; - gchar* _tmp15_; - gchar* _tmp16_; - gchar* _tmp17_; - GError * _inner_error_ = NULL; -#line 448 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_return_val_if_fail (PUBLISHING_REST_SUPPORT_IS_XML_DOCUMENT (doc), NULL); -#line 449 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp0_ = publishing_rest_support_xml_document_get_root_node (doc); -#line 449 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - root = _tmp0_; -#line 450 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp1_ = root; -#line 450 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp2_ = (gchar*) xmlGetProp (_tmp1_, (xmlChar*) "stat"); -#line 450 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - status = _tmp2_; -#line 453 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp3_ = status; -#line 453 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - if (_tmp3_ == NULL) { -#line 3488 "FlickrPublishing.c" - gchar* _tmp4_; -#line 454 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp4_ = g_strdup ("No status property in root node"); -#line 454 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - result = _tmp4_; -#line 454 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _g_free0 (status); -#line 454 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - return result; -#line 3498 "FlickrPublishing.c" - } -#line 456 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp5_ = status; -#line 456 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - if (g_strcmp0 (_tmp5_, "ok") == 0) { -#line 457 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - result = NULL; -#line 457 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _g_free0 (status); -#line 457 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - return result; -#line 3510 "FlickrPublishing.c" - } - { - xmlNode* _tmp6_ = NULL; - xmlNode* _tmp7_; - xmlNode* _tmp8_; -#line 461 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp7_ = root; -#line 461 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp8_ = publishing_rest_support_xml_document_get_named_child (doc, _tmp7_, "err", &_inner_error_); -#line 461 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp6_ = _tmp8_; -#line 461 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 461 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - if (_inner_error_->domain == SPIT_PUBLISHING_PUBLISHING_ERROR) { -#line 3526 "FlickrPublishing.c" - goto __catch16_spit_publishing_publishing_error; - } -#line 461 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _g_free0 (status); -#line 461 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 461 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_clear_error (&_inner_error_); -#line 461 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - return NULL; -#line 3537 "FlickrPublishing.c" - } -#line 461 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - errcode = _tmp6_; -#line 3541 "FlickrPublishing.c" - } - goto __finally16; - __catch16_spit_publishing_publishing_error: - { - GError* err = NULL; - gchar* _tmp9_; -#line 460 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - err = _inner_error_; -#line 460 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _inner_error_ = NULL; -#line 463 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp9_ = g_strdup ("No error code specified"); -#line 463 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - result = _tmp9_; -#line 463 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _g_error_free0 (err); -#line 463 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _g_free0 (status); -#line 463 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - return result; -#line 3562 "FlickrPublishing.c" - } - __finally16: -#line 460 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 460 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _g_free0 (status); -#line 460 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 460 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_clear_error (&_inner_error_); -#line 460 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - return NULL; -#line 3575 "FlickrPublishing.c" - } -#line 469 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp10_ = errcode; -#line 469 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp11_ = (gchar*) xmlGetProp (_tmp10_, (xmlChar*) "msg"); -#line 469 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp12_ = _tmp11_; -#line 469 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp13_ = errcode; -#line 469 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp14_ = (gchar*) xmlGetProp (_tmp13_, (xmlChar*) "code"); -#line 469 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp15_ = _tmp14_; -#line 469 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp16_ = g_strdup_printf ("%s (error code %s)", _tmp12_, _tmp15_); -#line 469 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp17_ = _tmp16_; -#line 469 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _g_free0 (_tmp15_); -#line 469 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _g_free0 (_tmp12_); -#line 469 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - result = _tmp17_; -#line 469 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _g_free0 (status); -#line 469 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - return result; -#line 3603 "FlickrPublishing.c" -} - - -static gchar* -_publishing_flickr_transaction_validate_xml_publishing_rest_support_xml_document_check_for_error_response (PublishingRESTSupportXmlDocument* doc, - gpointer self) -{ - gchar* result; - result = publishing_flickr_transaction_validate_xml (doc); -#line 484 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - return result; -#line 3615 "FlickrPublishing.c" -} - - -static gboolean -string_contains (const gchar* self, - const gchar* needle) -{ - gboolean result = FALSE; - gchar* _tmp0_; -#line 1417 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - g_return_val_if_fail (self != NULL, FALSE); -#line 1417 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - g_return_val_if_fail (needle != NULL, FALSE); -#line 1418 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp0_ = strstr ((gchar*) self, (gchar*) needle); -#line 1418 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - result = _tmp0_ != NULL; -#line 1418 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - return result; -#line 3635 "FlickrPublishing.c" -} - - -static gpointer -_g_error_copy0 (gpointer self) -{ -#line 489 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - return self ? g_error_copy (self) : NULL; -#line 3644 "FlickrPublishing.c" -} - - -PublishingRESTSupportXmlDocument* -publishing_flickr_transaction_parse_flickr_response (const gchar* xml, - GError** error) -{ - PublishingRESTSupportXmlDocument* result = NULL; - PublishingRESTSupportXmlDocument* _result_ = NULL; - GError * _inner_error_ = NULL; -#line 479 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_return_val_if_fail (xml != NULL, NULL); -#line 481 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _result_ = NULL; -#line 3659 "FlickrPublishing.c" - { - PublishingRESTSupportXmlDocument* _tmp0_ = NULL; - PublishingRESTSupportXmlDocument* _tmp1_; - PublishingRESTSupportXmlDocument* _tmp2_; -#line 484 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp1_ = publishing_rest_support_xml_document_parse_string (xml, _publishing_flickr_transaction_validate_xml_publishing_rest_support_xml_document_check_for_error_response, NULL, &_inner_error_); -#line 484 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp0_ = _tmp1_; -#line 484 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 484 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - if (_inner_error_->domain == SPIT_PUBLISHING_PUBLISHING_ERROR) { -#line 3672 "FlickrPublishing.c" - goto __catch17_spit_publishing_publishing_error; - } -#line 484 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _publishing_rest_support_xml_document_unref0 (_result_); -#line 484 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 484 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_clear_error (&_inner_error_); -#line 484 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - return NULL; -#line 3683 "FlickrPublishing.c" - } -#line 484 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp2_ = _tmp0_; -#line 484 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp0_ = NULL; -#line 484 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _publishing_rest_support_xml_document_unref0 (_result_); -#line 484 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _result_ = _tmp2_; -#line 483 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _publishing_rest_support_xml_document_unref0 (_tmp0_); -#line 3695 "FlickrPublishing.c" - } - goto __finally17; - __catch17_spit_publishing_publishing_error: - { - GError* e = NULL; - GError* _tmp3_; - const gchar* _tmp4_; - gchar* _tmp5_; - gchar* _tmp6_; - gboolean _tmp7_; -#line 483 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - e = _inner_error_; -#line 483 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _inner_error_ = NULL; -#line 486 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp3_ = e; -#line 486 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp4_ = _tmp3_->message; -#line 486 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp5_ = g_strdup_printf ("(error code %s)", PUBLISHING_FLICKR_EXPIRED_SESSION_ERROR_CODE); -#line 486 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp6_ = _tmp5_; -#line 486 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp7_ = string_contains (_tmp4_, _tmp6_); -#line 486 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _g_free0 (_tmp6_); -#line 486 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - if (_tmp7_) { -#line 3724 "FlickrPublishing.c" - GError* _tmp8_; - const gchar* _tmp9_; - GError* _tmp10_; -#line 487 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp8_ = e; -#line 487 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp9_ = _tmp8_->message; -#line 487 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp10_ = g_error_new_literal (SPIT_PUBLISHING_PUBLISHING_ERROR, SPIT_PUBLISHING_PUBLISHING_ERROR_EXPIRED_SESSION, _tmp9_); -#line 487 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _inner_error_ = _tmp10_; -#line 487 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _g_error_free0 (e); -#line 3738 "FlickrPublishing.c" - goto __finally17; - } else { - GError* _tmp11_; - GError* _tmp12_; -#line 489 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp11_ = e; -#line 489 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp12_ = _g_error_copy0 (_tmp11_); -#line 489 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _inner_error_ = _tmp12_; -#line 489 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _g_error_free0 (e); -#line 3751 "FlickrPublishing.c" - goto __finally17; - } -#line 483 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _g_error_free0 (e); -#line 3756 "FlickrPublishing.c" - } - __finally17: -#line 483 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 483 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - if (_inner_error_->domain == SPIT_PUBLISHING_PUBLISHING_ERROR) { -#line 483 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_propagate_error (error, _inner_error_); -#line 483 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _publishing_rest_support_xml_document_unref0 (_result_); -#line 483 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - return NULL; -#line 3769 "FlickrPublishing.c" - } else { -#line 483 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _publishing_rest_support_xml_document_unref0 (_result_); -#line 483 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 483 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_clear_error (&_inner_error_); -#line 483 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - return NULL; -#line 3779 "FlickrPublishing.c" - } - } -#line 493 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - result = _result_; -#line 493 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - return result; -#line 3786 "FlickrPublishing.c" -} - - -PublishingFlickrAccountInfoFetchTransaction* -publishing_flickr_account_info_fetch_transaction_construct (GType object_type, - PublishingRESTSupportOAuth1Session* session) -{ - PublishingFlickrAccountInfoFetchTransaction* self = NULL; -#line 498 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_return_val_if_fail (PUBLISHING_REST_SUPPORT_OAUTH1_IS_SESSION (session), NULL); -#line 499 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - self = (PublishingFlickrAccountInfoFetchTransaction*) publishing_rest_support_oauth1_transaction_construct (object_type, session, PUBLISHING_REST_SUPPORT_HTTP_METHOD_GET); -#line 500 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - publishing_rest_support_transaction_add_argument (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "method", "flickr.people.getUploadStatus"); -#line 498 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - return self; -#line 3803 "FlickrPublishing.c" -} - - -PublishingFlickrAccountInfoFetchTransaction* -publishing_flickr_account_info_fetch_transaction_new (PublishingRESTSupportOAuth1Session* session) -{ -#line 498 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - return publishing_flickr_account_info_fetch_transaction_construct (PUBLISHING_FLICKR_TYPE_ACCOUNT_INFO_FETCH_TRANSACTION, session); -#line 3812 "FlickrPublishing.c" -} - - -static void -publishing_flickr_account_info_fetch_transaction_class_init (PublishingFlickrAccountInfoFetchTransactionClass * klass) -{ -#line 497 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - publishing_flickr_account_info_fetch_transaction_parent_class = g_type_class_peek_parent (klass); -#line 3821 "FlickrPublishing.c" -} - - -static void -publishing_flickr_account_info_fetch_transaction_instance_init (PublishingFlickrAccountInfoFetchTransaction * self) -{ -} - - -GType -publishing_flickr_account_info_fetch_transaction_get_type (void) -{ - static volatile gsize publishing_flickr_account_info_fetch_transaction_type_id__volatile = 0; - if (g_once_init_enter (&publishing_flickr_account_info_fetch_transaction_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (PublishingFlickrAccountInfoFetchTransactionClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) publishing_flickr_account_info_fetch_transaction_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PublishingFlickrAccountInfoFetchTransaction), 0, (GInstanceInitFunc) publishing_flickr_account_info_fetch_transaction_instance_init, NULL }; - GType publishing_flickr_account_info_fetch_transaction_type_id; - publishing_flickr_account_info_fetch_transaction_type_id = g_type_register_static (PUBLISHING_REST_SUPPORT_OAUTH1_TYPE_TRANSACTION, "PublishingFlickrAccountInfoFetchTransaction", &g_define_type_info, 0); - g_once_init_leave (&publishing_flickr_account_info_fetch_transaction_type_id__volatile, publishing_flickr_account_info_fetch_transaction_type_id); - } - return publishing_flickr_account_info_fetch_transaction_type_id__volatile; -} - - -static gpointer -_publishing_flickr_publishing_parameters_ref0 (gpointer self) -{ -#line 511 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - return self ? publishing_flickr_publishing_parameters_ref (self) : NULL; -#line 3850 "FlickrPublishing.c" -} - - -static void -_g_free0_ (gpointer var) -{ -#line 517 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - var = (g_free (var), NULL); -#line 3859 "FlickrPublishing.c" -} - - -PublishingFlickrUploadTransaction* -publishing_flickr_upload_transaction_construct (GType object_type, - PublishingRESTSupportOAuth1Session* session, - PublishingFlickrPublishingParameters* parameters, - SpitPublishingPublishable* publishable) -{ - PublishingFlickrUploadTransaction* self = NULL; - PublishingFlickrPublishingParameters* _tmp0_; - PublishingFlickrVisibilitySpecification* _tmp1_; - gint _tmp2_; - gchar* _tmp3_; - gchar* _tmp4_; - PublishingFlickrVisibilitySpecification* _tmp5_; - gint _tmp6_; - gchar* _tmp7_; - gchar* _tmp8_; - PublishingFlickrVisibilitySpecification* _tmp9_; - gint _tmp10_; - gchar* _tmp11_; - gchar* _tmp12_; - GHashTable* disposition_table = NULL; - GHashFunc _tmp13_; - GEqualFunc _tmp14_; - GHashTable* _tmp15_; - gchar* filename = NULL; - gchar* _tmp16_; - gboolean _tmp17_ = FALSE; - const gchar* _tmp18_; - GHashTable* _tmp21_; - gchar* _tmp22_; - gchar* _tmp23_; - gchar* _tmp24_; - gchar* _tmp25_; - GHashTable* _tmp26_; - gchar* _tmp27_; - gchar* _tmp28_; - GHashTable* _tmp29_; -#line 507 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_return_val_if_fail (PUBLISHING_REST_SUPPORT_OAUTH1_IS_SESSION (session), NULL); -#line 507 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_return_val_if_fail (PUBLISHING_FLICKR_IS_PUBLISHING_PARAMETERS (parameters), NULL); -#line 507 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_return_val_if_fail (SPIT_PUBLISHING_IS_PUBLISHABLE (publishable), NULL); -#line 509 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - self = (PublishingFlickrUploadTransaction*) publishing_rest_support_oauth1_upload_transaction_construct (object_type, session, publishable, "https://api.flickr.com/services/upload"); -#line 511 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp0_ = _publishing_flickr_publishing_parameters_ref0 (parameters); -#line 511 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _publishing_flickr_publishing_parameters_unref0 (self->priv->parameters); -#line 511 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - self->priv->parameters = _tmp0_; -#line 513 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp1_ = parameters->visibility_specification; -#line 513 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp2_ = _tmp1_->everyone_level; -#line 513 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp3_ = g_strdup_printf ("%d", _tmp2_); -#line 513 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp4_ = _tmp3_; -#line 513 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - publishing_rest_support_transaction_add_argument (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "is_public", _tmp4_); -#line 513 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _g_free0 (_tmp4_); -#line 514 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp5_ = parameters->visibility_specification; -#line 514 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp6_ = _tmp5_->friends_level; -#line 514 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp7_ = g_strdup_printf ("%d", _tmp6_); -#line 514 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp8_ = _tmp7_; -#line 514 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - publishing_rest_support_transaction_add_argument (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "is_friend", _tmp8_); -#line 514 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _g_free0 (_tmp8_); -#line 515 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp9_ = parameters->visibility_specification; -#line 515 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp10_ = _tmp9_->family_level; -#line 515 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp11_ = g_strdup_printf ("%d", _tmp10_); -#line 515 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp12_ = _tmp11_; -#line 515 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - publishing_rest_support_transaction_add_argument (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "is_family", _tmp12_); -#line 515 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _g_free0 (_tmp12_); -#line 517 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp13_ = g_str_hash; -#line 517 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp14_ = g_str_equal; -#line 517 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp15_ = g_hash_table_new_full (_tmp13_, _tmp14_, _g_free0_, _g_free0_); -#line 517 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - disposition_table = _tmp15_; -#line 519 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp16_ = spit_publishing_publishable_get_publishing_name (publishable); -#line 519 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - filename = _tmp16_; -#line 520 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp18_ = filename; -#line 520 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - if (_tmp18_ == NULL) { -#line 520 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp17_ = TRUE; -#line 3968 "FlickrPublishing.c" - } else { - const gchar* _tmp19_; -#line 520 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp19_ = filename; -#line 520 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp17_ = g_strcmp0 (_tmp19_, "") == 0; -#line 3975 "FlickrPublishing.c" - } -#line 520 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - if (_tmp17_) { -#line 3979 "FlickrPublishing.c" - gchar* _tmp20_; -#line 521 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp20_ = spit_publishing_publishable_get_param_string (publishable, SPIT_PUBLISHING_PUBLISHABLE_PARAM_STRING_BASENAME); -#line 521 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _g_free0 (filename); -#line 521 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - filename = _tmp20_; -#line 3987 "FlickrPublishing.c" - } -#line 525 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp21_ = disposition_table; -#line 525 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp22_ = g_strdup ("filename"); -#line 525 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp23_ = spit_publishing_publishable_get_param_string (publishable, SPIT_PUBLISHING_PUBLISHABLE_PARAM_STRING_BASENAME); -#line 525 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp24_ = _tmp23_; -#line 525 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp25_ = soup_uri_encode (_tmp24_, NULL); -#line 525 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_hash_table_insert (_tmp21_, _tmp22_, _tmp25_); -#line 525 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _g_free0 (_tmp24_); -#line 528 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp26_ = disposition_table; -#line 528 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp27_ = g_strdup ("name"); -#line 528 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp28_ = g_strdup ("photo"); -#line 528 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_hash_table_insert (_tmp26_, _tmp27_, _tmp28_); -#line 530 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp29_ = disposition_table; -#line 530 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - publishing_rest_support_upload_transaction_set_binary_disposition_table (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_UPLOAD_TRANSACTION, PublishingRESTSupportUploadTransaction), _tmp29_); -#line 507 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _g_free0 (filename); -#line 507 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _g_hash_table_unref0 (disposition_table); -#line 507 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - return self; -#line 4021 "FlickrPublishing.c" -} - - -PublishingFlickrUploadTransaction* -publishing_flickr_upload_transaction_new (PublishingRESTSupportOAuth1Session* session, - PublishingFlickrPublishingParameters* parameters, - SpitPublishingPublishable* publishable) -{ -#line 507 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - return publishing_flickr_upload_transaction_construct (PUBLISHING_FLICKR_TYPE_UPLOAD_TRANSACTION, session, parameters, publishable); -#line 4032 "FlickrPublishing.c" -} - - -static void -publishing_flickr_upload_transaction_real_execute (PublishingRESTSupportTransaction* base, - GError** error) -{ - PublishingFlickrUploadTransaction * self; - GError * _inner_error_ = NULL; -#line 533 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_FLICKR_TYPE_UPLOAD_TRANSACTION, PublishingFlickrUploadTransaction); -#line 534 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - publishing_rest_support_oauth1_upload_transaction_authorize (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_OAUTH1_TYPE_UPLOAD_TRANSACTION, PublishingRESTSupportOAuth1UploadTransaction)); -#line 535 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - PUBLISHING_REST_SUPPORT_TRANSACTION_CLASS (publishing_flickr_upload_transaction_parent_class)->execute (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_OAUTH1_TYPE_UPLOAD_TRANSACTION, PublishingRESTSupportOAuth1UploadTransaction), PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), &_inner_error_); -#line 535 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 535 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - if (_inner_error_->domain == SPIT_PUBLISHING_PUBLISHING_ERROR) { -#line 535 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_propagate_error (error, _inner_error_); -#line 535 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - return; -#line 4056 "FlickrPublishing.c" - } else { -#line 535 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 535 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_clear_error (&_inner_error_); -#line 535 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - return; -#line 4064 "FlickrPublishing.c" - } - } -} - - -static void -publishing_flickr_upload_transaction_class_init (PublishingFlickrUploadTransactionClass * klass) -{ -#line 504 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - publishing_flickr_upload_transaction_parent_class = g_type_class_peek_parent (klass); -#line 504 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - ((PublishingRESTSupportTransactionClass *) klass)->finalize = publishing_flickr_upload_transaction_finalize; -#line 504 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_type_class_add_private (klass, sizeof (PublishingFlickrUploadTransactionPrivate)); -#line 504 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - ((PublishingRESTSupportTransactionClass *) klass)->execute = (void (*) (PublishingRESTSupportTransaction *, GError**)) publishing_flickr_upload_transaction_real_execute; -#line 4081 "FlickrPublishing.c" -} - - -static void -publishing_flickr_upload_transaction_instance_init (PublishingFlickrUploadTransaction * self) -{ -#line 504 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - self->priv = PUBLISHING_FLICKR_UPLOAD_TRANSACTION_GET_PRIVATE (self); -#line 4090 "FlickrPublishing.c" -} - - -static void -publishing_flickr_upload_transaction_finalize (PublishingRESTSupportTransaction * obj) -{ - PublishingFlickrUploadTransaction * self; -#line 504 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, PUBLISHING_FLICKR_TYPE_UPLOAD_TRANSACTION, PublishingFlickrUploadTransaction); -#line 505 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _publishing_flickr_publishing_parameters_unref0 (self->priv->parameters); -#line 504 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - PUBLISHING_REST_SUPPORT_TRANSACTION_CLASS (publishing_flickr_upload_transaction_parent_class)->finalize (obj); -#line 4104 "FlickrPublishing.c" -} - - -GType -publishing_flickr_upload_transaction_get_type (void) -{ - static volatile gsize publishing_flickr_upload_transaction_type_id__volatile = 0; - if (g_once_init_enter (&publishing_flickr_upload_transaction_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (PublishingFlickrUploadTransactionClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) publishing_flickr_upload_transaction_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PublishingFlickrUploadTransaction), 0, (GInstanceInitFunc) publishing_flickr_upload_transaction_instance_init, NULL }; - GType publishing_flickr_upload_transaction_type_id; - publishing_flickr_upload_transaction_type_id = g_type_register_static (PUBLISHING_REST_SUPPORT_OAUTH1_TYPE_UPLOAD_TRANSACTION, "PublishingFlickrUploadTransaction", &g_define_type_info, 0); - g_once_init_leave (&publishing_flickr_upload_transaction_type_id__volatile, publishing_flickr_upload_transaction_type_id); - } - return publishing_flickr_upload_transaction_type_id__volatile; -} - - -static void -_publishing_flickr_publishing_options_pane_on_visibility_changed_gtk_combo_box_changed (GtkComboBox* _sender, - gpointer self) -{ -#line 627 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - publishing_flickr_publishing_options_pane_on_visibility_changed ((PublishingFlickrPublishingOptionsPane*) self); -#line 4128 "FlickrPublishing.c" -} - - -static void -_publishing_flickr_publishing_options_pane_on_size_changed_gtk_combo_box_changed (GtkComboBox* _sender, - gpointer self) -{ -#line 631 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - publishing_flickr_publishing_options_pane_on_size_changed ((PublishingFlickrPublishingOptionsPane*) self); -#line 4138 "FlickrPublishing.c" -} - - -static void -_publishing_flickr_publishing_options_pane_on_logout_clicked_gtk_button_clicked (GtkButton* _sender, - gpointer self) -{ -#line 640 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - publishing_flickr_publishing_options_pane_on_logout_clicked ((PublishingFlickrPublishingOptionsPane*) self); -#line 4148 "FlickrPublishing.c" -} - - -static void -_publishing_flickr_publishing_options_pane_on_publish_clicked_gtk_button_clicked (GtkButton* _sender, - gpointer self) -{ -#line 641 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - publishing_flickr_publishing_options_pane_on_publish_clicked ((PublishingFlickrPublishingOptionsPane*) self); -#line 4158 "FlickrPublishing.c" -} - - -PublishingFlickrPublishingOptionsPane* -publishing_flickr_publishing_options_pane_construct (GType object_type, - PublishingFlickrFlickrPublisher* publisher, - PublishingFlickrPublishingParameters* parameters, - SpitPublishingPublisherMediaType media_type, - GtkBuilder* builder, - gboolean strip_metadata) -{ - PublishingFlickrPublishingOptionsPane * self = NULL; - GtkBuilder* _tmp0_; - GSList* _tmp1_; - GSList* _tmp2_; - GtkBuilder* _tmp3_; - GObject* _tmp4_; - GtkBox* _tmp5_; - GtkBuilder* _tmp6_; - GObject* _tmp7_; - GtkLabel* _tmp8_; - GtkBuilder* _tmp9_; - GObject* _tmp10_; - GtkLabel* _tmp11_; - GtkBuilder* _tmp12_; - GObject* _tmp13_; - GtkButton* _tmp14_; - GtkBuilder* _tmp15_; - GObject* _tmp16_; - GtkButton* _tmp17_; - GtkBuilder* _tmp18_; - GObject* _tmp19_; - GtkComboBoxText* _tmp20_; - GtkBuilder* _tmp21_; - GObject* _tmp22_; - GtkComboBoxText* _tmp23_; - GtkBuilder* _tmp24_; - GObject* _tmp25_; - GtkLabel* _tmp26_; - GtkBuilder* _tmp27_; - GObject* _tmp28_; - GtkCheckButton* _tmp29_; - SpitPublishingAuthenticator* _tmp30_; - SpitPublishingAuthenticator* _tmp31_; - gboolean _tmp32_; - PublishingFlickrPublishingParameters* _tmp37_; - PublishingFlickrFlickrPublisher* _tmp38_; - gint _tmp39_; - PublishingFlickrPublishingOptionsPaneVisibilityEntry** _tmp40_; - gint _tmp41_; - PublishingFlickrPublishingOptionsPaneSizeEntry** _tmp42_; - gchar* upload_label_text = NULL; - const gchar* _tmp43_; - gchar* _tmp44_; - PublishingFlickrUserKind _tmp45_; - GtkLabel* _tmp55_; - const gchar* _tmp56_; - gchar* visibility_label_text = NULL; - gchar* _tmp57_; - GtkLabel* _tmp60_; - const gchar* _tmp61_; - GtkComboBoxText* _tmp62_; - GtkCheckButton* _tmp66_; - GtkButton* _tmp67_; - GtkButton* _tmp68_; -#line 579 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_return_val_if_fail (PUBLISHING_FLICKR_IS_FLICKR_PUBLISHER (publisher), NULL); -#line 579 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_return_val_if_fail (PUBLISHING_FLICKR_IS_PUBLISHING_PARAMETERS (parameters), NULL); -#line 579 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_return_val_if_fail (GTK_IS_BUILDER (builder), NULL); -#line 579 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - self = (PublishingFlickrPublishingOptionsPane*) g_object_new (object_type, NULL); -#line 581 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp0_ = _g_object_ref0 (builder); -#line 581 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _g_object_unref0 (self->priv->builder); -#line 581 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - self->priv->builder = _tmp0_; -#line 582 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _vala_assert (builder != NULL, "builder != null"); -#line 583 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp1_ = gtk_builder_get_objects (builder); -#line 583 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp2_ = _tmp1_; -#line 583 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _vala_assert (g_slist_length (_tmp2_) > ((guint) 0), "builder.get_objects().length() > 0"); -#line 583 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _g_slist_free0 (_tmp2_); -#line 586 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp3_ = self->priv->builder; -#line 586 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp4_ = gtk_builder_get_object (_tmp3_, "flickr_pane"); -#line 586 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp5_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, gtk_box_get_type (), GtkBox)); -#line 586 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _g_object_unref0 (self->priv->pane_widget); -#line 586 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - self->priv->pane_widget = _tmp5_; -#line 587 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp6_ = self->priv->builder; -#line 587 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp7_ = gtk_builder_get_object (_tmp6_, "visibility_label"); -#line 587 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp8_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, gtk_label_get_type (), GtkLabel)); -#line 587 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _g_object_unref0 (self->priv->visibility_label); -#line 587 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - self->priv->visibility_label = _tmp8_; -#line 588 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp9_ = self->priv->builder; -#line 588 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp10_ = gtk_builder_get_object (_tmp9_, "upload_info_label"); -#line 588 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp11_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp10_, gtk_label_get_type (), GtkLabel)); -#line 588 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _g_object_unref0 (self->priv->upload_info_label); -#line 588 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - self->priv->upload_info_label = _tmp11_; -#line 589 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp12_ = self->priv->builder; -#line 589 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp13_ = gtk_builder_get_object (_tmp12_, "logout_button"); -#line 589 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp14_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp13_, gtk_button_get_type (), GtkButton)); -#line 589 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _g_object_unref0 (self->priv->logout_button); -#line 589 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - self->priv->logout_button = _tmp14_; -#line 590 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp15_ = self->priv->builder; -#line 590 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp16_ = gtk_builder_get_object (_tmp15_, "publish_button"); -#line 590 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp17_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp16_, gtk_button_get_type (), GtkButton)); -#line 590 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _g_object_unref0 (self->priv->publish_button); -#line 590 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - self->priv->publish_button = _tmp17_; -#line 591 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp18_ = self->priv->builder; -#line 591 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp19_ = gtk_builder_get_object (_tmp18_, "visibility_combo"); -#line 591 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp20_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp19_, gtk_combo_box_text_get_type (), GtkComboBoxText)); -#line 591 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _g_object_unref0 (self->priv->visibility_combo); -#line 591 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - self->priv->visibility_combo = _tmp20_; -#line 592 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp21_ = self->priv->builder; -#line 592 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp22_ = gtk_builder_get_object (_tmp21_, "size_combo"); -#line 592 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp23_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp22_, gtk_combo_box_text_get_type (), GtkComboBoxText)); -#line 592 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _g_object_unref0 (self->priv->size_combo); -#line 592 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - self->priv->size_combo = _tmp23_; -#line 593 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp24_ = self->priv->builder; -#line 593 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp25_ = gtk_builder_get_object (_tmp24_, "size_label"); -#line 593 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp26_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp25_, gtk_label_get_type (), GtkLabel)); -#line 593 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _g_object_unref0 (self->priv->size_label); -#line 593 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - self->priv->size_label = _tmp26_; -#line 594 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp27_ = self->priv->builder; -#line 594 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp28_ = gtk_builder_get_object (_tmp27_, "strip_metadata_check"); -#line 594 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp29_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp28_, gtk_check_button_get_type (), GtkCheckButton)); -#line 594 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _g_object_unref0 (self->priv->strip_metadata_check); -#line 594 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - self->priv->strip_metadata_check = _tmp29_; -#line 596 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp30_ = publishing_flickr_flickr_publisher_get_authenticator (publisher); -#line 596 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp31_ = _tmp30_; -#line 596 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp32_ = !spit_publishing_authenticator_can_logout (_tmp31_); -#line 596 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _g_object_unref0 (_tmp31_); -#line 596 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - if (_tmp32_) { -#line 4348 "FlickrPublishing.c" - GtkButton* _tmp33_; - GtkContainer* _tmp34_; - GtkContainer* _tmp35_; - GtkButton* _tmp36_; -#line 597 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp33_ = self->priv->logout_button; -#line 597 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp34_ = gtk_widget_get_parent (G_TYPE_CHECK_INSTANCE_CAST (_tmp33_, gtk_widget_get_type (), GtkWidget)); -#line 597 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp35_ = _tmp34_; -#line 597 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp36_ = self->priv->logout_button; -#line 597 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - gtk_container_remove (_tmp35_, G_TYPE_CHECK_INSTANCE_CAST (_tmp36_, gtk_widget_get_type (), GtkWidget)); -#line 4363 "FlickrPublishing.c" - } -#line 600 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp37_ = _publishing_flickr_publishing_parameters_ref0 (parameters); -#line 600 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _publishing_flickr_publishing_parameters_unref0 (self->priv->parameters); -#line 600 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - self->priv->parameters = _tmp37_; -#line 601 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp38_ = _g_object_ref0 (publisher); -#line 601 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _g_object_unref0 (self->priv->publisher); -#line 601 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - self->priv->publisher = _tmp38_; -#line 602 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - self->priv->media_type = media_type; -#line 604 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp40_ = publishing_flickr_publishing_options_pane_create_visibilities (self, &_tmp39_); -#line 604 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - self->priv->visibilities = (_vala_array_free (self->priv->visibilities, self->priv->visibilities_length1, (GDestroyNotify) publishing_flickr_publishing_options_pane_visibility_entry_unref), NULL); -#line 604 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - self->priv->visibilities = _tmp40_; -#line 604 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - self->priv->visibilities_length1 = _tmp39_; -#line 604 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - self->priv->_visibilities_size_ = self->priv->visibilities_length1; -#line 605 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp42_ = publishing_flickr_publishing_options_pane_create_sizes (self, &_tmp41_); -#line 605 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - self->priv->sizes = (_vala_array_free (self->priv->sizes, self->priv->sizes_length1, (GDestroyNotify) publishing_flickr_publishing_options_pane_size_entry_unref), NULL); -#line 605 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - self->priv->sizes = _tmp42_; -#line 605 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - self->priv->sizes_length1 = _tmp41_; -#line 605 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - self->priv->_sizes_size_ = self->priv->sizes_length1; -#line 607 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp43_ = parameters->username; -#line 607 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp44_ = g_strdup_printf (_ ("You are logged into Flickr as %s.\n\n"), _tmp43_); -#line 607 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - upload_label_text = _tmp44_; -#line 608 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp45_ = parameters->user_kind; -#line 608 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - if (_tmp45_ == PUBLISHING_FLICKR_USER_KIND_FREE) { -#line 4409 "FlickrPublishing.c" - const gchar* _tmp46_; - gint64 _tmp47_; - gchar* _tmp48_; - gchar* _tmp49_; - gchar* _tmp50_; - gchar* _tmp51_; - gchar* _tmp52_; -#line 609 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp46_ = upload_label_text; -#line 609 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp47_ = parameters->quota_free_bytes; -#line 609 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp48_ = g_format_size_full ((guint64) _tmp47_, G_FORMAT_SIZE_LONG_FORMAT | G_FORMAT_SIZE_IEC_UNITS); -#line 609 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp49_ = _tmp48_; -#line 609 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp50_ = g_strdup_printf (_ ("Your free Flickr account limits how much data you can upload per month" \ -".\n" \ -"This month you have %s remaining in your upload quota."), _tmp49_); -#line 609 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp51_ = _tmp50_; -#line 609 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp52_ = g_strconcat (_tmp46_, _tmp51_, NULL); -#line 609 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _g_free0 (upload_label_text); -#line 609 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - upload_label_text = _tmp52_; -#line 609 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _g_free0 (_tmp51_); -#line 609 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _g_free0 (_tmp49_); -#line 4439 "FlickrPublishing.c" - } else { - const gchar* _tmp53_; - gchar* _tmp54_; -#line 611 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp53_ = upload_label_text; -#line 611 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp54_ = g_strconcat (_tmp53_, _ ("Your Flickr Pro account entitles you to unlimited uploads."), NULL); -#line 611 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _g_free0 (upload_label_text); -#line 611 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - upload_label_text = _tmp54_; -#line 4451 "FlickrPublishing.c" - } -#line 614 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp55_ = self->priv->upload_info_label; -#line 614 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp56_ = upload_label_text; -#line 614 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - gtk_label_set_label (_tmp55_, _tmp56_); -#line 616 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp57_ = g_strdup (_ ("Photos _visible to:")); -#line 616 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - visibility_label_text = _tmp57_; -#line 617 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - if (media_type == SPIT_PUBLISHING_PUBLISHER_MEDIA_TYPE_VIDEO) { -#line 4465 "FlickrPublishing.c" - gchar* _tmp58_; -#line 618 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp58_ = g_strdup (_ ("Videos _visible to:")); -#line 618 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _g_free0 (visibility_label_text); -#line 618 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - visibility_label_text = _tmp58_; -#line 4473 "FlickrPublishing.c" - } else { -#line 619 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - if (media_type == (SPIT_PUBLISHING_PUBLISHER_MEDIA_TYPE_PHOTO | SPIT_PUBLISHING_PUBLISHER_MEDIA_TYPE_VIDEO)) { -#line 4477 "FlickrPublishing.c" - gchar* _tmp59_; -#line 621 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp59_ = g_strdup (_ ("Photos and videos _visible to:")); -#line 621 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _g_free0 (visibility_label_text); -#line 621 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - visibility_label_text = _tmp59_; -#line 4485 "FlickrPublishing.c" - } - } -#line 624 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp60_ = self->priv->visibility_label; -#line 624 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp61_ = visibility_label_text; -#line 624 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - gtk_label_set_label (_tmp60_, _tmp61_); -#line 626 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - publishing_flickr_publishing_options_pane_populate_visibility_combo (self); -#line 627 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp62_ = self->priv->visibility_combo; -#line 627 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp62_, gtk_combo_box_get_type (), GtkComboBox), "changed", (GCallback) _publishing_flickr_publishing_options_pane_on_visibility_changed_gtk_combo_box_changed, self, 0); -#line 629 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - if (media_type != SPIT_PUBLISHING_PUBLISHER_MEDIA_TYPE_VIDEO) { -#line 4502 "FlickrPublishing.c" - GtkComboBoxText* _tmp63_; -#line 630 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - publishing_flickr_publishing_options_pane_populate_size_combo (self); -#line 631 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp63_ = self->priv->size_combo; -#line 631 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp63_, gtk_combo_box_get_type (), GtkComboBox), "changed", (GCallback) _publishing_flickr_publishing_options_pane_on_size_changed_gtk_combo_box_changed, self, 0); -#line 4510 "FlickrPublishing.c" - } else { - GtkComboBoxText* _tmp64_; - GtkLabel* _tmp65_; -#line 634 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp64_ = self->priv->size_combo; -#line 634 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - gtk_widget_set_sensitive (G_TYPE_CHECK_INSTANCE_CAST (_tmp64_, gtk_widget_get_type (), GtkWidget), FALSE); -#line 635 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp65_ = self->priv->size_label; -#line 635 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - gtk_widget_set_sensitive (G_TYPE_CHECK_INSTANCE_CAST (_tmp65_, gtk_widget_get_type (), GtkWidget), FALSE); -#line 4522 "FlickrPublishing.c" - } -#line 638 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp66_ = self->priv->strip_metadata_check; -#line 638 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - gtk_toggle_button_set_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp66_, gtk_toggle_button_get_type (), GtkToggleButton), strip_metadata); -#line 640 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp67_ = self->priv->logout_button; -#line 640 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_signal_connect_object (_tmp67_, "clicked", (GCallback) _publishing_flickr_publishing_options_pane_on_logout_clicked_gtk_button_clicked, self, 0); -#line 641 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp68_ = self->priv->publish_button; -#line 641 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_signal_connect_object (_tmp68_, "clicked", (GCallback) _publishing_flickr_publishing_options_pane_on_publish_clicked_gtk_button_clicked, self, 0); -#line 579 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _g_free0 (visibility_label_text); -#line 579 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _g_free0 (upload_label_text); -#line 579 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - return self; -#line 4542 "FlickrPublishing.c" -} - - -PublishingFlickrPublishingOptionsPane* -publishing_flickr_publishing_options_pane_new (PublishingFlickrFlickrPublisher* publisher, - PublishingFlickrPublishingParameters* parameters, - SpitPublishingPublisherMediaType media_type, - GtkBuilder* builder, - gboolean strip_metadata) -{ -#line 579 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - return publishing_flickr_publishing_options_pane_construct (PUBLISHING_FLICKR_TYPE_PUBLISHING_OPTIONS_PANE, publisher, parameters, media_type, builder, strip_metadata); -#line 4555 "FlickrPublishing.c" -} - - -static void -publishing_flickr_publishing_options_pane_on_logout_clicked (PublishingFlickrPublishingOptionsPane* self) -{ -#line 644 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_return_if_fail (PUBLISHING_FLICKR_IS_PUBLISHING_OPTIONS_PANE (self)); -#line 645 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_signal_emit (self, publishing_flickr_publishing_options_pane_signals[PUBLISHING_FLICKR_PUBLISHING_OPTIONS_PANE_LOGOUT_SIGNAL], 0); -#line 4566 "FlickrPublishing.c" -} - - -static gpointer -_publishing_flickr_visibility_specification_ref0 (gpointer self) -{ -#line 649 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - return self ? publishing_flickr_visibility_specification_ref (self) : NULL; -#line 4575 "FlickrPublishing.c" -} - - -static void -publishing_flickr_publishing_options_pane_on_publish_clicked (PublishingFlickrPublishingOptionsPane* self) -{ - PublishingFlickrPublishingParameters* _tmp0_; - PublishingFlickrPublishingOptionsPaneVisibilityEntry** _tmp1_; - gint _tmp1__length1; - GtkComboBoxText* _tmp2_; - PublishingFlickrPublishingOptionsPaneVisibilityEntry* _tmp3_; - PublishingFlickrVisibilitySpecification* _tmp4_; - PublishingFlickrVisibilitySpecification* _tmp5_; - SpitPublishingPublisherMediaType _tmp6_; - GtkCheckButton* _tmp12_; -#line 648 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_return_if_fail (PUBLISHING_FLICKR_IS_PUBLISHING_OPTIONS_PANE (self)); -#line 649 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp0_ = self->priv->parameters; -#line 649 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp1_ = self->priv->visibilities; -#line 649 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp1__length1 = self->priv->visibilities_length1; -#line 649 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp2_ = self->priv->visibility_combo; -#line 649 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp3_ = _tmp1_[gtk_combo_box_get_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, gtk_combo_box_get_type (), GtkComboBox))]; -#line 649 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp4_ = _tmp3_->specification; -#line 649 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp5_ = _publishing_flickr_visibility_specification_ref0 (_tmp4_); -#line 649 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _publishing_flickr_visibility_specification_unref0 (_tmp0_->visibility_specification); -#line 649 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp0_->visibility_specification = _tmp5_; -#line 652 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp6_ = self->priv->media_type; -#line 652 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - if ((_tmp6_ & SPIT_PUBLISHING_PUBLISHER_MEDIA_TYPE_PHOTO) != 0) { -#line 4615 "FlickrPublishing.c" - PublishingFlickrPublishingParameters* _tmp7_; - PublishingFlickrPublishingOptionsPaneSizeEntry** _tmp8_; - gint _tmp8__length1; - GtkComboBoxText* _tmp9_; - PublishingFlickrPublishingOptionsPaneSizeEntry* _tmp10_; - gint _tmp11_; -#line 653 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp7_ = self->priv->parameters; -#line 653 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp8_ = self->priv->sizes; -#line 653 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp8__length1 = self->priv->sizes_length1; -#line 653 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp9_ = self->priv->size_combo; -#line 653 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp10_ = _tmp8_[gtk_combo_box_get_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, gtk_combo_box_get_type (), GtkComboBox))]; -#line 653 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp11_ = _tmp10_->size; -#line 653 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp7_->photo_major_axis_size = _tmp11_; -#line 4636 "FlickrPublishing.c" - } -#line 655 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp12_ = self->priv->strip_metadata_check; -#line 655 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_signal_emit (self, publishing_flickr_publishing_options_pane_signals[PUBLISHING_FLICKR_PUBLISHING_OPTIONS_PANE_PUBLISH_SIGNAL], 0, gtk_toggle_button_get_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp12_, gtk_toggle_button_get_type (), GtkToggleButton))); -#line 4642 "FlickrPublishing.c" -} - - -static void -_vala_array_add20 (PublishingFlickrPublishingOptionsPaneVisibilityEntry** * array, - int* length, - int* size, - PublishingFlickrPublishingOptionsPaneVisibilityEntry* value) -{ -#line 661 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - if ((*length) == (*size)) { -#line 661 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - *size = (*size) ? (2 * (*size)) : 4; -#line 661 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - *array = g_renew (PublishingFlickrPublishingOptionsPaneVisibilityEntry*, *array, (*size) + 1); -#line 4658 "FlickrPublishing.c" - } -#line 661 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - (*array)[(*length)++] = value; -#line 661 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - (*array)[*length] = NULL; -#line 4664 "FlickrPublishing.c" -} - - -static void -_vala_array_add21 (PublishingFlickrPublishingOptionsPaneVisibilityEntry** * array, - int* length, - int* size, - PublishingFlickrPublishingOptionsPaneVisibilityEntry* value) -{ -#line 662 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - if ((*length) == (*size)) { -#line 662 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - *size = (*size) ? (2 * (*size)) : 4; -#line 662 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - *array = g_renew (PublishingFlickrPublishingOptionsPaneVisibilityEntry*, *array, (*size) + 1); -#line 4680 "FlickrPublishing.c" - } -#line 662 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - (*array)[(*length)++] = value; -#line 662 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - (*array)[*length] = NULL; -#line 4686 "FlickrPublishing.c" -} - - -static void -_vala_array_add22 (PublishingFlickrPublishingOptionsPaneVisibilityEntry** * array, - int* length, - int* size, - PublishingFlickrPublishingOptionsPaneVisibilityEntry* value) -{ -#line 663 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - if ((*length) == (*size)) { -#line 663 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - *size = (*size) ? (2 * (*size)) : 4; -#line 663 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - *array = g_renew (PublishingFlickrPublishingOptionsPaneVisibilityEntry*, *array, (*size) + 1); -#line 4702 "FlickrPublishing.c" - } -#line 663 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - (*array)[(*length)++] = value; -#line 663 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - (*array)[*length] = NULL; -#line 4708 "FlickrPublishing.c" -} - - -static void -_vala_array_add23 (PublishingFlickrPublishingOptionsPaneVisibilityEntry** * array, - int* length, - int* size, - PublishingFlickrPublishingOptionsPaneVisibilityEntry* value) -{ -#line 664 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - if ((*length) == (*size)) { -#line 664 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - *size = (*size) ? (2 * (*size)) : 4; -#line 664 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - *array = g_renew (PublishingFlickrPublishingOptionsPaneVisibilityEntry*, *array, (*size) + 1); -#line 4724 "FlickrPublishing.c" - } -#line 664 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - (*array)[(*length)++] = value; -#line 664 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - (*array)[*length] = NULL; -#line 4730 "FlickrPublishing.c" -} - - -static void -_vala_array_add24 (PublishingFlickrPublishingOptionsPaneVisibilityEntry** * array, - int* length, - int* size, - PublishingFlickrPublishingOptionsPaneVisibilityEntry* value) -{ -#line 665 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - if ((*length) == (*size)) { -#line 665 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - *size = (*size) ? (2 * (*size)) : 4; -#line 665 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - *array = g_renew (PublishingFlickrPublishingOptionsPaneVisibilityEntry*, *array, (*size) + 1); -#line 4746 "FlickrPublishing.c" - } -#line 665 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - (*array)[(*length)++] = value; -#line 665 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - (*array)[*length] = NULL; -#line 4752 "FlickrPublishing.c" -} - - -static PublishingFlickrPublishingOptionsPaneVisibilityEntry** -publishing_flickr_publishing_options_pane_create_visibilities (PublishingFlickrPublishingOptionsPane* self, - int* result_length1) -{ - PublishingFlickrPublishingOptionsPaneVisibilityEntry** result = NULL; - PublishingFlickrPublishingOptionsPaneVisibilityEntry** _result_ = NULL; - PublishingFlickrPublishingOptionsPaneVisibilityEntry** _tmp0_; - gint _result__length1; - gint __result__size_; - PublishingFlickrPublishingOptionsPaneVisibilityEntry** _tmp1_; - gint _tmp1__length1; - PublishingFlickrVisibilitySpecification* _tmp2_; - PublishingFlickrVisibilitySpecification* _tmp3_; - PublishingFlickrPublishingOptionsPaneVisibilityEntry* _tmp4_; - PublishingFlickrPublishingOptionsPaneVisibilityEntry** _tmp5_; - gint _tmp5__length1; - PublishingFlickrVisibilitySpecification* _tmp6_; - PublishingFlickrVisibilitySpecification* _tmp7_; - PublishingFlickrPublishingOptionsPaneVisibilityEntry* _tmp8_; - PublishingFlickrPublishingOptionsPaneVisibilityEntry** _tmp9_; - gint _tmp9__length1; - PublishingFlickrVisibilitySpecification* _tmp10_; - PublishingFlickrVisibilitySpecification* _tmp11_; - PublishingFlickrPublishingOptionsPaneVisibilityEntry* _tmp12_; - PublishingFlickrPublishingOptionsPaneVisibilityEntry** _tmp13_; - gint _tmp13__length1; - PublishingFlickrVisibilitySpecification* _tmp14_; - PublishingFlickrVisibilitySpecification* _tmp15_; - PublishingFlickrPublishingOptionsPaneVisibilityEntry* _tmp16_; - PublishingFlickrPublishingOptionsPaneVisibilityEntry** _tmp17_; - gint _tmp17__length1; - PublishingFlickrVisibilitySpecification* _tmp18_; - PublishingFlickrVisibilitySpecification* _tmp19_; - PublishingFlickrPublishingOptionsPaneVisibilityEntry* _tmp20_; - PublishingFlickrPublishingOptionsPaneVisibilityEntry** _tmp21_; - gint _tmp21__length1; -#line 658 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_return_val_if_fail (PUBLISHING_FLICKR_IS_PUBLISHING_OPTIONS_PANE (self), NULL); -#line 659 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp0_ = g_new0 (PublishingFlickrPublishingOptionsPaneVisibilityEntry*, 0 + 1); -#line 659 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _result_ = _tmp0_; -#line 659 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _result__length1 = 0; -#line 659 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - __result__size_ = _result__length1; -#line 661 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp1_ = _result_; -#line 661 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp1__length1 = _result__length1; -#line 661 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp2_ = publishing_flickr_visibility_specification_new (1, 1, 1); -#line 661 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp3_ = _tmp2_; -#line 661 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp4_ = publishing_flickr_publishing_options_pane_visibility_entry_new (_ ("Everyone"), _tmp3_); -#line 661 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _vala_array_add20 (&_result_, &_result__length1, &__result__size_, _tmp4_); -#line 661 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _publishing_flickr_visibility_specification_unref0 (_tmp3_); -#line 662 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp5_ = _result_; -#line 662 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp5__length1 = _result__length1; -#line 662 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp6_ = publishing_flickr_visibility_specification_new (1, 1, 0); -#line 662 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp7_ = _tmp6_; -#line 662 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp8_ = publishing_flickr_publishing_options_pane_visibility_entry_new (_ ("Friends & family only"), _tmp7_); -#line 662 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _vala_array_add21 (&_result_, &_result__length1, &__result__size_, _tmp8_); -#line 662 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _publishing_flickr_visibility_specification_unref0 (_tmp7_); -#line 663 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp9_ = _result_; -#line 663 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp9__length1 = _result__length1; -#line 663 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp10_ = publishing_flickr_visibility_specification_new (0, 1, 0); -#line 663 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp11_ = _tmp10_; -#line 663 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp12_ = publishing_flickr_publishing_options_pane_visibility_entry_new (_ ("Family only"), _tmp11_); -#line 663 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _vala_array_add22 (&_result_, &_result__length1, &__result__size_, _tmp12_); -#line 663 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _publishing_flickr_visibility_specification_unref0 (_tmp11_); -#line 664 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp13_ = _result_; -#line 664 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp13__length1 = _result__length1; -#line 664 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp14_ = publishing_flickr_visibility_specification_new (1, 0, 0); -#line 664 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp15_ = _tmp14_; -#line 664 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp16_ = publishing_flickr_publishing_options_pane_visibility_entry_new (_ ("Friends only"), _tmp15_); -#line 664 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _vala_array_add23 (&_result_, &_result__length1, &__result__size_, _tmp16_); -#line 664 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _publishing_flickr_visibility_specification_unref0 (_tmp15_); -#line 665 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp17_ = _result_; -#line 665 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp17__length1 = _result__length1; -#line 665 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp18_ = publishing_flickr_visibility_specification_new (0, 0, 0); -#line 665 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp19_ = _tmp18_; -#line 665 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp20_ = publishing_flickr_publishing_options_pane_visibility_entry_new (_ ("Just me"), _tmp19_); -#line 665 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _vala_array_add24 (&_result_, &_result__length1, &__result__size_, _tmp20_); -#line 665 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _publishing_flickr_visibility_specification_unref0 (_tmp19_); -#line 667 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp21_ = _result_; -#line 667 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp21__length1 = _result__length1; -#line 667 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - if (result_length1) { -#line 667 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - *result_length1 = _tmp21__length1; -#line 4880 "FlickrPublishing.c" - } -#line 667 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - result = _tmp21_; -#line 667 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - return result; -#line 4886 "FlickrPublishing.c" -} - - -static gpointer -_publishing_flickr_publishing_options_pane_visibility_entry_ref0 (gpointer self) -{ -#line 674 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - return self ? publishing_flickr_publishing_options_pane_visibility_entry_ref (self) : NULL; -#line 4895 "FlickrPublishing.c" -} - - -static void -publishing_flickr_publishing_options_pane_populate_visibility_combo (PublishingFlickrPublishingOptionsPane* self) -{ - PublishingFlickrPublishingOptionsPaneVisibilityEntry** _tmp0_; - gint _tmp0__length1; - PublishingFlickrPublishingOptionsPaneVisibilityEntry** _tmp3_; - gint _tmp3__length1; - GtkComboBoxText* _tmp8_; - PublishingFlickrFlickrPublisher* _tmp9_; -#line 670 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_return_if_fail (PUBLISHING_FLICKR_IS_PUBLISHING_OPTIONS_PANE (self)); -#line 671 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp0_ = self->priv->visibilities; -#line 671 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp0__length1 = self->priv->visibilities_length1; -#line 671 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - if (_tmp0_ == NULL) { -#line 4916 "FlickrPublishing.c" - gint _tmp1_; - PublishingFlickrPublishingOptionsPaneVisibilityEntry** _tmp2_; -#line 672 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp2_ = publishing_flickr_publishing_options_pane_create_visibilities (self, &_tmp1_); -#line 672 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - self->priv->visibilities = (_vala_array_free (self->priv->visibilities, self->priv->visibilities_length1, (GDestroyNotify) publishing_flickr_publishing_options_pane_visibility_entry_unref), NULL); -#line 672 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - self->priv->visibilities = _tmp2_; -#line 672 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - self->priv->visibilities_length1 = _tmp1_; -#line 672 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - self->priv->_visibilities_size_ = self->priv->visibilities_length1; -#line 4929 "FlickrPublishing.c" - } -#line 674 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp3_ = self->priv->visibilities; -#line 674 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp3__length1 = self->priv->visibilities_length1; -#line 4935 "FlickrPublishing.c" - { - PublishingFlickrPublishingOptionsPaneVisibilityEntry** v_collection = NULL; - gint v_collection_length1 = 0; - gint _v_collection_size_ = 0; - gint v_it = 0; -#line 674 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - v_collection = _tmp3_; -#line 674 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - v_collection_length1 = _tmp3__length1; -#line 674 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - for (v_it = 0; v_it < _tmp3__length1; v_it = v_it + 1) { -#line 4947 "FlickrPublishing.c" - PublishingFlickrPublishingOptionsPaneVisibilityEntry* _tmp4_; - PublishingFlickrPublishingOptionsPaneVisibilityEntry* v = NULL; -#line 674 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp4_ = _publishing_flickr_publishing_options_pane_visibility_entry_ref0 (v_collection[v_it]); -#line 674 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - v = _tmp4_; -#line 4954 "FlickrPublishing.c" - { - GtkComboBoxText* _tmp5_; - PublishingFlickrPublishingOptionsPaneVisibilityEntry* _tmp6_; - const gchar* _tmp7_; -#line 675 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp5_ = self->priv->visibility_combo; -#line 675 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp6_ = v; -#line 675 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp7_ = _tmp6_->title; -#line 675 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - gtk_combo_box_text_append_text (_tmp5_, _tmp7_); -#line 674 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _publishing_flickr_publishing_options_pane_visibility_entry_unref0 (v); -#line 4969 "FlickrPublishing.c" - } - } - } -#line 677 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp8_ = self->priv->visibility_combo; -#line 677 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp9_ = self->priv->publisher; -#line 677 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - gtk_combo_box_set_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, gtk_combo_box_get_type (), GtkComboBox), publishing_flickr_flickr_publisher_get_persistent_visibility (_tmp9_)); -#line 4979 "FlickrPublishing.c" -} - - -static void -_vala_array_add25 (PublishingFlickrPublishingOptionsPaneSizeEntry** * array, - int* length, - int* size, - PublishingFlickrPublishingOptionsPaneSizeEntry* value) -{ -#line 683 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - if ((*length) == (*size)) { -#line 683 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - *size = (*size) ? (2 * (*size)) : 4; -#line 683 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - *array = g_renew (PublishingFlickrPublishingOptionsPaneSizeEntry*, *array, (*size) + 1); -#line 4995 "FlickrPublishing.c" - } -#line 683 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - (*array)[(*length)++] = value; -#line 683 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - (*array)[*length] = NULL; -#line 5001 "FlickrPublishing.c" -} - - -static void -_vala_array_add26 (PublishingFlickrPublishingOptionsPaneSizeEntry** * array, - int* length, - int* size, - PublishingFlickrPublishingOptionsPaneSizeEntry* value) -{ -#line 684 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - if ((*length) == (*size)) { -#line 684 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - *size = (*size) ? (2 * (*size)) : 4; -#line 684 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - *array = g_renew (PublishingFlickrPublishingOptionsPaneSizeEntry*, *array, (*size) + 1); -#line 5017 "FlickrPublishing.c" - } -#line 684 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - (*array)[(*length)++] = value; -#line 684 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - (*array)[*length] = NULL; -#line 5023 "FlickrPublishing.c" -} - - -static void -_vala_array_add27 (PublishingFlickrPublishingOptionsPaneSizeEntry** * array, - int* length, - int* size, - PublishingFlickrPublishingOptionsPaneSizeEntry* value) -{ -#line 685 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - if ((*length) == (*size)) { -#line 685 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - *size = (*size) ? (2 * (*size)) : 4; -#line 685 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - *array = g_renew (PublishingFlickrPublishingOptionsPaneSizeEntry*, *array, (*size) + 1); -#line 5039 "FlickrPublishing.c" - } -#line 685 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - (*array)[(*length)++] = value; -#line 685 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - (*array)[*length] = NULL; -#line 5045 "FlickrPublishing.c" -} - - -static void -_vala_array_add28 (PublishingFlickrPublishingOptionsPaneSizeEntry** * array, - int* length, - int* size, - PublishingFlickrPublishingOptionsPaneSizeEntry* value) -{ -#line 686 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - if ((*length) == (*size)) { -#line 686 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - *size = (*size) ? (2 * (*size)) : 4; -#line 686 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - *array = g_renew (PublishingFlickrPublishingOptionsPaneSizeEntry*, *array, (*size) + 1); -#line 5061 "FlickrPublishing.c" - } -#line 686 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - (*array)[(*length)++] = value; -#line 686 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - (*array)[*length] = NULL; -#line 5067 "FlickrPublishing.c" -} - - -static void -_vala_array_add29 (PublishingFlickrPublishingOptionsPaneSizeEntry** * array, - int* length, - int* size, - PublishingFlickrPublishingOptionsPaneSizeEntry* value) -{ -#line 687 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - if ((*length) == (*size)) { -#line 687 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - *size = (*size) ? (2 * (*size)) : 4; -#line 687 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - *array = g_renew (PublishingFlickrPublishingOptionsPaneSizeEntry*, *array, (*size) + 1); -#line 5083 "FlickrPublishing.c" - } -#line 687 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - (*array)[(*length)++] = value; -#line 687 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - (*array)[*length] = NULL; -#line 5089 "FlickrPublishing.c" -} - - -static PublishingFlickrPublishingOptionsPaneSizeEntry** -publishing_flickr_publishing_options_pane_create_sizes (PublishingFlickrPublishingOptionsPane* self, - int* result_length1) -{ - PublishingFlickrPublishingOptionsPaneSizeEntry** result = NULL; - PublishingFlickrPublishingOptionsPaneSizeEntry** _result_ = NULL; - PublishingFlickrPublishingOptionsPaneSizeEntry** _tmp0_; - gint _result__length1; - gint __result__size_; - PublishingFlickrPublishingOptionsPaneSizeEntry** _tmp1_; - gint _tmp1__length1; - PublishingFlickrPublishingOptionsPaneSizeEntry* _tmp2_; - PublishingFlickrPublishingOptionsPaneSizeEntry** _tmp3_; - gint _tmp3__length1; - PublishingFlickrPublishingOptionsPaneSizeEntry* _tmp4_; - PublishingFlickrPublishingOptionsPaneSizeEntry** _tmp5_; - gint _tmp5__length1; - PublishingFlickrPublishingOptionsPaneSizeEntry* _tmp6_; - PublishingFlickrPublishingOptionsPaneSizeEntry** _tmp7_; - gint _tmp7__length1; - PublishingFlickrPublishingOptionsPaneSizeEntry* _tmp8_; - PublishingFlickrPublishingOptionsPaneSizeEntry** _tmp9_; - gint _tmp9__length1; - PublishingFlickrPublishingOptionsPaneSizeEntry* _tmp10_; - PublishingFlickrPublishingOptionsPaneSizeEntry** _tmp11_; - gint _tmp11__length1; -#line 680 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_return_val_if_fail (PUBLISHING_FLICKR_IS_PUBLISHING_OPTIONS_PANE (self), NULL); -#line 681 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp0_ = g_new0 (PublishingFlickrPublishingOptionsPaneSizeEntry*, 0 + 1); -#line 681 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _result_ = _tmp0_; -#line 681 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _result__length1 = 0; -#line 681 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - __result__size_ = _result__length1; -#line 683 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp1_ = _result_; -#line 683 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp1__length1 = _result__length1; -#line 683 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp2_ = publishing_flickr_publishing_options_pane_size_entry_new (_ ("500 × 375 pixels"), 500); -#line 683 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _vala_array_add25 (&_result_, &_result__length1, &__result__size_, _tmp2_); -#line 684 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp3_ = _result_; -#line 684 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp3__length1 = _result__length1; -#line 684 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp4_ = publishing_flickr_publishing_options_pane_size_entry_new (_ ("1024 × 768 pixels"), 1024); -#line 684 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _vala_array_add26 (&_result_, &_result__length1, &__result__size_, _tmp4_); -#line 685 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp5_ = _result_; -#line 685 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp5__length1 = _result__length1; -#line 685 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp6_ = publishing_flickr_publishing_options_pane_size_entry_new (_ ("2048 × 1536 pixels"), 2048); -#line 685 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _vala_array_add27 (&_result_, &_result__length1, &__result__size_, _tmp6_); -#line 686 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp7_ = _result_; -#line 686 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp7__length1 = _result__length1; -#line 686 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp8_ = publishing_flickr_publishing_options_pane_size_entry_new (_ ("4096 × 3072 pixels"), 4096); -#line 686 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _vala_array_add28 (&_result_, &_result__length1, &__result__size_, _tmp8_); -#line 687 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp9_ = _result_; -#line 687 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp9__length1 = _result__length1; -#line 687 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp10_ = publishing_flickr_publishing_options_pane_size_entry_new (_ ("Original size"), PUBLISHING_FLICKR_ORIGINAL_SIZE); -#line 687 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _vala_array_add29 (&_result_, &_result__length1, &__result__size_, _tmp10_); -#line 689 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp11_ = _result_; -#line 689 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp11__length1 = _result__length1; -#line 689 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - if (result_length1) { -#line 689 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - *result_length1 = _tmp11__length1; -#line 5177 "FlickrPublishing.c" - } -#line 689 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - result = _tmp11_; -#line 689 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - return result; -#line 5183 "FlickrPublishing.c" -} - - -static gpointer -_publishing_flickr_publishing_options_pane_size_entry_ref0 (gpointer self) -{ -#line 696 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - return self ? publishing_flickr_publishing_options_pane_size_entry_ref (self) : NULL; -#line 5192 "FlickrPublishing.c" -} - - -static void -publishing_flickr_publishing_options_pane_populate_size_combo (PublishingFlickrPublishingOptionsPane* self) -{ - PublishingFlickrPublishingOptionsPaneSizeEntry** _tmp0_; - gint _tmp0__length1; - PublishingFlickrPublishingOptionsPaneSizeEntry** _tmp3_; - gint _tmp3__length1; - GtkComboBoxText* _tmp8_; - PublishingFlickrFlickrPublisher* _tmp9_; -#line 692 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_return_if_fail (PUBLISHING_FLICKR_IS_PUBLISHING_OPTIONS_PANE (self)); -#line 693 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp0_ = self->priv->sizes; -#line 693 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp0__length1 = self->priv->sizes_length1; -#line 693 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - if (_tmp0_ == NULL) { -#line 5213 "FlickrPublishing.c" - gint _tmp1_; - PublishingFlickrPublishingOptionsPaneSizeEntry** _tmp2_; -#line 694 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp2_ = publishing_flickr_publishing_options_pane_create_sizes (self, &_tmp1_); -#line 694 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - self->priv->sizes = (_vala_array_free (self->priv->sizes, self->priv->sizes_length1, (GDestroyNotify) publishing_flickr_publishing_options_pane_size_entry_unref), NULL); -#line 694 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - self->priv->sizes = _tmp2_; -#line 694 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - self->priv->sizes_length1 = _tmp1_; -#line 694 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - self->priv->_sizes_size_ = self->priv->sizes_length1; -#line 5226 "FlickrPublishing.c" - } -#line 696 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp3_ = self->priv->sizes; -#line 696 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp3__length1 = self->priv->sizes_length1; -#line 5232 "FlickrPublishing.c" - { - PublishingFlickrPublishingOptionsPaneSizeEntry** e_collection = NULL; - gint e_collection_length1 = 0; - gint _e_collection_size_ = 0; - gint e_it = 0; -#line 696 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - e_collection = _tmp3_; -#line 696 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - e_collection_length1 = _tmp3__length1; -#line 696 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - for (e_it = 0; e_it < _tmp3__length1; e_it = e_it + 1) { -#line 5244 "FlickrPublishing.c" - PublishingFlickrPublishingOptionsPaneSizeEntry* _tmp4_; - PublishingFlickrPublishingOptionsPaneSizeEntry* e = NULL; -#line 696 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp4_ = _publishing_flickr_publishing_options_pane_size_entry_ref0 (e_collection[e_it]); -#line 696 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - e = _tmp4_; -#line 5251 "FlickrPublishing.c" - { - GtkComboBoxText* _tmp5_; - PublishingFlickrPublishingOptionsPaneSizeEntry* _tmp6_; - const gchar* _tmp7_; -#line 697 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp5_ = self->priv->size_combo; -#line 697 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp6_ = e; -#line 697 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp7_ = _tmp6_->title; -#line 697 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - gtk_combo_box_text_append_text (_tmp5_, _tmp7_); -#line 696 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _publishing_flickr_publishing_options_pane_size_entry_unref0 (e); -#line 5266 "FlickrPublishing.c" - } - } - } -#line 699 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp8_ = self->priv->size_combo; -#line 699 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp9_ = self->priv->publisher; -#line 699 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - gtk_combo_box_set_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, gtk_combo_box_get_type (), GtkComboBox), publishing_flickr_flickr_publisher_get_persistent_default_size (_tmp9_)); -#line 5276 "FlickrPublishing.c" -} - - -static void -publishing_flickr_publishing_options_pane_on_size_changed (PublishingFlickrPublishingOptionsPane* self) -{ - PublishingFlickrFlickrPublisher* _tmp0_; - GtkComboBoxText* _tmp1_; -#line 702 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_return_if_fail (PUBLISHING_FLICKR_IS_PUBLISHING_OPTIONS_PANE (self)); -#line 703 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp0_ = self->priv->publisher; -#line 703 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp1_ = self->priv->size_combo; -#line 703 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - publishing_flickr_flickr_publisher_set_persistent_default_size (_tmp0_, gtk_combo_box_get_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, gtk_combo_box_get_type (), GtkComboBox))); -#line 5293 "FlickrPublishing.c" -} - - -static void -publishing_flickr_publishing_options_pane_on_visibility_changed (PublishingFlickrPublishingOptionsPane* self) -{ - PublishingFlickrFlickrPublisher* _tmp0_; - GtkComboBoxText* _tmp1_; -#line 706 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_return_if_fail (PUBLISHING_FLICKR_IS_PUBLISHING_OPTIONS_PANE (self)); -#line 707 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp0_ = self->priv->publisher; -#line 707 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp1_ = self->priv->visibility_combo; -#line 707 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - publishing_flickr_flickr_publisher_set_persistent_visibility (_tmp0_, gtk_combo_box_get_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, gtk_combo_box_get_type (), GtkComboBox))); -#line 5310 "FlickrPublishing.c" -} - - -void -publishing_flickr_publishing_options_pane_notify_publish (PublishingFlickrPublishingOptionsPane* self) -{ - GtkCheckButton* _tmp0_; -#line 710 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_return_if_fail (PUBLISHING_FLICKR_IS_PUBLISHING_OPTIONS_PANE (self)); -#line 711 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp0_ = self->priv->strip_metadata_check; -#line 711 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_signal_emit (self, publishing_flickr_publishing_options_pane_signals[PUBLISHING_FLICKR_PUBLISHING_OPTIONS_PANE_PUBLISH_SIGNAL], 0, gtk_toggle_button_get_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, gtk_toggle_button_get_type (), GtkToggleButton))); -#line 5324 "FlickrPublishing.c" -} - - -void -publishing_flickr_publishing_options_pane_notify_logout (PublishingFlickrPublishingOptionsPane* self) -{ -#line 714 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_return_if_fail (PUBLISHING_FLICKR_IS_PUBLISHING_OPTIONS_PANE (self)); -#line 715 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_signal_emit (self, publishing_flickr_publishing_options_pane_signals[PUBLISHING_FLICKR_PUBLISHING_OPTIONS_PANE_LOGOUT_SIGNAL], 0); -#line 5335 "FlickrPublishing.c" -} - - -static GtkWidget* -publishing_flickr_publishing_options_pane_real_get_widget (SpitPublishingDialogPane* base) -{ - PublishingFlickrPublishingOptionsPane * self; - GtkWidget* result = NULL; - GtkBox* _tmp0_; - GtkWidget* _tmp1_; -#line 718 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_FLICKR_TYPE_PUBLISHING_OPTIONS_PANE, PublishingFlickrPublishingOptionsPane); -#line 719 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp0_ = self->priv->pane_widget; -#line 719 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp1_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, gtk_widget_get_type (), GtkWidget)); -#line 719 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - result = _tmp1_; -#line 719 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - return result; -#line 5356 "FlickrPublishing.c" -} - - -static SpitPublishingDialogPaneGeometryOptions -publishing_flickr_publishing_options_pane_real_get_preferred_geometry (SpitPublishingDialogPane* base) -{ - PublishingFlickrPublishingOptionsPane * self; - SpitPublishingDialogPaneGeometryOptions result = 0; -#line 722 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_FLICKR_TYPE_PUBLISHING_OPTIONS_PANE, PublishingFlickrPublishingOptionsPane); -#line 723 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - result = SPIT_PUBLISHING_DIALOG_PANE_GEOMETRY_OPTIONS_NONE; -#line 723 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - return result; -#line 5371 "FlickrPublishing.c" -} - - -static void -_publishing_flickr_publishing_options_pane_notify_publish_publishing_flickr_publishing_options_pane_publish (PublishingFlickrPublishingOptionsPane* _sender, - gboolean strip_metadata, - gpointer self) -{ -#line 727 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - publishing_flickr_publishing_options_pane_notify_publish ((PublishingFlickrPublishingOptionsPane*) self); -#line 5382 "FlickrPublishing.c" -} - - -static void -_publishing_flickr_publishing_options_pane_notify_logout_publishing_flickr_publishing_options_pane_logout (PublishingFlickrPublishingOptionsPane* _sender, - gpointer self) -{ -#line 728 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - publishing_flickr_publishing_options_pane_notify_logout ((PublishingFlickrPublishingOptionsPane*) self); -#line 5392 "FlickrPublishing.c" -} - - -static void -publishing_flickr_publishing_options_pane_real_on_pane_installed (SpitPublishingDialogPane* base) -{ - PublishingFlickrPublishingOptionsPane * self; -#line 726 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_FLICKR_TYPE_PUBLISHING_OPTIONS_PANE, PublishingFlickrPublishingOptionsPane); -#line 727 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_signal_connect_object (self, "publish", (GCallback) _publishing_flickr_publishing_options_pane_notify_publish_publishing_flickr_publishing_options_pane_publish, self, 0); -#line 728 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_signal_connect_object (self, "logout", (GCallback) _publishing_flickr_publishing_options_pane_notify_logout_publishing_flickr_publishing_options_pane_logout, self, 0); -#line 5406 "FlickrPublishing.c" -} - - -static void -publishing_flickr_publishing_options_pane_real_on_pane_uninstalled (SpitPublishingDialogPane* base) -{ - PublishingFlickrPublishingOptionsPane * self; - guint _tmp0_; - guint _tmp1_; -#line 731 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_FLICKR_TYPE_PUBLISHING_OPTIONS_PANE, PublishingFlickrPublishingOptionsPane); -#line 732 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_signal_parse_name ("publish", PUBLISHING_FLICKR_TYPE_PUBLISHING_OPTIONS_PANE, &_tmp0_, NULL, FALSE); -#line 732 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_signal_handlers_disconnect_matched (self, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp0_, 0, NULL, (GCallback) _publishing_flickr_publishing_options_pane_notify_publish_publishing_flickr_publishing_options_pane_publish, self); -#line 733 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_signal_parse_name ("logout", PUBLISHING_FLICKR_TYPE_PUBLISHING_OPTIONS_PANE, &_tmp1_, NULL, FALSE); -#line 733 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_signal_handlers_disconnect_matched (self, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp1_, 0, NULL, (GCallback) _publishing_flickr_publishing_options_pane_notify_logout_publishing_flickr_publishing_options_pane_logout, self); -#line 5426 "FlickrPublishing.c" -} - - -static PublishingFlickrPublishingOptionsPaneSizeEntry* -publishing_flickr_publishing_options_pane_size_entry_construct (GType object_type, - const gchar* creator_title, - gint creator_size) -{ - PublishingFlickrPublishingOptionsPaneSizeEntry* self = NULL; - gchar* _tmp0_; -#line 544 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_return_val_if_fail (creator_title != NULL, NULL); -#line 544 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - self = (PublishingFlickrPublishingOptionsPaneSizeEntry*) g_type_create_instance (object_type); -#line 545 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp0_ = g_strdup (creator_title); -#line 545 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _g_free0 (self->title); -#line 545 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - self->title = _tmp0_; -#line 546 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - self->size = creator_size; -#line 544 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - return self; -#line 5451 "FlickrPublishing.c" -} - - -static PublishingFlickrPublishingOptionsPaneSizeEntry* -publishing_flickr_publishing_options_pane_size_entry_new (const gchar* creator_title, - gint creator_size) -{ -#line 544 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - return publishing_flickr_publishing_options_pane_size_entry_construct (PUBLISHING_FLICKR_PUBLISHING_OPTIONS_PANE_TYPE_SIZE_ENTRY, creator_title, creator_size); -#line 5461 "FlickrPublishing.c" -} - - -static void -publishing_flickr_publishing_options_pane_value_size_entry_init (GValue* value) -{ -#line 540 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - value->data[0].v_pointer = NULL; -#line 5470 "FlickrPublishing.c" -} - - -static void -publishing_flickr_publishing_options_pane_value_size_entry_free_value (GValue* value) -{ -#line 540 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - if (value->data[0].v_pointer) { -#line 540 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - publishing_flickr_publishing_options_pane_size_entry_unref (value->data[0].v_pointer); -#line 5481 "FlickrPublishing.c" - } -} - - -static void -publishing_flickr_publishing_options_pane_value_size_entry_copy_value (const GValue* src_value, - GValue* dest_value) -{ -#line 540 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - if (src_value->data[0].v_pointer) { -#line 540 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - dest_value->data[0].v_pointer = publishing_flickr_publishing_options_pane_size_entry_ref (src_value->data[0].v_pointer); -#line 5494 "FlickrPublishing.c" - } else { -#line 540 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - dest_value->data[0].v_pointer = NULL; -#line 5498 "FlickrPublishing.c" - } -} - - -static gpointer -publishing_flickr_publishing_options_pane_value_size_entry_peek_pointer (const GValue* value) -{ -#line 540 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - return value->data[0].v_pointer; -#line 5508 "FlickrPublishing.c" -} - - -static gchar* -publishing_flickr_publishing_options_pane_value_size_entry_collect_value (GValue* value, - guint n_collect_values, - GTypeCValue* collect_values, - guint collect_flags) -{ -#line 540 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - if (collect_values[0].v_pointer) { -#line 5520 "FlickrPublishing.c" - PublishingFlickrPublishingOptionsPaneSizeEntry * object; - object = collect_values[0].v_pointer; -#line 540 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - if (object->parent_instance.g_class == NULL) { -#line 540 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL); -#line 5527 "FlickrPublishing.c" - } else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) { -#line 540 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - return g_strconcat ("invalid object type `", g_type_name (G_TYPE_FROM_INSTANCE (object)), "' for value type `", G_VALUE_TYPE_NAME (value), "'", NULL); -#line 5531 "FlickrPublishing.c" - } -#line 540 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - value->data[0].v_pointer = publishing_flickr_publishing_options_pane_size_entry_ref (object); -#line 5535 "FlickrPublishing.c" - } else { -#line 540 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - value->data[0].v_pointer = NULL; -#line 5539 "FlickrPublishing.c" - } -#line 540 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - return NULL; -#line 5543 "FlickrPublishing.c" -} - - -static gchar* -publishing_flickr_publishing_options_pane_value_size_entry_lcopy_value (const GValue* value, - guint n_collect_values, - GTypeCValue* collect_values, - guint collect_flags) -{ - PublishingFlickrPublishingOptionsPaneSizeEntry ** object_p; - object_p = collect_values[0].v_pointer; -#line 540 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - if (!object_p) { -#line 540 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value)); -#line 5559 "FlickrPublishing.c" - } -#line 540 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - if (!value->data[0].v_pointer) { -#line 540 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - *object_p = NULL; -#line 5565 "FlickrPublishing.c" - } else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) { -#line 540 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - *object_p = value->data[0].v_pointer; -#line 5569 "FlickrPublishing.c" - } else { -#line 540 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - *object_p = publishing_flickr_publishing_options_pane_size_entry_ref (value->data[0].v_pointer); -#line 5573 "FlickrPublishing.c" - } -#line 540 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - return NULL; -#line 5577 "FlickrPublishing.c" -} - - -static GParamSpec* -publishing_flickr_publishing_options_pane_param_spec_size_entry (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags) -{ - PublishingFlickrPublishingOptionsPaneParamSpecSizeEntry* spec; -#line 540 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_return_val_if_fail (g_type_is_a (object_type, PUBLISHING_FLICKR_PUBLISHING_OPTIONS_PANE_TYPE_SIZE_ENTRY), NULL); -#line 540 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags); -#line 540 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - G_PARAM_SPEC (spec)->value_type = object_type; -#line 540 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - return G_PARAM_SPEC (spec); -#line 5597 "FlickrPublishing.c" -} - - -static gpointer -publishing_flickr_publishing_options_pane_value_get_size_entry (const GValue* value) -{ -#line 540 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, PUBLISHING_FLICKR_PUBLISHING_OPTIONS_PANE_TYPE_SIZE_ENTRY), NULL); -#line 540 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - return value->data[0].v_pointer; -#line 5608 "FlickrPublishing.c" -} - - -static void -publishing_flickr_publishing_options_pane_value_set_size_entry (GValue* value, - gpointer v_object) -{ - PublishingFlickrPublishingOptionsPaneSizeEntry * old; -#line 540 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, PUBLISHING_FLICKR_PUBLISHING_OPTIONS_PANE_TYPE_SIZE_ENTRY)); -#line 540 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - old = value->data[0].v_pointer; -#line 540 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - if (v_object) { -#line 540 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, PUBLISHING_FLICKR_PUBLISHING_OPTIONS_PANE_TYPE_SIZE_ENTRY)); -#line 540 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value))); -#line 540 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - value->data[0].v_pointer = v_object; -#line 540 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - publishing_flickr_publishing_options_pane_size_entry_ref (value->data[0].v_pointer); -#line 5631 "FlickrPublishing.c" - } else { -#line 540 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - value->data[0].v_pointer = NULL; -#line 5635 "FlickrPublishing.c" - } -#line 540 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - if (old) { -#line 540 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - publishing_flickr_publishing_options_pane_size_entry_unref (old); -#line 5641 "FlickrPublishing.c" - } -} - - -static void -publishing_flickr_publishing_options_pane_value_take_size_entry (GValue* value, - gpointer v_object) -{ - PublishingFlickrPublishingOptionsPaneSizeEntry * old; -#line 540 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, PUBLISHING_FLICKR_PUBLISHING_OPTIONS_PANE_TYPE_SIZE_ENTRY)); -#line 540 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - old = value->data[0].v_pointer; -#line 540 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - if (v_object) { -#line 540 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, PUBLISHING_FLICKR_PUBLISHING_OPTIONS_PANE_TYPE_SIZE_ENTRY)); -#line 540 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value))); -#line 540 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - value->data[0].v_pointer = v_object; -#line 5663 "FlickrPublishing.c" - } else { -#line 540 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - value->data[0].v_pointer = NULL; -#line 5667 "FlickrPublishing.c" - } -#line 540 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - if (old) { -#line 540 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - publishing_flickr_publishing_options_pane_size_entry_unref (old); -#line 5673 "FlickrPublishing.c" - } -} - - -static void -publishing_flickr_publishing_options_pane_size_entry_class_init (PublishingFlickrPublishingOptionsPaneSizeEntryClass * klass) -{ -#line 540 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - publishing_flickr_publishing_options_pane_size_entry_parent_class = g_type_class_peek_parent (klass); -#line 540 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - ((PublishingFlickrPublishingOptionsPaneSizeEntryClass *) klass)->finalize = publishing_flickr_publishing_options_pane_size_entry_finalize; -#line 5685 "FlickrPublishing.c" -} - - -static void -publishing_flickr_publishing_options_pane_size_entry_instance_init (PublishingFlickrPublishingOptionsPaneSizeEntry * self) -{ -#line 540 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - self->ref_count = 1; -#line 5694 "FlickrPublishing.c" -} - - -static void -publishing_flickr_publishing_options_pane_size_entry_finalize (PublishingFlickrPublishingOptionsPaneSizeEntry * obj) -{ - PublishingFlickrPublishingOptionsPaneSizeEntry * self; -#line 540 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, PUBLISHING_FLICKR_PUBLISHING_OPTIONS_PANE_TYPE_SIZE_ENTRY, PublishingFlickrPublishingOptionsPaneSizeEntry); -#line 540 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_signal_handlers_destroy (self); -#line 541 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _g_free0 (self->title); -#line 5708 "FlickrPublishing.c" -} - - -static GType -publishing_flickr_publishing_options_pane_size_entry_get_type (void) -{ - static volatile gsize publishing_flickr_publishing_options_pane_size_entry_type_id__volatile = 0; - if (g_once_init_enter (&publishing_flickr_publishing_options_pane_size_entry_type_id__volatile)) { - static const GTypeValueTable g_define_type_value_table = { publishing_flickr_publishing_options_pane_value_size_entry_init, publishing_flickr_publishing_options_pane_value_size_entry_free_value, publishing_flickr_publishing_options_pane_value_size_entry_copy_value, publishing_flickr_publishing_options_pane_value_size_entry_peek_pointer, "p", publishing_flickr_publishing_options_pane_value_size_entry_collect_value, "p", publishing_flickr_publishing_options_pane_value_size_entry_lcopy_value }; - static const GTypeInfo g_define_type_info = { sizeof (PublishingFlickrPublishingOptionsPaneSizeEntryClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) publishing_flickr_publishing_options_pane_size_entry_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PublishingFlickrPublishingOptionsPaneSizeEntry), 0, (GInstanceInitFunc) publishing_flickr_publishing_options_pane_size_entry_instance_init, &g_define_type_value_table }; - static const GTypeFundamentalInfo g_define_type_fundamental_info = { (G_TYPE_FLAG_CLASSED | G_TYPE_FLAG_INSTANTIATABLE | G_TYPE_FLAG_DERIVABLE | G_TYPE_FLAG_DEEP_DERIVABLE) }; - GType publishing_flickr_publishing_options_pane_size_entry_type_id; - publishing_flickr_publishing_options_pane_size_entry_type_id = g_type_register_fundamental (g_type_fundamental_next (), "PublishingFlickrPublishingOptionsPaneSizeEntry", &g_define_type_info, &g_define_type_fundamental_info, 0); - g_once_init_leave (&publishing_flickr_publishing_options_pane_size_entry_type_id__volatile, publishing_flickr_publishing_options_pane_size_entry_type_id); - } - return publishing_flickr_publishing_options_pane_size_entry_type_id__volatile; -} - - -static gpointer -publishing_flickr_publishing_options_pane_size_entry_ref (gpointer instance) -{ - PublishingFlickrPublishingOptionsPaneSizeEntry * self; - self = instance; -#line 540 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_atomic_int_inc (&self->ref_count); -#line 540 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - return instance; -#line 5737 "FlickrPublishing.c" -} - - -static void -publishing_flickr_publishing_options_pane_size_entry_unref (gpointer instance) -{ - PublishingFlickrPublishingOptionsPaneSizeEntry * self; - self = instance; -#line 540 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - if (g_atomic_int_dec_and_test (&self->ref_count)) { -#line 540 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - PUBLISHING_FLICKR_PUBLISHING_OPTIONS_PANE_SIZE_ENTRY_GET_CLASS (self)->finalize (self); -#line 540 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_type_free_instance ((GTypeInstance *) self); -#line 5752 "FlickrPublishing.c" - } -} - - -static PublishingFlickrPublishingOptionsPaneVisibilityEntry* -publishing_flickr_publishing_options_pane_visibility_entry_construct (GType object_type, - const gchar* creator_title, - PublishingFlickrVisibilitySpecification* creator_specification) -{ - PublishingFlickrPublishingOptionsPaneVisibilityEntry* self = NULL; - PublishingFlickrVisibilitySpecification* _tmp0_; - gchar* _tmp1_; -#line 554 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_return_val_if_fail (creator_title != NULL, NULL); -#line 554 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_return_val_if_fail (PUBLISHING_FLICKR_IS_VISIBILITY_SPECIFICATION (creator_specification), NULL); -#line 554 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - self = (PublishingFlickrPublishingOptionsPaneVisibilityEntry*) g_type_create_instance (object_type); -#line 555 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp0_ = _publishing_flickr_visibility_specification_ref0 (creator_specification); -#line 555 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _publishing_flickr_visibility_specification_unref0 (self->specification); -#line 555 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - self->specification = _tmp0_; -#line 556 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp1_ = g_strdup (creator_title); -#line 556 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _g_free0 (self->title); -#line 556 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - self->title = _tmp1_; -#line 554 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - return self; -#line 5785 "FlickrPublishing.c" -} - - -static PublishingFlickrPublishingOptionsPaneVisibilityEntry* -publishing_flickr_publishing_options_pane_visibility_entry_new (const gchar* creator_title, - PublishingFlickrVisibilitySpecification* creator_specification) -{ -#line 554 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - return publishing_flickr_publishing_options_pane_visibility_entry_construct (PUBLISHING_FLICKR_PUBLISHING_OPTIONS_PANE_TYPE_VISIBILITY_ENTRY, creator_title, creator_specification); -#line 5795 "FlickrPublishing.c" -} - - -static void -publishing_flickr_publishing_options_pane_value_visibility_entry_init (GValue* value) -{ -#line 550 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - value->data[0].v_pointer = NULL; -#line 5804 "FlickrPublishing.c" -} - - -static void -publishing_flickr_publishing_options_pane_value_visibility_entry_free_value (GValue* value) -{ -#line 550 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - if (value->data[0].v_pointer) { -#line 550 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - publishing_flickr_publishing_options_pane_visibility_entry_unref (value->data[0].v_pointer); -#line 5815 "FlickrPublishing.c" - } -} - - -static void -publishing_flickr_publishing_options_pane_value_visibility_entry_copy_value (const GValue* src_value, - GValue* dest_value) -{ -#line 550 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - if (src_value->data[0].v_pointer) { -#line 550 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - dest_value->data[0].v_pointer = publishing_flickr_publishing_options_pane_visibility_entry_ref (src_value->data[0].v_pointer); -#line 5828 "FlickrPublishing.c" - } else { -#line 550 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - dest_value->data[0].v_pointer = NULL; -#line 5832 "FlickrPublishing.c" - } -} - - -static gpointer -publishing_flickr_publishing_options_pane_value_visibility_entry_peek_pointer (const GValue* value) -{ -#line 550 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - return value->data[0].v_pointer; -#line 5842 "FlickrPublishing.c" -} - - -static gchar* -publishing_flickr_publishing_options_pane_value_visibility_entry_collect_value (GValue* value, - guint n_collect_values, - GTypeCValue* collect_values, - guint collect_flags) -{ -#line 550 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - if (collect_values[0].v_pointer) { -#line 5854 "FlickrPublishing.c" - PublishingFlickrPublishingOptionsPaneVisibilityEntry * object; - object = collect_values[0].v_pointer; -#line 550 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - if (object->parent_instance.g_class == NULL) { -#line 550 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL); -#line 5861 "FlickrPublishing.c" - } else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) { -#line 550 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - return g_strconcat ("invalid object type `", g_type_name (G_TYPE_FROM_INSTANCE (object)), "' for value type `", G_VALUE_TYPE_NAME (value), "'", NULL); -#line 5865 "FlickrPublishing.c" - } -#line 550 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - value->data[0].v_pointer = publishing_flickr_publishing_options_pane_visibility_entry_ref (object); -#line 5869 "FlickrPublishing.c" - } else { -#line 550 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - value->data[0].v_pointer = NULL; -#line 5873 "FlickrPublishing.c" - } -#line 550 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - return NULL; -#line 5877 "FlickrPublishing.c" -} - - -static gchar* -publishing_flickr_publishing_options_pane_value_visibility_entry_lcopy_value (const GValue* value, - guint n_collect_values, - GTypeCValue* collect_values, - guint collect_flags) -{ - PublishingFlickrPublishingOptionsPaneVisibilityEntry ** object_p; - object_p = collect_values[0].v_pointer; -#line 550 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - if (!object_p) { -#line 550 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value)); -#line 5893 "FlickrPublishing.c" - } -#line 550 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - if (!value->data[0].v_pointer) { -#line 550 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - *object_p = NULL; -#line 5899 "FlickrPublishing.c" - } else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) { -#line 550 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - *object_p = value->data[0].v_pointer; -#line 5903 "FlickrPublishing.c" - } else { -#line 550 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - *object_p = publishing_flickr_publishing_options_pane_visibility_entry_ref (value->data[0].v_pointer); -#line 5907 "FlickrPublishing.c" - } -#line 550 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - return NULL; -#line 5911 "FlickrPublishing.c" -} - - -static GParamSpec* -publishing_flickr_publishing_options_pane_param_spec_visibility_entry (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags) -{ - PublishingFlickrPublishingOptionsPaneParamSpecVisibilityEntry* spec; -#line 550 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_return_val_if_fail (g_type_is_a (object_type, PUBLISHING_FLICKR_PUBLISHING_OPTIONS_PANE_TYPE_VISIBILITY_ENTRY), NULL); -#line 550 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags); -#line 550 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - G_PARAM_SPEC (spec)->value_type = object_type; -#line 550 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - return G_PARAM_SPEC (spec); -#line 5931 "FlickrPublishing.c" -} - - -static gpointer -publishing_flickr_publishing_options_pane_value_get_visibility_entry (const GValue* value) -{ -#line 550 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, PUBLISHING_FLICKR_PUBLISHING_OPTIONS_PANE_TYPE_VISIBILITY_ENTRY), NULL); -#line 550 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - return value->data[0].v_pointer; -#line 5942 "FlickrPublishing.c" -} - - -static void -publishing_flickr_publishing_options_pane_value_set_visibility_entry (GValue* value, - gpointer v_object) -{ - PublishingFlickrPublishingOptionsPaneVisibilityEntry * old; -#line 550 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, PUBLISHING_FLICKR_PUBLISHING_OPTIONS_PANE_TYPE_VISIBILITY_ENTRY)); -#line 550 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - old = value->data[0].v_pointer; -#line 550 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - if (v_object) { -#line 550 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, PUBLISHING_FLICKR_PUBLISHING_OPTIONS_PANE_TYPE_VISIBILITY_ENTRY)); -#line 550 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value))); -#line 550 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - value->data[0].v_pointer = v_object; -#line 550 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - publishing_flickr_publishing_options_pane_visibility_entry_ref (value->data[0].v_pointer); -#line 5965 "FlickrPublishing.c" - } else { -#line 550 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - value->data[0].v_pointer = NULL; -#line 5969 "FlickrPublishing.c" - } -#line 550 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - if (old) { -#line 550 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - publishing_flickr_publishing_options_pane_visibility_entry_unref (old); -#line 5975 "FlickrPublishing.c" - } -} - - -static void -publishing_flickr_publishing_options_pane_value_take_visibility_entry (GValue* value, - gpointer v_object) -{ - PublishingFlickrPublishingOptionsPaneVisibilityEntry * old; -#line 550 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, PUBLISHING_FLICKR_PUBLISHING_OPTIONS_PANE_TYPE_VISIBILITY_ENTRY)); -#line 550 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - old = value->data[0].v_pointer; -#line 550 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - if (v_object) { -#line 550 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, PUBLISHING_FLICKR_PUBLISHING_OPTIONS_PANE_TYPE_VISIBILITY_ENTRY)); -#line 550 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value))); -#line 550 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - value->data[0].v_pointer = v_object; -#line 5997 "FlickrPublishing.c" - } else { -#line 550 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - value->data[0].v_pointer = NULL; -#line 6001 "FlickrPublishing.c" - } -#line 550 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - if (old) { -#line 550 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - publishing_flickr_publishing_options_pane_visibility_entry_unref (old); -#line 6007 "FlickrPublishing.c" - } -} - - -static void -publishing_flickr_publishing_options_pane_visibility_entry_class_init (PublishingFlickrPublishingOptionsPaneVisibilityEntryClass * klass) -{ -#line 550 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - publishing_flickr_publishing_options_pane_visibility_entry_parent_class = g_type_class_peek_parent (klass); -#line 550 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - ((PublishingFlickrPublishingOptionsPaneVisibilityEntryClass *) klass)->finalize = publishing_flickr_publishing_options_pane_visibility_entry_finalize; -#line 6019 "FlickrPublishing.c" -} - - -static void -publishing_flickr_publishing_options_pane_visibility_entry_instance_init (PublishingFlickrPublishingOptionsPaneVisibilityEntry * self) -{ -#line 550 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - self->ref_count = 1; -#line 6028 "FlickrPublishing.c" -} - - -static void -publishing_flickr_publishing_options_pane_visibility_entry_finalize (PublishingFlickrPublishingOptionsPaneVisibilityEntry * obj) -{ - PublishingFlickrPublishingOptionsPaneVisibilityEntry * self; -#line 550 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, PUBLISHING_FLICKR_PUBLISHING_OPTIONS_PANE_TYPE_VISIBILITY_ENTRY, PublishingFlickrPublishingOptionsPaneVisibilityEntry); -#line 550 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_signal_handlers_destroy (self); -#line 551 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _publishing_flickr_visibility_specification_unref0 (self->specification); -#line 552 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _g_free0 (self->title); -#line 6044 "FlickrPublishing.c" -} - - -static GType -publishing_flickr_publishing_options_pane_visibility_entry_get_type (void) -{ - static volatile gsize publishing_flickr_publishing_options_pane_visibility_entry_type_id__volatile = 0; - if (g_once_init_enter (&publishing_flickr_publishing_options_pane_visibility_entry_type_id__volatile)) { - static const GTypeValueTable g_define_type_value_table = { publishing_flickr_publishing_options_pane_value_visibility_entry_init, publishing_flickr_publishing_options_pane_value_visibility_entry_free_value, publishing_flickr_publishing_options_pane_value_visibility_entry_copy_value, publishing_flickr_publishing_options_pane_value_visibility_entry_peek_pointer, "p", publishing_flickr_publishing_options_pane_value_visibility_entry_collect_value, "p", publishing_flickr_publishing_options_pane_value_visibility_entry_lcopy_value }; - static const GTypeInfo g_define_type_info = { sizeof (PublishingFlickrPublishingOptionsPaneVisibilityEntryClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) publishing_flickr_publishing_options_pane_visibility_entry_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PublishingFlickrPublishingOptionsPaneVisibilityEntry), 0, (GInstanceInitFunc) publishing_flickr_publishing_options_pane_visibility_entry_instance_init, &g_define_type_value_table }; - static const GTypeFundamentalInfo g_define_type_fundamental_info = { (G_TYPE_FLAG_CLASSED | G_TYPE_FLAG_INSTANTIATABLE | G_TYPE_FLAG_DERIVABLE | G_TYPE_FLAG_DEEP_DERIVABLE) }; - GType publishing_flickr_publishing_options_pane_visibility_entry_type_id; - publishing_flickr_publishing_options_pane_visibility_entry_type_id = g_type_register_fundamental (g_type_fundamental_next (), "PublishingFlickrPublishingOptionsPaneVisibilityEntry", &g_define_type_info, &g_define_type_fundamental_info, 0); - g_once_init_leave (&publishing_flickr_publishing_options_pane_visibility_entry_type_id__volatile, publishing_flickr_publishing_options_pane_visibility_entry_type_id); - } - return publishing_flickr_publishing_options_pane_visibility_entry_type_id__volatile; -} - - -static gpointer -publishing_flickr_publishing_options_pane_visibility_entry_ref (gpointer instance) -{ - PublishingFlickrPublishingOptionsPaneVisibilityEntry * self; - self = instance; -#line 550 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_atomic_int_inc (&self->ref_count); -#line 550 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - return instance; -#line 6073 "FlickrPublishing.c" -} - - -static void -publishing_flickr_publishing_options_pane_visibility_entry_unref (gpointer instance) -{ - PublishingFlickrPublishingOptionsPaneVisibilityEntry * self; - self = instance; -#line 550 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - if (g_atomic_int_dec_and_test (&self->ref_count)) { -#line 550 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - PUBLISHING_FLICKR_PUBLISHING_OPTIONS_PANE_VISIBILITY_ENTRY_GET_CLASS (self)->finalize (self); -#line 550 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_type_free_instance ((GTypeInstance *) self); -#line 6088 "FlickrPublishing.c" - } -} - - -static void -publishing_flickr_publishing_options_pane_class_init (PublishingFlickrPublishingOptionsPaneClass * klass) -{ -#line 539 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - publishing_flickr_publishing_options_pane_parent_class = g_type_class_peek_parent (klass); -#line 539 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_type_class_add_private (klass, sizeof (PublishingFlickrPublishingOptionsPanePrivate)); -#line 539 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - G_OBJECT_CLASS (klass)->finalize = publishing_flickr_publishing_options_pane_finalize; -#line 539 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - publishing_flickr_publishing_options_pane_signals[PUBLISHING_FLICKR_PUBLISHING_OPTIONS_PANE_PUBLISH_SIGNAL] = g_signal_new ("publish", PUBLISHING_FLICKR_TYPE_PUBLISHING_OPTIONS_PANE, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_marshal_VOID__BOOLEAN, G_TYPE_NONE, 1, G_TYPE_BOOLEAN); -#line 539 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - publishing_flickr_publishing_options_pane_signals[PUBLISHING_FLICKR_PUBLISHING_OPTIONS_PANE_LOGOUT_SIGNAL] = g_signal_new ("logout", PUBLISHING_FLICKR_TYPE_PUBLISHING_OPTIONS_PANE, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_marshal_VOID__VOID, G_TYPE_NONE, 0); -#line 6106 "FlickrPublishing.c" -} - - -static void -publishing_flickr_publishing_options_pane_spit_publishing_dialog_pane_interface_init (SpitPublishingDialogPaneIface * iface) -{ -#line 539 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - publishing_flickr_publishing_options_pane_spit_publishing_dialog_pane_parent_iface = g_type_interface_peek_parent (iface); -#line 539 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - iface->get_widget = (GtkWidget* (*) (SpitPublishingDialogPane *)) publishing_flickr_publishing_options_pane_real_get_widget; -#line 539 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - iface->get_preferred_geometry = (SpitPublishingDialogPaneGeometryOptions (*) (SpitPublishingDialogPane *)) publishing_flickr_publishing_options_pane_real_get_preferred_geometry; -#line 539 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - iface->on_pane_installed = (void (*) (SpitPublishingDialogPane *)) publishing_flickr_publishing_options_pane_real_on_pane_installed; -#line 539 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - iface->on_pane_uninstalled = (void (*) (SpitPublishingDialogPane *)) publishing_flickr_publishing_options_pane_real_on_pane_uninstalled; -#line 6123 "FlickrPublishing.c" -} - - -static void -publishing_flickr_publishing_options_pane_instance_init (PublishingFlickrPublishingOptionsPane * self) -{ -#line 539 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - self->priv = PUBLISHING_FLICKR_PUBLISHING_OPTIONS_PANE_GET_PRIVATE (self); -#line 561 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - self->priv->pane_widget = NULL; -#line 562 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - self->priv->visibility_label = NULL; -#line 563 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - self->priv->upload_info_label = NULL; -#line 564 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - self->priv->size_label = NULL; -#line 565 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - self->priv->logout_button = NULL; -#line 566 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - self->priv->publish_button = NULL; -#line 567 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - self->priv->visibility_combo = NULL; -#line 568 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - self->priv->size_combo = NULL; -#line 569 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - self->priv->strip_metadata_check = NULL; -#line 570 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - self->priv->visibilities = NULL; -#line 570 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - self->priv->visibilities_length1 = 0; -#line 570 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - self->priv->_visibilities_size_ = self->priv->visibilities_length1; -#line 571 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - self->priv->sizes = NULL; -#line 571 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - self->priv->sizes_length1 = 0; -#line 571 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - self->priv->_sizes_size_ = self->priv->sizes_length1; -#line 572 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - self->priv->parameters = NULL; -#line 573 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - self->priv->publisher = NULL; -#line 6166 "FlickrPublishing.c" -} - - -static void -publishing_flickr_publishing_options_pane_finalize (GObject * obj) -{ - PublishingFlickrPublishingOptionsPane * self; -#line 539 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, PUBLISHING_FLICKR_TYPE_PUBLISHING_OPTIONS_PANE, PublishingFlickrPublishingOptionsPane); -#line 560 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _g_object_unref0 (self->priv->builder); -#line 561 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _g_object_unref0 (self->priv->pane_widget); -#line 562 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _g_object_unref0 (self->priv->visibility_label); -#line 563 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _g_object_unref0 (self->priv->upload_info_label); -#line 564 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _g_object_unref0 (self->priv->size_label); -#line 565 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _g_object_unref0 (self->priv->logout_button); -#line 566 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _g_object_unref0 (self->priv->publish_button); -#line 567 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _g_object_unref0 (self->priv->visibility_combo); -#line 568 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _g_object_unref0 (self->priv->size_combo); -#line 569 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _g_object_unref0 (self->priv->strip_metadata_check); -#line 570 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - self->priv->visibilities = (_vala_array_free (self->priv->visibilities, self->priv->visibilities_length1, (GDestroyNotify) publishing_flickr_publishing_options_pane_visibility_entry_unref), NULL); -#line 571 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - self->priv->sizes = (_vala_array_free (self->priv->sizes, self->priv->sizes_length1, (GDestroyNotify) publishing_flickr_publishing_options_pane_size_entry_unref), NULL); -#line 572 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _publishing_flickr_publishing_parameters_unref0 (self->priv->parameters); -#line 573 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _g_object_unref0 (self->priv->publisher); -#line 539 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - G_OBJECT_CLASS (publishing_flickr_publishing_options_pane_parent_class)->finalize (obj); -#line 6206 "FlickrPublishing.c" -} - - -GType -publishing_flickr_publishing_options_pane_get_type (void) -{ - static volatile gsize publishing_flickr_publishing_options_pane_type_id__volatile = 0; - if (g_once_init_enter (&publishing_flickr_publishing_options_pane_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (PublishingFlickrPublishingOptionsPaneClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) publishing_flickr_publishing_options_pane_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PublishingFlickrPublishingOptionsPane), 0, (GInstanceInitFunc) publishing_flickr_publishing_options_pane_instance_init, NULL }; - static const GInterfaceInfo spit_publishing_dialog_pane_info = { (GInterfaceInitFunc) publishing_flickr_publishing_options_pane_spit_publishing_dialog_pane_interface_init, (GInterfaceFinalizeFunc) NULL, NULL}; - GType publishing_flickr_publishing_options_pane_type_id; - publishing_flickr_publishing_options_pane_type_id = g_type_register_static (G_TYPE_OBJECT, "PublishingFlickrPublishingOptionsPane", &g_define_type_info, 0); - g_type_add_interface_static (publishing_flickr_publishing_options_pane_type_id, SPIT_PUBLISHING_TYPE_DIALOG_PANE, &spit_publishing_dialog_pane_info); - g_once_init_leave (&publishing_flickr_publishing_options_pane_type_id__volatile, publishing_flickr_publishing_options_pane_type_id); - } - return publishing_flickr_publishing_options_pane_type_id__volatile; -} - - -PublishingFlickrUploader* -publishing_flickr_uploader_construct (GType object_type, - PublishingRESTSupportOAuth1Session* session, - SpitPublishingPublishable** publishables, - int publishables_length1, - PublishingFlickrPublishingParameters* parameters, - gboolean strip_metadata) -{ - PublishingFlickrUploader* self = NULL; - PublishingFlickrPublishingParameters* _tmp0_; -#line 741 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_return_val_if_fail (PUBLISHING_REST_SUPPORT_OAUTH1_IS_SESSION (session), NULL); -#line 741 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_return_val_if_fail (PUBLISHING_FLICKR_IS_PUBLISHING_PARAMETERS (parameters), NULL); -#line 743 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - self = (PublishingFlickrUploader*) publishing_rest_support_batch_uploader_construct (object_type, G_TYPE_CHECK_INSTANCE_CAST (session, PUBLISHING_REST_SUPPORT_TYPE_SESSION, PublishingRESTSupportSession), publishables, publishables_length1); -#line 745 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp0_ = _publishing_flickr_publishing_parameters_ref0 (parameters); -#line 745 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _publishing_flickr_publishing_parameters_unref0 (self->priv->parameters); -#line 745 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - self->priv->parameters = _tmp0_; -#line 746 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - self->priv->strip_metadata = strip_metadata; -#line 741 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - return self; -#line 6252 "FlickrPublishing.c" -} - - -PublishingFlickrUploader* -publishing_flickr_uploader_new (PublishingRESTSupportOAuth1Session* session, - SpitPublishingPublishable** publishables, - int publishables_length1, - PublishingFlickrPublishingParameters* parameters, - gboolean strip_metadata) -{ -#line 741 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - return publishing_flickr_uploader_construct (PUBLISHING_FLICKR_TYPE_UPLOADER, session, publishables, publishables_length1, parameters, strip_metadata); -#line 6265 "FlickrPublishing.c" -} - - -static void -_vala_array_add30 (gchar** * array, - int* length, - int* size, - gchar* value) -{ -#line 795 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - if ((*length) == (*size)) { -#line 795 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - *size = (*size) ? (2 * (*size)) : 4; -#line 795 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - *array = g_renew (gchar*, *array, (*size) + 1); -#line 6281 "FlickrPublishing.c" - } -#line 795 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - (*array)[(*length)++] = value; -#line 795 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - (*array)[*length] = NULL; -#line 6287 "FlickrPublishing.c" -} - - -static void -publishing_flickr_uploader_preprocess_publishable (PublishingFlickrUploader* self, - SpitPublishingPublishable* publishable) -{ - GExiv2Metadata* publishable_metadata = NULL; - GExiv2Metadata* _tmp0_; - GExiv2Metadata* _tmp10_; - GExiv2Metadata* _tmp11_; - GExiv2Metadata* _tmp18_; - GExiv2Metadata* _tmp25_; - GError * _inner_error_ = NULL; -#line 749 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_return_if_fail (PUBLISHING_FLICKR_IS_UPLOADER (self)); -#line 749 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_return_if_fail (SPIT_PUBLISHING_IS_PUBLISHABLE (publishable)); -#line 750 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - if (spit_publishing_publishable_get_media_type (publishable) != SPIT_PUBLISHING_PUBLISHER_MEDIA_TYPE_PHOTO) { -#line 751 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - return; -#line 6310 "FlickrPublishing.c" - } -#line 753 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp0_ = gexiv2_metadata_new (); -#line 753 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - publishable_metadata = _tmp0_; -#line 6316 "FlickrPublishing.c" - { - GExiv2Metadata* _tmp1_; - GFile* _tmp2_; - GFile* _tmp3_; - gchar* _tmp4_; - gchar* _tmp5_; -#line 755 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp1_ = publishable_metadata; -#line 755 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp2_ = spit_publishing_publishable_get_serialized_file (publishable); -#line 755 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp3_ = _tmp2_; -#line 755 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp4_ = g_file_get_path (_tmp3_); -#line 755 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp5_ = _tmp4_; -#line 755 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - gexiv2_metadata_open_path (_tmp1_, _tmp5_, &_inner_error_); -#line 755 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _g_free0 (_tmp5_); -#line 755 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _g_object_unref0 (_tmp3_); -#line 755 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 6341 "FlickrPublishing.c" - goto __catch18_g_error; - } - } - goto __finally18; - __catch18_g_error: - { - GError* err = NULL; - GFile* _tmp6_; - GFile* _tmp7_; - gchar* _tmp8_; - gchar* _tmp9_; -#line 754 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - err = _inner_error_; -#line 754 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _inner_error_ = NULL; -#line 757 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp6_ = spit_publishing_publishable_get_serialized_file (publishable); -#line 757 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp7_ = _tmp6_; -#line 757 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp8_ = g_file_get_path (_tmp7_); -#line 757 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp9_ = _tmp8_; -#line 757 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_warning ("FlickrPublishing.vala:757: couldn't read metadata from file '%s' for u" \ -"pload preprocessing.", _tmp9_); -#line 757 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _g_free0 (_tmp9_); -#line 757 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _g_object_unref0 (_tmp7_); -#line 754 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _g_error_free0 (err); -#line 6373 "FlickrPublishing.c" - } - __finally18: -#line 754 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 754 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _g_object_unref0 (publishable_metadata); -#line 754 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 754 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_clear_error (&_inner_error_); -#line 754 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - return; -#line 6386 "FlickrPublishing.c" - } -#line 765 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp10_ = publishable_metadata; -#line 765 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - if (!gexiv2_metadata_has_iptc (_tmp10_)) { -#line 766 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _g_object_unref0 (publishable_metadata); -#line 766 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - return; -#line 6396 "FlickrPublishing.c" - } -#line 768 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp11_ = publishable_metadata; -#line 768 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - if (gexiv2_metadata_has_tag (_tmp11_, "Iptc.Application2.Caption")) { -#line 6402 "FlickrPublishing.c" - GExiv2Metadata* _tmp12_; - GExiv2Metadata* _tmp13_; - gchar* _tmp14_; - gchar* _tmp15_; - gchar* _tmp16_; - gchar* _tmp17_; -#line 769 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp12_ = publishable_metadata; -#line 769 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp13_ = publishable_metadata; -#line 769 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp14_ = gexiv2_metadata_get_tag_string (_tmp13_, "Iptc.Application2.Caption"); -#line 769 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp15_ = _tmp14_; -#line 769 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp16_ = publishing_rest_support_asciify_string (_tmp15_); -#line 769 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp17_ = _tmp16_; -#line 769 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - gexiv2_metadata_set_tag_string (_tmp12_, "Iptc.Application2.Caption", _tmp17_); -#line 769 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _g_free0 (_tmp17_); -#line 769 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _g_free0 (_tmp15_); -#line 6427 "FlickrPublishing.c" - } -#line 773 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp18_ = publishable_metadata; -#line 773 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - if (gexiv2_metadata_has_tag (_tmp18_, "Iptc.Application2.Headline")) { -#line 6433 "FlickrPublishing.c" - GExiv2Metadata* _tmp19_; - GExiv2Metadata* _tmp20_; - gchar* _tmp21_; - gchar* _tmp22_; - gchar* _tmp23_; - gchar* _tmp24_; -#line 774 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp19_ = publishable_metadata; -#line 774 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp20_ = publishable_metadata; -#line 774 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp21_ = gexiv2_metadata_get_tag_string (_tmp20_, "Iptc.Application2.Headline"); -#line 774 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp22_ = _tmp21_; -#line 774 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp23_ = publishing_rest_support_asciify_string (_tmp22_); -#line 774 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp24_ = _tmp23_; -#line 774 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - gexiv2_metadata_set_tag_string (_tmp19_, "Iptc.Application2.Headline", _tmp24_); -#line 774 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _g_free0 (_tmp24_); -#line 774 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _g_free0 (_tmp22_); -#line 6458 "FlickrPublishing.c" - } -#line 778 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp25_ = publishable_metadata; -#line 778 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - if (gexiv2_metadata_has_tag (_tmp25_, "Iptc.Application2.Keywords")) { -#line 6464 "FlickrPublishing.c" - GeeSet* keyword_set = NULL; - GeeHashSet* _tmp26_; - gchar** iptc_keywords = NULL; - GExiv2Metadata* _tmp27_; - gchar** _tmp28_; - gchar** _tmp29_; - gint iptc_keywords_length1; - gint _iptc_keywords_size_; - gchar** _tmp30_; - gint _tmp30__length1; - gchar** xmp_keywords = NULL; - GExiv2Metadata* _tmp35_; - gchar** _tmp36_; - gchar** _tmp37_; - gint xmp_keywords_length1; - gint _xmp_keywords_size_; - gchar** _tmp38_; - gint _tmp38__length1; - gchar** all_keywords = NULL; - GeeSet* _tmp43_; - gint _tmp44_; - gpointer* _tmp45_; - gint all_keywords_length1; - gint _all_keywords_size_; - gchar** _tmp46_; - gint _tmp46__length1; - gchar** no_keywords = NULL; - gchar** _tmp47_; - gint no_keywords_length1; - gint _no_keywords_size_; - gchar** _tmp48_; - gint _tmp48__length1; - gchar* _tmp49_; - GExiv2Metadata* _tmp50_; - gchar** _tmp51_; - gint _tmp51__length1; - GExiv2Metadata* _tmp52_; - gchar** _tmp53_; - gint _tmp53__length1; -#line 779 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp26_ = gee_hash_set_new (G_TYPE_STRING, (GBoxedCopyFunc) g_strdup, (GDestroyNotify) g_free, NULL, NULL, NULL, NULL, NULL, NULL); -#line 779 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - keyword_set = G_TYPE_CHECK_INSTANCE_CAST (_tmp26_, GEE_TYPE_SET, GeeSet); -#line 780 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp27_ = publishable_metadata; -#line 780 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp29_ = _tmp28_ = gexiv2_metadata_get_tag_multiple (_tmp27_, "Iptc.Application2.Keywords"); -#line 780 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - iptc_keywords = _tmp29_; -#line 780 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - iptc_keywords_length1 = _vala_array_length (_tmp28_); -#line 780 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _iptc_keywords_size_ = iptc_keywords_length1; -#line 781 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp30_ = iptc_keywords; -#line 781 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp30__length1 = iptc_keywords_length1; -#line 781 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - if (_tmp30_ != NULL) { -#line 6524 "FlickrPublishing.c" - gchar** _tmp31_; - gint _tmp31__length1; -#line 782 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp31_ = iptc_keywords; -#line 782 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp31__length1 = iptc_keywords_length1; -#line 6531 "FlickrPublishing.c" - { - gchar** keyword_collection = NULL; - gint keyword_collection_length1 = 0; - gint _keyword_collection_size_ = 0; - gint keyword_it = 0; -#line 782 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - keyword_collection = _tmp31_; -#line 782 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - keyword_collection_length1 = _tmp31__length1; -#line 782 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - for (keyword_it = 0; keyword_it < _tmp31__length1; keyword_it = keyword_it + 1) { -#line 6543 "FlickrPublishing.c" - gchar* _tmp32_; - gchar* keyword = NULL; -#line 782 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp32_ = g_strdup (keyword_collection[keyword_it]); -#line 782 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - keyword = _tmp32_; -#line 6550 "FlickrPublishing.c" - { - GeeSet* _tmp33_; - const gchar* _tmp34_; -#line 783 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp33_ = keyword_set; -#line 783 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp34_ = keyword; -#line 783 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - gee_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp33_, GEE_TYPE_COLLECTION, GeeCollection), _tmp34_); -#line 782 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _g_free0 (keyword); -#line 6562 "FlickrPublishing.c" - } - } - } - } -#line 785 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp35_ = publishable_metadata; -#line 785 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp37_ = _tmp36_ = gexiv2_metadata_get_tag_multiple (_tmp35_, "Xmp.dc.subject"); -#line 785 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - xmp_keywords = _tmp37_; -#line 785 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - xmp_keywords_length1 = _vala_array_length (_tmp36_); -#line 785 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _xmp_keywords_size_ = xmp_keywords_length1; -#line 786 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp38_ = xmp_keywords; -#line 786 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp38__length1 = xmp_keywords_length1; -#line 786 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - if (_tmp38_ != NULL) { -#line 6583 "FlickrPublishing.c" - gchar** _tmp39_; - gint _tmp39__length1; -#line 787 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp39_ = xmp_keywords; -#line 787 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp39__length1 = xmp_keywords_length1; -#line 6590 "FlickrPublishing.c" - { - gchar** keyword_collection = NULL; - gint keyword_collection_length1 = 0; - gint _keyword_collection_size_ = 0; - gint keyword_it = 0; -#line 787 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - keyword_collection = _tmp39_; -#line 787 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - keyword_collection_length1 = _tmp39__length1; -#line 787 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - for (keyword_it = 0; keyword_it < _tmp39__length1; keyword_it = keyword_it + 1) { -#line 6602 "FlickrPublishing.c" - gchar* _tmp40_; - gchar* keyword = NULL; -#line 787 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp40_ = g_strdup (keyword_collection[keyword_it]); -#line 787 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - keyword = _tmp40_; -#line 6609 "FlickrPublishing.c" - { - GeeSet* _tmp41_; - const gchar* _tmp42_; -#line 788 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp41_ = keyword_set; -#line 788 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp42_ = keyword; -#line 788 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - gee_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp41_, GEE_TYPE_COLLECTION, GeeCollection), _tmp42_); -#line 787 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _g_free0 (keyword); -#line 6621 "FlickrPublishing.c" - } - } - } - } -#line 790 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp43_ = keyword_set; -#line 790 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp45_ = gee_collection_to_array (G_TYPE_CHECK_INSTANCE_CAST (_tmp43_, GEE_TYPE_COLLECTION, GeeCollection), &_tmp44_); -#line 790 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - all_keywords = _tmp45_; -#line 790 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - all_keywords_length1 = _tmp44_; -#line 790 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _all_keywords_size_ = all_keywords_length1; -#line 795 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp46_ = all_keywords; -#line 795 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp46__length1 = all_keywords_length1; -#line 795 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _vala_array_add30 (&all_keywords, &all_keywords_length1, &_all_keywords_size_, NULL); -#line 797 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp47_ = g_new0 (gchar*, 1 + 1); -#line 797 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - no_keywords = _tmp47_; -#line 797 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - no_keywords_length1 = 1; -#line 797 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _no_keywords_size_ = no_keywords_length1; -#line 802 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp48_ = no_keywords; -#line 802 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp48__length1 = no_keywords_length1; -#line 802 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _g_free0 (_tmp48_[0]); -#line 802 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp48_[0] = NULL; -#line 802 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp49_ = _tmp48_[0]; -#line 804 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp50_ = publishable_metadata; -#line 804 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp51_ = all_keywords; -#line 804 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp51__length1 = all_keywords_length1; -#line 804 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - gexiv2_metadata_set_tag_multiple (_tmp50_, "Xmp.dc.subject", _tmp51_); -#line 805 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp52_ = publishable_metadata; -#line 805 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp53_ = no_keywords; -#line 805 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp53__length1 = no_keywords_length1; -#line 805 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - gexiv2_metadata_set_tag_multiple (_tmp52_, "Iptc.Application2.Keywords", _tmp53_); -#line 6676 "FlickrPublishing.c" - { - GExiv2Metadata* _tmp54_; - GFile* _tmp55_; - GFile* _tmp56_; - gchar* _tmp57_; - gchar* _tmp58_; -#line 808 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp54_ = publishable_metadata; -#line 808 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp55_ = spit_publishing_publishable_get_serialized_file (publishable); -#line 808 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp56_ = _tmp55_; -#line 808 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp57_ = g_file_get_path (_tmp56_); -#line 808 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp58_ = _tmp57_; -#line 808 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - gexiv2_metadata_save_file (_tmp54_, _tmp58_, &_inner_error_); -#line 808 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _g_free0 (_tmp58_); -#line 808 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _g_object_unref0 (_tmp56_); -#line 808 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 6701 "FlickrPublishing.c" - goto __catch19_g_error; - } - } - goto __finally19; - __catch19_g_error: - { - GError* err = NULL; - GFile* _tmp59_; - GFile* _tmp60_; - gchar* _tmp61_; - gchar* _tmp62_; -#line 807 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - err = _inner_error_; -#line 807 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _inner_error_ = NULL; -#line 810 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp59_ = spit_publishing_publishable_get_serialized_file (publishable); -#line 810 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp60_ = _tmp59_; -#line 810 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp61_ = g_file_get_path (_tmp60_); -#line 810 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp62_ = _tmp61_; -#line 810 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_warning ("FlickrPublishing.vala:810: couldn't write metadata to file '%s' for up" \ -"load preprocessing.", _tmp62_); -#line 810 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _g_free0 (_tmp62_); -#line 810 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _g_object_unref0 (_tmp60_); -#line 807 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _g_error_free0 (err); -#line 6733 "FlickrPublishing.c" - } - __finally19: -#line 807 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 807 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - no_keywords = (_vala_array_free (no_keywords, no_keywords_length1, (GDestroyNotify) g_free), NULL); -#line 807 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - all_keywords = (_vala_array_free (all_keywords, all_keywords_length1, (GDestroyNotify) g_free), NULL); -#line 807 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - xmp_keywords = (_vala_array_free (xmp_keywords, xmp_keywords_length1, (GDestroyNotify) g_free), NULL); -#line 807 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - iptc_keywords = (_vala_array_free (iptc_keywords, iptc_keywords_length1, (GDestroyNotify) g_free), NULL); -#line 807 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _g_object_unref0 (keyword_set); -#line 807 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _g_object_unref0 (publishable_metadata); -#line 807 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 807 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_clear_error (&_inner_error_); -#line 807 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - return; -#line 6756 "FlickrPublishing.c" - } -#line 778 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - no_keywords = (_vala_array_free (no_keywords, no_keywords_length1, (GDestroyNotify) g_free), NULL); -#line 778 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - all_keywords = (_vala_array_free (all_keywords, all_keywords_length1, (GDestroyNotify) g_free), NULL); -#line 778 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - xmp_keywords = (_vala_array_free (xmp_keywords, xmp_keywords_length1, (GDestroyNotify) g_free), NULL); -#line 778 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - iptc_keywords = (_vala_array_free (iptc_keywords, iptc_keywords_length1, (GDestroyNotify) g_free), NULL); -#line 778 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _g_object_unref0 (keyword_set); -#line 6768 "FlickrPublishing.c" - } -#line 749 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _g_object_unref0 (publishable_metadata); -#line 6772 "FlickrPublishing.c" -} - - -static PublishingRESTSupportTransaction* -publishing_flickr_uploader_real_create_transaction (PublishingRESTSupportBatchUploader* base, - SpitPublishingPublishable* publishable) -{ - PublishingFlickrUploader * self; - PublishingRESTSupportTransaction* result = NULL; - SpitPublishingPublishable* _tmp0_; - SpitPublishingPublishable* _tmp1_; - PublishingRESTSupportSession* _tmp2_; - PublishingRESTSupportOAuth1Session* _tmp3_; - PublishingFlickrPublishingParameters* _tmp4_; - SpitPublishingPublishable* _tmp5_; - SpitPublishingPublishable* _tmp6_; - PublishingFlickrUploadTransaction* _tmp7_; - PublishingRESTSupportTransaction* _tmp8_; -#line 816 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_FLICKR_TYPE_UPLOADER, PublishingFlickrUploader); -#line 816 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_return_val_if_fail (SPIT_PUBLISHING_IS_PUBLISHABLE (publishable), NULL); -#line 818 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp0_ = publishing_rest_support_batch_uploader_get_current_publishable (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_BATCH_UPLOADER, PublishingRESTSupportBatchUploader)); -#line 818 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp1_ = _tmp0_; -#line 818 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - publishing_flickr_uploader_preprocess_publishable (self, _tmp1_); -#line 818 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _g_object_unref0 (_tmp1_); -#line 819 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp2_ = publishing_rest_support_batch_uploader_get_session (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_BATCH_UPLOADER, PublishingRESTSupportBatchUploader)); -#line 819 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp3_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, PUBLISHING_REST_SUPPORT_OAUTH1_TYPE_SESSION, PublishingRESTSupportOAuth1Session); -#line 819 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp4_ = self->priv->parameters; -#line 819 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp5_ = publishing_rest_support_batch_uploader_get_current_publishable (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_BATCH_UPLOADER, PublishingRESTSupportBatchUploader)); -#line 819 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp6_ = _tmp5_; -#line 819 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp7_ = publishing_flickr_upload_transaction_new (_tmp3_, _tmp4_, _tmp6_); -#line 819 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp8_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction); -#line 819 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _g_object_unref0 (_tmp6_); -#line 819 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _publishing_rest_support_session_unref0 (_tmp3_); -#line 819 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - result = _tmp8_; -#line 819 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - return result; -#line 6825 "FlickrPublishing.c" -} - - -static void -publishing_flickr_uploader_class_init (PublishingFlickrUploaderClass * klass) -{ -#line 737 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - publishing_flickr_uploader_parent_class = g_type_class_peek_parent (klass); -#line 737 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - ((PublishingRESTSupportBatchUploaderClass *) klass)->finalize = publishing_flickr_uploader_finalize; -#line 737 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_type_class_add_private (klass, sizeof (PublishingFlickrUploaderPrivate)); -#line 737 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - ((PublishingRESTSupportBatchUploaderClass *) klass)->create_transaction = (PublishingRESTSupportTransaction* (*) (PublishingRESTSupportBatchUploader *, SpitPublishingPublishable*)) publishing_flickr_uploader_real_create_transaction; -#line 6840 "FlickrPublishing.c" -} - - -static void -publishing_flickr_uploader_instance_init (PublishingFlickrUploader * self) -{ -#line 737 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - self->priv = PUBLISHING_FLICKR_UPLOADER_GET_PRIVATE (self); -#line 6849 "FlickrPublishing.c" -} - - -static void -publishing_flickr_uploader_finalize (PublishingRESTSupportBatchUploader * obj) -{ - PublishingFlickrUploader * self; -#line 737 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, PUBLISHING_FLICKR_TYPE_UPLOADER, PublishingFlickrUploader); -#line 738 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _publishing_flickr_publishing_parameters_unref0 (self->priv->parameters); -#line 737 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - PUBLISHING_REST_SUPPORT_BATCH_UPLOADER_CLASS (publishing_flickr_uploader_parent_class)->finalize (obj); -#line 6863 "FlickrPublishing.c" -} - - -GType -publishing_flickr_uploader_get_type (void) -{ - static volatile gsize publishing_flickr_uploader_type_id__volatile = 0; - if (g_once_init_enter (&publishing_flickr_uploader_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (PublishingFlickrUploaderClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) publishing_flickr_uploader_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PublishingFlickrUploader), 0, (GInstanceInitFunc) publishing_flickr_uploader_instance_init, NULL }; - GType publishing_flickr_uploader_type_id; - publishing_flickr_uploader_type_id = g_type_register_static (PUBLISHING_REST_SUPPORT_TYPE_BATCH_UPLOADER, "PublishingFlickrUploader", &g_define_type_info, 0); - g_once_init_leave (&publishing_flickr_uploader_type_id__volatile, publishing_flickr_uploader_type_id); - } - return publishing_flickr_uploader_type_id__volatile; -} - - -static void -_vala_array_destroy (gpointer array, - gint array_length, - GDestroyNotify destroy_func) -{ - if ((array != NULL) && (destroy_func != NULL)) { - int i; - for (i = 0; i < array_length; i = i + 1) { - if (((gpointer*) array)[i] != NULL) { - destroy_func (((gpointer*) array)[i]); - } - } - } -} - - -static void -_vala_array_free (gpointer array, - gint array_length, - GDestroyNotify destroy_func) -{ - _vala_array_destroy (array, array_length, destroy_func); - g_free (array); -} - - -static gint -_vala_array_length (gpointer array) -{ - int length; - length = 0; - if (array) { - while (((gpointer*) array)[length]) { - length++; - } - } - return length; -} - - - diff --git a/plugins/shotwell-publishing/PicasaPublishing.c b/plugins/shotwell-publishing/PicasaPublishing.c deleted file mode 100644 index 4f597b8..0000000 --- a/plugins/shotwell-publishing/PicasaPublishing.c +++ /dev/null @@ -1,6930 +0,0 @@ -/* PicasaPublishing.c generated by valac 0.40.4, the Vala compiler - * generated from PicasaPublishing.vala, do not modify */ - -/* Copyright 2016 Software Freedom Conservancy Inc. - * - * This software is licensed under the GNU Lesser General Public License - * (version 2.1 or later). See the COPYING file in this distribution. - */ - - -#include -#include -#include -#include -#include -#include -#include -#include "shotwell-plugin-common.h" -#include -#include -#include -#include -#include -#include "shotwell-authenticator.h" -#include -#include - - -#define TYPE_PICASA_SERVICE (picasa_service_get_type ()) -#define PICASA_SERVICE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PICASA_SERVICE, PicasaService)) -#define PICASA_SERVICE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PICASA_SERVICE, PicasaServiceClass)) -#define IS_PICASA_SERVICE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PICASA_SERVICE)) -#define IS_PICASA_SERVICE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PICASA_SERVICE)) -#define PICASA_SERVICE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PICASA_SERVICE, PicasaServiceClass)) - -typedef struct _PicasaService PicasaService; -typedef struct _PicasaServiceClass PicasaServiceClass; -typedef struct _PicasaServicePrivate PicasaServicePrivate; -enum { - PICASA_SERVICE_0_PROPERTY, - PICASA_SERVICE_NUM_PROPERTIES -}; -static GParamSpec* picasa_service_properties[PICASA_SERVICE_NUM_PROPERTIES]; -#define _g_free0(var) (var = (g_free (var), NULL)) - -#define PUBLISHING_PICASA_TYPE_PICASA_PUBLISHER (publishing_picasa_picasa_publisher_get_type ()) -#define PUBLISHING_PICASA_PICASA_PUBLISHER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_PICASA_TYPE_PICASA_PUBLISHER, PublishingPicasaPicasaPublisher)) -#define PUBLISHING_PICASA_PICASA_PUBLISHER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_PICASA_TYPE_PICASA_PUBLISHER, PublishingPicasaPicasaPublisherClass)) -#define PUBLISHING_PICASA_IS_PICASA_PUBLISHER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_PICASA_TYPE_PICASA_PUBLISHER)) -#define PUBLISHING_PICASA_IS_PICASA_PUBLISHER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_PICASA_TYPE_PICASA_PUBLISHER)) -#define PUBLISHING_PICASA_PICASA_PUBLISHER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_PICASA_TYPE_PICASA_PUBLISHER, PublishingPicasaPicasaPublisherClass)) - -typedef struct _PublishingPicasaPicasaPublisher PublishingPicasaPicasaPublisher; -typedef struct _PublishingPicasaPicasaPublisherClass PublishingPicasaPicasaPublisherClass; -typedef struct _PublishingPicasaPicasaPublisherPrivate PublishingPicasaPicasaPublisherPrivate; - -#define PUBLISHING_PICASA_TYPE_PUBLISHING_PARAMETERS (publishing_picasa_publishing_parameters_get_type ()) -#define PUBLISHING_PICASA_PUBLISHING_PARAMETERS(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_PICASA_TYPE_PUBLISHING_PARAMETERS, PublishingPicasaPublishingParameters)) -#define PUBLISHING_PICASA_PUBLISHING_PARAMETERS_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_PICASA_TYPE_PUBLISHING_PARAMETERS, PublishingPicasaPublishingParametersClass)) -#define PUBLISHING_PICASA_IS_PUBLISHING_PARAMETERS(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_PICASA_TYPE_PUBLISHING_PARAMETERS)) -#define PUBLISHING_PICASA_IS_PUBLISHING_PARAMETERS_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_PICASA_TYPE_PUBLISHING_PARAMETERS)) -#define PUBLISHING_PICASA_PUBLISHING_PARAMETERS_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_PICASA_TYPE_PUBLISHING_PARAMETERS, PublishingPicasaPublishingParametersClass)) - -typedef struct _PublishingPicasaPublishingParameters PublishingPicasaPublishingParameters; -typedef struct _PublishingPicasaPublishingParametersClass PublishingPicasaPublishingParametersClass; -enum { - PUBLISHING_PICASA_PICASA_PUBLISHER_0_PROPERTY, - PUBLISHING_PICASA_PICASA_PUBLISHER_NUM_PROPERTIES -}; -static GParamSpec* publishing_picasa_picasa_publisher_properties[PUBLISHING_PICASA_PICASA_PUBLISHER_NUM_PROPERTIES]; -#define _publishing_picasa_publishing_parameters_unref0(var) ((var == NULL) ? NULL : (var = (publishing_picasa_publishing_parameters_unref (var), NULL))) -#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL))) - -#define PUBLISHING_PICASA_TYPE_ALBUM (publishing_picasa_album_get_type ()) -#define PUBLISHING_PICASA_ALBUM(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_PICASA_TYPE_ALBUM, PublishingPicasaAlbum)) -#define PUBLISHING_PICASA_ALBUM_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_PICASA_TYPE_ALBUM, PublishingPicasaAlbumClass)) -#define PUBLISHING_PICASA_IS_ALBUM(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_PICASA_TYPE_ALBUM)) -#define PUBLISHING_PICASA_IS_ALBUM_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_PICASA_TYPE_ALBUM)) -#define PUBLISHING_PICASA_ALBUM_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_PICASA_TYPE_ALBUM, PublishingPicasaAlbumClass)) - -typedef struct _PublishingPicasaAlbum PublishingPicasaAlbum; -typedef struct _PublishingPicasaAlbumClass PublishingPicasaAlbumClass; -#define _publishing_rest_support_session_unref0(var) ((var == NULL) ? NULL : (var = (publishing_rest_support_session_unref (var), NULL))) - -#define PUBLISHING_PICASA_TYPE_ALBUM_DIRECTORY_TRANSACTION (publishing_picasa_album_directory_transaction_get_type ()) -#define PUBLISHING_PICASA_ALBUM_DIRECTORY_TRANSACTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_PICASA_TYPE_ALBUM_DIRECTORY_TRANSACTION, PublishingPicasaAlbumDirectoryTransaction)) -#define PUBLISHING_PICASA_ALBUM_DIRECTORY_TRANSACTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_PICASA_TYPE_ALBUM_DIRECTORY_TRANSACTION, PublishingPicasaAlbumDirectoryTransactionClass)) -#define PUBLISHING_PICASA_IS_ALBUM_DIRECTORY_TRANSACTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_PICASA_TYPE_ALBUM_DIRECTORY_TRANSACTION)) -#define PUBLISHING_PICASA_IS_ALBUM_DIRECTORY_TRANSACTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_PICASA_TYPE_ALBUM_DIRECTORY_TRANSACTION)) -#define PUBLISHING_PICASA_ALBUM_DIRECTORY_TRANSACTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_PICASA_TYPE_ALBUM_DIRECTORY_TRANSACTION, PublishingPicasaAlbumDirectoryTransactionClass)) - -typedef struct _PublishingPicasaAlbumDirectoryTransaction PublishingPicasaAlbumDirectoryTransaction; -typedef struct _PublishingPicasaAlbumDirectoryTransactionClass PublishingPicasaAlbumDirectoryTransactionClass; -#define _publishing_rest_support_transaction_unref0(var) ((var == NULL) ? NULL : (var = (publishing_rest_support_transaction_unref (var), NULL))) -#define _g_error_free0(var) ((var == NULL) ? NULL : (var = (g_error_free (var), NULL))) -#define _publishing_rest_support_xml_document_unref0(var) ((var == NULL) ? NULL : (var = (publishing_rest_support_xml_document_unref (var), NULL))) - -#define PUBLISHING_PICASA_TYPE_PUBLISHING_OPTIONS_PANE (publishing_picasa_publishing_options_pane_get_type ()) -#define PUBLISHING_PICASA_PUBLISHING_OPTIONS_PANE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_PICASA_TYPE_PUBLISHING_OPTIONS_PANE, PublishingPicasaPublishingOptionsPane)) -#define PUBLISHING_PICASA_PUBLISHING_OPTIONS_PANE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_PICASA_TYPE_PUBLISHING_OPTIONS_PANE, PublishingPicasaPublishingOptionsPaneClass)) -#define PUBLISHING_PICASA_IS_PUBLISHING_OPTIONS_PANE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_PICASA_TYPE_PUBLISHING_OPTIONS_PANE)) -#define PUBLISHING_PICASA_IS_PUBLISHING_OPTIONS_PANE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_PICASA_TYPE_PUBLISHING_OPTIONS_PANE)) -#define PUBLISHING_PICASA_PUBLISHING_OPTIONS_PANE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_PICASA_TYPE_PUBLISHING_OPTIONS_PANE, PublishingPicasaPublishingOptionsPaneClass)) - -typedef struct _PublishingPicasaPublishingOptionsPane PublishingPicasaPublishingOptionsPane; -typedef struct _PublishingPicasaPublishingOptionsPaneClass PublishingPicasaPublishingOptionsPaneClass; - -#define PUBLISHING_PICASA_TYPE_UPLOADER (publishing_picasa_uploader_get_type ()) -#define PUBLISHING_PICASA_UPLOADER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_PICASA_TYPE_UPLOADER, PublishingPicasaUploader)) -#define PUBLISHING_PICASA_UPLOADER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_PICASA_TYPE_UPLOADER, PublishingPicasaUploaderClass)) -#define PUBLISHING_PICASA_IS_UPLOADER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_PICASA_TYPE_UPLOADER)) -#define PUBLISHING_PICASA_IS_UPLOADER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_PICASA_TYPE_UPLOADER)) -#define PUBLISHING_PICASA_UPLOADER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_PICASA_TYPE_UPLOADER, PublishingPicasaUploaderClass)) - -typedef struct _PublishingPicasaUploader PublishingPicasaUploader; -typedef struct _PublishingPicasaUploaderClass PublishingPicasaUploaderClass; -#define _publishing_rest_support_batch_uploader_unref0(var) ((var == NULL) ? NULL : (var = (publishing_rest_support_batch_uploader_unref (var), NULL))) -typedef struct _PublishingPicasaAlbumPrivate PublishingPicasaAlbumPrivate; -typedef struct _PublishingPicasaParamSpecAlbum PublishingPicasaParamSpecAlbum; -typedef struct _PublishingPicasaAlbumDirectoryTransactionPrivate PublishingPicasaAlbumDirectoryTransactionPrivate; - -#define PUBLISHING_PICASA_TYPE_UPLOAD_TRANSACTION (publishing_picasa_upload_transaction_get_type ()) -#define PUBLISHING_PICASA_UPLOAD_TRANSACTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_PICASA_TYPE_UPLOAD_TRANSACTION, PublishingPicasaUploadTransaction)) -#define PUBLISHING_PICASA_UPLOAD_TRANSACTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_PICASA_TYPE_UPLOAD_TRANSACTION, PublishingPicasaUploadTransactionClass)) -#define PUBLISHING_PICASA_IS_UPLOAD_TRANSACTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_PICASA_TYPE_UPLOAD_TRANSACTION)) -#define PUBLISHING_PICASA_IS_UPLOAD_TRANSACTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_PICASA_TYPE_UPLOAD_TRANSACTION)) -#define PUBLISHING_PICASA_UPLOAD_TRANSACTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_PICASA_TYPE_UPLOAD_TRANSACTION, PublishingPicasaUploadTransactionClass)) - -typedef struct _PublishingPicasaUploadTransaction PublishingPicasaUploadTransaction; -typedef struct _PublishingPicasaUploadTransactionClass PublishingPicasaUploadTransactionClass; -typedef struct _PublishingPicasaUploadTransactionPrivate PublishingPicasaUploadTransactionPrivate; -#define _g_mapped_file_unref0(var) ((var == NULL) ? NULL : (var = (g_mapped_file_unref (var), NULL))) -#define __vala_SoupBuffer_free0(var) ((var == NULL) ? NULL : (var = (_vala_SoupBuffer_free (var), NULL))) -#define __vala_SoupMultipart_free0(var) ((var == NULL) ? NULL : (var = (_vala_SoupMultipart_free (var), NULL))) -typedef struct _PublishingPicasaPublishingOptionsPanePrivate PublishingPicasaPublishingOptionsPanePrivate; - -#define PUBLISHING_PICASA_PUBLISHING_OPTIONS_PANE_TYPE_SIZE_DESCRIPTION (publishing_picasa_publishing_options_pane_size_description_get_type ()) -#define PUBLISHING_PICASA_PUBLISHING_OPTIONS_PANE_SIZE_DESCRIPTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_PICASA_PUBLISHING_OPTIONS_PANE_TYPE_SIZE_DESCRIPTION, PublishingPicasaPublishingOptionsPaneSizeDescription)) -#define PUBLISHING_PICASA_PUBLISHING_OPTIONS_PANE_SIZE_DESCRIPTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_PICASA_PUBLISHING_OPTIONS_PANE_TYPE_SIZE_DESCRIPTION, PublishingPicasaPublishingOptionsPaneSizeDescriptionClass)) -#define PUBLISHING_PICASA_PUBLISHING_OPTIONS_PANE_IS_SIZE_DESCRIPTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_PICASA_PUBLISHING_OPTIONS_PANE_TYPE_SIZE_DESCRIPTION)) -#define PUBLISHING_PICASA_PUBLISHING_OPTIONS_PANE_IS_SIZE_DESCRIPTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_PICASA_PUBLISHING_OPTIONS_PANE_TYPE_SIZE_DESCRIPTION)) -#define PUBLISHING_PICASA_PUBLISHING_OPTIONS_PANE_SIZE_DESCRIPTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_PICASA_PUBLISHING_OPTIONS_PANE_TYPE_SIZE_DESCRIPTION, PublishingPicasaPublishingOptionsPaneSizeDescriptionClass)) - -typedef struct _PublishingPicasaPublishingOptionsPaneSizeDescription PublishingPicasaPublishingOptionsPaneSizeDescription; -typedef struct _PublishingPicasaPublishingOptionsPaneSizeDescriptionClass PublishingPicasaPublishingOptionsPaneSizeDescriptionClass; -enum { - PUBLISHING_PICASA_PUBLISHING_OPTIONS_PANE_0_PROPERTY, - PUBLISHING_PICASA_PUBLISHING_OPTIONS_PANE_NUM_PROPERTIES -}; -static GParamSpec* publishing_picasa_publishing_options_pane_properties[PUBLISHING_PICASA_PUBLISHING_OPTIONS_PANE_NUM_PROPERTIES]; -#define _g_slist_free0(var) ((var == NULL) ? NULL : (var = (g_slist_free (var), NULL))) -typedef struct _PublishingPicasaPublishingOptionsPaneSizeDescriptionPrivate PublishingPicasaPublishingOptionsPaneSizeDescriptionPrivate; -#define _publishing_picasa_publishing_options_pane_size_description_unref0(var) ((var == NULL) ? NULL : (var = (publishing_picasa_publishing_options_pane_size_description_unref (var), NULL))) -typedef struct _PublishingPicasaPublishingOptionsPaneParamSpecSizeDescription PublishingPicasaPublishingOptionsPaneParamSpecSizeDescription; -enum { - PUBLISHING_PICASA_PUBLISHING_OPTIONS_PANE_PUBLISH_SIGNAL, - PUBLISHING_PICASA_PUBLISHING_OPTIONS_PANE_LOGOUT_SIGNAL, - PUBLISHING_PICASA_PUBLISHING_OPTIONS_PANE_NUM_SIGNALS -}; -static guint publishing_picasa_publishing_options_pane_signals[PUBLISHING_PICASA_PUBLISHING_OPTIONS_PANE_NUM_SIGNALS] = {0}; -typedef struct _PublishingPicasaPublishingParametersPrivate PublishingPicasaPublishingParametersPrivate; -#define _g_regex_unref0(var) ((var == NULL) ? NULL : (var = (g_regex_unref (var), NULL))) -typedef struct _PublishingPicasaParamSpecPublishingParameters PublishingPicasaParamSpecPublishingParameters; -typedef struct _PublishingPicasaUploaderPrivate PublishingPicasaUploaderPrivate; -#define _vala_assert(expr, msg) if G_LIKELY (expr) ; else g_assertion_message_expr (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg); -#define _vala_return_if_fail(expr, msg) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return; } -#define _vala_return_val_if_fail(expr, msg, val) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return val; } -#define _vala_warn_if_fail(expr, msg) if G_LIKELY (expr) ; else g_warn_message (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg); - -struct _PicasaService { - GObject parent_instance; - PicasaServicePrivate * priv; -}; - -struct _PicasaServiceClass { - GObjectClass parent_class; -}; - -struct _PublishingPicasaPicasaPublisher { - PublishingRESTSupportGooglePublisher parent_instance; - PublishingPicasaPicasaPublisherPrivate * priv; -}; - -struct _PublishingPicasaPicasaPublisherClass { - PublishingRESTSupportGooglePublisherClass parent_class; -}; - -struct _PublishingPicasaPicasaPublisherPrivate { - gboolean running; - SpitPublishingProgressCallback progress_reporter; - gpointer progress_reporter_target; - GDestroyNotify progress_reporter_target_destroy_notify; - PublishingPicasaPublishingParameters* publishing_parameters; - SpitPublishingAuthenticator* authenticator; -}; - -struct _PublishingPicasaAlbum { - GTypeInstance parent_instance; - volatile int ref_count; - PublishingPicasaAlbumPrivate * priv; - gchar* name; - gchar* url; -}; - -struct _PublishingPicasaAlbumClass { - GTypeClass parent_class; - void (*finalize) (PublishingPicasaAlbum *self); -}; - -struct _PublishingPicasaParamSpecAlbum { - GParamSpec parent_instance; -}; - -struct _PublishingPicasaAlbumDirectoryTransaction { - PublishingRESTSupportGooglePublisherAuthenticatedTransaction parent_instance; - PublishingPicasaAlbumDirectoryTransactionPrivate * priv; -}; - -struct _PublishingPicasaAlbumDirectoryTransactionClass { - PublishingRESTSupportGooglePublisherAuthenticatedTransactionClass parent_class; -}; - -struct _PublishingPicasaUploadTransaction { - PublishingRESTSupportGooglePublisherAuthenticatedTransaction parent_instance; - PublishingPicasaUploadTransactionPrivate * priv; -}; - -struct _PublishingPicasaUploadTransactionClass { - PublishingRESTSupportGooglePublisherAuthenticatedTransactionClass parent_class; -}; - -struct _PublishingPicasaUploadTransactionPrivate { - PublishingPicasaPublishingParameters* parameters; - PublishingRESTSupportGoogleSession* session; - gchar* mime_type; - SpitPublishingPublishable* publishable; - GMappedFile* mapped_file; -}; - -struct _PublishingPicasaPublishingOptionsPane { - GObject parent_instance; - PublishingPicasaPublishingOptionsPanePrivate * priv; -}; - -struct _PublishingPicasaPublishingOptionsPaneClass { - GObjectClass parent_class; -}; - -struct _PublishingPicasaPublishingOptionsPanePrivate { - GtkBuilder* builder; - GtkBox* pane_widget; - GtkLabel* login_identity_label; - GtkLabel* publish_to_label; - GtkComboBoxText* existing_albums_combo; - GtkCheckButton* public_check; - GtkComboBoxText* size_combo; - GtkCheckButton* strip_metadata_check; - GtkButton* publish_button; - GtkButton* logout_button; - PublishingPicasaPublishingOptionsPaneSizeDescription** size_descriptions; - gint size_descriptions_length1; - gint _size_descriptions_size_; - PublishingPicasaPublishingParameters* parameters; -}; - -struct _PublishingPicasaPublishingOptionsPaneSizeDescription { - GTypeInstance parent_instance; - volatile int ref_count; - PublishingPicasaPublishingOptionsPaneSizeDescriptionPrivate * priv; - gchar* name; - gint major_axis_pixels; -}; - -struct _PublishingPicasaPublishingOptionsPaneSizeDescriptionClass { - GTypeClass parent_class; - void (*finalize) (PublishingPicasaPublishingOptionsPaneSizeDescription *self); -}; - -struct _PublishingPicasaPublishingOptionsPaneParamSpecSizeDescription { - GParamSpec parent_instance; -}; - -struct _PublishingPicasaPublishingParameters { - GTypeInstance parent_instance; - volatile int ref_count; - PublishingPicasaPublishingParametersPrivate * priv; -}; - -struct _PublishingPicasaPublishingParametersClass { - GTypeClass parent_class; - void (*finalize) (PublishingPicasaPublishingParameters *self); -}; - -struct _PublishingPicasaPublishingParametersPrivate { - gchar* target_album_name; - gchar* target_album_url; - gboolean album_public; - gboolean strip_metadata; - gint major_axis_size_pixels; - gint major_axis_size_selection_id; - gchar* user_name; - PublishingPicasaAlbum** albums; - gint albums_length1; - gint _albums_size_; - SpitPublishingPublisherMediaType media_type; -}; - -struct _PublishingPicasaParamSpecPublishingParameters { - GParamSpec parent_instance; -}; - -struct _PublishingPicasaUploader { - PublishingRESTSupportBatchUploader parent_instance; - PublishingPicasaUploaderPrivate * priv; -}; - -struct _PublishingPicasaUploaderClass { - PublishingRESTSupportBatchUploaderClass parent_class; -}; - -struct _PublishingPicasaUploaderPrivate { - PublishingPicasaPublishingParameters* parameters; -}; - - -static gpointer picasa_service_parent_class = NULL; -static GdkPixbuf** picasa_service_icon_pixbuf_set; -static gint picasa_service_icon_pixbuf_set_length1; -static GdkPixbuf** picasa_service_icon_pixbuf_set = NULL; -static gint picasa_service_icon_pixbuf_set_length1 = 0; -static gint _picasa_service_icon_pixbuf_set_size_ = 0; -static SpitPluggableIface * picasa_service_spit_pluggable_parent_iface = NULL; -static SpitPublishingServiceIface * picasa_service_spit_publishing_service_parent_iface = NULL; -static gpointer publishing_picasa_picasa_publisher_parent_class = NULL; -static gpointer publishing_picasa_album_parent_class = NULL; -static gpointer publishing_picasa_album_directory_transaction_parent_class = NULL; -static gpointer publishing_picasa_upload_transaction_parent_class = NULL; -static gpointer publishing_picasa_publishing_options_pane_parent_class = NULL; -static gpointer publishing_picasa_publishing_options_pane_size_description_parent_class = NULL; -static SpitPublishingDialogPaneIface * publishing_picasa_publishing_options_pane_spit_publishing_dialog_pane_parent_iface = NULL; -static gpointer publishing_picasa_publishing_parameters_parent_class = NULL; -static gpointer publishing_picasa_uploader_parent_class = NULL; - -GType picasa_service_get_type (void) G_GNUC_CONST; -#define PICASA_SERVICE_ICON_FILENAME "picasa.png" -PicasaService* picasa_service_new (GFile* resource_directory); -PicasaService* picasa_service_construct (GType object_type, - GFile* resource_directory); -static gint picasa_service_real_get_pluggable_interface (SpitPluggable* base, - gint min_host_interface, - gint max_host_interface); -static const gchar* picasa_service_real_get_id (SpitPluggable* base); -static const gchar* picasa_service_real_get_pluggable_name (SpitPluggable* base); -static void picasa_service_real_get_info (SpitPluggable* base, - SpitPluggableInfo* info); -static GdkPixbuf** _vala_array_dup4 (GdkPixbuf** self, - int length); -static SpitPublishingPublisher* picasa_service_real_create_publisher (SpitPublishingService* base, - SpitPublishingPluginHost* host); -PublishingPicasaPicasaPublisher* publishing_picasa_picasa_publisher_new (SpitPublishingService* service, - SpitPublishingPluginHost* host); -PublishingPicasaPicasaPublisher* publishing_picasa_picasa_publisher_construct (GType object_type, - SpitPublishingService* service, - SpitPublishingPluginHost* host); -GType publishing_picasa_picasa_publisher_get_type (void) G_GNUC_CONST; -static SpitPublishingPublisherMediaType picasa_service_real_get_supported_media (SpitPublishingService* base); -static void picasa_service_real_activation (SpitPluggable* base, - gboolean enabled); -static void picasa_service_finalize (GObject * obj); -#define PUBLISHING_PICASA_DEFAULT_ALBUM_NAME _ ("Shotwell Connect") -gpointer publishing_picasa_publishing_parameters_ref (gpointer instance); -void publishing_picasa_publishing_parameters_unref (gpointer instance); -GParamSpec* publishing_picasa_param_spec_publishing_parameters (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void publishing_picasa_value_set_publishing_parameters (GValue* value, - gpointer v_object); -void publishing_picasa_value_take_publishing_parameters (GValue* value, - gpointer v_object); -gpointer publishing_picasa_value_get_publishing_parameters (const GValue* value); -GType publishing_picasa_publishing_parameters_get_type (void) G_GNUC_CONST; -#define PUBLISHING_PICASA_PICASA_PUBLISHER_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), PUBLISHING_PICASA_TYPE_PICASA_PUBLISHER, PublishingPicasaPicasaPublisherPrivate)) -#define PUBLISHING_PICASA_PICASA_PUBLISHER_DEFAULT_ALBUM_FEED_URL "https://picasaweb.google.com/data/feed/api/user/default/albumid/defaul" \ -"t" -PublishingPicasaPublishingParameters* publishing_picasa_publishing_parameters_new (void); -PublishingPicasaPublishingParameters* publishing_picasa_publishing_parameters_construct (GType object_type); -static void publishing_picasa_picasa_publisher_load_parameters_from_configuration_system (PublishingPicasaPicasaPublisher* self, - PublishingPicasaPublishingParameters* parameters); -void publishing_picasa_publishing_parameters_set_media_type (PublishingPicasaPublishingParameters* self, - SpitPublishingPublisherMediaType media_type); -gpointer publishing_picasa_album_ref (gpointer instance); -void publishing_picasa_album_unref (gpointer instance); -GParamSpec* publishing_picasa_param_spec_album (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void publishing_picasa_value_set_album (GValue* value, - gpointer v_object); -void publishing_picasa_value_take_album (GValue* value, - gpointer v_object); -gpointer publishing_picasa_value_get_album (const GValue* value); -GType publishing_picasa_album_get_type (void) G_GNUC_CONST; -static PublishingPicasaAlbum** publishing_picasa_picasa_publisher_extract_albums_helper (PublishingPicasaPicasaPublisher* self, - xmlNode* document_root, - int* result_length1, - GError** error); -PublishingPicasaAlbum* publishing_picasa_album_new (const gchar* name, - const gchar* url); -PublishingPicasaAlbum* publishing_picasa_album_construct (GType object_type, - const gchar* name, - const gchar* url); -static void _vala_array_add13 (PublishingPicasaAlbum** * array, - int* length, - int* size, - PublishingPicasaAlbum* value); -static void _vala_array_add14 (PublishingPicasaAlbum** * array, - int* length, - int* size, - PublishingPicasaAlbum* value); -void publishing_picasa_publishing_parameters_set_major_axis_size_selection_id (PublishingPicasaPublishingParameters* self, - gint selection_id); -void publishing_picasa_publishing_parameters_set_strip_metadata (PublishingPicasaPublishingParameters* self, - gboolean strip_metadata); -void publishing_picasa_publishing_parameters_set_target_album_name (PublishingPicasaPublishingParameters* self, - const gchar* target_album_name); -static void publishing_picasa_picasa_publisher_save_parameters_to_configuration_system (PublishingPicasaPicasaPublisher* self, - PublishingPicasaPublishingParameters* parameters); -gint publishing_picasa_publishing_parameters_get_major_axis_size_selection_id (PublishingPicasaPublishingParameters* self); -gboolean publishing_picasa_publishing_parameters_get_strip_metadata (PublishingPicasaPublishingParameters* self); -gchar* publishing_picasa_publishing_parameters_get_target_album_name (PublishingPicasaPublishingParameters* self); -static void publishing_picasa_picasa_publisher_real_on_login_flow_complete (PublishingRESTSupportGooglePublisher* base); -void publishing_picasa_publishing_parameters_set_user_name (PublishingPicasaPublishingParameters* self, - const gchar* user_name); -static void publishing_picasa_picasa_publisher_do_fetch_account_information (PublishingPicasaPicasaPublisher* self); -static void publishing_picasa_picasa_publisher_on_initial_album_fetch_complete (PublishingPicasaPicasaPublisher* self, - PublishingRESTSupportTransaction* txn); -static void _publishing_picasa_picasa_publisher_on_initial_album_fetch_complete_publishing_rest_support_transaction_completed (PublishingRESTSupportTransaction* _sender, - gpointer self); -static void publishing_picasa_picasa_publisher_on_initial_album_fetch_error (PublishingPicasaPicasaPublisher* self, - PublishingRESTSupportTransaction* bad_txn, - GError* err); -static void _publishing_picasa_picasa_publisher_on_initial_album_fetch_error_publishing_rest_support_transaction_network_error (PublishingRESTSupportTransaction* _sender, - GError* err, - gpointer self); -GType publishing_picasa_album_directory_transaction_get_type (void) G_GNUC_CONST; -static void publishing_picasa_picasa_publisher_do_parse_and_display_account_information (PublishingPicasaPicasaPublisher* self, - PublishingPicasaAlbumDirectoryTransaction* transaction); -static void publishing_picasa_picasa_publisher_on_publishing_options_logout (PublishingPicasaPicasaPublisher* self); -static void publishing_picasa_picasa_publisher_on_publishing_options_publish (PublishingPicasaPicasaPublisher* self); -static void publishing_picasa_picasa_publisher_do_upload (PublishingPicasaPicasaPublisher* self); -static void publishing_picasa_picasa_publisher_on_upload_status_updated (PublishingPicasaPicasaPublisher* self, - gint file_number, - gdouble completed_fraction); -static void publishing_picasa_picasa_publisher_on_upload_complete (PublishingPicasaPicasaPublisher* self, - PublishingRESTSupportBatchUploader* uploader, - gint num_published); -static void _publishing_picasa_picasa_publisher_on_upload_complete_publishing_rest_support_batch_uploader_upload_complete (PublishingRESTSupportBatchUploader* _sender, - gint num_photos_published, - gpointer self); -static void publishing_picasa_picasa_publisher_on_upload_error (PublishingPicasaPicasaPublisher* self, - PublishingRESTSupportBatchUploader* uploader, - GError* err); -static void _publishing_picasa_picasa_publisher_on_upload_error_publishing_rest_support_batch_uploader_upload_error (PublishingRESTSupportBatchUploader* _sender, - GError* err, - gpointer self); -static void publishing_picasa_picasa_publisher_do_show_success_pane (PublishingPicasaPicasaPublisher* self); -PublishingPicasaAlbumDirectoryTransaction* publishing_picasa_album_directory_transaction_new (PublishingRESTSupportGoogleSession* session); -PublishingPicasaAlbumDirectoryTransaction* publishing_picasa_album_directory_transaction_construct (GType object_type, - PublishingRESTSupportGoogleSession* session); -gchar* publishing_picasa_album_directory_transaction_validate_xml (PublishingRESTSupportXmlDocument* doc); -static gchar* _publishing_picasa_album_directory_transaction_validate_xml_publishing_rest_support_xml_document_check_for_error_response (PublishingRESTSupportXmlDocument* doc, - gpointer self); -void publishing_picasa_publishing_parameters_set_albums (PublishingPicasaPublishingParameters* self, - PublishingPicasaAlbum** albums, - int albums_length1); -static void publishing_picasa_picasa_publisher_do_show_publishing_options_pane (PublishingPicasaPicasaPublisher* self); -GType publishing_picasa_publishing_options_pane_get_type (void) G_GNUC_CONST; -PublishingPicasaPublishingOptionsPane* publishing_picasa_publishing_options_pane_new (GtkBuilder* builder, - PublishingPicasaPublishingParameters* parameters, - gboolean can_logout); -PublishingPicasaPublishingOptionsPane* publishing_picasa_publishing_options_pane_construct (GType object_type, - GtkBuilder* builder, - PublishingPicasaPublishingParameters* parameters, - gboolean can_logout); -static void _publishing_picasa_picasa_publisher_on_publishing_options_publish_publishing_picasa_publishing_options_pane_publish (PublishingPicasaPublishingOptionsPane* _sender, - gpointer self); -static void _publishing_picasa_picasa_publisher_on_publishing_options_logout_publishing_picasa_publishing_options_pane_logout (PublishingPicasaPublishingOptionsPane* _sender, - gpointer self); -gint publishing_picasa_publishing_parameters_get_major_axis_size_pixels (PublishingPicasaPublishingParameters* self); -GType publishing_picasa_uploader_get_type (void) G_GNUC_CONST; -PublishingPicasaUploader* publishing_picasa_uploader_new (PublishingRESTSupportGoogleSession* session, - SpitPublishingPublishable** publishables, - int publishables_length1, - PublishingPicasaPublishingParameters* parameters); -PublishingPicasaUploader* publishing_picasa_uploader_construct (GType object_type, - PublishingRESTSupportGoogleSession* session, - SpitPublishingPublishable** publishables, - int publishables_length1, - PublishingPicasaPublishingParameters* parameters); -static void _publishing_picasa_picasa_publisher_on_upload_status_updated_spit_publishing_progress_callback (gint file_number, - gdouble fraction_complete, - gpointer self); -static void publishing_picasa_picasa_publisher_real_do_logout (PublishingRESTSupportGooglePublisher* base); -static gboolean publishing_picasa_picasa_publisher_real_is_running (PublishingRESTSupportGooglePublisher* base); -static void publishing_picasa_picasa_publisher_real_start (PublishingRESTSupportGooglePublisher* base); -static void publishing_picasa_picasa_publisher_real_stop (PublishingRESTSupportGooglePublisher* base); -static SpitPublishingAuthenticator* publishing_picasa_picasa_publisher_real_get_authenticator (PublishingRESTSupportGooglePublisher* base); -static void publishing_picasa_picasa_publisher_finalize (GObject * obj); -static void publishing_picasa_album_finalize (PublishingPicasaAlbum * obj); -#define PUBLISHING_PICASA_ALBUM_DIRECTORY_TRANSACTION_ENDPOINT_URL "https://picasaweb.google.com/data/feed/api/user/" "default" -GType publishing_picasa_upload_transaction_get_type (void) G_GNUC_CONST; -#define PUBLISHING_PICASA_UPLOAD_TRANSACTION_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), PUBLISHING_PICASA_TYPE_UPLOAD_TRANSACTION, PublishingPicasaUploadTransactionPrivate)) -#define PUBLISHING_PICASA_UPLOAD_TRANSACTION_METADATA_TEMPLATE " %s %s %s " -PublishingPicasaUploadTransaction* publishing_picasa_upload_transaction_new (PublishingRESTSupportGoogleSession* session, - PublishingPicasaPublishingParameters* parameters, - SpitPublishingPublishable* publishable); -PublishingPicasaUploadTransaction* publishing_picasa_upload_transaction_construct (GType object_type, - PublishingRESTSupportGoogleSession* session, - PublishingPicasaPublishingParameters* parameters, - SpitPublishingPublishable* publishable); -gchar* publishing_picasa_publishing_parameters_get_target_album_feed_url (PublishingPicasaPublishingParameters* self); -static void publishing_picasa_upload_transaction_real_execute (PublishingRESTSupportTransaction* base, - GError** error); -static void _vala_SoupBuffer_free (SoupBuffer* self); -static void _vala_SoupMultipart_free (SoupMultipart* self); -static void publishing_picasa_upload_transaction_finalize (PublishingRESTSupportTransaction * obj); -static gpointer publishing_picasa_publishing_options_pane_size_description_ref (gpointer instance); -static void publishing_picasa_publishing_options_pane_size_description_unref (gpointer instance); -static GParamSpec* publishing_picasa_publishing_options_pane_param_spec_size_description (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags) G_GNUC_UNUSED; -static void publishing_picasa_publishing_options_pane_value_set_size_description (GValue* value, - gpointer v_object) G_GNUC_UNUSED; -static void publishing_picasa_publishing_options_pane_value_take_size_description (GValue* value, - gpointer v_object) G_GNUC_UNUSED; -static gpointer publishing_picasa_publishing_options_pane_value_get_size_description (const GValue* value) G_GNUC_UNUSED; -static GType publishing_picasa_publishing_options_pane_size_description_get_type (void) G_GNUC_CONST G_GNUC_UNUSED; -#define PUBLISHING_PICASA_PUBLISHING_OPTIONS_PANE_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), PUBLISHING_PICASA_TYPE_PUBLISHING_OPTIONS_PANE, PublishingPicasaPublishingOptionsPanePrivate)) -#define PUBLISHING_PICASA_PUBLISHING_OPTIONS_PANE_DEFAULT_SIZE_CONFIG_KEY "default_size" -#define PUBLISHING_PICASA_PUBLISHING_OPTIONS_PANE_LAST_ALBUM_CONFIG_KEY "last_album" -static PublishingPicasaPublishingOptionsPaneSizeDescription** publishing_picasa_publishing_options_pane_create_size_descriptions (PublishingPicasaPublishingOptionsPane* self, - int* result_length1); -gchar* publishing_picasa_publishing_parameters_get_user_name (PublishingPicasaPublishingParameters* self); -SpitPublishingPublisherMediaType publishing_picasa_publishing_parameters_get_media_type (PublishingPicasaPublishingParameters* self); -static void publishing_picasa_publishing_options_pane_on_logout_clicked (PublishingPicasaPublishingOptionsPane* self); -static void _publishing_picasa_publishing_options_pane_on_logout_clicked_gtk_button_clicked (GtkButton* _sender, - gpointer self); -static void publishing_picasa_publishing_options_pane_on_publish_clicked (PublishingPicasaPublishingOptionsPane* self); -static void _publishing_picasa_publishing_options_pane_on_publish_clicked_gtk_button_clicked (GtkButton* _sender, - gpointer self); -void publishing_picasa_publishing_parameters_set_major_axis_size_pixels (PublishingPicasaPublishingParameters* self, - gint pixels); -PublishingPicasaAlbum** publishing_picasa_publishing_parameters_get_albums (PublishingPicasaPublishingParameters* self, - int* result_length1); -void publishing_picasa_publishing_parameters_set_target_album_entry_url (PublishingPicasaPublishingParameters* self, - const gchar* target_album_url); -static PublishingPicasaPublishingOptionsPaneSizeDescription* publishing_picasa_publishing_options_pane_size_description_new (const gchar* name, - gint major_axis_pixels); -static PublishingPicasaPublishingOptionsPaneSizeDescription* publishing_picasa_publishing_options_pane_size_description_construct (GType object_type, - const gchar* name, - gint major_axis_pixels); -static void _vala_array_add15 (PublishingPicasaPublishingOptionsPaneSizeDescription** * array, - int* length, - int* size, - PublishingPicasaPublishingOptionsPaneSizeDescription* value); -static void _vala_array_add16 (PublishingPicasaPublishingOptionsPaneSizeDescription** * array, - int* length, - int* size, - PublishingPicasaPublishingOptionsPaneSizeDescription* value); -static void _vala_array_add17 (PublishingPicasaPublishingOptionsPaneSizeDescription** * array, - int* length, - int* size, - PublishingPicasaPublishingOptionsPaneSizeDescription* value); -static void _vala_array_add18 (PublishingPicasaPublishingOptionsPaneSizeDescription** * array, - int* length, - int* size, - PublishingPicasaPublishingOptionsPaneSizeDescription* value); -#define PUBLISHING_PICASA_PUBLISHING_PARAMETERS_ORIGINAL_SIZE -1 -static void _vala_array_add19 (PublishingPicasaPublishingOptionsPaneSizeDescription** * array, - int* length, - int* size, - PublishingPicasaPublishingOptionsPaneSizeDescription* value); -void publishing_picasa_publishing_options_pane_installed (PublishingPicasaPublishingOptionsPane* self); -static GtkWidget* publishing_picasa_publishing_options_pane_real_get_widget (SpitPublishingDialogPane* base); -static SpitPublishingDialogPaneGeometryOptions publishing_picasa_publishing_options_pane_real_get_preferred_geometry (SpitPublishingDialogPane* base); -static void publishing_picasa_publishing_options_pane_real_on_pane_installed (SpitPublishingDialogPane* base); -static void publishing_picasa_publishing_options_pane_real_on_pane_uninstalled (SpitPublishingDialogPane* base); -static void publishing_picasa_publishing_options_pane_size_description_finalize (PublishingPicasaPublishingOptionsPaneSizeDescription * obj); -static void publishing_picasa_publishing_options_pane_finalize (GObject * obj); -#define PUBLISHING_PICASA_PUBLISHING_PARAMETERS_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), PUBLISHING_PICASA_TYPE_PUBLISHING_PARAMETERS, PublishingPicasaPublishingParametersPrivate)) -gchar* publishing_picasa_publishing_parameters_get_target_album_entry_url (PublishingPicasaPublishingParameters* self); -static PublishingPicasaAlbum** _vala_array_dup5 (PublishingPicasaAlbum** self, - int length); -static PublishingPicasaAlbum** _vala_array_dup6 (PublishingPicasaAlbum** self, - int length); -static void publishing_picasa_publishing_parameters_finalize (PublishingPicasaPublishingParameters * obj); -#define PUBLISHING_PICASA_UPLOADER_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), PUBLISHING_PICASA_TYPE_UPLOADER, PublishingPicasaUploaderPrivate)) -static PublishingRESTSupportTransaction* publishing_picasa_uploader_real_create_transaction (PublishingRESTSupportBatchUploader* base, - SpitPublishingPublishable* publishable); -static void publishing_picasa_uploader_finalize (PublishingRESTSupportBatchUploader * obj); -static void _vala_array_destroy (gpointer array, - gint array_length, - GDestroyNotify destroy_func); -static void _vala_array_free (gpointer array, - gint array_length, - GDestroyNotify destroy_func); -static gint _vala_array_length (gpointer array); - - -PicasaService* -picasa_service_construct (GType object_type, - GFile* resource_directory) -{ - PicasaService * self = NULL; - GdkPixbuf** _tmp0_; - gint _tmp0__length1; -#line 12 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - g_return_val_if_fail (G_IS_FILE (resource_directory), NULL); -#line 12 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - self = (PicasaService*) g_object_new (object_type, NULL); -#line 13 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp0_ = picasa_service_icon_pixbuf_set; -#line 13 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp0__length1 = picasa_service_icon_pixbuf_set_length1; -#line 13 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - if (_tmp0_ == NULL) { -#line 632 "PicasaPublishing.c" - gint _tmp1_; - GdkPixbuf** _tmp2_; -#line 14 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp2_ = resources_load_from_resource (PLUGIN_RESOURCE_PATH "/" PICASA_SERVICE_ICON_FILENAME, &_tmp1_); -#line 14 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - picasa_service_icon_pixbuf_set = (_vala_array_free (picasa_service_icon_pixbuf_set, picasa_service_icon_pixbuf_set_length1, (GDestroyNotify) g_object_unref), NULL); -#line 14 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - picasa_service_icon_pixbuf_set = _tmp2_; -#line 14 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - picasa_service_icon_pixbuf_set_length1 = _tmp1_; -#line 14 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _picasa_service_icon_pixbuf_set_size_ = picasa_service_icon_pixbuf_set_length1; -#line 645 "PicasaPublishing.c" - } -#line 12 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - return self; -#line 649 "PicasaPublishing.c" -} - - -PicasaService* -picasa_service_new (GFile* resource_directory) -{ -#line 12 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - return picasa_service_construct (TYPE_PICASA_SERVICE, resource_directory); -#line 658 "PicasaPublishing.c" -} - - -static gint -picasa_service_real_get_pluggable_interface (SpitPluggable* base, - gint min_host_interface, - gint max_host_interface) -{ - PicasaService * self; - gint result = 0; -#line 18 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_PICASA_SERVICE, PicasaService); -#line 19 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - result = spit_negotiate_interfaces (min_host_interface, max_host_interface, SPIT_PUBLISHING_CURRENT_INTERFACE); -#line 19 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - return result; -#line 675 "PicasaPublishing.c" -} - - -static const gchar* -picasa_service_real_get_id (SpitPluggable* base) -{ - PicasaService * self; - const gchar* result = NULL; -#line 23 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_PICASA_SERVICE, PicasaService); -#line 24 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - result = "org.yorba.shotwell.publishing.picasa"; -#line 24 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - return result; -#line 690 "PicasaPublishing.c" -} - - -static const gchar* -picasa_service_real_get_pluggable_name (SpitPluggable* base) -{ - PicasaService * self; - const gchar* result = NULL; -#line 27 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_PICASA_SERVICE, PicasaService); -#line 28 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - result = "Picasa Web Albums"; -#line 28 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - return result; -#line 705 "PicasaPublishing.c" -} - - -static gpointer -_g_object_ref0 (gpointer self) -{ -#line 40 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - return self ? g_object_ref (self) : NULL; -#line 714 "PicasaPublishing.c" -} - - -static GdkPixbuf** -_vala_array_dup4 (GdkPixbuf** self, - int length) -{ - GdkPixbuf** result; - int i; -#line 40 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - result = g_new0 (GdkPixbuf*, length + 1); -#line 40 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - for (i = 0; i < length; i++) { -#line 728 "PicasaPublishing.c" - GdkPixbuf* _tmp0_; -#line 40 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp0_ = _g_object_ref0 (self[i]); -#line 40 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - result[i] = _tmp0_; -#line 734 "PicasaPublishing.c" - } -#line 40 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - return result; -#line 738 "PicasaPublishing.c" -} - - -static void -picasa_service_real_get_info (SpitPluggable* base, - SpitPluggableInfo* info) -{ - PicasaService * 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 31 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_PICASA_SERVICE, PicasaService); -#line 31 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - g_return_if_fail (info != NULL); -#line 32 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp0_ = g_strdup ("Lucas Beeler"); -#line 32 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _g_free0 ((*info).authors); -#line 32 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - (*info).authors = _tmp0_; -#line 33 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp1_ = g_strdup (_ ("Copyright 2016 Software Freedom Conservancy Inc.")); -#line 33 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _g_free0 ((*info).copyright); -#line 33 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - (*info).copyright = _tmp1_; -#line 34 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp2_ = g_strdup (RESOURCES_TRANSLATORS); -#line 34 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _g_free0 ((*info).translators); -#line 34 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - (*info).translators = _tmp2_; -#line 35 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp3_ = g_strdup (_VERSION); -#line 35 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _g_free0 ((*info).version); -#line 35 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - (*info).version = _tmp3_; -#line 36 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp4_ = g_strdup (RESOURCES_WEBSITE_NAME); -#line 36 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _g_free0 ((*info).website_name); -#line 36 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - (*info).website_name = _tmp4_; -#line 37 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp5_ = g_strdup (RESOURCES_WEBSITE_URL); -#line 37 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _g_free0 ((*info).website_url); -#line 37 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - (*info).website_url = _tmp5_; -#line 38 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - (*info).is_license_wordwrapped = FALSE; -#line 39 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp6_ = g_strdup (RESOURCES_LICENSE); -#line 39 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _g_free0 ((*info).license); -#line 39 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - (*info).license = _tmp6_; -#line 40 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp7_ = picasa_service_icon_pixbuf_set; -#line 40 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp7__length1 = picasa_service_icon_pixbuf_set_length1; -#line 40 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp8_ = (_tmp7_ != NULL) ? _vala_array_dup4 (_tmp7_, _tmp7__length1) : ((gpointer) _tmp7_); -#line 40 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp8__length1 = _tmp7__length1; -#line 40 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - (*info).icons = (_vala_array_free ((*info).icons, (*info).icons_length1, (GDestroyNotify) g_object_unref), NULL); -#line 40 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - (*info).icons = _tmp8_; -#line 40 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - (*info).icons_length1 = _tmp8__length1; -#line 820 "PicasaPublishing.c" -} - - -static SpitPublishingPublisher* -picasa_service_real_create_publisher (SpitPublishingService* base, - SpitPublishingPluginHost* host) -{ - PicasaService * self; - SpitPublishingPublisher* result = NULL; - PublishingPicasaPicasaPublisher* _tmp0_; -#line 43 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_PICASA_SERVICE, PicasaService); -#line 43 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - g_return_val_if_fail (SPIT_PUBLISHING_IS_PLUGIN_HOST (host), NULL); -#line 44 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp0_ = publishing_picasa_picasa_publisher_new (G_TYPE_CHECK_INSTANCE_CAST (self, SPIT_PUBLISHING_TYPE_SERVICE, SpitPublishingService), host); -#line 44 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - result = G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, SPIT_PUBLISHING_TYPE_PUBLISHER, SpitPublishingPublisher); -#line 44 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - return result; -#line 841 "PicasaPublishing.c" -} - - -static SpitPublishingPublisherMediaType -picasa_service_real_get_supported_media (SpitPublishingService* base) -{ - PicasaService * self; - SpitPublishingPublisherMediaType result = 0; -#line 47 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_PICASA_SERVICE, PicasaService); -#line 48 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - result = SPIT_PUBLISHING_PUBLISHER_MEDIA_TYPE_PHOTO | SPIT_PUBLISHING_PUBLISHER_MEDIA_TYPE_VIDEO; -#line 48 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - return result; -#line 856 "PicasaPublishing.c" -} - - -static void -picasa_service_real_activation (SpitPluggable* base, - gboolean enabled) -{ - PicasaService * self; -#line 52 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_PICASA_SERVICE, PicasaService); -#line 867 "PicasaPublishing.c" -} - - -static void -picasa_service_class_init (PicasaServiceClass * klass) -{ -#line 7 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - picasa_service_parent_class = g_type_class_peek_parent (klass); -#line 7 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - G_OBJECT_CLASS (klass)->finalize = picasa_service_finalize; -#line 878 "PicasaPublishing.c" -} - - -static void -picasa_service_spit_pluggable_interface_init (SpitPluggableIface * iface) -{ -#line 7 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - picasa_service_spit_pluggable_parent_iface = g_type_interface_peek_parent (iface); -#line 7 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - iface->get_pluggable_interface = (gint (*) (SpitPluggable *, gint, gint)) picasa_service_real_get_pluggable_interface; -#line 7 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - iface->get_id = (const gchar* (*) (SpitPluggable *)) picasa_service_real_get_id; -#line 7 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - iface->get_pluggable_name = (const gchar* (*) (SpitPluggable *)) picasa_service_real_get_pluggable_name; -#line 7 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - iface->get_info = (void (*) (SpitPluggable *, SpitPluggableInfo*)) picasa_service_real_get_info; -#line 7 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - iface->activation = (void (*) (SpitPluggable *, gboolean)) picasa_service_real_activation; -#line 897 "PicasaPublishing.c" -} - - -static void -picasa_service_spit_publishing_service_interface_init (SpitPublishingServiceIface * iface) -{ -#line 7 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - picasa_service_spit_publishing_service_parent_iface = g_type_interface_peek_parent (iface); -#line 7 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - iface->create_publisher = (SpitPublishingPublisher* (*) (SpitPublishingService *, SpitPublishingPluginHost*)) picasa_service_real_create_publisher; -#line 7 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - iface->get_supported_media = (SpitPublishingPublisherMediaType (*) (SpitPublishingService *)) picasa_service_real_get_supported_media; -#line 910 "PicasaPublishing.c" -} - - -static void -picasa_service_instance_init (PicasaService * self) -{ -} - - -static void -picasa_service_finalize (GObject * obj) -{ - PicasaService * self; -#line 7 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_PICASA_SERVICE, PicasaService); -#line 7 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - G_OBJECT_CLASS (picasa_service_parent_class)->finalize (obj); -#line 928 "PicasaPublishing.c" -} - - -GType -picasa_service_get_type (void) -{ - static volatile gsize picasa_service_type_id__volatile = 0; - if (g_once_init_enter (&picasa_service_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (PicasaServiceClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) picasa_service_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PicasaService), 0, (GInstanceInitFunc) picasa_service_instance_init, NULL }; - static const GInterfaceInfo spit_pluggable_info = { (GInterfaceInitFunc) picasa_service_spit_pluggable_interface_init, (GInterfaceFinalizeFunc) NULL, NULL}; - static const GInterfaceInfo spit_publishing_service_info = { (GInterfaceInitFunc) picasa_service_spit_publishing_service_interface_init, (GInterfaceFinalizeFunc) NULL, NULL}; - GType picasa_service_type_id; - picasa_service_type_id = g_type_register_static (G_TYPE_OBJECT, "PicasaService", &g_define_type_info, 0); - g_type_add_interface_static (picasa_service_type_id, SPIT_TYPE_PLUGGABLE, &spit_pluggable_info); - g_type_add_interface_static (picasa_service_type_id, SPIT_PUBLISHING_TYPE_SERVICE, &spit_publishing_service_info); - g_once_init_leave (&picasa_service_type_id__volatile, picasa_service_type_id); - } - return picasa_service_type_id__volatile; -} - - -PublishingPicasaPicasaPublisher* -publishing_picasa_picasa_publisher_construct (GType object_type, - SpitPublishingService* service, - SpitPublishingPluginHost* host) -{ - PublishingPicasaPicasaPublisher * self = NULL; - PublishingPicasaPublishingParameters* _tmp0_; - PublishingPicasaPublishingParameters* _tmp1_; - SpitPublishingPublisherMediaType media_type = 0; - gint _tmp2_; - SpitPublishingPublishable** _tmp3_; - PublishingPicasaPublishingParameters* _tmp7_; - SpitPublishingPublisherMediaType _tmp8_; -#line 67 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - g_return_val_if_fail (SPIT_PUBLISHING_IS_SERVICE (service), NULL); -#line 67 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - g_return_val_if_fail (SPIT_PUBLISHING_IS_PLUGIN_HOST (host), NULL); -#line 69 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - self = (PublishingPicasaPicasaPublisher*) publishing_rest_support_google_publisher_construct (object_type, service, host, "https://picasaweb.google.com/data/"); -#line 71 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp0_ = publishing_picasa_publishing_parameters_new (); -#line 71 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _publishing_picasa_publishing_parameters_unref0 (self->priv->publishing_parameters); -#line 71 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - self->priv->publishing_parameters = _tmp0_; -#line 72 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp1_ = self->priv->publishing_parameters; -#line 72 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - publishing_picasa_picasa_publisher_load_parameters_from_configuration_system (self, _tmp1_); -#line 74 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - media_type = SPIT_PUBLISHING_PUBLISHER_MEDIA_TYPE_NONE; -#line 75 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp3_ = spit_publishing_plugin_host_get_publishables (host, &_tmp2_); -#line 983 "PicasaPublishing.c" - { - SpitPublishingPublishable** p_collection = NULL; - gint p_collection_length1 = 0; - gint _p_collection_size_ = 0; - gint p_it = 0; -#line 75 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - p_collection = _tmp3_; -#line 75 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - p_collection_length1 = _tmp2_; -#line 75 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - for (p_it = 0; p_it < _tmp2_; p_it = p_it + 1) { -#line 995 "PicasaPublishing.c" - SpitPublishingPublishable* _tmp4_; - SpitPublishingPublishable* p = NULL; -#line 75 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp4_ = _g_object_ref0 (p_collection[p_it]); -#line 75 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - p = _tmp4_; -#line 1002 "PicasaPublishing.c" - { - SpitPublishingPublisherMediaType _tmp5_; - SpitPublishingPublishable* _tmp6_; -#line 76 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp5_ = media_type; -#line 76 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp6_ = p; -#line 76 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - media_type = _tmp5_ | spit_publishing_publishable_get_media_type (_tmp6_); -#line 75 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _g_object_unref0 (p); -#line 1014 "PicasaPublishing.c" - } - } -#line 75 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - p_collection = (_vala_array_free (p_collection, p_collection_length1, (GDestroyNotify) g_object_unref), NULL); -#line 1019 "PicasaPublishing.c" - } -#line 77 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp7_ = self->priv->publishing_parameters; -#line 77 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp8_ = media_type; -#line 77 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - publishing_picasa_publishing_parameters_set_media_type (_tmp7_, _tmp8_); -#line 79 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - (self->priv->progress_reporter_target_destroy_notify == NULL) ? NULL : (self->priv->progress_reporter_target_destroy_notify (self->priv->progress_reporter_target), NULL); -#line 79 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - self->priv->progress_reporter = NULL; -#line 79 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - self->priv->progress_reporter_target = NULL; -#line 79 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - self->priv->progress_reporter_target_destroy_notify = NULL; -#line 79 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - self->priv->progress_reporter = NULL; -#line 79 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - self->priv->progress_reporter_target = NULL; -#line 79 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - self->priv->progress_reporter_target_destroy_notify = NULL; -#line 67 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - return self; -#line 1043 "PicasaPublishing.c" -} - - -PublishingPicasaPicasaPublisher* -publishing_picasa_picasa_publisher_new (SpitPublishingService* service, - SpitPublishingPluginHost* host) -{ -#line 67 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - return publishing_picasa_picasa_publisher_construct (PUBLISHING_PICASA_TYPE_PICASA_PUBLISHER, service, host); -#line 1053 "PicasaPublishing.c" -} - - -static void -_vala_array_add13 (PublishingPicasaAlbum** * array, - int* length, - int* size, - PublishingPicasaAlbum* value) -{ -#line 96 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - if ((*length) == (*size)) { -#line 96 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - *size = (*size) ? (2 * (*size)) : 4; -#line 96 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - *array = g_renew (PublishingPicasaAlbum*, *array, (*size) + 1); -#line 1069 "PicasaPublishing.c" - } -#line 96 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - (*array)[(*length)++] = value; -#line 96 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - (*array)[*length] = NULL; -#line 1075 "PicasaPublishing.c" -} - - -static void -_vala_array_add14 (PublishingPicasaAlbum** * array, - int* length, - int* size, - PublishingPicasaAlbum* value) -{ -#line 123 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - if ((*length) == (*size)) { -#line 123 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - *size = (*size) ? (2 * (*size)) : 4; -#line 123 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - *array = g_renew (PublishingPicasaAlbum*, *array, (*size) + 1); -#line 1091 "PicasaPublishing.c" - } -#line 123 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - (*array)[(*length)++] = value; -#line 123 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - (*array)[*length] = NULL; -#line 1097 "PicasaPublishing.c" -} - - -static PublishingPicasaAlbum** -publishing_picasa_picasa_publisher_extract_albums_helper (PublishingPicasaPicasaPublisher* self, - xmlNode* document_root, - int* result_length1, - GError** error) -{ - PublishingPicasaAlbum** result = NULL; - PublishingPicasaAlbum** _result_ = NULL; - PublishingPicasaAlbum** _tmp0_; - gint _result__length1; - gint __result__size_; - xmlNode* doc_node_iter = NULL; - const gchar* _tmp1_; - PublishingPicasaAlbum** _tmp5_; - gint _tmp5__length1; - PublishingPicasaAlbum* _tmp6_; - PublishingPicasaAlbum** _tmp35_; - gint _tmp35__length1; - GError * _inner_error_ = NULL; -#line 82 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - g_return_val_if_fail (PUBLISHING_PICASA_IS_PICASA_PUBLISHER (self), NULL); -#line 84 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp0_ = g_new0 (PublishingPicasaAlbum*, 0 + 1); -#line 84 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _result_ = _tmp0_; -#line 84 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _result__length1 = 0; -#line 84 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - __result__size_ = _result__length1; -#line 86 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - doc_node_iter = NULL; -#line 87 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp1_ = document_root->name; -#line 87 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - if (g_strcmp0 (_tmp1_, "feed") == 0) { -#line 1136 "PicasaPublishing.c" - xmlNode* _tmp2_; -#line 88 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp2_ = document_root->children; -#line 88 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - doc_node_iter = _tmp2_; -#line 1142 "PicasaPublishing.c" - } else { - const gchar* _tmp3_; -#line 89 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp3_ = document_root->name; -#line 89 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - if (g_strcmp0 (_tmp3_, "entry") == 0) { -#line 90 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - doc_node_iter = document_root; -#line 1151 "PicasaPublishing.c" - } else { - GError* _tmp4_; -#line 92 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp4_ = g_error_new_literal (SPIT_PUBLISHING_PUBLISHING_ERROR, SPIT_PUBLISHING_PUBLISHING_ERROR_MALFORMED_RESPONSE, "response root node " "isn't a or "); -#line 92 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _inner_error_ = _tmp4_; -#line 92 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - if (_inner_error_->domain == SPIT_PUBLISHING_PUBLISHING_ERROR) { -#line 92 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - g_propagate_error (error, _inner_error_); -#line 92 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _result_ = (_vala_array_free (_result_, _result__length1, (GDestroyNotify) publishing_picasa_album_unref), NULL); -#line 92 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - return NULL; -#line 1166 "PicasaPublishing.c" - } else { -#line 92 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _result_ = (_vala_array_free (_result_, _result__length1, (GDestroyNotify) publishing_picasa_album_unref), NULL); -#line 92 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 92 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - g_clear_error (&_inner_error_); -#line 92 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - return NULL; -#line 1176 "PicasaPublishing.c" - } - } - } -#line 96 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp5_ = _result_; -#line 96 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp5__length1 = _result__length1; -#line 96 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp6_ = publishing_picasa_album_new (_ ("Default album"), PUBLISHING_PICASA_PICASA_PUBLISHER_DEFAULT_ALBUM_FEED_URL); -#line 96 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _vala_array_add13 (&_result_, &_result__length1, &__result__size_, _tmp6_); -#line 1188 "PicasaPublishing.c" - { - gboolean _tmp7_ = FALSE; -#line 98 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp7_ = TRUE; -#line 98 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - while (TRUE) { -#line 1195 "PicasaPublishing.c" - xmlNode* _tmp10_; - xmlNode* _tmp11_; - const gchar* _tmp12_; - gchar* name_val = NULL; - gchar* url_val = NULL; - xmlNode* album_node_iter = NULL; - xmlNode* _tmp13_; - xmlNode* _tmp14_; - const gchar* _tmp30_; - PublishingPicasaAlbum** _tmp31_; - gint _tmp31__length1; - const gchar* _tmp32_; - const gchar* _tmp33_; - PublishingPicasaAlbum* _tmp34_; -#line 98 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - if (!_tmp7_) { -#line 1212 "PicasaPublishing.c" - xmlNode* _tmp8_; - xmlNode* _tmp9_; -#line 98 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp8_ = doc_node_iter; -#line 98 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp9_ = _tmp8_->next; -#line 98 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - doc_node_iter = _tmp9_; -#line 1221 "PicasaPublishing.c" - } -#line 98 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp7_ = FALSE; -#line 98 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp10_ = doc_node_iter; -#line 98 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - if (!(_tmp10_ != NULL)) { -#line 98 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - break; -#line 1231 "PicasaPublishing.c" - } -#line 99 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp11_ = doc_node_iter; -#line 99 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp12_ = _tmp11_->name; -#line 99 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - if (g_strcmp0 (_tmp12_, "entry") != 0) { -#line 100 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - continue; -#line 1241 "PicasaPublishing.c" - } -#line 102 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - name_val = NULL; -#line 103 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - url_val = NULL; -#line 104 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp13_ = doc_node_iter; -#line 104 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp14_ = _tmp13_->children; -#line 104 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - album_node_iter = _tmp14_; -#line 1253 "PicasaPublishing.c" - { - gboolean _tmp15_ = FALSE; -#line 105 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp15_ = TRUE; -#line 105 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - while (TRUE) { -#line 1260 "PicasaPublishing.c" - xmlNode* _tmp18_; - xmlNode* _tmp19_; - const gchar* _tmp20_; -#line 105 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - if (!_tmp15_) { -#line 1266 "PicasaPublishing.c" - xmlNode* _tmp16_; - xmlNode* _tmp17_; -#line 105 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp16_ = album_node_iter; -#line 105 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp17_ = _tmp16_->next; -#line 105 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - album_node_iter = _tmp17_; -#line 1275 "PicasaPublishing.c" - } -#line 105 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp15_ = FALSE; -#line 105 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp18_ = album_node_iter; -#line 105 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - if (!(_tmp18_ != NULL)) { -#line 105 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - break; -#line 1285 "PicasaPublishing.c" - } -#line 106 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp19_ = album_node_iter; -#line 106 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp20_ = _tmp19_->name; -#line 106 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - if (g_strcmp0 (_tmp20_, "title") == 0) { -#line 1293 "PicasaPublishing.c" - xmlNode* _tmp21_; - gchar* _tmp22_; -#line 107 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp21_ = album_node_iter; -#line 107 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp22_ = (gchar*) xmlNodeGetContent (_tmp21_); -#line 107 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _g_free0 (name_val); -#line 107 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - name_val = _tmp22_; -#line 1304 "PicasaPublishing.c" - } else { - xmlNode* _tmp23_; - const gchar* _tmp24_; -#line 108 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp23_ = album_node_iter; -#line 108 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp24_ = _tmp23_->name; -#line 108 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - if (g_strcmp0 (_tmp24_, "id") == 0) { -#line 1314 "PicasaPublishing.c" - xmlNode* _tmp25_; - xmlNs* _tmp26_; - const gchar* _tmp27_; - xmlNode* _tmp28_; - gchar* _tmp29_; -#line 112 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp25_ = album_node_iter; -#line 112 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp26_ = _tmp25_->ns; -#line 112 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp27_ = _tmp26_->prefix; -#line 112 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - if (_tmp27_ != NULL) { -#line 113 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - continue; -#line 1330 "PicasaPublishing.c" - } -#line 114 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp28_ = album_node_iter; -#line 114 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp29_ = (gchar*) xmlNodeGetContent (_tmp28_); -#line 114 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _g_free0 (url_val); -#line 114 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - url_val = _tmp29_; -#line 1340 "PicasaPublishing.c" - } - } - } - } -#line 119 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp30_ = url_val; -#line 119 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - if (g_strcmp0 (_tmp30_, PUBLISHING_PICASA_PICASA_PUBLISHER_DEFAULT_ALBUM_FEED_URL) == 0) { -#line 120 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _g_free0 (url_val); -#line 120 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _g_free0 (name_val); -#line 120 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - continue; -#line 1355 "PicasaPublishing.c" - } -#line 123 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp31_ = _result_; -#line 123 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp31__length1 = _result__length1; -#line 123 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp32_ = name_val; -#line 123 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp33_ = url_val; -#line 123 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp34_ = publishing_picasa_album_new (_tmp32_, _tmp33_); -#line 123 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _vala_array_add14 (&_result_, &_result__length1, &__result__size_, _tmp34_); -#line 98 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _g_free0 (url_val); -#line 98 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _g_free0 (name_val); -#line 1373 "PicasaPublishing.c" - } - } -#line 126 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp35_ = _result_; -#line 126 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp35__length1 = _result__length1; -#line 126 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - if (result_length1) { -#line 126 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - *result_length1 = _tmp35__length1; -#line 1384 "PicasaPublishing.c" - } -#line 126 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - result = _tmp35_; -#line 126 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - return result; -#line 1390 "PicasaPublishing.c" -} - - -static void -publishing_picasa_picasa_publisher_load_parameters_from_configuration_system (PublishingPicasaPicasaPublisher* self, - PublishingPicasaPublishingParameters* parameters) -{ - SpitPublishingPluginHost* _tmp0_; - SpitPublishingPluginHost* _tmp1_; - SpitPublishingPluginHost* _tmp2_; - gchar* _tmp3_; - gchar* _tmp4_; -#line 129 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - g_return_if_fail (PUBLISHING_PICASA_IS_PICASA_PUBLISHER (self)); -#line 129 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - g_return_if_fail (PUBLISHING_PICASA_IS_PUBLISHING_PARAMETERS (parameters)); -#line 130 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp0_ = publishing_rest_support_google_publisher_get_host (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_GOOGLE_PUBLISHER, PublishingRESTSupportGooglePublisher)); -#line 130 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - publishing_picasa_publishing_parameters_set_major_axis_size_selection_id (parameters, spit_host_interface_get_config_int (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, SPIT_TYPE_HOST_INTERFACE, SpitHostInterface), "default-size", 0)); -#line 131 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp1_ = publishing_rest_support_google_publisher_get_host (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_GOOGLE_PUBLISHER, PublishingRESTSupportGooglePublisher)); -#line 131 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - publishing_picasa_publishing_parameters_set_strip_metadata (parameters, spit_host_interface_get_config_bool (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, SPIT_TYPE_HOST_INTERFACE, SpitHostInterface), "strip-metadata", FALSE)); -#line 132 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp2_ = publishing_rest_support_google_publisher_get_host (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_GOOGLE_PUBLISHER, PublishingRESTSupportGooglePublisher)); -#line 132 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp3_ = spit_host_interface_get_config_string (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, SPIT_TYPE_HOST_INTERFACE, SpitHostInterface), "last-album", NULL); -#line 132 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp4_ = _tmp3_; -#line 132 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - publishing_picasa_publishing_parameters_set_target_album_name (parameters, _tmp4_); -#line 132 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _g_free0 (_tmp4_); -#line 1425 "PicasaPublishing.c" -} - - -static void -publishing_picasa_picasa_publisher_save_parameters_to_configuration_system (PublishingPicasaPicasaPublisher* self, - PublishingPicasaPublishingParameters* parameters) -{ - SpitPublishingPluginHost* _tmp0_; - SpitPublishingPluginHost* _tmp1_; - SpitPublishingPluginHost* _tmp2_; - gchar* _tmp3_; - gchar* _tmp4_; -#line 135 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - g_return_if_fail (PUBLISHING_PICASA_IS_PICASA_PUBLISHER (self)); -#line 135 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - g_return_if_fail (PUBLISHING_PICASA_IS_PUBLISHING_PARAMETERS (parameters)); -#line 136 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp0_ = publishing_rest_support_google_publisher_get_host (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_GOOGLE_PUBLISHER, PublishingRESTSupportGooglePublisher)); -#line 136 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - spit_host_interface_set_config_int (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, SPIT_TYPE_HOST_INTERFACE, SpitHostInterface), "default-size", publishing_picasa_publishing_parameters_get_major_axis_size_selection_id (parameters)); -#line 137 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp1_ = publishing_rest_support_google_publisher_get_host (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_GOOGLE_PUBLISHER, PublishingRESTSupportGooglePublisher)); -#line 137 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - spit_host_interface_set_config_bool (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, SPIT_TYPE_HOST_INTERFACE, SpitHostInterface), "strip_metadata", publishing_picasa_publishing_parameters_get_strip_metadata (parameters)); -#line 138 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp2_ = publishing_rest_support_google_publisher_get_host (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_GOOGLE_PUBLISHER, PublishingRESTSupportGooglePublisher)); -#line 138 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp3_ = publishing_picasa_publishing_parameters_get_target_album_name (parameters); -#line 138 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp4_ = _tmp3_; -#line 138 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - spit_host_interface_set_config_string (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, SPIT_TYPE_HOST_INTERFACE, SpitHostInterface), "last-album", _tmp4_); -#line 138 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _g_free0 (_tmp4_); -#line 1460 "PicasaPublishing.c" -} - - -static void -publishing_picasa_picasa_publisher_real_on_login_flow_complete (PublishingRESTSupportGooglePublisher* base) -{ - PublishingPicasaPicasaPublisher * self; - PublishingPicasaPublishingParameters* _tmp0_; - PublishingRESTSupportGoogleSession* _tmp1_; - PublishingRESTSupportGoogleSession* _tmp2_; - gchar* _tmp3_; - gchar* _tmp4_; -#line 141 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_PICASA_TYPE_PICASA_PUBLISHER, PublishingPicasaPicasaPublisher); -#line 142 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - g_debug ("PicasaPublishing.vala:142: EVENT: OAuth login flow complete."); -#line 145 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp0_ = self->priv->publishing_parameters; -#line 145 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp1_ = publishing_rest_support_google_publisher_get_session (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_GOOGLE_PUBLISHER, PublishingRESTSupportGooglePublisher)); -#line 145 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp2_ = _tmp1_; -#line 145 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp3_ = publishing_rest_support_google_session_get_user_name (_tmp2_); -#line 145 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp4_ = _tmp3_; -#line 145 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - publishing_picasa_publishing_parameters_set_user_name (_tmp0_, _tmp4_); -#line 145 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _g_free0 (_tmp4_); -#line 145 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _publishing_rest_support_session_unref0 (_tmp2_); -#line 147 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - publishing_picasa_picasa_publisher_do_fetch_account_information (self); -#line 1495 "PicasaPublishing.c" -} - - -static void -_publishing_picasa_picasa_publisher_on_initial_album_fetch_complete_publishing_rest_support_transaction_completed (PublishingRESTSupportTransaction* _sender, - gpointer self) -{ -#line 151 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - publishing_picasa_picasa_publisher_on_initial_album_fetch_complete ((PublishingPicasaPicasaPublisher*) self, _sender); -#line 1505 "PicasaPublishing.c" -} - - -static void -_publishing_picasa_picasa_publisher_on_initial_album_fetch_error_publishing_rest_support_transaction_network_error (PublishingRESTSupportTransaction* _sender, - GError* err, - gpointer self) -{ -#line 152 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - publishing_picasa_picasa_publisher_on_initial_album_fetch_error ((PublishingPicasaPicasaPublisher*) self, _sender, err); -#line 1516 "PicasaPublishing.c" -} - - -static void -publishing_picasa_picasa_publisher_on_initial_album_fetch_complete (PublishingPicasaPicasaPublisher* self, - PublishingRESTSupportTransaction* txn) -{ - guint _tmp0_; - guint _tmp1_; -#line 150 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - g_return_if_fail (PUBLISHING_PICASA_IS_PICASA_PUBLISHER (self)); -#line 150 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - g_return_if_fail (PUBLISHING_REST_SUPPORT_IS_TRANSACTION (txn)); -#line 151 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - g_signal_parse_name ("completed", PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, &_tmp0_, NULL, FALSE); -#line 151 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - g_signal_handlers_disconnect_matched (txn, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp0_, 0, NULL, (GCallback) _publishing_picasa_picasa_publisher_on_initial_album_fetch_complete_publishing_rest_support_transaction_completed, self); -#line 152 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - g_signal_parse_name ("network-error", PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, &_tmp1_, NULL, FALSE); -#line 152 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - g_signal_handlers_disconnect_matched (txn, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp1_, 0, NULL, (GCallback) _publishing_picasa_picasa_publisher_on_initial_album_fetch_error_publishing_rest_support_transaction_network_error, self); -#line 154 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - if (!publishing_rest_support_google_publisher_is_running (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_GOOGLE_PUBLISHER, PublishingRESTSupportGooglePublisher))) { -#line 155 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - return; -#line 1542 "PicasaPublishing.c" - } -#line 157 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - g_debug ("PicasaPublishing.vala:157: EVENT: finished fetching account and album " \ -"information."); -#line 159 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - publishing_picasa_picasa_publisher_do_parse_and_display_account_information (self, G_TYPE_CHECK_INSTANCE_CAST (txn, PUBLISHING_PICASA_TYPE_ALBUM_DIRECTORY_TRANSACTION, PublishingPicasaAlbumDirectoryTransaction)); -#line 1548 "PicasaPublishing.c" -} - - -static void -publishing_picasa_picasa_publisher_on_initial_album_fetch_error (PublishingPicasaPicasaPublisher* self, - PublishingRESTSupportTransaction* bad_txn, - GError* err) -{ - guint _tmp0_; - guint _tmp1_; - gchar* _tmp2_; - gchar* _tmp3_; - gboolean _tmp4_ = FALSE; -#line 162 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - g_return_if_fail (PUBLISHING_PICASA_IS_PICASA_PUBLISHER (self)); -#line 162 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - g_return_if_fail (PUBLISHING_REST_SUPPORT_IS_TRANSACTION (bad_txn)); -#line 164 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - g_signal_parse_name ("completed", PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, &_tmp0_, NULL, FALSE); -#line 164 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - g_signal_handlers_disconnect_matched (bad_txn, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp0_, 0, NULL, (GCallback) _publishing_picasa_picasa_publisher_on_initial_album_fetch_complete_publishing_rest_support_transaction_completed, self); -#line 165 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - g_signal_parse_name ("network-error", PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, &_tmp1_, NULL, FALSE); -#line 165 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - g_signal_handlers_disconnect_matched (bad_txn, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp1_, 0, NULL, (GCallback) _publishing_picasa_picasa_publisher_on_initial_album_fetch_error_publishing_rest_support_transaction_network_error, self); -#line 167 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - if (!publishing_rest_support_google_publisher_is_running (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_GOOGLE_PUBLISHER, PublishingRESTSupportGooglePublisher))) { -#line 168 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - return; -#line 1578 "PicasaPublishing.c" - } -#line 170 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp2_ = publishing_rest_support_transaction_get_response (bad_txn); -#line 170 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp3_ = _tmp2_; -#line 170 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - g_debug ("PicasaPublishing.vala:170: EVENT: fetching account and album informati" \ -"on failed; response = '%s'.", _tmp3_); -#line 170 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _g_free0 (_tmp3_); -#line 173 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - if (publishing_rest_support_transaction_get_status_code (bad_txn) == ((guint) 403)) { -#line 173 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp4_ = TRUE; -#line 1592 "PicasaPublishing.c" - } else { -#line 173 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp4_ = publishing_rest_support_transaction_get_status_code (bad_txn) == ((guint) 404); -#line 1596 "PicasaPublishing.c" - } -#line 173 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - if (_tmp4_) { -#line 174 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - publishing_rest_support_google_publisher_do_logout (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_GOOGLE_PUBLISHER, PublishingRESTSupportGooglePublisher)); -#line 1602 "PicasaPublishing.c" - } else { - SpitPublishingPluginHost* _tmp5_; -#line 177 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp5_ = publishing_rest_support_google_publisher_get_host (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_GOOGLE_PUBLISHER, PublishingRESTSupportGooglePublisher)); -#line 177 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - spit_publishing_plugin_host_post_error (_tmp5_, err); -#line 1609 "PicasaPublishing.c" - } -} - - -static void -publishing_picasa_picasa_publisher_on_publishing_options_logout (PublishingPicasaPicasaPublisher* self) -{ -#line 181 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - g_return_if_fail (PUBLISHING_PICASA_IS_PICASA_PUBLISHER (self)); -#line 182 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - if (!publishing_rest_support_google_publisher_is_running (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_GOOGLE_PUBLISHER, PublishingRESTSupportGooglePublisher))) { -#line 183 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - return; -#line 1623 "PicasaPublishing.c" - } -#line 185 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - g_debug ("PicasaPublishing.vala:185: EVENT: user clicked 'Logout' in the publish" \ -"ing options pane."); -#line 187 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - publishing_rest_support_google_publisher_do_logout (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_GOOGLE_PUBLISHER, PublishingRESTSupportGooglePublisher)); -#line 1629 "PicasaPublishing.c" -} - - -static void -publishing_picasa_picasa_publisher_on_publishing_options_publish (PublishingPicasaPicasaPublisher* self) -{ - PublishingPicasaPublishingParameters* _tmp0_; -#line 190 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - g_return_if_fail (PUBLISHING_PICASA_IS_PICASA_PUBLISHER (self)); -#line 191 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - if (!publishing_rest_support_google_publisher_is_running (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_GOOGLE_PUBLISHER, PublishingRESTSupportGooglePublisher))) { -#line 192 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - return; -#line 1643 "PicasaPublishing.c" - } -#line 194 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - g_debug ("PicasaPublishing.vala:194: EVENT: user clicked 'Publish' in the publis" \ -"hing options pane."); -#line 196 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp0_ = self->priv->publishing_parameters; -#line 196 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - publishing_picasa_picasa_publisher_save_parameters_to_configuration_system (self, _tmp0_); -#line 198 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - publishing_picasa_picasa_publisher_do_upload (self); -#line 1653 "PicasaPublishing.c" -} - - -static void -publishing_picasa_picasa_publisher_on_upload_status_updated (PublishingPicasaPicasaPublisher* self, - gint file_number, - gdouble completed_fraction) -{ - SpitPublishingProgressCallback _tmp0_; - void* _tmp0__target; - SpitPublishingProgressCallback _tmp1_; - void* _tmp1__target; -#line 201 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - g_return_if_fail (PUBLISHING_PICASA_IS_PICASA_PUBLISHER (self)); -#line 202 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - if (!publishing_rest_support_google_publisher_is_running (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_GOOGLE_PUBLISHER, PublishingRESTSupportGooglePublisher))) { -#line 203 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - return; -#line 1672 "PicasaPublishing.c" - } -#line 205 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - g_debug ("PicasaPublishing.vala:205: EVENT: uploader reports upload %.2f percent" \ -" complete.", 100.0 * completed_fraction); -#line 207 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp0_ = self->priv->progress_reporter; -#line 207 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp0__target = self->priv->progress_reporter_target; -#line 207 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _vala_assert (_tmp0_ != NULL, "progress_reporter != null"); -#line 209 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp1_ = self->priv->progress_reporter; -#line 209 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp1__target = self->priv->progress_reporter_target; -#line 209 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp1_ (file_number, completed_fraction, _tmp1__target); -#line 1688 "PicasaPublishing.c" -} - - -static void -_publishing_picasa_picasa_publisher_on_upload_complete_publishing_rest_support_batch_uploader_upload_complete (PublishingRESTSupportBatchUploader* _sender, - gint num_photos_published, - gpointer self) -{ -#line 219 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - publishing_picasa_picasa_publisher_on_upload_complete ((PublishingPicasaPicasaPublisher*) self, _sender, num_photos_published); -#line 1699 "PicasaPublishing.c" -} - - -static void -_publishing_picasa_picasa_publisher_on_upload_error_publishing_rest_support_batch_uploader_upload_error (PublishingRESTSupportBatchUploader* _sender, - GError* err, - gpointer self) -{ -#line 220 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - publishing_picasa_picasa_publisher_on_upload_error ((PublishingPicasaPicasaPublisher*) self, _sender, err); -#line 1710 "PicasaPublishing.c" -} - - -static void -publishing_picasa_picasa_publisher_on_upload_complete (PublishingPicasaPicasaPublisher* self, - PublishingRESTSupportBatchUploader* uploader, - gint num_published) -{ - guint _tmp0_; - guint _tmp1_; -#line 212 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - g_return_if_fail (PUBLISHING_PICASA_IS_PICASA_PUBLISHER (self)); -#line 212 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - g_return_if_fail (PUBLISHING_REST_SUPPORT_IS_BATCH_UPLOADER (uploader)); -#line 214 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - if (!publishing_rest_support_google_publisher_is_running (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_GOOGLE_PUBLISHER, PublishingRESTSupportGooglePublisher))) { -#line 215 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - return; -#line 1729 "PicasaPublishing.c" - } -#line 217 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - g_debug ("PicasaPublishing.vala:217: EVENT: uploader reports upload complete; %d" \ -" items published.", num_published); -#line 219 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - g_signal_parse_name ("upload-complete", PUBLISHING_REST_SUPPORT_TYPE_BATCH_UPLOADER, &_tmp0_, NULL, FALSE); -#line 219 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - g_signal_handlers_disconnect_matched (uploader, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp0_, 0, NULL, (GCallback) _publishing_picasa_picasa_publisher_on_upload_complete_publishing_rest_support_batch_uploader_upload_complete, self); -#line 220 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - g_signal_parse_name ("upload-error", PUBLISHING_REST_SUPPORT_TYPE_BATCH_UPLOADER, &_tmp1_, NULL, FALSE); -#line 220 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - g_signal_handlers_disconnect_matched (uploader, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp1_, 0, NULL, (GCallback) _publishing_picasa_picasa_publisher_on_upload_error_publishing_rest_support_batch_uploader_upload_error, self); -#line 222 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - publishing_picasa_picasa_publisher_do_show_success_pane (self); -#line 1743 "PicasaPublishing.c" -} - - -static void -publishing_picasa_picasa_publisher_on_upload_error (PublishingPicasaPicasaPublisher* self, - PublishingRESTSupportBatchUploader* uploader, - GError* err) -{ - const gchar* _tmp0_; - guint _tmp1_; - guint _tmp2_; - SpitPublishingPluginHost* _tmp3_; -#line 225 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - g_return_if_fail (PUBLISHING_PICASA_IS_PICASA_PUBLISHER (self)); -#line 225 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - g_return_if_fail (PUBLISHING_REST_SUPPORT_IS_BATCH_UPLOADER (uploader)); -#line 227 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - if (!publishing_rest_support_google_publisher_is_running (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_GOOGLE_PUBLISHER, PublishingRESTSupportGooglePublisher))) { -#line 228 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - return; -#line 1764 "PicasaPublishing.c" - } -#line 230 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp0_ = err->message; -#line 230 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - g_debug ("PicasaPublishing.vala:230: EVENT: uploader reports upload error = '%s'" \ -".", _tmp0_); -#line 232 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - g_signal_parse_name ("upload-complete", PUBLISHING_REST_SUPPORT_TYPE_BATCH_UPLOADER, &_tmp1_, NULL, FALSE); -#line 232 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - g_signal_handlers_disconnect_matched (uploader, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp1_, 0, NULL, (GCallback) _publishing_picasa_picasa_publisher_on_upload_complete_publishing_rest_support_batch_uploader_upload_complete, self); -#line 233 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - g_signal_parse_name ("upload-error", PUBLISHING_REST_SUPPORT_TYPE_BATCH_UPLOADER, &_tmp2_, NULL, FALSE); -#line 233 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - g_signal_handlers_disconnect_matched (uploader, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp2_, 0, NULL, (GCallback) _publishing_picasa_picasa_publisher_on_upload_error_publishing_rest_support_batch_uploader_upload_error, self); -#line 235 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp3_ = publishing_rest_support_google_publisher_get_host (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_GOOGLE_PUBLISHER, PublishingRESTSupportGooglePublisher)); -#line 235 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - spit_publishing_plugin_host_post_error (_tmp3_, err); -#line 1782 "PicasaPublishing.c" -} - - -static void -publishing_picasa_picasa_publisher_do_fetch_account_information (PublishingPicasaPicasaPublisher* self) -{ - SpitPublishingPluginHost* _tmp0_; - SpitPublishingPluginHost* _tmp1_; - PublishingPicasaAlbumDirectoryTransaction* directory_trans = NULL; - PublishingRESTSupportGoogleSession* _tmp2_; - PublishingRESTSupportGoogleSession* _tmp3_; - PublishingPicasaAlbumDirectoryTransaction* _tmp4_; - PublishingPicasaAlbumDirectoryTransaction* _tmp5_; - GError * _inner_error_ = NULL; -#line 238 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - g_return_if_fail (PUBLISHING_PICASA_IS_PICASA_PUBLISHER (self)); -#line 239 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - g_debug ("PicasaPublishing.vala:239: ACTION: fetching account and album informat" \ -"ion."); -#line 241 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp0_ = publishing_rest_support_google_publisher_get_host (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_GOOGLE_PUBLISHER, PublishingRESTSupportGooglePublisher)); -#line 241 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - spit_publishing_plugin_host_install_account_fetch_wait_pane (_tmp0_); -#line 242 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp1_ = publishing_rest_support_google_publisher_get_host (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_GOOGLE_PUBLISHER, PublishingRESTSupportGooglePublisher)); -#line 242 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - spit_publishing_plugin_host_set_service_locked (_tmp1_, TRUE); -#line 244 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp2_ = publishing_rest_support_google_publisher_get_session (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_GOOGLE_PUBLISHER, PublishingRESTSupportGooglePublisher)); -#line 244 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp3_ = _tmp2_; -#line 244 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp4_ = publishing_picasa_album_directory_transaction_new (_tmp3_); -#line 244 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp5_ = _tmp4_; -#line 244 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _publishing_rest_support_session_unref0 (_tmp3_); -#line 244 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - directory_trans = _tmp5_; -#line 246 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (directory_trans, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "network-error", (GCallback) _publishing_picasa_picasa_publisher_on_initial_album_fetch_error_publishing_rest_support_transaction_network_error, self, 0); -#line 247 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (directory_trans, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "completed", (GCallback) _publishing_picasa_picasa_publisher_on_initial_album_fetch_complete_publishing_rest_support_transaction_completed, self, 0); -#line 1825 "PicasaPublishing.c" - { -#line 250 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - publishing_rest_support_transaction_execute (G_TYPE_CHECK_INSTANCE_CAST (directory_trans, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), &_inner_error_); -#line 250 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 250 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - if (_inner_error_->domain == SPIT_PUBLISHING_PUBLISHING_ERROR) { -#line 1833 "PicasaPublishing.c" - goto __catch6_spit_publishing_publishing_error; - } -#line 250 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _publishing_rest_support_transaction_unref0 (directory_trans); -#line 250 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 250 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - g_clear_error (&_inner_error_); -#line 250 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - return; -#line 1844 "PicasaPublishing.c" - } - } - goto __finally6; - __catch6_spit_publishing_publishing_error: - { - GError* err = NULL; - GError* _tmp6_; -#line 249 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - err = _inner_error_; -#line 249 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _inner_error_ = NULL; -#line 255 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp6_ = err; -#line 255 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - publishing_picasa_picasa_publisher_on_initial_album_fetch_error (self, G_TYPE_CHECK_INSTANCE_CAST (directory_trans, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), _tmp6_); -#line 249 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _g_error_free0 (err); -#line 1862 "PicasaPublishing.c" - } - __finally6: -#line 249 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 249 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _publishing_rest_support_transaction_unref0 (directory_trans); -#line 249 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 249 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - g_clear_error (&_inner_error_); -#line 249 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - return; -#line 1875 "PicasaPublishing.c" - } -#line 238 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _publishing_rest_support_transaction_unref0 (directory_trans); -#line 1879 "PicasaPublishing.c" -} - - -static gchar* -_publishing_picasa_album_directory_transaction_validate_xml_publishing_rest_support_xml_document_check_for_error_response (PublishingRESTSupportXmlDocument* doc, - gpointer self) -{ - gchar* result; - result = publishing_picasa_album_directory_transaction_validate_xml (doc); -#line 264 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - return result; -#line 1891 "PicasaPublishing.c" -} - - -static void -publishing_picasa_picasa_publisher_do_parse_and_display_account_information (PublishingPicasaPicasaPublisher* self, - PublishingPicasaAlbumDirectoryTransaction* transaction) -{ - PublishingRESTSupportXmlDocument* response_doc = NULL; - GError * _inner_error_ = NULL; -#line 259 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - g_return_if_fail (PUBLISHING_PICASA_IS_PICASA_PUBLISHER (self)); -#line 259 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - g_return_if_fail (PUBLISHING_PICASA_IS_ALBUM_DIRECTORY_TRANSACTION (transaction)); -#line 260 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - g_debug ("PicasaPublishing.vala:260: ACTION: parsing account and album informati" \ -"on from server response XML"); -#line 1907 "PicasaPublishing.c" - { - PublishingRESTSupportXmlDocument* _tmp0_ = NULL; - gchar* _tmp1_; - gchar* _tmp2_; - PublishingRESTSupportXmlDocument* _tmp3_; - PublishingRESTSupportXmlDocument* _tmp4_; - PublishingRESTSupportXmlDocument* _tmp5_; -#line 264 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp1_ = publishing_rest_support_transaction_get_response (G_TYPE_CHECK_INSTANCE_CAST (transaction, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction)); -#line 264 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp2_ = _tmp1_; -#line 264 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp3_ = publishing_rest_support_xml_document_parse_string (_tmp2_, _publishing_picasa_album_directory_transaction_validate_xml_publishing_rest_support_xml_document_check_for_error_response, NULL, &_inner_error_); -#line 264 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp4_ = _tmp3_; -#line 264 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _g_free0 (_tmp2_); -#line 264 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp0_ = _tmp4_; -#line 264 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 264 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - if (_inner_error_->domain == SPIT_PUBLISHING_PUBLISHING_ERROR) { -#line 1931 "PicasaPublishing.c" - goto __catch7_spit_publishing_publishing_error; - } -#line 264 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _publishing_rest_support_xml_document_unref0 (response_doc); -#line 264 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 264 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - g_clear_error (&_inner_error_); -#line 264 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - return; -#line 1942 "PicasaPublishing.c" - } -#line 264 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp5_ = _tmp0_; -#line 264 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp0_ = NULL; -#line 264 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _publishing_rest_support_xml_document_unref0 (response_doc); -#line 264 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - response_doc = _tmp5_; -#line 263 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _publishing_rest_support_xml_document_unref0 (_tmp0_); -#line 1954 "PicasaPublishing.c" - } - goto __finally7; - __catch7_spit_publishing_publishing_error: - { - GError* err = NULL; - SpitPublishingPluginHost* _tmp6_; - GError* _tmp7_; -#line 263 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - err = _inner_error_; -#line 263 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _inner_error_ = NULL; -#line 267 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp6_ = publishing_rest_support_google_publisher_get_host (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_GOOGLE_PUBLISHER, PublishingRESTSupportGooglePublisher)); -#line 267 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp7_ = err; -#line 267 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - spit_publishing_plugin_host_post_error (_tmp6_, _tmp7_); -#line 268 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _g_error_free0 (err); -#line 268 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _publishing_rest_support_xml_document_unref0 (response_doc); -#line 268 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - return; -#line 1978 "PicasaPublishing.c" - } - __finally7: -#line 263 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 263 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _publishing_rest_support_xml_document_unref0 (response_doc); -#line 263 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 263 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - g_clear_error (&_inner_error_); -#line 263 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - return; -#line 1991 "PicasaPublishing.c" - } - { - PublishingPicasaAlbum** _tmp8_ = NULL; - PublishingRESTSupportXmlDocument* _tmp9_; - xmlNode* _tmp10_; - gint _tmp11_; - PublishingPicasaAlbum** _tmp12_; - gint _tmp8__length1; - gint __tmp8__size_; - PublishingPicasaPublishingParameters* _tmp13_; -#line 272 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp9_ = response_doc; -#line 272 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp10_ = publishing_rest_support_xml_document_get_root_node (_tmp9_); -#line 272 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp12_ = publishing_picasa_picasa_publisher_extract_albums_helper (self, _tmp10_, &_tmp11_, &_inner_error_); -#line 272 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp8_ = _tmp12_; -#line 272 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp8__length1 = _tmp11_; -#line 272 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - __tmp8__size_ = _tmp8__length1; -#line 272 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 272 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - if (_inner_error_->domain == SPIT_PUBLISHING_PUBLISHING_ERROR) { -#line 2018 "PicasaPublishing.c" - goto __catch8_spit_publishing_publishing_error; - } -#line 272 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _publishing_rest_support_xml_document_unref0 (response_doc); -#line 272 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 272 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - g_clear_error (&_inner_error_); -#line 272 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - return; -#line 2029 "PicasaPublishing.c" - } -#line 272 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp13_ = self->priv->publishing_parameters; -#line 272 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - publishing_picasa_publishing_parameters_set_albums (_tmp13_, _tmp8_, _tmp8__length1); -#line 271 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp8_ = (_vala_array_free (_tmp8_, _tmp8__length1, (GDestroyNotify) publishing_picasa_album_unref), NULL); -#line 2037 "PicasaPublishing.c" - } - goto __finally8; - __catch8_spit_publishing_publishing_error: - { - GError* err = NULL; - SpitPublishingPluginHost* _tmp14_; - GError* _tmp15_; -#line 271 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - err = _inner_error_; -#line 271 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _inner_error_ = NULL; -#line 274 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp14_ = publishing_rest_support_google_publisher_get_host (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_GOOGLE_PUBLISHER, PublishingRESTSupportGooglePublisher)); -#line 274 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp15_ = err; -#line 274 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - spit_publishing_plugin_host_post_error (_tmp14_, _tmp15_); -#line 275 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _g_error_free0 (err); -#line 275 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _publishing_rest_support_xml_document_unref0 (response_doc); -#line 275 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - return; -#line 2061 "PicasaPublishing.c" - } - __finally8: -#line 271 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 271 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _publishing_rest_support_xml_document_unref0 (response_doc); -#line 271 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 271 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - g_clear_error (&_inner_error_); -#line 271 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - return; -#line 2074 "PicasaPublishing.c" - } -#line 278 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - publishing_picasa_picasa_publisher_do_show_publishing_options_pane (self); -#line 259 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _publishing_rest_support_xml_document_unref0 (response_doc); -#line 2080 "PicasaPublishing.c" -} - - -static void -_publishing_picasa_picasa_publisher_on_publishing_options_publish_publishing_picasa_publishing_options_pane_publish (PublishingPicasaPublishingOptionsPane* _sender, - gpointer self) -{ -#line 296 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - publishing_picasa_picasa_publisher_on_publishing_options_publish ((PublishingPicasaPicasaPublisher*) self); -#line 2090 "PicasaPublishing.c" -} - - -static void -_publishing_picasa_picasa_publisher_on_publishing_options_logout_publishing_picasa_publishing_options_pane_logout (PublishingPicasaPublishingOptionsPane* _sender, - gpointer self) -{ -#line 297 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - publishing_picasa_picasa_publisher_on_publishing_options_logout ((PublishingPicasaPicasaPublisher*) self); -#line 2100 "PicasaPublishing.c" -} - - -static void -publishing_picasa_picasa_publisher_do_show_publishing_options_pane (PublishingPicasaPicasaPublisher* self) -{ - GtkBuilder* builder = NULL; - GtkBuilder* _tmp0_; - PublishingPicasaPublishingOptionsPane* opts_pane = NULL; - GtkBuilder* _tmp7_; - PublishingPicasaPublishingParameters* _tmp8_; - SpitPublishingAuthenticator* _tmp9_; - PublishingPicasaPublishingOptionsPane* _tmp10_; - PublishingPicasaPublishingOptionsPane* _tmp11_; - PublishingPicasaPublishingOptionsPane* _tmp12_; - SpitPublishingPluginHost* _tmp13_; - PublishingPicasaPublishingOptionsPane* _tmp14_; - SpitPublishingPluginHost* _tmp15_; - GError * _inner_error_ = NULL; -#line 281 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - g_return_if_fail (PUBLISHING_PICASA_IS_PICASA_PUBLISHER (self)); -#line 282 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - g_debug ("PicasaPublishing.vala:282: ACTION: showing publishing options pane."); -#line 283 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp0_ = gtk_builder_new (); -#line 283 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - builder = _tmp0_; -#line 2128 "PicasaPublishing.c" - { - GtkBuilder* _tmp1_; -#line 286 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp1_ = builder; -#line 286 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - gtk_builder_add_from_resource (_tmp1_, PLUGIN_RESOURCE_PATH "/" "picasa_publishing_options_pane.ui", &_inner_error_); -#line 286 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 2137 "PicasaPublishing.c" - goto __catch9_g_error; - } - } - goto __finally9; - __catch9_g_error: - { - GError* e = NULL; - GError* _tmp2_; - const gchar* _tmp3_; - SpitPublishingPluginHost* _tmp4_; - GError* _tmp5_; - GError* _tmp6_; -#line 285 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - e = _inner_error_; -#line 285 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _inner_error_ = NULL; -#line 288 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp2_ = e; -#line 288 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp3_ = _tmp2_->message; -#line 288 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - g_warning ("PicasaPublishing.vala:288: Could not parse UI file! Error: %s.", _tmp3_); -#line 289 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp4_ = publishing_rest_support_google_publisher_get_host (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_GOOGLE_PUBLISHER, PublishingRESTSupportGooglePublisher)); -#line 289 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp5_ = g_error_new_literal (SPIT_PUBLISHING_PUBLISHING_ERROR, SPIT_PUBLISHING_PUBLISHING_ERROR_LOCAL_FILE_ERROR, _ ("A file required for publishing is unavailable. Publishing to Picasa ca" \ -"n’t continue.")); -#line 289 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp6_ = _tmp5_; -#line 289 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - spit_publishing_plugin_host_post_error (_tmp4_, _tmp6_); -#line 289 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _g_error_free0 (_tmp6_); -#line 292 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _g_error_free0 (e); -#line 292 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _g_object_unref0 (builder); -#line 292 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - return; -#line 2176 "PicasaPublishing.c" - } - __finally9: -#line 285 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 285 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _g_object_unref0 (builder); -#line 285 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 285 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - g_clear_error (&_inner_error_); -#line 285 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - return; -#line 2189 "PicasaPublishing.c" - } -#line 295 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp7_ = builder; -#line 295 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp8_ = self->priv->publishing_parameters; -#line 295 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp9_ = self->priv->authenticator; -#line 295 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp10_ = publishing_picasa_publishing_options_pane_new (_tmp7_, _tmp8_, spit_publishing_authenticator_can_logout (_tmp9_)); -#line 295 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - opts_pane = _tmp10_; -#line 296 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp11_ = opts_pane; -#line 296 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - g_signal_connect_object (_tmp11_, "publish", (GCallback) _publishing_picasa_picasa_publisher_on_publishing_options_publish_publishing_picasa_publishing_options_pane_publish, self, 0); -#line 297 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp12_ = opts_pane; -#line 297 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - g_signal_connect_object (_tmp12_, "logout", (GCallback) _publishing_picasa_picasa_publisher_on_publishing_options_logout_publishing_picasa_publishing_options_pane_logout, self, 0); -#line 298 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp13_ = publishing_rest_support_google_publisher_get_host (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_GOOGLE_PUBLISHER, PublishingRESTSupportGooglePublisher)); -#line 298 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp14_ = opts_pane; -#line 298 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - spit_publishing_plugin_host_install_dialog_pane (_tmp13_, G_TYPE_CHECK_INSTANCE_CAST (_tmp14_, SPIT_PUBLISHING_TYPE_DIALOG_PANE, SpitPublishingDialogPane), SPIT_PUBLISHING_PLUGIN_HOST_BUTTON_MODE_CANCEL); -#line 300 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp15_ = publishing_rest_support_google_publisher_get_host (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_GOOGLE_PUBLISHER, PublishingRESTSupportGooglePublisher)); -#line 300 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - spit_publishing_plugin_host_set_service_locked (_tmp15_, FALSE); -#line 281 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _g_object_unref0 (opts_pane); -#line 281 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _g_object_unref0 (builder); -#line 2223 "PicasaPublishing.c" -} - - -static void -_publishing_picasa_picasa_publisher_on_upload_status_updated_spit_publishing_progress_callback (gint file_number, - gdouble fraction_complete, - gpointer self) -{ -#line 325 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - publishing_picasa_picasa_publisher_on_upload_status_updated ((PublishingPicasaPicasaPublisher*) self, file_number, fraction_complete); -#line 2234 "PicasaPublishing.c" -} - - -static void -publishing_picasa_picasa_publisher_do_upload (PublishingPicasaPicasaPublisher* self) -{ - SpitPublishingPluginHost* _tmp0_; - SpitPublishingPluginHost* _tmp1_; - PublishingPicasaPublishingParameters* _tmp2_; - PublishingPicasaPublishingParameters* _tmp3_; - void* _tmp4_; - GDestroyNotify _tmp5_; - SpitPublishingProgressCallback _tmp6_; - SpitPublishingPublishable** publishables = NULL; - SpitPublishingPluginHost* _tmp7_; - gint _tmp8_; - SpitPublishingPublishable** _tmp9_; - gint publishables_length1; - gint _publishables_size_; - PublishingPicasaUploader* uploader = NULL; - PublishingRESTSupportGoogleSession* _tmp10_; - PublishingRESTSupportGoogleSession* _tmp11_; - SpitPublishingPublishable** _tmp12_; - gint _tmp12__length1; - PublishingPicasaPublishingParameters* _tmp13_; - PublishingPicasaUploader* _tmp14_; - PublishingPicasaUploader* _tmp15_; - PublishingPicasaUploader* _tmp16_; - PublishingPicasaUploader* _tmp17_; - PublishingPicasaUploader* _tmp18_; -#line 303 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - g_return_if_fail (PUBLISHING_PICASA_IS_PICASA_PUBLISHER (self)); -#line 304 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - g_debug ("PicasaPublishing.vala:304: ACTION: uploading media items to remote ser" \ -"ver."); -#line 306 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp0_ = publishing_rest_support_google_publisher_get_host (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_GOOGLE_PUBLISHER, PublishingRESTSupportGooglePublisher)); -#line 306 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - spit_publishing_plugin_host_set_service_locked (_tmp0_, TRUE); -#line 308 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp1_ = publishing_rest_support_google_publisher_get_host (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_GOOGLE_PUBLISHER, PublishingRESTSupportGooglePublisher)); -#line 308 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp2_ = self->priv->publishing_parameters; -#line 308 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp3_ = self->priv->publishing_parameters; -#line 308 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp6_ = spit_publishing_plugin_host_serialize_publishables (_tmp1_, publishing_picasa_publishing_parameters_get_major_axis_size_pixels (_tmp2_), publishing_picasa_publishing_parameters_get_strip_metadata (_tmp3_), &_tmp4_, &_tmp5_); -#line 308 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - (self->priv->progress_reporter_target_destroy_notify == NULL) ? NULL : (self->priv->progress_reporter_target_destroy_notify (self->priv->progress_reporter_target), NULL); -#line 308 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - self->priv->progress_reporter = NULL; -#line 308 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - self->priv->progress_reporter_target = NULL; -#line 308 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - self->priv->progress_reporter_target_destroy_notify = NULL; -#line 308 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - self->priv->progress_reporter = _tmp6_; -#line 308 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - self->priv->progress_reporter_target = _tmp4_; -#line 308 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - self->priv->progress_reporter_target_destroy_notify = _tmp5_; -#line 316 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - if (!publishing_rest_support_google_publisher_is_running (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_GOOGLE_PUBLISHER, PublishingRESTSupportGooglePublisher))) { -#line 317 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - return; -#line 2299 "PicasaPublishing.c" - } -#line 319 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp7_ = publishing_rest_support_google_publisher_get_host (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_GOOGLE_PUBLISHER, PublishingRESTSupportGooglePublisher)); -#line 319 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp9_ = spit_publishing_plugin_host_get_publishables (_tmp7_, &_tmp8_); -#line 319 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - publishables = _tmp9_; -#line 319 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - publishables_length1 = _tmp8_; -#line 319 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _publishables_size_ = publishables_length1; -#line 320 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp10_ = publishing_rest_support_google_publisher_get_session (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_GOOGLE_PUBLISHER, PublishingRESTSupportGooglePublisher)); -#line 320 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp11_ = _tmp10_; -#line 320 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp12_ = publishables; -#line 320 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp12__length1 = publishables_length1; -#line 320 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp13_ = self->priv->publishing_parameters; -#line 320 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp14_ = publishing_picasa_uploader_new (_tmp11_, _tmp12_, _tmp12__length1, _tmp13_); -#line 320 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp15_ = _tmp14_; -#line 320 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _publishing_rest_support_session_unref0 (_tmp11_); -#line 320 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - uploader = _tmp15_; -#line 322 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp16_ = uploader; -#line 322 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp16_, PUBLISHING_REST_SUPPORT_TYPE_BATCH_UPLOADER, PublishingRESTSupportBatchUploader), "upload-complete", (GCallback) _publishing_picasa_picasa_publisher_on_upload_complete_publishing_rest_support_batch_uploader_upload_complete, self, 0); -#line 323 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp17_ = uploader; -#line 323 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp17_, PUBLISHING_REST_SUPPORT_TYPE_BATCH_UPLOADER, PublishingRESTSupportBatchUploader), "upload-error", (GCallback) _publishing_picasa_picasa_publisher_on_upload_error_publishing_rest_support_batch_uploader_upload_error, self, 0); -#line 325 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp18_ = uploader; -#line 325 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - publishing_rest_support_batch_uploader_upload (G_TYPE_CHECK_INSTANCE_CAST (_tmp18_, PUBLISHING_REST_SUPPORT_TYPE_BATCH_UPLOADER, PublishingRESTSupportBatchUploader), _publishing_picasa_picasa_publisher_on_upload_status_updated_spit_publishing_progress_callback, self); -#line 303 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _publishing_rest_support_batch_uploader_unref0 (uploader); -#line 303 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - publishables = (_vala_array_free (publishables, publishables_length1, (GDestroyNotify) g_object_unref), NULL); -#line 2345 "PicasaPublishing.c" -} - - -static void -publishing_picasa_picasa_publisher_do_show_success_pane (PublishingPicasaPicasaPublisher* self) -{ - SpitPublishingPluginHost* _tmp0_; - SpitPublishingPluginHost* _tmp1_; -#line 328 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - g_return_if_fail (PUBLISHING_PICASA_IS_PICASA_PUBLISHER (self)); -#line 329 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - g_debug ("PicasaPublishing.vala:329: ACTION: showing success pane."); -#line 331 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp0_ = publishing_rest_support_google_publisher_get_host (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_GOOGLE_PUBLISHER, PublishingRESTSupportGooglePublisher)); -#line 331 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - spit_publishing_plugin_host_set_service_locked (_tmp0_, FALSE); -#line 332 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp1_ = publishing_rest_support_google_publisher_get_host (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_GOOGLE_PUBLISHER, PublishingRESTSupportGooglePublisher)); -#line 332 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - spit_publishing_plugin_host_install_success_pane (_tmp1_); -#line 2366 "PicasaPublishing.c" -} - - -static void -publishing_picasa_picasa_publisher_real_do_logout (PublishingRESTSupportGooglePublisher* base) -{ - PublishingPicasaPicasaPublisher * self; - PublishingRESTSupportGoogleSession* _tmp0_; - PublishingRESTSupportGoogleSession* _tmp1_; - SpitPublishingAuthenticator* _tmp2_; -#line 335 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_PICASA_TYPE_PICASA_PUBLISHER, PublishingPicasaPicasaPublisher); -#line 336 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - g_debug ("PicasaPublishing.vala:336: ACTION: logging out user."); -#line 337 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp0_ = publishing_rest_support_google_publisher_get_session (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_GOOGLE_PUBLISHER, PublishingRESTSupportGooglePublisher)); -#line 337 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp1_ = _tmp0_; -#line 337 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - publishing_rest_support_google_session_deauthenticate (_tmp1_); -#line 337 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _publishing_rest_support_session_unref0 (_tmp1_); -#line 339 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp2_ = self->priv->authenticator; -#line 339 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - if (spit_publishing_authenticator_can_logout (_tmp2_)) { -#line 2393 "PicasaPublishing.c" - SpitPublishingAuthenticator* _tmp3_; - SpitPublishingAuthenticator* _tmp4_; -#line 340 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp3_ = self->priv->authenticator; -#line 340 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - spit_publishing_authenticator_logout (_tmp3_); -#line 341 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp4_ = self->priv->authenticator; -#line 341 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - spit_publishing_authenticator_authenticate (_tmp4_); -#line 2404 "PicasaPublishing.c" - } -} - - -static gboolean -publishing_picasa_picasa_publisher_real_is_running (PublishingRESTSupportGooglePublisher* base) -{ - PublishingPicasaPicasaPublisher * self; - gboolean result = FALSE; - gboolean _tmp0_; -#line 345 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_PICASA_TYPE_PICASA_PUBLISHER, PublishingPicasaPicasaPublisher); -#line 346 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp0_ = self->priv->running; -#line 346 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - result = _tmp0_; -#line 346 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - return result; -#line 2423 "PicasaPublishing.c" -} - - -static void -publishing_picasa_picasa_publisher_real_start (PublishingRESTSupportGooglePublisher* base) -{ - PublishingPicasaPicasaPublisher * self; - SpitPublishingAuthenticator* _tmp0_; -#line 349 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_PICASA_TYPE_PICASA_PUBLISHER, PublishingPicasaPicasaPublisher); -#line 350 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - g_debug ("PicasaPublishing.vala:350: PicasaPublisher: start( ) invoked."); -#line 352 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - if (publishing_rest_support_google_publisher_is_running (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_GOOGLE_PUBLISHER, PublishingRESTSupportGooglePublisher))) { -#line 353 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - return; -#line 2440 "PicasaPublishing.c" - } -#line 355 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - self->priv->running = TRUE; -#line 357 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp0_ = self->priv->authenticator; -#line 357 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - spit_publishing_authenticator_authenticate (_tmp0_); -#line 2448 "PicasaPublishing.c" -} - - -static void -publishing_picasa_picasa_publisher_real_stop (PublishingRESTSupportGooglePublisher* base) -{ - PublishingPicasaPicasaPublisher * self; - PublishingRESTSupportGoogleSession* _tmp0_; - PublishingRESTSupportGoogleSession* _tmp1_; -#line 360 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_PICASA_TYPE_PICASA_PUBLISHER, PublishingPicasaPicasaPublisher); -#line 361 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - g_debug ("PicasaPublishing.vala:361: PicasaPublisher: stop( ) invoked."); -#line 363 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp0_ = publishing_rest_support_google_publisher_get_session (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_GOOGLE_PUBLISHER, PublishingRESTSupportGooglePublisher)); -#line 363 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp1_ = _tmp0_; -#line 363 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - publishing_rest_support_session_stop_transactions (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, PUBLISHING_REST_SUPPORT_TYPE_SESSION, PublishingRESTSupportSession)); -#line 363 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _publishing_rest_support_session_unref0 (_tmp1_); -#line 365 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - self->priv->running = FALSE; -#line 2472 "PicasaPublishing.c" -} - - -static SpitPublishingAuthenticator* -publishing_picasa_picasa_publisher_real_get_authenticator (PublishingRESTSupportGooglePublisher* base) -{ - PublishingPicasaPicasaPublisher * self; - SpitPublishingAuthenticator* result = NULL; - SpitPublishingAuthenticator* _tmp0_; - SpitPublishingAuthenticator* _tmp5_; - SpitPublishingAuthenticator* _tmp6_; -#line 368 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_PICASA_TYPE_PICASA_PUBLISHER, PublishingPicasaPicasaPublisher); -#line 369 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp0_ = self->priv->authenticator; -#line 369 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - if (_tmp0_ == NULL) { -#line 2490 "PicasaPublishing.c" - PublishingAuthenticatorFactory* _tmp1_; - PublishingAuthenticatorFactory* _tmp2_; - SpitPublishingPluginHost* _tmp3_; - SpitPublishingAuthenticator* _tmp4_; -#line 370 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp1_ = publishing_authenticator_factory_get_instance (); -#line 370 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp2_ = _tmp1_; -#line 370 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp3_ = publishing_rest_support_google_publisher_get_host (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_GOOGLE_PUBLISHER, PublishingRESTSupportGooglePublisher)); -#line 370 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp4_ = spit_publishing_authenticator_factory_create (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, SPIT_PUBLISHING_TYPE_AUTHENTICATOR_FACTORY, SpitPublishingAuthenticatorFactory), "picasa", _tmp3_); -#line 370 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _g_object_unref0 (self->priv->authenticator); -#line 370 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - self->priv->authenticator = _tmp4_; -#line 370 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _g_object_unref0 (_tmp2_); -#line 2509 "PicasaPublishing.c" - } -#line 373 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp5_ = self->priv->authenticator; -#line 373 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp6_ = _g_object_ref0 (_tmp5_); -#line 373 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - result = _tmp6_; -#line 373 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - return result; -#line 2519 "PicasaPublishing.c" -} - - -static void -publishing_picasa_picasa_publisher_class_init (PublishingPicasaPicasaPublisherClass * klass) -{ -#line 60 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - publishing_picasa_picasa_publisher_parent_class = g_type_class_peek_parent (klass); -#line 60 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - g_type_class_add_private (klass, sizeof (PublishingPicasaPicasaPublisherPrivate)); -#line 60 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - ((PublishingRESTSupportGooglePublisherClass *) klass)->on_login_flow_complete = (void (*) (PublishingRESTSupportGooglePublisher *)) publishing_picasa_picasa_publisher_real_on_login_flow_complete; -#line 60 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - ((PublishingRESTSupportGooglePublisherClass *) klass)->do_logout = (void (*) (PublishingRESTSupportGooglePublisher *)) publishing_picasa_picasa_publisher_real_do_logout; -#line 60 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - ((PublishingRESTSupportGooglePublisherClass *) klass)->is_running = (gboolean (*) (PublishingRESTSupportGooglePublisher *)) publishing_picasa_picasa_publisher_real_is_running; -#line 60 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - ((PublishingRESTSupportGooglePublisherClass *) klass)->start = (void (*) (PublishingRESTSupportGooglePublisher *)) publishing_picasa_picasa_publisher_real_start; -#line 60 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - ((PublishingRESTSupportGooglePublisherClass *) klass)->stop = (void (*) (PublishingRESTSupportGooglePublisher *)) publishing_picasa_picasa_publisher_real_stop; -#line 60 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - ((PublishingRESTSupportGooglePublisherClass *) klass)->get_authenticator = (SpitPublishingAuthenticator* (*) (PublishingRESTSupportGooglePublisher *)) publishing_picasa_picasa_publisher_real_get_authenticator; -#line 60 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - G_OBJECT_CLASS (klass)->finalize = publishing_picasa_picasa_publisher_finalize; -#line 2544 "PicasaPublishing.c" -} - - -static void -publishing_picasa_picasa_publisher_instance_init (PublishingPicasaPicasaPublisher * self) -{ -#line 60 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - self->priv = PUBLISHING_PICASA_PICASA_PUBLISHER_GET_PRIVATE (self); -#line 2553 "PicasaPublishing.c" -} - - -static void -publishing_picasa_picasa_publisher_finalize (GObject * obj) -{ - PublishingPicasaPicasaPublisher * self; -#line 60 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, PUBLISHING_PICASA_TYPE_PICASA_PUBLISHER, PublishingPicasaPicasaPublisher); -#line 63 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - (self->priv->progress_reporter_target_destroy_notify == NULL) ? NULL : (self->priv->progress_reporter_target_destroy_notify (self->priv->progress_reporter_target), NULL); -#line 63 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - self->priv->progress_reporter = NULL; -#line 63 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - self->priv->progress_reporter_target = NULL; -#line 63 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - self->priv->progress_reporter_target_destroy_notify = NULL; -#line 64 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _publishing_picasa_publishing_parameters_unref0 (self->priv->publishing_parameters); -#line 65 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _g_object_unref0 (self->priv->authenticator); -#line 60 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - G_OBJECT_CLASS (publishing_picasa_picasa_publisher_parent_class)->finalize (obj); -#line 2577 "PicasaPublishing.c" -} - - -GType -publishing_picasa_picasa_publisher_get_type (void) -{ - static volatile gsize publishing_picasa_picasa_publisher_type_id__volatile = 0; - if (g_once_init_enter (&publishing_picasa_picasa_publisher_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (PublishingPicasaPicasaPublisherClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) publishing_picasa_picasa_publisher_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PublishingPicasaPicasaPublisher), 0, (GInstanceInitFunc) publishing_picasa_picasa_publisher_instance_init, NULL }; - GType publishing_picasa_picasa_publisher_type_id; - publishing_picasa_picasa_publisher_type_id = g_type_register_static (PUBLISHING_REST_SUPPORT_TYPE_GOOGLE_PUBLISHER, "PublishingPicasaPicasaPublisher", &g_define_type_info, 0); - g_once_init_leave (&publishing_picasa_picasa_publisher_type_id__volatile, publishing_picasa_picasa_publisher_type_id); - } - return publishing_picasa_picasa_publisher_type_id__volatile; -} - - -PublishingPicasaAlbum* -publishing_picasa_album_construct (GType object_type, - const gchar* name, - const gchar* url) -{ - PublishingPicasaAlbum* self = NULL; - gchar* _tmp0_; - gchar* _tmp1_; -#line 381 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - g_return_val_if_fail (name != NULL, NULL); -#line 381 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - g_return_val_if_fail (url != NULL, NULL); -#line 381 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - self = (PublishingPicasaAlbum*) g_type_create_instance (object_type); -#line 382 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp0_ = g_strdup (name); -#line 382 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _g_free0 (self->name); -#line 382 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - self->name = _tmp0_; -#line 383 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp1_ = g_strdup (url); -#line 383 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _g_free0 (self->url); -#line 383 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - self->url = _tmp1_; -#line 381 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - return self; -#line 2623 "PicasaPublishing.c" -} - - -PublishingPicasaAlbum* -publishing_picasa_album_new (const gchar* name, - const gchar* url) -{ -#line 381 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - return publishing_picasa_album_construct (PUBLISHING_PICASA_TYPE_ALBUM, name, url); -#line 2633 "PicasaPublishing.c" -} - - -static void -publishing_picasa_value_album_init (GValue* value) -{ -#line 377 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - value->data[0].v_pointer = NULL; -#line 2642 "PicasaPublishing.c" -} - - -static void -publishing_picasa_value_album_free_value (GValue* value) -{ -#line 377 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - if (value->data[0].v_pointer) { -#line 377 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - publishing_picasa_album_unref (value->data[0].v_pointer); -#line 2653 "PicasaPublishing.c" - } -} - - -static void -publishing_picasa_value_album_copy_value (const GValue* src_value, - GValue* dest_value) -{ -#line 377 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - if (src_value->data[0].v_pointer) { -#line 377 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - dest_value->data[0].v_pointer = publishing_picasa_album_ref (src_value->data[0].v_pointer); -#line 2666 "PicasaPublishing.c" - } else { -#line 377 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - dest_value->data[0].v_pointer = NULL; -#line 2670 "PicasaPublishing.c" - } -} - - -static gpointer -publishing_picasa_value_album_peek_pointer (const GValue* value) -{ -#line 377 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - return value->data[0].v_pointer; -#line 2680 "PicasaPublishing.c" -} - - -static gchar* -publishing_picasa_value_album_collect_value (GValue* value, - guint n_collect_values, - GTypeCValue* collect_values, - guint collect_flags) -{ -#line 377 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - if (collect_values[0].v_pointer) { -#line 2692 "PicasaPublishing.c" - PublishingPicasaAlbum * object; - object = collect_values[0].v_pointer; -#line 377 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - if (object->parent_instance.g_class == NULL) { -#line 377 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL); -#line 2699 "PicasaPublishing.c" - } else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) { -#line 377 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - return g_strconcat ("invalid object type `", g_type_name (G_TYPE_FROM_INSTANCE (object)), "' for value type `", G_VALUE_TYPE_NAME (value), "'", NULL); -#line 2703 "PicasaPublishing.c" - } -#line 377 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - value->data[0].v_pointer = publishing_picasa_album_ref (object); -#line 2707 "PicasaPublishing.c" - } else { -#line 377 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - value->data[0].v_pointer = NULL; -#line 2711 "PicasaPublishing.c" - } -#line 377 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - return NULL; -#line 2715 "PicasaPublishing.c" -} - - -static gchar* -publishing_picasa_value_album_lcopy_value (const GValue* value, - guint n_collect_values, - GTypeCValue* collect_values, - guint collect_flags) -{ - PublishingPicasaAlbum ** object_p; - object_p = collect_values[0].v_pointer; -#line 377 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - if (!object_p) { -#line 377 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value)); -#line 2731 "PicasaPublishing.c" - } -#line 377 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - if (!value->data[0].v_pointer) { -#line 377 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - *object_p = NULL; -#line 2737 "PicasaPublishing.c" - } else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) { -#line 377 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - *object_p = value->data[0].v_pointer; -#line 2741 "PicasaPublishing.c" - } else { -#line 377 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - *object_p = publishing_picasa_album_ref (value->data[0].v_pointer); -#line 2745 "PicasaPublishing.c" - } -#line 377 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - return NULL; -#line 2749 "PicasaPublishing.c" -} - - -GParamSpec* -publishing_picasa_param_spec_album (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags) -{ - PublishingPicasaParamSpecAlbum* spec; -#line 377 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - g_return_val_if_fail (g_type_is_a (object_type, PUBLISHING_PICASA_TYPE_ALBUM), NULL); -#line 377 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags); -#line 377 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - G_PARAM_SPEC (spec)->value_type = object_type; -#line 377 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - return G_PARAM_SPEC (spec); -#line 2769 "PicasaPublishing.c" -} - - -gpointer -publishing_picasa_value_get_album (const GValue* value) -{ -#line 377 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, PUBLISHING_PICASA_TYPE_ALBUM), NULL); -#line 377 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - return value->data[0].v_pointer; -#line 2780 "PicasaPublishing.c" -} - - -void -publishing_picasa_value_set_album (GValue* value, - gpointer v_object) -{ - PublishingPicasaAlbum * old; -#line 377 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, PUBLISHING_PICASA_TYPE_ALBUM)); -#line 377 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - old = value->data[0].v_pointer; -#line 377 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - if (v_object) { -#line 377 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, PUBLISHING_PICASA_TYPE_ALBUM)); -#line 377 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value))); -#line 377 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - value->data[0].v_pointer = v_object; -#line 377 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - publishing_picasa_album_ref (value->data[0].v_pointer); -#line 2803 "PicasaPublishing.c" - } else { -#line 377 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - value->data[0].v_pointer = NULL; -#line 2807 "PicasaPublishing.c" - } -#line 377 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - if (old) { -#line 377 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - publishing_picasa_album_unref (old); -#line 2813 "PicasaPublishing.c" - } -} - - -void -publishing_picasa_value_take_album (GValue* value, - gpointer v_object) -{ - PublishingPicasaAlbum * old; -#line 377 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, PUBLISHING_PICASA_TYPE_ALBUM)); -#line 377 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - old = value->data[0].v_pointer; -#line 377 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - if (v_object) { -#line 377 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, PUBLISHING_PICASA_TYPE_ALBUM)); -#line 377 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value))); -#line 377 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - value->data[0].v_pointer = v_object; -#line 2835 "PicasaPublishing.c" - } else { -#line 377 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - value->data[0].v_pointer = NULL; -#line 2839 "PicasaPublishing.c" - } -#line 377 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - if (old) { -#line 377 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - publishing_picasa_album_unref (old); -#line 2845 "PicasaPublishing.c" - } -} - - -static void -publishing_picasa_album_class_init (PublishingPicasaAlbumClass * klass) -{ -#line 377 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - publishing_picasa_album_parent_class = g_type_class_peek_parent (klass); -#line 377 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - ((PublishingPicasaAlbumClass *) klass)->finalize = publishing_picasa_album_finalize; -#line 2857 "PicasaPublishing.c" -} - - -static void -publishing_picasa_album_instance_init (PublishingPicasaAlbum * self) -{ -#line 377 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - self->ref_count = 1; -#line 2866 "PicasaPublishing.c" -} - - -static void -publishing_picasa_album_finalize (PublishingPicasaAlbum * obj) -{ - PublishingPicasaAlbum * self; -#line 377 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, PUBLISHING_PICASA_TYPE_ALBUM, PublishingPicasaAlbum); -#line 377 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - g_signal_handlers_destroy (self); -#line 378 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _g_free0 (self->name); -#line 379 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _g_free0 (self->url); -#line 2882 "PicasaPublishing.c" -} - - -GType -publishing_picasa_album_get_type (void) -{ - static volatile gsize publishing_picasa_album_type_id__volatile = 0; - if (g_once_init_enter (&publishing_picasa_album_type_id__volatile)) { - static const GTypeValueTable g_define_type_value_table = { publishing_picasa_value_album_init, publishing_picasa_value_album_free_value, publishing_picasa_value_album_copy_value, publishing_picasa_value_album_peek_pointer, "p", publishing_picasa_value_album_collect_value, "p", publishing_picasa_value_album_lcopy_value }; - static const GTypeInfo g_define_type_info = { sizeof (PublishingPicasaAlbumClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) publishing_picasa_album_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PublishingPicasaAlbum), 0, (GInstanceInitFunc) publishing_picasa_album_instance_init, &g_define_type_value_table }; - static const GTypeFundamentalInfo g_define_type_fundamental_info = { (G_TYPE_FLAG_CLASSED | G_TYPE_FLAG_INSTANTIATABLE | G_TYPE_FLAG_DERIVABLE | G_TYPE_FLAG_DEEP_DERIVABLE) }; - GType publishing_picasa_album_type_id; - publishing_picasa_album_type_id = g_type_register_fundamental (g_type_fundamental_next (), "PublishingPicasaAlbum", &g_define_type_info, &g_define_type_fundamental_info, 0); - g_once_init_leave (&publishing_picasa_album_type_id__volatile, publishing_picasa_album_type_id); - } - return publishing_picasa_album_type_id__volatile; -} - - -gpointer -publishing_picasa_album_ref (gpointer instance) -{ - PublishingPicasaAlbum * self; - self = instance; -#line 377 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - g_atomic_int_inc (&self->ref_count); -#line 377 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - return instance; -#line 2911 "PicasaPublishing.c" -} - - -void -publishing_picasa_album_unref (gpointer instance) -{ - PublishingPicasaAlbum * self; - self = instance; -#line 377 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - if (g_atomic_int_dec_and_test (&self->ref_count)) { -#line 377 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - PUBLISHING_PICASA_ALBUM_GET_CLASS (self)->finalize (self); -#line 377 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - g_type_free_instance ((GTypeInstance *) self); -#line 2926 "PicasaPublishing.c" - } -} - - -PublishingPicasaAlbumDirectoryTransaction* -publishing_picasa_album_directory_transaction_construct (GType object_type, - PublishingRESTSupportGoogleSession* session) -{ - PublishingPicasaAlbumDirectoryTransaction* self = NULL; -#line 392 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - g_return_val_if_fail (PUBLISHING_REST_SUPPORT_IS_GOOGLE_SESSION (session), NULL); -#line 393 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - self = (PublishingPicasaAlbumDirectoryTransaction*) publishing_rest_support_google_publisher_authenticated_transaction_construct (object_type, session, PUBLISHING_PICASA_ALBUM_DIRECTORY_TRANSACTION_ENDPOINT_URL, PUBLISHING_REST_SUPPORT_HTTP_METHOD_GET); -#line 392 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - return self; -#line 2942 "PicasaPublishing.c" -} - - -PublishingPicasaAlbumDirectoryTransaction* -publishing_picasa_album_directory_transaction_new (PublishingRESTSupportGoogleSession* session) -{ -#line 392 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - return publishing_picasa_album_directory_transaction_construct (PUBLISHING_PICASA_TYPE_ALBUM_DIRECTORY_TRANSACTION, session); -#line 2951 "PicasaPublishing.c" -} - - -gchar* -publishing_picasa_album_directory_transaction_validate_xml (PublishingRESTSupportXmlDocument* doc) -{ - gchar* result = NULL; - xmlNode* document_root = NULL; - xmlNode* _tmp0_; - gboolean _tmp1_ = FALSE; - xmlNode* _tmp2_; - const gchar* _tmp3_; -#line 396 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - g_return_val_if_fail (PUBLISHING_REST_SUPPORT_IS_XML_DOCUMENT (doc), NULL); -#line 397 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp0_ = publishing_rest_support_xml_document_get_root_node (doc); -#line 397 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - document_root = _tmp0_; -#line 398 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp2_ = document_root; -#line 398 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp3_ = _tmp2_->name; -#line 398 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - if (g_strcmp0 (_tmp3_, "feed") == 0) { -#line 398 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp1_ = TRUE; -#line 2978 "PicasaPublishing.c" - } else { - xmlNode* _tmp4_; - const gchar* _tmp5_; -#line 398 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp4_ = document_root; -#line 398 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp5_ = _tmp4_->name; -#line 398 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp1_ = g_strcmp0 (_tmp5_, "entry") == 0; -#line 2988 "PicasaPublishing.c" - } -#line 398 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - if (_tmp1_) { -#line 399 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - result = NULL; -#line 399 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - return result; -#line 2996 "PicasaPublishing.c" - } else { - gchar* _tmp6_; -#line 401 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp6_ = g_strdup ("response root node isn't a or "); -#line 401 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - result = _tmp6_; -#line 401 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - return result; -#line 3005 "PicasaPublishing.c" - } -} - - -static void -publishing_picasa_album_directory_transaction_class_init (PublishingPicasaAlbumDirectoryTransactionClass * klass) -{ -#line 387 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - publishing_picasa_album_directory_transaction_parent_class = g_type_class_peek_parent (klass); -#line 3015 "PicasaPublishing.c" -} - - -static void -publishing_picasa_album_directory_transaction_instance_init (PublishingPicasaAlbumDirectoryTransaction * self) -{ -} - - -GType -publishing_picasa_album_directory_transaction_get_type (void) -{ - static volatile gsize publishing_picasa_album_directory_transaction_type_id__volatile = 0; - if (g_once_init_enter (&publishing_picasa_album_directory_transaction_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (PublishingPicasaAlbumDirectoryTransactionClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) publishing_picasa_album_directory_transaction_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PublishingPicasaAlbumDirectoryTransaction), 0, (GInstanceInitFunc) publishing_picasa_album_directory_transaction_instance_init, NULL }; - GType publishing_picasa_album_directory_transaction_type_id; - publishing_picasa_album_directory_transaction_type_id = g_type_register_static (PUBLISHING_REST_SUPPORT_GOOGLE_PUBLISHER_TYPE_AUTHENTICATED_TRANSACTION, "PublishingPicasaAlbumDirectoryTransaction", &g_define_type_info, 0); - g_once_init_leave (&publishing_picasa_album_directory_transaction_type_id__volatile, publishing_picasa_album_directory_transaction_type_id); - } - return publishing_picasa_album_directory_transaction_type_id__volatile; -} - - -static gpointer -_publishing_rest_support_session_ref0 (gpointer self) -{ -#line 419 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - return self ? publishing_rest_support_session_ref (self) : NULL; -#line 3044 "PicasaPublishing.c" -} - - -static gpointer -_publishing_picasa_publishing_parameters_ref0 (gpointer self) -{ -#line 420 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - return self ? publishing_picasa_publishing_parameters_ref (self) : NULL; -#line 3053 "PicasaPublishing.c" -} - - -PublishingPicasaUploadTransaction* -publishing_picasa_upload_transaction_construct (GType object_type, - PublishingRESTSupportGoogleSession* session, - PublishingPicasaPublishingParameters* parameters, - SpitPublishingPublishable* publishable) -{ - PublishingPicasaUploadTransaction* self = NULL; - gchar* _tmp0_; - gchar* _tmp1_; - PublishingRESTSupportGoogleSession* _tmp2_; - PublishingPicasaPublishingParameters* _tmp3_; - SpitPublishingPublishable* _tmp4_; - GError * _inner_error_ = NULL; -#line 414 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - g_return_val_if_fail (PUBLISHING_REST_SUPPORT_IS_GOOGLE_SESSION (session), NULL); -#line 414 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - g_return_val_if_fail (PUBLISHING_PICASA_IS_PUBLISHING_PARAMETERS (parameters), NULL); -#line 414 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - g_return_val_if_fail (SPIT_PUBLISHING_IS_PUBLISHABLE (publishable), NULL); -#line 416 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp0_ = publishing_picasa_publishing_parameters_get_target_album_feed_url (parameters); -#line 416 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp1_ = _tmp0_; -#line 416 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - self = (PublishingPicasaUploadTransaction*) publishing_rest_support_google_publisher_authenticated_transaction_construct (object_type, session, _tmp1_, PUBLISHING_REST_SUPPORT_HTTP_METHOD_POST); -#line 416 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _g_free0 (_tmp1_); -#line 418 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _vala_assert (publishing_rest_support_session_is_authenticated (G_TYPE_CHECK_INSTANCE_CAST (session, PUBLISHING_REST_SUPPORT_TYPE_SESSION, PublishingRESTSupportSession)), "session.is_authenticated()"); -#line 419 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp2_ = _publishing_rest_support_session_ref0 (session); -#line 419 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _publishing_rest_support_session_unref0 (self->priv->session); -#line 419 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - self->priv->session = _tmp2_; -#line 420 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp3_ = _publishing_picasa_publishing_parameters_ref0 (parameters); -#line 420 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _publishing_picasa_publishing_parameters_unref0 (self->priv->parameters); -#line 420 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - self->priv->parameters = _tmp3_; -#line 421 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp4_ = _g_object_ref0 (publishable); -#line 421 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _g_object_unref0 (self->priv->publishable); -#line 421 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - self->priv->publishable = _tmp4_; -#line 422 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - if (spit_publishing_publishable_get_media_type (publishable) == SPIT_PUBLISHING_PUBLISHER_MEDIA_TYPE_VIDEO) { -#line 3106 "PicasaPublishing.c" - { - GFileInfo* info = NULL; - SpitPublishingPublishable* _tmp5_; - GFile* _tmp6_; - GFile* _tmp7_; - GFileInfo* _tmp8_; - GFileInfo* _tmp9_; - GFileInfo* _tmp10_; - const gchar* _tmp11_; - gchar* _tmp12_; -#line 424 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp5_ = self->priv->publishable; -#line 424 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp6_ = spit_publishing_publishable_get_serialized_file (_tmp5_); -#line 424 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp7_ = _tmp6_; -#line 424 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp8_ = g_file_query_info (_tmp7_, G_FILE_ATTRIBUTE_STANDARD_CONTENT_TYPE, G_FILE_QUERY_INFO_NONE, NULL, &_inner_error_); -#line 424 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp9_ = _tmp8_; -#line 424 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _g_object_unref0 (_tmp7_); -#line 424 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - info = _tmp9_; -#line 424 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 3133 "PicasaPublishing.c" - goto __catch10_g_error; - } -#line 425 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp10_ = info; -#line 425 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp11_ = g_file_info_get_content_type (_tmp10_); -#line 425 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp12_ = g_content_type_get_mime_type (_tmp11_); -#line 425 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _g_free0 (self->priv->mime_type); -#line 425 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - self->priv->mime_type = _tmp12_; -#line 423 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _g_object_unref0 (info); -#line 3148 "PicasaPublishing.c" - } - goto __finally10; - __catch10_g_error: - { - GError* err = NULL; - gchar* _tmp13_; -#line 423 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - err = _inner_error_; -#line 423 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _inner_error_ = NULL; -#line 427 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp13_ = g_strdup ("video/mpeg"); -#line 427 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _g_free0 (self->priv->mime_type); -#line 427 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - self->priv->mime_type = _tmp13_; -#line 423 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _g_error_free0 (err); -#line 3167 "PicasaPublishing.c" - } - __finally10: -#line 423 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 423 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 423 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - g_clear_error (&_inner_error_); -#line 423 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - return NULL; -#line 3178 "PicasaPublishing.c" - } - } else { - gchar* _tmp14_; -#line 430 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp14_ = g_strdup ("image/jpeg"); -#line 430 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _g_free0 (self->priv->mime_type); -#line 430 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - self->priv->mime_type = _tmp14_; -#line 3188 "PicasaPublishing.c" - } -#line 414 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - return self; -#line 3192 "PicasaPublishing.c" -} - - -PublishingPicasaUploadTransaction* -publishing_picasa_upload_transaction_new (PublishingRESTSupportGoogleSession* session, - PublishingPicasaPublishingParameters* parameters, - SpitPublishingPublishable* publishable) -{ -#line 414 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - return publishing_picasa_upload_transaction_construct (PUBLISHING_PICASA_TYPE_UPLOAD_TRANSACTION, session, parameters, publishable); -#line 3203 "PicasaPublishing.c" -} - - -static glong -string_strnlen (gchar* str, - glong maxlen) -{ - glong result = 0L; - gchar* end = NULL; - gchar* _tmp0_; - gchar* _tmp1_; -#line 1336 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp0_ = memchr (str, 0, (gsize) maxlen); -#line 1336 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - end = _tmp0_; -#line 1337 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp1_ = end; -#line 1337 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - if (_tmp1_ == NULL) { -#line 1338 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - result = maxlen; -#line 1338 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - return result; -#line 3227 "PicasaPublishing.c" - } else { - gchar* _tmp2_; -#line 1340 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp2_ = end; -#line 1340 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - result = (glong) (_tmp2_ - str); -#line 1340 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - return result; -#line 3236 "PicasaPublishing.c" - } -} - - -static gchar* -string_substring (const gchar* self, - glong offset, - glong len) -{ - gchar* result = NULL; - glong string_length = 0L; - gboolean _tmp0_ = FALSE; - glong _tmp6_; - gchar* _tmp7_; -#line 1347 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - g_return_val_if_fail (self != NULL, NULL); -#line 1349 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - if (offset >= ((glong) 0)) { -#line 1349 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp0_ = len >= ((glong) 0); -#line 3257 "PicasaPublishing.c" - } else { -#line 1349 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp0_ = FALSE; -#line 3261 "PicasaPublishing.c" - } -#line 1349 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - if (_tmp0_) { -#line 1351 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - string_length = string_strnlen ((gchar*) self, offset + len); -#line 3267 "PicasaPublishing.c" - } else { - gint _tmp1_; - gint _tmp2_; -#line 1353 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp1_ = strlen (self); -#line 1353 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp2_ = _tmp1_; -#line 1353 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - string_length = (glong) _tmp2_; -#line 3277 "PicasaPublishing.c" - } -#line 1356 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - if (offset < ((glong) 0)) { -#line 3281 "PicasaPublishing.c" - glong _tmp3_; -#line 1357 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp3_ = string_length; -#line 1357 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - offset = _tmp3_ + offset; -#line 1358 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - g_return_val_if_fail (offset >= ((glong) 0), NULL); -#line 3289 "PicasaPublishing.c" - } else { - glong _tmp4_; -#line 1360 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp4_ = string_length; -#line 1360 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - g_return_val_if_fail (offset <= _tmp4_, NULL); -#line 3296 "PicasaPublishing.c" - } -#line 1362 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - if (len < ((glong) 0)) { -#line 3300 "PicasaPublishing.c" - glong _tmp5_; -#line 1363 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp5_ = string_length; -#line 1363 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - len = _tmp5_ - offset; -#line 3306 "PicasaPublishing.c" - } -#line 1365 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp6_ = string_length; -#line 1365 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - g_return_val_if_fail ((offset + len) <= _tmp6_, NULL); -#line 1366 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp7_ = g_strndup (((gchar*) self) + offset, (gsize) len); -#line 1366 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - result = _tmp7_; -#line 1366 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - return result; -#line 3318 "PicasaPublishing.c" -} - - -static gchar* -_vala_g_strjoinv (const gchar* separator, - gchar** str_array, - int str_array_length1) -{ - gchar* result = NULL; - 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 3333 "PicasaPublishing.c" - } -#line 1095 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - if (str_array != NULL) { -#line 3337 "PicasaPublishing.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 3343 "PicasaPublishing.c" - } else { - gboolean _tmp2_ = FALSE; -#line 1095 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - if (str_array_length1 == -1) { -#line 3348 "PicasaPublishing.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 3354 "PicasaPublishing.c" - } else { -#line 1095 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp2_ = FALSE; -#line 3358 "PicasaPublishing.c" - } -#line 1095 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp1_ = _tmp2_; -#line 3362 "PicasaPublishing.c" - } -#line 1095 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp0_ = _tmp1_; -#line 3366 "PicasaPublishing.c" - } else { -#line 1095 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp0_ = FALSE; -#line 3370 "PicasaPublishing.c" - } -#line 1095 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - if (_tmp0_) { -#line 3374 "PicasaPublishing.c" - gint i = 0; - gsize len = 0UL; - gint _tmp20_; - gint _tmp22_; - gint _tmp23_; - gsize _tmp24_; - gint _tmp25_; - gint _tmp26_; - gint _tmp27_; - const gchar* res = NULL; - gsize _tmp28_; - void* _tmp29_; - void* ptr = NULL; - 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 3394 "PicasaPublishing.c" - { - gboolean _tmp4_ = FALSE; -#line 1098 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - i = 0; -#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 3403 "PicasaPublishing.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 3412 "PicasaPublishing.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 3418 "PicasaPublishing.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 3424 "PicasaPublishing.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 3430 "PicasaPublishing.c" - } else { -#line 1098 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp7_ = FALSE; -#line 3434 "PicasaPublishing.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 3440 "PicasaPublishing.c" - } else { - gboolean _tmp9_ = FALSE; -#line 1098 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - if (str_array_length1 == -1) { -#line 3445 "PicasaPublishing.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 3454 "PicasaPublishing.c" - } else { -#line 1098 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp9_ = FALSE; -#line 3458 "PicasaPublishing.c" - } -#line 1098 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp6_ = _tmp9_; -#line 3462 "PicasaPublishing.c" - } -#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 3468 "PicasaPublishing.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 3476 "PicasaPublishing.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 3491 "PicasaPublishing.c" - } else { -#line 1099 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp12_ = 0; -#line 3495 "PicasaPublishing.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 3501 "PicasaPublishing.c" - } - } -#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 3508 "PicasaPublishing.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 3516 "PicasaPublishing.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 3548 "PicasaPublishing.c" - { - gboolean _tmp33_ = FALSE; -#line 1109 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - i = 1; -#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 3557 "PicasaPublishing.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 3568 "PicasaPublishing.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 3574 "PicasaPublishing.c" - } -#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 3584 "PicasaPublishing.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 3598 "PicasaPublishing.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 3607 "PicasaPublishing.c" - } else { -#line 1111 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp38_ = ""; -#line 3611 "PicasaPublishing.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 3619 "PicasaPublishing.c" - } - } -#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 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 3630 "PicasaPublishing.c" - } else { - 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 3639 "PicasaPublishing.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 1442 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - g_return_val_if_fail (self != NULL, NULL); -#line 1443 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - res = (guint8*) self; -#line 1443 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - res_length1 = -1; -#line 1443 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _res_size_ = res_length1; -#line 1444 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp0_ = strlen (self); -#line 1444 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp1_ = _tmp0_; -#line 1444 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - res_length1 = (gint) _tmp1_; -#line 1444 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp2_ = res_length1; -#line 1445 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp3_ = res; -#line 1445 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp3__length1 = res_length1; -#line 1445 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp4_ = _tmp3_; -#line 1445 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp4__length1 = _tmp3__length1; -#line 1445 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - if (result_length1) { -#line 1445 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - *result_length1 = _tmp4__length1; -#line 3687 "PicasaPublishing.c" - } -#line 1445 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - result = _tmp4_; -#line 1445 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - return result; -#line 3693 "PicasaPublishing.c" -} - - -static void -_vala_SoupBuffer_free (SoupBuffer* self) -{ -#line 473 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - g_boxed_free (soup_buffer_get_type (), self); -#line 3702 "PicasaPublishing.c" -} - - -static void -_vala_SoupMultipart_free (SoupMultipart* self) -{ -#line 473 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - g_boxed_free (soup_multipart_get_type (), self); -#line 3711 "PicasaPublishing.c" -} - - -static void -publishing_picasa_upload_transaction_real_execute (PublishingRESTSupportTransaction* base, - GError** error) -{ - PublishingPicasaUploadTransaction * self; - SoupMultipart* message_parts = NULL; - SoupMultipart* _tmp0_; - gchar* summary = NULL; - gchar* _tmp1_; - SpitPublishingPublishable* _tmp2_; - gchar* _tmp3_; - gchar* _tmp4_; - gboolean _tmp5_; - gchar** keywords = NULL; - SpitPublishingPublishable* _tmp12_; - gint _tmp13_; - gchar** _tmp14_; - gint keywords_length1; - gint _keywords_size_; - gchar* keywords_string = NULL; - gchar* _tmp15_; - gchar** _tmp16_; - gint _tmp16__length1; - gchar* metadata = NULL; - SpitPublishingPublishable* _tmp50_; - gchar* _tmp51_; - gchar* _tmp52_; - gchar* _tmp53_; - gchar* _tmp54_; - const gchar* _tmp55_; - const gchar* _tmp56_; - gchar* _tmp57_; - gchar* _tmp58_; - SoupBuffer* metadata_buffer = NULL; - const gchar* _tmp59_; - guint8* _tmp60_; - gint _tmp60__length1; - guint8* _tmp61_; - gint _tmp61__length1; - SoupBuffer* _tmp62_; - SoupMultipart* _tmp63_; - SoupBuffer* _tmp64_; - guint8* photo_data = NULL; - GMappedFile* _tmp86_; - gchar* _tmp87_; - gint photo_data_length1; - gint _photo_data_size_; - GMappedFile* _tmp88_; - gint _tmp89_; - SoupBuffer* bindable_data = NULL; - SoupBuffer* _tmp90_; - SoupMultipart* _tmp91_; - SpitPublishingPublishable* _tmp92_; - GFile* _tmp93_; - GFile* _tmp94_; - gchar* _tmp95_; - gchar* _tmp96_; - const gchar* _tmp97_; - SoupMessage* outbound_message = NULL; - gchar* _tmp98_; - gchar* _tmp99_; - SoupMultipart* _tmp100_; - SoupMessage* _tmp101_; - SoupMessage* _tmp102_; - SoupMessageHeaders* _tmp103_; - PublishingRESTSupportGoogleSession* _tmp104_; - gchar* _tmp105_; - gchar* _tmp106_; - gchar* _tmp107_; - gchar* _tmp108_; - GError * _inner_error_ = NULL; -#line 434 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_PICASA_TYPE_UPLOAD_TRANSACTION, PublishingPicasaUploadTransaction); -#line 436 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp0_ = soup_multipart_new ("multipart/related"); -#line 436 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - message_parts = _tmp0_; -#line 438 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp1_ = g_strdup (""); -#line 438 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - summary = _tmp1_; -#line 439 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp2_ = self->priv->publishable; -#line 439 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp3_ = spit_publishing_publishable_get_publishing_name (_tmp2_); -#line 439 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp4_ = _tmp3_; -#line 439 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp5_ = g_strcmp0 (_tmp4_, "") != 0; -#line 439 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _g_free0 (_tmp4_); -#line 439 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - if (_tmp5_) { -#line 3808 "PicasaPublishing.c" - SpitPublishingPublishable* _tmp6_; - gchar* _tmp7_; - gchar* _tmp8_; - gchar* _tmp9_; - gchar* _tmp10_; - gchar* _tmp11_; -#line 440 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp6_ = self->priv->publishable; -#line 440 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp7_ = spit_publishing_publishable_get_publishing_name (_tmp6_); -#line 440 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp8_ = _tmp7_; -#line 440 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp9_ = publishing_rest_support_decimal_entity_encode (_tmp8_); -#line 440 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp10_ = _tmp9_; -#line 440 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp11_ = g_strdup_printf ("%s", _tmp10_); -#line 440 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _g_free0 (summary); -#line 440 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - summary = _tmp11_; -#line 440 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _g_free0 (_tmp10_); -#line 440 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _g_free0 (_tmp8_); -#line 3835 "PicasaPublishing.c" - } -#line 444 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp12_ = self->priv->publishable; -#line 444 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp14_ = spit_publishing_publishable_get_publishing_keywords (_tmp12_, &_tmp13_); -#line 444 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - keywords = _tmp14_; -#line 444 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - keywords_length1 = _tmp13_; -#line 444 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _keywords_size_ = keywords_length1; -#line 445 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp15_ = g_strdup (""); -#line 445 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - keywords_string = _tmp15_; -#line 446 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp16_ = keywords; -#line 446 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp16__length1 = keywords_length1; -#line 446 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - if (_tmp16__length1 > 0) { -#line 3857 "PicasaPublishing.c" - const gchar* _tmp46_; - gchar* _tmp47_; - const gchar* _tmp48_; - gchar* _tmp49_; - { - gint i = 0; -#line 447 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - i = 0; -#line 3866 "PicasaPublishing.c" - { - gboolean _tmp17_ = FALSE; -#line 447 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp17_ = TRUE; -#line 447 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - while (TRUE) { -#line 3873 "PicasaPublishing.c" - gint _tmp19_; - gchar** _tmp20_; - gint _tmp20__length1; - gchar** tmp = NULL; - gint tmp_length1 = 0; - gint _tmp_size_ = 0; - gchar** _tmp21_; - gint _tmp21__length1; - gint _tmp22_; - const gchar* _tmp23_; - const gchar* _tmp36_; - gint _tmp37_; - gint _tmp38_; -#line 447 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - if (!_tmp17_) { -#line 3889 "PicasaPublishing.c" - gint _tmp18_; -#line 447 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp18_ = i; -#line 447 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - i = _tmp18_ + 1; -#line 3895 "PicasaPublishing.c" - } -#line 447 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp17_ = FALSE; -#line 447 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp19_ = i; -#line 447 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp20_ = keywords; -#line 447 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp20__length1 = keywords_length1; -#line 447 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - if (!(_tmp19_ < _tmp20__length1)) { -#line 447 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - break; -#line 3909 "PicasaPublishing.c" - } -#line 450 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp21_ = keywords; -#line 450 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp21__length1 = keywords_length1; -#line 450 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp22_ = i; -#line 450 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp23_ = _tmp21_[_tmp22_]; -#line 450 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - if (g_str_has_prefix (_tmp23_, "/")) { -#line 3921 "PicasaPublishing.c" - gchar** _tmp24_; - gint _tmp24__length1; - gint _tmp25_; - const gchar* _tmp26_; - gchar* _tmp27_; - gchar* _tmp28_; - gchar** _tmp29_; - gchar** _tmp30_; -#line 451 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp24_ = keywords; -#line 451 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp24__length1 = keywords_length1; -#line 451 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp25_ = i; -#line 451 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp26_ = _tmp24_[_tmp25_]; -#line 451 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp27_ = string_substring (_tmp26_, (glong) 1, (glong) -1); -#line 451 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp28_ = _tmp27_; -#line 451 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp30_ = _tmp29_ = g_strsplit (_tmp28_, "/", 0); -#line 451 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - tmp = (_vala_array_free (tmp, tmp_length1, (GDestroyNotify) g_free), NULL); -#line 451 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - tmp = _tmp30_; -#line 451 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - tmp_length1 = _vala_array_length (_tmp29_); -#line 451 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp_size_ = tmp_length1; -#line 451 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _g_free0 (_tmp28_); -#line 3954 "PicasaPublishing.c" - } else { - gchar** _tmp31_; - gint _tmp31__length1; - gint _tmp32_; - const gchar* _tmp33_; - gchar** _tmp34_; - gchar** _tmp35_; -#line 453 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp31_ = keywords; -#line 453 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp31__length1 = keywords_length1; -#line 453 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp32_ = i; -#line 453 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp33_ = _tmp31_[_tmp32_]; -#line 453 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp35_ = _tmp34_ = g_strsplit (_tmp33_, "/", 0); -#line 453 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - tmp = (_vala_array_free (tmp, tmp_length1, (GDestroyNotify) g_free), NULL); -#line 453 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - tmp = _tmp35_; -#line 453 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - tmp_length1 = _vala_array_length (_tmp34_); -#line 453 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp_size_ = tmp_length1; -#line 3980 "PicasaPublishing.c" - } -#line 455 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp36_ = keywords_string; -#line 455 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp37_ = strlen (_tmp36_); -#line 455 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp38_ = _tmp37_; -#line 455 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - if (_tmp38_ > 0) { -#line 3990 "PicasaPublishing.c" - const gchar* _tmp39_; - gchar** _tmp40_; - gint _tmp40__length1; - gchar* _tmp41_; - gchar* _tmp42_; - gchar* _tmp43_; -#line 456 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp39_ = keywords_string; -#line 456 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp40_ = tmp; -#line 456 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp40__length1 = tmp_length1; -#line 456 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp41_ = _vala_g_strjoinv (", ", _tmp40_, _tmp40__length1); -#line 456 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp42_ = _tmp41_; -#line 456 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp43_ = g_strjoin (", ", _tmp39_, _tmp42_, NULL); -#line 456 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _g_free0 (keywords_string); -#line 456 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - keywords_string = _tmp43_; -#line 456 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _g_free0 (_tmp42_); -#line 4015 "PicasaPublishing.c" - } else { - gchar** _tmp44_; - gint _tmp44__length1; - gchar* _tmp45_; -#line 458 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp44_ = tmp; -#line 458 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp44__length1 = tmp_length1; -#line 458 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp45_ = _vala_g_strjoinv (", ", _tmp44_, _tmp44__length1); -#line 458 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _g_free0 (keywords_string); -#line 458 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - keywords_string = _tmp45_; -#line 4030 "PicasaPublishing.c" - } -#line 447 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - tmp = (_vala_array_free (tmp, tmp_length1, (GDestroyNotify) g_free), NULL); -#line 4034 "PicasaPublishing.c" - } - } - } -#line 461 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp46_ = keywords_string; -#line 461 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp47_ = publishing_rest_support_decimal_entity_encode (_tmp46_); -#line 461 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _g_free0 (keywords_string); -#line 461 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - keywords_string = _tmp47_; -#line 462 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp48_ = keywords_string; -#line 462 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp49_ = g_strdup_printf ("%s", _tmp48_); -#line 462 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _g_free0 (keywords_string); -#line 462 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - keywords_string = _tmp49_; -#line 4054 "PicasaPublishing.c" - } -#line 465 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp50_ = self->priv->publishable; -#line 465 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp51_ = spit_publishing_publishable_get_param_string (_tmp50_, SPIT_PUBLISHING_PUBLISHABLE_PARAM_STRING_BASENAME); -#line 465 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp52_ = _tmp51_; -#line 465 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp53_ = publishing_rest_support_decimal_entity_encode (_tmp52_); -#line 465 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp54_ = _tmp53_; -#line 465 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp55_ = summary; -#line 465 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp56_ = keywords_string; -#line 465 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp57_ = g_strdup_printf (PUBLISHING_PICASA_UPLOAD_TRANSACTION_METADATA_TEMPLATE, _tmp54_, _tmp55_, _tmp56_); -#line 465 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp58_ = _tmp57_; -#line 465 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _g_free0 (_tmp54_); -#line 465 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _g_free0 (_tmp52_); -#line 465 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - metadata = _tmp58_; -#line 468 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp59_ = metadata; -#line 468 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp60_ = string_get_data (_tmp59_, &_tmp60__length1); -#line 468 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp61_ = _tmp60_; -#line 468 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp61__length1 = _tmp60__length1; -#line 468 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp62_ = soup_buffer_new (SOUP_MEMORY_COPY, _tmp61_, _tmp61__length1); -#line 468 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - metadata_buffer = _tmp62_; -#line 469 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp63_ = message_parts; -#line 469 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp64_ = metadata_buffer; -#line 469 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - soup_multipart_append_form_file (_tmp63_, "", "", "application/atom+xml", _tmp64_); -#line 4098 "PicasaPublishing.c" - { - GMappedFile* _tmp65_ = NULL; - SpitPublishingPublishable* _tmp66_; - GFile* _tmp67_; - GFile* _tmp68_; - gchar* _tmp69_; - gchar* _tmp70_; - GMappedFile* _tmp71_; - GMappedFile* _tmp72_; - GMappedFile* _tmp73_; -#line 473 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp66_ = self->priv->publishable; -#line 473 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp67_ = spit_publishing_publishable_get_serialized_file (_tmp66_); -#line 473 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp68_ = _tmp67_; -#line 473 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp69_ = g_file_get_path (_tmp68_); -#line 473 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp70_ = _tmp69_; -#line 473 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp71_ = g_mapped_file_new (_tmp70_, FALSE, &_inner_error_); -#line 473 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp72_ = _tmp71_; -#line 473 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _g_free0 (_tmp70_); -#line 473 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _g_object_unref0 (_tmp68_); -#line 473 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp65_ = _tmp72_; -#line 473 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 473 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - if (_inner_error_->domain == G_FILE_ERROR) { -#line 4133 "PicasaPublishing.c" - goto __catch11_g_file_error; - } -#line 473 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - __vala_SoupBuffer_free0 (metadata_buffer); -#line 473 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _g_free0 (metadata); -#line 473 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _g_free0 (keywords_string); -#line 473 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - keywords = (_vala_array_free (keywords, keywords_length1, (GDestroyNotify) g_free), NULL); -#line 473 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _g_free0 (summary); -#line 473 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - __vala_SoupMultipart_free0 (message_parts); -#line 473 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 473 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - g_clear_error (&_inner_error_); -#line 473 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - return; -#line 4154 "PicasaPublishing.c" - } -#line 473 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp73_ = _tmp65_; -#line 473 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp65_ = NULL; -#line 473 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _g_mapped_file_unref0 (self->priv->mapped_file); -#line 473 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - self->priv->mapped_file = _tmp73_; -#line 472 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _g_mapped_file_unref0 (_tmp65_); -#line 4166 "PicasaPublishing.c" - } - goto __finally11; - __catch11_g_file_error: - { - GError* e = NULL; - gchar* msg = NULL; - SpitPublishingPublishable* _tmp74_; - GFile* _tmp75_; - GFile* _tmp76_; - gchar* _tmp77_; - gchar* _tmp78_; - GError* _tmp79_; - const gchar* _tmp80_; - gchar* _tmp81_; - gchar* _tmp82_; - const gchar* _tmp83_; - const gchar* _tmp84_; - GError* _tmp85_; -#line 472 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - e = _inner_error_; -#line 472 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _inner_error_ = NULL; -#line 475 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp74_ = self->priv->publishable; -#line 475 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp75_ = spit_publishing_publishable_get_serialized_file (_tmp74_); -#line 475 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp76_ = _tmp75_; -#line 475 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp77_ = g_file_get_path (_tmp76_); -#line 475 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp78_ = _tmp77_; -#line 475 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp79_ = e; -#line 475 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp80_ = _tmp79_->message; -#line 475 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp81_ = g_strdup_printf ("Picasa: couldn't read data from %s: %s", _tmp78_, _tmp80_); -#line 475 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp82_ = _tmp81_; -#line 475 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _g_free0 (_tmp78_); -#line 475 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _g_object_unref0 (_tmp76_); -#line 475 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - msg = _tmp82_; -#line 477 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp83_ = msg; -#line 477 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - g_warning ("PicasaPublishing.vala:477: %s", _tmp83_); -#line 479 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp84_ = msg; -#line 479 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp85_ = g_error_new_literal (SPIT_PUBLISHING_PUBLISHING_ERROR, SPIT_PUBLISHING_PUBLISHING_ERROR_LOCAL_FILE_ERROR, _tmp84_); -#line 479 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _inner_error_ = _tmp85_; -#line 479 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _g_free0 (msg); -#line 479 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _g_error_free0 (e); -#line 4227 "PicasaPublishing.c" - goto __finally11; - } - __finally11: -#line 472 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 472 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - if (_inner_error_->domain == SPIT_PUBLISHING_PUBLISHING_ERROR) { -#line 472 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - g_propagate_error (error, _inner_error_); -#line 472 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - __vala_SoupBuffer_free0 (metadata_buffer); -#line 472 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _g_free0 (metadata); -#line 472 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _g_free0 (keywords_string); -#line 472 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - keywords = (_vala_array_free (keywords, keywords_length1, (GDestroyNotify) g_free), NULL); -#line 472 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _g_free0 (summary); -#line 472 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - __vala_SoupMultipart_free0 (message_parts); -#line 472 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - return; -#line 4251 "PicasaPublishing.c" - } else { -#line 472 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - __vala_SoupBuffer_free0 (metadata_buffer); -#line 472 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _g_free0 (metadata); -#line 472 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _g_free0 (keywords_string); -#line 472 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - keywords = (_vala_array_free (keywords, keywords_length1, (GDestroyNotify) g_free), NULL); -#line 472 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _g_free0 (summary); -#line 472 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - __vala_SoupMultipart_free0 (message_parts); -#line 472 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 472 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - g_clear_error (&_inner_error_); -#line 472 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - return; -#line 4271 "PicasaPublishing.c" - } - } -#line 481 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp86_ = self->priv->mapped_file; -#line 481 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp87_ = g_mapped_file_get_contents (_tmp86_); -#line 481 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - photo_data = (guint8*) _tmp87_; -#line 481 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - photo_data_length1 = sizeof (gchar) / sizeof (guint8); -#line 481 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _photo_data_size_ = photo_data_length1; -#line 482 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp88_ = self->priv->mapped_file; -#line 482 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - photo_data_length1 = (gint) g_mapped_file_get_length (_tmp88_); -#line 482 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp89_ = photo_data_length1; -#line 487 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp90_ = soup_buffer_new (SOUP_MEMORY_TEMPORARY, photo_data, photo_data_length1); -#line 487 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - bindable_data = _tmp90_; -#line 489 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp91_ = message_parts; -#line 489 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp92_ = self->priv->publishable; -#line 489 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp93_ = spit_publishing_publishable_get_serialized_file (_tmp92_); -#line 489 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp94_ = _tmp93_; -#line 489 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp95_ = g_file_get_path (_tmp94_); -#line 489 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp96_ = _tmp95_; -#line 489 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp97_ = self->priv->mime_type; -#line 489 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - soup_multipart_append_form_file (_tmp91_, "", _tmp96_, _tmp97_, bindable_data); -#line 489 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _g_free0 (_tmp96_); -#line 489 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _g_object_unref0 (_tmp94_); -#line 493 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp98_ = publishing_rest_support_transaction_get_endpoint_url (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction)); -#line 493 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp99_ = _tmp98_; -#line 493 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp100_ = message_parts; -#line 493 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp101_ = soup_form_request_new_from_multipart (_tmp99_, _tmp100_); -#line 493 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp102_ = _tmp101_; -#line 493 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _g_free0 (_tmp99_); -#line 493 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - outbound_message = _tmp102_; -#line 495 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp103_ = outbound_message->request_headers; -#line 495 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp104_ = self->priv->session; -#line 495 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp105_ = publishing_rest_support_google_session_get_access_token (_tmp104_); -#line 495 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp106_ = _tmp105_; -#line 495 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp107_ = g_strconcat ("Bearer ", _tmp106_, NULL); -#line 495 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp108_ = _tmp107_; -#line 495 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - soup_message_headers_append (_tmp103_, "Authorization", _tmp108_); -#line 495 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _g_free0 (_tmp108_); -#line 495 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _g_free0 (_tmp106_); -#line 497 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - publishing_rest_support_transaction_set_message (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), outbound_message); -#line 500 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - publishing_rest_support_transaction_set_is_executed (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), TRUE); -#line 501 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - publishing_rest_support_transaction_send (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), &_inner_error_); -#line 501 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 501 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - if (_inner_error_->domain == SPIT_PUBLISHING_PUBLISHING_ERROR) { -#line 501 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - g_propagate_error (error, _inner_error_); -#line 501 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _g_object_unref0 (outbound_message); -#line 501 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - __vala_SoupBuffer_free0 (bindable_data); -#line 501 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - __vala_SoupBuffer_free0 (metadata_buffer); -#line 501 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _g_free0 (metadata); -#line 501 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _g_free0 (keywords_string); -#line 501 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - keywords = (_vala_array_free (keywords, keywords_length1, (GDestroyNotify) g_free), NULL); -#line 501 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _g_free0 (summary); -#line 501 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - __vala_SoupMultipart_free0 (message_parts); -#line 501 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - return; -#line 4376 "PicasaPublishing.c" - } else { -#line 501 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _g_object_unref0 (outbound_message); -#line 501 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - __vala_SoupBuffer_free0 (bindable_data); -#line 501 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - __vala_SoupBuffer_free0 (metadata_buffer); -#line 501 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _g_free0 (metadata); -#line 501 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _g_free0 (keywords_string); -#line 501 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - keywords = (_vala_array_free (keywords, keywords_length1, (GDestroyNotify) g_free), NULL); -#line 501 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _g_free0 (summary); -#line 501 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - __vala_SoupMultipart_free0 (message_parts); -#line 501 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 501 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - g_clear_error (&_inner_error_); -#line 501 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - return; -#line 4400 "PicasaPublishing.c" - } - } -#line 434 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _g_object_unref0 (outbound_message); -#line 434 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - __vala_SoupBuffer_free0 (bindable_data); -#line 434 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - __vala_SoupBuffer_free0 (metadata_buffer); -#line 434 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _g_free0 (metadata); -#line 434 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _g_free0 (keywords_string); -#line 434 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - keywords = (_vala_array_free (keywords, keywords_length1, (GDestroyNotify) g_free), NULL); -#line 434 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _g_free0 (summary); -#line 434 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - __vala_SoupMultipart_free0 (message_parts); -#line 4419 "PicasaPublishing.c" -} - - -static void -publishing_picasa_upload_transaction_class_init (PublishingPicasaUploadTransactionClass * klass) -{ -#line 405 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - publishing_picasa_upload_transaction_parent_class = g_type_class_peek_parent (klass); -#line 405 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - ((PublishingRESTSupportTransactionClass *) klass)->finalize = publishing_picasa_upload_transaction_finalize; -#line 405 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - g_type_class_add_private (klass, sizeof (PublishingPicasaUploadTransactionPrivate)); -#line 405 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - ((PublishingRESTSupportTransactionClass *) klass)->execute = (void (*) (PublishingRESTSupportTransaction *, GError**)) publishing_picasa_upload_transaction_real_execute; -#line 4434 "PicasaPublishing.c" -} - - -static void -publishing_picasa_upload_transaction_instance_init (PublishingPicasaUploadTransaction * self) -{ -#line 405 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - self->priv = PUBLISHING_PICASA_UPLOAD_TRANSACTION_GET_PRIVATE (self); -#line 4443 "PicasaPublishing.c" -} - - -static void -publishing_picasa_upload_transaction_finalize (PublishingRESTSupportTransaction * obj) -{ - PublishingPicasaUploadTransaction * self; -#line 405 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, PUBLISHING_PICASA_TYPE_UPLOAD_TRANSACTION, PublishingPicasaUploadTransaction); -#line 407 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _publishing_picasa_publishing_parameters_unref0 (self->priv->parameters); -#line 409 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _publishing_rest_support_session_unref0 (self->priv->session); -#line 410 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _g_free0 (self->priv->mime_type); -#line 411 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _g_object_unref0 (self->priv->publishable); -#line 412 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _g_mapped_file_unref0 (self->priv->mapped_file); -#line 405 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - PUBLISHING_REST_SUPPORT_TRANSACTION_CLASS (publishing_picasa_upload_transaction_parent_class)->finalize (obj); -#line 4465 "PicasaPublishing.c" -} - - -GType -publishing_picasa_upload_transaction_get_type (void) -{ - static volatile gsize publishing_picasa_upload_transaction_type_id__volatile = 0; - if (g_once_init_enter (&publishing_picasa_upload_transaction_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (PublishingPicasaUploadTransactionClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) publishing_picasa_upload_transaction_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PublishingPicasaUploadTransaction), 0, (GInstanceInitFunc) publishing_picasa_upload_transaction_instance_init, NULL }; - GType publishing_picasa_upload_transaction_type_id; - publishing_picasa_upload_transaction_type_id = g_type_register_static (PUBLISHING_REST_SUPPORT_GOOGLE_PUBLISHER_TYPE_AUTHENTICATED_TRANSACTION, "PublishingPicasaUploadTransaction", &g_define_type_info, 0); - g_once_init_leave (&publishing_picasa_upload_transaction_type_id__volatile, publishing_picasa_upload_transaction_type_id); - } - return publishing_picasa_upload_transaction_type_id__volatile; -} - - -static gpointer -_publishing_picasa_publishing_options_pane_size_description_ref0 (gpointer self) -{ -#line 572 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - return self ? publishing_picasa_publishing_options_pane_size_description_ref (self) : NULL; -#line 4488 "PicasaPublishing.c" -} - - -static void -_publishing_picasa_publishing_options_pane_on_logout_clicked_gtk_button_clicked (GtkButton* _sender, - gpointer self) -{ -#line 581 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - publishing_picasa_publishing_options_pane_on_logout_clicked ((PublishingPicasaPublishingOptionsPane*) self); -#line 4498 "PicasaPublishing.c" -} - - -static void -_publishing_picasa_publishing_options_pane_on_publish_clicked_gtk_button_clicked (GtkButton* _sender, - gpointer self) -{ -#line 582 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - publishing_picasa_publishing_options_pane_on_publish_clicked ((PublishingPicasaPublishingOptionsPane*) self); -#line 4508 "PicasaPublishing.c" -} - - -PublishingPicasaPublishingOptionsPane* -publishing_picasa_publishing_options_pane_construct (GType object_type, - GtkBuilder* builder, - PublishingPicasaPublishingParameters* parameters, - gboolean can_logout) -{ - PublishingPicasaPublishingOptionsPane * self = NULL; - gint _tmp0_; - PublishingPicasaPublishingOptionsPaneSizeDescription** _tmp1_; - GtkBuilder* _tmp2_; - GSList* _tmp3_; - GSList* _tmp4_; - PublishingPicasaPublishingParameters* _tmp5_; - GObject* _tmp6_; - GtkBox* _tmp7_; - GObject* _tmp8_; - GtkLabel* _tmp9_; - GObject* _tmp10_; - GtkLabel* _tmp11_; - GObject* _tmp12_; - GtkComboBoxText* _tmp13_; - GObject* _tmp14_; - GtkCheckButton* _tmp15_; - GObject* _tmp16_; - GtkComboBoxText* _tmp17_; - GtkBuilder* _tmp18_; - GObject* _tmp19_; - GtkCheckButton* _tmp20_; - GObject* _tmp21_; - GtkButton* _tmp22_; - GObject* _tmp23_; - GtkButton* _tmp24_; - GtkLabel* _tmp29_; - gchar* _tmp30_; - gchar* _tmp31_; - gchar* _tmp32_; - gchar* _tmp33_; - GtkCheckButton* _tmp34_; - GtkButton* _tmp47_; - GtkButton* _tmp48_; -#line 535 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - g_return_val_if_fail (GTK_IS_BUILDER (builder), NULL); -#line 535 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - g_return_val_if_fail (PUBLISHING_PICASA_IS_PUBLISHING_PARAMETERS (parameters), NULL); -#line 535 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - self = (PublishingPicasaPublishingOptionsPane*) g_object_new (object_type, NULL); -#line 536 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp1_ = publishing_picasa_publishing_options_pane_create_size_descriptions (self, &_tmp0_); -#line 536 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - self->priv->size_descriptions = (_vala_array_free (self->priv->size_descriptions, self->priv->size_descriptions_length1, (GDestroyNotify) publishing_picasa_publishing_options_pane_size_description_unref), NULL); -#line 536 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - self->priv->size_descriptions = _tmp1_; -#line 536 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - self->priv->size_descriptions_length1 = _tmp0_; -#line 536 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - self->priv->_size_descriptions_size_ = self->priv->size_descriptions_length1; -#line 538 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp2_ = _g_object_ref0 (builder); -#line 538 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _g_object_unref0 (self->priv->builder); -#line 538 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - self->priv->builder = _tmp2_; -#line 539 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _vala_assert (builder != NULL, "builder != null"); -#line 540 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp3_ = gtk_builder_get_objects (builder); -#line 540 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp4_ = _tmp3_; -#line 540 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _vala_assert (g_slist_length (_tmp4_) > ((guint) 0), "builder.get_objects().length() > 0"); -#line 540 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _g_slist_free0 (_tmp4_); -#line 542 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp5_ = _publishing_picasa_publishing_parameters_ref0 (parameters); -#line 542 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _publishing_picasa_publishing_parameters_unref0 (self->priv->parameters); -#line 542 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - self->priv->parameters = _tmp5_; -#line 545 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp6_ = gtk_builder_get_object (builder, "picasa_pane_widget"); -#line 545 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp7_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, gtk_box_get_type (), GtkBox)); -#line 545 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _g_object_unref0 (self->priv->pane_widget); -#line 545 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - self->priv->pane_widget = _tmp7_; -#line 546 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp8_ = gtk_builder_get_object (builder, "login_identity_label"); -#line 546 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp9_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, gtk_label_get_type (), GtkLabel)); -#line 546 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _g_object_unref0 (self->priv->login_identity_label); -#line 546 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - self->priv->login_identity_label = _tmp9_; -#line 547 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp10_ = gtk_builder_get_object (builder, "publish_to_label"); -#line 547 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp11_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp10_, gtk_label_get_type (), GtkLabel)); -#line 547 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _g_object_unref0 (self->priv->publish_to_label); -#line 547 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - self->priv->publish_to_label = _tmp11_; -#line 548 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp12_ = gtk_builder_get_object (builder, "existing_albums_combo"); -#line 548 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp13_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp12_, gtk_combo_box_text_get_type (), GtkComboBoxText)); -#line 548 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _g_object_unref0 (self->priv->existing_albums_combo); -#line 548 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - self->priv->existing_albums_combo = _tmp13_; -#line 549 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp14_ = gtk_builder_get_object (builder, "public_check"); -#line 549 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp15_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp14_, gtk_check_button_get_type (), GtkCheckButton)); -#line 549 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _g_object_unref0 (self->priv->public_check); -#line 549 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - self->priv->public_check = _tmp15_; -#line 550 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp16_ = gtk_builder_get_object (builder, "size_combo"); -#line 550 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp17_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp16_, gtk_combo_box_text_get_type (), GtkComboBoxText)); -#line 550 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _g_object_unref0 (self->priv->size_combo); -#line 550 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - self->priv->size_combo = _tmp17_; -#line 551 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp18_ = self->priv->builder; -#line 551 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp19_ = gtk_builder_get_object (_tmp18_, "strip_metadata_check"); -#line 551 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp20_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp19_, gtk_check_button_get_type (), GtkCheckButton)); -#line 551 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _g_object_unref0 (self->priv->strip_metadata_check); -#line 551 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - self->priv->strip_metadata_check = _tmp20_; -#line 552 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp21_ = gtk_builder_get_object (builder, "publish_button"); -#line 552 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp22_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp21_, gtk_button_get_type (), GtkButton)); -#line 552 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _g_object_unref0 (self->priv->publish_button); -#line 552 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - self->priv->publish_button = _tmp22_; -#line 553 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp23_ = gtk_builder_get_object (builder, "logout_button"); -#line 553 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp24_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp23_, gtk_button_get_type (), GtkButton)); -#line 553 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _g_object_unref0 (self->priv->logout_button); -#line 553 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - self->priv->logout_button = _tmp24_; -#line 555 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - if (!can_logout) { -#line 4666 "PicasaPublishing.c" - GtkButton* _tmp25_; - GtkContainer* _tmp26_; - GtkContainer* _tmp27_; - GtkButton* _tmp28_; -#line 556 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp25_ = self->priv->logout_button; -#line 556 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp26_ = gtk_widget_get_parent (G_TYPE_CHECK_INSTANCE_CAST (_tmp25_, gtk_widget_get_type (), GtkWidget)); -#line 556 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp27_ = _tmp26_; -#line 556 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp28_ = self->priv->logout_button; -#line 556 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - gtk_container_remove (_tmp27_, G_TYPE_CHECK_INSTANCE_CAST (_tmp28_, gtk_widget_get_type (), GtkWidget)); -#line 4681 "PicasaPublishing.c" - } -#line 560 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp29_ = self->priv->login_identity_label; -#line 560 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp30_ = publishing_picasa_publishing_parameters_get_user_name (parameters); -#line 560 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp31_ = _tmp30_; -#line 560 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp32_ = g_strdup_printf (_ ("You are logged into Picasa Web Albums as %s."), _tmp31_); -#line 560 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp33_ = _tmp32_; -#line 560 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - gtk_label_set_label (_tmp29_, _tmp33_); -#line 560 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _g_free0 (_tmp33_); -#line 560 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _g_free0 (_tmp31_); -#line 562 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp34_ = self->priv->strip_metadata_check; -#line 562 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - gtk_toggle_button_set_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp34_, gtk_toggle_button_get_type (), GtkToggleButton), publishing_picasa_publishing_parameters_get_strip_metadata (parameters)); -#line 565 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - if ((publishing_picasa_publishing_parameters_get_media_type (parameters) & SPIT_PUBLISHING_PUBLISHER_MEDIA_TYPE_PHOTO) == 0) { -#line 4705 "PicasaPublishing.c" - GtkLabel* _tmp35_; - GtkComboBoxText* _tmp36_; - GtkComboBoxText* _tmp37_; -#line 566 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp35_ = self->priv->publish_to_label; -#line 566 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - gtk_label_set_label (_tmp35_, _ ("Videos will appear in:")); -#line 567 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp36_ = self->priv->size_combo; -#line 567 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - gtk_widget_set_visible (G_TYPE_CHECK_INSTANCE_CAST (_tmp36_, gtk_widget_get_type (), GtkWidget), FALSE); -#line 568 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp37_ = self->priv->size_combo; -#line 568 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - gtk_widget_set_sensitive (G_TYPE_CHECK_INSTANCE_CAST (_tmp37_, gtk_widget_get_type (), GtkWidget), FALSE); -#line 4721 "PicasaPublishing.c" - } else { - GtkLabel* _tmp38_; - PublishingPicasaPublishingOptionsPaneSizeDescription** _tmp39_; - gint _tmp39__length1; - GtkComboBoxText* _tmp44_; - GtkComboBoxText* _tmp45_; - GtkComboBoxText* _tmp46_; -#line 571 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp38_ = self->priv->publish_to_label; -#line 571 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - gtk_label_set_label (_tmp38_, _ ("Photos will appear in:")); -#line 572 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp39_ = self->priv->size_descriptions; -#line 572 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp39__length1 = self->priv->size_descriptions_length1; -#line 4737 "PicasaPublishing.c" - { - PublishingPicasaPublishingOptionsPaneSizeDescription** desc_collection = NULL; - gint desc_collection_length1 = 0; - gint _desc_collection_size_ = 0; - gint desc_it = 0; -#line 572 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - desc_collection = _tmp39_; -#line 572 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - desc_collection_length1 = _tmp39__length1; -#line 572 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - for (desc_it = 0; desc_it < _tmp39__length1; desc_it = desc_it + 1) { -#line 4749 "PicasaPublishing.c" - PublishingPicasaPublishingOptionsPaneSizeDescription* _tmp40_; - PublishingPicasaPublishingOptionsPaneSizeDescription* desc = NULL; -#line 572 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp40_ = _publishing_picasa_publishing_options_pane_size_description_ref0 (desc_collection[desc_it]); -#line 572 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - desc = _tmp40_; -#line 4756 "PicasaPublishing.c" - { - GtkComboBoxText* _tmp41_; - PublishingPicasaPublishingOptionsPaneSizeDescription* _tmp42_; - const gchar* _tmp43_; -#line 573 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp41_ = self->priv->size_combo; -#line 573 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp42_ = desc; -#line 573 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp43_ = _tmp42_->name; -#line 573 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - gtk_combo_box_text_append_text (_tmp41_, _tmp43_); -#line 572 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _publishing_picasa_publishing_options_pane_size_description_unref0 (desc); -#line 4771 "PicasaPublishing.c" - } - } - } -#line 575 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp44_ = self->priv->size_combo; -#line 575 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - gtk_widget_set_visible (G_TYPE_CHECK_INSTANCE_CAST (_tmp44_, gtk_widget_get_type (), GtkWidget), TRUE); -#line 576 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp45_ = self->priv->size_combo; -#line 576 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - gtk_widget_set_sensitive (G_TYPE_CHECK_INSTANCE_CAST (_tmp45_, gtk_widget_get_type (), GtkWidget), TRUE); -#line 577 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp46_ = self->priv->size_combo; -#line 577 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - gtk_combo_box_set_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp46_, gtk_combo_box_get_type (), GtkComboBox), publishing_picasa_publishing_parameters_get_major_axis_size_selection_id (parameters)); -#line 4787 "PicasaPublishing.c" - } -#line 581 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp47_ = self->priv->logout_button; -#line 581 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - g_signal_connect_object (_tmp47_, "clicked", (GCallback) _publishing_picasa_publishing_options_pane_on_logout_clicked_gtk_button_clicked, self, 0); -#line 582 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp48_ = self->priv->publish_button; -#line 582 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - g_signal_connect_object (_tmp48_, "clicked", (GCallback) _publishing_picasa_publishing_options_pane_on_publish_clicked_gtk_button_clicked, self, 0); -#line 535 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - return self; -#line 4799 "PicasaPublishing.c" -} - - -PublishingPicasaPublishingOptionsPane* -publishing_picasa_publishing_options_pane_new (GtkBuilder* builder, - PublishingPicasaPublishingParameters* parameters, - gboolean can_logout) -{ -#line 535 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - return publishing_picasa_publishing_options_pane_construct (PUBLISHING_PICASA_TYPE_PUBLISHING_OPTIONS_PANE, builder, parameters, can_logout); -#line 4810 "PicasaPublishing.c" -} - - -static void -publishing_picasa_publishing_options_pane_on_publish_clicked (PublishingPicasaPublishingOptionsPane* self) -{ - gint _tmp0_ = 0; - GtkComboBoxText* _tmp1_; - gint size_combo_last_active = 0; - PublishingPicasaPublishingParameters* _tmp3_; - PublishingPicasaPublishingParameters* _tmp4_; - PublishingPicasaPublishingOptionsPaneSizeDescription** _tmp5_; - gint _tmp5__length1; - PublishingPicasaPublishingOptionsPaneSizeDescription* _tmp6_; - gint _tmp7_; - PublishingPicasaPublishingParameters* _tmp8_; - GtkCheckButton* _tmp9_; - PublishingPicasaAlbum** albums = NULL; - PublishingPicasaPublishingParameters* _tmp10_; - gint _tmp11_; - PublishingPicasaAlbum** _tmp12_; - gint albums_length1; - gint _albums_size_; - PublishingPicasaPublishingParameters* _tmp13_; - GtkComboBoxText* _tmp14_; - PublishingPicasaAlbum* _tmp15_; - const gchar* _tmp16_; - PublishingPicasaPublishingParameters* _tmp17_; - GtkComboBoxText* _tmp18_; - PublishingPicasaAlbum* _tmp19_; - const gchar* _tmp20_; -#line 585 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - g_return_if_fail (PUBLISHING_PICASA_IS_PUBLISHING_OPTIONS_PANE (self)); -#line 589 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp1_ = self->priv->size_combo; -#line 589 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - if (gtk_combo_box_get_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, gtk_combo_box_get_type (), GtkComboBox)) >= 0) { -#line 4848 "PicasaPublishing.c" - GtkComboBoxText* _tmp2_; -#line 589 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp2_ = self->priv->size_combo; -#line 589 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp0_ = gtk_combo_box_get_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, gtk_combo_box_get_type (), GtkComboBox)); -#line 4854 "PicasaPublishing.c" - } else { -#line 589 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp0_ = 0; -#line 4858 "PicasaPublishing.c" - } -#line 589 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - size_combo_last_active = _tmp0_; -#line 591 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp3_ = self->priv->parameters; -#line 591 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - publishing_picasa_publishing_parameters_set_major_axis_size_selection_id (_tmp3_, size_combo_last_active); -#line 592 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp4_ = self->priv->parameters; -#line 592 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp5_ = self->priv->size_descriptions; -#line 592 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp5__length1 = self->priv->size_descriptions_length1; -#line 592 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp6_ = _tmp5_[size_combo_last_active]; -#line 592 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp7_ = _tmp6_->major_axis_pixels; -#line 592 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - publishing_picasa_publishing_parameters_set_major_axis_size_pixels (_tmp4_, _tmp7_); -#line 594 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp8_ = self->priv->parameters; -#line 594 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp9_ = self->priv->strip_metadata_check; -#line 594 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - publishing_picasa_publishing_parameters_set_strip_metadata (_tmp8_, gtk_toggle_button_get_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, gtk_toggle_button_get_type (), GtkToggleButton))); -#line 596 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp10_ = self->priv->parameters; -#line 596 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp12_ = publishing_picasa_publishing_parameters_get_albums (_tmp10_, &_tmp11_); -#line 596 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - albums = _tmp12_; -#line 596 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - albums_length1 = _tmp11_; -#line 596 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _albums_size_ = albums_length1; -#line 598 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp13_ = self->priv->parameters; -#line 598 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp14_ = self->priv->existing_albums_combo; -#line 598 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp15_ = albums[gtk_combo_box_get_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp14_, gtk_combo_box_get_type (), GtkComboBox))]; -#line 598 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp16_ = _tmp15_->name; -#line 598 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - publishing_picasa_publishing_parameters_set_target_album_name (_tmp13_, _tmp16_); -#line 599 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp17_ = self->priv->parameters; -#line 599 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp18_ = self->priv->existing_albums_combo; -#line 599 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp19_ = albums[gtk_combo_box_get_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp18_, gtk_combo_box_get_type (), GtkComboBox))]; -#line 599 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp20_ = _tmp19_->url; -#line 599 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - publishing_picasa_publishing_parameters_set_target_album_entry_url (_tmp17_, _tmp20_); -#line 600 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - g_signal_emit (self, publishing_picasa_publishing_options_pane_signals[PUBLISHING_PICASA_PUBLISHING_OPTIONS_PANE_PUBLISH_SIGNAL], 0); -#line 585 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - albums = (_vala_array_free (albums, albums_length1, (GDestroyNotify) publishing_picasa_album_unref), NULL); -#line 4918 "PicasaPublishing.c" -} - - -static void -publishing_picasa_publishing_options_pane_on_logout_clicked (PublishingPicasaPublishingOptionsPane* self) -{ -#line 603 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - g_return_if_fail (PUBLISHING_PICASA_IS_PUBLISHING_OPTIONS_PANE (self)); -#line 604 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - g_signal_emit (self, publishing_picasa_publishing_options_pane_signals[PUBLISHING_PICASA_PUBLISHING_OPTIONS_PANE_LOGOUT_SIGNAL], 0); -#line 4929 "PicasaPublishing.c" -} - - -static void -_vala_array_add15 (PublishingPicasaPublishingOptionsPaneSizeDescription** * array, - int* length, - int* size, - PublishingPicasaPublishingOptionsPaneSizeDescription* value) -{ -#line 610 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - if ((*length) == (*size)) { -#line 610 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - *size = (*size) ? (2 * (*size)) : 4; -#line 610 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - *array = g_renew (PublishingPicasaPublishingOptionsPaneSizeDescription*, *array, (*size) + 1); -#line 4945 "PicasaPublishing.c" - } -#line 610 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - (*array)[(*length)++] = value; -#line 610 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - (*array)[*length] = NULL; -#line 4951 "PicasaPublishing.c" -} - - -static void -_vala_array_add16 (PublishingPicasaPublishingOptionsPaneSizeDescription** * array, - int* length, - int* size, - PublishingPicasaPublishingOptionsPaneSizeDescription* value) -{ -#line 611 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - if ((*length) == (*size)) { -#line 611 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - *size = (*size) ? (2 * (*size)) : 4; -#line 611 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - *array = g_renew (PublishingPicasaPublishingOptionsPaneSizeDescription*, *array, (*size) + 1); -#line 4967 "PicasaPublishing.c" - } -#line 611 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - (*array)[(*length)++] = value; -#line 611 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - (*array)[*length] = NULL; -#line 4973 "PicasaPublishing.c" -} - - -static void -_vala_array_add17 (PublishingPicasaPublishingOptionsPaneSizeDescription** * array, - int* length, - int* size, - PublishingPicasaPublishingOptionsPaneSizeDescription* value) -{ -#line 612 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - if ((*length) == (*size)) { -#line 612 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - *size = (*size) ? (2 * (*size)) : 4; -#line 612 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - *array = g_renew (PublishingPicasaPublishingOptionsPaneSizeDescription*, *array, (*size) + 1); -#line 4989 "PicasaPublishing.c" - } -#line 612 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - (*array)[(*length)++] = value; -#line 612 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - (*array)[*length] = NULL; -#line 4995 "PicasaPublishing.c" -} - - -static void -_vala_array_add18 (PublishingPicasaPublishingOptionsPaneSizeDescription** * array, - int* length, - int* size, - PublishingPicasaPublishingOptionsPaneSizeDescription* value) -{ -#line 613 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - if ((*length) == (*size)) { -#line 613 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - *size = (*size) ? (2 * (*size)) : 4; -#line 613 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - *array = g_renew (PublishingPicasaPublishingOptionsPaneSizeDescription*, *array, (*size) + 1); -#line 5011 "PicasaPublishing.c" - } -#line 613 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - (*array)[(*length)++] = value; -#line 613 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - (*array)[*length] = NULL; -#line 5017 "PicasaPublishing.c" -} - - -static void -_vala_array_add19 (PublishingPicasaPublishingOptionsPaneSizeDescription** * array, - int* length, - int* size, - PublishingPicasaPublishingOptionsPaneSizeDescription* value) -{ -#line 614 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - if ((*length) == (*size)) { -#line 614 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - *size = (*size) ? (2 * (*size)) : 4; -#line 614 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - *array = g_renew (PublishingPicasaPublishingOptionsPaneSizeDescription*, *array, (*size) + 1); -#line 5033 "PicasaPublishing.c" - } -#line 614 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - (*array)[(*length)++] = value; -#line 614 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - (*array)[*length] = NULL; -#line 5039 "PicasaPublishing.c" -} - - -static PublishingPicasaPublishingOptionsPaneSizeDescription** -publishing_picasa_publishing_options_pane_create_size_descriptions (PublishingPicasaPublishingOptionsPane* self, - int* result_length1) -{ - PublishingPicasaPublishingOptionsPaneSizeDescription** result = NULL; - PublishingPicasaPublishingOptionsPaneSizeDescription** _result_ = NULL; - PublishingPicasaPublishingOptionsPaneSizeDescription** _tmp0_; - gint _result__length1; - gint __result__size_; - PublishingPicasaPublishingOptionsPaneSizeDescription** _tmp1_; - gint _tmp1__length1; - PublishingPicasaPublishingOptionsPaneSizeDescription* _tmp2_; - PublishingPicasaPublishingOptionsPaneSizeDescription** _tmp3_; - gint _tmp3__length1; - PublishingPicasaPublishingOptionsPaneSizeDescription* _tmp4_; - PublishingPicasaPublishingOptionsPaneSizeDescription** _tmp5_; - gint _tmp5__length1; - PublishingPicasaPublishingOptionsPaneSizeDescription* _tmp6_; - PublishingPicasaPublishingOptionsPaneSizeDescription** _tmp7_; - gint _tmp7__length1; - PublishingPicasaPublishingOptionsPaneSizeDescription* _tmp8_; - PublishingPicasaPublishingOptionsPaneSizeDescription** _tmp9_; - gint _tmp9__length1; - PublishingPicasaPublishingOptionsPaneSizeDescription* _tmp10_; - PublishingPicasaPublishingOptionsPaneSizeDescription** _tmp11_; - gint _tmp11__length1; -#line 607 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - g_return_val_if_fail (PUBLISHING_PICASA_IS_PUBLISHING_OPTIONS_PANE (self), NULL); -#line 608 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp0_ = g_new0 (PublishingPicasaPublishingOptionsPaneSizeDescription*, 0 + 1); -#line 608 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _result_ = _tmp0_; -#line 608 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _result__length1 = 0; -#line 608 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - __result__size_ = _result__length1; -#line 610 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp1_ = _result_; -#line 610 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp1__length1 = _result__length1; -#line 610 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp2_ = publishing_picasa_publishing_options_pane_size_description_new (_ ("Small (640 × 480 pixels)"), 640); -#line 610 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _vala_array_add15 (&_result_, &_result__length1, &__result__size_, _tmp2_); -#line 611 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp3_ = _result_; -#line 611 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp3__length1 = _result__length1; -#line 611 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp4_ = publishing_picasa_publishing_options_pane_size_description_new (_ ("Medium (1024 × 768 pixels)"), 1024); -#line 611 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _vala_array_add16 (&_result_, &_result__length1, &__result__size_, _tmp4_); -#line 612 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp5_ = _result_; -#line 612 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp5__length1 = _result__length1; -#line 612 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp6_ = publishing_picasa_publishing_options_pane_size_description_new (_ ("Recommended (1600 × 1200 pixels)"), 1600); -#line 612 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _vala_array_add17 (&_result_, &_result__length1, &__result__size_, _tmp6_); -#line 613 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp7_ = _result_; -#line 613 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp7__length1 = _result__length1; -#line 613 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp8_ = publishing_picasa_publishing_options_pane_size_description_new (_ ("Google+ (2048 × 1536 pixels)"), 2048); -#line 613 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _vala_array_add18 (&_result_, &_result__length1, &__result__size_, _tmp8_); -#line 614 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp9_ = _result_; -#line 614 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp9__length1 = _result__length1; -#line 614 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp10_ = publishing_picasa_publishing_options_pane_size_description_new (_ ("Original Size"), PUBLISHING_PICASA_PUBLISHING_PARAMETERS_ORIGINAL_SIZE); -#line 614 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _vala_array_add19 (&_result_, &_result__length1, &__result__size_, _tmp10_); -#line 616 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp11_ = _result_; -#line 616 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp11__length1 = _result__length1; -#line 616 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - if (result_length1) { -#line 616 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - *result_length1 = _tmp11__length1; -#line 5127 "PicasaPublishing.c" - } -#line 616 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - result = _tmp11_; -#line 616 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - return result; -#line 5133 "PicasaPublishing.c" -} - - -void -publishing_picasa_publishing_options_pane_installed (PublishingPicasaPublishingOptionsPane* self) -{ - gint default_album_id = 0; - gchar* last_album = NULL; - PublishingPicasaPublishingParameters* _tmp0_; - gchar* _tmp1_; - PublishingPicasaAlbum** albums = NULL; - PublishingPicasaPublishingParameters* _tmp2_; - gint _tmp3_; - PublishingPicasaAlbum** _tmp4_; - gint albums_length1; - gint _albums_size_; - gint _tmp32_; -#line 619 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - g_return_if_fail (PUBLISHING_PICASA_IS_PUBLISHING_OPTIONS_PANE (self)); -#line 620 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - default_album_id = -1; -#line 621 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp0_ = self->priv->parameters; -#line 621 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp1_ = publishing_picasa_publishing_parameters_get_target_album_name (_tmp0_); -#line 621 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - last_album = _tmp1_; -#line 623 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp2_ = self->priv->parameters; -#line 623 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp4_ = publishing_picasa_publishing_parameters_get_albums (_tmp2_, &_tmp3_); -#line 623 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - albums = _tmp4_; -#line 623 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - albums_length1 = _tmp3_; -#line 623 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _albums_size_ = albums_length1; -#line 5171 "PicasaPublishing.c" - { - gint i = 0; -#line 625 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - i = 0; -#line 5176 "PicasaPublishing.c" - { - gboolean _tmp5_ = FALSE; -#line 625 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp5_ = TRUE; -#line 625 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - while (TRUE) { -#line 5183 "PicasaPublishing.c" - gint _tmp7_; - PublishingPicasaAlbum** _tmp8_; - gint _tmp8__length1; - GtkComboBoxText* _tmp9_; - PublishingPicasaAlbum** _tmp10_; - gint _tmp10__length1; - gint _tmp11_; - PublishingPicasaAlbum* _tmp12_; - const gchar* _tmp13_; - gboolean _tmp14_ = FALSE; - PublishingPicasaAlbum** _tmp15_; - gint _tmp15__length1; - gint _tmp16_; - PublishingPicasaAlbum* _tmp17_; - const gchar* _tmp18_; - const gchar* _tmp19_; -#line 625 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - if (!_tmp5_) { -#line 5202 "PicasaPublishing.c" - gint _tmp6_; -#line 625 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp6_ = i; -#line 625 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - i = _tmp6_ + 1; -#line 5208 "PicasaPublishing.c" - } -#line 625 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp5_ = FALSE; -#line 625 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp7_ = i; -#line 625 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp8_ = albums; -#line 625 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp8__length1 = albums_length1; -#line 625 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - if (!(_tmp7_ < _tmp8__length1)) { -#line 625 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - break; -#line 5222 "PicasaPublishing.c" - } -#line 626 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp9_ = self->priv->existing_albums_combo; -#line 626 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp10_ = albums; -#line 626 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp10__length1 = albums_length1; -#line 626 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp11_ = i; -#line 626 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp12_ = _tmp10_[_tmp11_]; -#line 626 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp13_ = _tmp12_->name; -#line 626 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - gtk_combo_box_text_append_text (_tmp9_, _tmp13_); -#line 629 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp15_ = albums; -#line 629 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp15__length1 = albums_length1; -#line 629 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp16_ = i; -#line 629 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp17_ = _tmp15_[_tmp16_]; -#line 629 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp18_ = _tmp17_->name; -#line 629 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp19_ = last_album; -#line 629 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - if (g_strcmp0 (_tmp18_, _tmp19_) == 0) { -#line 629 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp14_ = TRUE; -#line 5254 "PicasaPublishing.c" - } else { - gboolean _tmp20_ = FALSE; - gboolean _tmp21_ = FALSE; - PublishingPicasaAlbum** _tmp22_; - gint _tmp22__length1; - gint _tmp23_; - PublishingPicasaAlbum* _tmp24_; - const gchar* _tmp25_; -#line 630 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp22_ = albums; -#line 630 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp22__length1 = albums_length1; -#line 630 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp23_ = i; -#line 630 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp24_ = _tmp22_[_tmp23_]; -#line 630 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp25_ = _tmp24_->name; -#line 630 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - if (g_strcmp0 (_tmp25_, PUBLISHING_PICASA_DEFAULT_ALBUM_NAME) == 0) { -#line 630 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp21_ = TRUE; -#line 5277 "PicasaPublishing.c" - } else { - PublishingPicasaAlbum** _tmp26_; - gint _tmp26__length1; - gint _tmp27_; - PublishingPicasaAlbum* _tmp28_; - const gchar* _tmp29_; -#line 630 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp26_ = albums; -#line 630 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp26__length1 = albums_length1; -#line 630 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp27_ = i; -#line 630 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp28_ = _tmp26_[_tmp27_]; -#line 630 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp29_ = _tmp28_->name; -#line 630 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp21_ = g_strcmp0 (_tmp29_, _ ("Default album")) == 0; -#line 5296 "PicasaPublishing.c" - } -#line 630 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - if (_tmp21_) { -#line 5300 "PicasaPublishing.c" - gint _tmp30_; -#line 630 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp30_ = default_album_id; -#line 630 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp20_ = _tmp30_ == -1; -#line 5306 "PicasaPublishing.c" - } else { -#line 630 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp20_ = FALSE; -#line 5310 "PicasaPublishing.c" - } -#line 630 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp14_ = _tmp20_; -#line 5314 "PicasaPublishing.c" - } -#line 629 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - if (_tmp14_) { -#line 5318 "PicasaPublishing.c" - gint _tmp31_; -#line 631 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp31_ = i; -#line 631 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - default_album_id = _tmp31_; -#line 5324 "PicasaPublishing.c" - } - } - } - } -#line 634 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp32_ = default_album_id; -#line 634 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - if (_tmp32_ >= 0) { -#line 5333 "PicasaPublishing.c" - GtkComboBoxText* _tmp33_; - gint _tmp34_; -#line 635 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp33_ = self->priv->existing_albums_combo; -#line 635 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp34_ = default_album_id; -#line 635 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - gtk_combo_box_set_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp33_, gtk_combo_box_get_type (), GtkComboBox), _tmp34_); -#line 5342 "PicasaPublishing.c" - } -#line 619 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - albums = (_vala_array_free (albums, albums_length1, (GDestroyNotify) publishing_picasa_album_unref), NULL); -#line 619 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _g_free0 (last_album); -#line 5348 "PicasaPublishing.c" -} - - -static GtkWidget* -publishing_picasa_publishing_options_pane_real_get_widget (SpitPublishingDialogPane* base) -{ - PublishingPicasaPublishingOptionsPane * self; - GtkWidget* result = NULL; - GtkBox* _tmp0_; - GtkWidget* _tmp1_; -#line 639 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_PICASA_TYPE_PUBLISHING_OPTIONS_PANE, PublishingPicasaPublishingOptionsPane); -#line 640 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp0_ = self->priv->pane_widget; -#line 640 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp1_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, gtk_widget_get_type (), GtkWidget)); -#line 640 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - result = _tmp1_; -#line 640 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - return result; -#line 5369 "PicasaPublishing.c" -} - - -static SpitPublishingDialogPaneGeometryOptions -publishing_picasa_publishing_options_pane_real_get_preferred_geometry (SpitPublishingDialogPane* base) -{ - PublishingPicasaPublishingOptionsPane * self; - SpitPublishingDialogPaneGeometryOptions result = 0; -#line 643 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_PICASA_TYPE_PUBLISHING_OPTIONS_PANE, PublishingPicasaPublishingOptionsPane); -#line 644 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - result = SPIT_PUBLISHING_DIALOG_PANE_GEOMETRY_OPTIONS_NONE; -#line 644 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - return result; -#line 5384 "PicasaPublishing.c" -} - - -static void -publishing_picasa_publishing_options_pane_real_on_pane_installed (SpitPublishingDialogPane* base) -{ - PublishingPicasaPublishingOptionsPane * self; -#line 647 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_PICASA_TYPE_PUBLISHING_OPTIONS_PANE, PublishingPicasaPublishingOptionsPane); -#line 648 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - publishing_picasa_publishing_options_pane_installed (self); -#line 5396 "PicasaPublishing.c" -} - - -static void -publishing_picasa_publishing_options_pane_real_on_pane_uninstalled (SpitPublishingDialogPane* base) -{ - PublishingPicasaPublishingOptionsPane * self; -#line 651 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_PICASA_TYPE_PUBLISHING_OPTIONS_PANE, PublishingPicasaPublishingOptionsPane); -#line 5406 "PicasaPublishing.c" -} - - -static PublishingPicasaPublishingOptionsPaneSizeDescription* -publishing_picasa_publishing_options_pane_size_description_construct (GType object_type, - const gchar* name, - gint major_axis_pixels) -{ - PublishingPicasaPublishingOptionsPaneSizeDescription* self = NULL; - gchar* _tmp0_; -#line 510 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - g_return_val_if_fail (name != NULL, NULL); -#line 510 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - self = (PublishingPicasaPublishingOptionsPaneSizeDescription*) g_type_create_instance (object_type); -#line 511 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp0_ = g_strdup (name); -#line 511 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _g_free0 (self->name); -#line 511 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - self->name = _tmp0_; -#line 512 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - self->major_axis_pixels = major_axis_pixels; -#line 510 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - return self; -#line 5431 "PicasaPublishing.c" -} - - -static PublishingPicasaPublishingOptionsPaneSizeDescription* -publishing_picasa_publishing_options_pane_size_description_new (const gchar* name, - gint major_axis_pixels) -{ -#line 510 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - return publishing_picasa_publishing_options_pane_size_description_construct (PUBLISHING_PICASA_PUBLISHING_OPTIONS_PANE_TYPE_SIZE_DESCRIPTION, name, major_axis_pixels); -#line 5441 "PicasaPublishing.c" -} - - -static void -publishing_picasa_publishing_options_pane_value_size_description_init (GValue* value) -{ -#line 506 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - value->data[0].v_pointer = NULL; -#line 5450 "PicasaPublishing.c" -} - - -static void -publishing_picasa_publishing_options_pane_value_size_description_free_value (GValue* value) -{ -#line 506 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - if (value->data[0].v_pointer) { -#line 506 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - publishing_picasa_publishing_options_pane_size_description_unref (value->data[0].v_pointer); -#line 5461 "PicasaPublishing.c" - } -} - - -static void -publishing_picasa_publishing_options_pane_value_size_description_copy_value (const GValue* src_value, - GValue* dest_value) -{ -#line 506 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - if (src_value->data[0].v_pointer) { -#line 506 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - dest_value->data[0].v_pointer = publishing_picasa_publishing_options_pane_size_description_ref (src_value->data[0].v_pointer); -#line 5474 "PicasaPublishing.c" - } else { -#line 506 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - dest_value->data[0].v_pointer = NULL; -#line 5478 "PicasaPublishing.c" - } -} - - -static gpointer -publishing_picasa_publishing_options_pane_value_size_description_peek_pointer (const GValue* value) -{ -#line 506 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - return value->data[0].v_pointer; -#line 5488 "PicasaPublishing.c" -} - - -static gchar* -publishing_picasa_publishing_options_pane_value_size_description_collect_value (GValue* value, - guint n_collect_values, - GTypeCValue* collect_values, - guint collect_flags) -{ -#line 506 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - if (collect_values[0].v_pointer) { -#line 5500 "PicasaPublishing.c" - PublishingPicasaPublishingOptionsPaneSizeDescription * object; - object = collect_values[0].v_pointer; -#line 506 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - if (object->parent_instance.g_class == NULL) { -#line 506 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL); -#line 5507 "PicasaPublishing.c" - } else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) { -#line 506 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - return g_strconcat ("invalid object type `", g_type_name (G_TYPE_FROM_INSTANCE (object)), "' for value type `", G_VALUE_TYPE_NAME (value), "'", NULL); -#line 5511 "PicasaPublishing.c" - } -#line 506 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - value->data[0].v_pointer = publishing_picasa_publishing_options_pane_size_description_ref (object); -#line 5515 "PicasaPublishing.c" - } else { -#line 506 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - value->data[0].v_pointer = NULL; -#line 5519 "PicasaPublishing.c" - } -#line 506 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - return NULL; -#line 5523 "PicasaPublishing.c" -} - - -static gchar* -publishing_picasa_publishing_options_pane_value_size_description_lcopy_value (const GValue* value, - guint n_collect_values, - GTypeCValue* collect_values, - guint collect_flags) -{ - PublishingPicasaPublishingOptionsPaneSizeDescription ** object_p; - object_p = collect_values[0].v_pointer; -#line 506 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - if (!object_p) { -#line 506 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value)); -#line 5539 "PicasaPublishing.c" - } -#line 506 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - if (!value->data[0].v_pointer) { -#line 506 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - *object_p = NULL; -#line 5545 "PicasaPublishing.c" - } else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) { -#line 506 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - *object_p = value->data[0].v_pointer; -#line 5549 "PicasaPublishing.c" - } else { -#line 506 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - *object_p = publishing_picasa_publishing_options_pane_size_description_ref (value->data[0].v_pointer); -#line 5553 "PicasaPublishing.c" - } -#line 506 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - return NULL; -#line 5557 "PicasaPublishing.c" -} - - -static GParamSpec* -publishing_picasa_publishing_options_pane_param_spec_size_description (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags) -{ - PublishingPicasaPublishingOptionsPaneParamSpecSizeDescription* spec; -#line 506 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - g_return_val_if_fail (g_type_is_a (object_type, PUBLISHING_PICASA_PUBLISHING_OPTIONS_PANE_TYPE_SIZE_DESCRIPTION), NULL); -#line 506 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags); -#line 506 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - G_PARAM_SPEC (spec)->value_type = object_type; -#line 506 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - return G_PARAM_SPEC (spec); -#line 5577 "PicasaPublishing.c" -} - - -static gpointer -publishing_picasa_publishing_options_pane_value_get_size_description (const GValue* value) -{ -#line 506 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, PUBLISHING_PICASA_PUBLISHING_OPTIONS_PANE_TYPE_SIZE_DESCRIPTION), NULL); -#line 506 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - return value->data[0].v_pointer; -#line 5588 "PicasaPublishing.c" -} - - -static void -publishing_picasa_publishing_options_pane_value_set_size_description (GValue* value, - gpointer v_object) -{ - PublishingPicasaPublishingOptionsPaneSizeDescription * old; -#line 506 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, PUBLISHING_PICASA_PUBLISHING_OPTIONS_PANE_TYPE_SIZE_DESCRIPTION)); -#line 506 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - old = value->data[0].v_pointer; -#line 506 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - if (v_object) { -#line 506 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, PUBLISHING_PICASA_PUBLISHING_OPTIONS_PANE_TYPE_SIZE_DESCRIPTION)); -#line 506 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value))); -#line 506 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - value->data[0].v_pointer = v_object; -#line 506 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - publishing_picasa_publishing_options_pane_size_description_ref (value->data[0].v_pointer); -#line 5611 "PicasaPublishing.c" - } else { -#line 506 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - value->data[0].v_pointer = NULL; -#line 5615 "PicasaPublishing.c" - } -#line 506 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - if (old) { -#line 506 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - publishing_picasa_publishing_options_pane_size_description_unref (old); -#line 5621 "PicasaPublishing.c" - } -} - - -static void -publishing_picasa_publishing_options_pane_value_take_size_description (GValue* value, - gpointer v_object) -{ - PublishingPicasaPublishingOptionsPaneSizeDescription * old; -#line 506 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, PUBLISHING_PICASA_PUBLISHING_OPTIONS_PANE_TYPE_SIZE_DESCRIPTION)); -#line 506 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - old = value->data[0].v_pointer; -#line 506 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - if (v_object) { -#line 506 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, PUBLISHING_PICASA_PUBLISHING_OPTIONS_PANE_TYPE_SIZE_DESCRIPTION)); -#line 506 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value))); -#line 506 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - value->data[0].v_pointer = v_object; -#line 5643 "PicasaPublishing.c" - } else { -#line 506 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - value->data[0].v_pointer = NULL; -#line 5647 "PicasaPublishing.c" - } -#line 506 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - if (old) { -#line 506 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - publishing_picasa_publishing_options_pane_size_description_unref (old); -#line 5653 "PicasaPublishing.c" - } -} - - -static void -publishing_picasa_publishing_options_pane_size_description_class_init (PublishingPicasaPublishingOptionsPaneSizeDescriptionClass * klass) -{ -#line 506 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - publishing_picasa_publishing_options_pane_size_description_parent_class = g_type_class_peek_parent (klass); -#line 506 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - ((PublishingPicasaPublishingOptionsPaneSizeDescriptionClass *) klass)->finalize = publishing_picasa_publishing_options_pane_size_description_finalize; -#line 5665 "PicasaPublishing.c" -} - - -static void -publishing_picasa_publishing_options_pane_size_description_instance_init (PublishingPicasaPublishingOptionsPaneSizeDescription * self) -{ -#line 506 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - self->ref_count = 1; -#line 5674 "PicasaPublishing.c" -} - - -static void -publishing_picasa_publishing_options_pane_size_description_finalize (PublishingPicasaPublishingOptionsPaneSizeDescription * obj) -{ - PublishingPicasaPublishingOptionsPaneSizeDescription * self; -#line 506 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, PUBLISHING_PICASA_PUBLISHING_OPTIONS_PANE_TYPE_SIZE_DESCRIPTION, PublishingPicasaPublishingOptionsPaneSizeDescription); -#line 506 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - g_signal_handlers_destroy (self); -#line 507 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _g_free0 (self->name); -#line 5688 "PicasaPublishing.c" -} - - -static GType -publishing_picasa_publishing_options_pane_size_description_get_type (void) -{ - static volatile gsize publishing_picasa_publishing_options_pane_size_description_type_id__volatile = 0; - if (g_once_init_enter (&publishing_picasa_publishing_options_pane_size_description_type_id__volatile)) { - static const GTypeValueTable g_define_type_value_table = { publishing_picasa_publishing_options_pane_value_size_description_init, publishing_picasa_publishing_options_pane_value_size_description_free_value, publishing_picasa_publishing_options_pane_value_size_description_copy_value, publishing_picasa_publishing_options_pane_value_size_description_peek_pointer, "p", publishing_picasa_publishing_options_pane_value_size_description_collect_value, "p", publishing_picasa_publishing_options_pane_value_size_description_lcopy_value }; - static const GTypeInfo g_define_type_info = { sizeof (PublishingPicasaPublishingOptionsPaneSizeDescriptionClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) publishing_picasa_publishing_options_pane_size_description_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PublishingPicasaPublishingOptionsPaneSizeDescription), 0, (GInstanceInitFunc) publishing_picasa_publishing_options_pane_size_description_instance_init, &g_define_type_value_table }; - static const GTypeFundamentalInfo g_define_type_fundamental_info = { (G_TYPE_FLAG_CLASSED | G_TYPE_FLAG_INSTANTIATABLE | G_TYPE_FLAG_DERIVABLE | G_TYPE_FLAG_DEEP_DERIVABLE) }; - GType publishing_picasa_publishing_options_pane_size_description_type_id; - publishing_picasa_publishing_options_pane_size_description_type_id = g_type_register_fundamental (g_type_fundamental_next (), "PublishingPicasaPublishingOptionsPaneSizeDescription", &g_define_type_info, &g_define_type_fundamental_info, 0); - g_once_init_leave (&publishing_picasa_publishing_options_pane_size_description_type_id__volatile, publishing_picasa_publishing_options_pane_size_description_type_id); - } - return publishing_picasa_publishing_options_pane_size_description_type_id__volatile; -} - - -static gpointer -publishing_picasa_publishing_options_pane_size_description_ref (gpointer instance) -{ - PublishingPicasaPublishingOptionsPaneSizeDescription * self; - self = instance; -#line 506 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - g_atomic_int_inc (&self->ref_count); -#line 506 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - return instance; -#line 5717 "PicasaPublishing.c" -} - - -static void -publishing_picasa_publishing_options_pane_size_description_unref (gpointer instance) -{ - PublishingPicasaPublishingOptionsPaneSizeDescription * self; - self = instance; -#line 506 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - if (g_atomic_int_dec_and_test (&self->ref_count)) { -#line 506 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - PUBLISHING_PICASA_PUBLISHING_OPTIONS_PANE_SIZE_DESCRIPTION_GET_CLASS (self)->finalize (self); -#line 506 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - g_type_free_instance ((GTypeInstance *) self); -#line 5732 "PicasaPublishing.c" - } -} - - -static void -publishing_picasa_publishing_options_pane_class_init (PublishingPicasaPublishingOptionsPaneClass * klass) -{ -#line 505 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - publishing_picasa_publishing_options_pane_parent_class = g_type_class_peek_parent (klass); -#line 505 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - g_type_class_add_private (klass, sizeof (PublishingPicasaPublishingOptionsPanePrivate)); -#line 505 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - G_OBJECT_CLASS (klass)->finalize = publishing_picasa_publishing_options_pane_finalize; -#line 505 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - publishing_picasa_publishing_options_pane_signals[PUBLISHING_PICASA_PUBLISHING_OPTIONS_PANE_PUBLISH_SIGNAL] = g_signal_new ("publish", PUBLISHING_PICASA_TYPE_PUBLISHING_OPTIONS_PANE, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_marshal_VOID__VOID, G_TYPE_NONE, 0); -#line 505 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - publishing_picasa_publishing_options_pane_signals[PUBLISHING_PICASA_PUBLISHING_OPTIONS_PANE_LOGOUT_SIGNAL] = g_signal_new ("logout", PUBLISHING_PICASA_TYPE_PUBLISHING_OPTIONS_PANE, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_marshal_VOID__VOID, G_TYPE_NONE, 0); -#line 5750 "PicasaPublishing.c" -} - - -static void -publishing_picasa_publishing_options_pane_spit_publishing_dialog_pane_interface_init (SpitPublishingDialogPaneIface * iface) -{ -#line 505 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - publishing_picasa_publishing_options_pane_spit_publishing_dialog_pane_parent_iface = g_type_interface_peek_parent (iface); -#line 505 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - iface->get_widget = (GtkWidget* (*) (SpitPublishingDialogPane *)) publishing_picasa_publishing_options_pane_real_get_widget; -#line 505 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - iface->get_preferred_geometry = (SpitPublishingDialogPaneGeometryOptions (*) (SpitPublishingDialogPane *)) publishing_picasa_publishing_options_pane_real_get_preferred_geometry; -#line 505 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - iface->on_pane_installed = (void (*) (SpitPublishingDialogPane *)) publishing_picasa_publishing_options_pane_real_on_pane_installed; -#line 505 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - iface->on_pane_uninstalled = (void (*) (SpitPublishingDialogPane *)) publishing_picasa_publishing_options_pane_real_on_pane_uninstalled; -#line 5767 "PicasaPublishing.c" -} - - -static void -publishing_picasa_publishing_options_pane_instance_init (PublishingPicasaPublishingOptionsPane * self) -{ -#line 505 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - self->priv = PUBLISHING_PICASA_PUBLISHING_OPTIONS_PANE_GET_PRIVATE (self); -#line 519 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - self->priv->builder = NULL; -#line 520 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - self->priv->pane_widget = NULL; -#line 521 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - self->priv->login_identity_label = NULL; -#line 522 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - self->priv->publish_to_label = NULL; -#line 523 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - self->priv->existing_albums_combo = NULL; -#line 524 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - self->priv->public_check = NULL; -#line 525 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - self->priv->size_combo = NULL; -#line 526 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - self->priv->strip_metadata_check = NULL; -#line 527 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - self->priv->publish_button = NULL; -#line 528 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - self->priv->logout_button = NULL; -#line 5796 "PicasaPublishing.c" -} - - -static void -publishing_picasa_publishing_options_pane_finalize (GObject * obj) -{ - PublishingPicasaPublishingOptionsPane * self; -#line 505 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, PUBLISHING_PICASA_TYPE_PUBLISHING_OPTIONS_PANE, PublishingPicasaPublishingOptionsPane); -#line 519 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _g_object_unref0 (self->priv->builder); -#line 520 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _g_object_unref0 (self->priv->pane_widget); -#line 521 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _g_object_unref0 (self->priv->login_identity_label); -#line 522 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _g_object_unref0 (self->priv->publish_to_label); -#line 523 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _g_object_unref0 (self->priv->existing_albums_combo); -#line 524 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _g_object_unref0 (self->priv->public_check); -#line 525 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _g_object_unref0 (self->priv->size_combo); -#line 526 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _g_object_unref0 (self->priv->strip_metadata_check); -#line 527 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _g_object_unref0 (self->priv->publish_button); -#line 528 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _g_object_unref0 (self->priv->logout_button); -#line 529 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - self->priv->size_descriptions = (_vala_array_free (self->priv->size_descriptions, self->priv->size_descriptions_length1, (GDestroyNotify) publishing_picasa_publishing_options_pane_size_description_unref), NULL); -#line 530 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _publishing_picasa_publishing_parameters_unref0 (self->priv->parameters); -#line 505 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - G_OBJECT_CLASS (publishing_picasa_publishing_options_pane_parent_class)->finalize (obj); -#line 5832 "PicasaPublishing.c" -} - - -GType -publishing_picasa_publishing_options_pane_get_type (void) -{ - static volatile gsize publishing_picasa_publishing_options_pane_type_id__volatile = 0; - if (g_once_init_enter (&publishing_picasa_publishing_options_pane_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (PublishingPicasaPublishingOptionsPaneClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) publishing_picasa_publishing_options_pane_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PublishingPicasaPublishingOptionsPane), 0, (GInstanceInitFunc) publishing_picasa_publishing_options_pane_instance_init, NULL }; - static const GInterfaceInfo spit_publishing_dialog_pane_info = { (GInterfaceInitFunc) publishing_picasa_publishing_options_pane_spit_publishing_dialog_pane_interface_init, (GInterfaceFinalizeFunc) NULL, NULL}; - GType publishing_picasa_publishing_options_pane_type_id; - publishing_picasa_publishing_options_pane_type_id = g_type_register_static (G_TYPE_OBJECT, "PublishingPicasaPublishingOptionsPane", &g_define_type_info, 0); - g_type_add_interface_static (publishing_picasa_publishing_options_pane_type_id, SPIT_PUBLISHING_TYPE_DIALOG_PANE, &spit_publishing_dialog_pane_info); - g_once_init_leave (&publishing_picasa_publishing_options_pane_type_id__volatile, publishing_picasa_publishing_options_pane_type_id); - } - return publishing_picasa_publishing_options_pane_type_id__volatile; -} - - -PublishingPicasaPublishingParameters* -publishing_picasa_publishing_parameters_construct (GType object_type) -{ - PublishingPicasaPublishingParameters* self = NULL; - gchar* _tmp0_; -#line 668 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - self = (PublishingPicasaPublishingParameters*) g_type_create_instance (object_type); -#line 669 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp0_ = g_strdup ("[unknown]"); -#line 669 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _g_free0 (self->priv->user_name); -#line 669 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - self->priv->user_name = _tmp0_; -#line 670 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _g_free0 (self->priv->target_album_name); -#line 670 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - self->priv->target_album_name = NULL; -#line 671 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - self->priv->major_axis_size_selection_id = 0; -#line 672 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - self->priv->major_axis_size_pixels = PUBLISHING_PICASA_PUBLISHING_PARAMETERS_ORIGINAL_SIZE; -#line 673 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _g_free0 (self->priv->target_album_url); -#line 673 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - self->priv->target_album_url = NULL; -#line 674 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - self->priv->album_public = FALSE; -#line 675 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - self->priv->albums = (_vala_array_free (self->priv->albums, self->priv->albums_length1, (GDestroyNotify) publishing_picasa_album_unref), NULL); -#line 675 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - self->priv->albums = NULL; -#line 675 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - self->priv->albums_length1 = 0; -#line 675 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - self->priv->_albums_size_ = self->priv->albums_length1; -#line 676 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - self->priv->strip_metadata = FALSE; -#line 677 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - self->priv->media_type = SPIT_PUBLISHING_PUBLISHER_MEDIA_TYPE_PHOTO; -#line 668 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - return self; -#line 5893 "PicasaPublishing.c" -} - - -PublishingPicasaPublishingParameters* -publishing_picasa_publishing_parameters_new (void) -{ -#line 668 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - return publishing_picasa_publishing_parameters_construct (PUBLISHING_PICASA_TYPE_PUBLISHING_PARAMETERS); -#line 5902 "PicasaPublishing.c" -} - - -gchar* -publishing_picasa_publishing_parameters_get_target_album_name (PublishingPicasaPublishingParameters* self) -{ - gchar* result = NULL; - const gchar* _tmp0_; - gchar* _tmp1_; -#line 680 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - g_return_val_if_fail (PUBLISHING_PICASA_IS_PUBLISHING_PARAMETERS (self), NULL); -#line 681 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp0_ = self->priv->target_album_name; -#line 681 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp1_ = g_strdup (_tmp0_); -#line 681 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - result = _tmp1_; -#line 681 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - return result; -#line 5922 "PicasaPublishing.c" -} - - -void -publishing_picasa_publishing_parameters_set_target_album_name (PublishingPicasaPublishingParameters* self, - const gchar* target_album_name) -{ - gchar* _tmp0_; -#line 684 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - g_return_if_fail (PUBLISHING_PICASA_IS_PUBLISHING_PARAMETERS (self)); -#line 684 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - g_return_if_fail (target_album_name != NULL); -#line 685 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp0_ = g_strdup (target_album_name); -#line 685 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _g_free0 (self->priv->target_album_name); -#line 685 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - self->priv->target_album_name = _tmp0_; -#line 5941 "PicasaPublishing.c" -} - - -void -publishing_picasa_publishing_parameters_set_target_album_entry_url (PublishingPicasaPublishingParameters* self, - const gchar* target_album_url) -{ - gchar* _tmp0_; -#line 688 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - g_return_if_fail (PUBLISHING_PICASA_IS_PUBLISHING_PARAMETERS (self)); -#line 688 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - g_return_if_fail (target_album_url != NULL); -#line 689 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp0_ = g_strdup (target_album_url); -#line 689 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _g_free0 (self->priv->target_album_url); -#line 689 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - self->priv->target_album_url = _tmp0_; -#line 5960 "PicasaPublishing.c" -} - - -gchar* -publishing_picasa_publishing_parameters_get_target_album_entry_url (PublishingPicasaPublishingParameters* self) -{ - gchar* result = NULL; - const gchar* _tmp0_; - gchar* _tmp1_; -#line 692 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - g_return_val_if_fail (PUBLISHING_PICASA_IS_PUBLISHING_PARAMETERS (self), NULL); -#line 693 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp0_ = self->priv->target_album_url; -#line 693 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp1_ = g_strdup (_tmp0_); -#line 693 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - result = _tmp1_; -#line 693 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - return result; -#line 5980 "PicasaPublishing.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 1421 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - g_return_val_if_fail (self != NULL, NULL); -#line 1421 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - g_return_val_if_fail (old != NULL, NULL); -#line 1421 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - g_return_val_if_fail (replacement != NULL, NULL); -#line 1422 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - if ((*((gchar*) self)) == '\0') { -#line 1422 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp1_ = TRUE; -#line 6003 "PicasaPublishing.c" - } else { -#line 1422 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp1_ = (*((gchar*) old)) == '\0'; -#line 6007 "PicasaPublishing.c" - } -#line 1422 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - if (_tmp1_) { -#line 1422 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp0_ = TRUE; -#line 6013 "PicasaPublishing.c" - } else { -#line 1422 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp0_ = g_strcmp0 (old, replacement) == 0; -#line 6017 "PicasaPublishing.c" - } -#line 1422 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - if (_tmp0_) { -#line 6021 "PicasaPublishing.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 6029 "PicasaPublishing.c" - } - { - GRegex* regex = NULL; - 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 1426 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - if (_inner_error_->domain == G_REGEX_ERROR) { -#line 6057 "PicasaPublishing.c" - goto __catch12_g_regex_error; - } -#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 1426 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - g_clear_error (&_inner_error_); -#line 1426 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - return NULL; -#line 6066 "PicasaPublishing.c" - } -#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 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _g_regex_unref0 (regex); -#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - if (_inner_error_->domain == G_REGEX_ERROR) { -#line 6080 "PicasaPublishing.c" - goto __catch12_g_regex_error; - } -#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _g_regex_unref0 (regex); -#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 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - g_clear_error (&_inner_error_); -#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - return NULL; -#line 6091 "PicasaPublishing.c" - } -#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 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - return result; -#line 6105 "PicasaPublishing.c" - } - goto __finally12; - __catch12_g_regex_error: - { - GError* e = NULL; -#line 1425 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - e = _inner_error_; -#line 1425 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _inner_error_ = NULL; -#line 1429 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - g_assert_not_reached (); -#line 1425 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _g_error_free0 (e); -#line 6119 "PicasaPublishing.c" - } - __finally12: -#line 1425 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#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 1425 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - g_clear_error (&_inner_error_); -#line 1425 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - return NULL; -#line 6130 "PicasaPublishing.c" - } -} - - -gchar* -publishing_picasa_publishing_parameters_get_target_album_feed_url (PublishingPicasaPublishingParameters* self) -{ - gchar* result = NULL; - gchar* entry_url = NULL; - gchar* _tmp0_; - gchar* feed_url = NULL; - gchar* _tmp1_; -#line 696 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - g_return_val_if_fail (PUBLISHING_PICASA_IS_PUBLISHING_PARAMETERS (self), NULL); -#line 697 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp0_ = publishing_picasa_publishing_parameters_get_target_album_entry_url (self); -#line 697 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - entry_url = _tmp0_; -#line 698 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp1_ = string_replace (entry_url, "entry", "feed"); -#line 698 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - feed_url = _tmp1_; -#line 700 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - result = feed_url; -#line 700 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _g_free0 (entry_url); -#line 700 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - return result; -#line 6159 "PicasaPublishing.c" -} - - -gchar* -publishing_picasa_publishing_parameters_get_user_name (PublishingPicasaPublishingParameters* self) -{ - gchar* result = NULL; - const gchar* _tmp0_; - gchar* _tmp1_; -#line 703 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - g_return_val_if_fail (PUBLISHING_PICASA_IS_PUBLISHING_PARAMETERS (self), NULL); -#line 704 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp0_ = self->priv->user_name; -#line 704 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp1_ = g_strdup (_tmp0_); -#line 704 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - result = _tmp1_; -#line 704 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - return result; -#line 6179 "PicasaPublishing.c" -} - - -void -publishing_picasa_publishing_parameters_set_user_name (PublishingPicasaPublishingParameters* self, - const gchar* user_name) -{ - gchar* _tmp0_; -#line 707 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - g_return_if_fail (PUBLISHING_PICASA_IS_PUBLISHING_PARAMETERS (self)); -#line 707 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - g_return_if_fail (user_name != NULL); -#line 708 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp0_ = g_strdup (user_name); -#line 708 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _g_free0 (self->priv->user_name); -#line 708 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - self->priv->user_name = _tmp0_; -#line 6198 "PicasaPublishing.c" -} - - -static gpointer -_publishing_picasa_album_ref0 (gpointer self) -{ -#line 712 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - return self ? publishing_picasa_album_ref (self) : NULL; -#line 6207 "PicasaPublishing.c" -} - - -static PublishingPicasaAlbum** -_vala_array_dup5 (PublishingPicasaAlbum** self, - int length) -{ - PublishingPicasaAlbum** result; - int i; -#line 712 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - result = g_new0 (PublishingPicasaAlbum*, length + 1); -#line 712 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - for (i = 0; i < length; i++) { -#line 6221 "PicasaPublishing.c" - PublishingPicasaAlbum* _tmp0_; -#line 712 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp0_ = _publishing_picasa_album_ref0 (self[i]); -#line 712 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - result[i] = _tmp0_; -#line 6227 "PicasaPublishing.c" - } -#line 712 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - return result; -#line 6231 "PicasaPublishing.c" -} - - -PublishingPicasaAlbum** -publishing_picasa_publishing_parameters_get_albums (PublishingPicasaPublishingParameters* self, - int* result_length1) -{ - PublishingPicasaAlbum** result = NULL; - PublishingPicasaAlbum** _tmp0_; - gint _tmp0__length1; - PublishingPicasaAlbum** _tmp1_; - gint _tmp1__length1; - PublishingPicasaAlbum** _tmp2_; - gint _tmp2__length1; -#line 711 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - g_return_val_if_fail (PUBLISHING_PICASA_IS_PUBLISHING_PARAMETERS (self), NULL); -#line 712 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp0_ = self->priv->albums; -#line 712 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp0__length1 = self->priv->albums_length1; -#line 712 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp1_ = (_tmp0_ != NULL) ? _vala_array_dup5 (_tmp0_, _tmp0__length1) : ((gpointer) _tmp0_); -#line 712 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp1__length1 = _tmp0__length1; -#line 712 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp2_ = _tmp1_; -#line 712 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp2__length1 = _tmp1__length1; -#line 712 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - if (result_length1) { -#line 712 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - *result_length1 = _tmp2__length1; -#line 6264 "PicasaPublishing.c" - } -#line 712 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - result = _tmp2_; -#line 712 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - return result; -#line 6270 "PicasaPublishing.c" -} - - -static PublishingPicasaAlbum** -_vala_array_dup6 (PublishingPicasaAlbum** self, - int length) -{ - PublishingPicasaAlbum** result; - int i; -#line 716 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - result = g_new0 (PublishingPicasaAlbum*, length + 1); -#line 716 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - for (i = 0; i < length; i++) { -#line 6284 "PicasaPublishing.c" - PublishingPicasaAlbum* _tmp0_; -#line 716 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp0_ = _publishing_picasa_album_ref0 (self[i]); -#line 716 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - result[i] = _tmp0_; -#line 6290 "PicasaPublishing.c" - } -#line 716 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - return result; -#line 6294 "PicasaPublishing.c" -} - - -void -publishing_picasa_publishing_parameters_set_albums (PublishingPicasaPublishingParameters* self, - PublishingPicasaAlbum** albums, - int albums_length1) -{ - PublishingPicasaAlbum** _tmp0_; - gint _tmp0__length1; -#line 715 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - g_return_if_fail (PUBLISHING_PICASA_IS_PUBLISHING_PARAMETERS (self)); -#line 716 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp0_ = (albums != NULL) ? _vala_array_dup6 (albums, albums_length1) : ((gpointer) albums); -#line 716 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp0__length1 = albums_length1; -#line 716 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - self->priv->albums = (_vala_array_free (self->priv->albums, self->priv->albums_length1, (GDestroyNotify) publishing_picasa_album_unref), NULL); -#line 716 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - self->priv->albums = _tmp0_; -#line 716 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - self->priv->albums_length1 = _tmp0__length1; -#line 716 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - self->priv->_albums_size_ = self->priv->albums_length1; -#line 6319 "PicasaPublishing.c" -} - - -void -publishing_picasa_publishing_parameters_set_major_axis_size_pixels (PublishingPicasaPublishingParameters* self, - gint pixels) -{ -#line 719 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - g_return_if_fail (PUBLISHING_PICASA_IS_PUBLISHING_PARAMETERS (self)); -#line 720 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - self->priv->major_axis_size_pixels = pixels; -#line 6331 "PicasaPublishing.c" -} - - -gint -publishing_picasa_publishing_parameters_get_major_axis_size_pixels (PublishingPicasaPublishingParameters* self) -{ - gint result = 0; - gint _tmp0_; -#line 723 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - g_return_val_if_fail (PUBLISHING_PICASA_IS_PUBLISHING_PARAMETERS (self), 0); -#line 724 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp0_ = self->priv->major_axis_size_pixels; -#line 724 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - result = _tmp0_; -#line 724 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - return result; -#line 6348 "PicasaPublishing.c" -} - - -void -publishing_picasa_publishing_parameters_set_major_axis_size_selection_id (PublishingPicasaPublishingParameters* self, - gint selection_id) -{ -#line 727 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - g_return_if_fail (PUBLISHING_PICASA_IS_PUBLISHING_PARAMETERS (self)); -#line 728 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - self->priv->major_axis_size_selection_id = selection_id; -#line 6360 "PicasaPublishing.c" -} - - -gint -publishing_picasa_publishing_parameters_get_major_axis_size_selection_id (PublishingPicasaPublishingParameters* self) -{ - gint result = 0; - gint _tmp0_; -#line 731 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - g_return_val_if_fail (PUBLISHING_PICASA_IS_PUBLISHING_PARAMETERS (self), 0); -#line 732 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp0_ = self->priv->major_axis_size_selection_id; -#line 732 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - result = _tmp0_; -#line 732 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - return result; -#line 6377 "PicasaPublishing.c" -} - - -void -publishing_picasa_publishing_parameters_set_strip_metadata (PublishingPicasaPublishingParameters* self, - gboolean strip_metadata) -{ -#line 735 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - g_return_if_fail (PUBLISHING_PICASA_IS_PUBLISHING_PARAMETERS (self)); -#line 736 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - self->priv->strip_metadata = strip_metadata; -#line 6389 "PicasaPublishing.c" -} - - -gboolean -publishing_picasa_publishing_parameters_get_strip_metadata (PublishingPicasaPublishingParameters* self) -{ - gboolean result = FALSE; - gboolean _tmp0_; -#line 739 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - g_return_val_if_fail (PUBLISHING_PICASA_IS_PUBLISHING_PARAMETERS (self), FALSE); -#line 740 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp0_ = self->priv->strip_metadata; -#line 740 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - result = _tmp0_; -#line 740 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - return result; -#line 6406 "PicasaPublishing.c" -} - - -void -publishing_picasa_publishing_parameters_set_media_type (PublishingPicasaPublishingParameters* self, - SpitPublishingPublisherMediaType media_type) -{ -#line 743 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - g_return_if_fail (PUBLISHING_PICASA_IS_PUBLISHING_PARAMETERS (self)); -#line 744 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - self->priv->media_type = media_type; -#line 6418 "PicasaPublishing.c" -} - - -SpitPublishingPublisherMediaType -publishing_picasa_publishing_parameters_get_media_type (PublishingPicasaPublishingParameters* self) -{ - SpitPublishingPublisherMediaType result = 0; - SpitPublishingPublisherMediaType _tmp0_; -#line 747 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - g_return_val_if_fail (PUBLISHING_PICASA_IS_PUBLISHING_PARAMETERS (self), 0); -#line 748 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp0_ = self->priv->media_type; -#line 748 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - result = _tmp0_; -#line 748 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - return result; -#line 6435 "PicasaPublishing.c" -} - - -static void -publishing_picasa_value_publishing_parameters_init (GValue* value) -{ -#line 655 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - value->data[0].v_pointer = NULL; -#line 6444 "PicasaPublishing.c" -} - - -static void -publishing_picasa_value_publishing_parameters_free_value (GValue* value) -{ -#line 655 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - if (value->data[0].v_pointer) { -#line 655 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - publishing_picasa_publishing_parameters_unref (value->data[0].v_pointer); -#line 6455 "PicasaPublishing.c" - } -} - - -static void -publishing_picasa_value_publishing_parameters_copy_value (const GValue* src_value, - GValue* dest_value) -{ -#line 655 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - if (src_value->data[0].v_pointer) { -#line 655 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - dest_value->data[0].v_pointer = publishing_picasa_publishing_parameters_ref (src_value->data[0].v_pointer); -#line 6468 "PicasaPublishing.c" - } else { -#line 655 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - dest_value->data[0].v_pointer = NULL; -#line 6472 "PicasaPublishing.c" - } -} - - -static gpointer -publishing_picasa_value_publishing_parameters_peek_pointer (const GValue* value) -{ -#line 655 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - return value->data[0].v_pointer; -#line 6482 "PicasaPublishing.c" -} - - -static gchar* -publishing_picasa_value_publishing_parameters_collect_value (GValue* value, - guint n_collect_values, - GTypeCValue* collect_values, - guint collect_flags) -{ -#line 655 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - if (collect_values[0].v_pointer) { -#line 6494 "PicasaPublishing.c" - PublishingPicasaPublishingParameters * object; - object = collect_values[0].v_pointer; -#line 655 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - if (object->parent_instance.g_class == NULL) { -#line 655 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL); -#line 6501 "PicasaPublishing.c" - } else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) { -#line 655 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - return g_strconcat ("invalid object type `", g_type_name (G_TYPE_FROM_INSTANCE (object)), "' for value type `", G_VALUE_TYPE_NAME (value), "'", NULL); -#line 6505 "PicasaPublishing.c" - } -#line 655 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - value->data[0].v_pointer = publishing_picasa_publishing_parameters_ref (object); -#line 6509 "PicasaPublishing.c" - } else { -#line 655 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - value->data[0].v_pointer = NULL; -#line 6513 "PicasaPublishing.c" - } -#line 655 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - return NULL; -#line 6517 "PicasaPublishing.c" -} - - -static gchar* -publishing_picasa_value_publishing_parameters_lcopy_value (const GValue* value, - guint n_collect_values, - GTypeCValue* collect_values, - guint collect_flags) -{ - PublishingPicasaPublishingParameters ** object_p; - object_p = collect_values[0].v_pointer; -#line 655 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - if (!object_p) { -#line 655 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value)); -#line 6533 "PicasaPublishing.c" - } -#line 655 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - if (!value->data[0].v_pointer) { -#line 655 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - *object_p = NULL; -#line 6539 "PicasaPublishing.c" - } else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) { -#line 655 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - *object_p = value->data[0].v_pointer; -#line 6543 "PicasaPublishing.c" - } else { -#line 655 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - *object_p = publishing_picasa_publishing_parameters_ref (value->data[0].v_pointer); -#line 6547 "PicasaPublishing.c" - } -#line 655 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - return NULL; -#line 6551 "PicasaPublishing.c" -} - - -GParamSpec* -publishing_picasa_param_spec_publishing_parameters (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags) -{ - PublishingPicasaParamSpecPublishingParameters* spec; -#line 655 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - g_return_val_if_fail (g_type_is_a (object_type, PUBLISHING_PICASA_TYPE_PUBLISHING_PARAMETERS), NULL); -#line 655 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags); -#line 655 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - G_PARAM_SPEC (spec)->value_type = object_type; -#line 655 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - return G_PARAM_SPEC (spec); -#line 6571 "PicasaPublishing.c" -} - - -gpointer -publishing_picasa_value_get_publishing_parameters (const GValue* value) -{ -#line 655 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, PUBLISHING_PICASA_TYPE_PUBLISHING_PARAMETERS), NULL); -#line 655 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - return value->data[0].v_pointer; -#line 6582 "PicasaPublishing.c" -} - - -void -publishing_picasa_value_set_publishing_parameters (GValue* value, - gpointer v_object) -{ - PublishingPicasaPublishingParameters * old; -#line 655 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, PUBLISHING_PICASA_TYPE_PUBLISHING_PARAMETERS)); -#line 655 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - old = value->data[0].v_pointer; -#line 655 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - if (v_object) { -#line 655 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, PUBLISHING_PICASA_TYPE_PUBLISHING_PARAMETERS)); -#line 655 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value))); -#line 655 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - value->data[0].v_pointer = v_object; -#line 655 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - publishing_picasa_publishing_parameters_ref (value->data[0].v_pointer); -#line 6605 "PicasaPublishing.c" - } else { -#line 655 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - value->data[0].v_pointer = NULL; -#line 6609 "PicasaPublishing.c" - } -#line 655 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - if (old) { -#line 655 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - publishing_picasa_publishing_parameters_unref (old); -#line 6615 "PicasaPublishing.c" - } -} - - -void -publishing_picasa_value_take_publishing_parameters (GValue* value, - gpointer v_object) -{ - PublishingPicasaPublishingParameters * old; -#line 655 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, PUBLISHING_PICASA_TYPE_PUBLISHING_PARAMETERS)); -#line 655 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - old = value->data[0].v_pointer; -#line 655 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - if (v_object) { -#line 655 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, PUBLISHING_PICASA_TYPE_PUBLISHING_PARAMETERS)); -#line 655 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value))); -#line 655 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - value->data[0].v_pointer = v_object; -#line 6637 "PicasaPublishing.c" - } else { -#line 655 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - value->data[0].v_pointer = NULL; -#line 6641 "PicasaPublishing.c" - } -#line 655 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - if (old) { -#line 655 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - publishing_picasa_publishing_parameters_unref (old); -#line 6647 "PicasaPublishing.c" - } -} - - -static void -publishing_picasa_publishing_parameters_class_init (PublishingPicasaPublishingParametersClass * klass) -{ -#line 655 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - publishing_picasa_publishing_parameters_parent_class = g_type_class_peek_parent (klass); -#line 655 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - ((PublishingPicasaPublishingParametersClass *) klass)->finalize = publishing_picasa_publishing_parameters_finalize; -#line 655 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - g_type_class_add_private (klass, sizeof (PublishingPicasaPublishingParametersPrivate)); -#line 6661 "PicasaPublishing.c" -} - - -static void -publishing_picasa_publishing_parameters_instance_init (PublishingPicasaPublishingParameters * self) -{ -#line 655 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - self->priv = PUBLISHING_PICASA_PUBLISHING_PARAMETERS_GET_PRIVATE (self); -#line 655 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - self->ref_count = 1; -#line 6672 "PicasaPublishing.c" -} - - -static void -publishing_picasa_publishing_parameters_finalize (PublishingPicasaPublishingParameters * obj) -{ - PublishingPicasaPublishingParameters * self; -#line 655 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, PUBLISHING_PICASA_TYPE_PUBLISHING_PARAMETERS, PublishingPicasaPublishingParameters); -#line 655 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - g_signal_handlers_destroy (self); -#line 658 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _g_free0 (self->priv->target_album_name); -#line 659 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _g_free0 (self->priv->target_album_url); -#line 664 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _g_free0 (self->priv->user_name); -#line 665 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - self->priv->albums = (_vala_array_free (self->priv->albums, self->priv->albums_length1, (GDestroyNotify) publishing_picasa_album_unref), NULL); -#line 6692 "PicasaPublishing.c" -} - - -GType -publishing_picasa_publishing_parameters_get_type (void) -{ - static volatile gsize publishing_picasa_publishing_parameters_type_id__volatile = 0; - if (g_once_init_enter (&publishing_picasa_publishing_parameters_type_id__volatile)) { - static const GTypeValueTable g_define_type_value_table = { publishing_picasa_value_publishing_parameters_init, publishing_picasa_value_publishing_parameters_free_value, publishing_picasa_value_publishing_parameters_copy_value, publishing_picasa_value_publishing_parameters_peek_pointer, "p", publishing_picasa_value_publishing_parameters_collect_value, "p", publishing_picasa_value_publishing_parameters_lcopy_value }; - static const GTypeInfo g_define_type_info = { sizeof (PublishingPicasaPublishingParametersClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) publishing_picasa_publishing_parameters_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PublishingPicasaPublishingParameters), 0, (GInstanceInitFunc) publishing_picasa_publishing_parameters_instance_init, &g_define_type_value_table }; - static const GTypeFundamentalInfo g_define_type_fundamental_info = { (G_TYPE_FLAG_CLASSED | G_TYPE_FLAG_INSTANTIATABLE | G_TYPE_FLAG_DERIVABLE | G_TYPE_FLAG_DEEP_DERIVABLE) }; - GType publishing_picasa_publishing_parameters_type_id; - publishing_picasa_publishing_parameters_type_id = g_type_register_fundamental (g_type_fundamental_next (), "PublishingPicasaPublishingParameters", &g_define_type_info, &g_define_type_fundamental_info, 0); - g_once_init_leave (&publishing_picasa_publishing_parameters_type_id__volatile, publishing_picasa_publishing_parameters_type_id); - } - return publishing_picasa_publishing_parameters_type_id__volatile; -} - - -gpointer -publishing_picasa_publishing_parameters_ref (gpointer instance) -{ - PublishingPicasaPublishingParameters * self; - self = instance; -#line 655 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - g_atomic_int_inc (&self->ref_count); -#line 655 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - return instance; -#line 6721 "PicasaPublishing.c" -} - - -void -publishing_picasa_publishing_parameters_unref (gpointer instance) -{ - PublishingPicasaPublishingParameters * self; - self = instance; -#line 655 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - if (g_atomic_int_dec_and_test (&self->ref_count)) { -#line 655 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - PUBLISHING_PICASA_PUBLISHING_PARAMETERS_GET_CLASS (self)->finalize (self); -#line 655 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - g_type_free_instance ((GTypeInstance *) self); -#line 6736 "PicasaPublishing.c" - } -} - - -PublishingPicasaUploader* -publishing_picasa_uploader_construct (GType object_type, - PublishingRESTSupportGoogleSession* session, - SpitPublishingPublishable** publishables, - int publishables_length1, - PublishingPicasaPublishingParameters* parameters) -{ - PublishingPicasaUploader* self = NULL; - PublishingPicasaPublishingParameters* _tmp0_; -#line 755 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - g_return_val_if_fail (PUBLISHING_REST_SUPPORT_IS_GOOGLE_SESSION (session), NULL); -#line 755 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - g_return_val_if_fail (PUBLISHING_PICASA_IS_PUBLISHING_PARAMETERS (parameters), NULL); -#line 757 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - self = (PublishingPicasaUploader*) publishing_rest_support_batch_uploader_construct (object_type, G_TYPE_CHECK_INSTANCE_CAST (session, PUBLISHING_REST_SUPPORT_TYPE_SESSION, PublishingRESTSupportSession), publishables, publishables_length1); -#line 759 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp0_ = _publishing_picasa_publishing_parameters_ref0 (parameters); -#line 759 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _publishing_picasa_publishing_parameters_unref0 (self->priv->parameters); -#line 759 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - self->priv->parameters = _tmp0_; -#line 755 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - return self; -#line 6764 "PicasaPublishing.c" -} - - -PublishingPicasaUploader* -publishing_picasa_uploader_new (PublishingRESTSupportGoogleSession* session, - SpitPublishingPublishable** publishables, - int publishables_length1, - PublishingPicasaPublishingParameters* parameters) -{ -#line 755 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - return publishing_picasa_uploader_construct (PUBLISHING_PICASA_TYPE_UPLOADER, session, publishables, publishables_length1, parameters); -#line 6776 "PicasaPublishing.c" -} - - -static PublishingRESTSupportTransaction* -publishing_picasa_uploader_real_create_transaction (PublishingRESTSupportBatchUploader* base, - SpitPublishingPublishable* publishable) -{ - PublishingPicasaUploader * self; - PublishingRESTSupportTransaction* result = NULL; - PublishingRESTSupportSession* _tmp0_; - PublishingRESTSupportGoogleSession* _tmp1_; - PublishingPicasaPublishingParameters* _tmp2_; - SpitPublishingPublishable* _tmp3_; - SpitPublishingPublishable* _tmp4_; - PublishingPicasaUploadTransaction* _tmp5_; - PublishingRESTSupportTransaction* _tmp6_; -#line 762 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_PICASA_TYPE_UPLOADER, PublishingPicasaUploader); -#line 762 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - g_return_val_if_fail (SPIT_PUBLISHING_IS_PUBLISHABLE (publishable), NULL); -#line 764 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp0_ = publishing_rest_support_batch_uploader_get_session (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_BATCH_UPLOADER, PublishingRESTSupportBatchUploader)); -#line 764 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp1_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, PUBLISHING_REST_SUPPORT_TYPE_GOOGLE_SESSION, PublishingRESTSupportGoogleSession); -#line 764 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp2_ = self->priv->parameters; -#line 764 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp3_ = publishing_rest_support_batch_uploader_get_current_publishable (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_BATCH_UPLOADER, PublishingRESTSupportBatchUploader)); -#line 764 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp4_ = _tmp3_; -#line 764 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp5_ = publishing_picasa_upload_transaction_new (_tmp1_, _tmp2_, _tmp4_); -#line 764 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp6_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction); -#line 764 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _g_object_unref0 (_tmp4_); -#line 764 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _publishing_rest_support_session_unref0 (_tmp1_); -#line 764 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - result = _tmp6_; -#line 764 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - return result; -#line 6819 "PicasaPublishing.c" -} - - -static void -publishing_picasa_uploader_class_init (PublishingPicasaUploaderClass * klass) -{ -#line 752 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - publishing_picasa_uploader_parent_class = g_type_class_peek_parent (klass); -#line 752 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - ((PublishingRESTSupportBatchUploaderClass *) klass)->finalize = publishing_picasa_uploader_finalize; -#line 752 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - g_type_class_add_private (klass, sizeof (PublishingPicasaUploaderPrivate)); -#line 752 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - ((PublishingRESTSupportBatchUploaderClass *) klass)->create_transaction = (PublishingRESTSupportTransaction* (*) (PublishingRESTSupportBatchUploader *, SpitPublishingPublishable*)) publishing_picasa_uploader_real_create_transaction; -#line 6834 "PicasaPublishing.c" -} - - -static void -publishing_picasa_uploader_instance_init (PublishingPicasaUploader * self) -{ -#line 752 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - self->priv = PUBLISHING_PICASA_UPLOADER_GET_PRIVATE (self); -#line 6843 "PicasaPublishing.c" -} - - -static void -publishing_picasa_uploader_finalize (PublishingRESTSupportBatchUploader * obj) -{ - PublishingPicasaUploader * self; -#line 752 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, PUBLISHING_PICASA_TYPE_UPLOADER, PublishingPicasaUploader); -#line 753 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _publishing_picasa_publishing_parameters_unref0 (self->priv->parameters); -#line 752 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - PUBLISHING_REST_SUPPORT_BATCH_UPLOADER_CLASS (publishing_picasa_uploader_parent_class)->finalize (obj); -#line 6857 "PicasaPublishing.c" -} - - -GType -publishing_picasa_uploader_get_type (void) -{ - static volatile gsize publishing_picasa_uploader_type_id__volatile = 0; - if (g_once_init_enter (&publishing_picasa_uploader_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (PublishingPicasaUploaderClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) publishing_picasa_uploader_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PublishingPicasaUploader), 0, (GInstanceInitFunc) publishing_picasa_uploader_instance_init, NULL }; - GType publishing_picasa_uploader_type_id; - publishing_picasa_uploader_type_id = g_type_register_static (PUBLISHING_REST_SUPPORT_TYPE_BATCH_UPLOADER, "PublishingPicasaUploader", &g_define_type_info, 0); - g_once_init_leave (&publishing_picasa_uploader_type_id__volatile, publishing_picasa_uploader_type_id); - } - return publishing_picasa_uploader_type_id__volatile; -} - - -static void -_vala_array_destroy (gpointer array, - gint array_length, - GDestroyNotify destroy_func) -{ - if ((array != NULL) && (destroy_func != NULL)) { - int i; - for (i = 0; i < array_length; i = i + 1) { - if (((gpointer*) array)[i] != NULL) { - destroy_func (((gpointer*) array)[i]); - } - } - } -} - - -static void -_vala_array_free (gpointer array, - gint array_length, - GDestroyNotify destroy_func) -{ - _vala_array_destroy (array, array_length, destroy_func); - g_free (array); -} - - -static gint -_vala_array_length (gpointer array) -{ - int length; - length = 0; - if (array) { - while (((gpointer*) array)[length]) { - length++; - } - } - return length; -} - - - diff --git a/plugins/shotwell-publishing/PiwigoPublishing.c b/plugins/shotwell-publishing/PiwigoPublishing.c deleted file mode 100644 index e066269..0000000 --- a/plugins/shotwell-publishing/PiwigoPublishing.c +++ /dev/null @@ -1,13709 +0,0 @@ -/* PiwigoPublishing.c generated by valac 0.40.4, the Vala compiler - * generated from PiwigoPublishing.vala, do not modify */ - -/* Copyright 2016 Software Freedom Conservancy Inc. - * - * This software is licensed under the GNU Lesser General Public License - * (version 2.1 or later). See the COPYING file in this distribution. - */ - - -#include -#include -#include -#include -#include -#include -#include -#include "shotwell-plugin-common.h" -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include - - -#define TYPE_PIWIGO_SERVICE (piwigo_service_get_type ()) -#define PIWIGO_SERVICE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PIWIGO_SERVICE, PiwigoService)) -#define PIWIGO_SERVICE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PIWIGO_SERVICE, PiwigoServiceClass)) -#define IS_PIWIGO_SERVICE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PIWIGO_SERVICE)) -#define IS_PIWIGO_SERVICE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PIWIGO_SERVICE)) -#define PIWIGO_SERVICE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PIWIGO_SERVICE, PiwigoServiceClass)) - -typedef struct _PiwigoService PiwigoService; -typedef struct _PiwigoServiceClass PiwigoServiceClass; -typedef struct _PiwigoServicePrivate PiwigoServicePrivate; -enum { - PIWIGO_SERVICE_0_PROPERTY, - PIWIGO_SERVICE_NUM_PROPERTIES -}; -static GParamSpec* piwigo_service_properties[PIWIGO_SERVICE_NUM_PROPERTIES]; -#define _g_free0(var) (var = (g_free (var), NULL)) - -#define PUBLISHING_PIWIGO_TYPE_PIWIGO_PUBLISHER (publishing_piwigo_piwigo_publisher_get_type ()) -#define PUBLISHING_PIWIGO_PIWIGO_PUBLISHER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_PIWIGO_TYPE_PIWIGO_PUBLISHER, PublishingPiwigoPiwigoPublisher)) -#define PUBLISHING_PIWIGO_PIWIGO_PUBLISHER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_PIWIGO_TYPE_PIWIGO_PUBLISHER, PublishingPiwigoPiwigoPublisherClass)) -#define PUBLISHING_PIWIGO_IS_PIWIGO_PUBLISHER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_PIWIGO_TYPE_PIWIGO_PUBLISHER)) -#define PUBLISHING_PIWIGO_IS_PIWIGO_PUBLISHER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_PIWIGO_TYPE_PIWIGO_PUBLISHER)) -#define PUBLISHING_PIWIGO_PIWIGO_PUBLISHER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_PIWIGO_TYPE_PIWIGO_PUBLISHER, PublishingPiwigoPiwigoPublisherClass)) - -typedef struct _PublishingPiwigoPiwigoPublisher PublishingPiwigoPiwigoPublisher; -typedef struct _PublishingPiwigoPiwigoPublisherClass PublishingPiwigoPiwigoPublisherClass; - -#define PUBLISHING_PIWIGO_TYPE_CATEGORY (publishing_piwigo_category_get_type ()) -#define PUBLISHING_PIWIGO_CATEGORY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_PIWIGO_TYPE_CATEGORY, PublishingPiwigoCategory)) -#define PUBLISHING_PIWIGO_CATEGORY_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_PIWIGO_TYPE_CATEGORY, PublishingPiwigoCategoryClass)) -#define PUBLISHING_PIWIGO_IS_CATEGORY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_PIWIGO_TYPE_CATEGORY)) -#define PUBLISHING_PIWIGO_IS_CATEGORY_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_PIWIGO_TYPE_CATEGORY)) -#define PUBLISHING_PIWIGO_CATEGORY_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_PIWIGO_TYPE_CATEGORY, PublishingPiwigoCategoryClass)) - -typedef struct _PublishingPiwigoCategory PublishingPiwigoCategory; -typedef struct _PublishingPiwigoCategoryClass PublishingPiwigoCategoryClass; -typedef struct _PublishingPiwigoCategoryPrivate PublishingPiwigoCategoryPrivate; -typedef struct _PublishingPiwigoParamSpecCategory PublishingPiwigoParamSpecCategory; - -#define PUBLISHING_PIWIGO_TYPE_PERMISSION_LEVEL (publishing_piwigo_permission_level_get_type ()) -#define PUBLISHING_PIWIGO_PERMISSION_LEVEL(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_PIWIGO_TYPE_PERMISSION_LEVEL, PublishingPiwigoPermissionLevel)) -#define PUBLISHING_PIWIGO_PERMISSION_LEVEL_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_PIWIGO_TYPE_PERMISSION_LEVEL, PublishingPiwigoPermissionLevelClass)) -#define PUBLISHING_PIWIGO_IS_PERMISSION_LEVEL(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_PIWIGO_TYPE_PERMISSION_LEVEL)) -#define PUBLISHING_PIWIGO_IS_PERMISSION_LEVEL_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_PIWIGO_TYPE_PERMISSION_LEVEL)) -#define PUBLISHING_PIWIGO_PERMISSION_LEVEL_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_PIWIGO_TYPE_PERMISSION_LEVEL, PublishingPiwigoPermissionLevelClass)) - -typedef struct _PublishingPiwigoPermissionLevel PublishingPiwigoPermissionLevel; -typedef struct _PublishingPiwigoPermissionLevelClass PublishingPiwigoPermissionLevelClass; -typedef struct _PublishingPiwigoPermissionLevelPrivate PublishingPiwigoPermissionLevelPrivate; -typedef struct _PublishingPiwigoParamSpecPermissionLevel PublishingPiwigoParamSpecPermissionLevel; - -#define PUBLISHING_PIWIGO_TYPE_SIZE_ENTRY (publishing_piwigo_size_entry_get_type ()) -#define PUBLISHING_PIWIGO_SIZE_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_PIWIGO_TYPE_SIZE_ENTRY, PublishingPiwigoSizeEntry)) -#define PUBLISHING_PIWIGO_SIZE_ENTRY_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_PIWIGO_TYPE_SIZE_ENTRY, PublishingPiwigoSizeEntryClass)) -#define PUBLISHING_PIWIGO_IS_SIZE_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_PIWIGO_TYPE_SIZE_ENTRY)) -#define PUBLISHING_PIWIGO_IS_SIZE_ENTRY_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_PIWIGO_TYPE_SIZE_ENTRY)) -#define PUBLISHING_PIWIGO_SIZE_ENTRY_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_PIWIGO_TYPE_SIZE_ENTRY, PublishingPiwigoSizeEntryClass)) - -typedef struct _PublishingPiwigoSizeEntry PublishingPiwigoSizeEntry; -typedef struct _PublishingPiwigoSizeEntryClass PublishingPiwigoSizeEntryClass; -typedef struct _PublishingPiwigoSizeEntryPrivate PublishingPiwigoSizeEntryPrivate; -typedef struct _PublishingPiwigoParamSpecSizeEntry PublishingPiwigoParamSpecSizeEntry; - -#define PUBLISHING_PIWIGO_TYPE_PUBLISHING_PARAMETERS (publishing_piwigo_publishing_parameters_get_type ()) -#define PUBLISHING_PIWIGO_PUBLISHING_PARAMETERS(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_PIWIGO_TYPE_PUBLISHING_PARAMETERS, PublishingPiwigoPublishingParameters)) -#define PUBLISHING_PIWIGO_PUBLISHING_PARAMETERS_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_PIWIGO_TYPE_PUBLISHING_PARAMETERS, PublishingPiwigoPublishingParametersClass)) -#define PUBLISHING_PIWIGO_IS_PUBLISHING_PARAMETERS(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_PIWIGO_TYPE_PUBLISHING_PARAMETERS)) -#define PUBLISHING_PIWIGO_IS_PUBLISHING_PARAMETERS_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_PIWIGO_TYPE_PUBLISHING_PARAMETERS)) -#define PUBLISHING_PIWIGO_PUBLISHING_PARAMETERS_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_PIWIGO_TYPE_PUBLISHING_PARAMETERS, PublishingPiwigoPublishingParametersClass)) - -typedef struct _PublishingPiwigoPublishingParameters PublishingPiwigoPublishingParameters; -typedef struct _PublishingPiwigoPublishingParametersClass PublishingPiwigoPublishingParametersClass; -typedef struct _PublishingPiwigoPublishingParametersPrivate PublishingPiwigoPublishingParametersPrivate; -#define _publishing_piwigo_category_unref0(var) ((var == NULL) ? NULL : (var = (publishing_piwigo_category_unref (var), NULL))) -#define _publishing_piwigo_permission_level_unref0(var) ((var == NULL) ? NULL : (var = (publishing_piwigo_permission_level_unref (var), NULL))) -#define _publishing_piwigo_size_entry_unref0(var) ((var == NULL) ? NULL : (var = (publishing_piwigo_size_entry_unref (var), NULL))) -typedef struct _PublishingPiwigoParamSpecPublishingParameters PublishingPiwigoParamSpecPublishingParameters; -typedef struct _PublishingPiwigoPiwigoPublisherPrivate PublishingPiwigoPiwigoPublisherPrivate; - -#define PUBLISHING_PIWIGO_TYPE_SESSION (publishing_piwigo_session_get_type ()) -#define PUBLISHING_PIWIGO_SESSION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_PIWIGO_TYPE_SESSION, PublishingPiwigoSession)) -#define PUBLISHING_PIWIGO_SESSION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_PIWIGO_TYPE_SESSION, PublishingPiwigoSessionClass)) -#define PUBLISHING_PIWIGO_IS_SESSION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_PIWIGO_TYPE_SESSION)) -#define PUBLISHING_PIWIGO_IS_SESSION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_PIWIGO_TYPE_SESSION)) -#define PUBLISHING_PIWIGO_SESSION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_PIWIGO_TYPE_SESSION, PublishingPiwigoSessionClass)) - -typedef struct _PublishingPiwigoSession PublishingPiwigoSession; -typedef struct _PublishingPiwigoSessionClass PublishingPiwigoSessionClass; -enum { - PUBLISHING_PIWIGO_PIWIGO_PUBLISHER_0_PROPERTY, - PUBLISHING_PIWIGO_PIWIGO_PUBLISHER_NUM_PROPERTIES -}; -static GParamSpec* publishing_piwigo_piwigo_publisher_properties[PUBLISHING_PIWIGO_PIWIGO_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 _publishing_piwigo_publishing_parameters_unref0(var) ((var == NULL) ? NULL : (var = (publishing_piwigo_publishing_parameters_unref (var), NULL))) - -#define PUBLISHING_PIWIGO_AUTHENTICATION_PANE_TYPE_MODE (publishing_piwigo_authentication_pane_mode_get_type ()) - -#define PUBLISHING_PIWIGO_TYPE_AUTHENTICATION_PANE (publishing_piwigo_authentication_pane_get_type ()) -#define PUBLISHING_PIWIGO_AUTHENTICATION_PANE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_PIWIGO_TYPE_AUTHENTICATION_PANE, PublishingPiwigoAuthenticationPane)) -#define PUBLISHING_PIWIGO_AUTHENTICATION_PANE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_PIWIGO_TYPE_AUTHENTICATION_PANE, PublishingPiwigoAuthenticationPaneClass)) -#define PUBLISHING_PIWIGO_IS_AUTHENTICATION_PANE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_PIWIGO_TYPE_AUTHENTICATION_PANE)) -#define PUBLISHING_PIWIGO_IS_AUTHENTICATION_PANE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_PIWIGO_TYPE_AUTHENTICATION_PANE)) -#define PUBLISHING_PIWIGO_AUTHENTICATION_PANE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_PIWIGO_TYPE_AUTHENTICATION_PANE, PublishingPiwigoAuthenticationPaneClass)) - -typedef struct _PublishingPiwigoAuthenticationPane PublishingPiwigoAuthenticationPane; -typedef struct _PublishingPiwigoAuthenticationPaneClass PublishingPiwigoAuthenticationPaneClass; - -#define PUBLISHING_PIWIGO_TYPE_TRANSACTION (publishing_piwigo_transaction_get_type ()) -#define PUBLISHING_PIWIGO_TRANSACTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_PIWIGO_TYPE_TRANSACTION, PublishingPiwigoTransaction)) -#define PUBLISHING_PIWIGO_TRANSACTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_PIWIGO_TYPE_TRANSACTION, PublishingPiwigoTransactionClass)) -#define PUBLISHING_PIWIGO_IS_TRANSACTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_PIWIGO_TYPE_TRANSACTION)) -#define PUBLISHING_PIWIGO_IS_TRANSACTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_PIWIGO_TYPE_TRANSACTION)) -#define PUBLISHING_PIWIGO_TRANSACTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_PIWIGO_TYPE_TRANSACTION, PublishingPiwigoTransactionClass)) - -typedef struct _PublishingPiwigoTransaction PublishingPiwigoTransaction; -typedef struct _PublishingPiwigoTransactionClass PublishingPiwigoTransactionClass; - -#define PUBLISHING_PIWIGO_TYPE_SESSION_LOGIN_TRANSACTION (publishing_piwigo_session_login_transaction_get_type ()) -#define PUBLISHING_PIWIGO_SESSION_LOGIN_TRANSACTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_PIWIGO_TYPE_SESSION_LOGIN_TRANSACTION, PublishingPiwigoSessionLoginTransaction)) -#define PUBLISHING_PIWIGO_SESSION_LOGIN_TRANSACTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_PIWIGO_TYPE_SESSION_LOGIN_TRANSACTION, PublishingPiwigoSessionLoginTransactionClass)) -#define PUBLISHING_PIWIGO_IS_SESSION_LOGIN_TRANSACTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_PIWIGO_TYPE_SESSION_LOGIN_TRANSACTION)) -#define PUBLISHING_PIWIGO_IS_SESSION_LOGIN_TRANSACTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_PIWIGO_TYPE_SESSION_LOGIN_TRANSACTION)) -#define PUBLISHING_PIWIGO_SESSION_LOGIN_TRANSACTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_PIWIGO_TYPE_SESSION_LOGIN_TRANSACTION, PublishingPiwigoSessionLoginTransactionClass)) - -typedef struct _PublishingPiwigoSessionLoginTransaction PublishingPiwigoSessionLoginTransaction; -typedef struct _PublishingPiwigoSessionLoginTransactionClass PublishingPiwigoSessionLoginTransactionClass; - -#define PUBLISHING_PIWIGO_TYPE_SSL_ERROR_PANE (publishing_piwigo_ssl_error_pane_get_type ()) -#define PUBLISHING_PIWIGO_SSL_ERROR_PANE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_PIWIGO_TYPE_SSL_ERROR_PANE, PublishingPiwigoSSLErrorPane)) -#define PUBLISHING_PIWIGO_SSL_ERROR_PANE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_PIWIGO_TYPE_SSL_ERROR_PANE, PublishingPiwigoSSLErrorPaneClass)) -#define PUBLISHING_PIWIGO_IS_SSL_ERROR_PANE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_PIWIGO_TYPE_SSL_ERROR_PANE)) -#define PUBLISHING_PIWIGO_IS_SSL_ERROR_PANE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_PIWIGO_TYPE_SSL_ERROR_PANE)) -#define PUBLISHING_PIWIGO_SSL_ERROR_PANE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_PIWIGO_TYPE_SSL_ERROR_PANE, PublishingPiwigoSSLErrorPaneClass)) - -typedef struct _PublishingPiwigoSSLErrorPane PublishingPiwigoSSLErrorPane; -typedef struct _PublishingPiwigoSSLErrorPaneClass PublishingPiwigoSSLErrorPaneClass; -#define __vala_SoupURI_free0(var) ((var == NULL) ? NULL : (var = (_vala_SoupURI_free (var), NULL))) -#define _publishing_rest_support_transaction_unref0(var) ((var == NULL) ? NULL : (var = (publishing_rest_support_transaction_unref (var), NULL))) -#define _g_error_free0(var) ((var == NULL) ? NULL : (var = (g_error_free (var), NULL))) -#define _publishing_rest_support_xml_document_unref0(var) ((var == NULL) ? NULL : (var = (publishing_rest_support_xml_document_unref (var), NULL))) - -#define PUBLISHING_PIWIGO_TYPE_SESSION_GET_STATUS_TRANSACTION (publishing_piwigo_session_get_status_transaction_get_type ()) -#define PUBLISHING_PIWIGO_SESSION_GET_STATUS_TRANSACTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_PIWIGO_TYPE_SESSION_GET_STATUS_TRANSACTION, PublishingPiwigoSessionGetStatusTransaction)) -#define PUBLISHING_PIWIGO_SESSION_GET_STATUS_TRANSACTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_PIWIGO_TYPE_SESSION_GET_STATUS_TRANSACTION, PublishingPiwigoSessionGetStatusTransactionClass)) -#define PUBLISHING_PIWIGO_IS_SESSION_GET_STATUS_TRANSACTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_PIWIGO_TYPE_SESSION_GET_STATUS_TRANSACTION)) -#define PUBLISHING_PIWIGO_IS_SESSION_GET_STATUS_TRANSACTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_PIWIGO_TYPE_SESSION_GET_STATUS_TRANSACTION)) -#define PUBLISHING_PIWIGO_SESSION_GET_STATUS_TRANSACTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_PIWIGO_TYPE_SESSION_GET_STATUS_TRANSACTION, PublishingPiwigoSessionGetStatusTransactionClass)) - -typedef struct _PublishingPiwigoSessionGetStatusTransaction PublishingPiwigoSessionGetStatusTransaction; -typedef struct _PublishingPiwigoSessionGetStatusTransactionClass PublishingPiwigoSessionGetStatusTransactionClass; - -#define PUBLISHING_PIWIGO_TYPE_CATEGORIES_GET_LIST_TRANSACTION (publishing_piwigo_categories_get_list_transaction_get_type ()) -#define PUBLISHING_PIWIGO_CATEGORIES_GET_LIST_TRANSACTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_PIWIGO_TYPE_CATEGORIES_GET_LIST_TRANSACTION, PublishingPiwigoCategoriesGetListTransaction)) -#define PUBLISHING_PIWIGO_CATEGORIES_GET_LIST_TRANSACTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_PIWIGO_TYPE_CATEGORIES_GET_LIST_TRANSACTION, PublishingPiwigoCategoriesGetListTransactionClass)) -#define PUBLISHING_PIWIGO_IS_CATEGORIES_GET_LIST_TRANSACTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_PIWIGO_TYPE_CATEGORIES_GET_LIST_TRANSACTION)) -#define PUBLISHING_PIWIGO_IS_CATEGORIES_GET_LIST_TRANSACTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_PIWIGO_TYPE_CATEGORIES_GET_LIST_TRANSACTION)) -#define PUBLISHING_PIWIGO_CATEGORIES_GET_LIST_TRANSACTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_PIWIGO_TYPE_CATEGORIES_GET_LIST_TRANSACTION, PublishingPiwigoCategoriesGetListTransactionClass)) - -typedef struct _PublishingPiwigoCategoriesGetListTransaction PublishingPiwigoCategoriesGetListTransaction; -typedef struct _PublishingPiwigoCategoriesGetListTransactionClass PublishingPiwigoCategoriesGetListTransactionClass; -#define _g_string_free0(var) ((var == NULL) ? NULL : (var = (g_string_free (var, TRUE), NULL))) - -#define PUBLISHING_PIWIGO_TYPE_PUBLISHING_OPTIONS_PANE (publishing_piwigo_publishing_options_pane_get_type ()) -#define PUBLISHING_PIWIGO_PUBLISHING_OPTIONS_PANE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_PIWIGO_TYPE_PUBLISHING_OPTIONS_PANE, PublishingPiwigoPublishingOptionsPane)) -#define PUBLISHING_PIWIGO_PUBLISHING_OPTIONS_PANE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_PIWIGO_TYPE_PUBLISHING_OPTIONS_PANE, PublishingPiwigoPublishingOptionsPaneClass)) -#define PUBLISHING_PIWIGO_IS_PUBLISHING_OPTIONS_PANE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_PIWIGO_TYPE_PUBLISHING_OPTIONS_PANE)) -#define PUBLISHING_PIWIGO_IS_PUBLISHING_OPTIONS_PANE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_PIWIGO_TYPE_PUBLISHING_OPTIONS_PANE)) -#define PUBLISHING_PIWIGO_PUBLISHING_OPTIONS_PANE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_PIWIGO_TYPE_PUBLISHING_OPTIONS_PANE, PublishingPiwigoPublishingOptionsPaneClass)) - -typedef struct _PublishingPiwigoPublishingOptionsPane PublishingPiwigoPublishingOptionsPane; -typedef struct _PublishingPiwigoPublishingOptionsPaneClass PublishingPiwigoPublishingOptionsPaneClass; - -#define PUBLISHING_PIWIGO_TYPE_SESSION_LOGOUT_TRANSACTION (publishing_piwigo_session_logout_transaction_get_type ()) -#define PUBLISHING_PIWIGO_SESSION_LOGOUT_TRANSACTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_PIWIGO_TYPE_SESSION_LOGOUT_TRANSACTION, PublishingPiwigoSessionLogoutTransaction)) -#define PUBLISHING_PIWIGO_SESSION_LOGOUT_TRANSACTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_PIWIGO_TYPE_SESSION_LOGOUT_TRANSACTION, PublishingPiwigoSessionLogoutTransactionClass)) -#define PUBLISHING_PIWIGO_IS_SESSION_LOGOUT_TRANSACTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_PIWIGO_TYPE_SESSION_LOGOUT_TRANSACTION)) -#define PUBLISHING_PIWIGO_IS_SESSION_LOGOUT_TRANSACTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_PIWIGO_TYPE_SESSION_LOGOUT_TRANSACTION)) -#define PUBLISHING_PIWIGO_SESSION_LOGOUT_TRANSACTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_PIWIGO_TYPE_SESSION_LOGOUT_TRANSACTION, PublishingPiwigoSessionLogoutTransactionClass)) - -typedef struct _PublishingPiwigoSessionLogoutTransaction PublishingPiwigoSessionLogoutTransaction; -typedef struct _PublishingPiwigoSessionLogoutTransactionClass PublishingPiwigoSessionLogoutTransactionClass; - -#define PUBLISHING_PIWIGO_TYPE_CATEGORIES_ADD_TRANSACTION (publishing_piwigo_categories_add_transaction_get_type ()) -#define PUBLISHING_PIWIGO_CATEGORIES_ADD_TRANSACTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_PIWIGO_TYPE_CATEGORIES_ADD_TRANSACTION, PublishingPiwigoCategoriesAddTransaction)) -#define PUBLISHING_PIWIGO_CATEGORIES_ADD_TRANSACTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_PIWIGO_TYPE_CATEGORIES_ADD_TRANSACTION, PublishingPiwigoCategoriesAddTransactionClass)) -#define PUBLISHING_PIWIGO_IS_CATEGORIES_ADD_TRANSACTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_PIWIGO_TYPE_CATEGORIES_ADD_TRANSACTION)) -#define PUBLISHING_PIWIGO_IS_CATEGORIES_ADD_TRANSACTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_PIWIGO_TYPE_CATEGORIES_ADD_TRANSACTION)) -#define PUBLISHING_PIWIGO_CATEGORIES_ADD_TRANSACTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_PIWIGO_TYPE_CATEGORIES_ADD_TRANSACTION, PublishingPiwigoCategoriesAddTransactionClass)) - -typedef struct _PublishingPiwigoCategoriesAddTransaction PublishingPiwigoCategoriesAddTransaction; -typedef struct _PublishingPiwigoCategoriesAddTransactionClass PublishingPiwigoCategoriesAddTransactionClass; - -#define PUBLISHING_PIWIGO_TYPE_UPLOADER (publishing_piwigo_uploader_get_type ()) -#define PUBLISHING_PIWIGO_UPLOADER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_PIWIGO_TYPE_UPLOADER, PublishingPiwigoUploader)) -#define PUBLISHING_PIWIGO_UPLOADER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_PIWIGO_TYPE_UPLOADER, PublishingPiwigoUploaderClass)) -#define PUBLISHING_PIWIGO_IS_UPLOADER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_PIWIGO_TYPE_UPLOADER)) -#define PUBLISHING_PIWIGO_IS_UPLOADER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_PIWIGO_TYPE_UPLOADER)) -#define PUBLISHING_PIWIGO_UPLOADER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_PIWIGO_TYPE_UPLOADER, PublishingPiwigoUploaderClass)) - -typedef struct _PublishingPiwigoUploader PublishingPiwigoUploader; -typedef struct _PublishingPiwigoUploaderClass PublishingPiwigoUploaderClass; -#define _publishing_rest_support_batch_uploader_unref0(var) ((var == NULL) ? NULL : (var = (publishing_rest_support_batch_uploader_unref (var), NULL))) -#define __vala_SoupCookie_free0(var) ((var == NULL) ? NULL : (var = (_vala_SoupCookie_free (var), NULL))) -#define __g_slist_free___vala_SoupCookie_free0_0(var) ((var == NULL) ? NULL : (var = (_g_slist_free___vala_SoupCookie_free0_ (var), NULL))) -typedef struct _PublishingPiwigoUploaderPrivate PublishingPiwigoUploaderPrivate; - -#define PUBLISHING_PIWIGO_TYPE_IMAGES_ADD_TRANSACTION (publishing_piwigo_images_add_transaction_get_type ()) -#define PUBLISHING_PIWIGO_IMAGES_ADD_TRANSACTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_PIWIGO_TYPE_IMAGES_ADD_TRANSACTION, PublishingPiwigoImagesAddTransaction)) -#define PUBLISHING_PIWIGO_IMAGES_ADD_TRANSACTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_PIWIGO_TYPE_IMAGES_ADD_TRANSACTION, PublishingPiwigoImagesAddTransactionClass)) -#define PUBLISHING_PIWIGO_IS_IMAGES_ADD_TRANSACTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_PIWIGO_TYPE_IMAGES_ADD_TRANSACTION)) -#define PUBLISHING_PIWIGO_IS_IMAGES_ADD_TRANSACTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_PIWIGO_TYPE_IMAGES_ADD_TRANSACTION)) -#define PUBLISHING_PIWIGO_IMAGES_ADD_TRANSACTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_PIWIGO_TYPE_IMAGES_ADD_TRANSACTION, PublishingPiwigoImagesAddTransactionClass)) - -typedef struct _PublishingPiwigoImagesAddTransaction PublishingPiwigoImagesAddTransaction; -typedef struct _PublishingPiwigoImagesAddTransactionClass PublishingPiwigoImagesAddTransactionClass; -typedef struct _PublishingPiwigoSSLErrorPanePrivate PublishingPiwigoSSLErrorPanePrivate; -enum { - PUBLISHING_PIWIGO_SSL_ERROR_PANE_0_PROPERTY, - PUBLISHING_PIWIGO_SSL_ERROR_PANE_HOST_PROPERTY, - PUBLISHING_PIWIGO_SSL_ERROR_PANE_CERT_PROPERTY, - PUBLISHING_PIWIGO_SSL_ERROR_PANE_ERROR_TEXT_PROPERTY, - PUBLISHING_PIWIGO_SSL_ERROR_PANE_NUM_PROPERTIES -}; -static GParamSpec* publishing_piwigo_ssl_error_pane_properties[PUBLISHING_PIWIGO_SSL_ERROR_PANE_NUM_PROPERTIES]; -#define _g_byte_array_unref0(var) ((var == NULL) ? NULL : (var = (g_byte_array_unref (var), NULL))) -enum { - PUBLISHING_PIWIGO_SSL_ERROR_PANE_PROCEED_SIGNAL, - PUBLISHING_PIWIGO_SSL_ERROR_PANE_NUM_SIGNALS -}; -static guint publishing_piwigo_ssl_error_pane_signals[PUBLISHING_PIWIGO_SSL_ERROR_PANE_NUM_SIGNALS] = {0}; -typedef struct _PublishingPiwigoAuthenticationPanePrivate PublishingPiwigoAuthenticationPanePrivate; -enum { - PUBLISHING_PIWIGO_AUTHENTICATION_PANE_0_PROPERTY, - PUBLISHING_PIWIGO_AUTHENTICATION_PANE_MODE_PROPERTY, - PUBLISHING_PIWIGO_AUTHENTICATION_PANE_PUBLISHER_PROPERTY, - PUBLISHING_PIWIGO_AUTHENTICATION_PANE_NUM_PROPERTIES -}; -static GParamSpec* publishing_piwigo_authentication_pane_properties[PUBLISHING_PIWIGO_AUTHENTICATION_PANE_NUM_PROPERTIES]; -enum { - PUBLISHING_PIWIGO_AUTHENTICATION_PANE_LOGIN_SIGNAL, - PUBLISHING_PIWIGO_AUTHENTICATION_PANE_NUM_SIGNALS -}; -static guint publishing_piwigo_authentication_pane_signals[PUBLISHING_PIWIGO_AUTHENTICATION_PANE_NUM_SIGNALS] = {0}; -typedef struct _PublishingPiwigoPublishingOptionsPanePrivate PublishingPiwigoPublishingOptionsPanePrivate; -enum { - PUBLISHING_PIWIGO_PUBLISHING_OPTIONS_PANE_0_PROPERTY, - PUBLISHING_PIWIGO_PUBLISHING_OPTIONS_PANE_LAST_CATEGORY_PROPERTY, - PUBLISHING_PIWIGO_PUBLISHING_OPTIONS_PANE_LAST_PERMISSION_LEVEL_PROPERTY, - PUBLISHING_PIWIGO_PUBLISHING_OPTIONS_PANE_LAST_PHOTO_SIZE_PROPERTY, - PUBLISHING_PIWIGO_PUBLISHING_OPTIONS_PANE_LAST_TITLE_AS_COMMENT_PROPERTY, - PUBLISHING_PIWIGO_PUBLISHING_OPTIONS_PANE_LAST_NO_UPLOAD_TAGS_PROPERTY, - PUBLISHING_PIWIGO_PUBLISHING_OPTIONS_PANE_STRIP_METADATA_ENABLED_PROPERTY, - PUBLISHING_PIWIGO_PUBLISHING_OPTIONS_PANE_EXISTING_CATEGORIES_PROPERTY, - PUBLISHING_PIWIGO_PUBLISHING_OPTIONS_PANE_DEFAULT_COMMENT_PROPERTY, - PUBLISHING_PIWIGO_PUBLISHING_OPTIONS_PANE_NUM_PROPERTIES -}; -static GParamSpec* publishing_piwigo_publishing_options_pane_properties[PUBLISHING_PIWIGO_PUBLISHING_OPTIONS_PANE_NUM_PROPERTIES]; -enum { - PUBLISHING_PIWIGO_PUBLISHING_OPTIONS_PANE_PUBLISH_SIGNAL, - PUBLISHING_PIWIGO_PUBLISHING_OPTIONS_PANE_LOGOUT_SIGNAL, - PUBLISHING_PIWIGO_PUBLISHING_OPTIONS_PANE_NUM_SIGNALS -}; -static guint publishing_piwigo_publishing_options_pane_signals[PUBLISHING_PIWIGO_PUBLISHING_OPTIONS_PANE_NUM_SIGNALS] = {0}; -typedef struct _PublishingPiwigoSessionPrivate PublishingPiwigoSessionPrivate; -typedef struct _PublishingPiwigoTransactionPrivate PublishingPiwigoTransactionPrivate; -typedef struct _PublishingPiwigoSessionLoginTransactionPrivate PublishingPiwigoSessionLoginTransactionPrivate; -#define _publishing_rest_support_argument_unref0(var) ((var == NULL) ? NULL : (var = (publishing_rest_support_argument_unref (var), NULL))) -typedef struct _PublishingPiwigoSessionGetStatusTransactionPrivate PublishingPiwigoSessionGetStatusTransactionPrivate; -typedef struct _PublishingPiwigoCategoriesGetListTransactionPrivate PublishingPiwigoCategoriesGetListTransactionPrivate; -typedef struct _PublishingPiwigoSessionLogoutTransactionPrivate PublishingPiwigoSessionLogoutTransactionPrivate; -typedef struct _PublishingPiwigoCategoriesAddTransactionPrivate PublishingPiwigoCategoriesAddTransactionPrivate; -typedef struct _PublishingPiwigoImagesAddTransactionPrivate PublishingPiwigoImagesAddTransactionPrivate; -#define _g_hash_table_unref0(var) ((var == NULL) ? NULL : (var = (g_hash_table_unref (var), NULL))) -#define _vala_assert(expr, msg) if G_LIKELY (expr) ; else g_assertion_message_expr (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg); -#define _vala_return_if_fail(expr, msg) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return; } -#define _vala_return_val_if_fail(expr, msg, val) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return val; } -#define _vala_warn_if_fail(expr, msg) if G_LIKELY (expr) ; else g_warn_message (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg); - -struct _PiwigoService { - GObject parent_instance; - PiwigoServicePrivate * priv; -}; - -struct _PiwigoServiceClass { - GObjectClass parent_class; -}; - -struct _PublishingPiwigoCategory { - GTypeInstance parent_instance; - volatile int ref_count; - PublishingPiwigoCategoryPrivate * priv; - gint id; - gchar* name; - gchar* comment; - gchar* display_name; - gchar* uppercats; -}; - -struct _PublishingPiwigoCategoryClass { - GTypeClass parent_class; - void (*finalize) (PublishingPiwigoCategory *self); -}; - -struct _PublishingPiwigoParamSpecCategory { - GParamSpec parent_instance; -}; - -struct _PublishingPiwigoPermissionLevel { - GTypeInstance parent_instance; - volatile int ref_count; - PublishingPiwigoPermissionLevelPrivate * priv; - gint id; - gchar* name; -}; - -struct _PublishingPiwigoPermissionLevelClass { - GTypeClass parent_class; - void (*finalize) (PublishingPiwigoPermissionLevel *self); -}; - -struct _PublishingPiwigoParamSpecPermissionLevel { - GParamSpec parent_instance; -}; - -struct _PublishingPiwigoSizeEntry { - GTypeInstance parent_instance; - volatile int ref_count; - PublishingPiwigoSizeEntryPrivate * priv; - gint id; - gchar* name; -}; - -struct _PublishingPiwigoSizeEntryClass { - GTypeClass parent_class; - void (*finalize) (PublishingPiwigoSizeEntry *self); -}; - -struct _PublishingPiwigoParamSpecSizeEntry { - GParamSpec parent_instance; -}; - -struct _PublishingPiwigoPublishingParameters { - GTypeInstance parent_instance; - volatile int ref_count; - PublishingPiwigoPublishingParametersPrivate * priv; - PublishingPiwigoCategory* category; - PublishingPiwigoPermissionLevel* perm_level; - PublishingPiwigoSizeEntry* photo_size; - gboolean title_as_comment; - gboolean no_upload_tags; -}; - -struct _PublishingPiwigoPublishingParametersClass { - GTypeClass parent_class; - void (*finalize) (PublishingPiwigoPublishingParameters *self); -}; - -struct _PublishingPiwigoParamSpecPublishingParameters { - GParamSpec parent_instance; -}; - -struct _PublishingPiwigoPiwigoPublisher { - GObject parent_instance; - PublishingPiwigoPiwigoPublisherPrivate * priv; -}; - -struct _PublishingPiwigoPiwigoPublisherClass { - GObjectClass parent_class; -}; - -struct _PublishingPiwigoPiwigoPublisherPrivate { - SpitPublishingService* service; - SpitPublishingPluginHost* host; - gboolean running; - gboolean strip_metadata; - PublishingPiwigoSession* session; - PublishingPiwigoCategory** categories; - gint categories_length1; - gint _categories_size_; - PublishingPiwigoPublishingParameters* parameters; - SpitPublishingProgressCallback progress_reporter; - gpointer progress_reporter_target; - GDestroyNotify progress_reporter_target_destroy_notify; -}; - -typedef enum { - PUBLISHING_PIWIGO_AUTHENTICATION_PANE_MODE_INTRO, - PUBLISHING_PIWIGO_AUTHENTICATION_PANE_MODE_FAILED_RETRY_URL, - PUBLISHING_PIWIGO_AUTHENTICATION_PANE_MODE_FAILED_RETRY_USER -} PublishingPiwigoAuthenticationPaneMode; - -struct _PublishingPiwigoUploader { - PublishingRESTSupportBatchUploader parent_instance; - PublishingPiwigoUploaderPrivate * priv; -}; - -struct _PublishingPiwigoUploaderClass { - PublishingRESTSupportBatchUploaderClass parent_class; -}; - -struct _PublishingPiwigoUploaderPrivate { - PublishingPiwigoPublishingParameters* parameters; -}; - -struct _PublishingPiwigoSSLErrorPane { - ShotwellPluginsCommonBuilderPane parent_instance; - PublishingPiwigoSSLErrorPanePrivate * priv; -}; - -struct _PublishingPiwigoSSLErrorPaneClass { - ShotwellPluginsCommonBuilderPaneClass parent_class; -}; - -struct _PublishingPiwigoSSLErrorPanePrivate { - gchar* _host; - GTlsCertificate* _cert; - gchar* _error_text; -}; - -struct _PublishingPiwigoAuthenticationPane { - ShotwellPluginsCommonBuilderPane parent_instance; - PublishingPiwigoAuthenticationPanePrivate * priv; -}; - -struct _PublishingPiwigoAuthenticationPaneClass { - ShotwellPluginsCommonBuilderPaneClass parent_class; -}; - -struct _PublishingPiwigoAuthenticationPanePrivate { - PublishingPiwigoAuthenticationPaneMode _mode; - PublishingPiwigoPiwigoPublisher* _publisher; - GtkEntry* url_entry; - GtkEntry* username_entry; - GtkEntry* password_entry; - GtkSwitch* remember_password_checkbutton; - GtkButton* login_button; -}; - -struct _PublishingPiwigoPublishingOptionsPane { - ShotwellPluginsCommonBuilderPane parent_instance; - PublishingPiwigoPublishingOptionsPanePrivate * priv; -}; - -struct _PublishingPiwigoPublishingOptionsPaneClass { - ShotwellPluginsCommonBuilderPaneClass parent_class; -}; - -struct _PublishingPiwigoPublishingOptionsPanePrivate { - GtkRadioButton* use_existing_radio; - GtkRadioButton* create_new_radio; - GtkComboBoxText* existing_categories_combo; - GtkEntry* new_category_entry; - GtkLabel* within_existing_label; - GtkComboBoxText* within_existing_combo; - GtkComboBoxText* perms_combo; - GtkComboBoxText* size_combo; - GtkCheckButton* strip_metadata_check; - GtkCheckButton* title_as_comment_check; - GtkCheckButton* no_upload_tags_check; - GtkButton* logout_button; - GtkButton* publish_button; - GtkTextView* album_comment; - GtkLabel* album_comment_label; - PublishingPiwigoPermissionLevel** perm_levels; - gint perm_levels_length1; - gint _perm_levels_size_; - PublishingPiwigoSizeEntry** photo_sizes; - gint photo_sizes_length1; - gint _photo_sizes_size_; - gint _last_category; - gint _last_permission_level; - gint _last_photo_size; - gboolean _last_title_as_comment; - gboolean _last_no_upload_tags; - gboolean _strip_metadata_enabled; - GeeList* _existing_categories; - gchar* _default_comment; -}; - -struct _PublishingPiwigoSession { - PublishingRESTSupportSession parent_instance; - PublishingPiwigoSessionPrivate * priv; -}; - -struct _PublishingPiwigoSessionClass { - PublishingRESTSupportSessionClass parent_class; -}; - -struct _PublishingPiwigoSessionPrivate { - gchar* pwg_url; - gchar* pwg_id; - gchar* username; -}; - -struct _PublishingPiwigoTransaction { - PublishingRESTSupportTransaction parent_instance; - PublishingPiwigoTransactionPrivate * priv; -}; - -struct _PublishingPiwigoTransactionClass { - PublishingRESTSupportTransactionClass parent_class; -}; - -struct _PublishingPiwigoSessionLoginTransaction { - PublishingPiwigoTransaction parent_instance; - PublishingPiwigoSessionLoginTransactionPrivate * priv; -}; - -struct _PublishingPiwigoSessionLoginTransactionClass { - PublishingPiwigoTransactionClass parent_class; -}; - -struct _PublishingPiwigoSessionGetStatusTransaction { - PublishingPiwigoTransaction parent_instance; - PublishingPiwigoSessionGetStatusTransactionPrivate * priv; -}; - -struct _PublishingPiwigoSessionGetStatusTransactionClass { - PublishingPiwigoTransactionClass parent_class; -}; - -struct _PublishingPiwigoCategoriesGetListTransaction { - PublishingPiwigoTransaction parent_instance; - PublishingPiwigoCategoriesGetListTransactionPrivate * priv; -}; - -struct _PublishingPiwigoCategoriesGetListTransactionClass { - PublishingPiwigoTransactionClass parent_class; -}; - -struct _PublishingPiwigoSessionLogoutTransaction { - PublishingPiwigoTransaction parent_instance; - PublishingPiwigoSessionLogoutTransactionPrivate * priv; -}; - -struct _PublishingPiwigoSessionLogoutTransactionClass { - PublishingPiwigoTransactionClass parent_class; -}; - -struct _PublishingPiwigoCategoriesAddTransaction { - PublishingPiwigoTransaction parent_instance; - PublishingPiwigoCategoriesAddTransactionPrivate * priv; -}; - -struct _PublishingPiwigoCategoriesAddTransactionClass { - PublishingPiwigoTransactionClass parent_class; -}; - -struct _PublishingPiwigoImagesAddTransaction { - PublishingRESTSupportUploadTransaction parent_instance; - PublishingPiwigoImagesAddTransactionPrivate * priv; -}; - -struct _PublishingPiwigoImagesAddTransactionClass { - PublishingRESTSupportUploadTransactionClass parent_class; -}; - -struct _PublishingPiwigoImagesAddTransactionPrivate { - PublishingPiwigoPublishingParameters* parameters; -}; - - -static gpointer piwigo_service_parent_class = NULL; -static GdkPixbuf** piwigo_service_icon_pixbuf_set; -static gint piwigo_service_icon_pixbuf_set_length1; -static GdkPixbuf** piwigo_service_icon_pixbuf_set = NULL; -static gint piwigo_service_icon_pixbuf_set_length1 = 0; -static gint _piwigo_service_icon_pixbuf_set_size_ = 0; -static SpitPluggableIface * piwigo_service_spit_pluggable_parent_iface = NULL; -static SpitPublishingServiceIface * piwigo_service_spit_publishing_service_parent_iface = NULL; -static gpointer publishing_piwigo_category_parent_class = NULL; -static gpointer publishing_piwigo_permission_level_parent_class = NULL; -static gpointer publishing_piwigo_size_entry_parent_class = NULL; -static gpointer publishing_piwigo_publishing_parameters_parent_class = NULL; -static gpointer publishing_piwigo_piwigo_publisher_parent_class = NULL; -static SpitPublishingPublisherIface * publishing_piwigo_piwigo_publisher_spit_publishing_publisher_parent_iface = NULL; -static gpointer publishing_piwigo_uploader_parent_class = NULL; -static gpointer publishing_piwigo_ssl_error_pane_parent_class = NULL; -static gpointer publishing_piwigo_authentication_pane_parent_class = NULL; -static gchar* publishing_piwigo_authentication_pane_INTRO_MESSAGE; -static gchar* publishing_piwigo_authentication_pane_INTRO_MESSAGE = NULL; -static gchar* publishing_piwigo_authentication_pane_FAILED_RETRY_URL_MESSAGE; -static gchar* publishing_piwigo_authentication_pane_FAILED_RETRY_URL_MESSAGE = NULL; -static gchar* publishing_piwigo_authentication_pane_FAILED_RETRY_USER_MESSAGE; -static gchar* publishing_piwigo_authentication_pane_FAILED_RETRY_USER_MESSAGE = NULL; -static gpointer publishing_piwigo_publishing_options_pane_parent_class = NULL; -static gchar* publishing_piwigo_publishing_options_pane_DEFAULT_CATEGORY_NAME; -static gchar* publishing_piwigo_publishing_options_pane_DEFAULT_CATEGORY_NAME = NULL; -static gpointer publishing_piwigo_session_parent_class = NULL; -static gpointer publishing_piwigo_transaction_parent_class = NULL; -static gpointer publishing_piwigo_session_login_transaction_parent_class = NULL; -static gpointer publishing_piwigo_session_get_status_transaction_parent_class = NULL; -static gpointer publishing_piwigo_categories_get_list_transaction_parent_class = NULL; -static gpointer publishing_piwigo_session_logout_transaction_parent_class = NULL; -static gpointer publishing_piwigo_categories_add_transaction_parent_class = NULL; -static gpointer publishing_piwigo_images_add_transaction_parent_class = NULL; - -GType piwigo_service_get_type (void) G_GNUC_CONST; -#define PIWIGO_SERVICE_ICON_FILENAME "piwigo.png" -PiwigoService* piwigo_service_new (GFile* resource_directory); -PiwigoService* piwigo_service_construct (GType object_type, - GFile* resource_directory); -static gint piwigo_service_real_get_pluggable_interface (SpitPluggable* base, - gint min_host_interface, - gint max_host_interface); -static const gchar* piwigo_service_real_get_id (SpitPluggable* base); -static const gchar* piwigo_service_real_get_pluggable_name (SpitPluggable* base); -static void piwigo_service_real_get_info (SpitPluggable* base, - SpitPluggableInfo* info); -static GdkPixbuf** _vala_array_dup12 (GdkPixbuf** self, - int length); -static void piwigo_service_real_activation (SpitPluggable* base, - gboolean enabled); -static SpitPublishingPublisher* piwigo_service_real_create_publisher (SpitPublishingService* base, - SpitPublishingPluginHost* host); -PublishingPiwigoPiwigoPublisher* publishing_piwigo_piwigo_publisher_new (SpitPublishingService* service, - SpitPublishingPluginHost* host); -PublishingPiwigoPiwigoPublisher* publishing_piwigo_piwigo_publisher_construct (GType object_type, - SpitPublishingService* service, - SpitPublishingPluginHost* host); -GType publishing_piwigo_piwigo_publisher_get_type (void) G_GNUC_CONST; -static SpitPublishingPublisherMediaType piwigo_service_real_get_supported_media (SpitPublishingService* base); -static void piwigo_service_finalize (GObject * obj); -#define PUBLISHING_PIWIGO_SERVICE_NAME "Piwigo" -#define PUBLISHING_PIWIGO_PIWIGO_WS "ws.php" -#define PUBLISHING_PIWIGO_ORIGINAL_SIZE -1 -gpointer publishing_piwigo_category_ref (gpointer instance); -void publishing_piwigo_category_unref (gpointer instance); -GParamSpec* publishing_piwigo_param_spec_category (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void publishing_piwigo_value_set_category (GValue* value, - gpointer v_object); -void publishing_piwigo_value_take_category (GValue* value, - gpointer v_object); -gpointer publishing_piwigo_value_get_category (const GValue* value); -GType publishing_piwigo_category_get_type (void) G_GNUC_CONST; -#define PUBLISHING_PIWIGO_CATEGORY_NO_ID -1 -PublishingPiwigoCategory* publishing_piwigo_category_new (gint id, - const gchar* name, - const gchar* uppercats, - const gchar* comment); -PublishingPiwigoCategory* publishing_piwigo_category_construct (GType object_type, - gint id, - const gchar* name, - const gchar* uppercats, - const gchar* comment); -PublishingPiwigoCategory* publishing_piwigo_category_new_local (const gchar* name, - gint parent_id, - const gchar* comment); -PublishingPiwigoCategory* publishing_piwigo_category_construct_local (GType object_type, - const gchar* name, - gint parent_id, - const gchar* comment); -gboolean publishing_piwigo_category_is_local (PublishingPiwigoCategory* self); -gboolean publishing_piwigo_category_equal (PublishingPiwigoCategory* _self_, - PublishingPiwigoCategory* other); -static void publishing_piwigo_category_finalize (PublishingPiwigoCategory * obj); -gpointer publishing_piwigo_permission_level_ref (gpointer instance); -void publishing_piwigo_permission_level_unref (gpointer instance); -GParamSpec* publishing_piwigo_param_spec_permission_level (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void publishing_piwigo_value_set_permission_level (GValue* value, - gpointer v_object); -void publishing_piwigo_value_take_permission_level (GValue* value, - gpointer v_object); -gpointer publishing_piwigo_value_get_permission_level (const GValue* value); -GType publishing_piwigo_permission_level_get_type (void) G_GNUC_CONST; -PublishingPiwigoPermissionLevel* publishing_piwigo_permission_level_new (gint id, - const gchar* name); -PublishingPiwigoPermissionLevel* publishing_piwigo_permission_level_construct (GType object_type, - gint id, - const gchar* name); -static void publishing_piwigo_permission_level_finalize (PublishingPiwigoPermissionLevel * obj); -gpointer publishing_piwigo_size_entry_ref (gpointer instance); -void publishing_piwigo_size_entry_unref (gpointer instance); -GParamSpec* publishing_piwigo_param_spec_size_entry (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void publishing_piwigo_value_set_size_entry (GValue* value, - gpointer v_object); -void publishing_piwigo_value_take_size_entry (GValue* value, - gpointer v_object); -gpointer publishing_piwigo_value_get_size_entry (const GValue* value); -GType publishing_piwigo_size_entry_get_type (void) G_GNUC_CONST; -PublishingPiwigoSizeEntry* publishing_piwigo_size_entry_new (gint id, - const gchar* name); -PublishingPiwigoSizeEntry* publishing_piwigo_size_entry_construct (GType object_type, - gint id, - const gchar* name); -static void publishing_piwigo_size_entry_finalize (PublishingPiwigoSizeEntry * obj); -gpointer publishing_piwigo_publishing_parameters_ref (gpointer instance); -void publishing_piwigo_publishing_parameters_unref (gpointer instance); -GParamSpec* publishing_piwigo_param_spec_publishing_parameters (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void publishing_piwigo_value_set_publishing_parameters (GValue* value, - gpointer v_object); -void publishing_piwigo_value_take_publishing_parameters (GValue* value, - gpointer v_object); -gpointer publishing_piwigo_value_get_publishing_parameters (const GValue* value); -GType publishing_piwigo_publishing_parameters_get_type (void) G_GNUC_CONST; -PublishingPiwigoPublishingParameters* publishing_piwigo_publishing_parameters_new (void); -PublishingPiwigoPublishingParameters* publishing_piwigo_publishing_parameters_construct (GType object_type); -static void publishing_piwigo_publishing_parameters_finalize (PublishingPiwigoPublishingParameters * obj); -GType publishing_piwigo_session_get_type (void) G_GNUC_CONST; -#define PUBLISHING_PIWIGO_PIWIGO_PUBLISHER_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), PUBLISHING_PIWIGO_TYPE_PIWIGO_PUBLISHER, PublishingPiwigoPiwigoPublisherPrivate)) -PublishingPiwigoSession* publishing_piwigo_session_new (void); -PublishingPiwigoSession* publishing_piwigo_session_construct (GType object_type); -static SpitPublishingService* publishing_piwigo_piwigo_publisher_real_get_service (SpitPublishingPublisher* base); -SpitPublishingPluginHost* publishing_piwigo_piwigo_publisher_get_host (PublishingPiwigoPiwigoPublisher* self); -static gboolean publishing_piwigo_piwigo_publisher_real_is_running (SpitPublishingPublisher* base); -static void publishing_piwigo_piwigo_publisher_real_start (SpitPublishingPublisher* base); -static void publishing_piwigo_piwigo_publisher_do_fetch_categories (PublishingPiwigoPiwigoPublisher* self); -gchar* publishing_piwigo_piwigo_publisher_get_persistent_url (PublishingPiwigoPiwigoPublisher* self); -gchar* publishing_piwigo_piwigo_publisher_get_persistent_username (PublishingPiwigoPiwigoPublisher* self); -gchar* publishing_piwigo_piwigo_publisher_get_persistent_password (PublishingPiwigoPiwigoPublisher* self); -static void publishing_piwigo_piwigo_publisher_do_network_login (PublishingPiwigoPiwigoPublisher* self, - const gchar* url, - const gchar* username, - const gchar* password, - gboolean remember_password); -gboolean publishing_piwigo_piwigo_publisher_get_remember_password (PublishingPiwigoPiwigoPublisher* self); -GType publishing_piwigo_authentication_pane_mode_get_type (void) G_GNUC_CONST; -static void publishing_piwigo_piwigo_publisher_do_show_authentication_pane (PublishingPiwigoPiwigoPublisher* self, - PublishingPiwigoAuthenticationPaneMode mode); -static void publishing_piwigo_piwigo_publisher_real_stop (SpitPublishingPublisher* base); -static void publishing_piwigo_piwigo_publisher_set_persistent_url (PublishingPiwigoPiwigoPublisher* self, - const gchar* url); -static void publishing_piwigo_piwigo_publisher_set_persistent_username (PublishingPiwigoPiwigoPublisher* self, - const gchar* username); -static void publishing_piwigo_piwigo_publisher_set_persistent_password (PublishingPiwigoPiwigoPublisher* self, - const gchar* password); -static void publishing_piwigo_piwigo_publisher_set_remember_password (PublishingPiwigoPiwigoPublisher* self, - gboolean remember_password); -gint publishing_piwigo_piwigo_publisher_get_last_category (PublishingPiwigoPiwigoPublisher* self); -static void publishing_piwigo_piwigo_publisher_set_last_category (PublishingPiwigoPiwigoPublisher* self, - gint last_category); -gint publishing_piwigo_piwigo_publisher_get_last_permission_level (PublishingPiwigoPiwigoPublisher* self); -static void publishing_piwigo_piwigo_publisher_set_last_permission_level (PublishingPiwigoPiwigoPublisher* self, - gint last_permission_level); -gint publishing_piwigo_piwigo_publisher_get_last_photo_size (PublishingPiwigoPiwigoPublisher* self); -static void publishing_piwigo_piwigo_publisher_set_last_photo_size (PublishingPiwigoPiwigoPublisher* self, - gint last_photo_size); -static gboolean publishing_piwigo_piwigo_publisher_get_last_title_as_comment (PublishingPiwigoPiwigoPublisher* self); -static void publishing_piwigo_piwigo_publisher_set_last_title_as_comment (PublishingPiwigoPiwigoPublisher* self, - gboolean title_as_comment); -static gboolean publishing_piwigo_piwigo_publisher_get_last_no_upload_tags (PublishingPiwigoPiwigoPublisher* self); -static void publishing_piwigo_piwigo_publisher_set_last_no_upload_tags (PublishingPiwigoPiwigoPublisher* self, - gboolean no_upload_tags); -static gboolean publishing_piwigo_piwigo_publisher_get_metadata_removal_choice (PublishingPiwigoPiwigoPublisher* self); -static void publishing_piwigo_piwigo_publisher_set_metadata_removal_choice (PublishingPiwigoPiwigoPublisher* self, - gboolean strip_metadata); -GType publishing_piwigo_authentication_pane_get_type (void) G_GNUC_CONST; -PublishingPiwigoAuthenticationPane* publishing_piwigo_authentication_pane_new (PublishingPiwigoPiwigoPublisher* publisher, - PublishingPiwigoAuthenticationPaneMode mode); -PublishingPiwigoAuthenticationPane* publishing_piwigo_authentication_pane_construct (GType object_type, - PublishingPiwigoPiwigoPublisher* publisher, - PublishingPiwigoAuthenticationPaneMode mode); -static void publishing_piwigo_piwigo_publisher_on_authentication_pane_login_clicked (PublishingPiwigoPiwigoPublisher* self, - const gchar* url, - const gchar* username, - const gchar* password, - gboolean remember_password); -static void _publishing_piwigo_piwigo_publisher_on_authentication_pane_login_clicked_publishing_piwigo_authentication_pane_login (PublishingPiwigoAuthenticationPane* _sender, - const gchar* url, - const gchar* user, - const gchar* password, - gboolean remember_password, - gpointer self); -GType publishing_piwigo_transaction_get_type (void) G_GNUC_CONST; -GType publishing_piwigo_session_login_transaction_get_type (void) G_GNUC_CONST; -static void publishing_piwigo_piwigo_publisher_do_show_ssl_downgrade_pane (PublishingPiwigoPiwigoPublisher* self, - PublishingPiwigoSessionLoginTransaction* trans, - const gchar* url); -GType publishing_piwigo_ssl_error_pane_get_type (void) G_GNUC_CONST; -PublishingPiwigoSSLErrorPane* publishing_piwigo_ssl_error_pane_new (PublishingPiwigoSessionLoginTransaction* transaction, - const gchar* host); -PublishingPiwigoSSLErrorPane* publishing_piwigo_ssl_error_pane_construct (GType object_type, - PublishingPiwigoSessionLoginTransaction* transaction, - const gchar* host); -static void __lambda7_ (PublishingPiwigoPiwigoPublisher* self); -static void ___lambda7__publishing_piwigo_ssl_error_pane_proceed (PublishingPiwigoSSLErrorPane* _sender, - gpointer self); -static void _vala_SoupURI_free (SoupURI* self); -gchar* publishing_piwigo_piwigo_publisher_normalise_url (const gchar* url); -PublishingPiwigoSessionLoginTransaction* publishing_piwigo_session_login_transaction_new (PublishingPiwigoSession* session, - const gchar* url, - const gchar* username, - const gchar* password); -PublishingPiwigoSessionLoginTransaction* publishing_piwigo_session_login_transaction_construct (GType object_type, - PublishingPiwigoSession* session, - const gchar* url, - const gchar* username, - const gchar* password); -static void publishing_piwigo_piwigo_publisher_on_login_network_error (PublishingPiwigoPiwigoPublisher* self, - PublishingRESTSupportTransaction* bad_txn, - GError* err); -static void _publishing_piwigo_piwigo_publisher_on_login_network_error_publishing_rest_support_transaction_network_error (PublishingRESTSupportTransaction* _sender, - GError* err, - gpointer self); -static void publishing_piwigo_piwigo_publisher_on_login_network_complete (PublishingPiwigoPiwigoPublisher* self, - PublishingRESTSupportTransaction* txn); -static void _publishing_piwigo_piwigo_publisher_on_login_network_complete_publishing_rest_support_transaction_completed (PublishingRESTSupportTransaction* _sender, - gpointer self); -static void publishing_piwigo_piwigo_publisher_do_show_error (PublishingPiwigoPiwigoPublisher* self, - GError* e); -gchar* publishing_piwigo_transaction_validate_xml (PublishingRESTSupportXmlDocument* doc); -static gchar* _publishing_piwigo_transaction_validate_xml_publishing_rest_support_xml_document_check_for_error_response (PublishingRESTSupportXmlDocument* doc, - gpointer self); -gchar* publishing_piwigo_transaction_get_error_code (PublishingRESTSupportXmlDocument* doc); -static gchar* _publishing_piwigo_transaction_get_error_code_publishing_rest_support_xml_document_check_for_error_response (PublishingRESTSupportXmlDocument* doc, - gpointer self); -static gchar* publishing_piwigo_piwigo_publisher_get_pwg_id_from_transaction (PublishingPiwigoPiwigoPublisher* self, - PublishingRESTSupportTransaction* txn); -void publishing_piwigo_session_set_pwg_id (PublishingPiwigoSession* self, - const gchar* id); -static void publishing_piwigo_piwigo_publisher_do_fetch_session_status (PublishingPiwigoPiwigoPublisher* self, - const gchar* url, - const gchar* pwg_id); -GType publishing_piwigo_session_get_status_transaction_get_type (void) G_GNUC_CONST; -PublishingPiwigoSessionGetStatusTransaction* publishing_piwigo_session_get_status_transaction_new_unauthenticated (PublishingPiwigoSession* session, - const gchar* url, - const gchar* pwg_id); -PublishingPiwigoSessionGetStatusTransaction* publishing_piwigo_session_get_status_transaction_construct_unauthenticated (GType object_type, - PublishingPiwigoSession* session, - const gchar* url, - const gchar* pwg_id); -static void publishing_piwigo_piwigo_publisher_on_session_get_status_error (PublishingPiwigoPiwigoPublisher* self, - PublishingRESTSupportTransaction* bad_txn, - GError* err); -static void _publishing_piwigo_piwigo_publisher_on_session_get_status_error_publishing_rest_support_transaction_network_error (PublishingRESTSupportTransaction* _sender, - GError* err, - gpointer self); -static void publishing_piwigo_piwigo_publisher_on_session_get_status_complete (PublishingPiwigoPiwigoPublisher* self, - PublishingRESTSupportTransaction* txn); -static void _publishing_piwigo_piwigo_publisher_on_session_get_status_complete_publishing_rest_support_transaction_completed (PublishingRESTSupportTransaction* _sender, - gpointer self); -PublishingPiwigoSessionGetStatusTransaction* publishing_piwigo_session_get_status_transaction_new (PublishingPiwigoSession* session); -PublishingPiwigoSessionGetStatusTransaction* publishing_piwigo_session_get_status_transaction_construct (GType object_type, - PublishingPiwigoSession* session); -gchar* publishing_piwigo_session_get_pwg_id (PublishingPiwigoSession* self); -void publishing_piwigo_session_authenticate (PublishingPiwigoSession* self, - const gchar* url, - const gchar* username, - const gchar* id); -gchar* publishing_piwigo_session_get_pwg_url (PublishingPiwigoSession* self); -gchar* publishing_piwigo_session_get_username (PublishingPiwigoSession* self); -static void publishing_piwigo_piwigo_publisher_on_network_error (PublishingPiwigoPiwigoPublisher* self, - PublishingRESTSupportTransaction* bad_txn, - GError* err); -GType publishing_piwigo_categories_get_list_transaction_get_type (void) G_GNUC_CONST; -PublishingPiwigoCategoriesGetListTransaction* publishing_piwigo_categories_get_list_transaction_new (PublishingPiwigoSession* session); -PublishingPiwigoCategoriesGetListTransaction* publishing_piwigo_categories_get_list_transaction_construct (GType object_type, - PublishingPiwigoSession* session); -static void publishing_piwigo_piwigo_publisher_on_category_fetch_error (PublishingPiwigoPiwigoPublisher* self, - PublishingRESTSupportTransaction* bad_txn, - GError* err); -static void _publishing_piwigo_piwigo_publisher_on_category_fetch_error_publishing_rest_support_transaction_network_error (PublishingRESTSupportTransaction* _sender, - GError* err, - gpointer self); -static void publishing_piwigo_piwigo_publisher_on_category_fetch_complete (PublishingPiwigoPiwigoPublisher* self, - PublishingRESTSupportTransaction* txn); -static void _publishing_piwigo_piwigo_publisher_on_category_fetch_complete_publishing_rest_support_transaction_completed (PublishingRESTSupportTransaction* _sender, - gpointer self); -static void _vala_array_add38 (PublishingPiwigoCategory** * array, - int* length, - int* size, - PublishingPiwigoCategory* value); -static void publishing_piwigo_piwigo_publisher_do_show_publishing_options_pane (PublishingPiwigoPiwigoPublisher* self); -GType publishing_piwigo_publishing_options_pane_get_type (void) G_GNUC_CONST; -PublishingPiwigoPublishingOptionsPane* publishing_piwigo_publishing_options_pane_new (PublishingPiwigoPiwigoPublisher* publisher, - PublishingPiwigoCategory** categories, - int categories_length1, - gint last_category, - gint last_permission_level, - gint last_photo_size, - gboolean last_title_as_comment, - gboolean last_no_upload_tags, - gboolean strip_metadata_enabled); -PublishingPiwigoPublishingOptionsPane* publishing_piwigo_publishing_options_pane_construct (GType object_type, - PublishingPiwigoPiwigoPublisher* publisher, - PublishingPiwigoCategory** categories, - int categories_length1, - gint last_category, - gint last_permission_level, - gint last_photo_size, - gboolean last_title_as_comment, - gboolean last_no_upload_tags, - gboolean strip_metadata_enabled); -static void publishing_piwigo_piwigo_publisher_on_publishing_options_pane_logout_clicked (PublishingPiwigoPiwigoPublisher* self); -static void _publishing_piwigo_piwigo_publisher_on_publishing_options_pane_logout_clicked_publishing_piwigo_publishing_options_pane_logout (PublishingPiwigoPublishingOptionsPane* _sender, - gpointer self); -static void publishing_piwigo_piwigo_publisher_on_publishing_options_pane_publish_clicked (PublishingPiwigoPiwigoPublisher* self, - PublishingPiwigoPublishingParameters* parameters, - gboolean strip_metadata); -static void _publishing_piwigo_piwigo_publisher_on_publishing_options_pane_publish_clicked_publishing_piwigo_publishing_options_pane_publish (PublishingPiwigoPublishingOptionsPane* _sender, - PublishingPiwigoPublishingParameters* parameters, - gboolean strip_metadata, - gpointer self); -GType publishing_piwigo_session_logout_transaction_get_type (void) G_GNUC_CONST; -PublishingPiwigoSessionLogoutTransaction* publishing_piwigo_session_logout_transaction_new (PublishingPiwigoSession* session); -PublishingPiwigoSessionLogoutTransaction* publishing_piwigo_session_logout_transaction_construct (GType object_type, - PublishingPiwigoSession* session); -static void publishing_piwigo_piwigo_publisher_on_logout_network_error (PublishingPiwigoPiwigoPublisher* self, - PublishingRESTSupportTransaction* bad_txn, - GError* err); -static void _publishing_piwigo_piwigo_publisher_on_logout_network_error_publishing_rest_support_transaction_network_error (PublishingRESTSupportTransaction* _sender, - GError* err, - gpointer self); -static void publishing_piwigo_piwigo_publisher_on_logout_network_complete (PublishingPiwigoPiwigoPublisher* self, - PublishingRESTSupportTransaction* txn); -static void _publishing_piwigo_piwigo_publisher_on_logout_network_complete_publishing_rest_support_transaction_completed (PublishingRESTSupportTransaction* _sender, - gpointer self); -void publishing_piwigo_session_deauthenticate (PublishingPiwigoSession* self); -static void publishing_piwigo_piwigo_publisher_do_create_category (PublishingPiwigoPiwigoPublisher* self, - PublishingPiwigoCategory* category); -static void publishing_piwigo_piwigo_publisher_do_upload (PublishingPiwigoPiwigoPublisher* self, - gboolean strip_metadata); -GType publishing_piwigo_categories_add_transaction_get_type (void) G_GNUC_CONST; -PublishingPiwigoCategoriesAddTransaction* publishing_piwigo_categories_add_transaction_new (PublishingPiwigoSession* session, - const gchar* category, - gint parent_id, - const gchar* comment); -PublishingPiwigoCategoriesAddTransaction* publishing_piwigo_categories_add_transaction_construct (GType object_type, - PublishingPiwigoSession* session, - const gchar* category, - gint parent_id, - const gchar* comment); -static void publishing_piwigo_piwigo_publisher_on_category_add_error (PublishingPiwigoPiwigoPublisher* self, - PublishingRESTSupportTransaction* bad_txn, - GError* err); -static void _publishing_piwigo_piwigo_publisher_on_category_add_error_publishing_rest_support_transaction_network_error (PublishingRESTSupportTransaction* _sender, - GError* err, - gpointer self); -static void publishing_piwigo_piwigo_publisher_on_category_add_complete (PublishingPiwigoPiwigoPublisher* self, - PublishingRESTSupportTransaction* txn); -static void _publishing_piwigo_piwigo_publisher_on_category_add_complete_publishing_rest_support_transaction_completed (PublishingRESTSupportTransaction* _sender, - gpointer self); -GType publishing_piwigo_uploader_get_type (void) G_GNUC_CONST; -PublishingPiwigoUploader* publishing_piwigo_uploader_new (PublishingPiwigoSession* session, - SpitPublishingPublishable** publishables, - int publishables_length1, - PublishingPiwigoPublishingParameters* parameters); -PublishingPiwigoUploader* publishing_piwigo_uploader_construct (GType object_type, - PublishingPiwigoSession* session, - SpitPublishingPublishable** publishables, - int publishables_length1, - PublishingPiwigoPublishingParameters* parameters); -static void publishing_piwigo_piwigo_publisher_on_upload_complete (PublishingPiwigoPiwigoPublisher* self, - PublishingRESTSupportBatchUploader* uploader, - gint num_published); -static void _publishing_piwigo_piwigo_publisher_on_upload_complete_publishing_rest_support_batch_uploader_upload_complete (PublishingRESTSupportBatchUploader* _sender, - gint num_photos_published, - gpointer self); -static void publishing_piwigo_piwigo_publisher_on_upload_error (PublishingPiwigoPiwigoPublisher* self, - PublishingRESTSupportBatchUploader* uploader, - GError* err); -static void _publishing_piwigo_piwigo_publisher_on_upload_error_publishing_rest_support_batch_uploader_upload_error (PublishingRESTSupportBatchUploader* _sender, - GError* err, - gpointer self); -static void publishing_piwigo_piwigo_publisher_on_upload_status_updated (PublishingPiwigoPiwigoPublisher* self, - gint file_number, - gdouble completed_fraction); -static void _publishing_piwigo_piwigo_publisher_on_upload_status_updated_spit_publishing_progress_callback (gint file_number, - gdouble fraction_complete, - gpointer self); -static void publishing_piwigo_piwigo_publisher_do_show_success_pane (PublishingPiwigoPiwigoPublisher* self); -static void publishing_piwigo_piwigo_publisher_do_show_error_message (PublishingPiwigoPiwigoPublisher* self, - const gchar* message); -static SoupCookie* _vala_SoupCookie_copy (SoupCookie* self); -static void _vala_SoupCookie_free (SoupCookie* self); -static void __vala_SoupCookie_free0_ (gpointer var); -static inline void _g_slist_free___vala_SoupCookie_free0_ (GSList* self); -static void publishing_piwigo_piwigo_publisher_finalize (GObject * obj); -#define PUBLISHING_PIWIGO_UPLOADER_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), PUBLISHING_PIWIGO_TYPE_UPLOADER, PublishingPiwigoUploaderPrivate)) -static PublishingRESTSupportTransaction* publishing_piwigo_uploader_real_create_transaction (PublishingRESTSupportBatchUploader* base, - SpitPublishingPublishable* publishable); -PublishingPiwigoImagesAddTransaction* publishing_piwigo_images_add_transaction_new (PublishingPiwigoSession* session, - PublishingPiwigoPublishingParameters* parameters, - SpitPublishingPublishable* publishable); -PublishingPiwigoImagesAddTransaction* publishing_piwigo_images_add_transaction_construct (GType object_type, - PublishingPiwigoSession* session, - PublishingPiwigoPublishingParameters* parameters, - SpitPublishingPublishable* publishable); -GType publishing_piwigo_images_add_transaction_get_type (void) G_GNUC_CONST; -static void publishing_piwigo_uploader_finalize (PublishingRESTSupportBatchUploader * obj); -#define PUBLISHING_PIWIGO_SSL_ERROR_PANE_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), PUBLISHING_PIWIGO_TYPE_SSL_ERROR_PANE, PublishingPiwigoSSLErrorPanePrivate)) -static void publishing_piwigo_ssl_error_pane_real_constructed (GObject* base); -gchar* publishing_piwigo_ssl_error_pane_get_host (PublishingPiwigoSSLErrorPane* self); -gchar* publishing_piwigo_ssl_error_pane_get_error_text (PublishingPiwigoSSLErrorPane* self); -static void __lambda5_ (PublishingPiwigoSSLErrorPane* self); -static GTlsCertificate* publishing_piwigo_ssl_error_pane_get_cert (PublishingPiwigoSSLErrorPane* self); -static void ___lambda5__gtk_button_clicked (GtkButton* _sender, - gpointer self); -static void __lambda6_ (PublishingPiwigoSSLErrorPane* self); -static void ___lambda6__gtk_button_clicked (GtkButton* _sender, - gpointer self); -static void publishing_piwigo_ssl_error_pane_set_host (PublishingPiwigoSSLErrorPane* self, - const gchar* value); -static void publishing_piwigo_ssl_error_pane_set_cert (PublishingPiwigoSSLErrorPane* self, - GTlsCertificate* value); -static void publishing_piwigo_ssl_error_pane_set_error_text (PublishingPiwigoSSLErrorPane* self, - const gchar* value); -static void publishing_piwigo_ssl_error_pane_finalize (GObject * obj); -static void _vala_publishing_piwigo_ssl_error_pane_get_property (GObject * object, - guint property_id, - GValue * value, - GParamSpec * pspec); -static void _vala_publishing_piwigo_ssl_error_pane_set_property (GObject * object, - guint property_id, - const GValue * value, - GParamSpec * pspec); -#define PUBLISHING_PIWIGO_AUTHENTICATION_PANE_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), PUBLISHING_PIWIGO_TYPE_AUTHENTICATION_PANE, PublishingPiwigoAuthenticationPanePrivate)) -static void publishing_piwigo_authentication_pane_real_constructed (GObject* base); -PublishingPiwigoAuthenticationPaneMode publishing_piwigo_authentication_pane_get_mode (PublishingPiwigoAuthenticationPane* self); -PublishingPiwigoPiwigoPublisher* publishing_piwigo_authentication_pane_get_publisher (PublishingPiwigoAuthenticationPane* self); -static void publishing_piwigo_authentication_pane_on_user_changed (PublishingPiwigoAuthenticationPane* self); -static void _publishing_piwigo_authentication_pane_on_user_changed_gtk_editable_changed (GtkEditable* _sender, - gpointer self); -static void publishing_piwigo_authentication_pane_on_url_changed (PublishingPiwigoAuthenticationPane* self); -static void _publishing_piwigo_authentication_pane_on_url_changed_gtk_editable_changed (GtkEditable* _sender, - gpointer self); -static void publishing_piwigo_authentication_pane_on_password_changed (PublishingPiwigoAuthenticationPane* self); -static void _publishing_piwigo_authentication_pane_on_password_changed_gtk_editable_changed (GtkEditable* _sender, - gpointer self); -static void publishing_piwigo_authentication_pane_on_login_button_clicked (PublishingPiwigoAuthenticationPane* self); -static void _publishing_piwigo_authentication_pane_on_login_button_clicked_gtk_button_clicked (GtkButton* _sender, - gpointer self); -static void publishing_piwigo_authentication_pane_update_login_button_sensitivity (PublishingPiwigoAuthenticationPane* self); -static void publishing_piwigo_authentication_pane_real_on_pane_installed (ShotwellPluginsCommonBuilderPane* base); -static void publishing_piwigo_authentication_pane_set_mode (PublishingPiwigoAuthenticationPane* self, - PublishingPiwigoAuthenticationPaneMode value); -static void publishing_piwigo_authentication_pane_set_publisher (PublishingPiwigoAuthenticationPane* self, - PublishingPiwigoPiwigoPublisher* value); -static void g_cclosure_user_marshal_VOID__STRING_STRING_STRING_BOOLEAN (GClosure * closure, - GValue * return_value, - guint n_param_values, - const GValue * param_values, - gpointer invocation_hint, - gpointer marshal_data); -static void publishing_piwigo_authentication_pane_finalize (GObject * obj); -static void _vala_publishing_piwigo_authentication_pane_get_property (GObject * object, - guint property_id, - GValue * value, - GParamSpec * pspec); -static void _vala_publishing_piwigo_authentication_pane_set_property (GObject * object, - guint property_id, - const GValue * value, - GParamSpec * pspec); -#define PUBLISHING_PIWIGO_PUBLISHING_OPTIONS_PANE_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), PUBLISHING_PIWIGO_TYPE_PUBLISHING_OPTIONS_PANE, PublishingPiwigoPublishingOptionsPanePrivate)) -static PublishingPiwigoCategory** _vala_array_dup13 (PublishingPiwigoCategory** self, - int length); -static gboolean _publishing_piwigo_category_equal_gee_equal_data_func (gconstpointer a, - gconstpointer b, - gpointer self); -static gchar* publishing_piwigo_publishing_options_pane_get_common_comment_if_possible (PublishingPiwigoPiwigoPublisher* publisher); -static void publishing_piwigo_publishing_options_pane_real_constructed (GObject* base); -static gboolean publishing_piwigo_publishing_options_pane_get_strip_metadata_enabled (PublishingPiwigoPublishingOptionsPane* self); -static gboolean publishing_piwigo_publishing_options_pane_get_last_title_as_comment (PublishingPiwigoPublishingOptionsPane* self); -static gboolean publishing_piwigo_publishing_options_pane_get_last_no_upload_tags (PublishingPiwigoPublishingOptionsPane* self); -static void publishing_piwigo_publishing_options_pane_on_logout_button_clicked (PublishingPiwigoPublishingOptionsPane* self); -static void _publishing_piwigo_publishing_options_pane_on_logout_button_clicked_gtk_button_clicked (GtkButton* _sender, - gpointer self); -static void publishing_piwigo_publishing_options_pane_on_publish_button_clicked (PublishingPiwigoPublishingOptionsPane* self); -static void _publishing_piwigo_publishing_options_pane_on_publish_button_clicked_gtk_button_clicked (GtkButton* _sender, - gpointer self); -static void publishing_piwigo_publishing_options_pane_on_use_existing_radio_clicked (PublishingPiwigoPublishingOptionsPane* self); -static void _publishing_piwigo_publishing_options_pane_on_use_existing_radio_clicked_gtk_button_clicked (GtkButton* _sender, - gpointer self); -static void publishing_piwigo_publishing_options_pane_on_create_new_radio_clicked (PublishingPiwigoPublishingOptionsPane* self); -static void _publishing_piwigo_publishing_options_pane_on_create_new_radio_clicked_gtk_button_clicked (GtkButton* _sender, - gpointer self); -static void publishing_piwigo_publishing_options_pane_on_new_category_entry_changed (PublishingPiwigoPublishingOptionsPane* self); -static void _publishing_piwigo_publishing_options_pane_on_new_category_entry_changed_gtk_editable_changed (GtkEditable* _sender, - gpointer self); -static void publishing_piwigo_publishing_options_pane_on_existing_combo_changed (PublishingPiwigoPublishingOptionsPane* self); -static void _publishing_piwigo_publishing_options_pane_on_existing_combo_changed_gtk_combo_box_changed (GtkComboBox* _sender, - gpointer self); -static PublishingPiwigoPermissionLevel** publishing_piwigo_publishing_options_pane_create_perm_levels (PublishingPiwigoPublishingOptionsPane* self, - int* result_length1); -static PublishingPiwigoSizeEntry** publishing_piwigo_publishing_options_pane_create_sizes (PublishingPiwigoPublishingOptionsPane* self, - int* result_length1); -static const gchar* publishing_piwigo_publishing_options_pane_get_default_comment (PublishingPiwigoPublishingOptionsPane* self); -static void _vala_array_add39 (PublishingPiwigoPermissionLevel** * array, - int* length, - int* size, - PublishingPiwigoPermissionLevel* value); -static void _vala_array_add40 (PublishingPiwigoPermissionLevel** * array, - int* length, - int* size, - PublishingPiwigoPermissionLevel* value); -static void _vala_array_add41 (PublishingPiwigoPermissionLevel** * array, - int* length, - int* size, - PublishingPiwigoPermissionLevel* value); -static void _vala_array_add42 (PublishingPiwigoPermissionLevel** * array, - int* length, - int* size, - PublishingPiwigoPermissionLevel* value); -static void _vala_array_add43 (PublishingPiwigoPermissionLevel** * array, - int* length, - int* size, - PublishingPiwigoPermissionLevel* value); -static void _vala_array_add44 (PublishingPiwigoSizeEntry** * array, - int* length, - int* size, - PublishingPiwigoSizeEntry* value); -static void _vala_array_add45 (PublishingPiwigoSizeEntry** * array, - int* length, - int* size, - PublishingPiwigoSizeEntry* value); -static void _vala_array_add46 (PublishingPiwigoSizeEntry** * array, - int* length, - int* size, - PublishingPiwigoSizeEntry* value); -static void _vala_array_add47 (PublishingPiwigoSizeEntry** * array, - int* length, - int* size, - PublishingPiwigoSizeEntry* value); -static void _vala_array_add48 (PublishingPiwigoSizeEntry** * array, - int* length, - int* size, - PublishingPiwigoSizeEntry* value); -static GeeList* publishing_piwigo_publishing_options_pane_get_existing_categories (PublishingPiwigoPublishingOptionsPane* self); -static void publishing_piwigo_publishing_options_pane_update_publish_button_sensitivity (PublishingPiwigoPublishingOptionsPane* self); -static gboolean publishing_piwigo_publishing_options_pane_category_already_exists (PublishingPiwigoPublishingOptionsPane* self, - const gchar* category_name); -static void publishing_piwigo_publishing_options_pane_real_on_pane_installed (ShotwellPluginsCommonBuilderPane* base); -static void publishing_piwigo_publishing_options_pane_create_categories_combo (PublishingPiwigoPublishingOptionsPane* self); -static void publishing_piwigo_publishing_options_pane_create_within_categories_combo (PublishingPiwigoPublishingOptionsPane* self); -static void publishing_piwigo_publishing_options_pane_create_permissions_combo (PublishingPiwigoPublishingOptionsPane* self); -static void publishing_piwigo_publishing_options_pane_create_size_combo (PublishingPiwigoPublishingOptionsPane* self); -static gint publishing_piwigo_publishing_options_pane_find_category_index (PublishingPiwigoPublishingOptionsPane* self, - gint category_id); -static gint publishing_piwigo_publishing_options_pane_get_last_category (PublishingPiwigoPublishingOptionsPane* self); -static gint publishing_piwigo_publishing_options_pane_find_permission_level_index (PublishingPiwigoPublishingOptionsPane* self, - gint permission_level_id); -static gint publishing_piwigo_publishing_options_pane_get_last_permission_level (PublishingPiwigoPublishingOptionsPane* self); -static gint publishing_piwigo_publishing_options_pane_find_size_index (PublishingPiwigoPublishingOptionsPane* self, - gint size_id); -static gint publishing_piwigo_publishing_options_pane_get_last_photo_size (PublishingPiwigoPublishingOptionsPane* self); -static void publishing_piwigo_publishing_options_pane_set_last_category (PublishingPiwigoPublishingOptionsPane* self, - gint value); -static void publishing_piwigo_publishing_options_pane_set_last_permission_level (PublishingPiwigoPublishingOptionsPane* self, - gint value); -static void publishing_piwigo_publishing_options_pane_set_last_photo_size (PublishingPiwigoPublishingOptionsPane* self, - gint value); -static void publishing_piwigo_publishing_options_pane_set_last_title_as_comment (PublishingPiwigoPublishingOptionsPane* self, - gboolean value); -static void publishing_piwigo_publishing_options_pane_set_last_no_upload_tags (PublishingPiwigoPublishingOptionsPane* self, - gboolean value); -static void publishing_piwigo_publishing_options_pane_set_strip_metadata_enabled (PublishingPiwigoPublishingOptionsPane* self, - gboolean value); -static void publishing_piwigo_publishing_options_pane_set_existing_categories (PublishingPiwigoPublishingOptionsPane* self, - GeeList* value); -static void publishing_piwigo_publishing_options_pane_set_default_comment (PublishingPiwigoPublishingOptionsPane* self, - const gchar* value); -static void g_cclosure_user_marshal_VOID__PUBLISHING_PIWIGO_PUBLISHING_PARAMETERS_BOOLEAN (GClosure * closure, - GValue * return_value, - guint n_param_values, - const GValue * param_values, - gpointer invocation_hint, - gpointer marshal_data); -static void publishing_piwigo_publishing_options_pane_finalize (GObject * obj); -static void _vala_publishing_piwigo_publishing_options_pane_get_property (GObject * object, - guint property_id, - GValue * value, - GParamSpec * pspec); -static void _vala_publishing_piwigo_publishing_options_pane_set_property (GObject * object, - guint property_id, - const GValue * value, - GParamSpec * pspec); -#define PUBLISHING_PIWIGO_SESSION_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), PUBLISHING_PIWIGO_TYPE_SESSION, PublishingPiwigoSessionPrivate)) -static gboolean publishing_piwigo_session_real_is_authenticated (PublishingRESTSupportSession* base); -static void publishing_piwigo_session_finalize (PublishingRESTSupportSession * obj); -PublishingPiwigoTransaction* publishing_piwigo_transaction_new (PublishingPiwigoSession* session); -PublishingPiwigoTransaction* publishing_piwigo_transaction_construct (GType object_type, - PublishingPiwigoSession* session); -PublishingPiwigoTransaction* publishing_piwigo_transaction_new_authenticated (PublishingPiwigoSession* session); -PublishingPiwigoTransaction* publishing_piwigo_transaction_construct_authenticated (GType object_type, - PublishingPiwigoSession* session); -PublishingPiwigoSessionLoginTransaction* publishing_piwigo_session_login_transaction_new_from_other (PublishingPiwigoSession* session, - PublishingPiwigoTransaction* other); -PublishingPiwigoSessionLoginTransaction* publishing_piwigo_session_login_transaction_construct_from_other (GType object_type, - PublishingPiwigoSession* session, - PublishingPiwigoTransaction* other); -#define PUBLISHING_PIWIGO_IMAGES_ADD_TRANSACTION_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), PUBLISHING_PIWIGO_TYPE_IMAGES_ADD_TRANSACTION, PublishingPiwigoImagesAddTransactionPrivate)) -static void _g_free0_ (gpointer var); -static void publishing_piwigo_images_add_transaction_finalize (PublishingRESTSupportTransaction * obj); -static void _vala_array_destroy (gpointer array, - gint array_length, - GDestroyNotify destroy_func); -static void _vala_array_free (gpointer array, - gint array_length, - GDestroyNotify destroy_func); -static gint _vala_array_length (gpointer array); - - -PiwigoService* -piwigo_service_construct (GType object_type, - GFile* resource_directory) -{ - PiwigoService * self = NULL; - GdkPixbuf** _tmp0_; - gint _tmp0__length1; -#line 12 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_return_val_if_fail (G_IS_FILE (resource_directory), NULL); -#line 12 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - self = (PiwigoService*) g_object_new (object_type, NULL); -#line 13 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp0_ = piwigo_service_icon_pixbuf_set; -#line 13 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp0__length1 = piwigo_service_icon_pixbuf_set_length1; -#line 13 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - if (_tmp0_ == NULL) { -#line 1259 "PiwigoPublishing.c" - gint _tmp1_; - GdkPixbuf** _tmp2_; -#line 14 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp2_ = resources_load_from_resource (PLUGIN_RESOURCE_PATH "/" PIWIGO_SERVICE_ICON_FILENAME, &_tmp1_); -#line 14 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - piwigo_service_icon_pixbuf_set = (_vala_array_free (piwigo_service_icon_pixbuf_set, piwigo_service_icon_pixbuf_set_length1, (GDestroyNotify) g_object_unref), NULL); -#line 14 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - piwigo_service_icon_pixbuf_set = _tmp2_; -#line 14 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - piwigo_service_icon_pixbuf_set_length1 = _tmp1_; -#line 14 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _piwigo_service_icon_pixbuf_set_size_ = piwigo_service_icon_pixbuf_set_length1; -#line 1272 "PiwigoPublishing.c" - } -#line 12 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - return self; -#line 1276 "PiwigoPublishing.c" -} - - -PiwigoService* -piwigo_service_new (GFile* resource_directory) -{ -#line 12 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - return piwigo_service_construct (TYPE_PIWIGO_SERVICE, resource_directory); -#line 1285 "PiwigoPublishing.c" -} - - -static gint -piwigo_service_real_get_pluggable_interface (SpitPluggable* base, - gint min_host_interface, - gint max_host_interface) -{ - PiwigoService * self; - gint result = 0; -#line 18 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_PIWIGO_SERVICE, PiwigoService); -#line 19 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - result = spit_negotiate_interfaces (min_host_interface, max_host_interface, SPIT_PUBLISHING_CURRENT_INTERFACE); -#line 19 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - return result; -#line 1302 "PiwigoPublishing.c" -} - - -static const gchar* -piwigo_service_real_get_id (SpitPluggable* base) -{ - PiwigoService * self; - const gchar* result = NULL; -#line 23 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_PIWIGO_SERVICE, PiwigoService); -#line 24 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - result = "org.yorba.shotwell.publishing.piwigo"; -#line 24 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - return result; -#line 1317 "PiwigoPublishing.c" -} - - -static const gchar* -piwigo_service_real_get_pluggable_name (SpitPluggable* base) -{ - PiwigoService * self; - const gchar* result = NULL; -#line 27 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_PIWIGO_SERVICE, PiwigoService); -#line 28 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - result = "Piwigo"; -#line 28 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - return result; -#line 1332 "PiwigoPublishing.c" -} - - -static gpointer -_g_object_ref0 (gpointer self) -{ -#line 40 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - return self ? g_object_ref (self) : NULL; -#line 1341 "PiwigoPublishing.c" -} - - -static GdkPixbuf** -_vala_array_dup12 (GdkPixbuf** self, - int length) -{ - GdkPixbuf** result; - int i; -#line 40 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - result = g_new0 (GdkPixbuf*, length + 1); -#line 40 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - for (i = 0; i < length; i++) { -#line 1355 "PiwigoPublishing.c" - GdkPixbuf* _tmp0_; -#line 40 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp0_ = _g_object_ref0 (self[i]); -#line 40 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - result[i] = _tmp0_; -#line 1361 "PiwigoPublishing.c" - } -#line 40 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - return result; -#line 1365 "PiwigoPublishing.c" -} - - -static void -piwigo_service_real_get_info (SpitPluggable* base, - SpitPluggableInfo* info) -{ - PiwigoService * 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 31 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_PIWIGO_SERVICE, PiwigoService); -#line 31 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_return_if_fail (info != NULL); -#line 32 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp0_ = g_strdup ("Bruno Girin"); -#line 32 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_free0 ((*info).authors); -#line 32 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - (*info).authors = _tmp0_; -#line 33 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp1_ = g_strdup (_ ("Copyright 2016 Software Freedom Conservancy Inc.")); -#line 33 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_free0 ((*info).copyright); -#line 33 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - (*info).copyright = _tmp1_; -#line 34 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp2_ = g_strdup (RESOURCES_TRANSLATORS); -#line 34 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_free0 ((*info).translators); -#line 34 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - (*info).translators = _tmp2_; -#line 35 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp3_ = g_strdup (_VERSION); -#line 35 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_free0 ((*info).version); -#line 35 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - (*info).version = _tmp3_; -#line 36 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp4_ = g_strdup (RESOURCES_WEBSITE_NAME); -#line 36 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_free0 ((*info).website_name); -#line 36 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - (*info).website_name = _tmp4_; -#line 37 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp5_ = g_strdup (RESOURCES_WEBSITE_URL); -#line 37 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_free0 ((*info).website_url); -#line 37 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - (*info).website_url = _tmp5_; -#line 38 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - (*info).is_license_wordwrapped = FALSE; -#line 39 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp6_ = g_strdup (RESOURCES_LICENSE); -#line 39 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_free0 ((*info).license); -#line 39 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - (*info).license = _tmp6_; -#line 40 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp7_ = piwigo_service_icon_pixbuf_set; -#line 40 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp7__length1 = piwigo_service_icon_pixbuf_set_length1; -#line 40 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp8_ = (_tmp7_ != NULL) ? _vala_array_dup12 (_tmp7_, _tmp7__length1) : ((gpointer) _tmp7_); -#line 40 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp8__length1 = _tmp7__length1; -#line 40 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - (*info).icons = (_vala_array_free ((*info).icons, (*info).icons_length1, (GDestroyNotify) g_object_unref), NULL); -#line 40 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - (*info).icons = _tmp8_; -#line 40 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - (*info).icons_length1 = _tmp8__length1; -#line 1447 "PiwigoPublishing.c" -} - - -static void -piwigo_service_real_activation (SpitPluggable* base, - gboolean enabled) -{ - PiwigoService * self; -#line 43 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_PIWIGO_SERVICE, PiwigoService); -#line 1458 "PiwigoPublishing.c" -} - - -static SpitPublishingPublisher* -piwigo_service_real_create_publisher (SpitPublishingService* base, - SpitPublishingPluginHost* host) -{ - PiwigoService * self; - SpitPublishingPublisher* result = NULL; - PublishingPiwigoPiwigoPublisher* _tmp0_; -#line 46 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_PIWIGO_SERVICE, PiwigoService); -#line 46 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_return_val_if_fail (SPIT_PUBLISHING_IS_PLUGIN_HOST (host), NULL); -#line 47 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp0_ = publishing_piwigo_piwigo_publisher_new (G_TYPE_CHECK_INSTANCE_CAST (self, SPIT_PUBLISHING_TYPE_SERVICE, SpitPublishingService), host); -#line 47 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - result = G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, SPIT_PUBLISHING_TYPE_PUBLISHER, SpitPublishingPublisher); -#line 47 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - return result; -#line 1479 "PiwigoPublishing.c" -} - - -static SpitPublishingPublisherMediaType -piwigo_service_real_get_supported_media (SpitPublishingService* base) -{ - PiwigoService * self; - SpitPublishingPublisherMediaType result = 0; -#line 50 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_PIWIGO_SERVICE, PiwigoService); -#line 51 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - result = SPIT_PUBLISHING_PUBLISHER_MEDIA_TYPE_PHOTO; -#line 51 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - return result; -#line 1494 "PiwigoPublishing.c" -} - - -static void -piwigo_service_class_init (PiwigoServiceClass * klass) -{ -#line 7 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - piwigo_service_parent_class = g_type_class_peek_parent (klass); -#line 7 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - G_OBJECT_CLASS (klass)->finalize = piwigo_service_finalize; -#line 1505 "PiwigoPublishing.c" -} - - -static void -piwigo_service_spit_pluggable_interface_init (SpitPluggableIface * iface) -{ -#line 7 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - piwigo_service_spit_pluggable_parent_iface = g_type_interface_peek_parent (iface); -#line 7 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - iface->get_pluggable_interface = (gint (*) (SpitPluggable *, gint, gint)) piwigo_service_real_get_pluggable_interface; -#line 7 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - iface->get_id = (const gchar* (*) (SpitPluggable *)) piwigo_service_real_get_id; -#line 7 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - iface->get_pluggable_name = (const gchar* (*) (SpitPluggable *)) piwigo_service_real_get_pluggable_name; -#line 7 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - iface->get_info = (void (*) (SpitPluggable *, SpitPluggableInfo*)) piwigo_service_real_get_info; -#line 7 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - iface->activation = (void (*) (SpitPluggable *, gboolean)) piwigo_service_real_activation; -#line 1524 "PiwigoPublishing.c" -} - - -static void -piwigo_service_spit_publishing_service_interface_init (SpitPublishingServiceIface * iface) -{ -#line 7 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - piwigo_service_spit_publishing_service_parent_iface = g_type_interface_peek_parent (iface); -#line 7 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - iface->create_publisher = (SpitPublishingPublisher* (*) (SpitPublishingService *, SpitPublishingPluginHost*)) piwigo_service_real_create_publisher; -#line 7 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - iface->get_supported_media = (SpitPublishingPublisherMediaType (*) (SpitPublishingService *)) piwigo_service_real_get_supported_media; -#line 1537 "PiwigoPublishing.c" -} - - -static void -piwigo_service_instance_init (PiwigoService * self) -{ -} - - -static void -piwigo_service_finalize (GObject * obj) -{ - PiwigoService * self; -#line 7 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_PIWIGO_SERVICE, PiwigoService); -#line 7 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - G_OBJECT_CLASS (piwigo_service_parent_class)->finalize (obj); -#line 1555 "PiwigoPublishing.c" -} - - -GType -piwigo_service_get_type (void) -{ - static volatile gsize piwigo_service_type_id__volatile = 0; - if (g_once_init_enter (&piwigo_service_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (PiwigoServiceClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) piwigo_service_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PiwigoService), 0, (GInstanceInitFunc) piwigo_service_instance_init, NULL }; - static const GInterfaceInfo spit_pluggable_info = { (GInterfaceInitFunc) piwigo_service_spit_pluggable_interface_init, (GInterfaceFinalizeFunc) NULL, NULL}; - static const GInterfaceInfo spit_publishing_service_info = { (GInterfaceInitFunc) piwigo_service_spit_publishing_service_interface_init, (GInterfaceFinalizeFunc) NULL, NULL}; - GType piwigo_service_type_id; - piwigo_service_type_id = g_type_register_static (G_TYPE_OBJECT, "PiwigoService", &g_define_type_info, 0); - g_type_add_interface_static (piwigo_service_type_id, SPIT_TYPE_PLUGGABLE, &spit_pluggable_info); - g_type_add_interface_static (piwigo_service_type_id, SPIT_PUBLISHING_TYPE_SERVICE, &spit_publishing_service_info); - g_once_init_leave (&piwigo_service_type_id__volatile, piwigo_service_type_id); - } - return piwigo_service_type_id__volatile; -} - - -PublishingPiwigoCategory* -publishing_piwigo_category_construct (GType object_type, - gint id, - const gchar* name, - const gchar* uppercats, - const gchar* comment) -{ - PublishingPiwigoCategory* self = NULL; - gchar* _tmp0_; - gchar* _tmp1_; - gchar* _tmp2_; -#line 69 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_return_val_if_fail (name != NULL, NULL); -#line 69 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_return_val_if_fail (uppercats != NULL, NULL); -#line 69 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - self = (PublishingPiwigoCategory*) g_type_create_instance (object_type); -#line 70 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - self->id = id; -#line 71 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp0_ = g_strdup (name); -#line 71 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_free0 (self->name); -#line 71 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - self->name = _tmp0_; -#line 72 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp1_ = g_strdup (uppercats); -#line 72 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_free0 (self->uppercats); -#line 72 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - self->uppercats = _tmp1_; -#line 73 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp2_ = g_strdup (comment); -#line 73 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_free0 (self->comment); -#line 73 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - self->comment = _tmp2_; -#line 69 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - return self; -#line 1616 "PiwigoPublishing.c" -} - - -PublishingPiwigoCategory* -publishing_piwigo_category_new (gint id, - const gchar* name, - const gchar* uppercats, - const gchar* comment) -{ -#line 69 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - return publishing_piwigo_category_construct (PUBLISHING_PIWIGO_TYPE_CATEGORY, id, name, uppercats, comment); -#line 1628 "PiwigoPublishing.c" -} - - -PublishingPiwigoCategory* -publishing_piwigo_category_construct_local (GType object_type, - const gchar* name, - gint parent_id, - const gchar* comment) -{ - PublishingPiwigoCategory* self = NULL; - gchar* _tmp0_; - gchar* _tmp1_; - gchar* _tmp2_; -#line 76 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_return_val_if_fail (name != NULL, NULL); -#line 76 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - self = (PublishingPiwigoCategory*) g_type_create_instance (object_type); -#line 77 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - self->id = PUBLISHING_PIWIGO_CATEGORY_NO_ID; -#line 78 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp0_ = g_strdup (name); -#line 78 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_free0 (self->name); -#line 78 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - self->name = _tmp0_; -#line 81 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp1_ = g_strdup_printf ("%i", parent_id); -#line 81 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_free0 (self->uppercats); -#line 81 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - self->uppercats = _tmp1_; -#line 82 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp2_ = g_strdup (comment); -#line 82 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_free0 (self->comment); -#line 82 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - self->comment = _tmp2_; -#line 76 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - return self; -#line 1668 "PiwigoPublishing.c" -} - - -PublishingPiwigoCategory* -publishing_piwigo_category_new_local (const gchar* name, - gint parent_id, - const gchar* comment) -{ -#line 76 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - return publishing_piwigo_category_construct_local (PUBLISHING_PIWIGO_TYPE_CATEGORY, name, parent_id, comment); -#line 1679 "PiwigoPublishing.c" -} - - -gboolean -publishing_piwigo_category_is_local (PublishingPiwigoCategory* self) -{ - gboolean result = FALSE; - gint _tmp0_; -#line 85 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_return_val_if_fail (PUBLISHING_PIWIGO_IS_CATEGORY (self), FALSE); -#line 86 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp0_ = self->id; -#line 86 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - result = _tmp0_ == PUBLISHING_PIWIGO_CATEGORY_NO_ID; -#line 86 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - return result; -#line 1696 "PiwigoPublishing.c" -} - - -gboolean -publishing_piwigo_category_equal (PublishingPiwigoCategory* _self_, - PublishingPiwigoCategory* other) -{ - gboolean result = FALSE; - gint _tmp0_; - gint _tmp1_; -#line 89 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_return_val_if_fail (PUBLISHING_PIWIGO_IS_CATEGORY (_self_), FALSE); -#line 89 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_return_val_if_fail (PUBLISHING_PIWIGO_IS_CATEGORY (other), FALSE); -#line 90 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp0_ = _self_->id; -#line 90 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp1_ = other->id; -#line 90 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - result = _tmp0_ == _tmp1_; -#line 90 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - return result; -#line 1719 "PiwigoPublishing.c" -} - - -static void -publishing_piwigo_value_category_init (GValue* value) -{ -#line 61 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - value->data[0].v_pointer = NULL; -#line 1728 "PiwigoPublishing.c" -} - - -static void -publishing_piwigo_value_category_free_value (GValue* value) -{ -#line 61 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - if (value->data[0].v_pointer) { -#line 61 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - publishing_piwigo_category_unref (value->data[0].v_pointer); -#line 1739 "PiwigoPublishing.c" - } -} - - -static void -publishing_piwigo_value_category_copy_value (const GValue* src_value, - GValue* dest_value) -{ -#line 61 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - if (src_value->data[0].v_pointer) { -#line 61 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - dest_value->data[0].v_pointer = publishing_piwigo_category_ref (src_value->data[0].v_pointer); -#line 1752 "PiwigoPublishing.c" - } else { -#line 61 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - dest_value->data[0].v_pointer = NULL; -#line 1756 "PiwigoPublishing.c" - } -} - - -static gpointer -publishing_piwigo_value_category_peek_pointer (const GValue* value) -{ -#line 61 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - return value->data[0].v_pointer; -#line 1766 "PiwigoPublishing.c" -} - - -static gchar* -publishing_piwigo_value_category_collect_value (GValue* value, - guint n_collect_values, - GTypeCValue* collect_values, - guint collect_flags) -{ -#line 61 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - if (collect_values[0].v_pointer) { -#line 1778 "PiwigoPublishing.c" - PublishingPiwigoCategory * object; - object = collect_values[0].v_pointer; -#line 61 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - if (object->parent_instance.g_class == NULL) { -#line 61 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL); -#line 1785 "PiwigoPublishing.c" - } else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) { -#line 61 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - return g_strconcat ("invalid object type `", g_type_name (G_TYPE_FROM_INSTANCE (object)), "' for value type `", G_VALUE_TYPE_NAME (value), "'", NULL); -#line 1789 "PiwigoPublishing.c" - } -#line 61 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - value->data[0].v_pointer = publishing_piwigo_category_ref (object); -#line 1793 "PiwigoPublishing.c" - } else { -#line 61 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - value->data[0].v_pointer = NULL; -#line 1797 "PiwigoPublishing.c" - } -#line 61 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - return NULL; -#line 1801 "PiwigoPublishing.c" -} - - -static gchar* -publishing_piwigo_value_category_lcopy_value (const GValue* value, - guint n_collect_values, - GTypeCValue* collect_values, - guint collect_flags) -{ - PublishingPiwigoCategory ** object_p; - object_p = collect_values[0].v_pointer; -#line 61 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - if (!object_p) { -#line 61 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value)); -#line 1817 "PiwigoPublishing.c" - } -#line 61 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - if (!value->data[0].v_pointer) { -#line 61 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - *object_p = NULL; -#line 1823 "PiwigoPublishing.c" - } else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) { -#line 61 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - *object_p = value->data[0].v_pointer; -#line 1827 "PiwigoPublishing.c" - } else { -#line 61 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - *object_p = publishing_piwigo_category_ref (value->data[0].v_pointer); -#line 1831 "PiwigoPublishing.c" - } -#line 61 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - return NULL; -#line 1835 "PiwigoPublishing.c" -} - - -GParamSpec* -publishing_piwigo_param_spec_category (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags) -{ - PublishingPiwigoParamSpecCategory* spec; -#line 61 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_return_val_if_fail (g_type_is_a (object_type, PUBLISHING_PIWIGO_TYPE_CATEGORY), NULL); -#line 61 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags); -#line 61 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - G_PARAM_SPEC (spec)->value_type = object_type; -#line 61 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - return G_PARAM_SPEC (spec); -#line 1855 "PiwigoPublishing.c" -} - - -gpointer -publishing_piwigo_value_get_category (const GValue* value) -{ -#line 61 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, PUBLISHING_PIWIGO_TYPE_CATEGORY), NULL); -#line 61 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - return value->data[0].v_pointer; -#line 1866 "PiwigoPublishing.c" -} - - -void -publishing_piwigo_value_set_category (GValue* value, - gpointer v_object) -{ - PublishingPiwigoCategory * old; -#line 61 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, PUBLISHING_PIWIGO_TYPE_CATEGORY)); -#line 61 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - old = value->data[0].v_pointer; -#line 61 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - if (v_object) { -#line 61 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, PUBLISHING_PIWIGO_TYPE_CATEGORY)); -#line 61 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value))); -#line 61 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - value->data[0].v_pointer = v_object; -#line 61 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - publishing_piwigo_category_ref (value->data[0].v_pointer); -#line 1889 "PiwigoPublishing.c" - } else { -#line 61 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - value->data[0].v_pointer = NULL; -#line 1893 "PiwigoPublishing.c" - } -#line 61 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - if (old) { -#line 61 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - publishing_piwigo_category_unref (old); -#line 1899 "PiwigoPublishing.c" - } -} - - -void -publishing_piwigo_value_take_category (GValue* value, - gpointer v_object) -{ - PublishingPiwigoCategory * old; -#line 61 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, PUBLISHING_PIWIGO_TYPE_CATEGORY)); -#line 61 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - old = value->data[0].v_pointer; -#line 61 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - if (v_object) { -#line 61 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, PUBLISHING_PIWIGO_TYPE_CATEGORY)); -#line 61 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value))); -#line 61 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - value->data[0].v_pointer = v_object; -#line 1921 "PiwigoPublishing.c" - } else { -#line 61 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - value->data[0].v_pointer = NULL; -#line 1925 "PiwigoPublishing.c" - } -#line 61 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - if (old) { -#line 61 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - publishing_piwigo_category_unref (old); -#line 1931 "PiwigoPublishing.c" - } -} - - -static void -publishing_piwigo_category_class_init (PublishingPiwigoCategoryClass * klass) -{ -#line 61 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - publishing_piwigo_category_parent_class = g_type_class_peek_parent (klass); -#line 61 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - ((PublishingPiwigoCategoryClass *) klass)->finalize = publishing_piwigo_category_finalize; -#line 1943 "PiwigoPublishing.c" -} - - -static void -publishing_piwigo_category_instance_init (PublishingPiwigoCategory * self) -{ -#line 61 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - self->ref_count = 1; -#line 1952 "PiwigoPublishing.c" -} - - -static void -publishing_piwigo_category_finalize (PublishingPiwigoCategory * obj) -{ - PublishingPiwigoCategory * self; -#line 61 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, PUBLISHING_PIWIGO_TYPE_CATEGORY, PublishingPiwigoCategory); -#line 61 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_signal_handlers_destroy (self); -#line 63 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_free0 (self->name); -#line 64 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_free0 (self->comment); -#line 65 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_free0 (self->display_name); -#line 66 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_free0 (self->uppercats); -#line 1972 "PiwigoPublishing.c" -} - - -GType -publishing_piwigo_category_get_type (void) -{ - static volatile gsize publishing_piwigo_category_type_id__volatile = 0; - if (g_once_init_enter (&publishing_piwigo_category_type_id__volatile)) { - static const GTypeValueTable g_define_type_value_table = { publishing_piwigo_value_category_init, publishing_piwigo_value_category_free_value, publishing_piwigo_value_category_copy_value, publishing_piwigo_value_category_peek_pointer, "p", publishing_piwigo_value_category_collect_value, "p", publishing_piwigo_value_category_lcopy_value }; - static const GTypeInfo g_define_type_info = { sizeof (PublishingPiwigoCategoryClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) publishing_piwigo_category_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PublishingPiwigoCategory), 0, (GInstanceInitFunc) publishing_piwigo_category_instance_init, &g_define_type_value_table }; - static const GTypeFundamentalInfo g_define_type_fundamental_info = { (G_TYPE_FLAG_CLASSED | G_TYPE_FLAG_INSTANTIATABLE | G_TYPE_FLAG_DERIVABLE | G_TYPE_FLAG_DEEP_DERIVABLE) }; - GType publishing_piwigo_category_type_id; - publishing_piwigo_category_type_id = g_type_register_fundamental (g_type_fundamental_next (), "PublishingPiwigoCategory", &g_define_type_info, &g_define_type_fundamental_info, 0); - g_once_init_leave (&publishing_piwigo_category_type_id__volatile, publishing_piwigo_category_type_id); - } - return publishing_piwigo_category_type_id__volatile; -} - - -gpointer -publishing_piwigo_category_ref (gpointer instance) -{ - PublishingPiwigoCategory * self; - self = instance; -#line 61 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_atomic_int_inc (&self->ref_count); -#line 61 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - return instance; -#line 2001 "PiwigoPublishing.c" -} - - -void -publishing_piwigo_category_unref (gpointer instance) -{ - PublishingPiwigoCategory * self; - self = instance; -#line 61 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - if (g_atomic_int_dec_and_test (&self->ref_count)) { -#line 61 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - PUBLISHING_PIWIGO_CATEGORY_GET_CLASS (self)->finalize (self); -#line 61 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_type_free_instance ((GTypeInstance *) self); -#line 2016 "PiwigoPublishing.c" - } -} - - -PublishingPiwigoPermissionLevel* -publishing_piwigo_permission_level_construct (GType object_type, - gint id, - const gchar* name) -{ - PublishingPiwigoPermissionLevel* self = NULL; - gchar* _tmp0_; -#line 98 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_return_val_if_fail (name != NULL, NULL); -#line 98 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - self = (PublishingPiwigoPermissionLevel*) g_type_create_instance (object_type); -#line 99 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - self->id = id; -#line 100 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp0_ = g_strdup (name); -#line 100 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_free0 (self->name); -#line 100 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - self->name = _tmp0_; -#line 98 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - return self; -#line 2042 "PiwigoPublishing.c" -} - - -PublishingPiwigoPermissionLevel* -publishing_piwigo_permission_level_new (gint id, - const gchar* name) -{ -#line 98 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - return publishing_piwigo_permission_level_construct (PUBLISHING_PIWIGO_TYPE_PERMISSION_LEVEL, id, name); -#line 2052 "PiwigoPublishing.c" -} - - -static void -publishing_piwigo_value_permission_level_init (GValue* value) -{ -#line 94 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - value->data[0].v_pointer = NULL; -#line 2061 "PiwigoPublishing.c" -} - - -static void -publishing_piwigo_value_permission_level_free_value (GValue* value) -{ -#line 94 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - if (value->data[0].v_pointer) { -#line 94 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - publishing_piwigo_permission_level_unref (value->data[0].v_pointer); -#line 2072 "PiwigoPublishing.c" - } -} - - -static void -publishing_piwigo_value_permission_level_copy_value (const GValue* src_value, - GValue* dest_value) -{ -#line 94 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - if (src_value->data[0].v_pointer) { -#line 94 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - dest_value->data[0].v_pointer = publishing_piwigo_permission_level_ref (src_value->data[0].v_pointer); -#line 2085 "PiwigoPublishing.c" - } else { -#line 94 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - dest_value->data[0].v_pointer = NULL; -#line 2089 "PiwigoPublishing.c" - } -} - - -static gpointer -publishing_piwigo_value_permission_level_peek_pointer (const GValue* value) -{ -#line 94 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - return value->data[0].v_pointer; -#line 2099 "PiwigoPublishing.c" -} - - -static gchar* -publishing_piwigo_value_permission_level_collect_value (GValue* value, - guint n_collect_values, - GTypeCValue* collect_values, - guint collect_flags) -{ -#line 94 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - if (collect_values[0].v_pointer) { -#line 2111 "PiwigoPublishing.c" - PublishingPiwigoPermissionLevel * object; - object = collect_values[0].v_pointer; -#line 94 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - if (object->parent_instance.g_class == NULL) { -#line 94 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL); -#line 2118 "PiwigoPublishing.c" - } else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) { -#line 94 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - return g_strconcat ("invalid object type `", g_type_name (G_TYPE_FROM_INSTANCE (object)), "' for value type `", G_VALUE_TYPE_NAME (value), "'", NULL); -#line 2122 "PiwigoPublishing.c" - } -#line 94 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - value->data[0].v_pointer = publishing_piwigo_permission_level_ref (object); -#line 2126 "PiwigoPublishing.c" - } else { -#line 94 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - value->data[0].v_pointer = NULL; -#line 2130 "PiwigoPublishing.c" - } -#line 94 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - return NULL; -#line 2134 "PiwigoPublishing.c" -} - - -static gchar* -publishing_piwigo_value_permission_level_lcopy_value (const GValue* value, - guint n_collect_values, - GTypeCValue* collect_values, - guint collect_flags) -{ - PublishingPiwigoPermissionLevel ** object_p; - object_p = collect_values[0].v_pointer; -#line 94 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - if (!object_p) { -#line 94 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value)); -#line 2150 "PiwigoPublishing.c" - } -#line 94 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - if (!value->data[0].v_pointer) { -#line 94 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - *object_p = NULL; -#line 2156 "PiwigoPublishing.c" - } else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) { -#line 94 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - *object_p = value->data[0].v_pointer; -#line 2160 "PiwigoPublishing.c" - } else { -#line 94 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - *object_p = publishing_piwigo_permission_level_ref (value->data[0].v_pointer); -#line 2164 "PiwigoPublishing.c" - } -#line 94 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - return NULL; -#line 2168 "PiwigoPublishing.c" -} - - -GParamSpec* -publishing_piwigo_param_spec_permission_level (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags) -{ - PublishingPiwigoParamSpecPermissionLevel* spec; -#line 94 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_return_val_if_fail (g_type_is_a (object_type, PUBLISHING_PIWIGO_TYPE_PERMISSION_LEVEL), NULL); -#line 94 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags); -#line 94 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - G_PARAM_SPEC (spec)->value_type = object_type; -#line 94 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - return G_PARAM_SPEC (spec); -#line 2188 "PiwigoPublishing.c" -} - - -gpointer -publishing_piwigo_value_get_permission_level (const GValue* value) -{ -#line 94 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, PUBLISHING_PIWIGO_TYPE_PERMISSION_LEVEL), NULL); -#line 94 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - return value->data[0].v_pointer; -#line 2199 "PiwigoPublishing.c" -} - - -void -publishing_piwigo_value_set_permission_level (GValue* value, - gpointer v_object) -{ - PublishingPiwigoPermissionLevel * old; -#line 94 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, PUBLISHING_PIWIGO_TYPE_PERMISSION_LEVEL)); -#line 94 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - old = value->data[0].v_pointer; -#line 94 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - if (v_object) { -#line 94 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, PUBLISHING_PIWIGO_TYPE_PERMISSION_LEVEL)); -#line 94 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value))); -#line 94 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - value->data[0].v_pointer = v_object; -#line 94 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - publishing_piwigo_permission_level_ref (value->data[0].v_pointer); -#line 2222 "PiwigoPublishing.c" - } else { -#line 94 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - value->data[0].v_pointer = NULL; -#line 2226 "PiwigoPublishing.c" - } -#line 94 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - if (old) { -#line 94 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - publishing_piwigo_permission_level_unref (old); -#line 2232 "PiwigoPublishing.c" - } -} - - -void -publishing_piwigo_value_take_permission_level (GValue* value, - gpointer v_object) -{ - PublishingPiwigoPermissionLevel * old; -#line 94 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, PUBLISHING_PIWIGO_TYPE_PERMISSION_LEVEL)); -#line 94 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - old = value->data[0].v_pointer; -#line 94 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - if (v_object) { -#line 94 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, PUBLISHING_PIWIGO_TYPE_PERMISSION_LEVEL)); -#line 94 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value))); -#line 94 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - value->data[0].v_pointer = v_object; -#line 2254 "PiwigoPublishing.c" - } else { -#line 94 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - value->data[0].v_pointer = NULL; -#line 2258 "PiwigoPublishing.c" - } -#line 94 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - if (old) { -#line 94 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - publishing_piwigo_permission_level_unref (old); -#line 2264 "PiwigoPublishing.c" - } -} - - -static void -publishing_piwigo_permission_level_class_init (PublishingPiwigoPermissionLevelClass * klass) -{ -#line 94 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - publishing_piwigo_permission_level_parent_class = g_type_class_peek_parent (klass); -#line 94 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - ((PublishingPiwigoPermissionLevelClass *) klass)->finalize = publishing_piwigo_permission_level_finalize; -#line 2276 "PiwigoPublishing.c" -} - - -static void -publishing_piwigo_permission_level_instance_init (PublishingPiwigoPermissionLevel * self) -{ -#line 94 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - self->ref_count = 1; -#line 2285 "PiwigoPublishing.c" -} - - -static void -publishing_piwigo_permission_level_finalize (PublishingPiwigoPermissionLevel * obj) -{ - PublishingPiwigoPermissionLevel * self; -#line 94 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, PUBLISHING_PIWIGO_TYPE_PERMISSION_LEVEL, PublishingPiwigoPermissionLevel); -#line 94 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_signal_handlers_destroy (self); -#line 96 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_free0 (self->name); -#line 2299 "PiwigoPublishing.c" -} - - -GType -publishing_piwigo_permission_level_get_type (void) -{ - static volatile gsize publishing_piwigo_permission_level_type_id__volatile = 0; - if (g_once_init_enter (&publishing_piwigo_permission_level_type_id__volatile)) { - static const GTypeValueTable g_define_type_value_table = { publishing_piwigo_value_permission_level_init, publishing_piwigo_value_permission_level_free_value, publishing_piwigo_value_permission_level_copy_value, publishing_piwigo_value_permission_level_peek_pointer, "p", publishing_piwigo_value_permission_level_collect_value, "p", publishing_piwigo_value_permission_level_lcopy_value }; - static const GTypeInfo g_define_type_info = { sizeof (PublishingPiwigoPermissionLevelClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) publishing_piwigo_permission_level_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PublishingPiwigoPermissionLevel), 0, (GInstanceInitFunc) publishing_piwigo_permission_level_instance_init, &g_define_type_value_table }; - static const GTypeFundamentalInfo g_define_type_fundamental_info = { (G_TYPE_FLAG_CLASSED | G_TYPE_FLAG_INSTANTIATABLE | G_TYPE_FLAG_DERIVABLE | G_TYPE_FLAG_DEEP_DERIVABLE) }; - GType publishing_piwigo_permission_level_type_id; - publishing_piwigo_permission_level_type_id = g_type_register_fundamental (g_type_fundamental_next (), "PublishingPiwigoPermissionLevel", &g_define_type_info, &g_define_type_fundamental_info, 0); - g_once_init_leave (&publishing_piwigo_permission_level_type_id__volatile, publishing_piwigo_permission_level_type_id); - } - return publishing_piwigo_permission_level_type_id__volatile; -} - - -gpointer -publishing_piwigo_permission_level_ref (gpointer instance) -{ - PublishingPiwigoPermissionLevel * self; - self = instance; -#line 94 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_atomic_int_inc (&self->ref_count); -#line 94 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - return instance; -#line 2328 "PiwigoPublishing.c" -} - - -void -publishing_piwigo_permission_level_unref (gpointer instance) -{ - PublishingPiwigoPermissionLevel * self; - self = instance; -#line 94 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - if (g_atomic_int_dec_and_test (&self->ref_count)) { -#line 94 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - PUBLISHING_PIWIGO_PERMISSION_LEVEL_GET_CLASS (self)->finalize (self); -#line 94 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_type_free_instance ((GTypeInstance *) self); -#line 2343 "PiwigoPublishing.c" - } -} - - -PublishingPiwigoSizeEntry* -publishing_piwigo_size_entry_construct (GType object_type, - gint id, - const gchar* name) -{ - PublishingPiwigoSizeEntry* self = NULL; - gchar* _tmp0_; -#line 108 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_return_val_if_fail (name != NULL, NULL); -#line 108 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - self = (PublishingPiwigoSizeEntry*) g_type_create_instance (object_type); -#line 109 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - self->id = id; -#line 110 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp0_ = g_strdup (name); -#line 110 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_free0 (self->name); -#line 110 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - self->name = _tmp0_; -#line 108 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - return self; -#line 2369 "PiwigoPublishing.c" -} - - -PublishingPiwigoSizeEntry* -publishing_piwigo_size_entry_new (gint id, - const gchar* name) -{ -#line 108 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - return publishing_piwigo_size_entry_construct (PUBLISHING_PIWIGO_TYPE_SIZE_ENTRY, id, name); -#line 2379 "PiwigoPublishing.c" -} - - -static void -publishing_piwigo_value_size_entry_init (GValue* value) -{ -#line 104 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - value->data[0].v_pointer = NULL; -#line 2388 "PiwigoPublishing.c" -} - - -static void -publishing_piwigo_value_size_entry_free_value (GValue* value) -{ -#line 104 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - if (value->data[0].v_pointer) { -#line 104 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - publishing_piwigo_size_entry_unref (value->data[0].v_pointer); -#line 2399 "PiwigoPublishing.c" - } -} - - -static void -publishing_piwigo_value_size_entry_copy_value (const GValue* src_value, - GValue* dest_value) -{ -#line 104 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - if (src_value->data[0].v_pointer) { -#line 104 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - dest_value->data[0].v_pointer = publishing_piwigo_size_entry_ref (src_value->data[0].v_pointer); -#line 2412 "PiwigoPublishing.c" - } else { -#line 104 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - dest_value->data[0].v_pointer = NULL; -#line 2416 "PiwigoPublishing.c" - } -} - - -static gpointer -publishing_piwigo_value_size_entry_peek_pointer (const GValue* value) -{ -#line 104 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - return value->data[0].v_pointer; -#line 2426 "PiwigoPublishing.c" -} - - -static gchar* -publishing_piwigo_value_size_entry_collect_value (GValue* value, - guint n_collect_values, - GTypeCValue* collect_values, - guint collect_flags) -{ -#line 104 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - if (collect_values[0].v_pointer) { -#line 2438 "PiwigoPublishing.c" - PublishingPiwigoSizeEntry * object; - object = collect_values[0].v_pointer; -#line 104 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - if (object->parent_instance.g_class == NULL) { -#line 104 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL); -#line 2445 "PiwigoPublishing.c" - } else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) { -#line 104 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - return g_strconcat ("invalid object type `", g_type_name (G_TYPE_FROM_INSTANCE (object)), "' for value type `", G_VALUE_TYPE_NAME (value), "'", NULL); -#line 2449 "PiwigoPublishing.c" - } -#line 104 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - value->data[0].v_pointer = publishing_piwigo_size_entry_ref (object); -#line 2453 "PiwigoPublishing.c" - } else { -#line 104 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - value->data[0].v_pointer = NULL; -#line 2457 "PiwigoPublishing.c" - } -#line 104 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - return NULL; -#line 2461 "PiwigoPublishing.c" -} - - -static gchar* -publishing_piwigo_value_size_entry_lcopy_value (const GValue* value, - guint n_collect_values, - GTypeCValue* collect_values, - guint collect_flags) -{ - PublishingPiwigoSizeEntry ** object_p; - object_p = collect_values[0].v_pointer; -#line 104 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - if (!object_p) { -#line 104 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value)); -#line 2477 "PiwigoPublishing.c" - } -#line 104 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - if (!value->data[0].v_pointer) { -#line 104 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - *object_p = NULL; -#line 2483 "PiwigoPublishing.c" - } else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) { -#line 104 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - *object_p = value->data[0].v_pointer; -#line 2487 "PiwigoPublishing.c" - } else { -#line 104 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - *object_p = publishing_piwigo_size_entry_ref (value->data[0].v_pointer); -#line 2491 "PiwigoPublishing.c" - } -#line 104 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - return NULL; -#line 2495 "PiwigoPublishing.c" -} - - -GParamSpec* -publishing_piwigo_param_spec_size_entry (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags) -{ - PublishingPiwigoParamSpecSizeEntry* spec; -#line 104 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_return_val_if_fail (g_type_is_a (object_type, PUBLISHING_PIWIGO_TYPE_SIZE_ENTRY), NULL); -#line 104 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags); -#line 104 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - G_PARAM_SPEC (spec)->value_type = object_type; -#line 104 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - return G_PARAM_SPEC (spec); -#line 2515 "PiwigoPublishing.c" -} - - -gpointer -publishing_piwigo_value_get_size_entry (const GValue* value) -{ -#line 104 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, PUBLISHING_PIWIGO_TYPE_SIZE_ENTRY), NULL); -#line 104 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - return value->data[0].v_pointer; -#line 2526 "PiwigoPublishing.c" -} - - -void -publishing_piwigo_value_set_size_entry (GValue* value, - gpointer v_object) -{ - PublishingPiwigoSizeEntry * old; -#line 104 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, PUBLISHING_PIWIGO_TYPE_SIZE_ENTRY)); -#line 104 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - old = value->data[0].v_pointer; -#line 104 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - if (v_object) { -#line 104 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, PUBLISHING_PIWIGO_TYPE_SIZE_ENTRY)); -#line 104 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value))); -#line 104 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - value->data[0].v_pointer = v_object; -#line 104 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - publishing_piwigo_size_entry_ref (value->data[0].v_pointer); -#line 2549 "PiwigoPublishing.c" - } else { -#line 104 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - value->data[0].v_pointer = NULL; -#line 2553 "PiwigoPublishing.c" - } -#line 104 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - if (old) { -#line 104 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - publishing_piwigo_size_entry_unref (old); -#line 2559 "PiwigoPublishing.c" - } -} - - -void -publishing_piwigo_value_take_size_entry (GValue* value, - gpointer v_object) -{ - PublishingPiwigoSizeEntry * old; -#line 104 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, PUBLISHING_PIWIGO_TYPE_SIZE_ENTRY)); -#line 104 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - old = value->data[0].v_pointer; -#line 104 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - if (v_object) { -#line 104 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, PUBLISHING_PIWIGO_TYPE_SIZE_ENTRY)); -#line 104 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value))); -#line 104 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - value->data[0].v_pointer = v_object; -#line 2581 "PiwigoPublishing.c" - } else { -#line 104 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - value->data[0].v_pointer = NULL; -#line 2585 "PiwigoPublishing.c" - } -#line 104 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - if (old) { -#line 104 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - publishing_piwigo_size_entry_unref (old); -#line 2591 "PiwigoPublishing.c" - } -} - - -static void -publishing_piwigo_size_entry_class_init (PublishingPiwigoSizeEntryClass * klass) -{ -#line 104 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - publishing_piwigo_size_entry_parent_class = g_type_class_peek_parent (klass); -#line 104 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - ((PublishingPiwigoSizeEntryClass *) klass)->finalize = publishing_piwigo_size_entry_finalize; -#line 2603 "PiwigoPublishing.c" -} - - -static void -publishing_piwigo_size_entry_instance_init (PublishingPiwigoSizeEntry * self) -{ -#line 104 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - self->ref_count = 1; -#line 2612 "PiwigoPublishing.c" -} - - -static void -publishing_piwigo_size_entry_finalize (PublishingPiwigoSizeEntry * obj) -{ - PublishingPiwigoSizeEntry * self; -#line 104 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, PUBLISHING_PIWIGO_TYPE_SIZE_ENTRY, PublishingPiwigoSizeEntry); -#line 104 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_signal_handlers_destroy (self); -#line 106 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_free0 (self->name); -#line 2626 "PiwigoPublishing.c" -} - - -GType -publishing_piwigo_size_entry_get_type (void) -{ - static volatile gsize publishing_piwigo_size_entry_type_id__volatile = 0; - if (g_once_init_enter (&publishing_piwigo_size_entry_type_id__volatile)) { - static const GTypeValueTable g_define_type_value_table = { publishing_piwigo_value_size_entry_init, publishing_piwigo_value_size_entry_free_value, publishing_piwigo_value_size_entry_copy_value, publishing_piwigo_value_size_entry_peek_pointer, "p", publishing_piwigo_value_size_entry_collect_value, "p", publishing_piwigo_value_size_entry_lcopy_value }; - static const GTypeInfo g_define_type_info = { sizeof (PublishingPiwigoSizeEntryClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) publishing_piwigo_size_entry_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PublishingPiwigoSizeEntry), 0, (GInstanceInitFunc) publishing_piwigo_size_entry_instance_init, &g_define_type_value_table }; - static const GTypeFundamentalInfo g_define_type_fundamental_info = { (G_TYPE_FLAG_CLASSED | G_TYPE_FLAG_INSTANTIATABLE | G_TYPE_FLAG_DERIVABLE | G_TYPE_FLAG_DEEP_DERIVABLE) }; - GType publishing_piwigo_size_entry_type_id; - publishing_piwigo_size_entry_type_id = g_type_register_fundamental (g_type_fundamental_next (), "PublishingPiwigoSizeEntry", &g_define_type_info, &g_define_type_fundamental_info, 0); - g_once_init_leave (&publishing_piwigo_size_entry_type_id__volatile, publishing_piwigo_size_entry_type_id); - } - return publishing_piwigo_size_entry_type_id__volatile; -} - - -gpointer -publishing_piwigo_size_entry_ref (gpointer instance) -{ - PublishingPiwigoSizeEntry * self; - self = instance; -#line 104 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_atomic_int_inc (&self->ref_count); -#line 104 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - return instance; -#line 2655 "PiwigoPublishing.c" -} - - -void -publishing_piwigo_size_entry_unref (gpointer instance) -{ - PublishingPiwigoSizeEntry * self; - self = instance; -#line 104 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - if (g_atomic_int_dec_and_test (&self->ref_count)) { -#line 104 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - PUBLISHING_PIWIGO_SIZE_ENTRY_GET_CLASS (self)->finalize (self); -#line 104 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_type_free_instance ((GTypeInstance *) self); -#line 2670 "PiwigoPublishing.c" - } -} - - -PublishingPiwigoPublishingParameters* -publishing_piwigo_publishing_parameters_construct (GType object_type) -{ - PublishingPiwigoPublishingParameters* self = NULL; -#line 121 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - self = (PublishingPiwigoPublishingParameters*) g_type_create_instance (object_type); -#line 121 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - return self; -#line 2683 "PiwigoPublishing.c" -} - - -PublishingPiwigoPublishingParameters* -publishing_piwigo_publishing_parameters_new (void) -{ -#line 121 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - return publishing_piwigo_publishing_parameters_construct (PUBLISHING_PIWIGO_TYPE_PUBLISHING_PARAMETERS); -#line 2692 "PiwigoPublishing.c" -} - - -static void -publishing_piwigo_value_publishing_parameters_init (GValue* value) -{ -#line 114 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - value->data[0].v_pointer = NULL; -#line 2701 "PiwigoPublishing.c" -} - - -static void -publishing_piwigo_value_publishing_parameters_free_value (GValue* value) -{ -#line 114 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - if (value->data[0].v_pointer) { -#line 114 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - publishing_piwigo_publishing_parameters_unref (value->data[0].v_pointer); -#line 2712 "PiwigoPublishing.c" - } -} - - -static void -publishing_piwigo_value_publishing_parameters_copy_value (const GValue* src_value, - GValue* dest_value) -{ -#line 114 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - if (src_value->data[0].v_pointer) { -#line 114 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - dest_value->data[0].v_pointer = publishing_piwigo_publishing_parameters_ref (src_value->data[0].v_pointer); -#line 2725 "PiwigoPublishing.c" - } else { -#line 114 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - dest_value->data[0].v_pointer = NULL; -#line 2729 "PiwigoPublishing.c" - } -} - - -static gpointer -publishing_piwigo_value_publishing_parameters_peek_pointer (const GValue* value) -{ -#line 114 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - return value->data[0].v_pointer; -#line 2739 "PiwigoPublishing.c" -} - - -static gchar* -publishing_piwigo_value_publishing_parameters_collect_value (GValue* value, - guint n_collect_values, - GTypeCValue* collect_values, - guint collect_flags) -{ -#line 114 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - if (collect_values[0].v_pointer) { -#line 2751 "PiwigoPublishing.c" - PublishingPiwigoPublishingParameters * object; - object = collect_values[0].v_pointer; -#line 114 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - if (object->parent_instance.g_class == NULL) { -#line 114 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL); -#line 2758 "PiwigoPublishing.c" - } else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) { -#line 114 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - return g_strconcat ("invalid object type `", g_type_name (G_TYPE_FROM_INSTANCE (object)), "' for value type `", G_VALUE_TYPE_NAME (value), "'", NULL); -#line 2762 "PiwigoPublishing.c" - } -#line 114 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - value->data[0].v_pointer = publishing_piwigo_publishing_parameters_ref (object); -#line 2766 "PiwigoPublishing.c" - } else { -#line 114 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - value->data[0].v_pointer = NULL; -#line 2770 "PiwigoPublishing.c" - } -#line 114 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - return NULL; -#line 2774 "PiwigoPublishing.c" -} - - -static gchar* -publishing_piwigo_value_publishing_parameters_lcopy_value (const GValue* value, - guint n_collect_values, - GTypeCValue* collect_values, - guint collect_flags) -{ - PublishingPiwigoPublishingParameters ** object_p; - object_p = collect_values[0].v_pointer; -#line 114 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - if (!object_p) { -#line 114 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value)); -#line 2790 "PiwigoPublishing.c" - } -#line 114 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - if (!value->data[0].v_pointer) { -#line 114 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - *object_p = NULL; -#line 2796 "PiwigoPublishing.c" - } else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) { -#line 114 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - *object_p = value->data[0].v_pointer; -#line 2800 "PiwigoPublishing.c" - } else { -#line 114 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - *object_p = publishing_piwigo_publishing_parameters_ref (value->data[0].v_pointer); -#line 2804 "PiwigoPublishing.c" - } -#line 114 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - return NULL; -#line 2808 "PiwigoPublishing.c" -} - - -GParamSpec* -publishing_piwigo_param_spec_publishing_parameters (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags) -{ - PublishingPiwigoParamSpecPublishingParameters* spec; -#line 114 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_return_val_if_fail (g_type_is_a (object_type, PUBLISHING_PIWIGO_TYPE_PUBLISHING_PARAMETERS), NULL); -#line 114 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags); -#line 114 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - G_PARAM_SPEC (spec)->value_type = object_type; -#line 114 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - return G_PARAM_SPEC (spec); -#line 2828 "PiwigoPublishing.c" -} - - -gpointer -publishing_piwigo_value_get_publishing_parameters (const GValue* value) -{ -#line 114 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, PUBLISHING_PIWIGO_TYPE_PUBLISHING_PARAMETERS), NULL); -#line 114 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - return value->data[0].v_pointer; -#line 2839 "PiwigoPublishing.c" -} - - -void -publishing_piwigo_value_set_publishing_parameters (GValue* value, - gpointer v_object) -{ - PublishingPiwigoPublishingParameters * old; -#line 114 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, PUBLISHING_PIWIGO_TYPE_PUBLISHING_PARAMETERS)); -#line 114 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - old = value->data[0].v_pointer; -#line 114 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - if (v_object) { -#line 114 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, PUBLISHING_PIWIGO_TYPE_PUBLISHING_PARAMETERS)); -#line 114 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value))); -#line 114 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - value->data[0].v_pointer = v_object; -#line 114 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - publishing_piwigo_publishing_parameters_ref (value->data[0].v_pointer); -#line 2862 "PiwigoPublishing.c" - } else { -#line 114 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - value->data[0].v_pointer = NULL; -#line 2866 "PiwigoPublishing.c" - } -#line 114 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - if (old) { -#line 114 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - publishing_piwigo_publishing_parameters_unref (old); -#line 2872 "PiwigoPublishing.c" - } -} - - -void -publishing_piwigo_value_take_publishing_parameters (GValue* value, - gpointer v_object) -{ - PublishingPiwigoPublishingParameters * old; -#line 114 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, PUBLISHING_PIWIGO_TYPE_PUBLISHING_PARAMETERS)); -#line 114 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - old = value->data[0].v_pointer; -#line 114 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - if (v_object) { -#line 114 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, PUBLISHING_PIWIGO_TYPE_PUBLISHING_PARAMETERS)); -#line 114 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value))); -#line 114 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - value->data[0].v_pointer = v_object; -#line 2894 "PiwigoPublishing.c" - } else { -#line 114 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - value->data[0].v_pointer = NULL; -#line 2898 "PiwigoPublishing.c" - } -#line 114 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - if (old) { -#line 114 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - publishing_piwigo_publishing_parameters_unref (old); -#line 2904 "PiwigoPublishing.c" - } -} - - -static void -publishing_piwigo_publishing_parameters_class_init (PublishingPiwigoPublishingParametersClass * klass) -{ -#line 114 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - publishing_piwigo_publishing_parameters_parent_class = g_type_class_peek_parent (klass); -#line 114 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - ((PublishingPiwigoPublishingParametersClass *) klass)->finalize = publishing_piwigo_publishing_parameters_finalize; -#line 2916 "PiwigoPublishing.c" -} - - -static void -publishing_piwigo_publishing_parameters_instance_init (PublishingPiwigoPublishingParameters * self) -{ -#line 115 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - self->category = NULL; -#line 116 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - self->perm_level = NULL; -#line 117 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - self->photo_size = NULL; -#line 118 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - self->title_as_comment = FALSE; -#line 119 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - self->no_upload_tags = FALSE; -#line 114 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - self->ref_count = 1; -#line 2935 "PiwigoPublishing.c" -} - - -static void -publishing_piwigo_publishing_parameters_finalize (PublishingPiwigoPublishingParameters * obj) -{ - PublishingPiwigoPublishingParameters * self; -#line 114 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, PUBLISHING_PIWIGO_TYPE_PUBLISHING_PARAMETERS, PublishingPiwigoPublishingParameters); -#line 114 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_signal_handlers_destroy (self); -#line 115 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _publishing_piwigo_category_unref0 (self->category); -#line 116 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _publishing_piwigo_permission_level_unref0 (self->perm_level); -#line 117 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _publishing_piwigo_size_entry_unref0 (self->photo_size); -#line 2953 "PiwigoPublishing.c" -} - - -GType -publishing_piwigo_publishing_parameters_get_type (void) -{ - static volatile gsize publishing_piwigo_publishing_parameters_type_id__volatile = 0; - if (g_once_init_enter (&publishing_piwigo_publishing_parameters_type_id__volatile)) { - static const GTypeValueTable g_define_type_value_table = { publishing_piwigo_value_publishing_parameters_init, publishing_piwigo_value_publishing_parameters_free_value, publishing_piwigo_value_publishing_parameters_copy_value, publishing_piwigo_value_publishing_parameters_peek_pointer, "p", publishing_piwigo_value_publishing_parameters_collect_value, "p", publishing_piwigo_value_publishing_parameters_lcopy_value }; - static const GTypeInfo g_define_type_info = { sizeof (PublishingPiwigoPublishingParametersClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) publishing_piwigo_publishing_parameters_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PublishingPiwigoPublishingParameters), 0, (GInstanceInitFunc) publishing_piwigo_publishing_parameters_instance_init, &g_define_type_value_table }; - static const GTypeFundamentalInfo g_define_type_fundamental_info = { (G_TYPE_FLAG_CLASSED | G_TYPE_FLAG_INSTANTIATABLE | G_TYPE_FLAG_DERIVABLE | G_TYPE_FLAG_DEEP_DERIVABLE) }; - GType publishing_piwigo_publishing_parameters_type_id; - publishing_piwigo_publishing_parameters_type_id = g_type_register_fundamental (g_type_fundamental_next (), "PublishingPiwigoPublishingParameters", &g_define_type_info, &g_define_type_fundamental_info, 0); - g_once_init_leave (&publishing_piwigo_publishing_parameters_type_id__volatile, publishing_piwigo_publishing_parameters_type_id); - } - return publishing_piwigo_publishing_parameters_type_id__volatile; -} - - -gpointer -publishing_piwigo_publishing_parameters_ref (gpointer instance) -{ - PublishingPiwigoPublishingParameters * self; - self = instance; -#line 114 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_atomic_int_inc (&self->ref_count); -#line 114 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - return instance; -#line 2982 "PiwigoPublishing.c" -} - - -void -publishing_piwigo_publishing_parameters_unref (gpointer instance) -{ - PublishingPiwigoPublishingParameters * self; - self = instance; -#line 114 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - if (g_atomic_int_dec_and_test (&self->ref_count)) { -#line 114 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - PUBLISHING_PIWIGO_PUBLISHING_PARAMETERS_GET_CLASS (self)->finalize (self); -#line 114 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_type_free_instance ((GTypeInstance *) self); -#line 2997 "PiwigoPublishing.c" - } -} - - -PublishingPiwigoPiwigoPublisher* -publishing_piwigo_piwigo_publisher_construct (GType object_type, - SpitPublishingService* service, - SpitPublishingPluginHost* host) -{ - PublishingPiwigoPiwigoPublisher * self = NULL; - SpitPublishingService* _tmp0_; - SpitPublishingPluginHost* _tmp1_; - PublishingPiwigoSession* _tmp2_; -#line 135 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_return_val_if_fail (SPIT_PUBLISHING_IS_SERVICE (service), NULL); -#line 135 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_return_val_if_fail (SPIT_PUBLISHING_IS_PLUGIN_HOST (host), NULL); -#line 135 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - self = (PublishingPiwigoPiwigoPublisher*) g_object_new (object_type, NULL); -#line 137 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_debug ("PiwigoPublishing.vala:137: PiwigoPublisher instantiated."); -#line 138 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp0_ = _g_object_ref0 (service); -#line 138 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_object_unref0 (self->priv->service); -#line 138 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - self->priv->service = _tmp0_; -#line 139 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp1_ = _g_object_ref0 (host); -#line 139 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_object_unref0 (self->priv->host); -#line 139 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - self->priv->host = _tmp1_; -#line 140 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp2_ = publishing_piwigo_session_new (); -#line 140 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _publishing_rest_support_session_unref0 (self->priv->session); -#line 140 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - self->priv->session = _tmp2_; -#line 135 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - return self; -#line 3039 "PiwigoPublishing.c" -} - - -PublishingPiwigoPiwigoPublisher* -publishing_piwigo_piwigo_publisher_new (SpitPublishingService* service, - SpitPublishingPluginHost* host) -{ -#line 135 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - return publishing_piwigo_piwigo_publisher_construct (PUBLISHING_PIWIGO_TYPE_PIWIGO_PUBLISHER, service, host); -#line 3049 "PiwigoPublishing.c" -} - - -static SpitPublishingService* -publishing_piwigo_piwigo_publisher_real_get_service (SpitPublishingPublisher* base) -{ - PublishingPiwigoPiwigoPublisher * self; - SpitPublishingService* result = NULL; - SpitPublishingService* _tmp0_; - SpitPublishingService* _tmp1_; -#line 145 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_PIWIGO_TYPE_PIWIGO_PUBLISHER, PublishingPiwigoPiwigoPublisher); -#line 146 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp0_ = self->priv->service; -#line 146 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp1_ = _g_object_ref0 (_tmp0_); -#line 146 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - result = _tmp1_; -#line 146 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - return result; -#line 3070 "PiwigoPublishing.c" -} - - -SpitPublishingPluginHost* -publishing_piwigo_piwigo_publisher_get_host (PublishingPiwigoPiwigoPublisher* self) -{ - SpitPublishingPluginHost* result = NULL; - SpitPublishingPluginHost* _tmp0_; - SpitPublishingPluginHost* _tmp1_; -#line 149 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_return_val_if_fail (PUBLISHING_PIWIGO_IS_PIWIGO_PUBLISHER (self), NULL); -#line 150 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp0_ = self->priv->host; -#line 150 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp1_ = _g_object_ref0 (_tmp0_); -#line 150 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - result = _tmp1_; -#line 150 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - return result; -#line 3090 "PiwigoPublishing.c" -} - - -static gboolean -publishing_piwigo_piwigo_publisher_real_is_running (SpitPublishingPublisher* base) -{ - PublishingPiwigoPiwigoPublisher * self; - gboolean result = FALSE; - gboolean _tmp0_; -#line 153 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_PIWIGO_TYPE_PIWIGO_PUBLISHER, PublishingPiwigoPiwigoPublisher); -#line 154 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp0_ = self->priv->running; -#line 154 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - result = _tmp0_; -#line 154 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - return result; -#line 3108 "PiwigoPublishing.c" -} - - -static void -publishing_piwigo_piwigo_publisher_real_start (SpitPublishingPublisher* base) -{ - PublishingPiwigoPiwigoPublisher * self; - PublishingPiwigoSession* _tmp0_; -#line 157 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_PIWIGO_TYPE_PIWIGO_PUBLISHER, PublishingPiwigoPiwigoPublisher); -#line 158 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - if (spit_publishing_publisher_is_running (G_TYPE_CHECK_INSTANCE_CAST (self, SPIT_PUBLISHING_TYPE_PUBLISHER, SpitPublishingPublisher))) { -#line 159 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - return; -#line 3123 "PiwigoPublishing.c" - } -#line 161 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_debug ("PiwigoPublishing.vala:161: PiwigoPublisher: starting interaction."); -#line 163 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - self->priv->running = TRUE; -#line 165 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp0_ = self->priv->session; -#line 165 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - if (publishing_rest_support_session_is_authenticated (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, PUBLISHING_REST_SUPPORT_TYPE_SESSION, PublishingRESTSupportSession))) { -#line 166 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_debug ("PiwigoPublishing.vala:166: PiwigoPublisher: session is authenticated."); -#line 167 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - publishing_piwigo_piwigo_publisher_do_fetch_categories (self); -#line 3137 "PiwigoPublishing.c" - } else { - gchar* persistent_url = NULL; - gchar* _tmp1_; - gchar* persistent_username = NULL; - gchar* _tmp2_; - gchar* persistent_password = NULL; - gchar* _tmp3_; - gboolean _tmp4_ = FALSE; - gboolean _tmp5_ = FALSE; - const gchar* _tmp6_; -#line 169 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_debug ("PiwigoPublishing.vala:169: PiwigoPublisher: session is not authenticat" \ -"ed."); -#line 170 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp1_ = publishing_piwigo_piwigo_publisher_get_persistent_url (self); -#line 170 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - persistent_url = _tmp1_; -#line 171 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp2_ = publishing_piwigo_piwigo_publisher_get_persistent_username (self); -#line 171 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - persistent_username = _tmp2_; -#line 172 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp3_ = publishing_piwigo_piwigo_publisher_get_persistent_password (self); -#line 172 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - persistent_password = _tmp3_; -#line 173 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp6_ = persistent_url; -#line 173 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - if (_tmp6_ != NULL) { -#line 3166 "PiwigoPublishing.c" - const gchar* _tmp7_; -#line 173 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp7_ = persistent_username; -#line 173 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp5_ = _tmp7_ != NULL; -#line 3172 "PiwigoPublishing.c" - } else { -#line 173 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp5_ = FALSE; -#line 3176 "PiwigoPublishing.c" - } -#line 173 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - if (_tmp5_) { -#line 3180 "PiwigoPublishing.c" - const gchar* _tmp8_; -#line 173 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp8_ = persistent_password; -#line 173 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp4_ = _tmp8_ != NULL; -#line 3186 "PiwigoPublishing.c" - } else { -#line 173 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp4_ = FALSE; -#line 3190 "PiwigoPublishing.c" - } -#line 173 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - if (_tmp4_) { -#line 3194 "PiwigoPublishing.c" - const gchar* _tmp9_; - const gchar* _tmp10_; - const gchar* _tmp11_; -#line 174 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp9_ = persistent_url; -#line 174 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp10_ = persistent_username; -#line 174 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp11_ = persistent_password; -#line 174 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - publishing_piwigo_piwigo_publisher_do_network_login (self, _tmp9_, _tmp10_, _tmp11_, publishing_piwigo_piwigo_publisher_get_remember_password (self)); -#line 3206 "PiwigoPublishing.c" - } else { -#line 177 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - publishing_piwigo_piwigo_publisher_do_show_authentication_pane (self, PUBLISHING_PIWIGO_AUTHENTICATION_PANE_MODE_INTRO); -#line 3210 "PiwigoPublishing.c" - } -#line 165 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_free0 (persistent_password); -#line 165 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_free0 (persistent_username); -#line 165 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_free0 (persistent_url); -#line 3218 "PiwigoPublishing.c" - } -} - - -static void -publishing_piwigo_piwigo_publisher_real_stop (SpitPublishingPublisher* base) -{ - PublishingPiwigoPiwigoPublisher * self; -#line 181 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_PIWIGO_TYPE_PIWIGO_PUBLISHER, PublishingPiwigoPiwigoPublisher); -#line 182 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - self->priv->running = FALSE; -#line 3231 "PiwigoPublishing.c" -} - - -gchar* -publishing_piwigo_piwigo_publisher_get_persistent_url (PublishingPiwigoPiwigoPublisher* self) -{ - gchar* result = NULL; - SpitPublishingPluginHost* _tmp0_; - gchar* _tmp1_; -#line 187 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_return_val_if_fail (PUBLISHING_PIWIGO_IS_PIWIGO_PUBLISHER (self), NULL); -#line 188 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp0_ = self->priv->host; -#line 188 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp1_ = spit_host_interface_get_config_string (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, SPIT_TYPE_HOST_INTERFACE, SpitHostInterface), "url", NULL); -#line 188 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - result = _tmp1_; -#line 188 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - return result; -#line 3251 "PiwigoPublishing.c" -} - - -static void -publishing_piwigo_piwigo_publisher_set_persistent_url (PublishingPiwigoPiwigoPublisher* self, - const gchar* url) -{ - SpitPublishingPluginHost* _tmp0_; -#line 191 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_return_if_fail (PUBLISHING_PIWIGO_IS_PIWIGO_PUBLISHER (self)); -#line 191 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_return_if_fail (url != NULL); -#line 192 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp0_ = self->priv->host; -#line 192 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - spit_host_interface_set_config_string (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, SPIT_TYPE_HOST_INTERFACE, SpitHostInterface), "url", url); -#line 3268 "PiwigoPublishing.c" -} - - -gchar* -publishing_piwigo_piwigo_publisher_get_persistent_username (PublishingPiwigoPiwigoPublisher* self) -{ - gchar* result = NULL; - SpitPublishingPluginHost* _tmp0_; - gchar* _tmp1_; -#line 195 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_return_val_if_fail (PUBLISHING_PIWIGO_IS_PIWIGO_PUBLISHER (self), NULL); -#line 196 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp0_ = self->priv->host; -#line 196 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp1_ = spit_host_interface_get_config_string (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, SPIT_TYPE_HOST_INTERFACE, SpitHostInterface), "username", NULL); -#line 196 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - result = _tmp1_; -#line 196 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - return result; -#line 3288 "PiwigoPublishing.c" -} - - -static void -publishing_piwigo_piwigo_publisher_set_persistent_username (PublishingPiwigoPiwigoPublisher* self, - const gchar* username) -{ - SpitPublishingPluginHost* _tmp0_; -#line 199 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_return_if_fail (PUBLISHING_PIWIGO_IS_PIWIGO_PUBLISHER (self)); -#line 199 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_return_if_fail (username != NULL); -#line 200 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp0_ = self->priv->host; -#line 200 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - spit_host_interface_set_config_string (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, SPIT_TYPE_HOST_INTERFACE, SpitHostInterface), "username", username); -#line 3305 "PiwigoPublishing.c" -} - - -gchar* -publishing_piwigo_piwigo_publisher_get_persistent_password (PublishingPiwigoPiwigoPublisher* self) -{ - gchar* result = NULL; - SpitPublishingPluginHost* _tmp0_; - gchar* _tmp1_; -#line 203 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_return_val_if_fail (PUBLISHING_PIWIGO_IS_PIWIGO_PUBLISHER (self), NULL); -#line 204 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp0_ = self->priv->host; -#line 204 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp1_ = spit_host_interface_get_config_string (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, SPIT_TYPE_HOST_INTERFACE, SpitHostInterface), "password", NULL); -#line 204 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - result = _tmp1_; -#line 204 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - return result; -#line 3325 "PiwigoPublishing.c" -} - - -static void -publishing_piwigo_piwigo_publisher_set_persistent_password (PublishingPiwigoPiwigoPublisher* self, - const gchar* password) -{ - SpitPublishingPluginHost* _tmp0_; -#line 207 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_return_if_fail (PUBLISHING_PIWIGO_IS_PIWIGO_PUBLISHER (self)); -#line 208 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp0_ = self->priv->host; -#line 208 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - spit_host_interface_set_config_string (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, SPIT_TYPE_HOST_INTERFACE, SpitHostInterface), "password", password); -#line 3340 "PiwigoPublishing.c" -} - - -gboolean -publishing_piwigo_piwigo_publisher_get_remember_password (PublishingPiwigoPiwigoPublisher* self) -{ - gboolean result = FALSE; - SpitPublishingPluginHost* _tmp0_; -#line 211 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_return_val_if_fail (PUBLISHING_PIWIGO_IS_PIWIGO_PUBLISHER (self), FALSE); -#line 212 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp0_ = self->priv->host; -#line 212 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - result = spit_host_interface_get_config_bool (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, SPIT_TYPE_HOST_INTERFACE, SpitHostInterface), "remember-password", FALSE); -#line 212 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - return result; -#line 3357 "PiwigoPublishing.c" -} - - -static void -publishing_piwigo_piwigo_publisher_set_remember_password (PublishingPiwigoPiwigoPublisher* self, - gboolean remember_password) -{ - SpitPublishingPluginHost* _tmp0_; -#line 215 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_return_if_fail (PUBLISHING_PIWIGO_IS_PIWIGO_PUBLISHER (self)); -#line 216 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp0_ = self->priv->host; -#line 216 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - spit_host_interface_set_config_bool (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, SPIT_TYPE_HOST_INTERFACE, SpitHostInterface), "remember-password", remember_password); -#line 3372 "PiwigoPublishing.c" -} - - -gint -publishing_piwigo_piwigo_publisher_get_last_category (PublishingPiwigoPiwigoPublisher* self) -{ - gint result = 0; - SpitPublishingPluginHost* _tmp0_; -#line 219 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_return_val_if_fail (PUBLISHING_PIWIGO_IS_PIWIGO_PUBLISHER (self), 0); -#line 220 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp0_ = self->priv->host; -#line 220 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - result = spit_host_interface_get_config_int (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, SPIT_TYPE_HOST_INTERFACE, SpitHostInterface), "last-category", -1); -#line 220 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - return result; -#line 3389 "PiwigoPublishing.c" -} - - -static void -publishing_piwigo_piwigo_publisher_set_last_category (PublishingPiwigoPiwigoPublisher* self, - gint last_category) -{ - SpitPublishingPluginHost* _tmp0_; -#line 223 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_return_if_fail (PUBLISHING_PIWIGO_IS_PIWIGO_PUBLISHER (self)); -#line 224 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp0_ = self->priv->host; -#line 224 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - spit_host_interface_set_config_int (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, SPIT_TYPE_HOST_INTERFACE, SpitHostInterface), "last-category", last_category); -#line 3404 "PiwigoPublishing.c" -} - - -gint -publishing_piwigo_piwigo_publisher_get_last_permission_level (PublishingPiwigoPiwigoPublisher* self) -{ - gint result = 0; - SpitPublishingPluginHost* _tmp0_; -#line 227 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_return_val_if_fail (PUBLISHING_PIWIGO_IS_PIWIGO_PUBLISHER (self), 0); -#line 228 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp0_ = self->priv->host; -#line 228 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - result = spit_host_interface_get_config_int (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, SPIT_TYPE_HOST_INTERFACE, SpitHostInterface), "last-permission-level", -1); -#line 228 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - return result; -#line 3421 "PiwigoPublishing.c" -} - - -static void -publishing_piwigo_piwigo_publisher_set_last_permission_level (PublishingPiwigoPiwigoPublisher* self, - gint last_permission_level) -{ - SpitPublishingPluginHost* _tmp0_; -#line 231 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_return_if_fail (PUBLISHING_PIWIGO_IS_PIWIGO_PUBLISHER (self)); -#line 232 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp0_ = self->priv->host; -#line 232 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - spit_host_interface_set_config_int (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, SPIT_TYPE_HOST_INTERFACE, SpitHostInterface), "last-permission-level", last_permission_level); -#line 3436 "PiwigoPublishing.c" -} - - -gint -publishing_piwigo_piwigo_publisher_get_last_photo_size (PublishingPiwigoPiwigoPublisher* self) -{ - gint result = 0; - SpitPublishingPluginHost* _tmp0_; -#line 235 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_return_val_if_fail (PUBLISHING_PIWIGO_IS_PIWIGO_PUBLISHER (self), 0); -#line 236 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp0_ = self->priv->host; -#line 236 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - result = spit_host_interface_get_config_int (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, SPIT_TYPE_HOST_INTERFACE, SpitHostInterface), "last-photo-size", -1); -#line 236 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - return result; -#line 3453 "PiwigoPublishing.c" -} - - -static void -publishing_piwigo_piwigo_publisher_set_last_photo_size (PublishingPiwigoPiwigoPublisher* self, - gint last_photo_size) -{ - SpitPublishingPluginHost* _tmp0_; -#line 239 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_return_if_fail (PUBLISHING_PIWIGO_IS_PIWIGO_PUBLISHER (self)); -#line 240 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp0_ = self->priv->host; -#line 240 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - spit_host_interface_set_config_int (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, SPIT_TYPE_HOST_INTERFACE, SpitHostInterface), "last-photo-size", last_photo_size); -#line 3468 "PiwigoPublishing.c" -} - - -static gboolean -publishing_piwigo_piwigo_publisher_get_last_title_as_comment (PublishingPiwigoPiwigoPublisher* self) -{ - gboolean result = FALSE; - SpitPublishingPluginHost* _tmp0_; -#line 243 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_return_val_if_fail (PUBLISHING_PIWIGO_IS_PIWIGO_PUBLISHER (self), FALSE); -#line 244 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp0_ = self->priv->host; -#line 244 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - result = spit_host_interface_get_config_bool (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, SPIT_TYPE_HOST_INTERFACE, SpitHostInterface), "last-title-as-comment", FALSE); -#line 244 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - return result; -#line 3485 "PiwigoPublishing.c" -} - - -static void -publishing_piwigo_piwigo_publisher_set_last_title_as_comment (PublishingPiwigoPiwigoPublisher* self, - gboolean title_as_comment) -{ - SpitPublishingPluginHost* _tmp0_; -#line 247 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_return_if_fail (PUBLISHING_PIWIGO_IS_PIWIGO_PUBLISHER (self)); -#line 248 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp0_ = self->priv->host; -#line 248 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - spit_host_interface_set_config_bool (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, SPIT_TYPE_HOST_INTERFACE, SpitHostInterface), "last-title-as-comment", title_as_comment); -#line 3500 "PiwigoPublishing.c" -} - - -static gboolean -publishing_piwigo_piwigo_publisher_get_last_no_upload_tags (PublishingPiwigoPiwigoPublisher* self) -{ - gboolean result = FALSE; - SpitPublishingPluginHost* _tmp0_; -#line 251 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_return_val_if_fail (PUBLISHING_PIWIGO_IS_PIWIGO_PUBLISHER (self), FALSE); -#line 252 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp0_ = self->priv->host; -#line 252 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - result = spit_host_interface_get_config_bool (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, SPIT_TYPE_HOST_INTERFACE, SpitHostInterface), "last-no-upload-tags", FALSE); -#line 252 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - return result; -#line 3517 "PiwigoPublishing.c" -} - - -static void -publishing_piwigo_piwigo_publisher_set_last_no_upload_tags (PublishingPiwigoPiwigoPublisher* self, - gboolean no_upload_tags) -{ - SpitPublishingPluginHost* _tmp0_; -#line 255 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_return_if_fail (PUBLISHING_PIWIGO_IS_PIWIGO_PUBLISHER (self)); -#line 256 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp0_ = self->priv->host; -#line 256 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - spit_host_interface_set_config_bool (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, SPIT_TYPE_HOST_INTERFACE, SpitHostInterface), "last-no-upload-tags", no_upload_tags); -#line 3532 "PiwigoPublishing.c" -} - - -static gboolean -publishing_piwigo_piwigo_publisher_get_metadata_removal_choice (PublishingPiwigoPiwigoPublisher* self) -{ - gboolean result = FALSE; - SpitPublishingPluginHost* _tmp0_; -#line 259 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_return_val_if_fail (PUBLISHING_PIWIGO_IS_PIWIGO_PUBLISHER (self), FALSE); -#line 260 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp0_ = self->priv->host; -#line 260 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - result = spit_host_interface_get_config_bool (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, SPIT_TYPE_HOST_INTERFACE, SpitHostInterface), "strip_metadata", FALSE); -#line 260 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - return result; -#line 3549 "PiwigoPublishing.c" -} - - -static void -publishing_piwigo_piwigo_publisher_set_metadata_removal_choice (PublishingPiwigoPiwigoPublisher* self, - gboolean strip_metadata) -{ - SpitPublishingPluginHost* _tmp0_; -#line 263 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_return_if_fail (PUBLISHING_PIWIGO_IS_PIWIGO_PUBLISHER (self)); -#line 264 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp0_ = self->priv->host; -#line 264 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - spit_host_interface_set_config_bool (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, SPIT_TYPE_HOST_INTERFACE, SpitHostInterface), "strip_metadata", strip_metadata); -#line 3564 "PiwigoPublishing.c" -} - - -/** - * Action that shows the authentication pane. - * - * This action method shows the authentication pane. It is shown at the - * very beginning of the interaction when no persistent parameters are found - * or after a failed login attempt using persisted parameters. It can be - * given a mode flag to specify whether it should be displayed in initial - * mode or in any of the error modes that it supports. - * - * @param mode the mode for the authentication pane - */ -static void -_publishing_piwigo_piwigo_publisher_on_authentication_pane_login_clicked_publishing_piwigo_authentication_pane_login (PublishingPiwigoAuthenticationPane* _sender, - const gchar* url, - const gchar* user, - const gchar* password, - gboolean remember_password, - gpointer self) -{ -#line 286 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - publishing_piwigo_piwigo_publisher_on_authentication_pane_login_clicked ((PublishingPiwigoPiwigoPublisher*) self, url, user, password, remember_password); -#line 3589 "PiwigoPublishing.c" -} - - -static void -publishing_piwigo_piwigo_publisher_do_show_authentication_pane (PublishingPiwigoPiwigoPublisher* self, - PublishingPiwigoAuthenticationPaneMode mode) -{ - SpitPublishingPluginHost* _tmp0_; - PublishingPiwigoAuthenticationPane* authentication_pane = NULL; - PublishingPiwigoAuthenticationPane* _tmp1_; - SpitPublishingPluginHost* _tmp2_; - SpitPublishingPluginHost* _tmp3_; - GtkWidget* _tmp4_; - GtkWidget* _tmp5_; -#line 280 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_return_if_fail (PUBLISHING_PIWIGO_IS_PIWIGO_PUBLISHER (self)); -#line 281 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_debug ("PiwigoPublishing.vala:281: ACTION: installing authentication pane"); -#line 283 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp0_ = self->priv->host; -#line 283 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - spit_publishing_plugin_host_set_service_locked (_tmp0_, FALSE); -#line 284 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp1_ = publishing_piwigo_authentication_pane_new (self, mode); -#line 284 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - authentication_pane = _tmp1_; -#line 286 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_signal_connect_object (authentication_pane, "login", (GCallback) _publishing_piwigo_piwigo_publisher_on_authentication_pane_login_clicked_publishing_piwigo_authentication_pane_login, self, 0); -#line 287 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp2_ = self->priv->host; -#line 287 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - spit_publishing_plugin_host_install_dialog_pane (_tmp2_, G_TYPE_CHECK_INSTANCE_CAST (authentication_pane, SPIT_PUBLISHING_TYPE_DIALOG_PANE, SpitPublishingDialogPane), SPIT_PUBLISHING_PLUGIN_HOST_BUTTON_MODE_CLOSE); -#line 288 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp3_ = self->priv->host; -#line 288 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp4_ = shotwell_plugins_common_builder_pane_get_default_widget (G_TYPE_CHECK_INSTANCE_CAST (authentication_pane, SHOTWELL_PLUGINS_COMMON_TYPE_BUILDER_PANE, ShotwellPluginsCommonBuilderPane)); -#line 288 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp5_ = _tmp4_; -#line 288 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - spit_publishing_plugin_host_set_dialog_default_widget (_tmp3_, _tmp5_); -#line 288 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_object_unref0 (_tmp5_); -#line 280 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_object_unref0 (authentication_pane); -#line 3634 "PiwigoPublishing.c" -} - - -static void -__lambda7_ (PublishingPiwigoPiwigoPublisher* self) -{ - PublishingPiwigoSession* _tmp0_; - PublishingPiwigoSession* _tmp1_; - gchar* persistent_url = NULL; - gchar* _tmp2_; - gchar* persistent_username = NULL; - gchar* _tmp3_; - gchar* persistent_password = NULL; - gchar* _tmp4_; - gboolean _tmp5_ = FALSE; - gboolean _tmp6_ = FALSE; - const gchar* _tmp7_; -#line 297 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_debug ("PiwigoPublishing.vala:297: SSL: User wants us to retry with broken cer" \ -"tificate"); -#line 298 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp0_ = publishing_piwigo_session_new (); -#line 298 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _publishing_rest_support_session_unref0 (self->priv->session); -#line 298 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - self->priv->session = _tmp0_; -#line 299 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp1_ = self->priv->session; -#line 299 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - publishing_rest_support_session_set_insecure (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, PUBLISHING_REST_SUPPORT_TYPE_SESSION, PublishingRESTSupportSession)); -#line 301 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp2_ = publishing_piwigo_piwigo_publisher_get_persistent_url (self); -#line 301 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - persistent_url = _tmp2_; -#line 302 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp3_ = publishing_piwigo_piwigo_publisher_get_persistent_username (self); -#line 302 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - persistent_username = _tmp3_; -#line 303 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp4_ = publishing_piwigo_piwigo_publisher_get_persistent_password (self); -#line 303 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - persistent_password = _tmp4_; -#line 304 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp7_ = persistent_url; -#line 304 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - if (_tmp7_ != NULL) { -#line 3680 "PiwigoPublishing.c" - const gchar* _tmp8_; -#line 304 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp8_ = persistent_username; -#line 304 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp6_ = _tmp8_ != NULL; -#line 3686 "PiwigoPublishing.c" - } else { -#line 304 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp6_ = FALSE; -#line 3690 "PiwigoPublishing.c" - } -#line 304 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - if (_tmp6_) { -#line 3694 "PiwigoPublishing.c" - const gchar* _tmp9_; -#line 304 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp9_ = persistent_password; -#line 304 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp5_ = _tmp9_ != NULL; -#line 3700 "PiwigoPublishing.c" - } else { -#line 304 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp5_ = FALSE; -#line 3704 "PiwigoPublishing.c" - } -#line 304 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - if (_tmp5_) { -#line 3708 "PiwigoPublishing.c" - const gchar* _tmp10_; - const gchar* _tmp11_; - const gchar* _tmp12_; -#line 305 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp10_ = persistent_url; -#line 305 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp11_ = persistent_username; -#line 305 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp12_ = persistent_password; -#line 305 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - publishing_piwigo_piwigo_publisher_do_network_login (self, _tmp10_, _tmp11_, _tmp12_, publishing_piwigo_piwigo_publisher_get_remember_password (self)); -#line 3720 "PiwigoPublishing.c" - } else { -#line 308 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - publishing_piwigo_piwigo_publisher_do_show_authentication_pane (self, PUBLISHING_PIWIGO_AUTHENTICATION_PANE_MODE_INTRO); -#line 3724 "PiwigoPublishing.c" - } -#line 296 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_free0 (persistent_password); -#line 296 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_free0 (persistent_username); -#line 296 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_free0 (persistent_url); -#line 3732 "PiwigoPublishing.c" -} - - -static void -___lambda7__publishing_piwigo_ssl_error_pane_proceed (PublishingPiwigoSSLErrorPane* _sender, - gpointer self) -{ -#line 296 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - __lambda7_ ((PublishingPiwigoPiwigoPublisher*) self); -#line 3742 "PiwigoPublishing.c" -} - - -static void -_vala_SoupURI_free (SoupURI* self) -{ -#line 291 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_boxed_free (soup_uri_get_type (), self); -#line 3751 "PiwigoPublishing.c" -} - - -static void -publishing_piwigo_piwigo_publisher_do_show_ssl_downgrade_pane (PublishingPiwigoPiwigoPublisher* self, - PublishingPiwigoSessionLoginTransaction* trans, - const gchar* url) -{ - SoupURI* uri = NULL; - SoupURI* _tmp0_; - SpitPublishingPluginHost* _tmp1_; - PublishingPiwigoSSLErrorPane* ssl_pane = NULL; - const gchar* _tmp2_; - PublishingPiwigoSSLErrorPane* _tmp3_; - SpitPublishingPluginHost* _tmp4_; - SpitPublishingPluginHost* _tmp5_; - GtkWidget* _tmp6_; - GtkWidget* _tmp7_; -#line 291 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_return_if_fail (PUBLISHING_PIWIGO_IS_PIWIGO_PUBLISHER (self)); -#line 291 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_return_if_fail (PUBLISHING_PIWIGO_IS_SESSION_LOGIN_TRANSACTION (trans)); -#line 291 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_return_if_fail (url != NULL); -#line 293 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp0_ = soup_uri_new (url); -#line 293 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - uri = _tmp0_; -#line 294 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp1_ = self->priv->host; -#line 294 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - spit_publishing_plugin_host_set_service_locked (_tmp1_, FALSE); -#line 295 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp2_ = soup_uri_get_host (uri); -#line 295 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp3_ = publishing_piwigo_ssl_error_pane_new (trans, _tmp2_); -#line 295 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - ssl_pane = _tmp3_; -#line 296 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_signal_connect_object (ssl_pane, "proceed", (GCallback) ___lambda7__publishing_piwigo_ssl_error_pane_proceed, self, 0); -#line 310 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp4_ = self->priv->host; -#line 310 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - spit_publishing_plugin_host_install_dialog_pane (_tmp4_, G_TYPE_CHECK_INSTANCE_CAST (ssl_pane, SPIT_PUBLISHING_TYPE_DIALOG_PANE, SpitPublishingDialogPane), SPIT_PUBLISHING_PLUGIN_HOST_BUTTON_MODE_CLOSE); -#line 312 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp5_ = self->priv->host; -#line 312 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp6_ = shotwell_plugins_common_builder_pane_get_default_widget (G_TYPE_CHECK_INSTANCE_CAST (ssl_pane, SHOTWELL_PLUGINS_COMMON_TYPE_BUILDER_PANE, ShotwellPluginsCommonBuilderPane)); -#line 312 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp7_ = _tmp6_; -#line 312 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - spit_publishing_plugin_host_set_dialog_default_widget (_tmp5_, _tmp7_); -#line 312 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_object_unref0 (_tmp7_); -#line 291 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_object_unref0 (ssl_pane); -#line 291 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - __vala_SoupURI_free0 (uri); -#line 3810 "PiwigoPublishing.c" -} - - -/** - * Event triggered when the login button in the authentication panel is - * clicked. - * - * This event is triggered when the login button in the authentication - * panel is clicked. It then triggers a network login interaction. - * - * @param url the URL of the Piwigo service as entered in the dialog - * @param username the name of the Piwigo user as entered in the dialog - * @param password the password of the Piwigo as entered in the dialog - */ -static void -publishing_piwigo_piwigo_publisher_on_authentication_pane_login_clicked (PublishingPiwigoPiwigoPublisher* self, - const gchar* url, - const gchar* username, - const gchar* password, - gboolean remember_password) -{ - gboolean _tmp0_; -#line 326 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_return_if_fail (PUBLISHING_PIWIGO_IS_PIWIGO_PUBLISHER (self)); -#line 326 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_return_if_fail (url != NULL); -#line 326 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_return_if_fail (username != NULL); -#line 326 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_return_if_fail (password != NULL); -#line 329 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_debug ("PiwigoPublishing.vala:329: EVENT: on_authentication_pane_login_clicked"); -#line 330 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp0_ = self->priv->running; -#line 330 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - if (!_tmp0_) { -#line 331 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - return; -#line 3849 "PiwigoPublishing.c" - } -#line 333 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - publishing_piwigo_piwigo_publisher_do_network_login (self, url, username, password, remember_password); -#line 3853 "PiwigoPublishing.c" -} - - -/** - * Action to perform a network login to a Piwigo service. - * - * This action performs a network login a Piwigo service specified by a - * URL and using the given user name and password as credentials. - * - * @param url the URL of the Piwigo service; this URL will be normalised - * before being used - * @param username the name of the Piwigo user used to login - * @param password the password of the Piwigo user used to login - */ -static void -_publishing_piwigo_piwigo_publisher_on_login_network_error_publishing_rest_support_transaction_network_error (PublishingRESTSupportTransaction* _sender, - GError* err, - gpointer self) -{ -#line 360 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - publishing_piwigo_piwigo_publisher_on_login_network_error ((PublishingPiwigoPiwigoPublisher*) self, _sender, err); -#line 3875 "PiwigoPublishing.c" -} - - -static void -_publishing_piwigo_piwigo_publisher_on_login_network_complete_publishing_rest_support_transaction_completed (PublishingRESTSupportTransaction* _sender, - gpointer self) -{ -#line 361 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - publishing_piwigo_piwigo_publisher_on_login_network_complete ((PublishingPiwigoPiwigoPublisher*) self, _sender); -#line 3885 "PiwigoPublishing.c" -} - - -static void -publishing_piwigo_piwigo_publisher_do_network_login (PublishingPiwigoPiwigoPublisher* self, - const gchar* url, - const gchar* username, - const gchar* password, - gboolean remember_password) -{ - SpitPublishingPluginHost* _tmp0_; - SpitPublishingPluginHost* _tmp1_; - PublishingPiwigoSessionLoginTransaction* login_trans = NULL; - PublishingPiwigoSession* _tmp2_; - gchar* _tmp3_; - gchar* _tmp4_; - PublishingPiwigoSessionLoginTransaction* _tmp5_; - PublishingPiwigoSessionLoginTransaction* _tmp6_; - GError * _inner_error_ = NULL; -#line 347 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_return_if_fail (PUBLISHING_PIWIGO_IS_PIWIGO_PUBLISHER (self)); -#line 347 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_return_if_fail (url != NULL); -#line 347 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_return_if_fail (username != NULL); -#line 347 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_return_if_fail (password != NULL); -#line 348 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_debug ("PiwigoPublishing.vala:348: ACTION: logging in"); -#line 349 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp0_ = self->priv->host; -#line 349 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - spit_publishing_plugin_host_set_service_locked (_tmp0_, TRUE); -#line 350 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp1_ = self->priv->host; -#line 350 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - spit_publishing_plugin_host_install_login_wait_pane (_tmp1_); -#line 352 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - publishing_piwigo_piwigo_publisher_set_remember_password (self, remember_password); -#line 353 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - if (remember_password) { -#line 354 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - publishing_piwigo_piwigo_publisher_set_persistent_password (self, password); -#line 3929 "PiwigoPublishing.c" - } else { -#line 356 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - publishing_piwigo_piwigo_publisher_set_persistent_password (self, NULL); -#line 3933 "PiwigoPublishing.c" - } -#line 358 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp2_ = self->priv->session; -#line 358 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp3_ = publishing_piwigo_piwigo_publisher_normalise_url (url); -#line 358 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp4_ = _tmp3_; -#line 358 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp5_ = publishing_piwigo_session_login_transaction_new (_tmp2_, _tmp4_, username, password); -#line 358 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp6_ = _tmp5_; -#line 358 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_free0 (_tmp4_); -#line 358 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - login_trans = _tmp6_; -#line 360 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (login_trans, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "network-error", (GCallback) _publishing_piwigo_piwigo_publisher_on_login_network_error_publishing_rest_support_transaction_network_error, self, 0); -#line 361 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (login_trans, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "completed", (GCallback) _publishing_piwigo_piwigo_publisher_on_login_network_complete_publishing_rest_support_transaction_completed, self, 0); -#line 3953 "PiwigoPublishing.c" - { -#line 364 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - publishing_rest_support_transaction_execute (G_TYPE_CHECK_INSTANCE_CAST (login_trans, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), &_inner_error_); -#line 364 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 364 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - if (_inner_error_->domain == SPIT_PUBLISHING_PUBLISHING_ERROR) { -#line 3961 "PiwigoPublishing.c" - goto __catch28_spit_publishing_publishing_error; - } -#line 364 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _publishing_rest_support_transaction_unref0 (login_trans); -#line 364 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 364 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_clear_error (&_inner_error_); -#line 364 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - return; -#line 3972 "PiwigoPublishing.c" - } - } - goto __finally28; - __catch28_spit_publishing_publishing_error: - { - GError* err = NULL; - GError* _tmp7_; -#line 363 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - err = _inner_error_; -#line 363 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _inner_error_ = NULL; -#line 366 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp7_ = err; -#line 366 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - if (g_error_matches (_tmp7_, SPIT_PUBLISHING_PUBLISHING_ERROR, SPIT_PUBLISHING_PUBLISHING_ERROR_SSL_FAILED)) { -#line 367 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_debug ("PiwigoPublishing.vala:367: ERROR: SSL connection problems"); -#line 368 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - publishing_piwigo_piwigo_publisher_do_show_ssl_downgrade_pane (self, login_trans, url); -#line 3992 "PiwigoPublishing.c" - } else { - GError* _tmp8_; -#line 370 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_debug ("PiwigoPublishing.vala:370: ERROR: do_network_login"); -#line 371 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp8_ = err; -#line 371 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - publishing_piwigo_piwigo_publisher_do_show_error (self, _tmp8_); -#line 4001 "PiwigoPublishing.c" - } -#line 363 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_error_free0 (err); -#line 4005 "PiwigoPublishing.c" - } - __finally28: -#line 363 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 363 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _publishing_rest_support_transaction_unref0 (login_trans); -#line 363 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 363 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_clear_error (&_inner_error_); -#line 363 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - return; -#line 4018 "PiwigoPublishing.c" - } -#line 347 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _publishing_rest_support_transaction_unref0 (login_trans); -#line 4022 "PiwigoPublishing.c" -} - - -gchar* -publishing_piwigo_piwigo_publisher_normalise_url (const gchar* url) -{ - gchar* result = NULL; - gchar* norm_url = NULL; - gchar* _tmp0_; - const gchar* _tmp1_; - gboolean _tmp7_ = FALSE; - const gchar* _tmp8_; -#line 376 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_return_val_if_fail (url != NULL, NULL); -#line 377 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp0_ = g_strdup (url); -#line 377 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - norm_url = _tmp0_; -#line 379 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp1_ = norm_url; -#line 379 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - if (!g_str_has_suffix (_tmp1_, ".php")) { -#line 4045 "PiwigoPublishing.c" - const gchar* _tmp2_; - const gchar* _tmp5_; - gchar* _tmp6_; -#line 380 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp2_ = norm_url; -#line 380 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - if (!g_str_has_suffix (_tmp2_, "/")) { -#line 4053 "PiwigoPublishing.c" - const gchar* _tmp3_; - gchar* _tmp4_; -#line 381 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp3_ = norm_url; -#line 381 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp4_ = g_strconcat (_tmp3_, "/", NULL); -#line 381 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_free0 (norm_url); -#line 381 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - norm_url = _tmp4_; -#line 4064 "PiwigoPublishing.c" - } -#line 383 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp5_ = norm_url; -#line 383 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp6_ = g_strconcat (_tmp5_, PUBLISHING_PIWIGO_PIWIGO_WS, NULL); -#line 383 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_free0 (norm_url); -#line 383 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - norm_url = _tmp6_; -#line 4074 "PiwigoPublishing.c" - } -#line 386 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp8_ = norm_url; -#line 386 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - if (!g_str_has_prefix (_tmp8_, "http://")) { -#line 4080 "PiwigoPublishing.c" - const gchar* _tmp9_; -#line 386 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp9_ = norm_url; -#line 386 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp7_ = !g_str_has_prefix (_tmp9_, "https://"); -#line 4086 "PiwigoPublishing.c" - } else { -#line 386 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp7_ = FALSE; -#line 4090 "PiwigoPublishing.c" - } -#line 386 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - if (_tmp7_) { -#line 4094 "PiwigoPublishing.c" - const gchar* _tmp10_; - gchar* _tmp11_; -#line 387 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp10_ = norm_url; -#line 387 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp11_ = g_strconcat ("http://", _tmp10_, NULL); -#line 387 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_free0 (norm_url); -#line 387 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - norm_url = _tmp11_; -#line 4105 "PiwigoPublishing.c" - } -#line 390 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - result = norm_url; -#line 390 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - return result; -#line 4111 "PiwigoPublishing.c" -} - - -/** - * Event triggered when the network login action is complete and successful. - * - * This event is triggered on successful completion of a network login. - * Calling this event implies that the URL, user name and password provided - * in the authentication pane are valid and that the transaction should - * contain a Set-Cookie header that includes the value pwg_id for that - * user. As a result, this event will also authenticate the session and - * persist all values so that they can be re-used during the next publishing - * interaction. - * - * @param txn the received REST transaction - */ -static gchar* -_publishing_piwigo_transaction_validate_xml_publishing_rest_support_xml_document_check_for_error_response (PublishingRESTSupportXmlDocument* doc, - gpointer self) -{ - gchar* result; - result = publishing_piwigo_transaction_validate_xml (doc); -#line 412 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - return result; -#line 4136 "PiwigoPublishing.c" -} - - -static gchar* -_publishing_piwigo_transaction_get_error_code_publishing_rest_support_xml_document_check_for_error_response (PublishingRESTSupportXmlDocument* doc, - gpointer self) -{ - gchar* result; - result = publishing_piwigo_transaction_get_error_code (doc); -#line 417 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - return result; -#line 4148 "PiwigoPublishing.c" -} - - -static void -publishing_piwigo_piwigo_publisher_on_login_network_complete (PublishingPiwigoPiwigoPublisher* self, - PublishingRESTSupportTransaction* txn) -{ - guint _tmp0_; - guint _tmp1_; - gchar* endpoint_url = NULL; - gchar* _tmp14_; - const gchar* _tmp15_; - gchar* pwg_id = NULL; - gchar* _tmp16_; - const gchar* _tmp17_; - PublishingPiwigoSession* _tmp18_; - const gchar* _tmp19_; - const gchar* _tmp20_; - const gchar* _tmp21_; - GError * _inner_error_ = NULL; -#line 406 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_return_if_fail (PUBLISHING_PIWIGO_IS_PIWIGO_PUBLISHER (self)); -#line 406 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_return_if_fail (PUBLISHING_REST_SUPPORT_IS_TRANSACTION (txn)); -#line 407 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_debug ("PiwigoPublishing.vala:407: EVENT: on_login_network_complete"); -#line 408 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_signal_parse_name ("completed", PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, &_tmp0_, NULL, FALSE); -#line 408 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_signal_handlers_disconnect_matched (txn, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp0_, 0, NULL, (GCallback) _publishing_piwigo_piwigo_publisher_on_login_network_complete_publishing_rest_support_transaction_completed, self); -#line 409 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_signal_parse_name ("network-error", PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, &_tmp1_, NULL, FALSE); -#line 409 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_signal_handlers_disconnect_matched (txn, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp1_, 0, NULL, (GCallback) _publishing_piwigo_piwigo_publisher_on_login_network_error_publishing_rest_support_transaction_network_error, self); -#line 4183 "PiwigoPublishing.c" - { - gchar* _tmp2_; - gchar* _tmp3_; - PublishingRESTSupportXmlDocument* _tmp4_; - PublishingRESTSupportXmlDocument* _tmp5_; -#line 412 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp2_ = publishing_rest_support_transaction_get_response (txn); -#line 412 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp3_ = _tmp2_; -#line 412 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp4_ = publishing_rest_support_xml_document_parse_string (_tmp3_, _publishing_piwigo_transaction_validate_xml_publishing_rest_support_xml_document_check_for_error_response, NULL, &_inner_error_); -#line 412 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp5_ = _tmp4_; -#line 412 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _publishing_rest_support_xml_document_unref0 (_tmp5_); -#line 412 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_free0 (_tmp3_); -#line 412 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 412 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - if (_inner_error_->domain == SPIT_PUBLISHING_PUBLISHING_ERROR) { -#line 4205 "PiwigoPublishing.c" - goto __catch29_spit_publishing_publishing_error; - } -#line 412 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 412 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_clear_error (&_inner_error_); -#line 412 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - return; -#line 4214 "PiwigoPublishing.c" - } - } - goto __finally29; - __catch29_spit_publishing_publishing_error: - { - GError* err = NULL; -#line 411 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - err = _inner_error_; -#line 411 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _inner_error_ = NULL; -#line 4225 "PiwigoPublishing.c" - { - gchar* _tmp6_; - gchar* _tmp7_; - PublishingRESTSupportXmlDocument* _tmp8_; - PublishingRESTSupportXmlDocument* _tmp9_; -#line 417 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp6_ = publishing_rest_support_transaction_get_response (txn); -#line 417 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp7_ = _tmp6_; -#line 417 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp8_ = publishing_rest_support_xml_document_parse_string (_tmp7_, _publishing_piwigo_transaction_get_error_code_publishing_rest_support_xml_document_check_for_error_response, NULL, &_inner_error_); -#line 417 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp9_ = _tmp8_; -#line 417 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _publishing_rest_support_xml_document_unref0 (_tmp9_); -#line 417 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_free0 (_tmp7_); -#line 417 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 417 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - if (_inner_error_->domain == SPIT_PUBLISHING_PUBLISHING_ERROR) { -#line 4247 "PiwigoPublishing.c" - goto __catch30_spit_publishing_publishing_error; - } -#line 417 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_error_free0 (err); -#line 417 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 417 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_clear_error (&_inner_error_); -#line 417 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - return; -#line 4258 "PiwigoPublishing.c" - } - } - goto __finally30; - __catch30_spit_publishing_publishing_error: - { - GError* code = NULL; - gint code_int = 0; - GError* _tmp10_; - const gchar* _tmp11_; - gint _tmp12_; -#line 416 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - code = _inner_error_; -#line 416 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _inner_error_ = NULL; -#line 420 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp10_ = code; -#line 420 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp11_ = _tmp10_->message; -#line 420 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - code_int = atoi (_tmp11_); -#line 421 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp12_ = code_int; -#line 421 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - if (_tmp12_ == 999) { -#line 422 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_debug ("PiwigoPublishing.vala:422: ERROR: on_login_network_complete, code 999"); -#line 423 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - publishing_piwigo_piwigo_publisher_do_show_authentication_pane (self, PUBLISHING_PIWIGO_AUTHENTICATION_PANE_MODE_FAILED_RETRY_USER); -#line 4287 "PiwigoPublishing.c" - } else { - GError* _tmp13_; -#line 425 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_debug ("PiwigoPublishing.vala:425: ERROR: on_login_network_complete"); -#line 426 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp13_ = err; -#line 426 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - publishing_piwigo_piwigo_publisher_do_show_error (self, _tmp13_); -#line 4296 "PiwigoPublishing.c" - } -#line 416 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_error_free0 (code); -#line 4300 "PiwigoPublishing.c" - } - __finally30: -#line 416 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 416 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_error_free0 (err); -#line 416 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_error_free0 (err); -#line 416 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 416 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_clear_error (&_inner_error_); -#line 416 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - return; -#line 4315 "PiwigoPublishing.c" - } -#line 429 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_error_free0 (err); -#line 429 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - return; -#line 4321 "PiwigoPublishing.c" - } - __finally29: -#line 411 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 411 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 411 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_clear_error (&_inner_error_); -#line 411 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - return; -#line 4332 "PiwigoPublishing.c" - } -#line 432 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp14_ = publishing_rest_support_transaction_get_endpoint_url (txn); -#line 432 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - endpoint_url = _tmp14_; -#line 433 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp15_ = endpoint_url; -#line 433 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_debug ("PiwigoPublishing.vala:433: Setting endpoint URL to %s", _tmp15_); -#line 434 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp16_ = publishing_piwigo_piwigo_publisher_get_pwg_id_from_transaction (self, txn); -#line 434 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - pwg_id = _tmp16_; -#line 435 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp17_ = pwg_id; -#line 435 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_debug ("PiwigoPublishing.vala:435: Setting session pwg_id to %s", _tmp17_); -#line 436 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp18_ = self->priv->session; -#line 436 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp19_ = pwg_id; -#line 436 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - publishing_piwigo_session_set_pwg_id (_tmp18_, _tmp19_); -#line 438 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp20_ = endpoint_url; -#line 438 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp21_ = pwg_id; -#line 438 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - publishing_piwigo_piwigo_publisher_do_fetch_session_status (self, _tmp20_, _tmp21_); -#line 406 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_free0 (pwg_id); -#line 406 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_free0 (endpoint_url); -#line 4366 "PiwigoPublishing.c" -} - - -/** - * Event triggered when a network login action fails due to a network error. - * - * This event triggered as a result of a network error during the login - * transaction. As a result, it assumes that the service URL entered in the - * authentication dialog is incorrect and re-presents the authentication - * dialog with FAILED_RETRY_URL mode. - * - * @param bad_txn the received REST transaction - * @param err the received error - */ -static void -publishing_piwigo_piwigo_publisher_on_login_network_error (PublishingPiwigoPiwigoPublisher* self, - PublishingRESTSupportTransaction* bad_txn, - GError* err) -{ - guint _tmp0_; - guint _tmp1_; - PublishingPiwigoSession* _tmp2_; -#line 452 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_return_if_fail (PUBLISHING_PIWIGO_IS_PIWIGO_PUBLISHER (self)); -#line 452 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_return_if_fail (PUBLISHING_REST_SUPPORT_IS_TRANSACTION (bad_txn)); -#line 456 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_debug ("PiwigoPublishing.vala:456: EVENT: on_login_network_error"); -#line 457 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_signal_parse_name ("completed", PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, &_tmp0_, NULL, FALSE); -#line 457 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_signal_handlers_disconnect_matched (bad_txn, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp0_, 0, NULL, (GCallback) _publishing_piwigo_piwigo_publisher_on_login_network_complete_publishing_rest_support_transaction_completed, self); -#line 458 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_signal_parse_name ("network-error", PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, &_tmp1_, NULL, FALSE); -#line 458 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_signal_handlers_disconnect_matched (bad_txn, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp1_, 0, NULL, (GCallback) _publishing_piwigo_piwigo_publisher_on_login_network_error_publishing_rest_support_transaction_network_error, self); -#line 460 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp2_ = self->priv->session; -#line 460 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - if (publishing_rest_support_session_is_authenticated (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, PUBLISHING_REST_SUPPORT_TYPE_SESSION, PublishingRESTSupportSession))) { -#line 461 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - return; -#line 4409 "PiwigoPublishing.c" - } -#line 463 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - publishing_piwigo_piwigo_publisher_do_show_authentication_pane (self, PUBLISHING_PIWIGO_AUTHENTICATION_PANE_MODE_FAILED_RETRY_URL); -#line 4413 "PiwigoPublishing.c" -} - - -/** - * Action to fetch the session status for a known Piwigo user. - * - * This action fetches the session status for a Piwigo user for whom the - * pwg_id is known. If triggered after a network login, it should just - * confirm that the session is OK. It can also be triggered as the first - * action of the interaction for users for who the pwg_id was previously - * persisted. In this case, it will log the user in and confirm the - * identity. - */ -static void -_publishing_piwigo_piwigo_publisher_on_session_get_status_error_publishing_rest_support_transaction_network_error (PublishingRESTSupportTransaction* _sender, - GError* err, - gpointer self) -{ -#line 483 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - publishing_piwigo_piwigo_publisher_on_session_get_status_error ((PublishingPiwigoPiwigoPublisher*) self, _sender, err); -#line 4434 "PiwigoPublishing.c" -} - - -static void -_publishing_piwigo_piwigo_publisher_on_session_get_status_complete_publishing_rest_support_transaction_completed (PublishingRESTSupportTransaction* _sender, - gpointer self) -{ -#line 484 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - publishing_piwigo_piwigo_publisher_on_session_get_status_complete ((PublishingPiwigoPiwigoPublisher*) self, _sender); -#line 4444 "PiwigoPublishing.c" -} - - -static void -publishing_piwigo_piwigo_publisher_do_fetch_session_status (PublishingPiwigoPiwigoPublisher* self, - const gchar* url, - const gchar* pwg_id) -{ - SpitPublishingPluginHost* _tmp0_; - SpitPublishingPluginHost* _tmp1_; - PublishingPiwigoSession* _tmp2_; - GError * _inner_error_ = NULL; -#line 476 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_return_if_fail (PUBLISHING_PIWIGO_IS_PIWIGO_PUBLISHER (self)); -#line 476 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_return_if_fail (url != NULL); -#line 476 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_return_if_fail (pwg_id != NULL); -#line 477 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_debug ("PiwigoPublishing.vala:477: ACTION: fetching session status"); -#line 478 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp0_ = self->priv->host; -#line 478 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - spit_publishing_plugin_host_set_service_locked (_tmp0_, TRUE); -#line 479 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp1_ = self->priv->host; -#line 479 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - spit_publishing_plugin_host_install_account_fetch_wait_pane (_tmp1_); -#line 481 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp2_ = self->priv->session; -#line 481 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - if (!publishing_rest_support_session_is_authenticated (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, PUBLISHING_REST_SUPPORT_TYPE_SESSION, PublishingRESTSupportSession))) { -#line 4477 "PiwigoPublishing.c" - PublishingPiwigoSessionGetStatusTransaction* status_txn = NULL; - PublishingPiwigoSession* _tmp3_; - PublishingPiwigoSessionGetStatusTransaction* _tmp4_; - PublishingPiwigoSessionGetStatusTransaction* _tmp5_; - PublishingPiwigoSessionGetStatusTransaction* _tmp6_; -#line 482 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp3_ = self->priv->session; -#line 482 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp4_ = publishing_piwigo_session_get_status_transaction_new_unauthenticated (_tmp3_, url, pwg_id); -#line 482 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - status_txn = _tmp4_; -#line 483 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp5_ = status_txn; -#line 483 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "network-error", (GCallback) _publishing_piwigo_piwigo_publisher_on_session_get_status_error_publishing_rest_support_transaction_network_error, self, 0); -#line 484 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp6_ = status_txn; -#line 484 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "completed", (GCallback) _publishing_piwigo_piwigo_publisher_on_session_get_status_complete_publishing_rest_support_transaction_completed, self, 0); -#line 4497 "PiwigoPublishing.c" - { - PublishingPiwigoSessionGetStatusTransaction* _tmp7_; -#line 487 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp7_ = status_txn; -#line 487 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - publishing_rest_support_transaction_execute (G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), &_inner_error_); -#line 487 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 487 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - if (_inner_error_->domain == SPIT_PUBLISHING_PUBLISHING_ERROR) { -#line 4508 "PiwigoPublishing.c" - goto __catch31_spit_publishing_publishing_error; - } -#line 487 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _publishing_rest_support_transaction_unref0 (status_txn); -#line 487 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 487 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_clear_error (&_inner_error_); -#line 487 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - return; -#line 4519 "PiwigoPublishing.c" - } - } - goto __finally31; - __catch31_spit_publishing_publishing_error: - { - GError* err = NULL; - GError* _tmp8_; -#line 486 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - err = _inner_error_; -#line 486 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _inner_error_ = NULL; -#line 489 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_debug ("PiwigoPublishing.vala:489: ERROR: do_fetch_session_status, not authent" \ -"icated"); -#line 490 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp8_ = err; -#line 490 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - publishing_piwigo_piwigo_publisher_do_show_error (self, _tmp8_); -#line 486 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_error_free0 (err); -#line 4539 "PiwigoPublishing.c" - } - __finally31: -#line 486 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 486 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _publishing_rest_support_transaction_unref0 (status_txn); -#line 486 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 486 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_clear_error (&_inner_error_); -#line 486 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - return; -#line 4552 "PiwigoPublishing.c" - } -#line 481 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _publishing_rest_support_transaction_unref0 (status_txn); -#line 4556 "PiwigoPublishing.c" - } else { - PublishingPiwigoSessionGetStatusTransaction* status_txn = NULL; - PublishingPiwigoSession* _tmp9_; - PublishingPiwigoSessionGetStatusTransaction* _tmp10_; - PublishingPiwigoSessionGetStatusTransaction* _tmp11_; - PublishingPiwigoSessionGetStatusTransaction* _tmp12_; -#line 493 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp9_ = self->priv->session; -#line 493 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp10_ = publishing_piwigo_session_get_status_transaction_new (_tmp9_); -#line 493 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - status_txn = _tmp10_; -#line 494 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp11_ = status_txn; -#line 494 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp11_, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "network-error", (GCallback) _publishing_piwigo_piwigo_publisher_on_session_get_status_error_publishing_rest_support_transaction_network_error, self, 0); -#line 495 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp12_ = status_txn; -#line 495 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp12_, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "completed", (GCallback) _publishing_piwigo_piwigo_publisher_on_session_get_status_complete_publishing_rest_support_transaction_completed, self, 0); -#line 4577 "PiwigoPublishing.c" - { - PublishingPiwigoSessionGetStatusTransaction* _tmp13_; -#line 498 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp13_ = status_txn; -#line 498 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - publishing_rest_support_transaction_execute (G_TYPE_CHECK_INSTANCE_CAST (_tmp13_, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), &_inner_error_); -#line 498 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 498 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - if (_inner_error_->domain == SPIT_PUBLISHING_PUBLISHING_ERROR) { -#line 4588 "PiwigoPublishing.c" - goto __catch32_spit_publishing_publishing_error; - } -#line 498 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _publishing_rest_support_transaction_unref0 (status_txn); -#line 498 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 498 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_clear_error (&_inner_error_); -#line 498 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - return; -#line 4599 "PiwigoPublishing.c" - } - } - goto __finally32; - __catch32_spit_publishing_publishing_error: - { - GError* err = NULL; - GError* _tmp14_; -#line 497 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - err = _inner_error_; -#line 497 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _inner_error_ = NULL; -#line 500 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_debug ("PiwigoPublishing.vala:500: ERROR: do_fetch_session_status, authenticat" \ -"ed"); -#line 501 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp14_ = err; -#line 501 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - publishing_piwigo_piwigo_publisher_do_show_error (self, _tmp14_); -#line 497 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_error_free0 (err); -#line 4619 "PiwigoPublishing.c" - } - __finally32: -#line 497 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 497 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _publishing_rest_support_transaction_unref0 (status_txn); -#line 497 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 497 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_clear_error (&_inner_error_); -#line 497 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - return; -#line 4632 "PiwigoPublishing.c" - } -#line 481 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _publishing_rest_support_transaction_unref0 (status_txn); -#line 4636 "PiwigoPublishing.c" - } -} - - -/** - * Event triggered when the get session status action completes successfully. - * - * This event being triggered confirms that the session is valid and can becyclonic enema - * used. If the session is not fully authenticated yet, this event finalises - * session authentication. It then triggers the fetch categories action. - */ -static void -publishing_piwigo_piwigo_publisher_on_session_get_status_complete (PublishingPiwigoPiwigoPublisher* self, - PublishingRESTSupportTransaction* txn) -{ - guint _tmp0_; - guint _tmp1_; - PublishingPiwigoSession* _tmp2_; - GError * _inner_error_ = NULL; -#line 513 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_return_if_fail (PUBLISHING_PIWIGO_IS_PIWIGO_PUBLISHER (self)); -#line 513 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_return_if_fail (PUBLISHING_REST_SUPPORT_IS_TRANSACTION (txn)); -#line 514 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_debug ("PiwigoPublishing.vala:514: EVENT: on_session_get_status_complete"); -#line 515 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_signal_parse_name ("completed", PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, &_tmp0_, NULL, FALSE); -#line 515 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_signal_handlers_disconnect_matched (txn, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp0_, 0, NULL, (GCallback) _publishing_piwigo_piwigo_publisher_on_session_get_status_complete_publishing_rest_support_transaction_completed, self); -#line 516 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_signal_parse_name ("network-error", PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, &_tmp1_, NULL, FALSE); -#line 516 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_signal_handlers_disconnect_matched (txn, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp1_, 0, NULL, (GCallback) _publishing_piwigo_piwigo_publisher_on_session_get_status_error_publishing_rest_support_transaction_network_error, self); -#line 518 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp2_ = self->priv->session; -#line 518 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - if (!publishing_rest_support_session_is_authenticated (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, PUBLISHING_REST_SUPPORT_TYPE_SESSION, PublishingRESTSupportSession))) { -#line 4674 "PiwigoPublishing.c" - gchar* endpoint_url = NULL; - gchar* _tmp3_; - gchar* pwg_id = NULL; - PublishingPiwigoSession* _tmp4_; - gchar* _tmp5_; - const gchar* _tmp6_; -#line 519 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp3_ = publishing_rest_support_transaction_get_endpoint_url (txn); -#line 519 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - endpoint_url = _tmp3_; -#line 520 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp4_ = self->priv->session; -#line 520 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp5_ = publishing_piwigo_session_get_pwg_id (_tmp4_); -#line 520 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - pwg_id = _tmp5_; -#line 521 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp6_ = pwg_id; -#line 521 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_debug ("PiwigoPublishing.vala:521: Fetching session status for pwg_id %s", _tmp6_); -#line 4695 "PiwigoPublishing.c" - { - PublishingRESTSupportXmlDocument* doc = NULL; - gchar* _tmp7_; - gchar* _tmp8_; - PublishingRESTSupportXmlDocument* _tmp9_; - PublishingRESTSupportXmlDocument* _tmp10_; - xmlNode* root = NULL; - PublishingRESTSupportXmlDocument* _tmp11_; - xmlNode* _tmp12_; - xmlNode* username_node = NULL; -#line 524 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp7_ = publishing_rest_support_transaction_get_response (txn); -#line 524 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp8_ = _tmp7_; -#line 524 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp9_ = publishing_rest_support_xml_document_parse_string (_tmp8_, _publishing_piwigo_transaction_validate_xml_publishing_rest_support_xml_document_check_for_error_response, NULL, &_inner_error_); -#line 524 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp10_ = _tmp9_; -#line 524 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_free0 (_tmp8_); -#line 524 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - doc = _tmp10_; -#line 524 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 524 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - if (_inner_error_->domain == SPIT_PUBLISHING_PUBLISHING_ERROR) { -#line 4722 "PiwigoPublishing.c" - goto __catch33_spit_publishing_publishing_error; - } -#line 524 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_free0 (pwg_id); -#line 524 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_free0 (endpoint_url); -#line 524 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 524 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_clear_error (&_inner_error_); -#line 524 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - return; -#line 4735 "PiwigoPublishing.c" - } -#line 527 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp11_ = doc; -#line 527 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp12_ = publishing_rest_support_xml_document_get_root_node (_tmp11_); -#line 527 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - root = _tmp12_; -#line 4743 "PiwigoPublishing.c" - { - xmlNode* _tmp13_ = NULL; - PublishingRESTSupportXmlDocument* _tmp14_; - xmlNode* _tmp15_; - xmlNode* _tmp16_; - gchar* username = NULL; - xmlNode* _tmp17_; - gchar* _tmp18_; - const gchar* _tmp19_; - PublishingPiwigoSession* _tmp20_; - const gchar* _tmp21_; - const gchar* _tmp22_; - const gchar* _tmp23_; - PublishingPiwigoSession* _tmp24_; - gchar* _tmp25_; - gchar* _tmp26_; - PublishingPiwigoSession* _tmp27_; - gchar* _tmp28_; - gchar* _tmp29_; -#line 530 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp14_ = doc; -#line 530 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp15_ = root; -#line 530 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp16_ = publishing_rest_support_xml_document_get_named_child (_tmp14_, _tmp15_, "username", &_inner_error_); -#line 530 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp13_ = _tmp16_; -#line 530 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 530 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - if (_inner_error_->domain == SPIT_PUBLISHING_PUBLISHING_ERROR) { -#line 4775 "PiwigoPublishing.c" - goto __catch34_spit_publishing_publishing_error; - } -#line 530 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _publishing_rest_support_xml_document_unref0 (doc); -#line 530 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_free0 (pwg_id); -#line 530 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_free0 (endpoint_url); -#line 530 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 530 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_clear_error (&_inner_error_); -#line 530 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - return; -#line 4790 "PiwigoPublishing.c" - } -#line 530 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - username_node = _tmp13_; -#line 531 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp17_ = username_node; -#line 531 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp18_ = (gchar*) xmlNodeGetContent (_tmp17_); -#line 531 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - username = _tmp18_; -#line 532 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp19_ = username; -#line 532 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_debug ("PiwigoPublishing.vala:532: Returned username is %s", _tmp19_); -#line 533 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp20_ = self->priv->session; -#line 533 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp21_ = endpoint_url; -#line 533 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp22_ = username; -#line 533 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp23_ = pwg_id; -#line 533 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - publishing_piwigo_session_authenticate (_tmp20_, _tmp21_, _tmp22_, _tmp23_); -#line 534 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp24_ = self->priv->session; -#line 534 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp25_ = publishing_piwigo_session_get_pwg_url (_tmp24_); -#line 534 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp26_ = _tmp25_; -#line 534 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - publishing_piwigo_piwigo_publisher_set_persistent_url (self, _tmp26_); -#line 534 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_free0 (_tmp26_); -#line 535 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp27_ = self->priv->session; -#line 535 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp28_ = publishing_piwigo_session_get_username (_tmp27_); -#line 535 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp29_ = _tmp28_; -#line 535 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - publishing_piwigo_piwigo_publisher_set_persistent_username (self, _tmp29_); -#line 535 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_free0 (_tmp29_); -#line 536 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - publishing_piwigo_piwigo_publisher_do_fetch_categories (self); -#line 529 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_free0 (username); -#line 4838 "PiwigoPublishing.c" - } - goto __finally34; - __catch34_spit_publishing_publishing_error: - { - GError* err2 = NULL; - GError* _tmp30_; -#line 529 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - err2 = _inner_error_; -#line 529 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _inner_error_ = NULL; -#line 538 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_debug ("PiwigoPublishing.vala:538: ERROR: on_session_get_status_complete, inne" \ -"r"); -#line 539 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp30_ = err2; -#line 539 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - publishing_piwigo_piwigo_publisher_do_show_error (self, _tmp30_); -#line 540 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_error_free0 (err2); -#line 540 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _publishing_rest_support_xml_document_unref0 (doc); -#line 540 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_free0 (pwg_id); -#line 540 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_free0 (endpoint_url); -#line 540 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - return; -#line 4865 "PiwigoPublishing.c" - } - __finally34: -#line 529 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 529 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _publishing_rest_support_xml_document_unref0 (doc); -#line 529 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - if (_inner_error_->domain == SPIT_PUBLISHING_PUBLISHING_ERROR) { -#line 4874 "PiwigoPublishing.c" - goto __catch33_spit_publishing_publishing_error; - } -#line 529 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _publishing_rest_support_xml_document_unref0 (doc); -#line 529 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_free0 (pwg_id); -#line 529 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_free0 (endpoint_url); -#line 529 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 529 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_clear_error (&_inner_error_); -#line 529 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - return; -#line 4889 "PiwigoPublishing.c" - } -#line 523 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _publishing_rest_support_xml_document_unref0 (doc); -#line 4893 "PiwigoPublishing.c" - } - goto __finally33; - __catch33_spit_publishing_publishing_error: - { - GError* err = NULL; - GError* _tmp31_; -#line 523 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - err = _inner_error_; -#line 523 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _inner_error_ = NULL; -#line 543 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_debug ("PiwigoPublishing.vala:543: ERROR: on_session_get_status_complete, oute" \ -"r"); -#line 544 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp31_ = err; -#line 544 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - publishing_piwigo_piwigo_publisher_do_show_error (self, _tmp31_); -#line 545 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_error_free0 (err); -#line 545 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_free0 (pwg_id); -#line 545 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_free0 (endpoint_url); -#line 545 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - return; -#line 4918 "PiwigoPublishing.c" - } - __finally33: -#line 523 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 523 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_free0 (pwg_id); -#line 523 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_free0 (endpoint_url); -#line 523 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 523 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_clear_error (&_inner_error_); -#line 523 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - return; -#line 4933 "PiwigoPublishing.c" - } -#line 518 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_free0 (pwg_id); -#line 518 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_free0 (endpoint_url); -#line 4939 "PiwigoPublishing.c" - } else { -#line 551 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - publishing_piwigo_piwigo_publisher_do_fetch_categories (self); -#line 4943 "PiwigoPublishing.c" - } -} - - -/** - * Event triggered when the get session status fails due to a network error. - */ -static void -publishing_piwigo_piwigo_publisher_on_session_get_status_error (PublishingPiwigoPiwigoPublisher* self, - PublishingRESTSupportTransaction* bad_txn, - GError* err) -{ - guint _tmp0_; - guint _tmp1_; -#line 558 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_return_if_fail (PUBLISHING_PIWIGO_IS_PIWIGO_PUBLISHER (self)); -#line 558 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_return_if_fail (PUBLISHING_REST_SUPPORT_IS_TRANSACTION (bad_txn)); -#line 562 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_debug ("PiwigoPublishing.vala:562: EVENT: on_session_get_status_error"); -#line 563 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_signal_parse_name ("completed", PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, &_tmp0_, NULL, FALSE); -#line 563 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_signal_handlers_disconnect_matched (bad_txn, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp0_, 0, NULL, (GCallback) _publishing_piwigo_piwigo_publisher_on_session_get_status_complete_publishing_rest_support_transaction_completed, self); -#line 564 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_signal_parse_name ("network-error", PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, &_tmp1_, NULL, FALSE); -#line 564 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_signal_handlers_disconnect_matched (bad_txn, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp1_, 0, NULL, (GCallback) _publishing_piwigo_piwigo_publisher_on_session_get_status_error_publishing_rest_support_transaction_network_error, self); -#line 565 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - publishing_piwigo_piwigo_publisher_on_network_error (self, bad_txn, err); -#line 4974 "PiwigoPublishing.c" -} - - -/** - * Action that fetches all available categories from the Piwigo service. - * - * This action fetches all categories from the Piwigo service in order - * to populate the publishing pane presented to the user. - */ -static void -_publishing_piwigo_piwigo_publisher_on_category_fetch_error_publishing_rest_support_transaction_network_error (PublishingRESTSupportTransaction* _sender, - GError* err, - gpointer self) -{ -#line 580 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - publishing_piwigo_piwigo_publisher_on_category_fetch_error ((PublishingPiwigoPiwigoPublisher*) self, _sender, err); -#line 4991 "PiwigoPublishing.c" -} - - -static void -_publishing_piwigo_piwigo_publisher_on_category_fetch_complete_publishing_rest_support_transaction_completed (PublishingRESTSupportTransaction* _sender, - gpointer self) -{ -#line 581 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - publishing_piwigo_piwigo_publisher_on_category_fetch_complete ((PublishingPiwigoPiwigoPublisher*) self, _sender); -#line 5001 "PiwigoPublishing.c" -} - - -static void -publishing_piwigo_piwigo_publisher_do_fetch_categories (PublishingPiwigoPiwigoPublisher* self) -{ - SpitPublishingPluginHost* _tmp0_; - SpitPublishingPluginHost* _tmp1_; - PublishingPiwigoCategoriesGetListTransaction* cat_trans = NULL; - PublishingPiwigoSession* _tmp2_; - PublishingPiwigoCategoriesGetListTransaction* _tmp3_; - GError * _inner_error_ = NULL; -#line 574 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_return_if_fail (PUBLISHING_PIWIGO_IS_PIWIGO_PUBLISHER (self)); -#line 575 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_debug ("PiwigoPublishing.vala:575: ACTION: fetching categories"); -#line 576 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp0_ = self->priv->host; -#line 576 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - spit_publishing_plugin_host_set_service_locked (_tmp0_, TRUE); -#line 577 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp1_ = self->priv->host; -#line 577 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - spit_publishing_plugin_host_install_account_fetch_wait_pane (_tmp1_); -#line 579 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp2_ = self->priv->session; -#line 579 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp3_ = publishing_piwigo_categories_get_list_transaction_new (_tmp2_); -#line 579 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - cat_trans = _tmp3_; -#line 580 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (cat_trans, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "network-error", (GCallback) _publishing_piwigo_piwigo_publisher_on_category_fetch_error_publishing_rest_support_transaction_network_error, self, 0); -#line 581 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (cat_trans, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "completed", (GCallback) _publishing_piwigo_piwigo_publisher_on_category_fetch_complete_publishing_rest_support_transaction_completed, self, 0); -#line 5036 "PiwigoPublishing.c" - { -#line 584 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - publishing_rest_support_transaction_execute (G_TYPE_CHECK_INSTANCE_CAST (cat_trans, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), &_inner_error_); -#line 584 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 584 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - if (_inner_error_->domain == SPIT_PUBLISHING_PUBLISHING_ERROR) { -#line 5044 "PiwigoPublishing.c" - goto __catch35_spit_publishing_publishing_error; - } -#line 584 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _publishing_rest_support_transaction_unref0 (cat_trans); -#line 584 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 584 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_clear_error (&_inner_error_); -#line 584 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - return; -#line 5055 "PiwigoPublishing.c" - } - } - goto __finally35; - __catch35_spit_publishing_publishing_error: - { - GError* err = NULL; - GError* _tmp4_; -#line 583 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - err = _inner_error_; -#line 583 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _inner_error_ = NULL; -#line 586 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_debug ("PiwigoPublishing.vala:586: ERROR: do_fetch_categories"); -#line 587 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp4_ = err; -#line 587 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - publishing_piwigo_piwigo_publisher_do_show_error (self, _tmp4_); -#line 583 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_error_free0 (err); -#line 5075 "PiwigoPublishing.c" - } - __finally35: -#line 583 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 583 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _publishing_rest_support_transaction_unref0 (cat_trans); -#line 583 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 583 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_clear_error (&_inner_error_); -#line 583 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - return; -#line 5088 "PiwigoPublishing.c" - } -#line 574 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _publishing_rest_support_transaction_unref0 (cat_trans); -#line 5092 "PiwigoPublishing.c" -} - - -/** - * Event triggered when the fetch categories action completes successfully. - * - * This event retrieves all categories from the received transaction and - * populates the categories list. It then triggers the display of the - * publishing options pane. - */ -static void -_vala_array_add38 (PublishingPiwigoCategory** * array, - int* length, - int* size, - PublishingPiwigoCategory* value) -{ -#line 633 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - if ((*length) == (*size)) { -#line 633 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - *size = (*size) ? (2 * (*size)) : 4; -#line 633 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - *array = g_renew (PublishingPiwigoCategory*, *array, (*size) + 1); -#line 5115 "PiwigoPublishing.c" - } -#line 633 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - (*array)[(*length)++] = value; -#line 633 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - (*array)[*length] = NULL; -#line 5121 "PiwigoPublishing.c" -} - - -static void -publishing_piwigo_piwigo_publisher_on_category_fetch_complete (PublishingPiwigoPiwigoPublisher* self, - PublishingRESTSupportTransaction* txn) -{ - guint _tmp0_; - guint _tmp1_; - gchar* _tmp2_; - gchar* _tmp3_; - PublishingPiwigoCategory** _tmp4_; - gint _tmp4__length1; - GError * _inner_error_ = NULL; -#line 598 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_return_if_fail (PUBLISHING_PIWIGO_IS_PIWIGO_PUBLISHER (self)); -#line 598 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_return_if_fail (PUBLISHING_REST_SUPPORT_IS_TRANSACTION (txn)); -#line 599 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_debug ("PiwigoPublishing.vala:599: EVENT: on_category_fetch_complete"); -#line 600 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_signal_parse_name ("completed", PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, &_tmp0_, NULL, FALSE); -#line 600 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_signal_handlers_disconnect_matched (txn, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp0_, 0, NULL, (GCallback) _publishing_piwigo_piwigo_publisher_on_category_fetch_complete_publishing_rest_support_transaction_completed, self); -#line 601 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_signal_parse_name ("network-error", PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, &_tmp1_, NULL, FALSE); -#line 601 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_signal_handlers_disconnect_matched (txn, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp1_, 0, NULL, (GCallback) _publishing_piwigo_piwigo_publisher_on_category_fetch_error_publishing_rest_support_transaction_network_error, self); -#line 602 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp2_ = publishing_rest_support_transaction_get_response (txn); -#line 602 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp3_ = _tmp2_; -#line 602 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_debug ("PiwigoPublishing.vala:602: PiwigoConnector: list of categories: %s", _tmp3_); -#line 602 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_free0 (_tmp3_); -#line 604 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp4_ = self->priv->categories; -#line 604 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp4__length1 = self->priv->categories_length1; -#line 604 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - if (_tmp4_ != NULL) { -#line 605 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - self->priv->categories = (_vala_array_free (self->priv->categories, self->priv->categories_length1, (GDestroyNotify) publishing_piwigo_category_unref), NULL); -#line 605 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - self->priv->categories = NULL; -#line 605 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - self->priv->categories_length1 = 0; -#line 605 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - self->priv->_categories_size_ = self->priv->categories_length1; -#line 5172 "PiwigoPublishing.c" - } - { - PublishingRESTSupportXmlDocument* doc = NULL; - gchar* _tmp5_; - gchar* _tmp6_; - PublishingRESTSupportXmlDocument* _tmp7_; - PublishingRESTSupportXmlDocument* _tmp8_; - xmlNode* root = NULL; - PublishingRESTSupportXmlDocument* _tmp9_; - xmlNode* _tmp10_; - xmlNode* categories_node = NULL; - xmlNode* _tmp11_; - xmlNode* _tmp12_; - xmlNode* category_node_iter = NULL; - xmlNode* _tmp13_; - xmlNode* _tmp14_; - xmlNode* name_node = NULL; - xmlNode* uppercats_node = NULL; - gchar* name = NULL; - gchar* _tmp15_; - gchar* id_string = NULL; - gchar* _tmp16_; - gchar* uppercats = NULL; - gchar* _tmp17_; - GeeHashMap* id_map = NULL; - GeeHashMap* _tmp18_; -#line 609 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp5_ = publishing_rest_support_transaction_get_response (txn); -#line 609 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp6_ = _tmp5_; -#line 609 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp7_ = publishing_rest_support_xml_document_parse_string (_tmp6_, _publishing_piwigo_transaction_validate_xml_publishing_rest_support_xml_document_check_for_error_response, NULL, &_inner_error_); -#line 609 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp8_ = _tmp7_; -#line 609 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_free0 (_tmp6_); -#line 609 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - doc = _tmp8_; -#line 609 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 609 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - if (_inner_error_->domain == SPIT_PUBLISHING_PUBLISHING_ERROR) { -#line 5215 "PiwigoPublishing.c" - goto __catch36_spit_publishing_publishing_error; - } -#line 609 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 609 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_clear_error (&_inner_error_); -#line 609 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - return; -#line 5224 "PiwigoPublishing.c" - } -#line 612 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp9_ = doc; -#line 612 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp10_ = publishing_rest_support_xml_document_get_root_node (_tmp9_); -#line 612 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - root = _tmp10_; -#line 613 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp11_ = root; -#line 613 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp12_ = xmlFirstElementChild (_tmp11_); -#line 613 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - categories_node = _tmp12_; -#line 614 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp13_ = categories_node; -#line 614 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp14_ = _tmp13_->children; -#line 614 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - category_node_iter = _tmp14_; -#line 617 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp15_ = g_strdup (""); -#line 617 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - name = _tmp15_; -#line 618 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp16_ = g_strdup (""); -#line 618 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - id_string = _tmp16_; -#line 619 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp17_ = g_strdup (""); -#line 619 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - uppercats = _tmp17_; -#line 620 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp18_ = gee_hash_map_new (G_TYPE_STRING, (GBoxedCopyFunc) g_strdup, (GDestroyNotify) g_free, G_TYPE_STRING, (GBoxedCopyFunc) g_strdup, (GDestroyNotify) g_free, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL); -#line 620 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - id_map = _tmp18_; -#line 5260 "PiwigoPublishing.c" - { - gboolean _tmp19_ = FALSE; -#line 622 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp19_ = TRUE; -#line 622 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - while (TRUE) { -#line 5267 "PiwigoPublishing.c" - xmlNode* _tmp22_; - xmlNode* _tmp23_ = NULL; - PublishingRESTSupportXmlDocument* _tmp24_; - xmlNode* _tmp25_; - xmlNode* _tmp26_; - xmlNode* _tmp27_; - gchar* _tmp28_; - xmlNode* _tmp29_ = NULL; - PublishingRESTSupportXmlDocument* _tmp30_; - xmlNode* _tmp31_; - xmlNode* _tmp32_; - xmlNode* _tmp33_; - gchar* _tmp34_; - xmlNode* _tmp35_; - gchar* _tmp36_; - GeeHashMap* _tmp37_; - const gchar* _tmp38_; - const gchar* _tmp39_; - PublishingPiwigoCategory** _tmp40_; - gint _tmp40__length1; - PublishingPiwigoCategory** _tmp42_; - gint _tmp42__length1; - const gchar* _tmp43_; - const gchar* _tmp44_; - const gchar* _tmp45_; - PublishingPiwigoCategory* _tmp46_; -#line 622 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - if (!_tmp19_) { -#line 5296 "PiwigoPublishing.c" - xmlNode* _tmp20_; - xmlNode* _tmp21_; -#line 622 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp20_ = category_node_iter; -#line 622 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp21_ = _tmp20_->next; -#line 622 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - category_node_iter = _tmp21_; -#line 5305 "PiwigoPublishing.c" - } -#line 622 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp19_ = FALSE; -#line 622 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp22_ = category_node_iter; -#line 622 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - if (!(_tmp22_ != NULL)) { -#line 622 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - break; -#line 5315 "PiwigoPublishing.c" - } -#line 623 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp24_ = doc; -#line 623 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp25_ = category_node_iter; -#line 623 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp26_ = publishing_rest_support_xml_document_get_named_child (_tmp24_, _tmp25_, "name", &_inner_error_); -#line 623 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp23_ = _tmp26_; -#line 623 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 623 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_object_unref0 (id_map); -#line 623 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_free0 (uppercats); -#line 623 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_free0 (id_string); -#line 623 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_free0 (name); -#line 623 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _publishing_rest_support_xml_document_unref0 (doc); -#line 623 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - if (_inner_error_->domain == SPIT_PUBLISHING_PUBLISHING_ERROR) { -#line 5339 "PiwigoPublishing.c" - goto __catch36_spit_publishing_publishing_error; - } -#line 623 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_object_unref0 (id_map); -#line 623 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_free0 (uppercats); -#line 623 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_free0 (id_string); -#line 623 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_free0 (name); -#line 623 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _publishing_rest_support_xml_document_unref0 (doc); -#line 623 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 623 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_clear_error (&_inner_error_); -#line 623 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - return; -#line 5358 "PiwigoPublishing.c" - } -#line 623 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - name_node = _tmp23_; -#line 624 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp27_ = name_node; -#line 624 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp28_ = (gchar*) xmlNodeGetContent (_tmp27_); -#line 624 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_free0 (name); -#line 624 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - name = _tmp28_; -#line 625 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp30_ = doc; -#line 625 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp31_ = category_node_iter; -#line 625 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp32_ = publishing_rest_support_xml_document_get_named_child (_tmp30_, _tmp31_, "uppercats", &_inner_error_); -#line 625 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp29_ = _tmp32_; -#line 625 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 625 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_object_unref0 (id_map); -#line 625 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_free0 (uppercats); -#line 625 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_free0 (id_string); -#line 625 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_free0 (name); -#line 625 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _publishing_rest_support_xml_document_unref0 (doc); -#line 625 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - if (_inner_error_->domain == SPIT_PUBLISHING_PUBLISHING_ERROR) { -#line 5392 "PiwigoPublishing.c" - goto __catch36_spit_publishing_publishing_error; - } -#line 625 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_object_unref0 (id_map); -#line 625 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_free0 (uppercats); -#line 625 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_free0 (id_string); -#line 625 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_free0 (name); -#line 625 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _publishing_rest_support_xml_document_unref0 (doc); -#line 625 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 625 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_clear_error (&_inner_error_); -#line 625 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - return; -#line 5411 "PiwigoPublishing.c" - } -#line 625 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - uppercats_node = _tmp29_; -#line 626 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp33_ = uppercats_node; -#line 626 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp34_ = (gchar*) xmlNodeGetContent (_tmp33_); -#line 626 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_free0 (uppercats); -#line 626 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - uppercats = (gchar*) _tmp34_; -#line 627 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp35_ = category_node_iter; -#line 627 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp36_ = (gchar*) xmlGetProp (_tmp35_, (xmlChar*) "id"); -#line 627 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_free0 (id_string); -#line 627 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - id_string = _tmp36_; -#line 628 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp37_ = id_map; -#line 628 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp38_ = id_string; -#line 628 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp39_ = name; -#line 628 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - gee_abstract_map_set (G_TYPE_CHECK_INSTANCE_CAST (_tmp37_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp38_, _tmp39_); -#line 630 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp40_ = self->priv->categories; -#line 630 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp40__length1 = self->priv->categories_length1; -#line 630 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - if (_tmp40_ == NULL) { -#line 5445 "PiwigoPublishing.c" - PublishingPiwigoCategory** _tmp41_; -#line 631 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp41_ = g_new0 (PublishingPiwigoCategory*, 0 + 1); -#line 631 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - self->priv->categories = (_vala_array_free (self->priv->categories, self->priv->categories_length1, (GDestroyNotify) publishing_piwigo_category_unref), NULL); -#line 631 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - self->priv->categories = _tmp41_; -#line 631 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - self->priv->categories_length1 = 0; -#line 631 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - self->priv->_categories_size_ = self->priv->categories_length1; -#line 5457 "PiwigoPublishing.c" - } -#line 633 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp42_ = self->priv->categories; -#line 633 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp42__length1 = self->priv->categories_length1; -#line 633 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp43_ = id_string; -#line 633 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp44_ = name; -#line 633 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp45_ = uppercats; -#line 633 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp46_ = publishing_piwigo_category_new (atoi (_tmp43_), _tmp44_, _tmp45_, ""); -#line 633 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _vala_array_add38 (&self->priv->categories, &self->priv->categories_length1, &self->priv->_categories_size_, _tmp46_); -#line 5473 "PiwigoPublishing.c" - } - } - { - gint i = 0; -#line 637 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - i = 0; -#line 5480 "PiwigoPublishing.c" - { - gboolean _tmp47_ = FALSE; -#line 637 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp47_ = TRUE; -#line 637 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - while (TRUE) { -#line 5487 "PiwigoPublishing.c" - gint _tmp49_; - PublishingPiwigoCategory** _tmp50_; - gint _tmp50__length1; - gchar** upcatids = NULL; - PublishingPiwigoCategory** _tmp51_; - gint _tmp51__length1; - gint _tmp52_; - PublishingPiwigoCategory* _tmp53_; - const gchar* _tmp54_; - gchar** _tmp55_; - gchar** _tmp56_; - gint upcatids_length1; - gint _upcatids_size_; - GString* builder = NULL; - GString* _tmp57_; - PublishingPiwigoCategory** _tmp71_; - gint _tmp71__length1; - gint _tmp72_; - PublishingPiwigoCategory* _tmp73_; - GString* _tmp74_; - const gchar* _tmp75_; - gchar* _tmp76_; -#line 637 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - if (!_tmp47_) { -#line 5512 "PiwigoPublishing.c" - gint _tmp48_; -#line 637 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp48_ = i; -#line 637 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - i = _tmp48_ + 1; -#line 5518 "PiwigoPublishing.c" - } -#line 637 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp47_ = FALSE; -#line 637 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp49_ = i; -#line 637 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp50_ = self->priv->categories; -#line 637 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp50__length1 = self->priv->categories_length1; -#line 637 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - if (!(_tmp49_ < _tmp50__length1)) { -#line 637 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - break; -#line 5532 "PiwigoPublishing.c" - } -#line 638 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp51_ = self->priv->categories; -#line 638 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp51__length1 = self->priv->categories_length1; -#line 638 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp52_ = i; -#line 638 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp53_ = _tmp51_[_tmp52_]; -#line 638 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp54_ = _tmp53_->uppercats; -#line 638 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp56_ = _tmp55_ = g_strsplit (_tmp54_, ",", 0); -#line 638 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - upcatids = _tmp56_; -#line 638 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - upcatids_length1 = _vala_array_length (_tmp55_); -#line 638 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _upcatids_size_ = upcatids_length1; -#line 639 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp57_ = g_string_new (""); -#line 639 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - builder = _tmp57_; -#line 5556 "PiwigoPublishing.c" - { - gint j = 0; -#line 640 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - j = 0; -#line 5561 "PiwigoPublishing.c" - { - gboolean _tmp58_ = FALSE; -#line 640 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp58_ = TRUE; -#line 640 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - while (TRUE) { -#line 5568 "PiwigoPublishing.c" - gint _tmp60_; - gchar** _tmp61_; - gint _tmp61__length1; - GString* _tmp62_; - GString* _tmp63_; - GeeHashMap* _tmp64_; - gchar** _tmp65_; - gint _tmp65__length1; - gint _tmp66_; - const gchar* _tmp67_; - gpointer _tmp68_; - gchar* _tmp69_; - GString* _tmp70_; -#line 640 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - if (!_tmp58_) { -#line 5584 "PiwigoPublishing.c" - gint _tmp59_; -#line 640 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp59_ = j; -#line 640 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - j = _tmp59_ + 1; -#line 5590 "PiwigoPublishing.c" - } -#line 640 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp58_ = FALSE; -#line 640 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp60_ = j; -#line 640 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp61_ = upcatids; -#line 640 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp61__length1 = upcatids_length1; -#line 640 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - if (!(_tmp60_ < _tmp61__length1)) { -#line 640 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - break; -#line 5604 "PiwigoPublishing.c" - } -#line 641 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp62_ = builder; -#line 641 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_string_append (_tmp62_, "/ "); -#line 642 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp63_ = builder; -#line 642 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp64_ = id_map; -#line 642 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp65_ = upcatids; -#line 642 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp65__length1 = upcatids_length1; -#line 642 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp66_ = j; -#line 642 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp67_ = _tmp65_[_tmp66_]; -#line 642 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp68_ = gee_abstract_map_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp64_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp67_); -#line 642 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp69_ = (gchar*) _tmp68_; -#line 642 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_string_append (_tmp63_, _tmp69_); -#line 642 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_free0 (_tmp69_); -#line 643 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp70_ = builder; -#line 643 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_string_append (_tmp70_, " "); -#line 5634 "PiwigoPublishing.c" - } - } - } -#line 645 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp71_ = self->priv->categories; -#line 645 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp71__length1 = self->priv->categories_length1; -#line 645 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp72_ = i; -#line 645 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp73_ = _tmp71_[_tmp72_]; -#line 645 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp74_ = builder; -#line 645 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp75_ = _tmp74_->str; -#line 645 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp76_ = g_strdup (_tmp75_); -#line 645 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_free0 (_tmp73_->display_name); -#line 645 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp73_->display_name = _tmp76_; -#line 637 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_string_free0 (builder); -#line 637 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - upcatids = (_vala_array_free (upcatids, upcatids_length1, (GDestroyNotify) g_free), NULL); -#line 5660 "PiwigoPublishing.c" - } - } - } -#line 608 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_object_unref0 (id_map); -#line 608 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_free0 (uppercats); -#line 608 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_free0 (id_string); -#line 608 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_free0 (name); -#line 608 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _publishing_rest_support_xml_document_unref0 (doc); -#line 5674 "PiwigoPublishing.c" - } - goto __finally36; - __catch36_spit_publishing_publishing_error: - { - GError* err = NULL; - GError* _tmp77_; -#line 608 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - err = _inner_error_; -#line 608 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _inner_error_ = NULL; -#line 648 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_debug ("PiwigoPublishing.vala:648: ERROR: on_category_fetch_complete"); -#line 649 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp77_ = err; -#line 649 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - publishing_piwigo_piwigo_publisher_do_show_error (self, _tmp77_); -#line 650 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_error_free0 (err); -#line 650 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - return; -#line 5695 "PiwigoPublishing.c" - } - __finally36: -#line 608 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 608 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 608 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_clear_error (&_inner_error_); -#line 608 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - return; -#line 5706 "PiwigoPublishing.c" - } -#line 653 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - publishing_piwigo_piwigo_publisher_do_show_publishing_options_pane (self); -#line 5710 "PiwigoPublishing.c" -} - - -/** - * Event triggered when the fetch categories transaction fails due to a - * network error. - */ -static void -publishing_piwigo_piwigo_publisher_on_category_fetch_error (PublishingPiwigoPiwigoPublisher* self, - PublishingRESTSupportTransaction* bad_txn, - GError* err) -{ - guint _tmp0_; - guint _tmp1_; -#line 660 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_return_if_fail (PUBLISHING_PIWIGO_IS_PIWIGO_PUBLISHER (self)); -#line 660 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_return_if_fail (PUBLISHING_REST_SUPPORT_IS_TRANSACTION (bad_txn)); -#line 664 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_debug ("PiwigoPublishing.vala:664: EVENT: on_category_fetch_error"); -#line 665 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_signal_parse_name ("completed", PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, &_tmp0_, NULL, FALSE); -#line 665 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_signal_handlers_disconnect_matched (bad_txn, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp0_, 0, NULL, (GCallback) _publishing_piwigo_piwigo_publisher_on_category_fetch_complete_publishing_rest_support_transaction_completed, self); -#line 666 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_signal_parse_name ("network-error", PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, &_tmp1_, NULL, FALSE); -#line 666 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_signal_handlers_disconnect_matched (bad_txn, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp1_, 0, NULL, (GCallback) _publishing_piwigo_piwigo_publisher_on_category_fetch_error_publishing_rest_support_transaction_network_error, self); -#line 667 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - publishing_piwigo_piwigo_publisher_on_network_error (self, bad_txn, err); -#line 5741 "PiwigoPublishing.c" -} - - -/** - * Action that shows the publishing options pane. - * - * This action method shows the publishing options pane. - */ -static void -_publishing_piwigo_piwigo_publisher_on_publishing_options_pane_logout_clicked_publishing_piwigo_publishing_options_pane_logout (PublishingPiwigoPublishingOptionsPane* _sender, - gpointer self) -{ -#line 682 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - publishing_piwigo_piwigo_publisher_on_publishing_options_pane_logout_clicked ((PublishingPiwigoPiwigoPublisher*) self); -#line 5756 "PiwigoPublishing.c" -} - - -static void -_publishing_piwigo_piwigo_publisher_on_publishing_options_pane_publish_clicked_publishing_piwigo_publishing_options_pane_publish (PublishingPiwigoPublishingOptionsPane* _sender, - PublishingPiwigoPublishingParameters* parameters, - gboolean strip_metadata, - gpointer self) -{ -#line 683 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - publishing_piwigo_piwigo_publisher_on_publishing_options_pane_publish_clicked ((PublishingPiwigoPiwigoPublisher*) self, parameters, strip_metadata); -#line 5768 "PiwigoPublishing.c" -} - - -static void -publishing_piwigo_piwigo_publisher_do_show_publishing_options_pane (PublishingPiwigoPiwigoPublisher* self) -{ - SpitPublishingPluginHost* _tmp0_; - PublishingPiwigoPublishingOptionsPane* opts_pane = NULL; - PublishingPiwigoCategory** _tmp1_; - gint _tmp1__length1; - PublishingPiwigoPublishingOptionsPane* _tmp2_; - SpitPublishingPluginHost* _tmp3_; - SpitPublishingPluginHost* _tmp4_; - GtkWidget* _tmp5_; - GtkWidget* _tmp6_; -#line 675 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_return_if_fail (PUBLISHING_PIWIGO_IS_PIWIGO_PUBLISHER (self)); -#line 676 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_debug ("PiwigoPublishing.vala:676: ACTION: installing publishing options pane"); -#line 678 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp0_ = self->priv->host; -#line 678 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - spit_publishing_plugin_host_set_service_locked (_tmp0_, FALSE); -#line 679 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp1_ = self->priv->categories; -#line 679 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp1__length1 = self->priv->categories_length1; -#line 679 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp2_ = publishing_piwigo_publishing_options_pane_new (self, _tmp1_, _tmp1__length1, publishing_piwigo_piwigo_publisher_get_last_category (self), publishing_piwigo_piwigo_publisher_get_last_permission_level (self), publishing_piwigo_piwigo_publisher_get_last_photo_size (self), publishing_piwigo_piwigo_publisher_get_last_title_as_comment (self), publishing_piwigo_piwigo_publisher_get_last_no_upload_tags (self), publishing_piwigo_piwigo_publisher_get_metadata_removal_choice (self)); -#line 679 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - opts_pane = _tmp2_; -#line 682 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_signal_connect_object (opts_pane, "logout", (GCallback) _publishing_piwigo_piwigo_publisher_on_publishing_options_pane_logout_clicked_publishing_piwigo_publishing_options_pane_logout, self, 0); -#line 683 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_signal_connect_object (opts_pane, "publish", (GCallback) _publishing_piwigo_piwigo_publisher_on_publishing_options_pane_publish_clicked_publishing_piwigo_publishing_options_pane_publish, self, 0); -#line 684 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp3_ = self->priv->host; -#line 684 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - spit_publishing_plugin_host_install_dialog_pane (_tmp3_, G_TYPE_CHECK_INSTANCE_CAST (opts_pane, SPIT_PUBLISHING_TYPE_DIALOG_PANE, SpitPublishingDialogPane), SPIT_PUBLISHING_PLUGIN_HOST_BUTTON_MODE_CLOSE); -#line 685 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp4_ = self->priv->host; -#line 685 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp5_ = shotwell_plugins_common_builder_pane_get_default_widget (G_TYPE_CHECK_INSTANCE_CAST (opts_pane, SHOTWELL_PLUGINS_COMMON_TYPE_BUILDER_PANE, ShotwellPluginsCommonBuilderPane)); -#line 685 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp6_ = _tmp5_; -#line 685 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - spit_publishing_plugin_host_set_dialog_default_widget (_tmp4_, _tmp6_); -#line 685 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_object_unref0 (_tmp6_); -#line 675 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_object_unref0 (opts_pane); -#line 5820 "PiwigoPublishing.c" -} - - -/** - * Event triggered when the user clicks logout in the publishing options pane. - */ -static void -_publishing_piwigo_piwigo_publisher_on_logout_network_error_publishing_rest_support_transaction_network_error (PublishingRESTSupportTransaction* _sender, - GError* err, - gpointer self) -{ -#line 694 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - publishing_piwigo_piwigo_publisher_on_logout_network_error ((PublishingPiwigoPiwigoPublisher*) self, _sender, err); -#line 5834 "PiwigoPublishing.c" -} - - -static void -_publishing_piwigo_piwigo_publisher_on_logout_network_complete_publishing_rest_support_transaction_completed (PublishingRESTSupportTransaction* _sender, - gpointer self) -{ -#line 695 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - publishing_piwigo_piwigo_publisher_on_logout_network_complete ((PublishingPiwigoPiwigoPublisher*) self, _sender); -#line 5844 "PiwigoPublishing.c" -} - - -static void -publishing_piwigo_piwigo_publisher_on_publishing_options_pane_logout_clicked (PublishingPiwigoPiwigoPublisher* self) -{ - PublishingPiwigoSessionLogoutTransaction* logout_trans = NULL; - PublishingPiwigoSession* _tmp0_; - PublishingPiwigoSessionLogoutTransaction* _tmp1_; - GError * _inner_error_ = NULL; -#line 691 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_return_if_fail (PUBLISHING_PIWIGO_IS_PIWIGO_PUBLISHER (self)); -#line 692 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_debug ("PiwigoPublishing.vala:692: EVENT: on_publishing_options_pane_logout_cl" \ -"icked"); -#line 693 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp0_ = self->priv->session; -#line 693 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp1_ = publishing_piwigo_session_logout_transaction_new (_tmp0_); -#line 693 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - logout_trans = _tmp1_; -#line 694 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (logout_trans, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "network-error", (GCallback) _publishing_piwigo_piwigo_publisher_on_logout_network_error_publishing_rest_support_transaction_network_error, self, 0); -#line 695 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (logout_trans, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "completed", (GCallback) _publishing_piwigo_piwigo_publisher_on_logout_network_complete_publishing_rest_support_transaction_completed, self, 0); -#line 5869 "PiwigoPublishing.c" - { -#line 698 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - publishing_rest_support_transaction_execute (G_TYPE_CHECK_INSTANCE_CAST (logout_trans, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), &_inner_error_); -#line 698 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 698 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - if (_inner_error_->domain == SPIT_PUBLISHING_PUBLISHING_ERROR) { -#line 5877 "PiwigoPublishing.c" - goto __catch37_spit_publishing_publishing_error; - } -#line 698 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _publishing_rest_support_transaction_unref0 (logout_trans); -#line 698 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 698 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_clear_error (&_inner_error_); -#line 698 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - return; -#line 5888 "PiwigoPublishing.c" - } - } - goto __finally37; - __catch37_spit_publishing_publishing_error: - { - GError* err = NULL; - GError* _tmp2_; -#line 697 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - err = _inner_error_; -#line 697 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _inner_error_ = NULL; -#line 700 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_debug ("PiwigoPublishing.vala:700: ERROR: on_publishing_options_pane_logout_cl" \ -"icked"); -#line 701 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp2_ = err; -#line 701 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - publishing_piwigo_piwigo_publisher_do_show_error (self, _tmp2_); -#line 697 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_error_free0 (err); -#line 5908 "PiwigoPublishing.c" - } - __finally37: -#line 697 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 697 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _publishing_rest_support_transaction_unref0 (logout_trans); -#line 697 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 697 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_clear_error (&_inner_error_); -#line 697 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - return; -#line 5921 "PiwigoPublishing.c" - } -#line 691 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _publishing_rest_support_transaction_unref0 (logout_trans); -#line 5925 "PiwigoPublishing.c" -} - - -/** - * Event triggered when the logout action completes successfully. - * - * This event de-authenticates the session and shows the authentication - * pane again. - */ -static void -publishing_piwigo_piwigo_publisher_on_logout_network_complete (PublishingPiwigoPiwigoPublisher* self, - PublishingRESTSupportTransaction* txn) -{ - guint _tmp0_; - guint _tmp1_; - PublishingPiwigoSession* _tmp2_; -#line 711 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_return_if_fail (PUBLISHING_PIWIGO_IS_PIWIGO_PUBLISHER (self)); -#line 711 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_return_if_fail (PUBLISHING_REST_SUPPORT_IS_TRANSACTION (txn)); -#line 712 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_debug ("PiwigoPublishing.vala:712: EVENT: on_logout_network_complete"); -#line 713 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_signal_parse_name ("completed", PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, &_tmp0_, NULL, FALSE); -#line 713 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_signal_handlers_disconnect_matched (txn, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp0_, 0, NULL, (GCallback) _publishing_piwigo_piwigo_publisher_on_logout_network_complete_publishing_rest_support_transaction_completed, self); -#line 714 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_signal_parse_name ("network-error", PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, &_tmp1_, NULL, FALSE); -#line 714 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_signal_handlers_disconnect_matched (txn, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp1_, 0, NULL, (GCallback) _publishing_piwigo_piwigo_publisher_on_logout_network_error_publishing_rest_support_transaction_network_error, self); -#line 716 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp2_ = self->priv->session; -#line 716 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - publishing_piwigo_session_deauthenticate (_tmp2_); -#line 718 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - publishing_piwigo_piwigo_publisher_do_show_authentication_pane (self, PUBLISHING_PIWIGO_AUTHENTICATION_PANE_MODE_INTRO); -#line 5962 "PiwigoPublishing.c" -} - - -/** - * Event triggered when the logout action fails due to a network error. - */ -static void -publishing_piwigo_piwigo_publisher_on_logout_network_error (PublishingPiwigoPiwigoPublisher* self, - PublishingRESTSupportTransaction* bad_txn, - GError* err) -{ - guint _tmp0_; - guint _tmp1_; -#line 724 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_return_if_fail (PUBLISHING_PIWIGO_IS_PIWIGO_PUBLISHER (self)); -#line 724 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_return_if_fail (PUBLISHING_REST_SUPPORT_IS_TRANSACTION (bad_txn)); -#line 728 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_debug ("PiwigoPublishing.vala:728: EVENT: on_logout_network_error"); -#line 729 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_signal_parse_name ("completed", PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, &_tmp0_, NULL, FALSE); -#line 729 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_signal_handlers_disconnect_matched (bad_txn, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp0_, 0, NULL, (GCallback) _publishing_piwigo_piwigo_publisher_on_logout_network_complete_publishing_rest_support_transaction_completed, self); -#line 730 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_signal_parse_name ("network-error", PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, &_tmp1_, NULL, FALSE); -#line 730 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_signal_handlers_disconnect_matched (bad_txn, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp1_, 0, NULL, (GCallback) _publishing_piwigo_piwigo_publisher_on_logout_network_error_publishing_rest_support_transaction_network_error, self); -#line 731 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - publishing_piwigo_piwigo_publisher_on_network_error (self, bad_txn, err); -#line 5992 "PiwigoPublishing.c" -} - - -/** - * Event triggered when the user clicks publish in the publishing options pane. - * - * This event first saves the parameters so that they can re-used later. - * If the publishing parameters indicate that the user wants to create a new - * category, the create category action is called. Otherwise, the upload - * action is called. - * - * @param parameters the publishing parameters - */ -static gpointer -_publishing_piwigo_publishing_parameters_ref0 (gpointer self) -{ -#line 747 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - return self ? publishing_piwigo_publishing_parameters_ref (self) : NULL; -#line 6011 "PiwigoPublishing.c" -} - - -static void -publishing_piwigo_piwigo_publisher_on_publishing_options_pane_publish_clicked (PublishingPiwigoPiwigoPublisher* self, - PublishingPiwigoPublishingParameters* parameters, - gboolean strip_metadata) -{ - PublishingPiwigoPublishingParameters* _tmp0_; - PublishingPiwigoCategory* _tmp1_; -#line 744 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_return_if_fail (PUBLISHING_PIWIGO_IS_PIWIGO_PUBLISHER (self)); -#line 744 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_return_if_fail (PUBLISHING_PIWIGO_IS_PUBLISHING_PARAMETERS (parameters)); -#line 746 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_debug ("PiwigoPublishing.vala:746: EVENT: on_publishing_options_pane_publish_c" \ -"licked"); -#line 747 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp0_ = _publishing_piwigo_publishing_parameters_ref0 (parameters); -#line 747 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _publishing_piwigo_publishing_parameters_unref0 (self->priv->parameters); -#line 747 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - self->priv->parameters = _tmp0_; -#line 748 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - self->priv->strip_metadata = strip_metadata; -#line 750 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp1_ = parameters->category; -#line 750 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - if (publishing_piwigo_category_is_local (_tmp1_)) { -#line 6040 "PiwigoPublishing.c" - PublishingPiwigoCategory* _tmp2_; -#line 751 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp2_ = parameters->category; -#line 751 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - publishing_piwigo_piwigo_publisher_do_create_category (self, _tmp2_); -#line 6046 "PiwigoPublishing.c" - } else { - gboolean _tmp3_; -#line 753 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp3_ = self->priv->strip_metadata; -#line 753 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - publishing_piwigo_piwigo_publisher_do_upload (self, _tmp3_); -#line 6053 "PiwigoPublishing.c" - } -} - - -/** - * Action that creates a new category in the Piwigo library. - * - * This actions runs a REST transaction to create a new category in the - * Piwigo library. It displays a wait pane with an information message - * while the transaction is running. This action should only be called with - * a local cateogory, i.e. one that does not exist on the server and does - * not yet have an ID. - * - * @param category the new category to create on the server - */ -static gchar* -string_strip (const gchar* self) -{ - gchar* result = NULL; - gchar* _result_ = NULL; - gchar* _tmp0_; - const gchar* _tmp1_; -#line 1248 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - g_return_val_if_fail (self != NULL, NULL); -#line 1249 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp0_ = g_strdup (self); -#line 1249 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _result_ = _tmp0_; -#line 1250 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp1_ = _result_; -#line 1250 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - g_strstrip (_tmp1_); -#line 1251 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - result = _result_; -#line 1251 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - return result; -#line 6090 "PiwigoPublishing.c" -} - - -static void -_publishing_piwigo_piwigo_publisher_on_category_add_error_publishing_rest_support_transaction_network_error (PublishingRESTSupportTransaction* _sender, - GError* err, - gpointer self) -{ -#line 777 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - publishing_piwigo_piwigo_publisher_on_category_add_error ((PublishingPiwigoPiwigoPublisher*) self, _sender, err); -#line 6101 "PiwigoPublishing.c" -} - - -static void -_publishing_piwigo_piwigo_publisher_on_category_add_complete_publishing_rest_support_transaction_completed (PublishingRESTSupportTransaction* _sender, - gpointer self) -{ -#line 778 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - publishing_piwigo_piwigo_publisher_on_category_add_complete ((PublishingPiwigoPiwigoPublisher*) self, _sender); -#line 6111 "PiwigoPublishing.c" -} - - -static void -publishing_piwigo_piwigo_publisher_do_create_category (PublishingPiwigoPiwigoPublisher* self, - PublishingPiwigoCategory* category) -{ - const gchar* _tmp0_; - gchar* _tmp1_; - gchar* _tmp2_; - SpitPublishingPluginHost* _tmp3_; - SpitPublishingPluginHost* _tmp4_; - const gchar* _tmp5_; - gchar* _tmp6_; - gchar* _tmp7_; - PublishingPiwigoCategoriesAddTransaction* creation_trans = NULL; - PublishingPiwigoSession* _tmp8_; - const gchar* _tmp9_; - gchar* _tmp10_; - gchar* _tmp11_; - const gchar* _tmp12_; - const gchar* _tmp13_; - PublishingPiwigoCategoriesAddTransaction* _tmp14_; - PublishingPiwigoCategoriesAddTransaction* _tmp15_; - GError * _inner_error_ = NULL; -#line 768 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_return_if_fail (PUBLISHING_PIWIGO_IS_PIWIGO_PUBLISHER (self)); -#line 768 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_return_if_fail (PUBLISHING_PIWIGO_IS_CATEGORY (category)); -#line 769 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp0_ = category->name; -#line 769 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp1_ = g_strdup_printf ("ACTION: creating a new category: %s", _tmp0_); -#line 769 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp2_ = _tmp1_; -#line 769 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_debug ("PiwigoPublishing.vala:769: %s", _tmp2_); -#line 769 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_free0 (_tmp2_); -#line 770 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _vala_assert (publishing_piwigo_category_is_local (category), "category.is_local()"); -#line 772 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp3_ = self->priv->host; -#line 772 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - spit_publishing_plugin_host_set_service_locked (_tmp3_, TRUE); -#line 773 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp4_ = self->priv->host; -#line 773 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp5_ = category->name; -#line 773 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp6_ = g_strdup_printf (_ ("Creating album %s…"), _tmp5_); -#line 773 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp7_ = _tmp6_; -#line 773 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - spit_publishing_plugin_host_install_static_message_pane (_tmp4_, _tmp7_, SPIT_PUBLISHING_PLUGIN_HOST_BUTTON_MODE_CANCEL); -#line 773 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_free0 (_tmp7_); -#line 775 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp8_ = self->priv->session; -#line 775 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp9_ = category->name; -#line 775 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp10_ = string_strip (_tmp9_); -#line 775 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp11_ = _tmp10_; -#line 775 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp12_ = category->uppercats; -#line 775 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp13_ = category->comment; -#line 775 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp14_ = publishing_piwigo_categories_add_transaction_new (_tmp8_, _tmp11_, atoi (_tmp12_), _tmp13_); -#line 775 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp15_ = _tmp14_; -#line 775 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_free0 (_tmp11_); -#line 775 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - creation_trans = _tmp15_; -#line 777 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (creation_trans, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "network-error", (GCallback) _publishing_piwigo_piwigo_publisher_on_category_add_error_publishing_rest_support_transaction_network_error, self, 0); -#line 778 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (creation_trans, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "completed", (GCallback) _publishing_piwigo_piwigo_publisher_on_category_add_complete_publishing_rest_support_transaction_completed, self, 0); -#line 6193 "PiwigoPublishing.c" - { -#line 781 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - publishing_rest_support_transaction_execute (G_TYPE_CHECK_INSTANCE_CAST (creation_trans, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), &_inner_error_); -#line 781 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 781 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - if (_inner_error_->domain == SPIT_PUBLISHING_PUBLISHING_ERROR) { -#line 6201 "PiwigoPublishing.c" - goto __catch38_spit_publishing_publishing_error; - } -#line 781 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _publishing_rest_support_transaction_unref0 (creation_trans); -#line 781 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 781 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_clear_error (&_inner_error_); -#line 781 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - return; -#line 6212 "PiwigoPublishing.c" - } - } - goto __finally38; - __catch38_spit_publishing_publishing_error: - { - GError* err = NULL; - GError* _tmp16_; -#line 780 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - err = _inner_error_; -#line 780 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _inner_error_ = NULL; -#line 783 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_debug ("PiwigoPublishing.vala:783: ERROR: do_create_category"); -#line 784 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp16_ = err; -#line 784 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - publishing_piwigo_piwigo_publisher_do_show_error (self, _tmp16_); -#line 780 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_error_free0 (err); -#line 6232 "PiwigoPublishing.c" - } - __finally38: -#line 780 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 780 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _publishing_rest_support_transaction_unref0 (creation_trans); -#line 780 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 780 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_clear_error (&_inner_error_); -#line 780 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - return; -#line 6245 "PiwigoPublishing.c" - } -#line 768 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _publishing_rest_support_transaction_unref0 (creation_trans); -#line 6249 "PiwigoPublishing.c" -} - - -/** - * Event triggered when the add category action completes successfully. - * - * This event parses the ID assigned to new category out of the received - * transaction and assigns that ID to the category currently held in - * the publishing parameters. It then calls the upload action. - */ -static void -publishing_piwigo_piwigo_publisher_on_category_add_complete (PublishingPiwigoPiwigoPublisher* self, - PublishingRESTSupportTransaction* txn) -{ - guint _tmp0_; - guint _tmp1_; - GError * _inner_error_ = NULL; -#line 795 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_return_if_fail (PUBLISHING_PIWIGO_IS_PIWIGO_PUBLISHER (self)); -#line 795 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_return_if_fail (PUBLISHING_REST_SUPPORT_IS_TRANSACTION (txn)); -#line 796 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_debug ("PiwigoPublishing.vala:796: EVENT: on_category_add_complete"); -#line 797 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_signal_parse_name ("completed", PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, &_tmp0_, NULL, FALSE); -#line 797 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_signal_handlers_disconnect_matched (txn, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp0_, 0, NULL, (GCallback) _publishing_piwigo_piwigo_publisher_on_category_add_complete_publishing_rest_support_transaction_completed, self); -#line 798 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_signal_parse_name ("network-error", PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, &_tmp1_, NULL, FALSE); -#line 798 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_signal_handlers_disconnect_matched (txn, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp1_, 0, NULL, (GCallback) _publishing_piwigo_piwigo_publisher_on_category_add_error_publishing_rest_support_transaction_network_error, self); -#line 6281 "PiwigoPublishing.c" - { - PublishingRESTSupportXmlDocument* doc = NULL; - gchar* _tmp2_; - gchar* _tmp3_; - PublishingRESTSupportXmlDocument* _tmp4_; - PublishingRESTSupportXmlDocument* _tmp5_; - xmlNode* rsp = NULL; - PublishingRESTSupportXmlDocument* _tmp6_; - xmlNode* _tmp7_; - xmlNode* id_node = NULL; - xmlNode* _tmp8_ = NULL; - PublishingRESTSupportXmlDocument* _tmp9_; - xmlNode* _tmp10_; - xmlNode* _tmp11_; - gchar* id_string = NULL; - xmlNode* _tmp12_; - gchar* _tmp13_; - gint id = 0; - const gchar* _tmp14_; - PublishingPiwigoPublishingParameters* _tmp15_; - PublishingPiwigoCategory* _tmp16_; - gint _tmp17_; - gboolean _tmp18_; -#line 802 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp2_ = publishing_rest_support_transaction_get_response (txn); -#line 802 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp3_ = _tmp2_; -#line 802 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp4_ = publishing_rest_support_xml_document_parse_string (_tmp3_, _publishing_piwigo_transaction_validate_xml_publishing_rest_support_xml_document_check_for_error_response, NULL, &_inner_error_); -#line 802 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp5_ = _tmp4_; -#line 802 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_free0 (_tmp3_); -#line 802 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - doc = _tmp5_; -#line 802 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 802 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - if (_inner_error_->domain == SPIT_PUBLISHING_PUBLISHING_ERROR) { -#line 6321 "PiwigoPublishing.c" - goto __catch39_spit_publishing_publishing_error; - } -#line 802 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 802 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_clear_error (&_inner_error_); -#line 802 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - return; -#line 6330 "PiwigoPublishing.c" - } -#line 805 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp6_ = doc; -#line 805 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp7_ = publishing_rest_support_xml_document_get_root_node (_tmp6_); -#line 805 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - rsp = _tmp7_; -#line 807 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp9_ = doc; -#line 807 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp10_ = rsp; -#line 807 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp11_ = publishing_rest_support_xml_document_get_named_child (_tmp9_, _tmp10_, "id", &_inner_error_); -#line 807 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp8_ = _tmp11_; -#line 807 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 807 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _publishing_rest_support_xml_document_unref0 (doc); -#line 807 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - if (_inner_error_->domain == SPIT_PUBLISHING_PUBLISHING_ERROR) { -#line 6352 "PiwigoPublishing.c" - goto __catch39_spit_publishing_publishing_error; - } -#line 807 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _publishing_rest_support_xml_document_unref0 (doc); -#line 807 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 807 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_clear_error (&_inner_error_); -#line 807 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - return; -#line 6363 "PiwigoPublishing.c" - } -#line 807 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - id_node = _tmp8_; -#line 808 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp12_ = id_node; -#line 808 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp13_ = (gchar*) xmlNodeGetContent (_tmp12_); -#line 808 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - id_string = _tmp13_; -#line 809 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp14_ = id_string; -#line 809 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - id = atoi (_tmp14_); -#line 810 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp15_ = self->priv->parameters; -#line 810 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp16_ = _tmp15_->category; -#line 810 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp17_ = id; -#line 810 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp16_->id = _tmp17_; -#line 811 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp18_ = self->priv->strip_metadata; -#line 811 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - publishing_piwigo_piwigo_publisher_do_upload (self, _tmp18_); -#line 801 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_free0 (id_string); -#line 801 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _publishing_rest_support_xml_document_unref0 (doc); -#line 6393 "PiwigoPublishing.c" - } - goto __finally39; - __catch39_spit_publishing_publishing_error: - { - GError* err = NULL; - GError* _tmp19_; -#line 801 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - err = _inner_error_; -#line 801 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _inner_error_ = NULL; -#line 813 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_debug ("PiwigoPublishing.vala:813: ERROR: on_category_add_complete"); -#line 814 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp19_ = err; -#line 814 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - publishing_piwigo_piwigo_publisher_do_show_error (self, _tmp19_); -#line 801 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_error_free0 (err); -#line 6412 "PiwigoPublishing.c" - } - __finally39: -#line 801 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 801 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 801 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_clear_error (&_inner_error_); -#line 801 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - return; -#line 6423 "PiwigoPublishing.c" - } -} - - -/** - * Event triggered when the add category action fails due to a network error. - */ -static void -publishing_piwigo_piwigo_publisher_on_category_add_error (PublishingPiwigoPiwigoPublisher* self, - PublishingRESTSupportTransaction* bad_txn, - GError* err) -{ - guint _tmp0_; - guint _tmp1_; -#line 821 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_return_if_fail (PUBLISHING_PIWIGO_IS_PIWIGO_PUBLISHER (self)); -#line 821 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_return_if_fail (PUBLISHING_REST_SUPPORT_IS_TRANSACTION (bad_txn)); -#line 825 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_debug ("PiwigoPublishing.vala:825: EVENT: on_category_add_error"); -#line 826 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_signal_parse_name ("completed", PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, &_tmp0_, NULL, FALSE); -#line 826 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_signal_handlers_disconnect_matched (bad_txn, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp0_, 0, NULL, (GCallback) _publishing_piwigo_piwigo_publisher_on_category_add_complete_publishing_rest_support_transaction_completed, self); -#line 827 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_signal_parse_name ("network-error", PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, &_tmp1_, NULL, FALSE); -#line 827 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_signal_handlers_disconnect_matched (bad_txn, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp1_, 0, NULL, (GCallback) _publishing_piwigo_piwigo_publisher_on_category_add_error_publishing_rest_support_transaction_network_error, self); -#line 828 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - publishing_piwigo_piwigo_publisher_on_network_error (self, bad_txn, err); -#line 6454 "PiwigoPublishing.c" -} - - -/** - * Upload action: the big one, the one we've been waiting for! - */ -static void -_publishing_piwigo_piwigo_publisher_on_upload_complete_publishing_rest_support_batch_uploader_upload_complete (PublishingRESTSupportBatchUploader* _sender, - gint num_photos_published, - gpointer self) -{ -#line 851 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - publishing_piwigo_piwigo_publisher_on_upload_complete ((PublishingPiwigoPiwigoPublisher*) self, _sender, num_photos_published); -#line 6468 "PiwigoPublishing.c" -} - - -static void -_publishing_piwigo_piwigo_publisher_on_upload_error_publishing_rest_support_batch_uploader_upload_error (PublishingRESTSupportBatchUploader* _sender, - GError* err, - gpointer self) -{ -#line 852 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - publishing_piwigo_piwigo_publisher_on_upload_error ((PublishingPiwigoPiwigoPublisher*) self, _sender, err); -#line 6479 "PiwigoPublishing.c" -} - - -static void -_publishing_piwigo_piwigo_publisher_on_upload_status_updated_spit_publishing_progress_callback (gint file_number, - gdouble fraction_complete, - gpointer self) -{ -#line 853 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - publishing_piwigo_piwigo_publisher_on_upload_status_updated ((PublishingPiwigoPiwigoPublisher*) self, file_number, fraction_complete); -#line 6490 "PiwigoPublishing.c" -} - - -static void -publishing_piwigo_piwigo_publisher_do_upload (PublishingPiwigoPiwigoPublisher* self, - gboolean strip_metadata) -{ - SpitPublishingPluginHost* _tmp0_; - PublishingPiwigoPublishingParameters* _tmp1_; - PublishingPiwigoCategory* _tmp2_; - gint _tmp3_; - PublishingPiwigoPublishingParameters* _tmp4_; - PublishingPiwigoPermissionLevel* _tmp5_; - gint _tmp6_; - PublishingPiwigoPublishingParameters* _tmp7_; - PublishingPiwigoSizeEntry* _tmp8_; - gint _tmp9_; - PublishingPiwigoPublishingParameters* _tmp10_; - gboolean _tmp11_; - PublishingPiwigoPublishingParameters* _tmp12_; - gboolean _tmp13_; - SpitPublishingPluginHost* _tmp14_; - PublishingPiwigoPublishingParameters* _tmp15_; - PublishingPiwigoSizeEntry* _tmp16_; - gint _tmp17_; - gboolean _tmp18_; - void* _tmp19_; - GDestroyNotify _tmp20_; - SpitPublishingProgressCallback _tmp21_; - SpitPublishingPublishable** publishables = NULL; - SpitPublishingPluginHost* _tmp22_; - gint _tmp23_; - SpitPublishingPublishable** _tmp24_; - gint publishables_length1; - gint _publishables_size_; - PublishingPiwigoUploader* uploader = NULL; - PublishingPiwigoSession* _tmp25_; - PublishingPiwigoPublishingParameters* _tmp26_; - PublishingPiwigoUploader* _tmp27_; -#line 834 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_return_if_fail (PUBLISHING_PIWIGO_IS_PIWIGO_PUBLISHER (self)); -#line 835 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - self->priv->strip_metadata = strip_metadata; -#line 836 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_debug ("PiwigoPublishing.vala:836: ACTION: uploading pictures"); -#line 838 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp0_ = self->priv->host; -#line 838 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - spit_publishing_plugin_host_set_service_locked (_tmp0_, TRUE); -#line 840 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp1_ = self->priv->parameters; -#line 840 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp2_ = _tmp1_->category; -#line 840 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp3_ = _tmp2_->id; -#line 840 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - publishing_piwigo_piwigo_publisher_set_last_category (self, _tmp3_); -#line 841 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp4_ = self->priv->parameters; -#line 841 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp5_ = _tmp4_->perm_level; -#line 841 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp6_ = _tmp5_->id; -#line 841 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - publishing_piwigo_piwigo_publisher_set_last_permission_level (self, _tmp6_); -#line 842 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp7_ = self->priv->parameters; -#line 842 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp8_ = _tmp7_->photo_size; -#line 842 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp9_ = _tmp8_->id; -#line 842 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - publishing_piwigo_piwigo_publisher_set_last_photo_size (self, _tmp9_); -#line 843 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp10_ = self->priv->parameters; -#line 843 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp11_ = _tmp10_->title_as_comment; -#line 843 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - publishing_piwigo_piwigo_publisher_set_last_title_as_comment (self, _tmp11_); -#line 844 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp12_ = self->priv->parameters; -#line 844 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp13_ = _tmp12_->no_upload_tags; -#line 844 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - publishing_piwigo_piwigo_publisher_set_last_no_upload_tags (self, _tmp13_); -#line 845 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - publishing_piwigo_piwigo_publisher_set_metadata_removal_choice (self, strip_metadata); -#line 847 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp14_ = self->priv->host; -#line 847 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp15_ = self->priv->parameters; -#line 847 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp16_ = _tmp15_->photo_size; -#line 847 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp17_ = _tmp16_->id; -#line 847 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp18_ = self->priv->strip_metadata; -#line 847 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp21_ = spit_publishing_plugin_host_serialize_publishables (_tmp14_, _tmp17_, _tmp18_, &_tmp19_, &_tmp20_); -#line 847 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - (self->priv->progress_reporter_target_destroy_notify == NULL) ? NULL : (self->priv->progress_reporter_target_destroy_notify (self->priv->progress_reporter_target), NULL); -#line 847 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - self->priv->progress_reporter = NULL; -#line 847 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - self->priv->progress_reporter_target = NULL; -#line 847 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - self->priv->progress_reporter_target_destroy_notify = NULL; -#line 847 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - self->priv->progress_reporter = _tmp21_; -#line 847 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - self->priv->progress_reporter_target = _tmp19_; -#line 847 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - self->priv->progress_reporter_target_destroy_notify = _tmp20_; -#line 848 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp22_ = self->priv->host; -#line 848 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp24_ = spit_publishing_plugin_host_get_publishables (_tmp22_, &_tmp23_); -#line 848 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - publishables = _tmp24_; -#line 848 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - publishables_length1 = _tmp23_; -#line 848 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _publishables_size_ = publishables_length1; -#line 850 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp25_ = self->priv->session; -#line 850 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp26_ = self->priv->parameters; -#line 850 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp27_ = publishing_piwigo_uploader_new (_tmp25_, publishables, publishables_length1, _tmp26_); -#line 850 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - uploader = _tmp27_; -#line 851 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (uploader, PUBLISHING_REST_SUPPORT_TYPE_BATCH_UPLOADER, PublishingRESTSupportBatchUploader), "upload-complete", (GCallback) _publishing_piwigo_piwigo_publisher_on_upload_complete_publishing_rest_support_batch_uploader_upload_complete, self, 0); -#line 852 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (uploader, PUBLISHING_REST_SUPPORT_TYPE_BATCH_UPLOADER, PublishingRESTSupportBatchUploader), "upload-error", (GCallback) _publishing_piwigo_piwigo_publisher_on_upload_error_publishing_rest_support_batch_uploader_upload_error, self, 0); -#line 853 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - publishing_rest_support_batch_uploader_upload (G_TYPE_CHECK_INSTANCE_CAST (uploader, PUBLISHING_REST_SUPPORT_TYPE_BATCH_UPLOADER, PublishingRESTSupportBatchUploader), _publishing_piwigo_piwigo_publisher_on_upload_status_updated_spit_publishing_progress_callback, self); -#line 834 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _publishing_rest_support_batch_uploader_unref0 (uploader); -#line 834 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - publishables = (_vala_array_free (publishables, publishables_length1, (GDestroyNotify) g_object_unref), NULL); -#line 6632 "PiwigoPublishing.c" -} - - -/** - * Event triggered when the batch uploader reports that at least one of the - * network transactions encapsulating uploads has completed successfully - */ -static void -publishing_piwigo_piwigo_publisher_on_upload_complete (PublishingPiwigoPiwigoPublisher* self, - PublishingRESTSupportBatchUploader* uploader, - gint num_published) -{ - guint _tmp0_; - guint _tmp1_; -#line 860 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_return_if_fail (PUBLISHING_PIWIGO_IS_PIWIGO_PUBLISHER (self)); -#line 860 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_return_if_fail (PUBLISHING_REST_SUPPORT_IS_BATCH_UPLOADER (uploader)); -#line 861 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_debug ("PiwigoPublishing.vala:861: EVENT: on_upload_complete"); -#line 862 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_signal_parse_name ("upload-complete", PUBLISHING_REST_SUPPORT_TYPE_BATCH_UPLOADER, &_tmp0_, NULL, FALSE); -#line 862 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_signal_handlers_disconnect_matched (uploader, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp0_, 0, NULL, (GCallback) _publishing_piwigo_piwigo_publisher_on_upload_complete_publishing_rest_support_batch_uploader_upload_complete, self); -#line 863 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_signal_parse_name ("upload-error", PUBLISHING_REST_SUPPORT_TYPE_BATCH_UPLOADER, &_tmp1_, NULL, FALSE); -#line 863 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_signal_handlers_disconnect_matched (uploader, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp1_, 0, NULL, (GCallback) _publishing_piwigo_piwigo_publisher_on_upload_error_publishing_rest_support_batch_uploader_upload_error, self); -#line 867 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - publishing_piwigo_piwigo_publisher_do_show_success_pane (self); -#line 6663 "PiwigoPublishing.c" -} - - -/** - * Event triggered when the batch uploader reports that at least one of the - * network transactions encapsulating uploads has caused a network error - */ -static void -publishing_piwigo_piwigo_publisher_on_upload_error (PublishingPiwigoPiwigoPublisher* self, - PublishingRESTSupportBatchUploader* uploader, - GError* err) -{ - guint _tmp0_; - guint _tmp1_; -#line 874 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_return_if_fail (PUBLISHING_PIWIGO_IS_PIWIGO_PUBLISHER (self)); -#line 874 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_return_if_fail (PUBLISHING_REST_SUPPORT_IS_BATCH_UPLOADER (uploader)); -#line 878 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_debug ("PiwigoPublishing.vala:878: EVENT: on_upload_error"); -#line 879 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_signal_parse_name ("upload-complete", PUBLISHING_REST_SUPPORT_TYPE_BATCH_UPLOADER, &_tmp0_, NULL, FALSE); -#line 879 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_signal_handlers_disconnect_matched (uploader, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp0_, 0, NULL, (GCallback) _publishing_piwigo_piwigo_publisher_on_upload_complete_publishing_rest_support_batch_uploader_upload_complete, self); -#line 880 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_signal_parse_name ("upload-error", PUBLISHING_REST_SUPPORT_TYPE_BATCH_UPLOADER, &_tmp1_, NULL, FALSE); -#line 880 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_signal_handlers_disconnect_matched (uploader, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp1_, 0, NULL, (GCallback) _publishing_piwigo_piwigo_publisher_on_upload_error_publishing_rest_support_batch_uploader_upload_error, self); -#line 882 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - publishing_piwigo_piwigo_publisher_do_show_error (self, err); -#line 6694 "PiwigoPublishing.c" -} - - -/** - * Event triggered when upload progresses and the status needs to be updated. - */ -static void -publishing_piwigo_piwigo_publisher_on_upload_status_updated (PublishingPiwigoPiwigoPublisher* self, - gint file_number, - gdouble completed_fraction) -{ - SpitPublishingProgressCallback _tmp0_; - void* _tmp0__target; - SpitPublishingProgressCallback _tmp1_; - void* _tmp1__target; -#line 888 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_return_if_fail (PUBLISHING_PIWIGO_IS_PIWIGO_PUBLISHER (self)); -#line 889 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - if (!spit_publishing_publisher_is_running (G_TYPE_CHECK_INSTANCE_CAST (self, SPIT_PUBLISHING_TYPE_PUBLISHER, SpitPublishingPublisher))) { -#line 890 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - return; -#line 6716 "PiwigoPublishing.c" - } -#line 892 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_debug ("PiwigoPublishing.vala:892: EVENT: uploader reports upload %.2f percent" \ -" complete.", 100.0 * completed_fraction); -#line 894 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp0_ = self->priv->progress_reporter; -#line 894 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp0__target = self->priv->progress_reporter_target; -#line 894 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _vala_assert (_tmp0_ != NULL, "progress_reporter != null"); -#line 896 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp1_ = self->priv->progress_reporter; -#line 896 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp1__target = self->priv->progress_reporter_target; -#line 896 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp1_ (file_number, completed_fraction, _tmp1__target); -#line 6732 "PiwigoPublishing.c" -} - - -/** - * Action to display the success pane in the publishing dialog. - */ -static void -publishing_piwigo_piwigo_publisher_do_show_success_pane (PublishingPiwigoPiwigoPublisher* self) -{ - SpitPublishingPluginHost* _tmp0_; - SpitPublishingPluginHost* _tmp1_; -#line 902 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_return_if_fail (PUBLISHING_PIWIGO_IS_PIWIGO_PUBLISHER (self)); -#line 903 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_debug ("PiwigoPublishing.vala:903: ACTION: installing success pane"); -#line 905 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp0_ = self->priv->host; -#line 905 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - spit_publishing_plugin_host_set_service_locked (_tmp0_, FALSE); -#line 906 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp1_ = self->priv->host; -#line 906 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - spit_publishing_plugin_host_install_success_pane (_tmp1_); -#line 6756 "PiwigoPublishing.c" -} - - -/** - * Helper event to handle network errors. - */ -static void -publishing_piwigo_piwigo_publisher_on_network_error (PublishingPiwigoPiwigoPublisher* self, - PublishingRESTSupportTransaction* bad_txn, - GError* err) -{ -#line 912 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_return_if_fail (PUBLISHING_PIWIGO_IS_PIWIGO_PUBLISHER (self)); -#line 912 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_return_if_fail (PUBLISHING_REST_SUPPORT_IS_TRANSACTION (bad_txn)); -#line 916 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_debug ("PiwigoPublishing.vala:916: EVENT: on_network_error"); -#line 917 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - publishing_piwigo_piwigo_publisher_do_show_error (self, err); -#line 6776 "PiwigoPublishing.c" -} - - -/** - * Action to display an error to the user. - */ -static void -publishing_piwigo_piwigo_publisher_do_show_error (PublishingPiwigoPiwigoPublisher* self, - GError* e) -{ - gchar* error_type = NULL; - gchar* _tmp0_; - const gchar* _tmp8_; - const gchar* _tmp9_; - gchar* _tmp10_; - gchar* _tmp11_; -#line 923 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_return_if_fail (PUBLISHING_PIWIGO_IS_PIWIGO_PUBLISHER (self)); -#line 924 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_debug ("PiwigoPublishing.vala:924: ACTION: do_show_error"); -#line 925 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp0_ = g_strdup ("UNKNOWN"); -#line 925 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - error_type = _tmp0_; -#line 926 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - if (g_error_matches (e, SPIT_PUBLISHING_PUBLISHING_ERROR, SPIT_PUBLISHING_PUBLISHING_ERROR_NO_ANSWER)) { -#line 927 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - publishing_piwigo_piwigo_publisher_do_show_authentication_pane (self, PUBLISHING_PIWIGO_AUTHENTICATION_PANE_MODE_FAILED_RETRY_URL); -#line 928 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_free0 (error_type); -#line 928 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - return; -#line 6809 "PiwigoPublishing.c" - } else { -#line 929 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - if (g_error_matches (e, SPIT_PUBLISHING_PUBLISHING_ERROR, SPIT_PUBLISHING_PUBLISHING_ERROR_COMMUNICATION_FAILED)) { -#line 6813 "PiwigoPublishing.c" - gchar* _tmp1_; -#line 930 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp1_ = g_strdup ("COMMUNICATION_FAILED"); -#line 930 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_free0 (error_type); -#line 930 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - error_type = _tmp1_; -#line 6821 "PiwigoPublishing.c" - } else { -#line 931 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - if (g_error_matches (e, SPIT_PUBLISHING_PUBLISHING_ERROR, SPIT_PUBLISHING_PUBLISHING_ERROR_PROTOCOL_ERROR)) { -#line 6825 "PiwigoPublishing.c" - gchar* _tmp2_; -#line 932 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp2_ = g_strdup ("PROTOCOL_ERROR"); -#line 932 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_free0 (error_type); -#line 932 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - error_type = _tmp2_; -#line 6833 "PiwigoPublishing.c" - } else { -#line 933 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - if (g_error_matches (e, SPIT_PUBLISHING_PUBLISHING_ERROR, SPIT_PUBLISHING_PUBLISHING_ERROR_SERVICE_ERROR)) { -#line 6837 "PiwigoPublishing.c" - gchar* _tmp3_; -#line 934 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp3_ = g_strdup ("SERVICE_ERROR"); -#line 934 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_free0 (error_type); -#line 934 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - error_type = _tmp3_; -#line 6845 "PiwigoPublishing.c" - } else { -#line 935 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - if (g_error_matches (e, SPIT_PUBLISHING_PUBLISHING_ERROR, SPIT_PUBLISHING_PUBLISHING_ERROR_MALFORMED_RESPONSE)) { -#line 6849 "PiwigoPublishing.c" - gchar* _tmp4_; -#line 936 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp4_ = g_strdup ("MALFORMED_RESPONSE"); -#line 936 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_free0 (error_type); -#line 936 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - error_type = _tmp4_; -#line 6857 "PiwigoPublishing.c" - } else { -#line 937 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - if (g_error_matches (e, SPIT_PUBLISHING_PUBLISHING_ERROR, SPIT_PUBLISHING_PUBLISHING_ERROR_LOCAL_FILE_ERROR)) { -#line 6861 "PiwigoPublishing.c" - gchar* _tmp5_; -#line 938 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp5_ = g_strdup ("LOCAL_FILE_ERROR"); -#line 938 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_free0 (error_type); -#line 938 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - error_type = _tmp5_; -#line 6869 "PiwigoPublishing.c" - } else { -#line 939 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - if (g_error_matches (e, SPIT_PUBLISHING_PUBLISHING_ERROR, SPIT_PUBLISHING_PUBLISHING_ERROR_EXPIRED_SESSION)) { -#line 6873 "PiwigoPublishing.c" - gchar* _tmp6_; -#line 940 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp6_ = g_strdup ("EXPIRED_SESSION"); -#line 940 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_free0 (error_type); -#line 940 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - error_type = _tmp6_; -#line 6881 "PiwigoPublishing.c" - } else { -#line 941 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - if (g_error_matches (e, SPIT_PUBLISHING_PUBLISHING_ERROR, SPIT_PUBLISHING_PUBLISHING_ERROR_SSL_FAILED)) { -#line 6885 "PiwigoPublishing.c" - gchar* _tmp7_; -#line 942 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp7_ = g_strdup ("SECURE_CONNECTION_FAILED"); -#line 942 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_free0 (error_type); -#line 942 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - error_type = _tmp7_; -#line 6893 "PiwigoPublishing.c" - } - } - } - } - } - } - } - } -#line 945 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp8_ = error_type; -#line 945 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp9_ = e->message; -#line 945 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp10_ = g_strdup_printf ("Unhandled error: type=%s; message='%s'", _tmp8_, _tmp9_); -#line 945 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp11_ = _tmp10_; -#line 945 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_debug ("PiwigoPublishing.vala:945: %s", _tmp11_); -#line 945 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_free0 (_tmp11_); -#line 946 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - publishing_piwigo_piwigo_publisher_do_show_error_message (self, _ ("An error message occurred when publishing to Piwigo. Please try again.")); -#line 923 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_free0 (error_type); -#line 6918 "PiwigoPublishing.c" -} - - -/** - * Action to display an error message to the user. - */ -static void -publishing_piwigo_piwigo_publisher_do_show_error_message (PublishingPiwigoPiwigoPublisher* self, - const gchar* message) -{ - SpitPublishingPluginHost* _tmp0_; -#line 952 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_return_if_fail (PUBLISHING_PIWIGO_IS_PIWIGO_PUBLISHER (self)); -#line 952 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_return_if_fail (message != NULL); -#line 953 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_debug ("PiwigoPublishing.vala:953: ACTION: do_show_error_message"); -#line 954 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp0_ = self->priv->host; -#line 954 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - spit_publishing_plugin_host_install_static_message_pane (_tmp0_, message, SPIT_PUBLISHING_PLUGIN_HOST_BUTTON_MODE_CLOSE); -#line 6940 "PiwigoPublishing.c" -} - - -/** - * Retrieves session ID from a REST Transaction received - * - * This helper method extracts the pwg_id out of the Set-Cookie header if - * present in the received transaction. - * - * @param txn the received transaction - * @return the value of pwg_id if present or null if not found - */ -static SoupCookie* -_vala_SoupCookie_copy (SoupCookie* self) -{ -#line 972 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - return g_boxed_copy (soup_cookie_get_type (), self); -#line 6958 "PiwigoPublishing.c" -} - - -static gpointer -__vala_SoupCookie_copy0 (gpointer self) -{ -#line 972 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - return self ? _vala_SoupCookie_copy (self) : NULL; -#line 6967 "PiwigoPublishing.c" -} - - -static void -_vala_SoupCookie_free (SoupCookie* self) -{ -#line 972 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_boxed_free (soup_cookie_get_type (), self); -#line 6976 "PiwigoPublishing.c" -} - - -static void -__vala_SoupCookie_free0_ (gpointer var) -{ -#line 972 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - (var == NULL) ? NULL : (var = (_vala_SoupCookie_free (var), NULL)); -#line 6985 "PiwigoPublishing.c" -} - - -static inline void -_g_slist_free___vala_SoupCookie_free0_ (GSList* self) -{ -#line 972 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_slist_free_full (self, (GDestroyNotify) __vala_SoupCookie_free0_); -#line 6994 "PiwigoPublishing.c" -} - - -static gchar* -publishing_piwigo_piwigo_publisher_get_pwg_id_from_transaction (PublishingPiwigoPiwigoPublisher* self, - PublishingRESTSupportTransaction* txn) -{ - gchar* result = NULL; - gchar* pwg_id = NULL; - SoupMessage* _tmp0_; - SoupMessage* _tmp1_; - GSList* _tmp2_; - GSList* _tmp3_; -#line 969 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_return_val_if_fail (PUBLISHING_PIWIGO_IS_PIWIGO_PUBLISHER (self), NULL); -#line 969 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_return_val_if_fail (PUBLISHING_REST_SUPPORT_IS_TRANSACTION (txn), NULL); -#line 970 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - pwg_id = NULL; -#line 972 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp0_ = publishing_rest_support_transaction_get_message (txn); -#line 972 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp1_ = _tmp0_; -#line 972 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp2_ = soup_cookies_from_response (_tmp1_); -#line 972 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp3_ = _tmp2_; -#line 972 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_object_unref0 (_tmp1_); -#line 7024 "PiwigoPublishing.c" - { - GSList* cookie_collection = NULL; - GSList* cookie_it = NULL; -#line 972 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - cookie_collection = _tmp3_; -#line 972 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - for (cookie_it = cookie_collection; cookie_it != NULL; cookie_it = cookie_it->next) { -#line 7032 "PiwigoPublishing.c" - SoupCookie* _tmp4_; - SoupCookie* cookie = NULL; -#line 972 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp4_ = __vala_SoupCookie_copy0 ((SoupCookie*) cookie_it->data); -#line 972 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - cookie = _tmp4_; -#line 7039 "PiwigoPublishing.c" - { - SoupCookie* _tmp5_; - const gchar* _tmp6_; -#line 973 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp5_ = cookie; -#line 973 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp6_ = soup_cookie_get_name (_tmp5_); -#line 973 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - if (g_strcmp0 (_tmp6_, "pwg_id") == 0) { -#line 7049 "PiwigoPublishing.c" - SoupCookie* _tmp7_; - const gchar* _tmp8_; - gchar* _tmp9_; - const gchar* _tmp10_; -#line 976 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp7_ = cookie; -#line 976 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp8_ = soup_cookie_get_value (_tmp7_); -#line 976 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp9_ = g_strdup (_tmp8_); -#line 976 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_free0 (pwg_id); -#line 976 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - pwg_id = _tmp9_; -#line 977 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp10_ = pwg_id; -#line 977 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_debug ("PiwigoPublishing.vala:977: Found pwg_id %s", _tmp10_); -#line 7068 "PiwigoPublishing.c" - } -#line 972 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - __vala_SoupCookie_free0 (cookie); -#line 7072 "PiwigoPublishing.c" - } - } -#line 972 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - __g_slist_free___vala_SoupCookie_free0_0 (cookie_collection); -#line 7077 "PiwigoPublishing.c" - } -#line 981 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - result = pwg_id; -#line 981 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - return result; -#line 7083 "PiwigoPublishing.c" -} - - -static void -publishing_piwigo_piwigo_publisher_class_init (PublishingPiwigoPiwigoPublisherClass * klass) -{ -#line 125 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - publishing_piwigo_piwigo_publisher_parent_class = g_type_class_peek_parent (klass); -#line 125 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_type_class_add_private (klass, sizeof (PublishingPiwigoPiwigoPublisherPrivate)); -#line 125 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - G_OBJECT_CLASS (klass)->finalize = publishing_piwigo_piwigo_publisher_finalize; -#line 7096 "PiwigoPublishing.c" -} - - -static void -publishing_piwigo_piwigo_publisher_spit_publishing_publisher_interface_init (SpitPublishingPublisherIface * iface) -{ -#line 125 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - publishing_piwigo_piwigo_publisher_spit_publishing_publisher_parent_iface = g_type_interface_peek_parent (iface); -#line 125 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - iface->get_service = (SpitPublishingService* (*) (SpitPublishingPublisher *)) publishing_piwigo_piwigo_publisher_real_get_service; -#line 125 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - iface->is_running = (gboolean (*) (SpitPublishingPublisher *)) publishing_piwigo_piwigo_publisher_real_is_running; -#line 125 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - iface->start = (void (*) (SpitPublishingPublisher *)) publishing_piwigo_piwigo_publisher_real_start; -#line 125 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - iface->stop = (void (*) (SpitPublishingPublisher *)) publishing_piwigo_piwigo_publisher_real_stop; -#line 7113 "PiwigoPublishing.c" -} - - -static void -publishing_piwigo_piwigo_publisher_instance_init (PublishingPiwigoPiwigoPublisher * self) -{ -#line 125 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - self->priv = PUBLISHING_PIWIGO_PIWIGO_PUBLISHER_GET_PRIVATE (self); -#line 128 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - self->priv->running = FALSE; -#line 129 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - self->priv->strip_metadata = FALSE; -#line 131 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - self->priv->categories = NULL; -#line 131 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - self->priv->categories_length1 = 0; -#line 131 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - self->priv->_categories_size_ = self->priv->categories_length1; -#line 132 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - self->priv->parameters = NULL; -#line 133 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - self->priv->progress_reporter = NULL; -#line 133 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - self->priv->progress_reporter_target = self; -#line 133 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - self->priv->progress_reporter_target_destroy_notify = NULL; -#line 7140 "PiwigoPublishing.c" -} - - -static void -publishing_piwigo_piwigo_publisher_finalize (GObject * obj) -{ - PublishingPiwigoPiwigoPublisher * self; -#line 125 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, PUBLISHING_PIWIGO_TYPE_PIWIGO_PUBLISHER, PublishingPiwigoPiwigoPublisher); -#line 126 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_object_unref0 (self->priv->service); -#line 127 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_object_unref0 (self->priv->host); -#line 130 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _publishing_rest_support_session_unref0 (self->priv->session); -#line 131 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - self->priv->categories = (_vala_array_free (self->priv->categories, self->priv->categories_length1, (GDestroyNotify) publishing_piwigo_category_unref), NULL); -#line 132 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _publishing_piwigo_publishing_parameters_unref0 (self->priv->parameters); -#line 133 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - (self->priv->progress_reporter_target_destroy_notify == NULL) ? NULL : (self->priv->progress_reporter_target_destroy_notify (self->priv->progress_reporter_target), NULL); -#line 133 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - self->priv->progress_reporter = NULL; -#line 133 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - self->priv->progress_reporter_target = NULL; -#line 133 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - self->priv->progress_reporter_target_destroy_notify = NULL; -#line 125 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - G_OBJECT_CLASS (publishing_piwigo_piwigo_publisher_parent_class)->finalize (obj); -#line 7170 "PiwigoPublishing.c" -} - - -GType -publishing_piwigo_piwigo_publisher_get_type (void) -{ - static volatile gsize publishing_piwigo_piwigo_publisher_type_id__volatile = 0; - if (g_once_init_enter (&publishing_piwigo_piwigo_publisher_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (PublishingPiwigoPiwigoPublisherClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) publishing_piwigo_piwigo_publisher_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PublishingPiwigoPiwigoPublisher), 0, (GInstanceInitFunc) publishing_piwigo_piwigo_publisher_instance_init, NULL }; - static const GInterfaceInfo spit_publishing_publisher_info = { (GInterfaceInitFunc) publishing_piwigo_piwigo_publisher_spit_publishing_publisher_interface_init, (GInterfaceFinalizeFunc) NULL, NULL}; - GType publishing_piwigo_piwigo_publisher_type_id; - publishing_piwigo_piwigo_publisher_type_id = g_type_register_static (G_TYPE_OBJECT, "PublishingPiwigoPiwigoPublisher", &g_define_type_info, 0); - g_type_add_interface_static (publishing_piwigo_piwigo_publisher_type_id, SPIT_PUBLISHING_TYPE_PUBLISHER, &spit_publishing_publisher_info); - g_once_init_leave (&publishing_piwigo_piwigo_publisher_type_id__volatile, publishing_piwigo_piwigo_publisher_type_id); - } - return publishing_piwigo_piwigo_publisher_type_id__volatile; -} - - -PublishingPiwigoUploader* -publishing_piwigo_uploader_construct (GType object_type, - PublishingPiwigoSession* session, - SpitPublishingPublishable** publishables, - int publishables_length1, - PublishingPiwigoPublishingParameters* parameters) -{ - PublishingPiwigoUploader* self = NULL; - PublishingPiwigoPublishingParameters* _tmp0_; -#line 990 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_return_val_if_fail (PUBLISHING_PIWIGO_IS_SESSION (session), NULL); -#line 990 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_return_val_if_fail (PUBLISHING_PIWIGO_IS_PUBLISHING_PARAMETERS (parameters), NULL); -#line 992 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - self = (PublishingPiwigoUploader*) publishing_rest_support_batch_uploader_construct (object_type, G_TYPE_CHECK_INSTANCE_CAST (session, PUBLISHING_REST_SUPPORT_TYPE_SESSION, PublishingRESTSupportSession), publishables, publishables_length1); -#line 994 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp0_ = _publishing_piwigo_publishing_parameters_ref0 (parameters); -#line 994 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _publishing_piwigo_publishing_parameters_unref0 (self->priv->parameters); -#line 994 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - self->priv->parameters = _tmp0_; -#line 990 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - return self; -#line 7213 "PiwigoPublishing.c" -} - - -PublishingPiwigoUploader* -publishing_piwigo_uploader_new (PublishingPiwigoSession* session, - SpitPublishingPublishable** publishables, - int publishables_length1, - PublishingPiwigoPublishingParameters* parameters) -{ -#line 990 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - return publishing_piwigo_uploader_construct (PUBLISHING_PIWIGO_TYPE_UPLOADER, session, publishables, publishables_length1, parameters); -#line 7225 "PiwigoPublishing.c" -} - - -static PublishingRESTSupportTransaction* -publishing_piwigo_uploader_real_create_transaction (PublishingRESTSupportBatchUploader* base, - SpitPublishingPublishable* publishable) -{ - PublishingPiwigoUploader * self; - PublishingRESTSupportTransaction* result = NULL; - PublishingRESTSupportSession* _tmp0_; - PublishingPiwigoSession* _tmp1_; - PublishingPiwigoPublishingParameters* _tmp2_; - PublishingPiwigoImagesAddTransaction* _tmp3_; - PublishingRESTSupportTransaction* _tmp4_; -#line 997 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_PIWIGO_TYPE_UPLOADER, PublishingPiwigoUploader); -#line 997 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_return_val_if_fail (SPIT_PUBLISHING_IS_PUBLISHABLE (publishable), NULL); -#line 999 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp0_ = publishing_rest_support_batch_uploader_get_session (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_BATCH_UPLOADER, PublishingRESTSupportBatchUploader)); -#line 999 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp1_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, PUBLISHING_PIWIGO_TYPE_SESSION, PublishingPiwigoSession); -#line 999 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp2_ = self->priv->parameters; -#line 999 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp3_ = publishing_piwigo_images_add_transaction_new (_tmp1_, _tmp2_, publishable); -#line 999 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp4_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction); -#line 999 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _publishing_rest_support_session_unref0 (_tmp1_); -#line 999 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - result = _tmp4_; -#line 999 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - return result; -#line 7260 "PiwigoPublishing.c" -} - - -static void -publishing_piwigo_uploader_class_init (PublishingPiwigoUploaderClass * klass) -{ -#line 987 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - publishing_piwigo_uploader_parent_class = g_type_class_peek_parent (klass); -#line 987 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - ((PublishingRESTSupportBatchUploaderClass *) klass)->finalize = publishing_piwigo_uploader_finalize; -#line 987 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_type_class_add_private (klass, sizeof (PublishingPiwigoUploaderPrivate)); -#line 987 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - ((PublishingRESTSupportBatchUploaderClass *) klass)->create_transaction = (PublishingRESTSupportTransaction* (*) (PublishingRESTSupportBatchUploader *, SpitPublishingPublishable*)) publishing_piwigo_uploader_real_create_transaction; -#line 7275 "PiwigoPublishing.c" -} - - -static void -publishing_piwigo_uploader_instance_init (PublishingPiwigoUploader * self) -{ -#line 987 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - self->priv = PUBLISHING_PIWIGO_UPLOADER_GET_PRIVATE (self); -#line 7284 "PiwigoPublishing.c" -} - - -static void -publishing_piwigo_uploader_finalize (PublishingRESTSupportBatchUploader * obj) -{ - PublishingPiwigoUploader * self; -#line 987 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, PUBLISHING_PIWIGO_TYPE_UPLOADER, PublishingPiwigoUploader); -#line 988 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _publishing_piwigo_publishing_parameters_unref0 (self->priv->parameters); -#line 987 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - PUBLISHING_REST_SUPPORT_BATCH_UPLOADER_CLASS (publishing_piwigo_uploader_parent_class)->finalize (obj); -#line 7298 "PiwigoPublishing.c" -} - - -GType -publishing_piwigo_uploader_get_type (void) -{ - static volatile gsize publishing_piwigo_uploader_type_id__volatile = 0; - if (g_once_init_enter (&publishing_piwigo_uploader_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (PublishingPiwigoUploaderClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) publishing_piwigo_uploader_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PublishingPiwigoUploader), 0, (GInstanceInitFunc) publishing_piwigo_uploader_instance_init, NULL }; - GType publishing_piwigo_uploader_type_id; - publishing_piwigo_uploader_type_id = g_type_register_static (PUBLISHING_REST_SUPPORT_TYPE_BATCH_UPLOADER, "PublishingPiwigoUploader", &g_define_type_info, 0); - g_once_init_leave (&publishing_piwigo_uploader_type_id__volatile, publishing_piwigo_uploader_type_id); - } - return publishing_piwigo_uploader_type_id__volatile; -} - - -PublishingPiwigoSSLErrorPane* -publishing_piwigo_ssl_error_pane_construct (GType object_type, - PublishingPiwigoSessionLoginTransaction* transaction, - const gchar* host) -{ - PublishingPiwigoSSLErrorPane * self = NULL; - GTlsCertificate* cert = NULL; - gchar* text = NULL; - GTlsCertificate* _tmp0_ = NULL; - gchar* _tmp1_; -#line 1013 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_return_val_if_fail (PUBLISHING_PIWIGO_IS_SESSION_LOGIN_TRANSACTION (transaction), NULL); -#line 1013 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_return_val_if_fail (host != NULL, NULL); -#line 1016 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp1_ = publishing_rest_support_transaction_detailed_error_from_tls_flags (G_TYPE_CHECK_INSTANCE_CAST (transaction, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), &_tmp0_); -#line 1016 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_object_unref0 (cert); -#line 1016 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - cert = _tmp0_; -#line 1016 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - text = _tmp1_; -#line 1017 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - self = (PublishingPiwigoSSLErrorPane*) g_object_new (object_type, "resource-path", PLUGIN_RESOURCE_PATH "/piwigo_ssl_failure_pane.ui", "default-id", "default", "cert", cert, "error-text", text, "host", host, NULL); -#line 1013 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_free0 (text); -#line 1013 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_object_unref0 (cert); -#line 1013 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - return self; -#line 7346 "PiwigoPublishing.c" -} - - -PublishingPiwigoSSLErrorPane* -publishing_piwigo_ssl_error_pane_new (PublishingPiwigoSessionLoginTransaction* transaction, - const gchar* host) -{ -#line 1013 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - return publishing_piwigo_ssl_error_pane_construct (PUBLISHING_PIWIGO_TYPE_SSL_ERROR_PANE, transaction, host); -#line 7356 "PiwigoPublishing.c" -} - - -static void -__lambda5_ (PublishingPiwigoSSLErrorPane* self) -{ - GcrSimpleCertificate* simple_cert = NULL; - GTlsCertificate* _tmp0_; - GByteArray* _tmp1_; - GByteArray* _tmp2_; - GByteArray* _tmp3_; - guint8* _tmp4_; - gint _tmp4__length1; - GcrSimpleCertificate* _tmp5_; - GcrSimpleCertificate* _tmp6_; - GcrCertificateWidget* widget = NULL; - GcrSimpleCertificate* _tmp7_; - GcrCertificateWidget* _tmp8_; - gboolean use_header = FALSE; - GtkSettings* _tmp9_; - GtkDialogFlags flags = 0; - gboolean _tmp10_; - GtkDialog* dialog = NULL; - gchar* _tmp12_; - gchar* _tmp13_; - gchar* _tmp14_; - gchar* _tmp15_; - gchar* _tmp16_; - GtkDialogFlags _tmp17_; - GtkDialog* _tmp18_; - GtkDialog* _tmp19_; - GtkBox* _tmp20_; - GcrCertificateWidget* _tmp21_; -#line 1038 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp0_ = self->priv->_cert; -#line 1038 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_object_get (_tmp0_, "certificate", &_tmp1_, NULL); -#line 1038 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp2_ = _tmp1_; -#line 1038 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp3_ = _tmp2_; -#line 1038 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp4_ = _tmp3_->data; -#line 1038 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp4__length1 = (gint) _tmp3_->len; -#line 1038 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp5_ = (GcrSimpleCertificate*) gcr_simple_certificate_new (_tmp4_, _tmp4__length1); -#line 1038 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp6_ = _tmp5_; -#line 1038 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_byte_array_unref0 (_tmp3_); -#line 1038 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - simple_cert = _tmp6_; -#line 1039 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp7_ = simple_cert; -#line 1039 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp8_ = gcr_certificate_widget_new (G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, gcr_certificate_get_type (), GcrCertificate)); -#line 1039 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_object_ref_sink (_tmp8_); -#line 1039 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - widget = _tmp8_; -#line 1040 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - use_header = TRUE; -#line 1041 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp9_ = gtk_settings_get_default (); -#line 1041 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_object_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, G_TYPE_OBJECT, GObject), "gtk-dialogs-use-header", &use_header, NULL); -#line 1042 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - flags = (GtkDialogFlags) 0; -#line 1043 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp10_ = use_header; -#line 1043 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - if (_tmp10_) { -#line 7430 "PiwigoPublishing.c" - GtkDialogFlags _tmp11_; -#line 1044 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp11_ = flags; -#line 1044 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - flags = _tmp11_ | GTK_DIALOG_USE_HEADER_BAR; -#line 7436 "PiwigoPublishing.c" - } -#line 1047 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp12_ = publishing_piwigo_ssl_error_pane_get_host (self); -#line 1047 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp13_ = _tmp12_; -#line 1047 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp14_ = _tmp13_; -#line 1047 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp15_ = g_strdup_printf (_ ("Certificate of %s"), _tmp14_); -#line 1047 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp16_ = _tmp15_; -#line 1047 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp17_ = flags; -#line 1047 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp18_ = (GtkDialog*) gtk_dialog_new_with_buttons (_tmp16_, NULL, _tmp17_, _ ("_OK"), GTK_RESPONSE_OK, NULL); -#line 1047 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_object_ref_sink (_tmp18_); -#line 1047 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp19_ = _tmp18_; -#line 1047 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_free0 (_tmp16_); -#line 1047 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_free0 (_tmp14_); -#line 1047 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - dialog = _tmp19_; -#line 1052 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp20_ = gtk_dialog_get_content_area (dialog); -#line 1052 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp21_ = widget; -#line 1052 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - gtk_container_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp20_, gtk_container_get_type (), GtkContainer), G_TYPE_CHECK_INSTANCE_CAST (_tmp21_, gtk_widget_get_type (), GtkWidget)); -#line 1053 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - gtk_dialog_set_default_response (dialog, (gint) GTK_RESPONSE_OK); -#line 1054 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - gtk_window_set_default_size (G_TYPE_CHECK_INSTANCE_CAST (dialog, gtk_window_get_type (), GtkWindow), 640, -1); -#line 1055 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - gtk_widget_show_all (G_TYPE_CHECK_INSTANCE_CAST (dialog, gtk_widget_get_type (), GtkWidget)); -#line 1056 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - gtk_dialog_run (dialog); -#line 1057 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - gtk_widget_destroy (G_TYPE_CHECK_INSTANCE_CAST (dialog, gtk_widget_get_type (), GtkWidget)); -#line 1037 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_object_unref0 (dialog); -#line 1037 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_object_unref0 (widget); -#line 1037 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_object_unref0 (simple_cert); -#line 7484 "PiwigoPublishing.c" -} - - -static void -___lambda5__gtk_button_clicked (GtkButton* _sender, - gpointer self) -{ -#line 1037 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - __lambda5_ ((PublishingPiwigoSSLErrorPane*) self); -#line 7494 "PiwigoPublishing.c" -} - - -static void -__lambda6_ (PublishingPiwigoSSLErrorPane* self) -{ -#line 1061 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_signal_emit (self, publishing_piwigo_ssl_error_pane_signals[PUBLISHING_PIWIGO_SSL_ERROR_PANE_PROCEED_SIGNAL], 0); -#line 7503 "PiwigoPublishing.c" -} - - -static void -___lambda6__gtk_button_clicked (GtkButton* _sender, - gpointer self) -{ -#line 1061 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - __lambda6_ ((PublishingPiwigoSSLErrorPane*) self); -#line 7513 "PiwigoPublishing.c" -} - - -static void -publishing_piwigo_ssl_error_pane_real_constructed (GObject* base) -{ - PublishingPiwigoSSLErrorPane * self; - GtkLabel* label = NULL; - GtkBuilder* _tmp0_; - GtkBuilder* _tmp1_; - GObject* _tmp2_; - GtkLabel* _tmp3_; - GtkLabel* _tmp4_; - GtkLabel* _tmp5_; - gchar* _tmp6_; - gchar* _tmp7_; - gchar* _tmp8_; - gchar* _tmp9_; - gchar* _tmp10_; - GtkLabel* _tmp11_; - GtkBuilder* _tmp12_; - GtkBuilder* _tmp13_; - GObject* _tmp14_; - GtkLabel* _tmp15_; - GtkLabel* _tmp16_; - gchar* _tmp17_; - gchar* _tmp18_; - gchar* _tmp19_; - GtkButton* info = NULL; - GtkBuilder* _tmp20_; - GtkBuilder* _tmp21_; - GObject* _tmp22_; - GtkButton* _tmp23_; - GtkButton* _tmp24_; - GtkButton* proceed = NULL; - GtkBuilder* _tmp25_; - GtkBuilder* _tmp26_; - GObject* _tmp27_; - GtkButton* _tmp28_; - GtkButton* _tmp29_; -#line 1025 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_PIWIGO_TYPE_SSL_ERROR_PANE, PublishingPiwigoSSLErrorPane); -#line 1026 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - G_OBJECT_CLASS (publishing_piwigo_ssl_error_pane_parent_class)->constructed (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, SHOTWELL_PLUGINS_COMMON_TYPE_BUILDER_PANE, ShotwellPluginsCommonBuilderPane), G_TYPE_OBJECT, GObject)); -#line 1028 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp0_ = shotwell_plugins_common_builder_pane_get_builder (G_TYPE_CHECK_INSTANCE_CAST (self, SHOTWELL_PLUGINS_COMMON_TYPE_BUILDER_PANE, ShotwellPluginsCommonBuilderPane)); -#line 1028 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp1_ = _tmp0_; -#line 1028 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp2_ = gtk_builder_get_object (_tmp1_, "main_text"); -#line 1028 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp3_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp2_, gtk_label_get_type ()) ? ((GtkLabel*) _tmp2_) : NULL); -#line 1028 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp4_ = _tmp3_; -#line 1028 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_object_unref0 (_tmp1_); -#line 1028 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - label = _tmp4_; -#line 1030 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp5_ = label; -#line 1030 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp6_ = publishing_piwigo_ssl_error_pane_get_host (self); -#line 1030 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp7_ = _tmp6_; -#line 1030 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp8_ = _tmp7_; -#line 1030 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp9_ = g_strdup_printf (_ ("This does not look like the real %s. Attackers might be trying " \ -"to steal or alter information going to or from this site (for example," \ -" private messages, credit card information, or passwords)."), _tmp8_); -#line 1030 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp10_ = _tmp9_; -#line 1030 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - gtk_label_set_text (_tmp5_, _tmp10_); -#line 1030 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_free0 (_tmp10_); -#line 1030 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_free0 (_tmp8_); -#line 1031 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp11_ = label; -#line 1031 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - gtk_label_set_use_markup (_tmp11_, TRUE); -#line 1033 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp12_ = shotwell_plugins_common_builder_pane_get_builder (G_TYPE_CHECK_INSTANCE_CAST (self, SHOTWELL_PLUGINS_COMMON_TYPE_BUILDER_PANE, ShotwellPluginsCommonBuilderPane)); -#line 1033 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp13_ = _tmp12_; -#line 1033 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp14_ = gtk_builder_get_object (_tmp13_, "ssl_errors"); -#line 1033 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp15_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp14_, gtk_label_get_type ()) ? ((GtkLabel*) _tmp14_) : NULL); -#line 1033 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_object_unref0 (label); -#line 1033 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - label = _tmp15_; -#line 1033 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_object_unref0 (_tmp13_); -#line 1034 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp16_ = label; -#line 1034 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp17_ = publishing_piwigo_ssl_error_pane_get_error_text (self); -#line 1034 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp18_ = _tmp17_; -#line 1034 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp19_ = _tmp18_; -#line 1034 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - gtk_label_set_text (_tmp16_, _tmp19_); -#line 1034 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_free0 (_tmp19_); -#line 1036 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp20_ = shotwell_plugins_common_builder_pane_get_builder (G_TYPE_CHECK_INSTANCE_CAST (self, SHOTWELL_PLUGINS_COMMON_TYPE_BUILDER_PANE, ShotwellPluginsCommonBuilderPane)); -#line 1036 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp21_ = _tmp20_; -#line 1036 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp22_ = gtk_builder_get_object (_tmp21_, "default"); -#line 1036 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp23_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp22_, gtk_button_get_type ()) ? ((GtkButton*) _tmp22_) : NULL); -#line 1036 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp24_ = _tmp23_; -#line 1036 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_object_unref0 (_tmp21_); -#line 1036 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - info = _tmp24_; -#line 1037 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_signal_connect_object (info, "clicked", (GCallback) ___lambda5__gtk_button_clicked, self, 0); -#line 1060 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp25_ = shotwell_plugins_common_builder_pane_get_builder (G_TYPE_CHECK_INSTANCE_CAST (self, SHOTWELL_PLUGINS_COMMON_TYPE_BUILDER_PANE, ShotwellPluginsCommonBuilderPane)); -#line 1060 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp26_ = _tmp25_; -#line 1060 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp27_ = gtk_builder_get_object (_tmp26_, "proceed_button"); -#line 1060 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp28_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp27_, gtk_button_get_type ()) ? ((GtkButton*) _tmp27_) : NULL); -#line 1060 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp29_ = _tmp28_; -#line 1060 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_object_unref0 (_tmp26_); -#line 1060 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - proceed = _tmp29_; -#line 1061 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_signal_connect_object (proceed, "clicked", (GCallback) ___lambda6__gtk_button_clicked, self, 0); -#line 1025 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_object_unref0 (proceed); -#line 1025 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_object_unref0 (info); -#line 1025 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_object_unref0 (label); -#line 7658 "PiwigoPublishing.c" -} - - -gchar* -publishing_piwigo_ssl_error_pane_get_host (PublishingPiwigoSSLErrorPane* self) -{ - gchar* result; - const gchar* _tmp0_; - gchar* _tmp1_; -#line 1009 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_return_val_if_fail (PUBLISHING_PIWIGO_IS_SSL_ERROR_PANE (self), NULL); -#line 1009 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp0_ = self->priv->_host; -#line 1009 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp1_ = g_strdup (_tmp0_); -#line 1009 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - result = _tmp1_; -#line 1009 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - return result; -#line 7678 "PiwigoPublishing.c" -} - - -static void -publishing_piwigo_ssl_error_pane_set_host (PublishingPiwigoSSLErrorPane* self, - const gchar* value) -{ -#line 1009 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_return_if_fail (PUBLISHING_PIWIGO_IS_SSL_ERROR_PANE (self)); -#line 1009 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - if (g_strcmp0 (value, publishing_piwigo_ssl_error_pane_get_host (self)) != 0) { -#line 7690 "PiwigoPublishing.c" - gchar* _tmp0_; -#line 1009 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp0_ = g_strdup (value); -#line 1009 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_free0 (self->priv->_host); -#line 1009 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - self->priv->_host = _tmp0_; -#line 1009 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_object_notify_by_pspec ((GObject *) self, publishing_piwigo_ssl_error_pane_properties[PUBLISHING_PIWIGO_SSL_ERROR_PANE_HOST_PROPERTY]); -#line 7700 "PiwigoPublishing.c" - } -} - - -static GTlsCertificate* -publishing_piwigo_ssl_error_pane_get_cert (PublishingPiwigoSSLErrorPane* self) -{ - GTlsCertificate* result; - GTlsCertificate* _tmp0_; -#line 1010 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_return_val_if_fail (PUBLISHING_PIWIGO_IS_SSL_ERROR_PANE (self), NULL); -#line 1010 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp0_ = self->priv->_cert; -#line 1010 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - result = _tmp0_; -#line 1010 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - return result; -#line 7718 "PiwigoPublishing.c" -} - - -static void -publishing_piwigo_ssl_error_pane_set_cert (PublishingPiwigoSSLErrorPane* self, - GTlsCertificate* value) -{ -#line 1010 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_return_if_fail (PUBLISHING_PIWIGO_IS_SSL_ERROR_PANE (self)); -#line 1010 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - if (publishing_piwigo_ssl_error_pane_get_cert (self) != value) { -#line 7730 "PiwigoPublishing.c" - GTlsCertificate* _tmp0_; -#line 1010 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp0_ = _g_object_ref0 (value); -#line 1010 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_object_unref0 (self->priv->_cert); -#line 1010 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - self->priv->_cert = _tmp0_; -#line 1010 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_object_notify_by_pspec ((GObject *) self, publishing_piwigo_ssl_error_pane_properties[PUBLISHING_PIWIGO_SSL_ERROR_PANE_CERT_PROPERTY]); -#line 7740 "PiwigoPublishing.c" - } -} - - -gchar* -publishing_piwigo_ssl_error_pane_get_error_text (PublishingPiwigoSSLErrorPane* self) -{ - gchar* result; - const gchar* _tmp0_; - gchar* _tmp1_; -#line 1011 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_return_val_if_fail (PUBLISHING_PIWIGO_IS_SSL_ERROR_PANE (self), NULL); -#line 1011 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp0_ = self->priv->_error_text; -#line 1011 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp1_ = g_strdup (_tmp0_); -#line 1011 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - result = _tmp1_; -#line 1011 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - return result; -#line 7761 "PiwigoPublishing.c" -} - - -static void -publishing_piwigo_ssl_error_pane_set_error_text (PublishingPiwigoSSLErrorPane* self, - const gchar* value) -{ -#line 1011 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_return_if_fail (PUBLISHING_PIWIGO_IS_SSL_ERROR_PANE (self)); -#line 1011 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - if (g_strcmp0 (value, publishing_piwigo_ssl_error_pane_get_error_text (self)) != 0) { -#line 7773 "PiwigoPublishing.c" - gchar* _tmp0_; -#line 1011 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp0_ = g_strdup (value); -#line 1011 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_free0 (self->priv->_error_text); -#line 1011 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - self->priv->_error_text = _tmp0_; -#line 1011 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_object_notify_by_pspec ((GObject *) self, publishing_piwigo_ssl_error_pane_properties[PUBLISHING_PIWIGO_SSL_ERROR_PANE_ERROR_TEXT_PROPERTY]); -#line 7783 "PiwigoPublishing.c" - } -} - - -static void -publishing_piwigo_ssl_error_pane_class_init (PublishingPiwigoSSLErrorPaneClass * klass) -{ -#line 1006 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - publishing_piwigo_ssl_error_pane_parent_class = g_type_class_peek_parent (klass); -#line 1006 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_type_class_add_private (klass, sizeof (PublishingPiwigoSSLErrorPanePrivate)); -#line 1006 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - ((GObjectClass *) klass)->constructed = (void (*) (GObject *)) publishing_piwigo_ssl_error_pane_real_constructed; -#line 1006 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - G_OBJECT_CLASS (klass)->get_property = _vala_publishing_piwigo_ssl_error_pane_get_property; -#line 1006 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - G_OBJECT_CLASS (klass)->set_property = _vala_publishing_piwigo_ssl_error_pane_set_property; -#line 1006 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - G_OBJECT_CLASS (klass)->finalize = publishing_piwigo_ssl_error_pane_finalize; -#line 1006 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_object_class_install_property (G_OBJECT_CLASS (klass), PUBLISHING_PIWIGO_SSL_ERROR_PANE_HOST_PROPERTY, publishing_piwigo_ssl_error_pane_properties[PUBLISHING_PIWIGO_SSL_ERROR_PANE_HOST_PROPERTY] = g_param_spec_string ("host", "host", "host", NULL, G_PARAM_STATIC_STRINGS | G_PARAM_READABLE | G_PARAM_WRITABLE | G_PARAM_CONSTRUCT_ONLY)); -#line 1006 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_object_class_install_property (G_OBJECT_CLASS (klass), PUBLISHING_PIWIGO_SSL_ERROR_PANE_CERT_PROPERTY, publishing_piwigo_ssl_error_pane_properties[PUBLISHING_PIWIGO_SSL_ERROR_PANE_CERT_PROPERTY] = g_param_spec_object ("cert", "cert", "cert", g_tls_certificate_get_type (), G_PARAM_STATIC_STRINGS | G_PARAM_WRITABLE | G_PARAM_CONSTRUCT_ONLY)); -#line 1006 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_object_class_install_property (G_OBJECT_CLASS (klass), PUBLISHING_PIWIGO_SSL_ERROR_PANE_ERROR_TEXT_PROPERTY, publishing_piwigo_ssl_error_pane_properties[PUBLISHING_PIWIGO_SSL_ERROR_PANE_ERROR_TEXT_PROPERTY] = g_param_spec_string ("error-text", "error-text", "error-text", NULL, G_PARAM_STATIC_STRINGS | G_PARAM_READABLE | G_PARAM_WRITABLE | G_PARAM_CONSTRUCT_ONLY)); -#line 1006 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - publishing_piwigo_ssl_error_pane_signals[PUBLISHING_PIWIGO_SSL_ERROR_PANE_PROCEED_SIGNAL] = g_signal_new ("proceed", PUBLISHING_PIWIGO_TYPE_SSL_ERROR_PANE, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_marshal_VOID__VOID, G_TYPE_NONE, 0); -#line 7811 "PiwigoPublishing.c" -} - - -static void -publishing_piwigo_ssl_error_pane_instance_init (PublishingPiwigoSSLErrorPane * self) -{ -#line 1006 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - self->priv = PUBLISHING_PIWIGO_SSL_ERROR_PANE_GET_PRIVATE (self); -#line 7820 "PiwigoPublishing.c" -} - - -static void -publishing_piwigo_ssl_error_pane_finalize (GObject * obj) -{ - PublishingPiwigoSSLErrorPane * self; -#line 1006 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, PUBLISHING_PIWIGO_TYPE_SSL_ERROR_PANE, PublishingPiwigoSSLErrorPane); -#line 1009 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_free0 (self->priv->_host); -#line 1010 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_object_unref0 (self->priv->_cert); -#line 1011 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_free0 (self->priv->_error_text); -#line 1006 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - G_OBJECT_CLASS (publishing_piwigo_ssl_error_pane_parent_class)->finalize (obj); -#line 7838 "PiwigoPublishing.c" -} - - -GType -publishing_piwigo_ssl_error_pane_get_type (void) -{ - static volatile gsize publishing_piwigo_ssl_error_pane_type_id__volatile = 0; - if (g_once_init_enter (&publishing_piwigo_ssl_error_pane_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (PublishingPiwigoSSLErrorPaneClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) publishing_piwigo_ssl_error_pane_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PublishingPiwigoSSLErrorPane), 0, (GInstanceInitFunc) publishing_piwigo_ssl_error_pane_instance_init, NULL }; - GType publishing_piwigo_ssl_error_pane_type_id; - publishing_piwigo_ssl_error_pane_type_id = g_type_register_static (SHOTWELL_PLUGINS_COMMON_TYPE_BUILDER_PANE, "PublishingPiwigoSSLErrorPane", &g_define_type_info, 0); - g_once_init_leave (&publishing_piwigo_ssl_error_pane_type_id__volatile, publishing_piwigo_ssl_error_pane_type_id); - } - return publishing_piwigo_ssl_error_pane_type_id__volatile; -} - - -static void -_vala_publishing_piwigo_ssl_error_pane_get_property (GObject * object, - guint property_id, - GValue * value, - GParamSpec * pspec) -{ - PublishingPiwigoSSLErrorPane * self; - self = G_TYPE_CHECK_INSTANCE_CAST (object, PUBLISHING_PIWIGO_TYPE_SSL_ERROR_PANE, PublishingPiwigoSSLErrorPane); -#line 1006 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - switch (property_id) { -#line 1006 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - case PUBLISHING_PIWIGO_SSL_ERROR_PANE_HOST_PROPERTY: -#line 1006 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_value_take_string (value, publishing_piwigo_ssl_error_pane_get_host (self)); -#line 1006 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - break; -#line 1006 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - case PUBLISHING_PIWIGO_SSL_ERROR_PANE_CERT_PROPERTY: -#line 1006 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_value_set_object (value, publishing_piwigo_ssl_error_pane_get_cert (self)); -#line 1006 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - break; -#line 1006 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - case PUBLISHING_PIWIGO_SSL_ERROR_PANE_ERROR_TEXT_PROPERTY: -#line 1006 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_value_take_string (value, publishing_piwigo_ssl_error_pane_get_error_text (self)); -#line 1006 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - break; -#line 7884 "PiwigoPublishing.c" - default: -#line 1006 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec); -#line 1006 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - break; -#line 7890 "PiwigoPublishing.c" - } -} - - -static void -_vala_publishing_piwigo_ssl_error_pane_set_property (GObject * object, - guint property_id, - const GValue * value, - GParamSpec * pspec) -{ - PublishingPiwigoSSLErrorPane * self; - self = G_TYPE_CHECK_INSTANCE_CAST (object, PUBLISHING_PIWIGO_TYPE_SSL_ERROR_PANE, PublishingPiwigoSSLErrorPane); -#line 1006 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - switch (property_id) { -#line 1006 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - case PUBLISHING_PIWIGO_SSL_ERROR_PANE_HOST_PROPERTY: -#line 1006 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - publishing_piwigo_ssl_error_pane_set_host (self, g_value_get_string (value)); -#line 1006 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - break; -#line 1006 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - case PUBLISHING_PIWIGO_SSL_ERROR_PANE_CERT_PROPERTY: -#line 1006 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - publishing_piwigo_ssl_error_pane_set_cert (self, g_value_get_object (value)); -#line 1006 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - break; -#line 1006 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - case PUBLISHING_PIWIGO_SSL_ERROR_PANE_ERROR_TEXT_PROPERTY: -#line 1006 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - publishing_piwigo_ssl_error_pane_set_error_text (self, g_value_get_string (value)); -#line 1006 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - break; -#line 7923 "PiwigoPublishing.c" - default: -#line 1006 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec); -#line 1006 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - break; -#line 7929 "PiwigoPublishing.c" - } -} - - -GType -publishing_piwigo_authentication_pane_mode_get_type (void) -{ - static volatile gsize publishing_piwigo_authentication_pane_mode_type_id__volatile = 0; - if (g_once_init_enter (&publishing_piwigo_authentication_pane_mode_type_id__volatile)) { - static const GEnumValue values[] = {{PUBLISHING_PIWIGO_AUTHENTICATION_PANE_MODE_INTRO, "PUBLISHING_PIWIGO_AUTHENTICATION_PANE_MODE_INTRO", "intro"}, {PUBLISHING_PIWIGO_AUTHENTICATION_PANE_MODE_FAILED_RETRY_URL, "PUBLISHING_PIWIGO_AUTHENTICATION_PANE_MODE_FAILED_RETRY_URL", "failed-retry-url"}, {PUBLISHING_PIWIGO_AUTHENTICATION_PANE_MODE_FAILED_RETRY_USER, "PUBLISHING_PIWIGO_AUTHENTICATION_PANE_MODE_FAILED_RETRY_USER", "failed-retry-user"}, {0, NULL, NULL}}; - GType publishing_piwigo_authentication_pane_mode_type_id; - publishing_piwigo_authentication_pane_mode_type_id = g_enum_register_static ("PublishingPiwigoAuthenticationPaneMode", values); - g_once_init_leave (&publishing_piwigo_authentication_pane_mode_type_id__volatile, publishing_piwigo_authentication_pane_mode_type_id); - } - return publishing_piwigo_authentication_pane_mode_type_id__volatile; -} - - -PublishingPiwigoAuthenticationPane* -publishing_piwigo_authentication_pane_construct (GType object_type, - PublishingPiwigoPiwigoPublisher* publisher, - PublishingPiwigoAuthenticationPaneMode mode) -{ - PublishingPiwigoAuthenticationPane * self = NULL; -#line 1091 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_return_val_if_fail (PUBLISHING_PIWIGO_IS_PIWIGO_PUBLISHER (publisher), NULL); -#line 1092 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - self = (PublishingPiwigoAuthenticationPane*) g_object_new (object_type, "resource-path", PLUGIN_RESOURCE_PATH "/piwigo_authentication_pane.ui", "connect-signals", TRUE, "default-id", "login_button", "mode", mode, "publisher", publisher, NULL); -#line 1091 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - return self; -#line 7960 "PiwigoPublishing.c" -} - - -PublishingPiwigoAuthenticationPane* -publishing_piwigo_authentication_pane_new (PublishingPiwigoPiwigoPublisher* publisher, - PublishingPiwigoAuthenticationPaneMode mode) -{ -#line 1091 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - return publishing_piwigo_authentication_pane_construct (PUBLISHING_PIWIGO_TYPE_AUTHENTICATION_PANE, publisher, mode); -#line 7970 "PiwigoPublishing.c" -} - - -static void -_publishing_piwigo_authentication_pane_on_user_changed_gtk_editable_changed (GtkEditable* _sender, - gpointer self) -{ -#line 1142 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - publishing_piwigo_authentication_pane_on_user_changed ((PublishingPiwigoAuthenticationPane*) self); -#line 7980 "PiwigoPublishing.c" -} - - -static void -_publishing_piwigo_authentication_pane_on_url_changed_gtk_editable_changed (GtkEditable* _sender, - gpointer self) -{ -#line 1143 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - publishing_piwigo_authentication_pane_on_url_changed ((PublishingPiwigoAuthenticationPane*) self); -#line 7990 "PiwigoPublishing.c" -} - - -static void -_publishing_piwigo_authentication_pane_on_password_changed_gtk_editable_changed (GtkEditable* _sender, - gpointer self) -{ -#line 1144 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - publishing_piwigo_authentication_pane_on_password_changed ((PublishingPiwigoAuthenticationPane*) self); -#line 8000 "PiwigoPublishing.c" -} - - -static void -_publishing_piwigo_authentication_pane_on_login_button_clicked_gtk_button_clicked (GtkButton* _sender, - gpointer self) -{ -#line 1145 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - publishing_piwigo_authentication_pane_on_login_button_clicked ((PublishingPiwigoAuthenticationPane*) self); -#line 8010 "PiwigoPublishing.c" -} - - -static void -publishing_piwigo_authentication_pane_real_constructed (GObject* base) -{ - PublishingPiwigoAuthenticationPane * self; - GtkBuilder* builder = NULL; - GtkBuilder* _tmp0_; - GtkLabel* message_label = NULL; - GtkBuilder* _tmp1_; - GObject* _tmp2_; - GtkLabel* _tmp3_; - PublishingPiwigoAuthenticationPaneMode _tmp4_; - GtkBuilder* _tmp15_; - GObject* _tmp16_; - GtkEntry* _tmp17_; - gchar* persistent_url = NULL; - PublishingPiwigoPiwigoPublisher* _tmp18_; - gchar* _tmp19_; - const gchar* _tmp20_; - GtkBuilder* _tmp23_; - GObject* _tmp24_; - GtkEntry* _tmp25_; - gchar* persistent_username = NULL; - PublishingPiwigoPiwigoPublisher* _tmp26_; - gchar* _tmp27_; - const gchar* _tmp28_; - GtkBuilder* _tmp31_; - GObject* _tmp32_; - GtkEntry* _tmp33_; - gchar* persistent_password = NULL; - PublishingPiwigoPiwigoPublisher* _tmp34_; - gchar* _tmp35_; - const gchar* _tmp36_; - GtkBuilder* _tmp39_; - GObject* _tmp40_; - GtkSwitch* _tmp41_; - GtkSwitch* _tmp42_; - PublishingPiwigoPiwigoPublisher* _tmp43_; - GtkBuilder* _tmp44_; - GObject* _tmp45_; - GtkButton* _tmp46_; - GtkEntry* _tmp47_; - GtkEntry* _tmp48_; - GtkEntry* _tmp49_; - GtkButton* _tmp50_; - PublishingPiwigoPiwigoPublisher* _tmp51_; - SpitPublishingPluginHost* _tmp52_; - SpitPublishingPluginHost* _tmp53_; - GtkButton* _tmp54_; -#line 1100 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_PIWIGO_TYPE_AUTHENTICATION_PANE, PublishingPiwigoAuthenticationPane); -#line 1101 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - G_OBJECT_CLASS (publishing_piwigo_authentication_pane_parent_class)->constructed (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, SHOTWELL_PLUGINS_COMMON_TYPE_BUILDER_PANE, ShotwellPluginsCommonBuilderPane), G_TYPE_OBJECT, GObject)); -#line 1103 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp0_ = shotwell_plugins_common_builder_pane_get_builder (G_TYPE_CHECK_INSTANCE_CAST (self, SHOTWELL_PLUGINS_COMMON_TYPE_BUILDER_PANE, ShotwellPluginsCommonBuilderPane)); -#line 1103 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - builder = _tmp0_; -#line 1104 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp1_ = builder; -#line 1104 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp2_ = gtk_builder_get_object (_tmp1_, "message_label"); -#line 1104 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp3_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp2_, gtk_label_get_type ()) ? ((GtkLabel*) _tmp2_) : NULL); -#line 1104 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - message_label = _tmp3_; -#line 1105 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp4_ = self->priv->_mode; -#line 1105 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - switch (_tmp4_) { -#line 1105 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - case PUBLISHING_PIWIGO_AUTHENTICATION_PANE_MODE_INTRO: -#line 8084 "PiwigoPublishing.c" - { - GtkLabel* _tmp5_; - const gchar* _tmp6_; -#line 1107 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp5_ = message_label; -#line 1107 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp6_ = publishing_piwigo_authentication_pane_INTRO_MESSAGE; -#line 1107 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - gtk_label_set_text (_tmp5_, _tmp6_); -#line 1108 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - break; -#line 8096 "PiwigoPublishing.c" - } -#line 1105 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - case PUBLISHING_PIWIGO_AUTHENTICATION_PANE_MODE_FAILED_RETRY_URL: -#line 8100 "PiwigoPublishing.c" - { - GtkLabel* _tmp7_; - const gchar* _tmp8_; - gchar* _tmp9_; - gchar* _tmp10_; -#line 1111 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp7_ = message_label; -#line 1111 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp8_ = publishing_piwigo_authentication_pane_FAILED_RETRY_URL_MESSAGE; -#line 1111 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp9_ = g_strdup_printf ("%s\n\n%s", _ ("Invalid URL"), _tmp8_); -#line 1111 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp10_ = _tmp9_; -#line 1111 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - gtk_label_set_markup (_tmp7_, _tmp10_); -#line 1111 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_free0 (_tmp10_); -#line 1113 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - break; -#line 8120 "PiwigoPublishing.c" - } -#line 1105 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - case PUBLISHING_PIWIGO_AUTHENTICATION_PANE_MODE_FAILED_RETRY_USER: -#line 8124 "PiwigoPublishing.c" - { - GtkLabel* _tmp11_; - const gchar* _tmp12_; - gchar* _tmp13_; - gchar* _tmp14_; -#line 1116 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp11_ = message_label; -#line 1116 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp12_ = publishing_piwigo_authentication_pane_FAILED_RETRY_USER_MESSAGE; -#line 1116 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp13_ = g_strdup_printf ("%s\n\n%s", _ ("Invalid User Name or Password"), _tmp12_); -#line 1116 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp14_ = _tmp13_; -#line 1116 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - gtk_label_set_markup (_tmp11_, _tmp14_); -#line 1116 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_free0 (_tmp14_); -#line 1118 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - break; -#line 8144 "PiwigoPublishing.c" - } - default: -#line 1105 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - break; -#line 8149 "PiwigoPublishing.c" - } -#line 1121 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp15_ = builder; -#line 1121 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp16_ = gtk_builder_get_object (_tmp15_, "url_entry"); -#line 1121 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp17_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp16_, gtk_entry_get_type ()) ? ((GtkEntry*) _tmp16_) : NULL); -#line 1121 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_object_unref0 (self->priv->url_entry); -#line 1121 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - self->priv->url_entry = _tmp17_; -#line 1122 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp18_ = self->priv->_publisher; -#line 1122 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp19_ = publishing_piwigo_piwigo_publisher_get_persistent_url (_tmp18_); -#line 1122 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - persistent_url = _tmp19_; -#line 1123 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp20_ = persistent_url; -#line 1123 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - if (_tmp20_ != NULL) { -#line 8171 "PiwigoPublishing.c" - GtkEntry* _tmp21_; - const gchar* _tmp22_; -#line 1124 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp21_ = self->priv->url_entry; -#line 1124 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp22_ = persistent_url; -#line 1124 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - gtk_entry_set_text (_tmp21_, _tmp22_); -#line 8180 "PiwigoPublishing.c" - } -#line 1126 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp23_ = builder; -#line 1126 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp24_ = gtk_builder_get_object (_tmp23_, "username_entry"); -#line 1126 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp25_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp24_, gtk_entry_get_type ()) ? ((GtkEntry*) _tmp24_) : NULL); -#line 1126 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_object_unref0 (self->priv->username_entry); -#line 1126 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - self->priv->username_entry = _tmp25_; -#line 1127 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp26_ = self->priv->_publisher; -#line 1127 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp27_ = publishing_piwigo_piwigo_publisher_get_persistent_username (_tmp26_); -#line 1127 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - persistent_username = _tmp27_; -#line 1128 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp28_ = persistent_username; -#line 1128 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - if (_tmp28_ != NULL) { -#line 8202 "PiwigoPublishing.c" - GtkEntry* _tmp29_; - const gchar* _tmp30_; -#line 1129 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp29_ = self->priv->username_entry; -#line 1129 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp30_ = persistent_username; -#line 1129 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - gtk_entry_set_text (_tmp29_, _tmp30_); -#line 8211 "PiwigoPublishing.c" - } -#line 1131 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp31_ = builder; -#line 1131 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp32_ = gtk_builder_get_object (_tmp31_, "password_entry"); -#line 1131 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp33_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp32_, gtk_entry_get_type ()) ? ((GtkEntry*) _tmp32_) : NULL); -#line 1131 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_object_unref0 (self->priv->password_entry); -#line 1131 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - self->priv->password_entry = _tmp33_; -#line 1132 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp34_ = self->priv->_publisher; -#line 1132 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp35_ = publishing_piwigo_piwigo_publisher_get_persistent_password (_tmp34_); -#line 1132 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - persistent_password = _tmp35_; -#line 1133 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp36_ = persistent_password; -#line 1133 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - if (_tmp36_ != NULL) { -#line 8233 "PiwigoPublishing.c" - GtkEntry* _tmp37_; - const gchar* _tmp38_; -#line 1134 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp37_ = self->priv->password_entry; -#line 1134 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp38_ = persistent_password; -#line 1134 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - gtk_entry_set_text (_tmp37_, _tmp38_); -#line 8242 "PiwigoPublishing.c" - } -#line 1136 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp39_ = builder; -#line 1136 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp40_ = gtk_builder_get_object (_tmp39_, "remember_password_checkbutton"); -#line 1136 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp41_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp40_, gtk_switch_get_type ()) ? ((GtkSwitch*) _tmp40_) : NULL); -#line 1136 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_object_unref0 (self->priv->remember_password_checkbutton); -#line 1136 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - self->priv->remember_password_checkbutton = _tmp41_; -#line 1138 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp42_ = self->priv->remember_password_checkbutton; -#line 1138 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp43_ = self->priv->_publisher; -#line 1138 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - gtk_switch_set_active (_tmp42_, publishing_piwigo_piwigo_publisher_get_remember_password (_tmp43_)); -#line 1140 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp44_ = builder; -#line 1140 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp45_ = gtk_builder_get_object (_tmp44_, "login_button"); -#line 1140 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp46_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp45_, gtk_button_get_type ()) ? ((GtkButton*) _tmp45_) : NULL); -#line 1140 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_object_unref0 (self->priv->login_button); -#line 1140 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - self->priv->login_button = _tmp46_; -#line 1142 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp47_ = self->priv->username_entry; -#line 1142 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp47_, gtk_editable_get_type (), GtkEditable), "changed", (GCallback) _publishing_piwigo_authentication_pane_on_user_changed_gtk_editable_changed, self, 0); -#line 1143 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp48_ = self->priv->url_entry; -#line 1143 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp48_, gtk_editable_get_type (), GtkEditable), "changed", (GCallback) _publishing_piwigo_authentication_pane_on_url_changed_gtk_editable_changed, self, 0); -#line 1144 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp49_ = self->priv->password_entry; -#line 1144 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp49_, gtk_editable_get_type (), GtkEditable), "changed", (GCallback) _publishing_piwigo_authentication_pane_on_password_changed_gtk_editable_changed, self, 0); -#line 1145 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp50_ = self->priv->login_button; -#line 1145 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_signal_connect_object (_tmp50_, "clicked", (GCallback) _publishing_piwigo_authentication_pane_on_login_button_clicked_gtk_button_clicked, self, 0); -#line 1147 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp51_ = self->priv->_publisher; -#line 1147 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp52_ = publishing_piwigo_piwigo_publisher_get_host (_tmp51_); -#line 1147 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp53_ = _tmp52_; -#line 1147 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp54_ = self->priv->login_button; -#line 1147 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - spit_publishing_plugin_host_set_dialog_default_widget (_tmp53_, G_TYPE_CHECK_INSTANCE_CAST (_tmp54_, gtk_widget_get_type (), GtkWidget)); -#line 1147 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_object_unref0 (_tmp53_); -#line 1100 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_free0 (persistent_password); -#line 1100 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_free0 (persistent_username); -#line 1100 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_free0 (persistent_url); -#line 1100 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_object_unref0 (message_label); -#line 1100 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_object_unref0 (builder); -#line 8308 "PiwigoPublishing.c" -} - - -static void -publishing_piwigo_authentication_pane_on_login_button_clicked (PublishingPiwigoAuthenticationPane* self) -{ - GtkEntry* _tmp0_; - const gchar* _tmp1_; - GtkEntry* _tmp2_; - const gchar* _tmp3_; - GtkEntry* _tmp4_; - const gchar* _tmp5_; - GtkSwitch* _tmp6_; -#line 1150 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_return_if_fail (PUBLISHING_PIWIGO_IS_AUTHENTICATION_PANE (self)); -#line 1151 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp0_ = self->priv->url_entry; -#line 1151 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp1_ = gtk_entry_get_text (_tmp0_); -#line 1151 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp2_ = self->priv->username_entry; -#line 1151 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp3_ = gtk_entry_get_text (_tmp2_); -#line 1151 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp4_ = self->priv->password_entry; -#line 1151 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp5_ = gtk_entry_get_text (_tmp4_); -#line 1151 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp6_ = self->priv->remember_password_checkbutton; -#line 1151 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_signal_emit (self, publishing_piwigo_authentication_pane_signals[PUBLISHING_PIWIGO_AUTHENTICATION_PANE_LOGIN_SIGNAL], 0, _tmp1_, _tmp3_, _tmp5_, gtk_switch_get_active (_tmp6_)); -#line 8340 "PiwigoPublishing.c" -} - - -static void -publishing_piwigo_authentication_pane_on_url_changed (PublishingPiwigoAuthenticationPane* self) -{ -#line 1155 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_return_if_fail (PUBLISHING_PIWIGO_IS_AUTHENTICATION_PANE (self)); -#line 1156 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - publishing_piwigo_authentication_pane_update_login_button_sensitivity (self); -#line 8351 "PiwigoPublishing.c" -} - - -static void -publishing_piwigo_authentication_pane_on_user_changed (PublishingPiwigoAuthenticationPane* self) -{ -#line 1159 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_return_if_fail (PUBLISHING_PIWIGO_IS_AUTHENTICATION_PANE (self)); -#line 1160 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - publishing_piwigo_authentication_pane_update_login_button_sensitivity (self); -#line 8362 "PiwigoPublishing.c" -} - - -static void -publishing_piwigo_authentication_pane_on_password_changed (PublishingPiwigoAuthenticationPane* self) -{ -#line 1163 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_return_if_fail (PUBLISHING_PIWIGO_IS_AUTHENTICATION_PANE (self)); -#line 1164 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - publishing_piwigo_authentication_pane_update_login_button_sensitivity (self); -#line 8373 "PiwigoPublishing.c" -} - - -static void -publishing_piwigo_authentication_pane_update_login_button_sensitivity (PublishingPiwigoAuthenticationPane* self) -{ - gboolean _tmp0_ = FALSE; - gboolean _tmp1_ = FALSE; - GtkEntry* _tmp2_; - guint _tmp3_; - guint _tmp4_; - GtkButton* _tmp11_; -#line 1167 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_return_if_fail (PUBLISHING_PIWIGO_IS_AUTHENTICATION_PANE (self)); -#line 1168 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp2_ = self->priv->url_entry; -#line 1168 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp3_ = gtk_entry_get_text_length (_tmp2_); -#line 1168 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp4_ = _tmp3_; -#line 1168 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - if (_tmp4_ != ((guint) 0)) { -#line 8396 "PiwigoPublishing.c" - GtkEntry* _tmp5_; - guint _tmp6_; - guint _tmp7_; -#line 1169 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp5_ = self->priv->username_entry; -#line 1169 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp6_ = gtk_entry_get_text_length (_tmp5_); -#line 1169 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp7_ = _tmp6_; -#line 1169 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp1_ = _tmp7_ != ((guint) 0); -#line 8408 "PiwigoPublishing.c" - } else { -#line 1168 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp1_ = FALSE; -#line 8412 "PiwigoPublishing.c" - } -#line 1168 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - if (_tmp1_) { -#line 8416 "PiwigoPublishing.c" - GtkEntry* _tmp8_; - guint _tmp9_; - guint _tmp10_; -#line 1170 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp8_ = self->priv->password_entry; -#line 1170 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp9_ = gtk_entry_get_text_length (_tmp8_); -#line 1170 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp10_ = _tmp9_; -#line 1170 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp0_ = _tmp10_ != ((guint) 0); -#line 8428 "PiwigoPublishing.c" - } else { -#line 1168 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp0_ = FALSE; -#line 8432 "PiwigoPublishing.c" - } -#line 1168 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp11_ = self->priv->login_button; -#line 1168 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - gtk_widget_set_sensitive (G_TYPE_CHECK_INSTANCE_CAST (_tmp11_, gtk_widget_get_type (), GtkWidget), _tmp0_); -#line 8438 "PiwigoPublishing.c" -} - - -static void -publishing_piwigo_authentication_pane_real_on_pane_installed (ShotwellPluginsCommonBuilderPane* base) -{ - PublishingPiwigoAuthenticationPane * self; - GtkEntry* _tmp0_; - GtkEntry* _tmp1_; - GtkButton* _tmp2_; -#line 1173 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_PIWIGO_TYPE_AUTHENTICATION_PANE, PublishingPiwigoAuthenticationPane); -#line 1174 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - SHOTWELL_PLUGINS_COMMON_BUILDER_PANE_CLASS (publishing_piwigo_authentication_pane_parent_class)->on_pane_installed (G_TYPE_CHECK_INSTANCE_CAST (self, SHOTWELL_PLUGINS_COMMON_TYPE_BUILDER_PANE, ShotwellPluginsCommonBuilderPane)); -#line 1176 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp0_ = self->priv->url_entry; -#line 1176 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - gtk_widget_grab_focus (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, gtk_widget_get_type (), GtkWidget)); -#line 1177 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp1_ = self->priv->password_entry; -#line 1177 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - gtk_entry_set_activates_default (_tmp1_, TRUE); -#line 1178 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp2_ = self->priv->login_button; -#line 1178 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - gtk_widget_set_can_default (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, gtk_widget_get_type (), GtkWidget), TRUE); -#line 1179 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - publishing_piwigo_authentication_pane_update_login_button_sensitivity (self); -#line 8467 "PiwigoPublishing.c" -} - - -PublishingPiwigoAuthenticationPaneMode -publishing_piwigo_authentication_pane_get_mode (PublishingPiwigoAuthenticationPane* self) -{ - PublishingPiwigoAuthenticationPaneMode result; - PublishingPiwigoAuthenticationPaneMode _tmp0_; -#line 1076 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_return_val_if_fail (PUBLISHING_PIWIGO_IS_AUTHENTICATION_PANE (self), 0); -#line 1076 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp0_ = self->priv->_mode; -#line 1076 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - result = _tmp0_; -#line 1076 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - return result; -#line 8484 "PiwigoPublishing.c" -} - - -static void -publishing_piwigo_authentication_pane_set_mode (PublishingPiwigoAuthenticationPane* self, - PublishingPiwigoAuthenticationPaneMode value) -{ -#line 1076 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_return_if_fail (PUBLISHING_PIWIGO_IS_AUTHENTICATION_PANE (self)); -#line 1076 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - if (publishing_piwigo_authentication_pane_get_mode (self) != value) { -#line 1076 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - self->priv->_mode = value; -#line 1076 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_object_notify_by_pspec ((GObject *) self, publishing_piwigo_authentication_pane_properties[PUBLISHING_PIWIGO_AUTHENTICATION_PANE_MODE_PROPERTY]); -#line 8500 "PiwigoPublishing.c" - } -} - - -PublishingPiwigoPiwigoPublisher* -publishing_piwigo_authentication_pane_get_publisher (PublishingPiwigoAuthenticationPane* self) -{ - PublishingPiwigoPiwigoPublisher* result; - PublishingPiwigoPiwigoPublisher* _tmp0_; -#line 1077 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_return_val_if_fail (PUBLISHING_PIWIGO_IS_AUTHENTICATION_PANE (self), NULL); -#line 1077 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp0_ = self->priv->_publisher; -#line 1077 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - result = _tmp0_; -#line 1077 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - return result; -#line 8518 "PiwigoPublishing.c" -} - - -static void -publishing_piwigo_authentication_pane_set_publisher (PublishingPiwigoAuthenticationPane* self, - PublishingPiwigoPiwigoPublisher* value) -{ -#line 1077 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_return_if_fail (PUBLISHING_PIWIGO_IS_AUTHENTICATION_PANE (self)); -#line 1077 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - if (publishing_piwigo_authentication_pane_get_publisher (self) != value) { -#line 1077 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - self->priv->_publisher = value; -#line 1077 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_object_notify_by_pspec ((GObject *) self, publishing_piwigo_authentication_pane_properties[PUBLISHING_PIWIGO_AUTHENTICATION_PANE_PUBLISHER_PROPERTY]); -#line 8534 "PiwigoPublishing.c" - } -} - - -static void -g_cclosure_user_marshal_VOID__STRING_STRING_STRING_BOOLEAN (GClosure * closure, - GValue * return_value, - guint n_param_values, - const GValue * param_values, - gpointer invocation_hint, - gpointer marshal_data) -{ - typedef void (*GMarshalFunc_VOID__STRING_STRING_STRING_BOOLEAN) (gpointer data1, const char* arg_1, const char* arg_2, const char* arg_3, gboolean arg_4, gpointer data2); - register GMarshalFunc_VOID__STRING_STRING_STRING_BOOLEAN callback; - register GCClosure * cc; - register gpointer data1; - register gpointer data2; - cc = (GCClosure *) closure; -#line 1069 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_return_if_fail (n_param_values == 5); -#line 1069 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - if (G_CCLOSURE_SWAP_DATA (closure)) { -#line 1069 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - data1 = closure->data; -#line 1069 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - data2 = param_values->data[0].v_pointer; -#line 8561 "PiwigoPublishing.c" - } else { -#line 1069 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - data1 = param_values->data[0].v_pointer; -#line 1069 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - data2 = closure->data; -#line 8567 "PiwigoPublishing.c" - } -#line 1069 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - callback = (GMarshalFunc_VOID__STRING_STRING_STRING_BOOLEAN) (marshal_data ? marshal_data : cc->callback); -#line 1069 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - callback (data1, g_value_get_string (param_values + 1), g_value_get_string (param_values + 2), g_value_get_string (param_values + 3), g_value_get_boolean (param_values + 4), data2); -#line 8573 "PiwigoPublishing.c" -} - - -static void -publishing_piwigo_authentication_pane_class_init (PublishingPiwigoAuthenticationPaneClass * klass) -{ - gchar* _tmp0_; - gchar* _tmp1_; - gchar* _tmp2_; -#line 1069 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - publishing_piwigo_authentication_pane_parent_class = g_type_class_peek_parent (klass); -#line 1069 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_type_class_add_private (klass, sizeof (PublishingPiwigoAuthenticationPanePrivate)); -#line 1069 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - ((GObjectClass *) klass)->constructed = (void (*) (GObject *)) publishing_piwigo_authentication_pane_real_constructed; -#line 1069 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - ((ShotwellPluginsCommonBuilderPaneClass *) klass)->on_pane_installed = (void (*) (ShotwellPluginsCommonBuilderPane *)) publishing_piwigo_authentication_pane_real_on_pane_installed; -#line 1069 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - G_OBJECT_CLASS (klass)->get_property = _vala_publishing_piwigo_authentication_pane_get_property; -#line 1069 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - G_OBJECT_CLASS (klass)->set_property = _vala_publishing_piwigo_authentication_pane_set_property; -#line 1069 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - G_OBJECT_CLASS (klass)->finalize = publishing_piwigo_authentication_pane_finalize; -#line 1069 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_object_class_install_property (G_OBJECT_CLASS (klass), PUBLISHING_PIWIGO_AUTHENTICATION_PANE_MODE_PROPERTY, publishing_piwigo_authentication_pane_properties[PUBLISHING_PIWIGO_AUTHENTICATION_PANE_MODE_PROPERTY] = g_param_spec_enum ("mode", "mode", "mode", PUBLISHING_PIWIGO_AUTHENTICATION_PANE_TYPE_MODE, 0, G_PARAM_STATIC_STRINGS | G_PARAM_READABLE | G_PARAM_WRITABLE | G_PARAM_CONSTRUCT_ONLY)); -#line 1069 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_object_class_install_property (G_OBJECT_CLASS (klass), PUBLISHING_PIWIGO_AUTHENTICATION_PANE_PUBLISHER_PROPERTY, publishing_piwigo_authentication_pane_properties[PUBLISHING_PIWIGO_AUTHENTICATION_PANE_PUBLISHER_PROPERTY] = g_param_spec_object ("publisher", "publisher", "publisher", PUBLISHING_PIWIGO_TYPE_PIWIGO_PUBLISHER, G_PARAM_STATIC_STRINGS | G_PARAM_READABLE | G_PARAM_WRITABLE | G_PARAM_CONSTRUCT_ONLY)); -#line 1069 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - publishing_piwigo_authentication_pane_signals[PUBLISHING_PIWIGO_AUTHENTICATION_PANE_LOGIN_SIGNAL] = g_signal_new ("login", PUBLISHING_PIWIGO_TYPE_AUTHENTICATION_PANE, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_user_marshal_VOID__STRING_STRING_STRING_BOOLEAN, G_TYPE_NONE, 4, G_TYPE_STRING, G_TYPE_STRING, G_TYPE_STRING, G_TYPE_BOOLEAN); -#line 1079 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp0_ = g_strdup (_ ("Enter the URL of your Piwigo photo library as well as the username and" \ -" password associated with your Piwigo account for that library.")); -#line 1079 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - publishing_piwigo_authentication_pane_INTRO_MESSAGE = _tmp0_; -#line 1080 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp1_ = g_strdup (_ ("Shotwell cannot contact your Piwigo photo library. Please verify the U" \ -"RL you entered")); -#line 1080 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - publishing_piwigo_authentication_pane_FAILED_RETRY_URL_MESSAGE = _tmp1_; -#line 1081 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp2_ = g_strdup (_ ("Username and/or password invalid. Please try again")); -#line 1081 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - publishing_piwigo_authentication_pane_FAILED_RETRY_USER_MESSAGE = _tmp2_; -#line 8615 "PiwigoPublishing.c" -} - - -static void -publishing_piwigo_authentication_pane_instance_init (PublishingPiwigoAuthenticationPane * self) -{ -#line 1069 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - self->priv = PUBLISHING_PIWIGO_AUTHENTICATION_PANE_GET_PRIVATE (self); -#line 8624 "PiwigoPublishing.c" -} - - -static void -publishing_piwigo_authentication_pane_finalize (GObject * obj) -{ - PublishingPiwigoAuthenticationPane * self; -#line 1069 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, PUBLISHING_PIWIGO_TYPE_AUTHENTICATION_PANE, PublishingPiwigoAuthenticationPane); -#line 1083 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_object_unref0 (self->priv->url_entry); -#line 1084 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_object_unref0 (self->priv->username_entry); -#line 1085 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_object_unref0 (self->priv->password_entry); -#line 1086 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_object_unref0 (self->priv->remember_password_checkbutton); -#line 1087 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_object_unref0 (self->priv->login_button); -#line 1069 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - G_OBJECT_CLASS (publishing_piwigo_authentication_pane_parent_class)->finalize (obj); -#line 8646 "PiwigoPublishing.c" -} - - -/** - * The authentication pane used when asking service URL, user name and password - * from the user. - */ -GType -publishing_piwigo_authentication_pane_get_type (void) -{ - static volatile gsize publishing_piwigo_authentication_pane_type_id__volatile = 0; - if (g_once_init_enter (&publishing_piwigo_authentication_pane_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (PublishingPiwigoAuthenticationPaneClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) publishing_piwigo_authentication_pane_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PublishingPiwigoAuthenticationPane), 0, (GInstanceInitFunc) publishing_piwigo_authentication_pane_instance_init, NULL }; - GType publishing_piwigo_authentication_pane_type_id; - publishing_piwigo_authentication_pane_type_id = g_type_register_static (SHOTWELL_PLUGINS_COMMON_TYPE_BUILDER_PANE, "PublishingPiwigoAuthenticationPane", &g_define_type_info, 0); - g_once_init_leave (&publishing_piwigo_authentication_pane_type_id__volatile, publishing_piwigo_authentication_pane_type_id); - } - return publishing_piwigo_authentication_pane_type_id__volatile; -} - - -static void -_vala_publishing_piwigo_authentication_pane_get_property (GObject * object, - guint property_id, - GValue * value, - GParamSpec * pspec) -{ - PublishingPiwigoAuthenticationPane * self; - self = G_TYPE_CHECK_INSTANCE_CAST (object, PUBLISHING_PIWIGO_TYPE_AUTHENTICATION_PANE, PublishingPiwigoAuthenticationPane); -#line 1069 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - switch (property_id) { -#line 1069 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - case PUBLISHING_PIWIGO_AUTHENTICATION_PANE_MODE_PROPERTY: -#line 1069 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_value_set_enum (value, publishing_piwigo_authentication_pane_get_mode (self)); -#line 1069 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - break; -#line 1069 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - case PUBLISHING_PIWIGO_AUTHENTICATION_PANE_PUBLISHER_PROPERTY: -#line 1069 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_value_set_object (value, publishing_piwigo_authentication_pane_get_publisher (self)); -#line 1069 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - break; -#line 8690 "PiwigoPublishing.c" - default: -#line 1069 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec); -#line 1069 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - break; -#line 8696 "PiwigoPublishing.c" - } -} - - -static void -_vala_publishing_piwigo_authentication_pane_set_property (GObject * object, - guint property_id, - const GValue * value, - GParamSpec * pspec) -{ - PublishingPiwigoAuthenticationPane * self; - self = G_TYPE_CHECK_INSTANCE_CAST (object, PUBLISHING_PIWIGO_TYPE_AUTHENTICATION_PANE, PublishingPiwigoAuthenticationPane); -#line 1069 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - switch (property_id) { -#line 1069 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - case PUBLISHING_PIWIGO_AUTHENTICATION_PANE_MODE_PROPERTY: -#line 1069 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - publishing_piwigo_authentication_pane_set_mode (self, g_value_get_enum (value)); -#line 1069 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - break; -#line 1069 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - case PUBLISHING_PIWIGO_AUTHENTICATION_PANE_PUBLISHER_PROPERTY: -#line 1069 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - publishing_piwigo_authentication_pane_set_publisher (self, g_value_get_object (value)); -#line 1069 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - break; -#line 8723 "PiwigoPublishing.c" - default: -#line 1069 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec); -#line 1069 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - break; -#line 8729 "PiwigoPublishing.c" - } -} - - -static gpointer -_publishing_piwigo_category_ref0 (gpointer self) -{ -#line 1229 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - return self ? publishing_piwigo_category_ref (self) : NULL; -#line 8739 "PiwigoPublishing.c" -} - - -static PublishingPiwigoCategory** -_vala_array_dup13 (PublishingPiwigoCategory** self, - int length) -{ - PublishingPiwigoCategory** result; - int i; -#line 1229 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - result = g_new0 (PublishingPiwigoCategory*, length + 1); -#line 1229 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - for (i = 0; i < length; i++) { -#line 8753 "PiwigoPublishing.c" - PublishingPiwigoCategory* _tmp0_; -#line 1229 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp0_ = _publishing_piwigo_category_ref0 (self[i]); -#line 1229 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - result[i] = _tmp0_; -#line 8759 "PiwigoPublishing.c" - } -#line 1229 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - return result; -#line 8763 "PiwigoPublishing.c" -} - - -static gboolean -_publishing_piwigo_category_equal_gee_equal_data_func (gconstpointer a, - gconstpointer b, - gpointer self) -{ - gboolean result; - result = publishing_piwigo_category_equal ((PublishingPiwigoCategory*) a, (PublishingPiwigoCategory*) b); -#line 1229 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - return result; -#line 8776 "PiwigoPublishing.c" -} - - -PublishingPiwigoPublishingOptionsPane* -publishing_piwigo_publishing_options_pane_construct (GType object_type, - PublishingPiwigoPiwigoPublisher* publisher, - PublishingPiwigoCategory** categories, - int categories_length1, - gint last_category, - gint last_permission_level, - gint last_photo_size, - gboolean last_title_as_comment, - gboolean last_no_upload_tags, - gboolean strip_metadata_enabled) -{ - PublishingPiwigoPublishingOptionsPane * self = NULL; - PublishingPiwigoCategory** _tmp0_; - gint _tmp0__length1; - GeeArrayList* _tmp1_; - GeeArrayList* _tmp2_; - gchar* _tmp3_; - gchar* _tmp4_; -#line 1221 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_return_val_if_fail (PUBLISHING_PIWIGO_IS_PIWIGO_PUBLISHER (publisher), NULL); -#line 1229 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp0_ = (categories != NULL) ? _vala_array_dup13 (categories, categories_length1) : ((gpointer) categories); -#line 1229 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp0__length1 = categories_length1; -#line 1229 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp1_ = gee_array_list_new_wrap (PUBLISHING_PIWIGO_TYPE_CATEGORY, (GBoxedCopyFunc) publishing_piwigo_category_ref, (GDestroyNotify) publishing_piwigo_category_unref, _tmp0_, _tmp0__length1, _publishing_piwigo_category_equal_gee_equal_data_func, NULL, NULL); -#line 1229 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp2_ = _tmp1_; -#line 1229 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp3_ = publishing_piwigo_publishing_options_pane_get_common_comment_if_possible (publisher); -#line 1229 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp4_ = _tmp3_; -#line 1229 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - self = (PublishingPiwigoPublishingOptionsPane*) g_object_new (object_type, "resource-path", PLUGIN_RESOURCE_PATH "/piwigo_publishing_options_pane.ui", "connect-signals", TRUE, "default-id", "publish_button", "last-category", last_category, "last-permission-level", last_permission_level, "last-photo-size", last_photo_size, "last-title-as-comment", last_title_as_comment, "last-no-upload-tags", last_no_upload_tags, "strip-metadata-enabled", strip_metadata_enabled, "existing-categories", _tmp2_, "default-comment", _tmp4_, NULL); -#line 1229 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_free0 (_tmp4_); -#line 1229 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_object_unref0 (_tmp2_); -#line 1221 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - return self; -#line 8821 "PiwigoPublishing.c" -} - - -PublishingPiwigoPublishingOptionsPane* -publishing_piwigo_publishing_options_pane_new (PublishingPiwigoPiwigoPublisher* publisher, - PublishingPiwigoCategory** categories, - int categories_length1, - gint last_category, - gint last_permission_level, - gint last_photo_size, - gboolean last_title_as_comment, - gboolean last_no_upload_tags, - gboolean strip_metadata_enabled) -{ -#line 1221 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - return publishing_piwigo_publishing_options_pane_construct (PUBLISHING_PIWIGO_TYPE_PUBLISHING_OPTIONS_PANE, publisher, categories, categories_length1, last_category, last_permission_level, last_photo_size, last_title_as_comment, last_no_upload_tags, strip_metadata_enabled); -#line 8838 "PiwigoPublishing.c" -} - - -static void -_publishing_piwigo_publishing_options_pane_on_logout_button_clicked_gtk_button_clicked (GtkButton* _sender, - gpointer self) -{ -#line 1272 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - publishing_piwigo_publishing_options_pane_on_logout_button_clicked ((PublishingPiwigoPublishingOptionsPane*) self); -#line 8848 "PiwigoPublishing.c" -} - - -static void -_publishing_piwigo_publishing_options_pane_on_publish_button_clicked_gtk_button_clicked (GtkButton* _sender, - gpointer self) -{ -#line 1275 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - publishing_piwigo_publishing_options_pane_on_publish_button_clicked ((PublishingPiwigoPublishingOptionsPane*) self); -#line 8858 "PiwigoPublishing.c" -} - - -static void -_publishing_piwigo_publishing_options_pane_on_use_existing_radio_clicked_gtk_button_clicked (GtkButton* _sender, - gpointer self) -{ -#line 1277 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - publishing_piwigo_publishing_options_pane_on_use_existing_radio_clicked ((PublishingPiwigoPublishingOptionsPane*) self); -#line 8868 "PiwigoPublishing.c" -} - - -static void -_publishing_piwigo_publishing_options_pane_on_create_new_radio_clicked_gtk_button_clicked (GtkButton* _sender, - gpointer self) -{ -#line 1278 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - publishing_piwigo_publishing_options_pane_on_create_new_radio_clicked ((PublishingPiwigoPublishingOptionsPane*) self); -#line 8878 "PiwigoPublishing.c" -} - - -static void -_publishing_piwigo_publishing_options_pane_on_new_category_entry_changed_gtk_editable_changed (GtkEditable* _sender, - gpointer self) -{ -#line 1279 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - publishing_piwigo_publishing_options_pane_on_new_category_entry_changed ((PublishingPiwigoPublishingOptionsPane*) self); -#line 8888 "PiwigoPublishing.c" -} - - -static void -_publishing_piwigo_publishing_options_pane_on_existing_combo_changed_gtk_combo_box_changed (GtkComboBox* _sender, - gpointer self) -{ -#line 1280 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - publishing_piwigo_publishing_options_pane_on_existing_combo_changed ((PublishingPiwigoPublishingOptionsPane*) self); -#line 8898 "PiwigoPublishing.c" -} - - -static void -publishing_piwigo_publishing_options_pane_real_constructed (GObject* base) -{ - PublishingPiwigoPublishingOptionsPane * self; - GtkBuilder* builder = NULL; - GtkBuilder* _tmp0_; - GObject* _tmp1_; - GtkRadioButton* _tmp2_; - GObject* _tmp3_; - GtkRadioButton* _tmp4_; - GObject* _tmp5_; - GtkComboBoxText* _tmp6_; - GObject* _tmp7_; - GtkEntry* _tmp8_; - GObject* _tmp9_; - GtkLabel* _tmp10_; - GObject* _tmp11_; - GtkComboBoxText* _tmp12_; - GObject* _tmp13_; - GtkTextView* _tmp14_; - GtkTextView* _tmp15_; - GtkTextBuffer* _tmp16_; - GtkTextBuffer* _tmp17_; - GObject* _tmp18_; - GtkLabel* _tmp19_; - GObject* _tmp20_; - GtkComboBoxText* _tmp21_; - GObject* _tmp22_; - GtkComboBoxText* _tmp23_; - GObject* _tmp24_; - GtkCheckButton* _tmp25_; - GtkCheckButton* _tmp26_; - gboolean _tmp27_; - GObject* _tmp28_; - GtkCheckButton* _tmp29_; - GtkCheckButton* _tmp30_; - gboolean _tmp31_; - GObject* _tmp32_; - GtkCheckButton* _tmp33_; - GtkCheckButton* _tmp34_; - gboolean _tmp35_; - GObject* _tmp36_; - GtkButton* _tmp37_; - GtkButton* _tmp38_; - GObject* _tmp39_; - GtkButton* _tmp40_; - GtkButton* _tmp41_; - GtkRadioButton* _tmp42_; - GtkRadioButton* _tmp43_; - GtkEntry* _tmp44_; - GtkComboBoxText* _tmp45_; - gint _tmp46_; - PublishingPiwigoPermissionLevel** _tmp47_; - gint _tmp48_; - PublishingPiwigoSizeEntry** _tmp49_; - GtkTextView* _tmp50_; - GtkTextBuffer* _tmp51_; - GtkTextBuffer* _tmp52_; - const gchar* _tmp53_; -#line 1244 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_PIWIGO_TYPE_PUBLISHING_OPTIONS_PANE, PublishingPiwigoPublishingOptionsPane); -#line 1245 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - G_OBJECT_CLASS (publishing_piwigo_publishing_options_pane_parent_class)->constructed (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, SHOTWELL_PLUGINS_COMMON_TYPE_BUILDER_PANE, ShotwellPluginsCommonBuilderPane), G_TYPE_OBJECT, GObject)); -#line 1246 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp0_ = shotwell_plugins_common_builder_pane_get_builder (G_TYPE_CHECK_INSTANCE_CAST (self, SHOTWELL_PLUGINS_COMMON_TYPE_BUILDER_PANE, ShotwellPluginsCommonBuilderPane)); -#line 1246 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - builder = _tmp0_; -#line 1248 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp1_ = gtk_builder_get_object (builder, "use_existing_radio"); -#line 1248 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp2_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp1_, gtk_radio_button_get_type ()) ? ((GtkRadioButton*) _tmp1_) : NULL); -#line 1248 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_object_unref0 (self->priv->use_existing_radio); -#line 1248 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - self->priv->use_existing_radio = _tmp2_; -#line 1249 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp3_ = gtk_builder_get_object (builder, "create_new_radio"); -#line 1249 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp4_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp3_, gtk_radio_button_get_type ()) ? ((GtkRadioButton*) _tmp3_) : NULL); -#line 1249 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_object_unref0 (self->priv->create_new_radio); -#line 1249 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - self->priv->create_new_radio = _tmp4_; -#line 1250 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp5_ = gtk_builder_get_object (builder, "existing_categories_combo"); -#line 1250 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp6_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp5_, gtk_combo_box_text_get_type ()) ? ((GtkComboBoxText*) _tmp5_) : NULL); -#line 1250 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_object_unref0 (self->priv->existing_categories_combo); -#line 1250 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - self->priv->existing_categories_combo = _tmp6_; -#line 1251 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp7_ = gtk_builder_get_object (builder, "new_category_entry"); -#line 1251 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp8_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp7_, gtk_entry_get_type ()) ? ((GtkEntry*) _tmp7_) : NULL); -#line 1251 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_object_unref0 (self->priv->new_category_entry); -#line 1251 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - self->priv->new_category_entry = _tmp8_; -#line 1252 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp9_ = gtk_builder_get_object (builder, "within_existing_label"); -#line 1252 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp10_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp9_, gtk_label_get_type ()) ? ((GtkLabel*) _tmp9_) : NULL); -#line 1252 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_object_unref0 (self->priv->within_existing_label); -#line 1252 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - self->priv->within_existing_label = _tmp10_; -#line 1253 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp11_ = gtk_builder_get_object (builder, "within_existing_combo"); -#line 1253 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp12_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp11_, gtk_combo_box_text_get_type ()) ? ((GtkComboBoxText*) _tmp11_) : NULL); -#line 1253 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_object_unref0 (self->priv->within_existing_combo); -#line 1253 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - self->priv->within_existing_combo = _tmp12_; -#line 1255 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp13_ = gtk_builder_get_object (builder, "album_comment"); -#line 1255 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp14_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp13_, gtk_text_view_get_type ()) ? ((GtkTextView*) _tmp13_) : NULL); -#line 1255 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_object_unref0 (self->priv->album_comment); -#line 1255 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - self->priv->album_comment = _tmp14_; -#line 1256 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp15_ = self->priv->album_comment; -#line 1256 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp16_ = gtk_text_buffer_new (NULL); -#line 1256 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp17_ = _tmp16_; -#line 1256 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - gtk_text_view_set_buffer (_tmp15_, _tmp17_); -#line 1256 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_object_unref0 (_tmp17_); -#line 1257 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp18_ = gtk_builder_get_object (builder, "album_comment_label"); -#line 1257 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp19_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp18_, gtk_label_get_type ()) ? ((GtkLabel*) _tmp18_) : NULL); -#line 1257 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_object_unref0 (self->priv->album_comment_label); -#line 1257 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - self->priv->album_comment_label = _tmp19_; -#line 1259 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp20_ = gtk_builder_get_object (builder, "perms_combo"); -#line 1259 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp21_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp20_, gtk_combo_box_text_get_type ()) ? ((GtkComboBoxText*) _tmp20_) : NULL); -#line 1259 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_object_unref0 (self->priv->perms_combo); -#line 1259 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - self->priv->perms_combo = _tmp21_; -#line 1260 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp22_ = gtk_builder_get_object (builder, "size_combo"); -#line 1260 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp23_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp22_, gtk_combo_box_text_get_type ()) ? ((GtkComboBoxText*) _tmp22_) : NULL); -#line 1260 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_object_unref0 (self->priv->size_combo); -#line 1260 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - self->priv->size_combo = _tmp23_; -#line 1262 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp24_ = gtk_builder_get_object (builder, "strip_metadata_check"); -#line 1262 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp25_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp24_, gtk_check_button_get_type ()) ? ((GtkCheckButton*) _tmp24_) : NULL); -#line 1262 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_object_unref0 (self->priv->strip_metadata_check); -#line 1262 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - self->priv->strip_metadata_check = _tmp25_; -#line 1263 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp26_ = self->priv->strip_metadata_check; -#line 1263 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp27_ = self->priv->_strip_metadata_enabled; -#line 1263 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - gtk_toggle_button_set_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp26_, gtk_toggle_button_get_type (), GtkToggleButton), _tmp27_); -#line 1265 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp28_ = gtk_builder_get_object (builder, "title_as_comment_check"); -#line 1265 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp29_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp28_, gtk_check_button_get_type ()) ? ((GtkCheckButton*) _tmp28_) : NULL); -#line 1265 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_object_unref0 (self->priv->title_as_comment_check); -#line 1265 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - self->priv->title_as_comment_check = _tmp29_; -#line 1266 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp30_ = self->priv->title_as_comment_check; -#line 1266 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp31_ = self->priv->_last_title_as_comment; -#line 1266 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - gtk_toggle_button_set_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp30_, gtk_toggle_button_get_type (), GtkToggleButton), _tmp31_); -#line 1268 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp32_ = gtk_builder_get_object (builder, "no_upload_tags_check"); -#line 1268 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp33_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp32_, gtk_check_button_get_type ()) ? ((GtkCheckButton*) _tmp32_) : NULL); -#line 1268 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_object_unref0 (self->priv->no_upload_tags_check); -#line 1268 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - self->priv->no_upload_tags_check = _tmp33_; -#line 1269 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp34_ = self->priv->no_upload_tags_check; -#line 1269 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp35_ = self->priv->_last_no_upload_tags; -#line 1269 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - gtk_toggle_button_set_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp34_, gtk_toggle_button_get_type (), GtkToggleButton), _tmp35_); -#line 1271 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp36_ = gtk_builder_get_object (builder, "logout_button"); -#line 1271 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp37_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp36_, gtk_button_get_type ()) ? ((GtkButton*) _tmp36_) : NULL); -#line 1271 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_object_unref0 (self->priv->logout_button); -#line 1271 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - self->priv->logout_button = _tmp37_; -#line 1272 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp38_ = self->priv->logout_button; -#line 1272 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_signal_connect_object (_tmp38_, "clicked", (GCallback) _publishing_piwigo_publishing_options_pane_on_logout_button_clicked_gtk_button_clicked, self, 0); -#line 1274 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp39_ = gtk_builder_get_object (builder, "publish_button"); -#line 1274 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp40_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp39_, gtk_button_get_type ()) ? ((GtkButton*) _tmp39_) : NULL); -#line 1274 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_object_unref0 (self->priv->publish_button); -#line 1274 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - self->priv->publish_button = _tmp40_; -#line 1275 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp41_ = self->priv->publish_button; -#line 1275 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_signal_connect_object (_tmp41_, "clicked", (GCallback) _publishing_piwigo_publishing_options_pane_on_publish_button_clicked_gtk_button_clicked, self, 0); -#line 1277 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp42_ = self->priv->use_existing_radio; -#line 1277 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp42_, gtk_button_get_type (), GtkButton), "clicked", (GCallback) _publishing_piwigo_publishing_options_pane_on_use_existing_radio_clicked_gtk_button_clicked, self, 0); -#line 1278 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp43_ = self->priv->create_new_radio; -#line 1278 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp43_, gtk_button_get_type (), GtkButton), "clicked", (GCallback) _publishing_piwigo_publishing_options_pane_on_create_new_radio_clicked_gtk_button_clicked, self, 0); -#line 1279 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp44_ = self->priv->new_category_entry; -#line 1279 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp44_, gtk_editable_get_type (), GtkEditable), "changed", (GCallback) _publishing_piwigo_publishing_options_pane_on_new_category_entry_changed_gtk_editable_changed, self, 0); -#line 1280 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp45_ = self->priv->within_existing_combo; -#line 1280 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp45_, gtk_combo_box_get_type (), GtkComboBox), "changed", (GCallback) _publishing_piwigo_publishing_options_pane_on_existing_combo_changed_gtk_combo_box_changed, self, 0); -#line 1282 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp47_ = publishing_piwigo_publishing_options_pane_create_perm_levels (self, &_tmp46_); -#line 1282 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - self->priv->perm_levels = (_vala_array_free (self->priv->perm_levels, self->priv->perm_levels_length1, (GDestroyNotify) publishing_piwigo_permission_level_unref), NULL); -#line 1282 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - self->priv->perm_levels = _tmp47_; -#line 1282 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - self->priv->perm_levels_length1 = _tmp46_; -#line 1282 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - self->priv->_perm_levels_size_ = self->priv->perm_levels_length1; -#line 1283 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp49_ = publishing_piwigo_publishing_options_pane_create_sizes (self, &_tmp48_); -#line 1283 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - self->priv->photo_sizes = (_vala_array_free (self->priv->photo_sizes, self->priv->photo_sizes_length1, (GDestroyNotify) publishing_piwigo_size_entry_unref), NULL); -#line 1283 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - self->priv->photo_sizes = _tmp49_; -#line 1283 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - self->priv->photo_sizes_length1 = _tmp48_; -#line 1283 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - self->priv->_photo_sizes_size_ = self->priv->photo_sizes_length1; -#line 1284 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp50_ = self->priv->album_comment; -#line 1284 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp51_ = gtk_text_view_get_buffer (_tmp50_); -#line 1284 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp52_ = _tmp51_; -#line 1284 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp53_ = self->priv->_default_comment; -#line 1284 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - gtk_text_buffer_set_text (_tmp52_, _tmp53_, -1); -#line 1244 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_object_unref0 (builder); -#line 9173 "PiwigoPublishing.c" -} - - -static void -_vala_array_add39 (PublishingPiwigoPermissionLevel** * array, - int* length, - int* size, - PublishingPiwigoPermissionLevel* value) -{ -#line 1290 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - if ((*length) == (*size)) { -#line 1290 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - *size = (*size) ? (2 * (*size)) : 4; -#line 1290 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - *array = g_renew (PublishingPiwigoPermissionLevel*, *array, (*size) + 1); -#line 9189 "PiwigoPublishing.c" - } -#line 1290 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - (*array)[(*length)++] = value; -#line 1290 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - (*array)[*length] = NULL; -#line 9195 "PiwigoPublishing.c" -} - - -static void -_vala_array_add40 (PublishingPiwigoPermissionLevel** * array, - int* length, - int* size, - PublishingPiwigoPermissionLevel* value) -{ -#line 1291 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - if ((*length) == (*size)) { -#line 1291 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - *size = (*size) ? (2 * (*size)) : 4; -#line 1291 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - *array = g_renew (PublishingPiwigoPermissionLevel*, *array, (*size) + 1); -#line 9211 "PiwigoPublishing.c" - } -#line 1291 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - (*array)[(*length)++] = value; -#line 1291 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - (*array)[*length] = NULL; -#line 9217 "PiwigoPublishing.c" -} - - -static void -_vala_array_add41 (PublishingPiwigoPermissionLevel** * array, - int* length, - int* size, - PublishingPiwigoPermissionLevel* value) -{ -#line 1292 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - if ((*length) == (*size)) { -#line 1292 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - *size = (*size) ? (2 * (*size)) : 4; -#line 1292 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - *array = g_renew (PublishingPiwigoPermissionLevel*, *array, (*size) + 1); -#line 9233 "PiwigoPublishing.c" - } -#line 1292 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - (*array)[(*length)++] = value; -#line 1292 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - (*array)[*length] = NULL; -#line 9239 "PiwigoPublishing.c" -} - - -static void -_vala_array_add42 (PublishingPiwigoPermissionLevel** * array, - int* length, - int* size, - PublishingPiwigoPermissionLevel* value) -{ -#line 1293 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - if ((*length) == (*size)) { -#line 1293 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - *size = (*size) ? (2 * (*size)) : 4; -#line 1293 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - *array = g_renew (PublishingPiwigoPermissionLevel*, *array, (*size) + 1); -#line 9255 "PiwigoPublishing.c" - } -#line 1293 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - (*array)[(*length)++] = value; -#line 1293 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - (*array)[*length] = NULL; -#line 9261 "PiwigoPublishing.c" -} - - -static void -_vala_array_add43 (PublishingPiwigoPermissionLevel** * array, - int* length, - int* size, - PublishingPiwigoPermissionLevel* value) -{ -#line 1294 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - if ((*length) == (*size)) { -#line 1294 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - *size = (*size) ? (2 * (*size)) : 4; -#line 1294 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - *array = g_renew (PublishingPiwigoPermissionLevel*, *array, (*size) + 1); -#line 9277 "PiwigoPublishing.c" - } -#line 1294 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - (*array)[(*length)++] = value; -#line 1294 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - (*array)[*length] = NULL; -#line 9283 "PiwigoPublishing.c" -} - - -static PublishingPiwigoPermissionLevel** -publishing_piwigo_publishing_options_pane_create_perm_levels (PublishingPiwigoPublishingOptionsPane* self, - int* result_length1) -{ - PublishingPiwigoPermissionLevel** result = NULL; - PublishingPiwigoPermissionLevel** _result_ = NULL; - PublishingPiwigoPermissionLevel** _tmp0_; - gint _result__length1; - gint __result__size_; - PublishingPiwigoPermissionLevel** _tmp1_; - gint _tmp1__length1; - PublishingPiwigoPermissionLevel* _tmp2_; - PublishingPiwigoPermissionLevel** _tmp3_; - gint _tmp3__length1; - PublishingPiwigoPermissionLevel* _tmp4_; - PublishingPiwigoPermissionLevel** _tmp5_; - gint _tmp5__length1; - PublishingPiwigoPermissionLevel* _tmp6_; - PublishingPiwigoPermissionLevel** _tmp7_; - gint _tmp7__length1; - PublishingPiwigoPermissionLevel* _tmp8_; - PublishingPiwigoPermissionLevel** _tmp9_; - gint _tmp9__length1; - PublishingPiwigoPermissionLevel* _tmp10_; - PublishingPiwigoPermissionLevel** _tmp11_; - gint _tmp11__length1; -#line 1287 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_return_val_if_fail (PUBLISHING_PIWIGO_IS_PUBLISHING_OPTIONS_PANE (self), NULL); -#line 1288 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp0_ = g_new0 (PublishingPiwigoPermissionLevel*, 0 + 1); -#line 1288 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _result_ = _tmp0_; -#line 1288 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _result__length1 = 0; -#line 1288 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - __result__size_ = _result__length1; -#line 1290 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp1_ = _result_; -#line 1290 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp1__length1 = _result__length1; -#line 1290 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp2_ = publishing_piwigo_permission_level_new (0, _ ("Everyone")); -#line 1290 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _vala_array_add39 (&_result_, &_result__length1, &__result__size_, _tmp2_); -#line 1291 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp3_ = _result_; -#line 1291 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp3__length1 = _result__length1; -#line 1291 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp4_ = publishing_piwigo_permission_level_new (1, _ ("Admins, Family, Friends, Contacts")); -#line 1291 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _vala_array_add40 (&_result_, &_result__length1, &__result__size_, _tmp4_); -#line 1292 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp5_ = _result_; -#line 1292 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp5__length1 = _result__length1; -#line 1292 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp6_ = publishing_piwigo_permission_level_new (2, _ ("Admins, Family, Friends")); -#line 1292 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _vala_array_add41 (&_result_, &_result__length1, &__result__size_, _tmp6_); -#line 1293 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp7_ = _result_; -#line 1293 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp7__length1 = _result__length1; -#line 1293 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp8_ = publishing_piwigo_permission_level_new (4, _ ("Admins, Family")); -#line 1293 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _vala_array_add42 (&_result_, &_result__length1, &__result__size_, _tmp8_); -#line 1294 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp9_ = _result_; -#line 1294 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp9__length1 = _result__length1; -#line 1294 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp10_ = publishing_piwigo_permission_level_new (8, _ ("Admins")); -#line 1294 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _vala_array_add43 (&_result_, &_result__length1, &__result__size_, _tmp10_); -#line 1296 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp11_ = _result_; -#line 1296 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp11__length1 = _result__length1; -#line 1296 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - if (result_length1) { -#line 1296 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - *result_length1 = _tmp11__length1; -#line 9371 "PiwigoPublishing.c" - } -#line 1296 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - result = _tmp11_; -#line 1296 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - return result; -#line 9377 "PiwigoPublishing.c" -} - - -static void -_vala_array_add44 (PublishingPiwigoSizeEntry** * array, - int* length, - int* size, - PublishingPiwigoSizeEntry* value) -{ -#line 1302 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - if ((*length) == (*size)) { -#line 1302 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - *size = (*size) ? (2 * (*size)) : 4; -#line 1302 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - *array = g_renew (PublishingPiwigoSizeEntry*, *array, (*size) + 1); -#line 9393 "PiwigoPublishing.c" - } -#line 1302 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - (*array)[(*length)++] = value; -#line 1302 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - (*array)[*length] = NULL; -#line 9399 "PiwigoPublishing.c" -} - - -static void -_vala_array_add45 (PublishingPiwigoSizeEntry** * array, - int* length, - int* size, - PublishingPiwigoSizeEntry* value) -{ -#line 1303 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - if ((*length) == (*size)) { -#line 1303 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - *size = (*size) ? (2 * (*size)) : 4; -#line 1303 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - *array = g_renew (PublishingPiwigoSizeEntry*, *array, (*size) + 1); -#line 9415 "PiwigoPublishing.c" - } -#line 1303 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - (*array)[(*length)++] = value; -#line 1303 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - (*array)[*length] = NULL; -#line 9421 "PiwigoPublishing.c" -} - - -static void -_vala_array_add46 (PublishingPiwigoSizeEntry** * array, - int* length, - int* size, - PublishingPiwigoSizeEntry* value) -{ -#line 1304 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - if ((*length) == (*size)) { -#line 1304 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - *size = (*size) ? (2 * (*size)) : 4; -#line 1304 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - *array = g_renew (PublishingPiwigoSizeEntry*, *array, (*size) + 1); -#line 9437 "PiwigoPublishing.c" - } -#line 1304 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - (*array)[(*length)++] = value; -#line 1304 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - (*array)[*length] = NULL; -#line 9443 "PiwigoPublishing.c" -} - - -static void -_vala_array_add47 (PublishingPiwigoSizeEntry** * array, - int* length, - int* size, - PublishingPiwigoSizeEntry* value) -{ -#line 1305 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - if ((*length) == (*size)) { -#line 1305 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - *size = (*size) ? (2 * (*size)) : 4; -#line 1305 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - *array = g_renew (PublishingPiwigoSizeEntry*, *array, (*size) + 1); -#line 9459 "PiwigoPublishing.c" - } -#line 1305 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - (*array)[(*length)++] = value; -#line 1305 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - (*array)[*length] = NULL; -#line 9465 "PiwigoPublishing.c" -} - - -static void -_vala_array_add48 (PublishingPiwigoSizeEntry** * array, - int* length, - int* size, - PublishingPiwigoSizeEntry* value) -{ -#line 1306 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - if ((*length) == (*size)) { -#line 1306 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - *size = (*size) ? (2 * (*size)) : 4; -#line 1306 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - *array = g_renew (PublishingPiwigoSizeEntry*, *array, (*size) + 1); -#line 9481 "PiwigoPublishing.c" - } -#line 1306 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - (*array)[(*length)++] = value; -#line 1306 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - (*array)[*length] = NULL; -#line 9487 "PiwigoPublishing.c" -} - - -static PublishingPiwigoSizeEntry** -publishing_piwigo_publishing_options_pane_create_sizes (PublishingPiwigoPublishingOptionsPane* self, - int* result_length1) -{ - PublishingPiwigoSizeEntry** result = NULL; - PublishingPiwigoSizeEntry** _result_ = NULL; - PublishingPiwigoSizeEntry** _tmp0_; - gint _result__length1; - gint __result__size_; - PublishingPiwigoSizeEntry** _tmp1_; - gint _tmp1__length1; - PublishingPiwigoSizeEntry* _tmp2_; - PublishingPiwigoSizeEntry** _tmp3_; - gint _tmp3__length1; - PublishingPiwigoSizeEntry* _tmp4_; - PublishingPiwigoSizeEntry** _tmp5_; - gint _tmp5__length1; - PublishingPiwigoSizeEntry* _tmp6_; - PublishingPiwigoSizeEntry** _tmp7_; - gint _tmp7__length1; - PublishingPiwigoSizeEntry* _tmp8_; - PublishingPiwigoSizeEntry** _tmp9_; - gint _tmp9__length1; - PublishingPiwigoSizeEntry* _tmp10_; - PublishingPiwigoSizeEntry** _tmp11_; - gint _tmp11__length1; -#line 1299 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_return_val_if_fail (PUBLISHING_PIWIGO_IS_PUBLISHING_OPTIONS_PANE (self), NULL); -#line 1300 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp0_ = g_new0 (PublishingPiwigoSizeEntry*, 0 + 1); -#line 1300 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _result_ = _tmp0_; -#line 1300 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _result__length1 = 0; -#line 1300 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - __result__size_ = _result__length1; -#line 1302 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp1_ = _result_; -#line 1302 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp1__length1 = _result__length1; -#line 1302 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp2_ = publishing_piwigo_size_entry_new (500, _ ("500 × 375 pixels")); -#line 1302 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _vala_array_add44 (&_result_, &_result__length1, &__result__size_, _tmp2_); -#line 1303 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp3_ = _result_; -#line 1303 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp3__length1 = _result__length1; -#line 1303 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp4_ = publishing_piwigo_size_entry_new (1024, _ ("1024 × 768 pixels")); -#line 1303 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _vala_array_add45 (&_result_, &_result__length1, &__result__size_, _tmp4_); -#line 1304 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp5_ = _result_; -#line 1304 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp5__length1 = _result__length1; -#line 1304 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp6_ = publishing_piwigo_size_entry_new (2048, _ ("2048 × 1536 pixels")); -#line 1304 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _vala_array_add46 (&_result_, &_result__length1, &__result__size_, _tmp6_); -#line 1305 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp7_ = _result_; -#line 1305 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp7__length1 = _result__length1; -#line 1305 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp8_ = publishing_piwigo_size_entry_new (4096, _ ("4096 × 3072 pixels")); -#line 1305 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _vala_array_add47 (&_result_, &_result__length1, &__result__size_, _tmp8_); -#line 1306 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp9_ = _result_; -#line 1306 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp9__length1 = _result__length1; -#line 1306 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp10_ = publishing_piwigo_size_entry_new (PUBLISHING_PIWIGO_ORIGINAL_SIZE, _ ("Original size")); -#line 1306 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _vala_array_add48 (&_result_, &_result__length1, &__result__size_, _tmp10_); -#line 1308 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp11_ = _result_; -#line 1308 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp11__length1 = _result__length1; -#line 1308 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - if (result_length1) { -#line 1308 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - *result_length1 = _tmp11__length1; -#line 9575 "PiwigoPublishing.c" - } -#line 1308 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - result = _tmp11_; -#line 1308 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - return result; -#line 9581 "PiwigoPublishing.c" -} - - -static void -publishing_piwigo_publishing_options_pane_on_logout_button_clicked (PublishingPiwigoPublishingOptionsPane* self) -{ -#line 1311 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_return_if_fail (PUBLISHING_PIWIGO_IS_PUBLISHING_OPTIONS_PANE (self)); -#line 1312 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_signal_emit (self, publishing_piwigo_publishing_options_pane_signals[PUBLISHING_PIWIGO_PUBLISHING_OPTIONS_PANE_LOGOUT_SIGNAL], 0); -#line 9592 "PiwigoPublishing.c" -} - - -static gpointer -_publishing_piwigo_permission_level_ref0 (gpointer self) -{ -#line 1317 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - return self ? publishing_piwigo_permission_level_ref (self) : NULL; -#line 9601 "PiwigoPublishing.c" -} - - -static gpointer -_publishing_piwigo_size_entry_ref0 (gpointer self) -{ -#line 1318 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - return self ? publishing_piwigo_size_entry_ref (self) : NULL; -#line 9610 "PiwigoPublishing.c" -} - - -static void -publishing_piwigo_publishing_options_pane_on_publish_button_clicked (PublishingPiwigoPublishingOptionsPane* self) -{ - PublishingPiwigoPublishingParameters* params = NULL; - PublishingPiwigoPublishingParameters* _tmp0_; - PublishingPiwigoPublishingParameters* _tmp1_; - PublishingPiwigoPermissionLevel** _tmp2_; - gint _tmp2__length1; - GtkComboBoxText* _tmp3_; - PublishingPiwigoPermissionLevel* _tmp4_; - PublishingPiwigoPermissionLevel* _tmp5_; - PublishingPiwigoPublishingParameters* _tmp6_; - PublishingPiwigoSizeEntry** _tmp7_; - gint _tmp7__length1; - GtkComboBoxText* _tmp8_; - PublishingPiwigoSizeEntry* _tmp9_; - PublishingPiwigoSizeEntry* _tmp10_; - PublishingPiwigoPublishingParameters* _tmp11_; - GtkCheckButton* _tmp12_; - PublishingPiwigoPublishingParameters* _tmp13_; - GtkCheckButton* _tmp14_; - GtkRadioButton* _tmp15_; - PublishingPiwigoPublishingParameters* _tmp46_; - GtkCheckButton* _tmp47_; -#line 1315 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_return_if_fail (PUBLISHING_PIWIGO_IS_PUBLISHING_OPTIONS_PANE (self)); -#line 1316 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp0_ = publishing_piwigo_publishing_parameters_new (); -#line 1316 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - params = _tmp0_; -#line 1317 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp1_ = params; -#line 1317 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp2_ = self->priv->perm_levels; -#line 1317 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp2__length1 = self->priv->perm_levels_length1; -#line 1317 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp3_ = self->priv->perms_combo; -#line 1317 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp4_ = _tmp2_[gtk_combo_box_get_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, gtk_combo_box_get_type (), GtkComboBox))]; -#line 1317 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp5_ = _publishing_piwigo_permission_level_ref0 (_tmp4_); -#line 1317 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _publishing_piwigo_permission_level_unref0 (_tmp1_->perm_level); -#line 1317 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp1_->perm_level = _tmp5_; -#line 1318 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp6_ = params; -#line 1318 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp7_ = self->priv->photo_sizes; -#line 1318 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp7__length1 = self->priv->photo_sizes_length1; -#line 1318 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp8_ = self->priv->size_combo; -#line 1318 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp9_ = _tmp7_[gtk_combo_box_get_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, gtk_combo_box_get_type (), GtkComboBox))]; -#line 1318 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp10_ = _publishing_piwigo_size_entry_ref0 (_tmp9_); -#line 1318 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _publishing_piwigo_size_entry_unref0 (_tmp6_->photo_size); -#line 1318 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp6_->photo_size = _tmp10_; -#line 1319 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp11_ = params; -#line 1319 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp12_ = self->priv->title_as_comment_check; -#line 1319 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp11_->title_as_comment = gtk_toggle_button_get_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp12_, gtk_toggle_button_get_type (), GtkToggleButton)); -#line 1320 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp13_ = params; -#line 1320 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp14_ = self->priv->no_upload_tags_check; -#line 1320 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp13_->no_upload_tags = gtk_toggle_button_get_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp14_, gtk_toggle_button_get_type (), GtkToggleButton)); -#line 1321 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp15_ = self->priv->create_new_radio; -#line 1321 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - if (gtk_toggle_button_get_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp15_, gtk_toggle_button_get_type (), GtkToggleButton))) { -#line 9692 "PiwigoPublishing.c" - gchar* uploadcomment = NULL; - GtkTextView* _tmp16_; - GtkTextBuffer* _tmp17_; - GtkTextBuffer* _tmp18_; - gchar* _tmp19_; - gchar* _tmp20_; - gchar* _tmp21_; - gchar* _tmp22_; - gchar* _tmp23_; - gint a = 0; - GtkComboBoxText* _tmp24_; - gint _tmp25_; -#line 1322 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp16_ = self->priv->album_comment; -#line 1322 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp17_ = gtk_text_view_get_buffer (_tmp16_); -#line 1322 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp18_ = _tmp17_; -#line 1322 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_object_get (_tmp18_, "text", &_tmp19_, NULL); -#line 1322 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp20_ = _tmp19_; -#line 1322 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp21_ = _tmp20_; -#line 1322 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp22_ = string_strip (_tmp21_); -#line 1322 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp23_ = _tmp22_; -#line 1322 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_free0 (_tmp21_); -#line 1322 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - uploadcomment = _tmp23_; -#line 1323 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp24_ = self->priv->within_existing_combo; -#line 1323 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - a = gtk_combo_box_get_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp24_, gtk_combo_box_get_type (), GtkComboBox)); -#line 1324 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp25_ = a; -#line 1324 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - if (_tmp25_ == 0) { -#line 9733 "PiwigoPublishing.c" - PublishingPiwigoPublishingParameters* _tmp26_; - GtkEntry* _tmp27_; - const gchar* _tmp28_; - const gchar* _tmp29_; - PublishingPiwigoCategory* _tmp30_; -#line 1325 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp26_ = params; -#line 1325 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp27_ = self->priv->new_category_entry; -#line 1325 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp28_ = gtk_entry_get_text (_tmp27_); -#line 1325 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp29_ = uploadcomment; -#line 1325 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp30_ = publishing_piwigo_category_new_local (_tmp28_, 0, _tmp29_); -#line 1325 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _publishing_piwigo_category_unref0 (_tmp26_->category); -#line 1325 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp26_->category = _tmp30_; -#line 9753 "PiwigoPublishing.c" - } else { - gint _tmp31_; - PublishingPiwigoPublishingParameters* _tmp32_; - GtkEntry* _tmp33_; - const gchar* _tmp34_; - GeeList* _tmp35_; - gint _tmp36_; - gpointer _tmp37_; - PublishingPiwigoCategory* _tmp38_; - gint _tmp39_; - const gchar* _tmp40_; - PublishingPiwigoCategory* _tmp41_; -#line 1329 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp31_ = a; -#line 1329 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - a = _tmp31_ - 1; -#line 1330 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp32_ = params; -#line 1330 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp33_ = self->priv->new_category_entry; -#line 1330 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp34_ = gtk_entry_get_text (_tmp33_); -#line 1330 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp35_ = self->priv->_existing_categories; -#line 1330 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp36_ = a; -#line 1330 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp37_ = gee_list_get (_tmp35_, _tmp36_); -#line 1330 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp38_ = (PublishingPiwigoCategory*) _tmp37_; -#line 1330 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp39_ = _tmp38_->id; -#line 1330 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp40_ = uploadcomment; -#line 1330 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp41_ = publishing_piwigo_category_new_local (_tmp34_, _tmp39_, _tmp40_); -#line 1330 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _publishing_piwigo_category_unref0 (_tmp32_->category); -#line 1330 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp32_->category = _tmp41_; -#line 1330 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _publishing_piwigo_category_unref0 (_tmp38_); -#line 9796 "PiwigoPublishing.c" - } -#line 1321 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_free0 (uploadcomment); -#line 9800 "PiwigoPublishing.c" - } else { - PublishingPiwigoPublishingParameters* _tmp42_; - GeeList* _tmp43_; - GtkComboBoxText* _tmp44_; - gpointer _tmp45_; -#line 1334 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp42_ = params; -#line 1334 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp43_ = self->priv->_existing_categories; -#line 1334 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp44_ = self->priv->existing_categories_combo; -#line 1334 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp45_ = gee_list_get (_tmp43_, gtk_combo_box_get_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp44_, gtk_combo_box_get_type (), GtkComboBox))); -#line 1334 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _publishing_piwigo_category_unref0 (_tmp42_->category); -#line 1334 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp42_->category = (PublishingPiwigoCategory*) _tmp45_; -#line 9818 "PiwigoPublishing.c" - } -#line 1336 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp46_ = params; -#line 1336 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp47_ = self->priv->strip_metadata_check; -#line 1336 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_signal_emit (self, publishing_piwigo_publishing_options_pane_signals[PUBLISHING_PIWIGO_PUBLISHING_OPTIONS_PANE_PUBLISH_SIGNAL], 0, _tmp46_, gtk_toggle_button_get_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp47_, gtk_toggle_button_get_type (), GtkToggleButton))); -#line 1315 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _publishing_piwigo_publishing_parameters_unref0 (params); -#line 9828 "PiwigoPublishing.c" -} - - -static void -publishing_piwigo_publishing_options_pane_on_use_existing_radio_clicked (PublishingPiwigoPublishingOptionsPane* self) -{ - GtkComboBoxText* _tmp0_; - GtkEntry* _tmp1_; - GtkLabel* _tmp2_; - GtkComboBoxText* _tmp3_; - GtkComboBoxText* _tmp4_; - GtkLabel* _tmp5_; - GtkTextView* _tmp6_; -#line 1340 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_return_if_fail (PUBLISHING_PIWIGO_IS_PUBLISHING_OPTIONS_PANE (self)); -#line 1341 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp0_ = self->priv->existing_categories_combo; -#line 1341 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - gtk_widget_set_sensitive (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, gtk_widget_get_type (), GtkWidget), TRUE); -#line 1342 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp1_ = self->priv->new_category_entry; -#line 1342 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - gtk_widget_set_sensitive (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, gtk_widget_get_type (), GtkWidget), FALSE); -#line 1343 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp2_ = self->priv->within_existing_label; -#line 1343 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - gtk_widget_set_sensitive (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, gtk_widget_get_type (), GtkWidget), FALSE); -#line 1344 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp3_ = self->priv->within_existing_combo; -#line 1344 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - gtk_widget_set_sensitive (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, gtk_widget_get_type (), GtkWidget), FALSE); -#line 1345 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp4_ = self->priv->existing_categories_combo; -#line 1345 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - gtk_widget_grab_focus (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, gtk_widget_get_type (), GtkWidget)); -#line 1346 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp5_ = self->priv->album_comment_label; -#line 1346 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - gtk_widget_set_sensitive (G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, gtk_widget_get_type (), GtkWidget), FALSE); -#line 1347 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp6_ = self->priv->album_comment; -#line 1347 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - gtk_widget_set_sensitive (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, gtk_widget_get_type (), GtkWidget), FALSE); -#line 1348 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - publishing_piwigo_publishing_options_pane_update_publish_button_sensitivity (self); -#line 9874 "PiwigoPublishing.c" -} - - -static void -publishing_piwigo_publishing_options_pane_on_create_new_radio_clicked (PublishingPiwigoPublishingOptionsPane* self) -{ - GtkEntry* _tmp0_; - GtkLabel* _tmp1_; - GtkComboBoxText* _tmp2_; - GtkLabel* _tmp3_; - GtkTextView* _tmp4_; - GtkComboBoxText* _tmp5_; - GtkEntry* _tmp6_; -#line 1351 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_return_if_fail (PUBLISHING_PIWIGO_IS_PUBLISHING_OPTIONS_PANE (self)); -#line 1352 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp0_ = self->priv->new_category_entry; -#line 1352 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - gtk_widget_set_sensitive (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, gtk_widget_get_type (), GtkWidget), TRUE); -#line 1353 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp1_ = self->priv->within_existing_label; -#line 1353 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - gtk_widget_set_sensitive (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, gtk_widget_get_type (), GtkWidget), TRUE); -#line 1354 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp2_ = self->priv->within_existing_combo; -#line 1354 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - gtk_widget_set_sensitive (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, gtk_widget_get_type (), GtkWidget), TRUE); -#line 1355 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp3_ = self->priv->album_comment_label; -#line 1355 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - gtk_widget_set_sensitive (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, gtk_widget_get_type (), GtkWidget), TRUE); -#line 1356 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp4_ = self->priv->album_comment; -#line 1356 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - gtk_widget_set_sensitive (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, gtk_widget_get_type (), GtkWidget), TRUE); -#line 1357 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp5_ = self->priv->existing_categories_combo; -#line 1357 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - gtk_widget_set_sensitive (G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, gtk_widget_get_type (), GtkWidget), FALSE); -#line 1358 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp6_ = self->priv->new_category_entry; -#line 1358 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - gtk_widget_grab_focus (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, gtk_widget_get_type (), GtkWidget)); -#line 1359 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - publishing_piwigo_publishing_options_pane_update_publish_button_sensitivity (self); -#line 9920 "PiwigoPublishing.c" -} - - -static void -publishing_piwigo_publishing_options_pane_on_new_category_entry_changed (PublishingPiwigoPublishingOptionsPane* self) -{ -#line 1362 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_return_if_fail (PUBLISHING_PIWIGO_IS_PUBLISHING_OPTIONS_PANE (self)); -#line 1363 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - publishing_piwigo_publishing_options_pane_update_publish_button_sensitivity (self); -#line 9931 "PiwigoPublishing.c" -} - - -static void -publishing_piwigo_publishing_options_pane_on_existing_combo_changed (PublishingPiwigoPublishingOptionsPane* self) -{ -#line 1366 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_return_if_fail (PUBLISHING_PIWIGO_IS_PUBLISHING_OPTIONS_PANE (self)); -#line 1367 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - publishing_piwigo_publishing_options_pane_update_publish_button_sensitivity (self); -#line 9942 "PiwigoPublishing.c" -} - - -static void -publishing_piwigo_publishing_options_pane_update_publish_button_sensitivity (PublishingPiwigoPublishingOptionsPane* self) -{ - gchar* category_name = NULL; - GtkEntry* _tmp0_; - const gchar* _tmp1_; - gchar* _tmp2_; - gint a = 0; - GtkComboBoxText* _tmp3_; - gchar* search_name = NULL; - gint _tmp4_; - gboolean _tmp17_ = FALSE; - GtkRadioButton* _tmp18_; - GtkButton* _tmp22_; -#line 1370 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_return_if_fail (PUBLISHING_PIWIGO_IS_PUBLISHING_OPTIONS_PANE (self)); -#line 1371 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp0_ = self->priv->new_category_entry; -#line 1371 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp1_ = gtk_entry_get_text (_tmp0_); -#line 1371 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp2_ = string_strip (_tmp1_); -#line 1371 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - category_name = _tmp2_; -#line 1372 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp3_ = self->priv->within_existing_combo; -#line 1372 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - a = gtk_combo_box_get_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, gtk_combo_box_get_type (), GtkComboBox)); -#line 1374 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp4_ = a; -#line 1374 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - if (_tmp4_ <= 0) { -#line 9978 "PiwigoPublishing.c" - const gchar* _tmp5_; - gchar* _tmp6_; -#line 1375 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp5_ = category_name; -#line 1375 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp6_ = g_strconcat ("/ ", _tmp5_, NULL); -#line 1375 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_free0 (search_name); -#line 1375 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - search_name = _tmp6_; -#line 9989 "PiwigoPublishing.c" - } else { - gint _tmp7_; - GeeList* _tmp8_; - gint _tmp9_; - gpointer _tmp10_; - PublishingPiwigoCategory* _tmp11_; - const gchar* _tmp12_; - gchar* _tmp13_; - gchar* _tmp14_; - const gchar* _tmp15_; - gchar* _tmp16_; -#line 1377 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp7_ = a; -#line 1377 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - a = _tmp7_ - 1; -#line 1378 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp8_ = self->priv->_existing_categories; -#line 1378 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp9_ = a; -#line 1378 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp10_ = gee_list_get (_tmp8_, _tmp9_); -#line 1378 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp11_ = (PublishingPiwigoCategory*) _tmp10_; -#line 1378 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp12_ = _tmp11_->display_name; -#line 1378 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp13_ = g_strconcat (_tmp12_, "/ ", NULL); -#line 1378 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp14_ = _tmp13_; -#line 1378 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp15_ = category_name; -#line 1378 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp16_ = g_strconcat (_tmp14_, _tmp15_, NULL); -#line 1378 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_free0 (search_name); -#line 1378 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - search_name = _tmp16_; -#line 1378 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_free0 (_tmp14_); -#line 1378 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _publishing_piwigo_category_unref0 (_tmp11_); -#line 10031 "PiwigoPublishing.c" - } -#line 1382 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp18_ = self->priv->create_new_radio; -#line 1382 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - if (gtk_toggle_button_get_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp18_, gtk_toggle_button_get_type (), GtkToggleButton))) { -#line 10037 "PiwigoPublishing.c" - gboolean _tmp19_ = FALSE; - const gchar* _tmp20_; -#line 1384 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp20_ = category_name; -#line 1384 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - if (g_strcmp0 (_tmp20_, "") == 0) { -#line 1384 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp19_ = TRUE; -#line 10046 "PiwigoPublishing.c" - } else { - const gchar* _tmp21_; -#line 1385 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp21_ = search_name; -#line 1385 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp19_ = publishing_piwigo_publishing_options_pane_category_already_exists (self, _tmp21_); -#line 10053 "PiwigoPublishing.c" - } -#line 1384 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp17_ = _tmp19_; -#line 10057 "PiwigoPublishing.c" - } else { -#line 1382 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp17_ = FALSE; -#line 10061 "PiwigoPublishing.c" - } -#line 1380 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp22_ = self->priv->publish_button; -#line 1380 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - gtk_widget_set_sensitive (G_TYPE_CHECK_INSTANCE_CAST (_tmp22_, gtk_widget_get_type (), GtkWidget), !_tmp17_); -#line 1370 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_free0 (search_name); -#line 1370 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_free0 (category_name); -#line 10071 "PiwigoPublishing.c" -} - - -static void -publishing_piwigo_publishing_options_pane_real_on_pane_installed (ShotwellPluginsCommonBuilderPane* base) -{ - PublishingPiwigoPublishingOptionsPane * self; - GtkButton* _tmp0_; -#line 1391 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_PIWIGO_TYPE_PUBLISHING_OPTIONS_PANE, PublishingPiwigoPublishingOptionsPane); -#line 1392 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - SHOTWELL_PLUGINS_COMMON_BUILDER_PANE_CLASS (publishing_piwigo_publishing_options_pane_parent_class)->on_pane_installed (G_TYPE_CHECK_INSTANCE_CAST (self, SHOTWELL_PLUGINS_COMMON_TYPE_BUILDER_PANE, ShotwellPluginsCommonBuilderPane)); -#line 1394 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - publishing_piwigo_publishing_options_pane_create_categories_combo (self); -#line 1395 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - publishing_piwigo_publishing_options_pane_create_within_categories_combo (self); -#line 1396 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - publishing_piwigo_publishing_options_pane_create_permissions_combo (self); -#line 1397 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - publishing_piwigo_publishing_options_pane_create_size_combo (self); -#line 1399 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp0_ = self->priv->publish_button; -#line 1399 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - gtk_widget_set_can_default (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, gtk_widget_get_type (), GtkWidget), TRUE); -#line 1400 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - publishing_piwigo_publishing_options_pane_update_publish_button_sensitivity (self); -#line 10098 "PiwigoPublishing.c" -} - - -static gchar* -publishing_piwigo_publishing_options_pane_get_common_comment_if_possible (PublishingPiwigoPiwigoPublisher* publisher) -{ - gchar* result = NULL; - SpitPublishingPublishable** publishables = NULL; - SpitPublishingPluginHost* _tmp0_; - SpitPublishingPluginHost* _tmp1_; - gint _tmp2_; - SpitPublishingPublishable** _tmp3_; - SpitPublishingPublishable** _tmp4_; - gint _tmp4__length1; - gint publishables_length1; - gint _publishables_size_; - gchar* common = NULL; - gchar* _tmp5_; - gboolean isfirst = FALSE; - SpitPublishingPublishable** _tmp6_; - gint _tmp6__length1; - const gchar* _tmp18_; -#line 1403 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_return_val_if_fail (PUBLISHING_PIWIGO_IS_PIWIGO_PUBLISHER (publisher), NULL); -#line 1406 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp0_ = publishing_piwigo_piwigo_publisher_get_host (publisher); -#line 1406 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp1_ = _tmp0_; -#line 1406 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp3_ = spit_publishing_plugin_host_get_publishables (_tmp1_, &_tmp2_); -#line 1406 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp4_ = _tmp3_; -#line 1406 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp4__length1 = _tmp2_; -#line 1406 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_object_unref0 (_tmp1_); -#line 1406 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - publishables = _tmp4_; -#line 1406 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - publishables_length1 = _tmp4__length1; -#line 1406 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _publishables_size_ = publishables_length1; -#line 1407 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp5_ = g_strdup (""); -#line 1407 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - common = _tmp5_; -#line 1408 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - isfirst = TRUE; -#line 1409 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp6_ = publishables; -#line 1409 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp6__length1 = publishables_length1; -#line 1409 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - if (_tmp6_ != NULL) { -#line 10153 "PiwigoPublishing.c" - SpitPublishingPublishable** _tmp7_; - gint _tmp7__length1; -#line 1410 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp7_ = publishables; -#line 1410 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp7__length1 = publishables_length1; -#line 10160 "PiwigoPublishing.c" - { - SpitPublishingPublishable** pub_collection = NULL; - gint pub_collection_length1 = 0; - gint _pub_collection_size_ = 0; - gint pub_it = 0; -#line 1410 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - pub_collection = _tmp7_; -#line 1410 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - pub_collection_length1 = _tmp7__length1; -#line 1410 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - for (pub_it = 0; pub_it < _tmp7__length1; pub_it = pub_it + 1) { -#line 10172 "PiwigoPublishing.c" - SpitPublishingPublishable* _tmp8_; - SpitPublishingPublishable* pub = NULL; -#line 1410 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp8_ = _g_object_ref0 (pub_collection[pub_it]); -#line 1410 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - pub = _tmp8_; -#line 10179 "PiwigoPublishing.c" - { - gchar* cur = NULL; - SpitPublishingPublishable* _tmp9_; - gchar* _tmp10_; - const gchar* _tmp11_; - gboolean _tmp12_; -#line 1411 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp9_ = pub; -#line 1411 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp10_ = spit_publishing_publishable_get_param_string (_tmp9_, SPIT_PUBLISHING_PUBLISHABLE_PARAM_STRING_EVENTCOMMENT); -#line 1411 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - cur = _tmp10_; -#line 1413 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp11_ = cur; -#line 1413 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - if (_tmp11_ == NULL) { -#line 1414 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_free0 (cur); -#line 1414 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_object_unref0 (pub); -#line 1414 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - continue; -#line 10202 "PiwigoPublishing.c" - } -#line 1417 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp12_ = isfirst; -#line 1417 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - if (_tmp12_) { -#line 10208 "PiwigoPublishing.c" - const gchar* _tmp13_; - gchar* _tmp14_; -#line 1418 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp13_ = cur; -#line 1418 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp14_ = g_strdup (_tmp13_); -#line 1418 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_free0 (common); -#line 1418 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - common = _tmp14_; -#line 1419 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - isfirst = FALSE; -#line 10221 "PiwigoPublishing.c" - } else { - const gchar* _tmp15_; - const gchar* _tmp16_; -#line 1421 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp15_ = cur; -#line 1421 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp16_ = common; -#line 1421 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - if (g_strcmp0 (_tmp15_, _tmp16_) != 0) { -#line 10231 "PiwigoPublishing.c" - gchar* _tmp17_; -#line 1422 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp17_ = g_strdup (""); -#line 1422 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_free0 (common); -#line 1422 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - common = _tmp17_; -#line 1423 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_free0 (cur); -#line 1423 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_object_unref0 (pub); -#line 1423 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - break; -#line 10245 "PiwigoPublishing.c" - } - } -#line 1410 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_free0 (cur); -#line 1410 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_object_unref0 (pub); -#line 10252 "PiwigoPublishing.c" - } - } - } - } -#line 1428 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp18_ = common; -#line 1428 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_debug ("PiwigoPublishing.vala:1428: PiwigoConnector: found common event commen" \ -"t %s\n", _tmp18_); -#line 1429 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - result = common; -#line 1429 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - publishables = (_vala_array_free (publishables, publishables_length1, (GDestroyNotify) g_object_unref), NULL); -#line 1429 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - return result; -#line 10267 "PiwigoPublishing.c" -} - - -static void -publishing_piwigo_publishing_options_pane_create_categories_combo (PublishingPiwigoPublishingOptionsPane* self) -{ - GeeList* _tmp14_; - gboolean _tmp15_; - gboolean _tmp16_; - const gchar* _tmp29_; -#line 1432 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_return_if_fail (PUBLISHING_PIWIGO_IS_PUBLISHING_OPTIONS_PANE (self)); -#line 10280 "PiwigoPublishing.c" - { - GeeList* _cat_list = NULL; - GeeList* _tmp0_; - GeeList* _tmp1_; - gint _cat_size = 0; - GeeList* _tmp2_; - gint _tmp3_; - gint _tmp4_; - gint _cat_index = 0; -#line 1433 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp0_ = self->priv->_existing_categories; -#line 1433 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp1_ = _g_object_ref0 (_tmp0_); -#line 1433 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _cat_list = _tmp1_; -#line 1433 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp2_ = _cat_list; -#line 1433 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp3_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, GEE_TYPE_COLLECTION, GeeCollection)); -#line 1433 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp4_ = _tmp3_; -#line 1433 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _cat_size = _tmp4_; -#line 1433 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _cat_index = -1; -#line 1433 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - while (TRUE) { -#line 10308 "PiwigoPublishing.c" - gint _tmp5_; - gint _tmp6_; - gint _tmp7_; - PublishingPiwigoCategory* cat = NULL; - GeeList* _tmp8_; - gint _tmp9_; - gpointer _tmp10_; - GtkComboBoxText* _tmp11_; - PublishingPiwigoCategory* _tmp12_; - const gchar* _tmp13_; -#line 1433 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp5_ = _cat_index; -#line 1433 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _cat_index = _tmp5_ + 1; -#line 1433 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp6_ = _cat_index; -#line 1433 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp7_ = _cat_size; -#line 1433 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - if (!(_tmp6_ < _tmp7_)) { -#line 1433 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - break; -#line 10331 "PiwigoPublishing.c" - } -#line 1433 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp8_ = _cat_list; -#line 1433 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp9_ = _cat_index; -#line 1433 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp10_ = gee_list_get (_tmp8_, _tmp9_); -#line 1433 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - cat = (PublishingPiwigoCategory*) _tmp10_; -#line 1434 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp11_ = self->priv->existing_categories_combo; -#line 1434 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp12_ = cat; -#line 1434 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp13_ = _tmp12_->display_name; -#line 1434 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - gtk_combo_box_text_append_text (_tmp11_, _tmp13_); -#line 1433 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _publishing_piwigo_category_unref0 (cat); -#line 10351 "PiwigoPublishing.c" - } -#line 1433 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_object_unref0 (_cat_list); -#line 10355 "PiwigoPublishing.c" - } -#line 1436 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp14_ = self->priv->_existing_categories; -#line 1436 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp15_ = gee_collection_get_is_empty (G_TYPE_CHECK_INSTANCE_CAST (_tmp14_, GEE_TYPE_COLLECTION, GeeCollection)); -#line 1436 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp16_ = _tmp15_; -#line 1436 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - if (_tmp16_) { -#line 10365 "PiwigoPublishing.c" - GtkComboBoxText* _tmp17_; - GtkRadioButton* _tmp18_; - GtkRadioButton* _tmp19_; - GtkTextView* _tmp20_; - GtkLabel* _tmp21_; - GtkEntry* _tmp22_; -#line 1438 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp17_ = self->priv->existing_categories_combo; -#line 1438 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - gtk_widget_set_sensitive (G_TYPE_CHECK_INSTANCE_CAST (_tmp17_, gtk_widget_get_type (), GtkWidget), FALSE); -#line 1439 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp18_ = self->priv->use_existing_radio; -#line 1439 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - gtk_widget_set_sensitive (G_TYPE_CHECK_INSTANCE_CAST (_tmp18_, gtk_widget_get_type (), GtkWidget), FALSE); -#line 1440 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp19_ = self->priv->create_new_radio; -#line 1440 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - gtk_toggle_button_set_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp19_, gtk_toggle_button_get_type (), GtkToggleButton), TRUE); -#line 1441 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp20_ = self->priv->album_comment; -#line 1441 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - gtk_widget_set_sensitive (G_TYPE_CHECK_INSTANCE_CAST (_tmp20_, gtk_widget_get_type (), GtkWidget), TRUE); -#line 1442 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp21_ = self->priv->album_comment_label; -#line 1442 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - gtk_widget_set_sensitive (G_TYPE_CHECK_INSTANCE_CAST (_tmp21_, gtk_widget_get_type (), GtkWidget), TRUE); -#line 1443 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp22_ = self->priv->new_category_entry; -#line 1443 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - gtk_widget_grab_focus (G_TYPE_CHECK_INSTANCE_CAST (_tmp22_, gtk_widget_get_type (), GtkWidget)); -#line 10396 "PiwigoPublishing.c" - } else { - gint last_category_index = 0; - gint _tmp23_; - GtkComboBoxText* _tmp24_; - gint _tmp25_; - GtkEntry* _tmp26_; - GtkTextView* _tmp27_; - GtkLabel* _tmp28_; -#line 1445 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp23_ = self->priv->_last_category; -#line 1445 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - last_category_index = publishing_piwigo_publishing_options_pane_find_category_index (self, _tmp23_); -#line 1446 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp24_ = self->priv->existing_categories_combo; -#line 1446 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp25_ = last_category_index; -#line 1446 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - gtk_combo_box_set_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp24_, gtk_combo_box_get_type (), GtkComboBox), _tmp25_); -#line 1447 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp26_ = self->priv->new_category_entry; -#line 1447 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - gtk_widget_set_sensitive (G_TYPE_CHECK_INSTANCE_CAST (_tmp26_, gtk_widget_get_type (), GtkWidget), FALSE); -#line 1448 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp27_ = self->priv->album_comment; -#line 1448 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - gtk_widget_set_sensitive (G_TYPE_CHECK_INSTANCE_CAST (_tmp27_, gtk_widget_get_type (), GtkWidget), FALSE); -#line 1449 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp28_ = self->priv->album_comment_label; -#line 1449 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - gtk_widget_set_sensitive (G_TYPE_CHECK_INSTANCE_CAST (_tmp28_, gtk_widget_get_type (), GtkWidget), FALSE); -#line 10427 "PiwigoPublishing.c" - } -#line 1451 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp29_ = publishing_piwigo_publishing_options_pane_DEFAULT_CATEGORY_NAME; -#line 1451 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - if (!publishing_piwigo_publishing_options_pane_category_already_exists (self, _tmp29_)) { -#line 10433 "PiwigoPublishing.c" - GtkEntry* _tmp30_; - const gchar* _tmp31_; -#line 1452 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp30_ = self->priv->new_category_entry; -#line 1452 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp31_ = publishing_piwigo_publishing_options_pane_DEFAULT_CATEGORY_NAME; -#line 1452 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - gtk_entry_set_text (_tmp30_, _tmp31_); -#line 10442 "PiwigoPublishing.c" - } -} - - -static void -publishing_piwigo_publishing_options_pane_create_within_categories_combo (PublishingPiwigoPublishingOptionsPane* self) -{ - GtkComboBoxText* _tmp0_; - GtkLabel* _tmp15_; - GtkComboBoxText* _tmp16_; - GtkComboBoxText* _tmp17_; -#line 1455 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_return_if_fail (PUBLISHING_PIWIGO_IS_PUBLISHING_OPTIONS_PANE (self)); -#line 1457 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp0_ = self->priv->within_existing_combo; -#line 1457 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - gtk_combo_box_text_append_text (_tmp0_, "/ "); -#line 10460 "PiwigoPublishing.c" - { - GeeList* _cat_list = NULL; - GeeList* _tmp1_; - GeeList* _tmp2_; - gint _cat_size = 0; - GeeList* _tmp3_; - gint _tmp4_; - gint _tmp5_; - gint _cat_index = 0; -#line 1458 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp1_ = self->priv->_existing_categories; -#line 1458 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp2_ = _g_object_ref0 (_tmp1_); -#line 1458 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _cat_list = _tmp2_; -#line 1458 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp3_ = _cat_list; -#line 1458 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp4_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, GEE_TYPE_COLLECTION, GeeCollection)); -#line 1458 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp5_ = _tmp4_; -#line 1458 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _cat_size = _tmp5_; -#line 1458 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _cat_index = -1; -#line 1458 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - while (TRUE) { -#line 10488 "PiwigoPublishing.c" - gint _tmp6_; - gint _tmp7_; - gint _tmp8_; - PublishingPiwigoCategory* cat = NULL; - GeeList* _tmp9_; - gint _tmp10_; - gpointer _tmp11_; - GtkComboBoxText* _tmp12_; - PublishingPiwigoCategory* _tmp13_; - const gchar* _tmp14_; -#line 1458 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp6_ = _cat_index; -#line 1458 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _cat_index = _tmp6_ + 1; -#line 1458 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp7_ = _cat_index; -#line 1458 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp8_ = _cat_size; -#line 1458 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - if (!(_tmp7_ < _tmp8_)) { -#line 1458 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - break; -#line 10511 "PiwigoPublishing.c" - } -#line 1458 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp9_ = _cat_list; -#line 1458 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp10_ = _cat_index; -#line 1458 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp11_ = gee_list_get (_tmp9_, _tmp10_); -#line 1458 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - cat = (PublishingPiwigoCategory*) _tmp11_; -#line 1459 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp12_ = self->priv->within_existing_combo; -#line 1459 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp13_ = cat; -#line 1459 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp14_ = _tmp13_->display_name; -#line 1459 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - gtk_combo_box_text_append_text (_tmp12_, _tmp14_); -#line 1458 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _publishing_piwigo_category_unref0 (cat); -#line 10531 "PiwigoPublishing.c" - } -#line 1458 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_object_unref0 (_cat_list); -#line 10535 "PiwigoPublishing.c" - } -#line 1462 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp15_ = self->priv->within_existing_label; -#line 1462 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - gtk_widget_set_sensitive (G_TYPE_CHECK_INSTANCE_CAST (_tmp15_, gtk_widget_get_type (), GtkWidget), FALSE); -#line 1463 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp16_ = self->priv->within_existing_combo; -#line 1463 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - gtk_combo_box_set_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp16_, gtk_combo_box_get_type (), GtkComboBox), 0); -#line 1464 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp17_ = self->priv->within_existing_combo; -#line 1464 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - gtk_widget_set_sensitive (G_TYPE_CHECK_INSTANCE_CAST (_tmp17_, gtk_widget_get_type (), GtkWidget), FALSE); -#line 10549 "PiwigoPublishing.c" -} - - -static void -publishing_piwigo_publishing_options_pane_create_permissions_combo (PublishingPiwigoPublishingOptionsPane* self) -{ - PublishingPiwigoPermissionLevel** _tmp0_; - gint _tmp0__length1; - gint last_permission_level_index = 0; - gint _tmp5_; - gint _tmp6_; -#line 1467 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_return_if_fail (PUBLISHING_PIWIGO_IS_PUBLISHING_OPTIONS_PANE (self)); -#line 1468 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp0_ = self->priv->perm_levels; -#line 1468 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp0__length1 = self->priv->perm_levels_length1; -#line 10567 "PiwigoPublishing.c" - { - PublishingPiwigoPermissionLevel** perm_collection = NULL; - gint perm_collection_length1 = 0; - gint _perm_collection_size_ = 0; - gint perm_it = 0; -#line 1468 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - perm_collection = _tmp0_; -#line 1468 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - perm_collection_length1 = _tmp0__length1; -#line 1468 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - for (perm_it = 0; perm_it < _tmp0__length1; perm_it = perm_it + 1) { -#line 10579 "PiwigoPublishing.c" - PublishingPiwigoPermissionLevel* _tmp1_; - PublishingPiwigoPermissionLevel* perm = NULL; -#line 1468 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp1_ = _publishing_piwigo_permission_level_ref0 (perm_collection[perm_it]); -#line 1468 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - perm = _tmp1_; -#line 10586 "PiwigoPublishing.c" - { - GtkComboBoxText* _tmp2_; - PublishingPiwigoPermissionLevel* _tmp3_; - const gchar* _tmp4_; -#line 1469 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp2_ = self->priv->perms_combo; -#line 1469 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp3_ = perm; -#line 1469 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp4_ = _tmp3_->name; -#line 1469 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - gtk_combo_box_text_append_text (_tmp2_, _tmp4_); -#line 1468 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _publishing_piwigo_permission_level_unref0 (perm); -#line 10601 "PiwigoPublishing.c" - } - } - } -#line 1471 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp5_ = self->priv->_last_permission_level; -#line 1471 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - last_permission_level_index = publishing_piwigo_publishing_options_pane_find_permission_level_index (self, _tmp5_); -#line 1472 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp6_ = last_permission_level_index; -#line 1472 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - if (_tmp6_ < 0) { -#line 10613 "PiwigoPublishing.c" - GtkComboBoxText* _tmp7_; -#line 1473 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp7_ = self->priv->perms_combo; -#line 1473 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - gtk_combo_box_set_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, gtk_combo_box_get_type (), GtkComboBox), 0); -#line 10619 "PiwigoPublishing.c" - } else { - GtkComboBoxText* _tmp8_; - gint _tmp9_; -#line 1475 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp8_ = self->priv->perms_combo; -#line 1475 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp9_ = last_permission_level_index; -#line 1475 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - gtk_combo_box_set_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, gtk_combo_box_get_type (), GtkComboBox), _tmp9_); -#line 10629 "PiwigoPublishing.c" - } -} - - -static void -publishing_piwigo_publishing_options_pane_create_size_combo (PublishingPiwigoPublishingOptionsPane* self) -{ - PublishingPiwigoSizeEntry** _tmp0_; - gint _tmp0__length1; - gint last_size_index = 0; - gint _tmp5_; - gint _tmp6_; -#line 1479 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_return_if_fail (PUBLISHING_PIWIGO_IS_PUBLISHING_OPTIONS_PANE (self)); -#line 1480 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp0_ = self->priv->photo_sizes; -#line 1480 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp0__length1 = self->priv->photo_sizes_length1; -#line 10648 "PiwigoPublishing.c" - { - PublishingPiwigoSizeEntry** size_collection = NULL; - gint size_collection_length1 = 0; - gint _size_collection_size_ = 0; - gint size_it = 0; -#line 1480 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - size_collection = _tmp0_; -#line 1480 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - size_collection_length1 = _tmp0__length1; -#line 1480 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - for (size_it = 0; size_it < _tmp0__length1; size_it = size_it + 1) { -#line 10660 "PiwigoPublishing.c" - PublishingPiwigoSizeEntry* _tmp1_; - PublishingPiwigoSizeEntry* size = NULL; -#line 1480 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp1_ = _publishing_piwigo_size_entry_ref0 (size_collection[size_it]); -#line 1480 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - size = _tmp1_; -#line 10667 "PiwigoPublishing.c" - { - GtkComboBoxText* _tmp2_; - PublishingPiwigoSizeEntry* _tmp3_; - const gchar* _tmp4_; -#line 1481 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp2_ = self->priv->size_combo; -#line 1481 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp3_ = size; -#line 1481 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp4_ = _tmp3_->name; -#line 1481 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - gtk_combo_box_text_append_text (_tmp2_, _tmp4_); -#line 1480 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _publishing_piwigo_size_entry_unref0 (size); -#line 10682 "PiwigoPublishing.c" - } - } - } -#line 1483 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp5_ = self->priv->_last_photo_size; -#line 1483 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - last_size_index = publishing_piwigo_publishing_options_pane_find_size_index (self, _tmp5_); -#line 1484 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp6_ = last_size_index; -#line 1484 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - if (_tmp6_ < 0) { -#line 10694 "PiwigoPublishing.c" - GtkComboBoxText* _tmp7_; -#line 1485 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp7_ = self->priv->size_combo; -#line 1485 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - gtk_combo_box_set_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, gtk_combo_box_get_type (), GtkComboBox), publishing_piwigo_publishing_options_pane_find_size_index (self, PUBLISHING_PIWIGO_ORIGINAL_SIZE)); -#line 10700 "PiwigoPublishing.c" - } else { - GtkComboBoxText* _tmp8_; - gint _tmp9_; -#line 1487 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp8_ = self->priv->size_combo; -#line 1487 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp9_ = last_size_index; -#line 1487 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - gtk_combo_box_set_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, gtk_combo_box_get_type (), GtkComboBox), _tmp9_); -#line 10710 "PiwigoPublishing.c" - } -} - - -static gint -publishing_piwigo_publishing_options_pane_find_category_index (PublishingPiwigoPublishingOptionsPane* self, - gint category_id) -{ - gint result = 0; - gint _result_ = 0; -#line 1491 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_return_val_if_fail (PUBLISHING_PIWIGO_IS_PUBLISHING_OPTIONS_PANE (self), 0); -#line 1492 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _result_ = 0; -#line 10725 "PiwigoPublishing.c" - { - gint i = 0; -#line 1493 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - i = 0; -#line 10730 "PiwigoPublishing.c" - { - gboolean _tmp0_ = FALSE; -#line 1493 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp0_ = TRUE; -#line 1493 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - while (TRUE) { -#line 10737 "PiwigoPublishing.c" - gint _tmp2_; - GeeList* _tmp3_; - gint _tmp4_; - gint _tmp5_; - GeeList* _tmp6_; - gint _tmp7_; - gpointer _tmp8_; - PublishingPiwigoCategory* _tmp9_; - gint _tmp10_; - gboolean _tmp11_; -#line 1493 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - if (!_tmp0_) { -#line 10750 "PiwigoPublishing.c" - gint _tmp1_; -#line 1493 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp1_ = i; -#line 1493 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - i = _tmp1_ + 1; -#line 10756 "PiwigoPublishing.c" - } -#line 1493 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp0_ = FALSE; -#line 1493 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp2_ = i; -#line 1493 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp3_ = self->priv->_existing_categories; -#line 1493 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp4_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, GEE_TYPE_COLLECTION, GeeCollection)); -#line 1493 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp5_ = _tmp4_; -#line 1493 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - if (!(_tmp2_ < _tmp5_)) { -#line 1493 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - break; -#line 10772 "PiwigoPublishing.c" - } -#line 1494 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp6_ = self->priv->_existing_categories; -#line 1494 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp7_ = i; -#line 1494 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp8_ = gee_list_get (_tmp6_, _tmp7_); -#line 1494 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp9_ = (PublishingPiwigoCategory*) _tmp8_; -#line 1494 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp10_ = _tmp9_->id; -#line 1494 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp11_ = _tmp10_ == category_id; -#line 1494 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _publishing_piwigo_category_unref0 (_tmp9_); -#line 1494 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - if (_tmp11_) { -#line 10790 "PiwigoPublishing.c" - gint _tmp12_; -#line 1495 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp12_ = i; -#line 1495 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _result_ = _tmp12_; -#line 1496 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - break; -#line 10798 "PiwigoPublishing.c" - } - } - } - } -#line 1499 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - result = _result_; -#line 1499 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - return result; -#line 10807 "PiwigoPublishing.c" -} - - -static gint -publishing_piwigo_publishing_options_pane_find_permission_level_index (PublishingPiwigoPublishingOptionsPane* self, - gint permission_level_id) -{ - gint result = 0; - gint _result_ = 0; -#line 1502 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_return_val_if_fail (PUBLISHING_PIWIGO_IS_PUBLISHING_OPTIONS_PANE (self), 0); -#line 1503 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _result_ = -1; -#line 10821 "PiwigoPublishing.c" - { - gint i = 0; -#line 1504 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - i = 0; -#line 10826 "PiwigoPublishing.c" - { - gboolean _tmp0_ = FALSE; -#line 1504 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp0_ = TRUE; -#line 1504 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - while (TRUE) { -#line 10833 "PiwigoPublishing.c" - gint _tmp2_; - PublishingPiwigoPermissionLevel** _tmp3_; - gint _tmp3__length1; - PublishingPiwigoPermissionLevel** _tmp4_; - gint _tmp4__length1; - gint _tmp5_; - PublishingPiwigoPermissionLevel* _tmp6_; - gint _tmp7_; -#line 1504 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - if (!_tmp0_) { -#line 10844 "PiwigoPublishing.c" - gint _tmp1_; -#line 1504 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp1_ = i; -#line 1504 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - i = _tmp1_ + 1; -#line 10850 "PiwigoPublishing.c" - } -#line 1504 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp0_ = FALSE; -#line 1504 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp2_ = i; -#line 1504 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp3_ = self->priv->perm_levels; -#line 1504 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp3__length1 = self->priv->perm_levels_length1; -#line 1504 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - if (!(_tmp2_ < _tmp3__length1)) { -#line 1504 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - break; -#line 10864 "PiwigoPublishing.c" - } -#line 1505 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp4_ = self->priv->perm_levels; -#line 1505 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp4__length1 = self->priv->perm_levels_length1; -#line 1505 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp5_ = i; -#line 1505 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp6_ = _tmp4_[_tmp5_]; -#line 1505 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp7_ = _tmp6_->id; -#line 1505 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - if (_tmp7_ == permission_level_id) { -#line 10878 "PiwigoPublishing.c" - gint _tmp8_; -#line 1506 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp8_ = i; -#line 1506 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _result_ = _tmp8_; -#line 1507 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - break; -#line 10886 "PiwigoPublishing.c" - } - } - } - } -#line 1510 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - result = _result_; -#line 1510 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - return result; -#line 10895 "PiwigoPublishing.c" -} - - -static gint -publishing_piwigo_publishing_options_pane_find_size_index (PublishingPiwigoPublishingOptionsPane* self, - gint size_id) -{ - gint result = 0; - gint _result_ = 0; -#line 1513 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_return_val_if_fail (PUBLISHING_PIWIGO_IS_PUBLISHING_OPTIONS_PANE (self), 0); -#line 1514 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _result_ = -1; -#line 10909 "PiwigoPublishing.c" - { - gint i = 0; -#line 1515 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - i = 0; -#line 10914 "PiwigoPublishing.c" - { - gboolean _tmp0_ = FALSE; -#line 1515 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp0_ = TRUE; -#line 1515 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - while (TRUE) { -#line 10921 "PiwigoPublishing.c" - gint _tmp2_; - PublishingPiwigoSizeEntry** _tmp3_; - gint _tmp3__length1; - PublishingPiwigoSizeEntry** _tmp4_; - gint _tmp4__length1; - gint _tmp5_; - PublishingPiwigoSizeEntry* _tmp6_; - gint _tmp7_; -#line 1515 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - if (!_tmp0_) { -#line 10932 "PiwigoPublishing.c" - gint _tmp1_; -#line 1515 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp1_ = i; -#line 1515 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - i = _tmp1_ + 1; -#line 10938 "PiwigoPublishing.c" - } -#line 1515 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp0_ = FALSE; -#line 1515 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp2_ = i; -#line 1515 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp3_ = self->priv->photo_sizes; -#line 1515 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp3__length1 = self->priv->photo_sizes_length1; -#line 1515 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - if (!(_tmp2_ < _tmp3__length1)) { -#line 1515 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - break; -#line 10952 "PiwigoPublishing.c" - } -#line 1516 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp4_ = self->priv->photo_sizes; -#line 1516 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp4__length1 = self->priv->photo_sizes_length1; -#line 1516 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp5_ = i; -#line 1516 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp6_ = _tmp4_[_tmp5_]; -#line 1516 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp7_ = _tmp6_->id; -#line 1516 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - if (_tmp7_ == size_id) { -#line 10966 "PiwigoPublishing.c" - gint _tmp8_; -#line 1517 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp8_ = i; -#line 1517 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _result_ = _tmp8_; -#line 1518 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - break; -#line 10974 "PiwigoPublishing.c" - } - } - } - } -#line 1521 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - result = _result_; -#line 1521 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - return result; -#line 10983 "PiwigoPublishing.c" -} - - -static gboolean -publishing_piwigo_publishing_options_pane_category_already_exists (PublishingPiwigoPublishingOptionsPane* self, - const gchar* category_name) -{ - gboolean result = FALSE; - gboolean _result_ = FALSE; -#line 1524 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_return_val_if_fail (PUBLISHING_PIWIGO_IS_PUBLISHING_OPTIONS_PANE (self), FALSE); -#line 1524 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_return_val_if_fail (category_name != NULL, FALSE); -#line 1525 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _result_ = FALSE; -#line 10999 "PiwigoPublishing.c" - { - GeeList* _category_list = NULL; - GeeList* _tmp0_; - GeeList* _tmp1_; - gint _category_size = 0; - GeeList* _tmp2_; - gint _tmp3_; - gint _tmp4_; - gint _category_index = 0; -#line 1526 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp0_ = self->priv->_existing_categories; -#line 1526 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp1_ = _g_object_ref0 (_tmp0_); -#line 1526 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _category_list = _tmp1_; -#line 1526 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp2_ = _category_list; -#line 1526 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp3_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, GEE_TYPE_COLLECTION, GeeCollection)); -#line 1526 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp4_ = _tmp3_; -#line 1526 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _category_size = _tmp4_; -#line 1526 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _category_index = -1; -#line 1526 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - while (TRUE) { -#line 11027 "PiwigoPublishing.c" - gint _tmp5_; - gint _tmp6_; - gint _tmp7_; - PublishingPiwigoCategory* category = NULL; - GeeList* _tmp8_; - gint _tmp9_; - gpointer _tmp10_; - PublishingPiwigoCategory* _tmp11_; - const gchar* _tmp12_; - gchar* _tmp13_; - gchar* _tmp14_; - gboolean _tmp15_; -#line 1526 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp5_ = _category_index; -#line 1526 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _category_index = _tmp5_ + 1; -#line 1526 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp6_ = _category_index; -#line 1526 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp7_ = _category_size; -#line 1526 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - if (!(_tmp6_ < _tmp7_)) { -#line 1526 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - break; -#line 11052 "PiwigoPublishing.c" - } -#line 1526 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp8_ = _category_list; -#line 1526 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp9_ = _category_index; -#line 1526 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp10_ = gee_list_get (_tmp8_, _tmp9_); -#line 1526 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - category = (PublishingPiwigoCategory*) _tmp10_; -#line 1527 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp11_ = category; -#line 1527 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp12_ = _tmp11_->display_name; -#line 1527 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp13_ = string_strip (_tmp12_); -#line 1527 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp14_ = _tmp13_; -#line 1527 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp15_ = g_strcmp0 (_tmp14_, category_name) == 0; -#line 1527 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_free0 (_tmp14_); -#line 1527 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - if (_tmp15_) { -#line 1528 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _result_ = TRUE; -#line 1529 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _publishing_piwigo_category_unref0 (category); -#line 1529 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - break; -#line 11082 "PiwigoPublishing.c" - } -#line 1526 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _publishing_piwigo_category_unref0 (category); -#line 11086 "PiwigoPublishing.c" - } -#line 1526 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_object_unref0 (_category_list); -#line 11090 "PiwigoPublishing.c" - } -#line 1532 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - result = _result_; -#line 1532 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - return result; -#line 11096 "PiwigoPublishing.c" -} - - -static gint -publishing_piwigo_publishing_options_pane_get_last_category (PublishingPiwigoPublishingOptionsPane* self) -{ - gint result; - gint _tmp0_; -#line 1209 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_return_val_if_fail (PUBLISHING_PIWIGO_IS_PUBLISHING_OPTIONS_PANE (self), 0); -#line 1209 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp0_ = self->priv->_last_category; -#line 1209 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - result = _tmp0_; -#line 1209 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - return result; -#line 11113 "PiwigoPublishing.c" -} - - -static void -publishing_piwigo_publishing_options_pane_set_last_category (PublishingPiwigoPublishingOptionsPane* self, - gint value) -{ -#line 1209 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_return_if_fail (PUBLISHING_PIWIGO_IS_PUBLISHING_OPTIONS_PANE (self)); -#line 1209 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - if (publishing_piwigo_publishing_options_pane_get_last_category (self) != value) { -#line 1209 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - self->priv->_last_category = value; -#line 1209 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_object_notify_by_pspec ((GObject *) self, publishing_piwigo_publishing_options_pane_properties[PUBLISHING_PIWIGO_PUBLISHING_OPTIONS_PANE_LAST_CATEGORY_PROPERTY]); -#line 11129 "PiwigoPublishing.c" - } -} - - -static gint -publishing_piwigo_publishing_options_pane_get_last_permission_level (PublishingPiwigoPublishingOptionsPane* self) -{ - gint result; - gint _tmp0_; -#line 1210 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_return_val_if_fail (PUBLISHING_PIWIGO_IS_PUBLISHING_OPTIONS_PANE (self), 0); -#line 1210 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp0_ = self->priv->_last_permission_level; -#line 1210 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - result = _tmp0_; -#line 1210 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - return result; -#line 11147 "PiwigoPublishing.c" -} - - -static void -publishing_piwigo_publishing_options_pane_set_last_permission_level (PublishingPiwigoPublishingOptionsPane* self, - gint value) -{ -#line 1210 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_return_if_fail (PUBLISHING_PIWIGO_IS_PUBLISHING_OPTIONS_PANE (self)); -#line 1210 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - if (publishing_piwigo_publishing_options_pane_get_last_permission_level (self) != value) { -#line 1210 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - self->priv->_last_permission_level = value; -#line 1210 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_object_notify_by_pspec ((GObject *) self, publishing_piwigo_publishing_options_pane_properties[PUBLISHING_PIWIGO_PUBLISHING_OPTIONS_PANE_LAST_PERMISSION_LEVEL_PROPERTY]); -#line 11163 "PiwigoPublishing.c" - } -} - - -static gint -publishing_piwigo_publishing_options_pane_get_last_photo_size (PublishingPiwigoPublishingOptionsPane* self) -{ - gint result; - gint _tmp0_; -#line 1211 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_return_val_if_fail (PUBLISHING_PIWIGO_IS_PUBLISHING_OPTIONS_PANE (self), 0); -#line 1211 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp0_ = self->priv->_last_photo_size; -#line 1211 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - result = _tmp0_; -#line 1211 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - return result; -#line 11181 "PiwigoPublishing.c" -} - - -static void -publishing_piwigo_publishing_options_pane_set_last_photo_size (PublishingPiwigoPublishingOptionsPane* self, - gint value) -{ -#line 1211 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_return_if_fail (PUBLISHING_PIWIGO_IS_PUBLISHING_OPTIONS_PANE (self)); -#line 1211 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - if (publishing_piwigo_publishing_options_pane_get_last_photo_size (self) != value) { -#line 1211 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - self->priv->_last_photo_size = value; -#line 1211 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_object_notify_by_pspec ((GObject *) self, publishing_piwigo_publishing_options_pane_properties[PUBLISHING_PIWIGO_PUBLISHING_OPTIONS_PANE_LAST_PHOTO_SIZE_PROPERTY]); -#line 11197 "PiwigoPublishing.c" - } -} - - -static gboolean -publishing_piwigo_publishing_options_pane_get_last_title_as_comment (PublishingPiwigoPublishingOptionsPane* self) -{ - gboolean result; - gboolean _tmp0_; -#line 1212 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_return_val_if_fail (PUBLISHING_PIWIGO_IS_PUBLISHING_OPTIONS_PANE (self), FALSE); -#line 1212 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp0_ = self->priv->_last_title_as_comment; -#line 1212 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - result = _tmp0_; -#line 1212 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - return result; -#line 11215 "PiwigoPublishing.c" -} - - -static void -publishing_piwigo_publishing_options_pane_set_last_title_as_comment (PublishingPiwigoPublishingOptionsPane* self, - gboolean value) -{ -#line 1212 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_return_if_fail (PUBLISHING_PIWIGO_IS_PUBLISHING_OPTIONS_PANE (self)); -#line 1212 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - if (publishing_piwigo_publishing_options_pane_get_last_title_as_comment (self) != value) { -#line 1212 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - self->priv->_last_title_as_comment = value; -#line 1212 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_object_notify_by_pspec ((GObject *) self, publishing_piwigo_publishing_options_pane_properties[PUBLISHING_PIWIGO_PUBLISHING_OPTIONS_PANE_LAST_TITLE_AS_COMMENT_PROPERTY]); -#line 11231 "PiwigoPublishing.c" - } -} - - -static gboolean -publishing_piwigo_publishing_options_pane_get_last_no_upload_tags (PublishingPiwigoPublishingOptionsPane* self) -{ - gboolean result; - gboolean _tmp0_; -#line 1213 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_return_val_if_fail (PUBLISHING_PIWIGO_IS_PUBLISHING_OPTIONS_PANE (self), FALSE); -#line 1213 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp0_ = self->priv->_last_no_upload_tags; -#line 1213 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - result = _tmp0_; -#line 1213 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - return result; -#line 11249 "PiwigoPublishing.c" -} - - -static void -publishing_piwigo_publishing_options_pane_set_last_no_upload_tags (PublishingPiwigoPublishingOptionsPane* self, - gboolean value) -{ -#line 1213 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_return_if_fail (PUBLISHING_PIWIGO_IS_PUBLISHING_OPTIONS_PANE (self)); -#line 1213 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - if (publishing_piwigo_publishing_options_pane_get_last_no_upload_tags (self) != value) { -#line 1213 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - self->priv->_last_no_upload_tags = value; -#line 1213 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_object_notify_by_pspec ((GObject *) self, publishing_piwigo_publishing_options_pane_properties[PUBLISHING_PIWIGO_PUBLISHING_OPTIONS_PANE_LAST_NO_UPLOAD_TAGS_PROPERTY]); -#line 11265 "PiwigoPublishing.c" - } -} - - -static gboolean -publishing_piwigo_publishing_options_pane_get_strip_metadata_enabled (PublishingPiwigoPublishingOptionsPane* self) -{ - gboolean result; - gboolean _tmp0_; -#line 1214 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_return_val_if_fail (PUBLISHING_PIWIGO_IS_PUBLISHING_OPTIONS_PANE (self), FALSE); -#line 1214 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp0_ = self->priv->_strip_metadata_enabled; -#line 1214 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - result = _tmp0_; -#line 1214 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - return result; -#line 11283 "PiwigoPublishing.c" -} - - -static void -publishing_piwigo_publishing_options_pane_set_strip_metadata_enabled (PublishingPiwigoPublishingOptionsPane* self, - gboolean value) -{ -#line 1214 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_return_if_fail (PUBLISHING_PIWIGO_IS_PUBLISHING_OPTIONS_PANE (self)); -#line 1214 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - if (publishing_piwigo_publishing_options_pane_get_strip_metadata_enabled (self) != value) { -#line 1214 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - self->priv->_strip_metadata_enabled = value; -#line 1214 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_object_notify_by_pspec ((GObject *) self, publishing_piwigo_publishing_options_pane_properties[PUBLISHING_PIWIGO_PUBLISHING_OPTIONS_PANE_STRIP_METADATA_ENABLED_PROPERTY]); -#line 11299 "PiwigoPublishing.c" - } -} - - -static GeeList* -publishing_piwigo_publishing_options_pane_get_existing_categories (PublishingPiwigoPublishingOptionsPane* self) -{ - GeeList* result; - GeeList* _tmp0_; -#line 1215 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_return_val_if_fail (PUBLISHING_PIWIGO_IS_PUBLISHING_OPTIONS_PANE (self), NULL); -#line 1215 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp0_ = self->priv->_existing_categories; -#line 1215 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - result = _tmp0_; -#line 1215 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - return result; -#line 11317 "PiwigoPublishing.c" -} - - -static void -publishing_piwigo_publishing_options_pane_set_existing_categories (PublishingPiwigoPublishingOptionsPane* self, - GeeList* value) -{ -#line 1215 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_return_if_fail (PUBLISHING_PIWIGO_IS_PUBLISHING_OPTIONS_PANE (self)); -#line 1215 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - if (publishing_piwigo_publishing_options_pane_get_existing_categories (self) != value) { -#line 11329 "PiwigoPublishing.c" - GeeList* _tmp0_; -#line 1215 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp0_ = _g_object_ref0 (value); -#line 1215 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_object_unref0 (self->priv->_existing_categories); -#line 1215 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - self->priv->_existing_categories = _tmp0_; -#line 1215 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_object_notify_by_pspec ((GObject *) self, publishing_piwigo_publishing_options_pane_properties[PUBLISHING_PIWIGO_PUBLISHING_OPTIONS_PANE_EXISTING_CATEGORIES_PROPERTY]); -#line 11339 "PiwigoPublishing.c" - } -} - - -static const gchar* -publishing_piwigo_publishing_options_pane_get_default_comment (PublishingPiwigoPublishingOptionsPane* self) -{ - const gchar* result; - const gchar* _tmp0_; -#line 1216 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_return_val_if_fail (PUBLISHING_PIWIGO_IS_PUBLISHING_OPTIONS_PANE (self), NULL); -#line 1216 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp0_ = self->priv->_default_comment; -#line 1216 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - result = _tmp0_; -#line 1216 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - return result; -#line 11357 "PiwigoPublishing.c" -} - - -static void -publishing_piwigo_publishing_options_pane_set_default_comment (PublishingPiwigoPublishingOptionsPane* self, - const gchar* value) -{ -#line 1216 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_return_if_fail (PUBLISHING_PIWIGO_IS_PUBLISHING_OPTIONS_PANE (self)); -#line 1216 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - if (g_strcmp0 (value, publishing_piwigo_publishing_options_pane_get_default_comment (self)) != 0) { -#line 11369 "PiwigoPublishing.c" - gchar* _tmp0_; -#line 1216 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp0_ = g_strdup (value); -#line 1216 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_free0 (self->priv->_default_comment); -#line 1216 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - self->priv->_default_comment = _tmp0_; -#line 1216 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_object_notify_by_pspec ((GObject *) self, publishing_piwigo_publishing_options_pane_properties[PUBLISHING_PIWIGO_PUBLISHING_OPTIONS_PANE_DEFAULT_COMMENT_PROPERTY]); -#line 11379 "PiwigoPublishing.c" - } -} - - -static void -g_cclosure_user_marshal_VOID__PUBLISHING_PIWIGO_PUBLISHING_PARAMETERS_BOOLEAN (GClosure * closure, - GValue * return_value, - guint n_param_values, - const GValue * param_values, - gpointer invocation_hint, - gpointer marshal_data) -{ - typedef void (*GMarshalFunc_VOID__PUBLISHING_PIWIGO_PUBLISHING_PARAMETERS_BOOLEAN) (gpointer data1, gpointer arg_1, gboolean arg_2, gpointer data2); - register GMarshalFunc_VOID__PUBLISHING_PIWIGO_PUBLISHING_PARAMETERS_BOOLEAN callback; - register GCClosure * cc; - register gpointer data1; - register gpointer data2; - cc = (GCClosure *) closure; -#line 1186 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_return_if_fail (n_param_values == 3); -#line 1186 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - if (G_CCLOSURE_SWAP_DATA (closure)) { -#line 1186 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - data1 = closure->data; -#line 1186 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - data2 = param_values->data[0].v_pointer; -#line 11406 "PiwigoPublishing.c" - } else { -#line 1186 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - data1 = param_values->data[0].v_pointer; -#line 1186 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - data2 = closure->data; -#line 11412 "PiwigoPublishing.c" - } -#line 1186 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - callback = (GMarshalFunc_VOID__PUBLISHING_PIWIGO_PUBLISHING_PARAMETERS_BOOLEAN) (marshal_data ? marshal_data : cc->callback); -#line 1186 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - callback (data1, publishing_piwigo_value_get_publishing_parameters (param_values + 1), g_value_get_boolean (param_values + 2), data2); -#line 11418 "PiwigoPublishing.c" -} - - -static void -publishing_piwigo_publishing_options_pane_class_init (PublishingPiwigoPublishingOptionsPaneClass * klass) -{ - gchar* _tmp0_; -#line 1186 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - publishing_piwigo_publishing_options_pane_parent_class = g_type_class_peek_parent (klass); -#line 1186 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_type_class_add_private (klass, sizeof (PublishingPiwigoPublishingOptionsPanePrivate)); -#line 1186 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - ((GObjectClass *) klass)->constructed = (void (*) (GObject *)) publishing_piwigo_publishing_options_pane_real_constructed; -#line 1186 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - ((ShotwellPluginsCommonBuilderPaneClass *) klass)->on_pane_installed = (void (*) (ShotwellPluginsCommonBuilderPane *)) publishing_piwigo_publishing_options_pane_real_on_pane_installed; -#line 1186 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - G_OBJECT_CLASS (klass)->get_property = _vala_publishing_piwigo_publishing_options_pane_get_property; -#line 1186 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - G_OBJECT_CLASS (klass)->set_property = _vala_publishing_piwigo_publishing_options_pane_set_property; -#line 1186 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - G_OBJECT_CLASS (klass)->finalize = publishing_piwigo_publishing_options_pane_finalize; -#line 1186 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_object_class_install_property (G_OBJECT_CLASS (klass), PUBLISHING_PIWIGO_PUBLISHING_OPTIONS_PANE_LAST_CATEGORY_PROPERTY, publishing_piwigo_publishing_options_pane_properties[PUBLISHING_PIWIGO_PUBLISHING_OPTIONS_PANE_LAST_CATEGORY_PROPERTY] = g_param_spec_int ("last-category", "last-category", "last-category", G_MININT, G_MAXINT, 0, G_PARAM_STATIC_STRINGS | G_PARAM_WRITABLE | G_PARAM_CONSTRUCT_ONLY)); -#line 1186 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_object_class_install_property (G_OBJECT_CLASS (klass), PUBLISHING_PIWIGO_PUBLISHING_OPTIONS_PANE_LAST_PERMISSION_LEVEL_PROPERTY, publishing_piwigo_publishing_options_pane_properties[PUBLISHING_PIWIGO_PUBLISHING_OPTIONS_PANE_LAST_PERMISSION_LEVEL_PROPERTY] = g_param_spec_int ("last-permission-level", "last-permission-level", "last-permission-level", G_MININT, G_MAXINT, 0, G_PARAM_STATIC_STRINGS | G_PARAM_WRITABLE | G_PARAM_CONSTRUCT_ONLY)); -#line 1186 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_object_class_install_property (G_OBJECT_CLASS (klass), PUBLISHING_PIWIGO_PUBLISHING_OPTIONS_PANE_LAST_PHOTO_SIZE_PROPERTY, publishing_piwigo_publishing_options_pane_properties[PUBLISHING_PIWIGO_PUBLISHING_OPTIONS_PANE_LAST_PHOTO_SIZE_PROPERTY] = g_param_spec_int ("last-photo-size", "last-photo-size", "last-photo-size", G_MININT, G_MAXINT, 0, G_PARAM_STATIC_STRINGS | G_PARAM_WRITABLE | G_PARAM_CONSTRUCT_ONLY)); -#line 1186 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_object_class_install_property (G_OBJECT_CLASS (klass), PUBLISHING_PIWIGO_PUBLISHING_OPTIONS_PANE_LAST_TITLE_AS_COMMENT_PROPERTY, publishing_piwigo_publishing_options_pane_properties[PUBLISHING_PIWIGO_PUBLISHING_OPTIONS_PANE_LAST_TITLE_AS_COMMENT_PROPERTY] = g_param_spec_boolean ("last-title-as-comment", "last-title-as-comment", "last-title-as-comment", FALSE, G_PARAM_STATIC_STRINGS | G_PARAM_WRITABLE | G_PARAM_CONSTRUCT_ONLY)); -#line 1186 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_object_class_install_property (G_OBJECT_CLASS (klass), PUBLISHING_PIWIGO_PUBLISHING_OPTIONS_PANE_LAST_NO_UPLOAD_TAGS_PROPERTY, publishing_piwigo_publishing_options_pane_properties[PUBLISHING_PIWIGO_PUBLISHING_OPTIONS_PANE_LAST_NO_UPLOAD_TAGS_PROPERTY] = g_param_spec_boolean ("last-no-upload-tags", "last-no-upload-tags", "last-no-upload-tags", FALSE, G_PARAM_STATIC_STRINGS | G_PARAM_WRITABLE | G_PARAM_CONSTRUCT_ONLY)); -#line 1186 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_object_class_install_property (G_OBJECT_CLASS (klass), PUBLISHING_PIWIGO_PUBLISHING_OPTIONS_PANE_STRIP_METADATA_ENABLED_PROPERTY, publishing_piwigo_publishing_options_pane_properties[PUBLISHING_PIWIGO_PUBLISHING_OPTIONS_PANE_STRIP_METADATA_ENABLED_PROPERTY] = g_param_spec_boolean ("strip-metadata-enabled", "strip-metadata-enabled", "strip-metadata-enabled", FALSE, G_PARAM_STATIC_STRINGS | G_PARAM_WRITABLE | G_PARAM_CONSTRUCT_ONLY)); -#line 1186 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_object_class_install_property (G_OBJECT_CLASS (klass), PUBLISHING_PIWIGO_PUBLISHING_OPTIONS_PANE_EXISTING_CATEGORIES_PROPERTY, publishing_piwigo_publishing_options_pane_properties[PUBLISHING_PIWIGO_PUBLISHING_OPTIONS_PANE_EXISTING_CATEGORIES_PROPERTY] = g_param_spec_object ("existing-categories", "existing-categories", "existing-categories", GEE_TYPE_LIST, G_PARAM_STATIC_STRINGS | G_PARAM_WRITABLE | G_PARAM_CONSTRUCT_ONLY)); -#line 1186 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_object_class_install_property (G_OBJECT_CLASS (klass), PUBLISHING_PIWIGO_PUBLISHING_OPTIONS_PANE_DEFAULT_COMMENT_PROPERTY, publishing_piwigo_publishing_options_pane_properties[PUBLISHING_PIWIGO_PUBLISHING_OPTIONS_PANE_DEFAULT_COMMENT_PROPERTY] = g_param_spec_string ("default-comment", "default-comment", "default-comment", NULL, G_PARAM_STATIC_STRINGS | G_PARAM_WRITABLE | G_PARAM_CONSTRUCT_ONLY)); -#line 1186 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - publishing_piwigo_publishing_options_pane_signals[PUBLISHING_PIWIGO_PUBLISHING_OPTIONS_PANE_PUBLISH_SIGNAL] = g_signal_new ("publish", PUBLISHING_PIWIGO_TYPE_PUBLISHING_OPTIONS_PANE, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_user_marshal_VOID__PUBLISHING_PIWIGO_PUBLISHING_PARAMETERS_BOOLEAN, G_TYPE_NONE, 2, PUBLISHING_PIWIGO_TYPE_PUBLISHING_PARAMETERS, G_TYPE_BOOLEAN); -#line 1186 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - publishing_piwigo_publishing_options_pane_signals[PUBLISHING_PIWIGO_PUBLISHING_OPTIONS_PANE_LOGOUT_SIGNAL] = g_signal_new ("logout", PUBLISHING_PIWIGO_TYPE_PUBLISHING_OPTIONS_PANE, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_marshal_VOID__VOID, G_TYPE_NONE, 0); -#line 1188 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp0_ = g_strdup (_ ("Shotwell Connect")); -#line 1188 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - publishing_piwigo_publishing_options_pane_DEFAULT_CATEGORY_NAME = _tmp0_; -#line 11464 "PiwigoPublishing.c" -} - - -static void -publishing_piwigo_publishing_options_pane_instance_init (PublishingPiwigoPublishingOptionsPane * self) -{ -#line 1186 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - self->priv = PUBLISHING_PIWIGO_PUBLISHING_OPTIONS_PANE_GET_PRIVATE (self); -#line 1198 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - self->priv->strip_metadata_check = NULL; -#line 1199 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - self->priv->title_as_comment_check = NULL; -#line 1200 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - self->priv->no_upload_tags_check = NULL; -#line 11479 "PiwigoPublishing.c" -} - - -static void -publishing_piwigo_publishing_options_pane_finalize (GObject * obj) -{ - PublishingPiwigoPublishingOptionsPane * self; -#line 1186 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, PUBLISHING_PIWIGO_TYPE_PUBLISHING_OPTIONS_PANE, PublishingPiwigoPublishingOptionsPane); -#line 1190 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_object_unref0 (self->priv->use_existing_radio); -#line 1191 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_object_unref0 (self->priv->create_new_radio); -#line 1192 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_object_unref0 (self->priv->existing_categories_combo); -#line 1193 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_object_unref0 (self->priv->new_category_entry); -#line 1194 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_object_unref0 (self->priv->within_existing_label); -#line 1195 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_object_unref0 (self->priv->within_existing_combo); -#line 1196 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_object_unref0 (self->priv->perms_combo); -#line 1197 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_object_unref0 (self->priv->size_combo); -#line 1198 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_object_unref0 (self->priv->strip_metadata_check); -#line 1199 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_object_unref0 (self->priv->title_as_comment_check); -#line 1200 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_object_unref0 (self->priv->no_upload_tags_check); -#line 1201 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_object_unref0 (self->priv->logout_button); -#line 1202 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_object_unref0 (self->priv->publish_button); -#line 1203 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_object_unref0 (self->priv->album_comment); -#line 1204 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_object_unref0 (self->priv->album_comment_label); -#line 1206 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - self->priv->perm_levels = (_vala_array_free (self->priv->perm_levels, self->priv->perm_levels_length1, (GDestroyNotify) publishing_piwigo_permission_level_unref), NULL); -#line 1207 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - self->priv->photo_sizes = (_vala_array_free (self->priv->photo_sizes, self->priv->photo_sizes_length1, (GDestroyNotify) publishing_piwigo_size_entry_unref), NULL); -#line 1215 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_object_unref0 (self->priv->_existing_categories); -#line 1216 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_free0 (self->priv->_default_comment); -#line 1186 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - G_OBJECT_CLASS (publishing_piwigo_publishing_options_pane_parent_class)->finalize (obj); -#line 11529 "PiwigoPublishing.c" -} - - -/** - * The publishing options pane. - */ -GType -publishing_piwigo_publishing_options_pane_get_type (void) -{ - static volatile gsize publishing_piwigo_publishing_options_pane_type_id__volatile = 0; - if (g_once_init_enter (&publishing_piwigo_publishing_options_pane_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (PublishingPiwigoPublishingOptionsPaneClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) publishing_piwigo_publishing_options_pane_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PublishingPiwigoPublishingOptionsPane), 0, (GInstanceInitFunc) publishing_piwigo_publishing_options_pane_instance_init, NULL }; - GType publishing_piwigo_publishing_options_pane_type_id; - publishing_piwigo_publishing_options_pane_type_id = g_type_register_static (SHOTWELL_PLUGINS_COMMON_TYPE_BUILDER_PANE, "PublishingPiwigoPublishingOptionsPane", &g_define_type_info, 0); - g_once_init_leave (&publishing_piwigo_publishing_options_pane_type_id__volatile, publishing_piwigo_publishing_options_pane_type_id); - } - return publishing_piwigo_publishing_options_pane_type_id__volatile; -} - - -static void -_vala_publishing_piwigo_publishing_options_pane_get_property (GObject * object, - guint property_id, - GValue * value, - GParamSpec * pspec) -{ - PublishingPiwigoPublishingOptionsPane * self; - self = G_TYPE_CHECK_INSTANCE_CAST (object, PUBLISHING_PIWIGO_TYPE_PUBLISHING_OPTIONS_PANE, PublishingPiwigoPublishingOptionsPane); -#line 1186 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - switch (property_id) { -#line 1186 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - case PUBLISHING_PIWIGO_PUBLISHING_OPTIONS_PANE_LAST_CATEGORY_PROPERTY: -#line 1186 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_value_set_int (value, publishing_piwigo_publishing_options_pane_get_last_category (self)); -#line 1186 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - break; -#line 1186 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - case PUBLISHING_PIWIGO_PUBLISHING_OPTIONS_PANE_LAST_PERMISSION_LEVEL_PROPERTY: -#line 1186 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_value_set_int (value, publishing_piwigo_publishing_options_pane_get_last_permission_level (self)); -#line 1186 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - break; -#line 1186 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - case PUBLISHING_PIWIGO_PUBLISHING_OPTIONS_PANE_LAST_PHOTO_SIZE_PROPERTY: -#line 1186 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_value_set_int (value, publishing_piwigo_publishing_options_pane_get_last_photo_size (self)); -#line 1186 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - break; -#line 1186 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - case PUBLISHING_PIWIGO_PUBLISHING_OPTIONS_PANE_LAST_TITLE_AS_COMMENT_PROPERTY: -#line 1186 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_value_set_boolean (value, publishing_piwigo_publishing_options_pane_get_last_title_as_comment (self)); -#line 1186 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - break; -#line 1186 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - case PUBLISHING_PIWIGO_PUBLISHING_OPTIONS_PANE_LAST_NO_UPLOAD_TAGS_PROPERTY: -#line 1186 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_value_set_boolean (value, publishing_piwigo_publishing_options_pane_get_last_no_upload_tags (self)); -#line 1186 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - break; -#line 1186 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - case PUBLISHING_PIWIGO_PUBLISHING_OPTIONS_PANE_STRIP_METADATA_ENABLED_PROPERTY: -#line 1186 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_value_set_boolean (value, publishing_piwigo_publishing_options_pane_get_strip_metadata_enabled (self)); -#line 1186 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - break; -#line 1186 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - case PUBLISHING_PIWIGO_PUBLISHING_OPTIONS_PANE_EXISTING_CATEGORIES_PROPERTY: -#line 1186 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_value_set_object (value, publishing_piwigo_publishing_options_pane_get_existing_categories (self)); -#line 1186 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - break; -#line 1186 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - case PUBLISHING_PIWIGO_PUBLISHING_OPTIONS_PANE_DEFAULT_COMMENT_PROPERTY: -#line 1186 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_value_set_string (value, publishing_piwigo_publishing_options_pane_get_default_comment (self)); -#line 1186 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - break; -#line 11608 "PiwigoPublishing.c" - default: -#line 1186 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec); -#line 1186 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - break; -#line 11614 "PiwigoPublishing.c" - } -} - - -static void -_vala_publishing_piwigo_publishing_options_pane_set_property (GObject * object, - guint property_id, - const GValue * value, - GParamSpec * pspec) -{ - PublishingPiwigoPublishingOptionsPane * self; - self = G_TYPE_CHECK_INSTANCE_CAST (object, PUBLISHING_PIWIGO_TYPE_PUBLISHING_OPTIONS_PANE, PublishingPiwigoPublishingOptionsPane); -#line 1186 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - switch (property_id) { -#line 1186 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - case PUBLISHING_PIWIGO_PUBLISHING_OPTIONS_PANE_LAST_CATEGORY_PROPERTY: -#line 1186 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - publishing_piwigo_publishing_options_pane_set_last_category (self, g_value_get_int (value)); -#line 1186 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - break; -#line 1186 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - case PUBLISHING_PIWIGO_PUBLISHING_OPTIONS_PANE_LAST_PERMISSION_LEVEL_PROPERTY: -#line 1186 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - publishing_piwigo_publishing_options_pane_set_last_permission_level (self, g_value_get_int (value)); -#line 1186 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - break; -#line 1186 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - case PUBLISHING_PIWIGO_PUBLISHING_OPTIONS_PANE_LAST_PHOTO_SIZE_PROPERTY: -#line 1186 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - publishing_piwigo_publishing_options_pane_set_last_photo_size (self, g_value_get_int (value)); -#line 1186 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - break; -#line 1186 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - case PUBLISHING_PIWIGO_PUBLISHING_OPTIONS_PANE_LAST_TITLE_AS_COMMENT_PROPERTY: -#line 1186 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - publishing_piwigo_publishing_options_pane_set_last_title_as_comment (self, g_value_get_boolean (value)); -#line 1186 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - break; -#line 1186 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - case PUBLISHING_PIWIGO_PUBLISHING_OPTIONS_PANE_LAST_NO_UPLOAD_TAGS_PROPERTY: -#line 1186 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - publishing_piwigo_publishing_options_pane_set_last_no_upload_tags (self, g_value_get_boolean (value)); -#line 1186 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - break; -#line 1186 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - case PUBLISHING_PIWIGO_PUBLISHING_OPTIONS_PANE_STRIP_METADATA_ENABLED_PROPERTY: -#line 1186 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - publishing_piwigo_publishing_options_pane_set_strip_metadata_enabled (self, g_value_get_boolean (value)); -#line 1186 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - break; -#line 1186 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - case PUBLISHING_PIWIGO_PUBLISHING_OPTIONS_PANE_EXISTING_CATEGORIES_PROPERTY: -#line 1186 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - publishing_piwigo_publishing_options_pane_set_existing_categories (self, g_value_get_object (value)); -#line 1186 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - break; -#line 1186 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - case PUBLISHING_PIWIGO_PUBLISHING_OPTIONS_PANE_DEFAULT_COMMENT_PROPERTY: -#line 1186 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - publishing_piwigo_publishing_options_pane_set_default_comment (self, g_value_get_string (value)); -#line 1186 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - break; -#line 11677 "PiwigoPublishing.c" - default: -#line 1186 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec); -#line 1186 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - break; -#line 11683 "PiwigoPublishing.c" - } -} - - -PublishingPiwigoSession* -publishing_piwigo_session_construct (GType object_type) -{ - PublishingPiwigoSession* self = NULL; -#line 1548 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - self = (PublishingPiwigoSession*) publishing_rest_support_session_construct (object_type, ""); -#line 1547 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - return self; -#line 11696 "PiwigoPublishing.c" -} - - -PublishingPiwigoSession* -publishing_piwigo_session_new (void) -{ -#line 1547 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - return publishing_piwigo_session_construct (PUBLISHING_PIWIGO_TYPE_SESSION); -#line 11705 "PiwigoPublishing.c" -} - - -static gboolean -publishing_piwigo_session_real_is_authenticated (PublishingRESTSupportSession* base) -{ - PublishingPiwigoSession * self; - gboolean result = FALSE; - gboolean _tmp0_ = FALSE; - gboolean _tmp1_ = FALSE; - const gchar* _tmp2_; -#line 1551 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_PIWIGO_TYPE_SESSION, PublishingPiwigoSession); -#line 1552 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp2_ = self->priv->pwg_id; -#line 1552 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - if (_tmp2_ != NULL) { -#line 11723 "PiwigoPublishing.c" - const gchar* _tmp3_; -#line 1552 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp3_ = self->priv->pwg_url; -#line 1552 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp1_ = _tmp3_ != NULL; -#line 11729 "PiwigoPublishing.c" - } else { -#line 1552 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp1_ = FALSE; -#line 11733 "PiwigoPublishing.c" - } -#line 1552 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - if (_tmp1_) { -#line 11737 "PiwigoPublishing.c" - const gchar* _tmp4_; -#line 1552 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp4_ = self->priv->username; -#line 1552 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp0_ = _tmp4_ != NULL; -#line 11743 "PiwigoPublishing.c" - } else { -#line 1552 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp0_ = FALSE; -#line 11747 "PiwigoPublishing.c" - } -#line 1552 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - result = _tmp0_; -#line 1552 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - return result; -#line 11753 "PiwigoPublishing.c" -} - - -void -publishing_piwigo_session_authenticate (PublishingPiwigoSession* self, - const gchar* url, - const gchar* username, - const gchar* id) -{ - gchar* _tmp0_; - gchar* _tmp1_; - gchar* _tmp2_; -#line 1555 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_return_if_fail (PUBLISHING_PIWIGO_IS_SESSION (self)); -#line 1555 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_return_if_fail (url != NULL); -#line 1555 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_return_if_fail (username != NULL); -#line 1555 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_return_if_fail (id != NULL); -#line 1556 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp0_ = g_strdup (url); -#line 1556 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_free0 (self->priv->pwg_url); -#line 1556 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - self->priv->pwg_url = _tmp0_; -#line 1557 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp1_ = g_strdup (username); -#line 1557 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_free0 (self->priv->username); -#line 1557 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - self->priv->username = _tmp1_; -#line 1558 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp2_ = g_strdup (id); -#line 1558 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_free0 (self->priv->pwg_id); -#line 1558 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - self->priv->pwg_id = _tmp2_; -#line 11792 "PiwigoPublishing.c" -} - - -void -publishing_piwigo_session_deauthenticate (PublishingPiwigoSession* self) -{ -#line 1561 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_return_if_fail (PUBLISHING_PIWIGO_IS_SESSION (self)); -#line 1562 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_free0 (self->priv->pwg_url); -#line 1562 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - self->priv->pwg_url = NULL; -#line 1563 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_free0 (self->priv->pwg_id); -#line 1563 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - self->priv->pwg_id = NULL; -#line 1564 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_free0 (self->priv->username); -#line 1564 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - self->priv->username = NULL; -#line 11813 "PiwigoPublishing.c" -} - - -gchar* -publishing_piwigo_session_get_username (PublishingPiwigoSession* self) -{ - gchar* result = NULL; - const gchar* _tmp0_; - gchar* _tmp1_; -#line 1567 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_return_val_if_fail (PUBLISHING_PIWIGO_IS_SESSION (self), NULL); -#line 1568 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp0_ = self->priv->username; -#line 1568 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp1_ = g_strdup (_tmp0_); -#line 1568 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - result = _tmp1_; -#line 1568 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - return result; -#line 11833 "PiwigoPublishing.c" -} - - -gchar* -publishing_piwigo_session_get_pwg_url (PublishingPiwigoSession* self) -{ - gchar* result = NULL; - const gchar* _tmp0_; - gchar* _tmp1_; -#line 1571 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_return_val_if_fail (PUBLISHING_PIWIGO_IS_SESSION (self), NULL); -#line 1572 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp0_ = self->priv->pwg_url; -#line 1572 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp1_ = g_strdup (_tmp0_); -#line 1572 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - result = _tmp1_; -#line 1572 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - return result; -#line 11853 "PiwigoPublishing.c" -} - - -gchar* -publishing_piwigo_session_get_pwg_id (PublishingPiwigoSession* self) -{ - gchar* result = NULL; - const gchar* _tmp0_; - gchar* _tmp1_; -#line 1575 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_return_val_if_fail (PUBLISHING_PIWIGO_IS_SESSION (self), NULL); -#line 1576 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp0_ = self->priv->pwg_id; -#line 1576 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp1_ = g_strdup (_tmp0_); -#line 1576 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - result = _tmp1_; -#line 1576 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - return result; -#line 11873 "PiwigoPublishing.c" -} - - -void -publishing_piwigo_session_set_pwg_id (PublishingPiwigoSession* self, - const gchar* id) -{ - gchar* _tmp0_; -#line 1579 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_return_if_fail (PUBLISHING_PIWIGO_IS_SESSION (self)); -#line 1579 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_return_if_fail (id != NULL); -#line 1580 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp0_ = g_strdup (id); -#line 1580 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_free0 (self->priv->pwg_id); -#line 1580 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - self->priv->pwg_id = _tmp0_; -#line 11892 "PiwigoPublishing.c" -} - - -static void -publishing_piwigo_session_class_init (PublishingPiwigoSessionClass * klass) -{ -#line 1542 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - publishing_piwigo_session_parent_class = g_type_class_peek_parent (klass); -#line 1542 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - ((PublishingRESTSupportSessionClass *) klass)->finalize = publishing_piwigo_session_finalize; -#line 1542 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_type_class_add_private (klass, sizeof (PublishingPiwigoSessionPrivate)); -#line 1542 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - ((PublishingRESTSupportSessionClass *) klass)->is_authenticated = (gboolean (*) (PublishingRESTSupportSession *)) publishing_piwigo_session_real_is_authenticated; -#line 11907 "PiwigoPublishing.c" -} - - -static void -publishing_piwigo_session_instance_init (PublishingPiwigoSession * self) -{ -#line 1542 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - self->priv = PUBLISHING_PIWIGO_SESSION_GET_PRIVATE (self); -#line 1543 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - self->priv->pwg_url = NULL; -#line 1544 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - self->priv->pwg_id = NULL; -#line 1545 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - self->priv->username = NULL; -#line 11922 "PiwigoPublishing.c" -} - - -static void -publishing_piwigo_session_finalize (PublishingRESTSupportSession * obj) -{ - PublishingPiwigoSession * self; -#line 1542 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, PUBLISHING_PIWIGO_TYPE_SESSION, PublishingPiwigoSession); -#line 1543 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_free0 (self->priv->pwg_url); -#line 1544 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_free0 (self->priv->pwg_id); -#line 1545 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_free0 (self->priv->username); -#line 1542 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - PUBLISHING_REST_SUPPORT_SESSION_CLASS (publishing_piwigo_session_parent_class)->finalize (obj); -#line 11940 "PiwigoPublishing.c" -} - - -/** - * Session class that keeps track of the authentication status and of the - * user token pwg_id. - */ -GType -publishing_piwigo_session_get_type (void) -{ - static volatile gsize publishing_piwigo_session_type_id__volatile = 0; - if (g_once_init_enter (&publishing_piwigo_session_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (PublishingPiwigoSessionClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) publishing_piwigo_session_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PublishingPiwigoSession), 0, (GInstanceInitFunc) publishing_piwigo_session_instance_init, NULL }; - GType publishing_piwigo_session_type_id; - publishing_piwigo_session_type_id = g_type_register_static (PUBLISHING_REST_SUPPORT_TYPE_SESSION, "PublishingPiwigoSession", &g_define_type_info, 0); - g_once_init_leave (&publishing_piwigo_session_type_id__volatile, publishing_piwigo_session_type_id); - } - return publishing_piwigo_session_type_id__volatile; -} - - -PublishingPiwigoTransaction* -publishing_piwigo_transaction_construct (GType object_type, - PublishingPiwigoSession* session) -{ - PublishingPiwigoTransaction* self = NULL; -#line 1593 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_return_val_if_fail (PUBLISHING_PIWIGO_IS_SESSION (session), NULL); -#line 1594 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - self = (PublishingPiwigoTransaction*) publishing_rest_support_transaction_construct (object_type, G_TYPE_CHECK_INSTANCE_CAST (session, PUBLISHING_REST_SUPPORT_TYPE_SESSION, PublishingRESTSupportSession), PUBLISHING_REST_SUPPORT_HTTP_METHOD_POST); -#line 1595 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - if (publishing_rest_support_session_is_authenticated (G_TYPE_CHECK_INSTANCE_CAST (session, PUBLISHING_REST_SUPPORT_TYPE_SESSION, PublishingRESTSupportSession))) { -#line 11973 "PiwigoPublishing.c" - gchar* _tmp0_; - gchar* _tmp1_; - gchar* _tmp2_; - gchar* _tmp3_; -#line 1596 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp0_ = publishing_piwigo_session_get_pwg_id (session); -#line 1596 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp1_ = _tmp0_; -#line 1596 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp2_ = g_strconcat ("pwg_id=", _tmp1_, NULL); -#line 1596 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp3_ = _tmp2_; -#line 1596 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - publishing_rest_support_transaction_add_header (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "Cookie", _tmp3_); -#line 1596 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_free0 (_tmp3_); -#line 1596 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_free0 (_tmp1_); -#line 11992 "PiwigoPublishing.c" - } -#line 1593 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - return self; -#line 11996 "PiwigoPublishing.c" -} - - -PublishingPiwigoTransaction* -publishing_piwigo_transaction_new (PublishingPiwigoSession* session) -{ -#line 1593 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - return publishing_piwigo_transaction_construct (PUBLISHING_PIWIGO_TYPE_TRANSACTION, session); -#line 12005 "PiwigoPublishing.c" -} - - -PublishingPiwigoTransaction* -publishing_piwigo_transaction_construct_authenticated (GType object_type, - PublishingPiwigoSession* session) -{ - PublishingPiwigoTransaction* self = NULL; - gchar* _tmp0_; - gchar* _tmp1_; - gchar* _tmp2_; - gchar* _tmp3_; - gchar* _tmp4_; - gchar* _tmp5_; -#line 1600 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_return_val_if_fail (PUBLISHING_PIWIGO_IS_SESSION (session), NULL); -#line 1601 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp0_ = publishing_piwigo_session_get_pwg_url (session); -#line 1601 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp1_ = _tmp0_; -#line 1601 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - self = (PublishingPiwigoTransaction*) publishing_rest_support_transaction_construct_with_endpoint_url (object_type, G_TYPE_CHECK_INSTANCE_CAST (session, PUBLISHING_REST_SUPPORT_TYPE_SESSION, PublishingRESTSupportSession), _tmp1_, PUBLISHING_REST_SUPPORT_HTTP_METHOD_POST); -#line 1601 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_free0 (_tmp1_); -#line 1602 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp2_ = publishing_piwigo_session_get_pwg_id (session); -#line 1602 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp3_ = _tmp2_; -#line 1602 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp4_ = g_strconcat ("pwg_id=", _tmp3_, NULL); -#line 1602 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp5_ = _tmp4_; -#line 1602 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - publishing_rest_support_transaction_add_header (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "Cookie", _tmp5_); -#line 1602 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_free0 (_tmp5_); -#line 1602 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_free0 (_tmp3_); -#line 1600 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - return self; -#line 12046 "PiwigoPublishing.c" -} - - -PublishingPiwigoTransaction* -publishing_piwigo_transaction_new_authenticated (PublishingPiwigoSession* session) -{ -#line 1600 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - return publishing_piwigo_transaction_construct_authenticated (PUBLISHING_PIWIGO_TYPE_TRANSACTION, session); -#line 12055 "PiwigoPublishing.c" -} - - -gchar* -publishing_piwigo_transaction_validate_xml (PublishingRESTSupportXmlDocument* doc) -{ - gchar* result = NULL; - xmlNode* root = NULL; - xmlNode* _tmp0_; - gchar* status = NULL; - xmlNode* _tmp1_; - gchar* _tmp2_; - const gchar* _tmp3_; - const gchar* _tmp5_; - xmlNode* errcode = NULL; - xmlNode* _tmp10_; - gchar* _tmp11_; - gchar* _tmp12_; - xmlNode* _tmp13_; - gchar* _tmp14_; - gchar* _tmp15_; - gchar* _tmp16_; - gchar* _tmp17_; - GError * _inner_error_ = NULL; -#line 1605 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_return_val_if_fail (PUBLISHING_REST_SUPPORT_IS_XML_DOCUMENT (doc), NULL); -#line 1606 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp0_ = publishing_rest_support_xml_document_get_root_node (doc); -#line 1606 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - root = _tmp0_; -#line 1607 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp1_ = root; -#line 1607 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp2_ = (gchar*) xmlGetProp (_tmp1_, (xmlChar*) "stat"); -#line 1607 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - status = _tmp2_; -#line 1610 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp3_ = status; -#line 1610 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - if (_tmp3_ == NULL) { -#line 12096 "PiwigoPublishing.c" - gchar* _tmp4_; -#line 1611 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp4_ = g_strdup ("No status property in root node"); -#line 1611 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - result = _tmp4_; -#line 1611 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_free0 (status); -#line 1611 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - return result; -#line 12106 "PiwigoPublishing.c" - } -#line 1613 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp5_ = status; -#line 1613 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - if (g_strcmp0 (_tmp5_, "ok") == 0) { -#line 1614 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - result = NULL; -#line 1614 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_free0 (status); -#line 1614 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - return result; -#line 12118 "PiwigoPublishing.c" - } - { - xmlNode* _tmp6_ = NULL; - xmlNode* _tmp7_; - xmlNode* _tmp8_; -#line 1618 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp7_ = root; -#line 1618 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp8_ = publishing_rest_support_xml_document_get_named_child (doc, _tmp7_, "err", &_inner_error_); -#line 1618 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp6_ = _tmp8_; -#line 1618 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 1618 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - if (_inner_error_->domain == SPIT_PUBLISHING_PUBLISHING_ERROR) { -#line 12134 "PiwigoPublishing.c" - goto __catch40_spit_publishing_publishing_error; - } -#line 1618 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_free0 (status); -#line 1618 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 1618 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_clear_error (&_inner_error_); -#line 1618 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - return NULL; -#line 12145 "PiwigoPublishing.c" - } -#line 1618 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - errcode = _tmp6_; -#line 12149 "PiwigoPublishing.c" - } - goto __finally40; - __catch40_spit_publishing_publishing_error: - { - GError* err = NULL; - gchar* _tmp9_; -#line 1617 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - err = _inner_error_; -#line 1617 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _inner_error_ = NULL; -#line 1620 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp9_ = g_strdup ("No error code specified"); -#line 1620 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - result = _tmp9_; -#line 1620 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_error_free0 (err); -#line 1620 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_free0 (status); -#line 1620 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - return result; -#line 12170 "PiwigoPublishing.c" - } - __finally40: -#line 1617 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 1617 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_free0 (status); -#line 1617 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 1617 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_clear_error (&_inner_error_); -#line 1617 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - return NULL; -#line 12183 "PiwigoPublishing.c" - } -#line 1623 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp10_ = errcode; -#line 1623 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp11_ = (gchar*) xmlGetProp (_tmp10_, (xmlChar*) "msg"); -#line 1623 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp12_ = _tmp11_; -#line 1623 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp13_ = errcode; -#line 1623 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp14_ = (gchar*) xmlGetProp (_tmp13_, (xmlChar*) "code"); -#line 1623 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp15_ = _tmp14_; -#line 1623 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp16_ = g_strdup_printf ("%s (error code %s)", _tmp12_, _tmp15_); -#line 1623 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp17_ = _tmp16_; -#line 1623 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_free0 (_tmp15_); -#line 1623 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_free0 (_tmp12_); -#line 1623 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - result = _tmp17_; -#line 1623 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_free0 (status); -#line 1623 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - return result; -#line 12211 "PiwigoPublishing.c" -} - - -gchar* -publishing_piwigo_transaction_get_error_code (PublishingRESTSupportXmlDocument* doc) -{ - gchar* result = NULL; - xmlNode* root = NULL; - xmlNode* _tmp0_; - xmlNode* errcode = NULL; - xmlNode* _tmp5_; - gchar* _tmp6_; - GError * _inner_error_ = NULL; -#line 1626 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_return_val_if_fail (PUBLISHING_REST_SUPPORT_IS_XML_DOCUMENT (doc), NULL); -#line 1627 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp0_ = publishing_rest_support_xml_document_get_root_node (doc); -#line 1627 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - root = _tmp0_; -#line 12231 "PiwigoPublishing.c" - { - xmlNode* _tmp1_ = NULL; - xmlNode* _tmp2_; - xmlNode* _tmp3_; -#line 1630 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp2_ = root; -#line 1630 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp3_ = publishing_rest_support_xml_document_get_named_child (doc, _tmp2_, "err", &_inner_error_); -#line 1630 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp1_ = _tmp3_; -#line 1630 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 1630 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - if (_inner_error_->domain == SPIT_PUBLISHING_PUBLISHING_ERROR) { -#line 12246 "PiwigoPublishing.c" - goto __catch41_spit_publishing_publishing_error; - } -#line 1630 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 1630 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_clear_error (&_inner_error_); -#line 1630 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - return NULL; -#line 12255 "PiwigoPublishing.c" - } -#line 1630 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - errcode = _tmp1_; -#line 12259 "PiwigoPublishing.c" - } - goto __finally41; - __catch41_spit_publishing_publishing_error: - { - GError* err = NULL; - gchar* _tmp4_; -#line 1629 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - err = _inner_error_; -#line 1629 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _inner_error_ = NULL; -#line 1632 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp4_ = g_strdup ("0"); -#line 1632 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - result = _tmp4_; -#line 1632 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_error_free0 (err); -#line 1632 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - return result; -#line 12278 "PiwigoPublishing.c" - } - __finally41: -#line 1629 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 1629 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 1629 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_clear_error (&_inner_error_); -#line 1629 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - return NULL; -#line 12289 "PiwigoPublishing.c" - } -#line 1634 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp5_ = errcode; -#line 1634 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp6_ = (gchar*) xmlGetProp (_tmp5_, (xmlChar*) "code"); -#line 1634 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - result = _tmp6_; -#line 1634 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - return result; -#line 12299 "PiwigoPublishing.c" -} - - -static void -publishing_piwigo_transaction_class_init (PublishingPiwigoTransactionClass * klass) -{ -#line 1592 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - publishing_piwigo_transaction_parent_class = g_type_class_peek_parent (klass); -#line 12308 "PiwigoPublishing.c" -} - - -static void -publishing_piwigo_transaction_instance_init (PublishingPiwigoTransaction * self) -{ -} - - -/** - * Generic REST transaction class. - * - * This class implements the generic logic for all REST transactions used - * by the Piwigo publishing plugin. In particular, it ensures that if the - * session has been authenticated, the pwg_id token is included in the - * transaction header. - */ -GType -publishing_piwigo_transaction_get_type (void) -{ - static volatile gsize publishing_piwigo_transaction_type_id__volatile = 0; - if (g_once_init_enter (&publishing_piwigo_transaction_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (PublishingPiwigoTransactionClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) publishing_piwigo_transaction_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PublishingPiwigoTransaction), 0, (GInstanceInitFunc) publishing_piwigo_transaction_instance_init, NULL }; - GType publishing_piwigo_transaction_type_id; - publishing_piwigo_transaction_type_id = g_type_register_static (PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, "PublishingPiwigoTransaction", &g_define_type_info, 0); - g_once_init_leave (&publishing_piwigo_transaction_type_id__volatile, publishing_piwigo_transaction_type_id); - } - return publishing_piwigo_transaction_type_id__volatile; -} - - -PublishingPiwigoSessionLoginTransaction* -publishing_piwigo_session_login_transaction_construct (GType object_type, - PublishingPiwigoSession* session, - const gchar* url, - const gchar* username, - const gchar* password) -{ - PublishingPiwigoSessionLoginTransaction* self = NULL; - gchar* _tmp0_; - gchar* _tmp1_; - gchar* _tmp2_; - gchar* _tmp3_; -#line 1642 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_return_val_if_fail (PUBLISHING_PIWIGO_IS_SESSION (session), NULL); -#line 1642 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_return_val_if_fail (url != NULL, NULL); -#line 1642 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_return_val_if_fail (username != NULL, NULL); -#line 1642 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_return_val_if_fail (password != NULL, NULL); -#line 1643 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - self = (PublishingPiwigoSessionLoginTransaction*) publishing_rest_support_transaction_construct_with_endpoint_url (object_type, G_TYPE_CHECK_INSTANCE_CAST (session, PUBLISHING_REST_SUPPORT_TYPE_SESSION, PublishingRESTSupportSession), url, PUBLISHING_REST_SUPPORT_HTTP_METHOD_POST); -#line 1645 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - publishing_rest_support_transaction_add_argument (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "method", "pwg.session.login"); -#line 1646 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp0_ = g_uri_escape_string (username, NULL, TRUE); -#line 1646 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp1_ = _tmp0_; -#line 1646 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - publishing_rest_support_transaction_add_argument (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "username", _tmp1_); -#line 1646 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_free0 (_tmp1_); -#line 1647 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp2_ = g_uri_escape_string (password, NULL, TRUE); -#line 1647 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp3_ = _tmp2_; -#line 1647 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - publishing_rest_support_transaction_add_argument (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "password", _tmp3_); -#line 1647 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_free0 (_tmp3_); -#line 1642 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - return self; -#line 12382 "PiwigoPublishing.c" -} - - -PublishingPiwigoSessionLoginTransaction* -publishing_piwigo_session_login_transaction_new (PublishingPiwigoSession* session, - const gchar* url, - const gchar* username, - const gchar* password) -{ -#line 1642 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - return publishing_piwigo_session_login_transaction_construct (PUBLISHING_PIWIGO_TYPE_SESSION_LOGIN_TRANSACTION, session, url, username, password); -#line 12394 "PiwigoPublishing.c" -} - - -static gpointer -_publishing_rest_support_argument_ref0 (gpointer self) -{ -#line 1653 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - return self ? publishing_rest_support_argument_ref (self) : NULL; -#line 12403 "PiwigoPublishing.c" -} - - -PublishingPiwigoSessionLoginTransaction* -publishing_piwigo_session_login_transaction_construct_from_other (GType object_type, - PublishingPiwigoSession* session, - PublishingPiwigoTransaction* other) -{ - PublishingPiwigoSessionLoginTransaction* self = NULL; - gchar* _tmp0_; - gchar* _tmp1_; - gint _tmp2_; - PublishingRESTSupportArgument** _tmp3_; -#line 1650 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_return_val_if_fail (PUBLISHING_PIWIGO_IS_SESSION (session), NULL); -#line 1650 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_return_val_if_fail (PUBLISHING_PIWIGO_IS_TRANSACTION (other), NULL); -#line 1651 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp0_ = publishing_rest_support_transaction_get_endpoint_url (G_TYPE_CHECK_INSTANCE_CAST (other, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction)); -#line 1651 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp1_ = _tmp0_; -#line 1651 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - self = (PublishingPiwigoSessionLoginTransaction*) publishing_rest_support_transaction_construct_with_endpoint_url (object_type, G_TYPE_CHECK_INSTANCE_CAST (session, PUBLISHING_REST_SUPPORT_TYPE_SESSION, PublishingRESTSupportSession), _tmp1_, PUBLISHING_REST_SUPPORT_HTTP_METHOD_POST); -#line 1651 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_free0 (_tmp1_); -#line 1653 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp3_ = publishing_rest_support_transaction_get_arguments (G_TYPE_CHECK_INSTANCE_CAST (other, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), &_tmp2_); -#line 12431 "PiwigoPublishing.c" - { - PublishingRESTSupportArgument** argument_collection = NULL; - gint argument_collection_length1 = 0; - gint _argument_collection_size_ = 0; - gint argument_it = 0; -#line 1653 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - argument_collection = _tmp3_; -#line 1653 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - argument_collection_length1 = _tmp2_; -#line 1653 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - for (argument_it = 0; argument_it < _tmp2_; argument_it = argument_it + 1) { -#line 12443 "PiwigoPublishing.c" - PublishingRESTSupportArgument* _tmp4_; - PublishingRESTSupportArgument* argument = NULL; -#line 1653 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp4_ = _publishing_rest_support_argument_ref0 (argument_collection[argument_it]); -#line 1653 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - argument = _tmp4_; -#line 12450 "PiwigoPublishing.c" - { - PublishingRESTSupportArgument* _tmp5_; - const gchar* _tmp6_; - PublishingRESTSupportArgument* _tmp7_; - const gchar* _tmp8_; -#line 1654 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp5_ = argument; -#line 1654 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp6_ = _tmp5_->key; -#line 1654 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp7_ = argument; -#line 1654 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp8_ = _tmp7_->value; -#line 1654 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - publishing_rest_support_transaction_add_argument (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), _tmp6_, _tmp8_); -#line 1653 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _publishing_rest_support_argument_unref0 (argument); -#line 12468 "PiwigoPublishing.c" - } - } -#line 1653 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - argument_collection = (_vala_array_free (argument_collection, argument_collection_length1, (GDestroyNotify) publishing_rest_support_argument_unref), NULL); -#line 12473 "PiwigoPublishing.c" - } -#line 1650 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - return self; -#line 12477 "PiwigoPublishing.c" -} - - -PublishingPiwigoSessionLoginTransaction* -publishing_piwigo_session_login_transaction_new_from_other (PublishingPiwigoSession* session, - PublishingPiwigoTransaction* other) -{ -#line 1650 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - return publishing_piwigo_session_login_transaction_construct_from_other (PUBLISHING_PIWIGO_TYPE_SESSION_LOGIN_TRANSACTION, session, other); -#line 12487 "PiwigoPublishing.c" -} - - -static void -publishing_piwigo_session_login_transaction_class_init (PublishingPiwigoSessionLoginTransactionClass * klass) -{ -#line 1641 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - publishing_piwigo_session_login_transaction_parent_class = g_type_class_peek_parent (klass); -#line 12496 "PiwigoPublishing.c" -} - - -static void -publishing_piwigo_session_login_transaction_instance_init (PublishingPiwigoSessionLoginTransaction * self) -{ -} - - -/** - * Transaction used to implement the network login interaction. - */ -GType -publishing_piwigo_session_login_transaction_get_type (void) -{ - static volatile gsize publishing_piwigo_session_login_transaction_type_id__volatile = 0; - if (g_once_init_enter (&publishing_piwigo_session_login_transaction_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (PublishingPiwigoSessionLoginTransactionClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) publishing_piwigo_session_login_transaction_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PublishingPiwigoSessionLoginTransaction), 0, (GInstanceInitFunc) publishing_piwigo_session_login_transaction_instance_init, NULL }; - GType publishing_piwigo_session_login_transaction_type_id; - publishing_piwigo_session_login_transaction_type_id = g_type_register_static (PUBLISHING_PIWIGO_TYPE_TRANSACTION, "PublishingPiwigoSessionLoginTransaction", &g_define_type_info, 0); - g_once_init_leave (&publishing_piwigo_session_login_transaction_type_id__volatile, publishing_piwigo_session_login_transaction_type_id); - } - return publishing_piwigo_session_login_transaction_type_id__volatile; -} - - -PublishingPiwigoSessionGetStatusTransaction* -publishing_piwigo_session_get_status_transaction_construct_unauthenticated (GType object_type, - PublishingPiwigoSession* session, - const gchar* url, - const gchar* pwg_id) -{ - PublishingPiwigoSessionGetStatusTransaction* self = NULL; - gchar* _tmp0_; - gchar* _tmp1_; - gchar* _tmp2_; - gchar* _tmp3_; -#line 1663 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_return_val_if_fail (PUBLISHING_PIWIGO_IS_SESSION (session), NULL); -#line 1663 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_return_val_if_fail (url != NULL, NULL); -#line 1663 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_return_val_if_fail (pwg_id != NULL, NULL); -#line 1664 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - self = (PublishingPiwigoSessionGetStatusTransaction*) publishing_rest_support_transaction_construct_with_endpoint_url (object_type, G_TYPE_CHECK_INSTANCE_CAST (session, PUBLISHING_REST_SUPPORT_TYPE_SESSION, PublishingRESTSupportSession), url, PUBLISHING_REST_SUPPORT_HTTP_METHOD_POST); -#line 1665 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp0_ = publishing_piwigo_session_get_pwg_id (session); -#line 1665 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp1_ = _tmp0_; -#line 1665 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp2_ = g_strconcat ("pwg_id=", _tmp1_, NULL); -#line 1665 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp3_ = _tmp2_; -#line 1665 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - publishing_rest_support_transaction_add_header (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "Cookie", _tmp3_); -#line 1665 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_free0 (_tmp3_); -#line 1665 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_free0 (_tmp1_); -#line 1667 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - publishing_rest_support_transaction_add_argument (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "method", "pwg.session.getStatus"); -#line 1663 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - return self; -#line 12560 "PiwigoPublishing.c" -} - - -PublishingPiwigoSessionGetStatusTransaction* -publishing_piwigo_session_get_status_transaction_new_unauthenticated (PublishingPiwigoSession* session, - const gchar* url, - const gchar* pwg_id) -{ -#line 1663 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - return publishing_piwigo_session_get_status_transaction_construct_unauthenticated (PUBLISHING_PIWIGO_TYPE_SESSION_GET_STATUS_TRANSACTION, session, url, pwg_id); -#line 12571 "PiwigoPublishing.c" -} - - -PublishingPiwigoSessionGetStatusTransaction* -publishing_piwigo_session_get_status_transaction_construct (GType object_type, - PublishingPiwigoSession* session) -{ - PublishingPiwigoSessionGetStatusTransaction* self = NULL; -#line 1670 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_return_val_if_fail (PUBLISHING_PIWIGO_IS_SESSION (session), NULL); -#line 1671 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - self = (PublishingPiwigoSessionGetStatusTransaction*) publishing_piwigo_transaction_construct_authenticated (object_type, session); -#line 1673 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - publishing_rest_support_transaction_add_argument (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "method", "pwg.session.getStatus"); -#line 1670 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - return self; -#line 12588 "PiwigoPublishing.c" -} - - -PublishingPiwigoSessionGetStatusTransaction* -publishing_piwigo_session_get_status_transaction_new (PublishingPiwigoSession* session) -{ -#line 1670 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - return publishing_piwigo_session_get_status_transaction_construct (PUBLISHING_PIWIGO_TYPE_SESSION_GET_STATUS_TRANSACTION, session); -#line 12597 "PiwigoPublishing.c" -} - - -static void -publishing_piwigo_session_get_status_transaction_class_init (PublishingPiwigoSessionGetStatusTransactionClass * klass) -{ -#line 1662 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - publishing_piwigo_session_get_status_transaction_parent_class = g_type_class_peek_parent (klass); -#line 12606 "PiwigoPublishing.c" -} - - -static void -publishing_piwigo_session_get_status_transaction_instance_init (PublishingPiwigoSessionGetStatusTransaction * self) -{ -} - - -/** - * Transaction used to implement the get status interaction. - */ -GType -publishing_piwigo_session_get_status_transaction_get_type (void) -{ - static volatile gsize publishing_piwigo_session_get_status_transaction_type_id__volatile = 0; - if (g_once_init_enter (&publishing_piwigo_session_get_status_transaction_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (PublishingPiwigoSessionGetStatusTransactionClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) publishing_piwigo_session_get_status_transaction_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PublishingPiwigoSessionGetStatusTransaction), 0, (GInstanceInitFunc) publishing_piwigo_session_get_status_transaction_instance_init, NULL }; - GType publishing_piwigo_session_get_status_transaction_type_id; - publishing_piwigo_session_get_status_transaction_type_id = g_type_register_static (PUBLISHING_PIWIGO_TYPE_TRANSACTION, "PublishingPiwigoSessionGetStatusTransaction", &g_define_type_info, 0); - g_once_init_leave (&publishing_piwigo_session_get_status_transaction_type_id__volatile, publishing_piwigo_session_get_status_transaction_type_id); - } - return publishing_piwigo_session_get_status_transaction_type_id__volatile; -} - - -PublishingPiwigoCategoriesGetListTransaction* -publishing_piwigo_categories_get_list_transaction_construct (GType object_type, - PublishingPiwigoSession* session) -{ - PublishingPiwigoCategoriesGetListTransaction* self = NULL; -#line 1681 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_return_val_if_fail (PUBLISHING_PIWIGO_IS_SESSION (session), NULL); -#line 1682 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - self = (PublishingPiwigoCategoriesGetListTransaction*) publishing_piwigo_transaction_construct_authenticated (object_type, session); -#line 1684 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - publishing_rest_support_transaction_add_argument (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "method", "pwg.categories.getList"); -#line 1685 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - publishing_rest_support_transaction_add_argument (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "recursive", "true"); -#line 1681 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - return self; -#line 12648 "PiwigoPublishing.c" -} - - -PublishingPiwigoCategoriesGetListTransaction* -publishing_piwigo_categories_get_list_transaction_new (PublishingPiwigoSession* session) -{ -#line 1681 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - return publishing_piwigo_categories_get_list_transaction_construct (PUBLISHING_PIWIGO_TYPE_CATEGORIES_GET_LIST_TRANSACTION, session); -#line 12657 "PiwigoPublishing.c" -} - - -static void -publishing_piwigo_categories_get_list_transaction_class_init (PublishingPiwigoCategoriesGetListTransactionClass * klass) -{ -#line 1680 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - publishing_piwigo_categories_get_list_transaction_parent_class = g_type_class_peek_parent (klass); -#line 12666 "PiwigoPublishing.c" -} - - -static void -publishing_piwigo_categories_get_list_transaction_instance_init (PublishingPiwigoCategoriesGetListTransaction * self) -{ -} - - -/** - * Transaction used to implement the fetch categories interaction. - */ -GType -publishing_piwigo_categories_get_list_transaction_get_type (void) -{ - static volatile gsize publishing_piwigo_categories_get_list_transaction_type_id__volatile = 0; - if (g_once_init_enter (&publishing_piwigo_categories_get_list_transaction_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (PublishingPiwigoCategoriesGetListTransactionClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) publishing_piwigo_categories_get_list_transaction_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PublishingPiwigoCategoriesGetListTransaction), 0, (GInstanceInitFunc) publishing_piwigo_categories_get_list_transaction_instance_init, NULL }; - GType publishing_piwigo_categories_get_list_transaction_type_id; - publishing_piwigo_categories_get_list_transaction_type_id = g_type_register_static (PUBLISHING_PIWIGO_TYPE_TRANSACTION, "PublishingPiwigoCategoriesGetListTransaction", &g_define_type_info, 0); - g_once_init_leave (&publishing_piwigo_categories_get_list_transaction_type_id__volatile, publishing_piwigo_categories_get_list_transaction_type_id); - } - return publishing_piwigo_categories_get_list_transaction_type_id__volatile; -} - - -PublishingPiwigoSessionLogoutTransaction* -publishing_piwigo_session_logout_transaction_construct (GType object_type, - PublishingPiwigoSession* session) -{ - PublishingPiwigoSessionLogoutTransaction* self = NULL; -#line 1690 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_return_val_if_fail (PUBLISHING_PIWIGO_IS_SESSION (session), NULL); -#line 1691 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - self = (PublishingPiwigoSessionLogoutTransaction*) publishing_piwigo_transaction_construct_authenticated (object_type, session); -#line 1693 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - publishing_rest_support_transaction_add_argument (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "method", "pwg.session.logout"); -#line 1690 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - return self; -#line 12706 "PiwigoPublishing.c" -} - - -PublishingPiwigoSessionLogoutTransaction* -publishing_piwigo_session_logout_transaction_new (PublishingPiwigoSession* session) -{ -#line 1690 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - return publishing_piwigo_session_logout_transaction_construct (PUBLISHING_PIWIGO_TYPE_SESSION_LOGOUT_TRANSACTION, session); -#line 12715 "PiwigoPublishing.c" -} - - -static void -publishing_piwigo_session_logout_transaction_class_init (PublishingPiwigoSessionLogoutTransactionClass * klass) -{ -#line 1689 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - publishing_piwigo_session_logout_transaction_parent_class = g_type_class_peek_parent (klass); -#line 12724 "PiwigoPublishing.c" -} - - -static void -publishing_piwigo_session_logout_transaction_instance_init (PublishingPiwigoSessionLogoutTransaction * self) -{ -} - - -GType -publishing_piwigo_session_logout_transaction_get_type (void) -{ - static volatile gsize publishing_piwigo_session_logout_transaction_type_id__volatile = 0; - if (g_once_init_enter (&publishing_piwigo_session_logout_transaction_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (PublishingPiwigoSessionLogoutTransactionClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) publishing_piwigo_session_logout_transaction_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PublishingPiwigoSessionLogoutTransaction), 0, (GInstanceInitFunc) publishing_piwigo_session_logout_transaction_instance_init, NULL }; - GType publishing_piwigo_session_logout_transaction_type_id; - publishing_piwigo_session_logout_transaction_type_id = g_type_register_static (PUBLISHING_PIWIGO_TYPE_TRANSACTION, "PublishingPiwigoSessionLogoutTransaction", &g_define_type_info, 0); - g_once_init_leave (&publishing_piwigo_session_logout_transaction_type_id__volatile, publishing_piwigo_session_logout_transaction_type_id); - } - return publishing_piwigo_session_logout_transaction_type_id__volatile; -} - - -PublishingPiwigoCategoriesAddTransaction* -publishing_piwigo_categories_add_transaction_construct (GType object_type, - PublishingPiwigoSession* session, - const gchar* category, - gint parent_id, - const gchar* comment) -{ - PublishingPiwigoCategoriesAddTransaction* self = NULL; -#line 1698 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_return_val_if_fail (PUBLISHING_PIWIGO_IS_SESSION (session), NULL); -#line 1698 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_return_val_if_fail (category != NULL, NULL); -#line 1699 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - self = (PublishingPiwigoCategoriesAddTransaction*) publishing_piwigo_transaction_construct_authenticated (object_type, session); -#line 1701 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - publishing_rest_support_transaction_add_argument (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "method", "pwg.categories.add"); -#line 1702 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - publishing_rest_support_transaction_add_argument (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "name", category); -#line 1704 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - if (parent_id != 0) { -#line 12768 "PiwigoPublishing.c" - gchar* _tmp0_; - gchar* _tmp1_; -#line 1705 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp0_ = g_strdup_printf ("%i", parent_id); -#line 1705 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp1_ = _tmp0_; -#line 1705 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - publishing_rest_support_transaction_add_argument (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "parent", _tmp1_); -#line 1705 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_free0 (_tmp1_); -#line 12779 "PiwigoPublishing.c" - } -#line 1708 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - if (g_strcmp0 (comment, "") != 0) { -#line 1709 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - publishing_rest_support_transaction_add_argument (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "comment", comment); -#line 12785 "PiwigoPublishing.c" - } -#line 1698 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - return self; -#line 12789 "PiwigoPublishing.c" -} - - -PublishingPiwigoCategoriesAddTransaction* -publishing_piwigo_categories_add_transaction_new (PublishingPiwigoSession* session, - const gchar* category, - gint parent_id, - const gchar* comment) -{ -#line 1698 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - return publishing_piwigo_categories_add_transaction_construct (PUBLISHING_PIWIGO_TYPE_CATEGORIES_ADD_TRANSACTION, session, category, parent_id, comment); -#line 12801 "PiwigoPublishing.c" -} - - -static void -publishing_piwigo_categories_add_transaction_class_init (PublishingPiwigoCategoriesAddTransactionClass * klass) -{ -#line 1697 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - publishing_piwigo_categories_add_transaction_parent_class = g_type_class_peek_parent (klass); -#line 12810 "PiwigoPublishing.c" -} - - -static void -publishing_piwigo_categories_add_transaction_instance_init (PublishingPiwigoCategoriesAddTransaction * self) -{ -} - - -GType -publishing_piwigo_categories_add_transaction_get_type (void) -{ - static volatile gsize publishing_piwigo_categories_add_transaction_type_id__volatile = 0; - if (g_once_init_enter (&publishing_piwigo_categories_add_transaction_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (PublishingPiwigoCategoriesAddTransactionClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) publishing_piwigo_categories_add_transaction_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PublishingPiwigoCategoriesAddTransaction), 0, (GInstanceInitFunc) publishing_piwigo_categories_add_transaction_instance_init, NULL }; - GType publishing_piwigo_categories_add_transaction_type_id; - publishing_piwigo_categories_add_transaction_type_id = g_type_register_static (PUBLISHING_PIWIGO_TYPE_TRANSACTION, "PublishingPiwigoCategoriesAddTransaction", &g_define_type_info, 0); - g_once_init_leave (&publishing_piwigo_categories_add_transaction_type_id__volatile, publishing_piwigo_categories_add_transaction_type_id); - } - return publishing_piwigo_categories_add_transaction_type_id__volatile; -} - - -static gchar* -_vala_g_strjoinv (const gchar* separator, - gchar** str_array, - int str_array_length1) -{ - gchar* result = NULL; - 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 12845 "PiwigoPublishing.c" - } -#line 1095 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - if (str_array != NULL) { -#line 12849 "PiwigoPublishing.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 12855 "PiwigoPublishing.c" - } else { - gboolean _tmp2_ = FALSE; -#line 1095 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - if (str_array_length1 == -1) { -#line 12860 "PiwigoPublishing.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 12866 "PiwigoPublishing.c" - } else { -#line 1095 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp2_ = FALSE; -#line 12870 "PiwigoPublishing.c" - } -#line 1095 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp1_ = _tmp2_; -#line 12874 "PiwigoPublishing.c" - } -#line 1095 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp0_ = _tmp1_; -#line 12878 "PiwigoPublishing.c" - } else { -#line 1095 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp0_ = FALSE; -#line 12882 "PiwigoPublishing.c" - } -#line 1095 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - if (_tmp0_) { -#line 12886 "PiwigoPublishing.c" - gint i = 0; - gsize len = 0UL; - gint _tmp20_; - gint _tmp22_; - gint _tmp23_; - gsize _tmp24_; - gint _tmp25_; - gint _tmp26_; - gint _tmp27_; - const gchar* res = NULL; - gsize _tmp28_; - void* _tmp29_; - void* ptr = NULL; - 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 12906 "PiwigoPublishing.c" - { - gboolean _tmp4_ = FALSE; -#line 1098 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - i = 0; -#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 12915 "PiwigoPublishing.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 12924 "PiwigoPublishing.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 12930 "PiwigoPublishing.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 12936 "PiwigoPublishing.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 12942 "PiwigoPublishing.c" - } else { -#line 1098 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp7_ = FALSE; -#line 12946 "PiwigoPublishing.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 12952 "PiwigoPublishing.c" - } else { - gboolean _tmp9_ = FALSE; -#line 1098 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - if (str_array_length1 == -1) { -#line 12957 "PiwigoPublishing.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 12966 "PiwigoPublishing.c" - } else { -#line 1098 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp9_ = FALSE; -#line 12970 "PiwigoPublishing.c" - } -#line 1098 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp6_ = _tmp9_; -#line 12974 "PiwigoPublishing.c" - } -#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 12980 "PiwigoPublishing.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 12988 "PiwigoPublishing.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 13003 "PiwigoPublishing.c" - } else { -#line 1099 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp12_ = 0; -#line 13007 "PiwigoPublishing.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 13013 "PiwigoPublishing.c" - } - } -#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 13020 "PiwigoPublishing.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 13028 "PiwigoPublishing.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 13060 "PiwigoPublishing.c" - { - gboolean _tmp33_ = FALSE; -#line 1109 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - i = 1; -#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 13069 "PiwigoPublishing.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 13080 "PiwigoPublishing.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 13086 "PiwigoPublishing.c" - } -#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 13096 "PiwigoPublishing.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 13110 "PiwigoPublishing.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 13119 "PiwigoPublishing.c" - } else { -#line 1111 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp38_ = ""; -#line 13123 "PiwigoPublishing.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 13131 "PiwigoPublishing.c" - } - } -#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 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 13142 "PiwigoPublishing.c" - } else { - 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 13151 "PiwigoPublishing.c" - } -} - - -static void -_g_free0_ (gpointer var) -{ -#line 1774 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - var = (g_free (var), NULL); -#line 13161 "PiwigoPublishing.c" -} - - -PublishingPiwigoImagesAddTransaction* -publishing_piwigo_images_add_transaction_construct (GType object_type, - PublishingPiwigoSession* session, - PublishingPiwigoPublishingParameters* parameters, - SpitPublishingPublishable* publishable) -{ - PublishingPiwigoImagesAddTransaction* self = NULL; - gchar* _tmp0_; - gchar* _tmp1_; - PublishingPiwigoPublishingParameters* _tmp6_; - gchar** keywords = NULL; - gint _tmp7_; - gchar** _tmp8_; - gint keywords_length1; - gint _keywords_size_; - gchar* tags = NULL; - gchar* _tmp9_; - gchar** _tmp10_; - gint _tmp10__length1; - GFile* _tmp13_; - GFile* _tmp14_; - gchar* _tmp15_; - gchar* _tmp16_; - PublishingPiwigoCategory* _tmp17_; - gint _tmp18_; - PublishingPiwigoPermissionLevel* _tmp19_; - gint _tmp20_; - gchar* name = NULL; - gchar* _tmp21_; - gchar* comment = NULL; - gchar* _tmp22_; - gboolean _tmp23_ = FALSE; - const gchar* _tmp24_; - PublishingPiwigoCategory* _tmp40_; - gint _tmp41_; - gchar* _tmp42_; - gchar* _tmp43_; - PublishingPiwigoPermissionLevel* _tmp44_; - gint _tmp45_; - gchar* _tmp46_; - gchar* _tmp47_; - gboolean _tmp48_; - GHashTable* disposition_table = NULL; - GHashFunc _tmp51_; - GEqualFunc _tmp52_; - GHashTable* _tmp53_; - gchar* basename = NULL; - gchar* _tmp54_; - gboolean _tmp55_ = FALSE; - const gchar* _tmp56_; - gchar* _tmp57_; - gchar* _tmp58_; - gboolean _tmp59_; - GHashTable* _tmp65_; - gchar* _tmp66_; - const gchar* _tmp67_; - gchar* _tmp68_; - GHashTable* _tmp69_; - gchar* _tmp70_; - gchar* _tmp71_; - GHashTable* _tmp72_; -#line 1717 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_return_val_if_fail (PUBLISHING_PIWIGO_IS_SESSION (session), NULL); -#line 1717 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_return_val_if_fail (PUBLISHING_PIWIGO_IS_PUBLISHING_PARAMETERS (parameters), NULL); -#line 1717 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_return_val_if_fail (SPIT_PUBLISHING_IS_PUBLISHABLE (publishable), NULL); -#line 1718 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp0_ = publishing_piwigo_session_get_pwg_url (session); -#line 1718 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp1_ = _tmp0_; -#line 1718 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - self = (PublishingPiwigoImagesAddTransaction*) publishing_rest_support_upload_transaction_construct_with_endpoint_url (object_type, G_TYPE_CHECK_INSTANCE_CAST (session, PUBLISHING_REST_SUPPORT_TYPE_SESSION, PublishingRESTSupportSession), publishable, _tmp1_); -#line 1718 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_free0 (_tmp1_); -#line 1719 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - if (publishing_rest_support_session_is_authenticated (G_TYPE_CHECK_INSTANCE_CAST (session, PUBLISHING_REST_SUPPORT_TYPE_SESSION, PublishingRESTSupportSession))) { -#line 13242 "PiwigoPublishing.c" - gchar* _tmp2_; - gchar* _tmp3_; - gchar* _tmp4_; - gchar* _tmp5_; -#line 1720 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp2_ = publishing_piwigo_session_get_pwg_id (session); -#line 1720 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp3_ = _tmp2_; -#line 1720 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp4_ = g_strconcat ("pwg_id=", _tmp3_, NULL); -#line 1720 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp5_ = _tmp4_; -#line 1720 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - publishing_rest_support_transaction_add_header (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "Cookie", _tmp5_); -#line 1720 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_free0 (_tmp5_); -#line 1720 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_free0 (_tmp3_); -#line 13261 "PiwigoPublishing.c" - } -#line 1722 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp6_ = _publishing_piwigo_publishing_parameters_ref0 (parameters); -#line 1722 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _publishing_piwigo_publishing_parameters_unref0 (self->priv->parameters); -#line 1722 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - self->priv->parameters = _tmp6_; -#line 1724 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp8_ = spit_publishing_publishable_get_publishing_keywords (publishable, &_tmp7_); -#line 1724 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - keywords = _tmp8_; -#line 1724 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - keywords_length1 = _tmp7_; -#line 1724 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _keywords_size_ = keywords_length1; -#line 1725 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp9_ = g_strdup (""); -#line 1725 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - tags = _tmp9_; -#line 1726 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp10_ = keywords; -#line 1726 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp10__length1 = keywords_length1; -#line 1726 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - if (_tmp10_ != NULL) { -#line 13287 "PiwigoPublishing.c" - gchar** _tmp11_; - gint _tmp11__length1; - gchar* _tmp12_; -#line 1727 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp11_ = keywords; -#line 1727 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp11__length1 = keywords_length1; -#line 1727 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp12_ = _vala_g_strjoinv (",", _tmp11_, _tmp11__length1); -#line 1727 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_free0 (tags); -#line 1727 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - tags = _tmp12_; -#line 13301 "PiwigoPublishing.c" - } -#line 1730 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp13_ = spit_publishing_publishable_get_serialized_file (publishable); -#line 1730 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp14_ = _tmp13_; -#line 1730 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp15_ = g_file_get_basename (_tmp14_); -#line 1730 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp16_ = _tmp15_; -#line 1730 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp17_ = parameters->category; -#line 1730 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp18_ = _tmp17_->id; -#line 1730 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp19_ = parameters->perm_level; -#line 1730 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp20_ = _tmp19_->id; -#line 1730 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_debug ("PiwigoPublishing.vala:1730: PiwigoConnector: Uploading photo %s to cat" \ -"egory id %d with perm level %d", _tmp16_, _tmp18_, _tmp20_); -#line 1730 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_free0 (_tmp16_); -#line 1730 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_object_unref0 (_tmp14_); -#line 1733 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp21_ = spit_publishing_publishable_get_publishing_name (publishable); -#line 1733 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - name = _tmp21_; -#line 1734 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp22_ = spit_publishing_publishable_get_param_string (publishable, SPIT_PUBLISHING_PUBLISHABLE_PARAM_STRING_COMMENT); -#line 1734 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - comment = _tmp22_; -#line 1736 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp24_ = name; -#line 1736 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - if (_tmp24_ == NULL) { -#line 1736 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp23_ = TRUE; -#line 13339 "PiwigoPublishing.c" - } else { - const gchar* _tmp25_; -#line 1736 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp25_ = name; -#line 1736 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp23_ = g_strcmp0 (_tmp25_, "") == 0; -#line 13346 "PiwigoPublishing.c" - } -#line 1736 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - if (_tmp23_) { -#line 13350 "PiwigoPublishing.c" - gchar* _tmp26_; - const gchar* _tmp27_; - gboolean _tmp28_ = FALSE; - const gchar* _tmp29_; -#line 1737 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp26_ = spit_publishing_publishable_get_param_string (publishable, SPIT_PUBLISHING_PUBLISHABLE_PARAM_STRING_BASENAME); -#line 1737 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_free0 (name); -#line 1737 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - name = _tmp26_; -#line 1739 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp27_ = name; -#line 1739 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - publishing_rest_support_transaction_add_argument (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "name", _tmp27_); -#line 1740 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp29_ = comment; -#line 1740 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - if (_tmp29_ != NULL) { -#line 13369 "PiwigoPublishing.c" - const gchar* _tmp30_; -#line 1740 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp30_ = comment; -#line 1740 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp28_ = g_strcmp0 (_tmp30_, "") != 0; -#line 13375 "PiwigoPublishing.c" - } else { -#line 1740 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp28_ = FALSE; -#line 13379 "PiwigoPublishing.c" - } -#line 1740 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - if (_tmp28_) { -#line 13383 "PiwigoPublishing.c" - const gchar* _tmp31_; -#line 1741 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp31_ = comment; -#line 1741 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - publishing_rest_support_transaction_add_argument (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "comment", _tmp31_); -#line 13389 "PiwigoPublishing.c" - } - } else { - gboolean _tmp32_ = FALSE; - const gchar* _tmp33_; -#line 1745 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp33_ = comment; -#line 1745 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - if (_tmp33_ != NULL) { -#line 13398 "PiwigoPublishing.c" - const gchar* _tmp34_; -#line 1745 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp34_ = comment; -#line 1745 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp32_ = g_strcmp0 (_tmp34_, "") != 0; -#line 13404 "PiwigoPublishing.c" - } else { -#line 1745 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp32_ = FALSE; -#line 13408 "PiwigoPublishing.c" - } -#line 1745 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - if (_tmp32_) { -#line 13412 "PiwigoPublishing.c" - const gchar* _tmp35_; - const gchar* _tmp36_; -#line 1746 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp35_ = name; -#line 1746 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - publishing_rest_support_transaction_add_argument (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "name", _tmp35_); -#line 1747 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp36_ = comment; -#line 1747 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - publishing_rest_support_transaction_add_argument (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "comment", _tmp36_); -#line 13423 "PiwigoPublishing.c" - } else { - gboolean _tmp37_; -#line 1752 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp37_ = parameters->title_as_comment; -#line 1752 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - if (_tmp37_) { -#line 13430 "PiwigoPublishing.c" - const gchar* _tmp38_; -#line 1753 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp38_ = name; -#line 1753 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - publishing_rest_support_transaction_add_argument (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "comment", _tmp38_); -#line 13436 "PiwigoPublishing.c" - } else { - const gchar* _tmp39_; -#line 1755 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp39_ = name; -#line 1755 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - publishing_rest_support_transaction_add_argument (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "name", _tmp39_); -#line 13443 "PiwigoPublishing.c" - } - } - } -#line 1759 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - publishing_rest_support_transaction_add_argument (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "method", "pwg.images.addSimple"); -#line 1760 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp40_ = parameters->category; -#line 1760 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp41_ = _tmp40_->id; -#line 1760 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp42_ = g_strdup_printf ("%i", _tmp41_); -#line 1760 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp43_ = _tmp42_; -#line 1760 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - publishing_rest_support_transaction_add_argument (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "category", _tmp43_); -#line 1760 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_free0 (_tmp43_); -#line 1761 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp44_ = parameters->perm_level; -#line 1761 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp45_ = _tmp44_->id; -#line 1761 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp46_ = g_strdup_printf ("%i", _tmp45_); -#line 1761 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp47_ = _tmp46_; -#line 1761 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - publishing_rest_support_transaction_add_argument (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "level", _tmp47_); -#line 1761 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_free0 (_tmp47_); -#line 1762 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp48_ = parameters->no_upload_tags; -#line 1762 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - if (!_tmp48_) { -#line 13477 "PiwigoPublishing.c" - const gchar* _tmp49_; -#line 1763 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp49_ = tags; -#line 1763 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - if (g_strcmp0 (_tmp49_, "") != 0) { -#line 13483 "PiwigoPublishing.c" - const gchar* _tmp50_; -#line 1764 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp50_ = tags; -#line 1764 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - publishing_rest_support_transaction_add_argument (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "tags", _tmp50_); -#line 13489 "PiwigoPublishing.c" - } - } -#line 1774 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp51_ = g_str_hash; -#line 1774 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp52_ = g_str_equal; -#line 1774 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp53_ = g_hash_table_new_full (_tmp51_, _tmp52_, _g_free0_, _g_free0_); -#line 1774 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - disposition_table = _tmp53_; -#line 1776 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp54_ = spit_publishing_publishable_get_param_string (publishable, SPIT_PUBLISHING_PUBLISHABLE_PARAM_STRING_BASENAME); -#line 1776 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - basename = _tmp54_; -#line 1777 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp56_ = basename; -#line 1777 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp57_ = g_utf8_strdown (_tmp56_, (gssize) -1); -#line 1777 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp58_ = _tmp57_; -#line 1777 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp59_ = !g_str_has_suffix (_tmp58_, ".jpeg"); -#line 1777 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_free0 (_tmp58_); -#line 1777 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - if (_tmp59_) { -#line 13516 "PiwigoPublishing.c" - const gchar* _tmp60_; - gchar* _tmp61_; - gchar* _tmp62_; -#line 1778 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp60_ = basename; -#line 1778 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp61_ = g_utf8_strdown (_tmp60_, (gssize) -1); -#line 1778 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp62_ = _tmp61_; -#line 1778 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp55_ = !g_str_has_suffix (_tmp62_, ".jpg"); -#line 1778 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_free0 (_tmp62_); -#line 13530 "PiwigoPublishing.c" - } else { -#line 1777 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp55_ = FALSE; -#line 13534 "PiwigoPublishing.c" - } -#line 1777 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - if (_tmp55_) { -#line 13538 "PiwigoPublishing.c" - const gchar* _tmp63_; - gchar* _tmp64_; -#line 1779 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp63_ = basename; -#line 1779 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp64_ = g_strconcat (_tmp63_, ".jpg", NULL); -#line 1779 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_free0 (basename); -#line 1779 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - basename = _tmp64_; -#line 13549 "PiwigoPublishing.c" - } -#line 1781 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp65_ = disposition_table; -#line 1781 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp66_ = g_strdup ("filename"); -#line 1781 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp67_ = basename; -#line 1781 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp68_ = soup_uri_encode (_tmp67_, NULL); -#line 1781 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_hash_table_insert (_tmp65_, _tmp66_, _tmp68_); -#line 1782 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp69_ = disposition_table; -#line 1782 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp70_ = g_strdup ("name"); -#line 1782 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp71_ = g_strdup ("image"); -#line 1782 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_hash_table_insert (_tmp69_, _tmp70_, _tmp71_); -#line 1784 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp72_ = disposition_table; -#line 1784 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - publishing_rest_support_upload_transaction_set_binary_disposition_table (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_UPLOAD_TRANSACTION, PublishingRESTSupportUploadTransaction), _tmp72_); -#line 1717 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_free0 (basename); -#line 1717 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_hash_table_unref0 (disposition_table); -#line 1717 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_free0 (comment); -#line 1717 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_free0 (name); -#line 1717 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_free0 (tags); -#line 1717 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - keywords = (_vala_array_free (keywords, keywords_length1, (GDestroyNotify) g_free), NULL); -#line 1717 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - return self; -#line 13587 "PiwigoPublishing.c" -} - - -PublishingPiwigoImagesAddTransaction* -publishing_piwigo_images_add_transaction_new (PublishingPiwigoSession* session, - PublishingPiwigoPublishingParameters* parameters, - SpitPublishingPublishable* publishable) -{ -#line 1717 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - return publishing_piwigo_images_add_transaction_construct (PUBLISHING_PIWIGO_TYPE_IMAGES_ADD_TRANSACTION, session, parameters, publishable); -#line 13598 "PiwigoPublishing.c" -} - - -static void -publishing_piwigo_images_add_transaction_class_init (PublishingPiwigoImagesAddTransactionClass * klass) -{ -#line 1714 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - publishing_piwigo_images_add_transaction_parent_class = g_type_class_peek_parent (klass); -#line 1714 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - ((PublishingRESTSupportTransactionClass *) klass)->finalize = publishing_piwigo_images_add_transaction_finalize; -#line 1714 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_type_class_add_private (klass, sizeof (PublishingPiwigoImagesAddTransactionPrivate)); -#line 13611 "PiwigoPublishing.c" -} - - -static void -publishing_piwigo_images_add_transaction_instance_init (PublishingPiwigoImagesAddTransaction * self) -{ -#line 1714 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - self->priv = PUBLISHING_PIWIGO_IMAGES_ADD_TRANSACTION_GET_PRIVATE (self); -#line 1715 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - self->priv->parameters = NULL; -#line 13622 "PiwigoPublishing.c" -} - - -static void -publishing_piwigo_images_add_transaction_finalize (PublishingRESTSupportTransaction * obj) -{ - PublishingPiwigoImagesAddTransaction * self; -#line 1714 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, PUBLISHING_PIWIGO_TYPE_IMAGES_ADD_TRANSACTION, PublishingPiwigoImagesAddTransaction); -#line 1715 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _publishing_piwigo_publishing_parameters_unref0 (self->priv->parameters); -#line 1714 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - PUBLISHING_REST_SUPPORT_TRANSACTION_CLASS (publishing_piwigo_images_add_transaction_parent_class)->finalize (obj); -#line 13636 "PiwigoPublishing.c" -} - - -GType -publishing_piwigo_images_add_transaction_get_type (void) -{ - static volatile gsize publishing_piwigo_images_add_transaction_type_id__volatile = 0; - if (g_once_init_enter (&publishing_piwigo_images_add_transaction_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (PublishingPiwigoImagesAddTransactionClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) publishing_piwigo_images_add_transaction_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PublishingPiwigoImagesAddTransaction), 0, (GInstanceInitFunc) publishing_piwigo_images_add_transaction_instance_init, NULL }; - GType publishing_piwigo_images_add_transaction_type_id; - publishing_piwigo_images_add_transaction_type_id = g_type_register_static (PUBLISHING_REST_SUPPORT_TYPE_UPLOAD_TRANSACTION, "PublishingPiwigoImagesAddTransaction", &g_define_type_info, 0); - g_once_init_leave (&publishing_piwigo_images_add_transaction_type_id__volatile, publishing_piwigo_images_add_transaction_type_id); - } - return publishing_piwigo_images_add_transaction_type_id__volatile; -} - - -static void -_vala_array_destroy (gpointer array, - gint array_length, - GDestroyNotify destroy_func) -{ - if ((array != NULL) && (destroy_func != NULL)) { - int i; - for (i = 0; i < array_length; i = i + 1) { - if (((gpointer*) array)[i] != NULL) { - destroy_func (((gpointer*) array)[i]); - } - } - } -} - - -static void -_vala_array_free (gpointer array, - gint array_length, - GDestroyNotify destroy_func) -{ - _vala_array_destroy (array, array_length, destroy_func); - g_free (array); -} - - -static gint -_vala_array_length (gpointer array) -{ - int length; - length = 0; - if (array) { - while (((gpointer*) array)[length]) { - length++; - } - } - return length; -} - - - diff --git a/plugins/shotwell-publishing/PiwigoPublishing.vala b/plugins/shotwell-publishing/PiwigoPublishing.vala index fcd0aee..649f135 100644 --- a/plugins/shotwell-publishing/PiwigoPublishing.vala +++ b/plugins/shotwell-publishing/PiwigoPublishing.vala @@ -864,6 +864,9 @@ public class PiwigoPublisher : Spit.Publishing.Publisher, GLib.Object { // TODO: should a message be displayed to the user if num_published is zero? + if (!is_running()) + return; + do_show_success_pane(); } diff --git a/plugins/shotwell-publishing/TumblrPublishing.c b/plugins/shotwell-publishing/TumblrPublishing.c deleted file mode 100644 index 862982d..0000000 --- a/plugins/shotwell-publishing/TumblrPublishing.c +++ /dev/null @@ -1,5544 +0,0 @@ -/* TumblrPublishing.c generated by valac 0.40.4, 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; -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 ()) -#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; -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))) -#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; -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_NUM_SIGNALS -}; -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 ()) -#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; -#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; -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; -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)) -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)) -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); -GType publishing_tumblr_tumblr_publisher_upload_transaction_get_type (void) G_GNUC_CONST; -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)) -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 568 "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 581 "TumblrPublishing.c" - } -#line 13 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - return self; -#line 585 "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 594 "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; -#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" - 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 611 "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 626 "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 641 "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 650 "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 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 670 "TumblrPublishing.c" - } -#line 42 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - return result; -#line 674 "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 756 "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 767 "TumblrPublishing.c" -} - - -static SpitPublishingPublisher* -tumblr_service_real_create_publisher (SpitPublishingService* base, - SpitPublishingPluginHost* host) -{ - TumblrService * self; - SpitPublishingPublisher* result = NULL; - 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_ = 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 (_tmp0_, SPIT_PUBLISHING_TYPE_PUBLISHER, SpitPublishingPublisher); -#line 49 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - return result; -#line 788 "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 803 "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 814 "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 833 "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 846 "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 864 "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; - gchar* _tmp0_; - gchar* _tmp1_; -#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_ = 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 = _tmp0_; -#line 72 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _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 = _tmp1_; -#line 70 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - return self; -#line 914 "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 924 "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 933 "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 944 "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 957 "TumblrPublishing.c" - } else { -#line 67 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - dest_value->data[0].v_pointer = NULL; -#line 961 "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 971 "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 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 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 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 998 "TumblrPublishing.c" - } else { -#line 67 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - value->data[0].v_pointer = NULL; -#line 1002 "TumblrPublishing.c" - } -#line 67 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - return NULL; -#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) -{ - 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 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 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 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 1036 "TumblrPublishing.c" - } -#line 67 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - return NULL; -#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) -{ - 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 1060 "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 1071 "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 1094 "TumblrPublishing.c" - } else { -#line 67 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - value->data[0].v_pointer = NULL; -#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 1104 "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 1126 "TumblrPublishing.c" - } else { -#line 67 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - value->data[0].v_pointer = NULL; -#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 1136 "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 1148 "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 1157 "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 1173 "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 1202 "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 1217 "TumblrPublishing.c" - } -} - - -PublishingTumblrSizeEntry* -publishing_tumblr_size_entry_construct (GType object_type, - const gchar* creator_title, - gint creator_size) -{ - PublishingTumblrSizeEntry* self = NULL; - 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_ = 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 = _tmp0_; -#line 82 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - self->size = creator_size; -#line 80 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - return self; -#line 1243 "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 1253 "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 1262 "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 1273 "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 1286 "TumblrPublishing.c" - } else { -#line 76 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - dest_value->data[0].v_pointer = NULL; -#line 1290 "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 1300 "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 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 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 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 1327 "TumblrPublishing.c" - } else { -#line 76 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - value->data[0].v_pointer = NULL; -#line 1331 "TumblrPublishing.c" - } -#line 76 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - return NULL; -#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) -{ - 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 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 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 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 1365 "TumblrPublishing.c" - } -#line 76 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - return NULL; -#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) -{ - 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 1389 "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 1400 "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 1423 "TumblrPublishing.c" - } else { -#line 76 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - value->data[0].v_pointer = NULL; -#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 1433 "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 1455 "TumblrPublishing.c" - } else { -#line 76 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - value->data[0].v_pointer = NULL; -#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 1465 "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 1477 "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 1486 "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 1500 "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 1529 "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 1544 "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 1555 "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 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 1577 "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 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 1599 "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 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 1621 "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 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 1693 "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 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 1732 "TumblrPublishing.c" -} - - -PublishingTumblrTumblrPublisher* -publishing_tumblr_tumblr_publisher_construct (GType object_type, - SpitPublishingService* service, - SpitPublishingPluginHost* host) -{ - PublishingTumblrTumblrPublisher * self = NULL; - SpitPublishingService* _tmp0_; - SpitPublishingPluginHost* _tmp1_; - PublishingRESTSupportOAuth1Session* _tmp2_; - gint _tmp3_; - PublishingTumblrSizeEntry** _tmp4_; - gint _tmp5_; - 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" - 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_ = _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 = _tmp0_; -#line 125 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _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 = _tmp1_; -#line 126 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _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 = _tmp2_; -#line 127 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _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 = _tmp4_; -#line 127 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - 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" - _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 = _tmp6_; -#line 128 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - 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" - _tmp7_ = publishing_authenticator_factory_get_instance (); -#line 130 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp8_ = _tmp7_; -#line 130 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _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 = _tmp9_; -#line 130 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _g_object_unref0 (_tmp8_); -#line 131 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp10_ = self->priv->authenticator; -#line 131 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - 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 1817 "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 1827 "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 1848 "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 1868 "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 1886 "TumblrPublishing.c" -} - - -gint -publishing_tumblr_tumblr_publisher_get_persistent_default_size (PublishingTumblrTumblrPublisher* self) -{ - gint result = 0; - SpitPublishingPluginHost* _tmp0_; -#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" - 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 1903 "TumblrPublishing.c" -} - - -void -publishing_tumblr_tumblr_publisher_set_persistent_default_size (PublishingTumblrTumblrPublisher* self, - gint size) -{ - SpitPublishingPluginHost* _tmp0_; -#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" - 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 result = 0; - SpitPublishingPluginHost* _tmp0_; -#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" - 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 1935 "TumblrPublishing.c" -} - - -void -publishing_tumblr_tumblr_publisher_set_persistent_default_blog (PublishingTumblrTumblrPublisher* self, - gint blog) -{ - SpitPublishingPluginHost* _tmp0_; -#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" - 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) -{ -#line 182 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - return self ? g_variant_ref (self) : NULL; -#line 1959 "TumblrPublishing.c" -} - - -static void -publishing_tumblr_tumblr_publisher_on_authenticator_authenticated (PublishingTumblrTumblrPublisher* self) -{ - GHashTable* params = NULL; - SpitPublishingAuthenticator* _tmp0_; - GHashTable* _tmp1_; - GVariant* consumer_key = NULL; - GVariant* consumer_secret = NULL; - GVariant* auth_token = NULL; - GVariant* auth_token_secret = NULL; - 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" - 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 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" - _tmp0_ = self->priv->authenticator; -#line 176 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp1_ = spit_publishing_authenticator_get_authentication_parameter (_tmp0_); -#line 176 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - 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" - 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" - _tmp2_ = params; -#line 182 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - 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" - _tmp4_ = _g_variant_ref0 (_tmp3_); -#line 182 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - consumer_key = _tmp4_; -#line 183 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp5_ = params; -#line 183 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - 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" - _tmp7_ = _g_variant_ref0 (_tmp6_); -#line 183 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - consumer_secret = _tmp7_; -#line 184 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp8_ = self->priv->session; -#line 184 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp9_ = consumer_key; -#line 184 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp10_ = g_variant_get_string (_tmp9_, NULL); -#line 184 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp11_ = consumer_secret; -#line 184 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _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 (_tmp8_, _tmp10_, _tmp12_); -#line 186 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp13_ = params; -#line 186 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - 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" - _tmp15_ = _g_variant_ref0 (_tmp14_); -#line 186 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - auth_token = _tmp15_; -#line 187 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp16_ = params; -#line 187 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - 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" - _tmp18_ = _g_variant_ref0 (_tmp17_); -#line 187 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - auth_token_secret = _tmp18_; -#line 188 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp19_ = self->priv->session; -#line 188 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp20_ = auth_token; -#line 188 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp21_ = g_variant_get_string (_tmp20_, NULL); -#line 188 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp22_ = auth_token_secret; -#line 188 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _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 (_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" - _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 2095 "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 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) -{ -#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 2116 "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 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_); -#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 2149 "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 2160 "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 2181 "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 2194 "TumblrPublishing.c" - } -#line 195 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _publishing_rest_support_transaction_unref0 (txn); -#line 2198 "TumblrPublishing.c" -} - - -static void -publishing_tumblr_tumblr_publisher_on_info_request_txn_completed (PublishingTumblrTumblrPublisher* self, - PublishingRESTSupportTransaction* txn) -{ - guint _tmp0_; - guint _tmp1_; - 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" - 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_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, &_tmp1_, NULL, FALSE); -#line 213 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - 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" - 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 2228 "TumblrPublishing.c" - } -#line 218 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp2_ = publishing_rest_support_transaction_get_response (txn); -#line 218 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _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'", _tmp3_); -#line 218 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _g_free0 (_tmp3_); -#line 220 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp4_ = publishing_rest_support_transaction_get_response (txn); -#line 220 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _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, _tmp5_); -#line 220 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _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 2248 "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 2257 "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 1421 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - g_return_val_if_fail (self != NULL, NULL); -#line 1421 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - g_return_val_if_fail (old != NULL, NULL); -#line 1421 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - g_return_val_if_fail (replacement != NULL, NULL); -#line 1422 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - if ((*((gchar*) self)) == '\0') { -#line 1422 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp1_ = TRUE; -#line 2280 "TumblrPublishing.c" - } else { -#line 1422 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp1_ = (*((gchar*) old)) == '\0'; -#line 2284 "TumblrPublishing.c" - } -#line 1422 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - if (_tmp1_) { -#line 1422 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp0_ = TRUE; -#line 2290 "TumblrPublishing.c" - } else { -#line 1422 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp0_ = g_strcmp0 (old, replacement) == 0; -#line 2294 "TumblrPublishing.c" - } -#line 1422 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - if (_tmp0_) { -#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 2306 "TumblrPublishing.c" - } - { - GRegex* regex = NULL; - 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 1426 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - if (_inner_error_->domain == G_REGEX_ERROR) { -#line 2334 "TumblrPublishing.c" - goto __catch22_g_regex_error; - } -#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 1426 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - g_clear_error (&_inner_error_); -#line 1426 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - return NULL; -#line 2343 "TumblrPublishing.c" - } -#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 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _g_regex_unref0 (regex); -#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - if (_inner_error_->domain == G_REGEX_ERROR) { -#line 2357 "TumblrPublishing.c" - goto __catch22_g_regex_error; - } -#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _g_regex_unref0 (regex); -#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 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - g_clear_error (&_inner_error_); -#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - return NULL; -#line 2368 "TumblrPublishing.c" - } -#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 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - return result; -#line 2382 "TumblrPublishing.c" - } - goto __finally22; - __catch22_g_regex_error: - { - GError* e = NULL; -#line 1425 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - e = _inner_error_; -#line 1425 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _inner_error_ = NULL; -#line 1429 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - g_assert_not_reached (); -#line 1425 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _g_error_free0 (e); -#line 2396 "TumblrPublishing.c" - } - __finally22: -#line 1425 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#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 1425 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - g_clear_error (&_inner_error_); -#line 1425 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - return NULL; -#line 2407 "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 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 2430 "TumblrPublishing.c" -} - - -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" - g_debug ("TumblrPublishing.vala:226: ACTION: parsing info request response '%s' " \ -"into list of available blogs", response); -#line 2445 "TumblrPublishing.c" - { - JsonParser* parser = NULL; - JsonParser* _tmp0_; - JsonObject* root_object = NULL; - JsonNode* _tmp1_; - JsonObject* _tmp2_; - JsonObject* _tmp3_; - JsonObject* _tmp4_; - JsonObject* _tmp5_; - JsonObject* _tmp6_; - const gchar* _tmp7_; - gchar* _tmp8_; - const gchar* _tmp9_; - JsonObject* _tmp10_; - JsonObject* _tmp11_; - JsonObject* _tmp12_; - JsonArray* _tmp13_; - GList* _tmp14_; -#line 228 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp0_ = json_parser_new (); -#line 228 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - parser = _tmp0_; -#line 229 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - 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 2474 "TumblrPublishing.c" - goto __catch21_g_error; - } -#line 230 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp1_ = json_parser_get_root (parser); -#line 230 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp2_ = json_node_get_object (_tmp1_); -#line 230 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp3_ = _json_object_ref0 (_tmp2_); -#line 230 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - root_object = _tmp3_; -#line 231 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp4_ = root_object; -#line 231 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp5_ = json_object_get_object_member (_tmp4_, "response"); -#line 231 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp6_ = json_object_get_object_member (_tmp5_, "user"); -#line 231 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp7_ = json_object_get_string_member (_tmp6_, "name"); -#line 231 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _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 = _tmp8_; -#line 232 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp9_ = self->priv->username; -#line 232 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - g_debug ("TumblrPublishing.vala:232: Got user name: %s", _tmp9_); -#line 233 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp10_ = root_object; -#line 233 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp11_ = json_object_get_object_member (_tmp10_, "response"); -#line 233 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp12_ = json_object_get_object_member (_tmp11_, "user"); -#line 233 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp13_ = json_object_get_array_member (_tmp12_, "blogs"); -#line 233 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _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 = _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 2521 "TumblrPublishing.c" - JsonNode* blognode = NULL; -#line 233 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - blognode = (JsonNode*) blognode_it->data; -#line 2525 "TumblrPublishing.c" - { - JsonObject* blog = NULL; - JsonNode* _tmp15_; - JsonObject* _tmp16_; - JsonObject* _tmp17_; - gchar* name = NULL; - JsonObject* _tmp18_; - const gchar* _tmp19_; - gchar* _tmp20_; - gchar* url = NULL; - JsonObject* _tmp21_; - const gchar* _tmp22_; - gchar* _tmp23_; - gchar* _tmp24_; - gchar* _tmp25_; - gchar* _tmp26_; - const gchar* _tmp27_; - const gchar* _tmp28_; - PublishingTumblrBlogEntry** _tmp29_; - gint _tmp29__length1; - const gchar* _tmp30_; - const gchar* _tmp31_; - PublishingTumblrBlogEntry* _tmp32_; -#line 234 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp15_ = blognode; -#line 234 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp16_ = json_node_get_object (_tmp15_); -#line 234 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp17_ = _json_object_ref0 (_tmp16_); -#line 234 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - blog = _tmp17_; -#line 235 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp18_ = blog; -#line 235 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp19_ = json_object_get_string_member (_tmp18_, "name"); -#line 235 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp20_ = g_strdup (_tmp19_); -#line 235 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - name = _tmp20_; -#line 236 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp21_ = blog; -#line 236 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp22_ = json_object_get_string_member (_tmp21_, "url"); -#line 236 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp23_ = string_replace (_tmp22_, "http://", ""); -#line 236 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp24_ = _tmp23_; -#line 236 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp25_ = string_replace (_tmp24_, "/", ""); -#line 236 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp26_ = _tmp25_; -#line 236 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _g_free0 (_tmp24_); -#line 236 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - url = _tmp26_; -#line 237 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp27_ = name; -#line 237 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _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", _tmp27_, _tmp28_); -#line 238 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp29_ = self->priv->blogs; -#line 238 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp29__length1 = self->priv->blogs_length1; -#line 238 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp30_ = name; -#line 238 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp31_ = url; -#line 238 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _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_, _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 2605 "TumblrPublishing.c" - } - } -#line 233 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _g_list_free0 (blognode_collection); -#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 2616 "TumblrPublishing.c" - } - goto __finally21; - __catch21_g_error: - { - GError* err = NULL; - 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" - _tmp33_ = self->priv->host; -#line 241 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp34_ = err; -#line 241 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - spit_publishing_plugin_host_post_error (_tmp33_, _tmp34_); -#line 227 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _g_error_free0 (err); -#line 2636 "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 2647 "TumblrPublishing.c" - } -} - - -static void -publishing_tumblr_tumblr_publisher_on_info_request_txn_error (PublishingTumblrTumblrPublisher* self, - PublishingRESTSupportTransaction* txn, - GError* err) -{ - guint _tmp0_; - guint _tmp1_; - 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" - 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_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, &_tmp1_, NULL, FALSE); -#line 248 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - 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" - 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 2677 "TumblrPublishing.c" - } -#line 253 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp2_ = self->priv->session; -#line 253 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - 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" - _tmp3_ = self->priv->host; -#line 256 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - 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) -{ -#line 264 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - publishing_tumblr_tumblr_publisher_on_publishing_options_pane_publish ((PublishingTumblrTumblrPublisher*) self); -#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) -{ -#line 265 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - publishing_tumblr_tumblr_publisher_on_publishing_options_pane_logout ((PublishingTumblrTumblrPublisher*) self); -#line 2709 "TumblrPublishing.c" -} - - -static void -publishing_tumblr_tumblr_publisher_do_show_publishing_options_pane (PublishingTumblrTumblrPublisher* self) -{ - SpitPublishingPluginHost* _tmp0_; - PublishingTumblrTumblrPublisherPublishingOptionsPane* publishing_options_pane = NULL; - SpitPublishingPluginHost* _tmp1_; - PublishingTumblrSizeEntry** _tmp2_; - gint _tmp2__length1; - PublishingTumblrBlogEntry** _tmp3_; - gint _tmp3__length1; - 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" - 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_ = self->priv->sizes; -#line 262 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp2__length1 = self->priv->sizes_length1; -#line 262 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp3_ = self->priv->blogs; -#line 262 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp3__length1 = self->priv->blogs_length1; -#line 262 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp4_ = self->priv->username; -#line 262 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _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 = _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" - _tmp6_ = self->priv->host; -#line 266 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - 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 2760 "TumblrPublishing.c" -} - - -static void -publishing_tumblr_tumblr_publisher_on_publishing_options_pane_publish (PublishingTumblrTumblrPublisher* self) -{ - PublishingTumblrTumblrPublisherPublishingOptionsPane* _tmp0_; -#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 2774 "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 2791 "TumblrPublishing.c" - } -#line 277 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - 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 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 2803 "TumblrPublishing.c" -} - - -static void -publishing_tumblr_tumblr_publisher_on_publishing_options_pane_logout (PublishingTumblrTumblrPublisher* self) -{ - PublishingTumblrTumblrPublisherPublishingOptionsPane* _tmp0_; -#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 2817 "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 2834 "TumblrPublishing.c" - } -#line 290 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - 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 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 2846 "TumblrPublishing.c" -} - - -gint -publishing_tumblr_tumblr_publisher_tumblr_date_time_compare_func (SpitPublishingPublishable* a, - SpitPublishingPublishable* b) -{ - gint result = 0; - GDateTime* _tmp0_; - GDateTime* _tmp1_; - GDateTime* _tmp2_; - 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_ = spit_publishing_publishable_get_exposure_date_time (a); -#line 300 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp1_ = _tmp0_; -#line 300 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp2_ = spit_publishing_publishable_get_exposure_date_time (b); -#line 300 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp3_ = _tmp2_; -#line 300 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp4_ = g_date_time_compare (_tmp1_, _tmp3_); -#line 300 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _g_date_time_unref0 (_tmp3_); -#line 300 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _g_date_time_unref0 (_tmp1_); -#line 300 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - result = _tmp4_; -#line 300 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - return result; -#line 2882 "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 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) -{ -#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 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) -{ -#line 330 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - publishing_tumblr_tumblr_publisher_on_upload_error ((PublishingTumblrTumblrPublisher*) self, _sender, err); -#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) -{ -#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 2928 "TumblrPublishing.c" -} - - -static void -publishing_tumblr_tumblr_publisher_do_publish (PublishingTumblrTumblrPublisher* self) -{ - SpitPublishingPluginHost* _tmp0_; - SpitPublishingPluginHost* _tmp1_; - PublishingTumblrSizeEntry** _tmp2_; - gint _tmp2__length1; - PublishingTumblrSizeEntry* _tmp3_; - gint _tmp4_; - void* _tmp5_; - GDestroyNotify _tmp6_; - SpitPublishingProgressCallback _tmp7_; - SpitPublishingPublishable** publishables = NULL; - SpitPublishingPluginHost* _tmp8_; - gint _tmp9_; - SpitPublishingPublishable** _tmp10_; - gint publishables_length1; - gint _publishables_size_; - GeeArrayList* sorted_list = NULL; - GeeArrayList* _tmp11_; - SpitPublishingPublishable** _tmp12_; - gint _tmp12__length1; - GeeArrayList* _tmp16_; - gchar* blog_url = NULL; - PublishingTumblrBlogEntry** _tmp17_; - gint _tmp17__length1; - PublishingTumblrBlogEntry* _tmp18_; - const gchar* _tmp19_; - gchar* _tmp20_; - PublishingTumblrTumblrPublisherUploader* uploader = NULL; - 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_; -#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_ = _tmp2_[publishing_tumblr_tumblr_publisher_get_persistent_default_size (self)]; -#line 308 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp4_ = _tmp3_->size; -#line 308 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _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" - 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 = _tmp7_; -#line 308 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - self->priv->progress_reporter_target = _tmp5_; -#line 308 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - self->priv->progress_reporter_target_destroy_notify = _tmp6_; -#line 314 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - 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 3012 "TumblrPublishing.c" - } -#line 318 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp8_ = self->priv->host; -#line 318 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp10_ = spit_publishing_plugin_host_get_publishables (_tmp8_, &_tmp9_); -#line 318 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - publishables = _tmp10_; -#line 318 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - 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" - _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 = _tmp11_; -#line 321 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp12_ = publishables; -#line 321 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _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 = _tmp12_; -#line 321 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - p_collection_length1 = _tmp12__length1; -#line 321 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - 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" - _tmp13_ = _g_object_ref0 (p_collection[p_it]); -#line 321 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - p = _tmp13_; -#line 3051 "TumblrPublishing.c" - { - 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" - _tmp14_ = sorted_list; -#line 323 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp15_ = p; -#line 323 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - 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 3065 "TumblrPublishing.c" - } - } - } -#line 325 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp16_ = sorted_list; -#line 325 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - 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" - _tmp17_ = self->priv->blogs; -#line 326 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp17__length1 = self->priv->blogs_length1; -#line 326 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp18_ = _tmp17_[publishing_tumblr_tumblr_publisher_get_persistent_default_blog (self)]; -#line 326 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp19_ = _tmp18_->url; -#line 326 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp20_ = g_strdup (_tmp19_); -#line 326 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - blog_url = _tmp20_; -#line 328 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp21_ = self->priv->session; -#line 328 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp22_ = sorted_list; -#line 328 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _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" - _tmp25_ = _tmp24_; -#line 328 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp25__length1 = _tmp23_; -#line 328 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp26_ = blog_url; -#line 328 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp27_ = publishing_tumblr_tumblr_publisher_uploader_new (_tmp21_, _tmp25_, _tmp23_, _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" - _tmp25_ = (_vala_array_free (_tmp25_, _tmp25__length1, (GDestroyNotify) g_object_unref), NULL); -#line 328 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - uploader = _tmp28_; -#line 329 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp29_ = uploader; -#line 329 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - 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" - _tmp30_ = uploader; -#line 330 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - 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" - _tmp31_ = uploader; -#line 331 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - 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" - _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 3125 "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 3146 "TumblrPublishing.c" -} - - -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" - 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 3165 "TumblrPublishing.c" - } -#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 * completed_fraction); -#line 348 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp0_ = self->priv->progress_reporter; -#line 348 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp0__target = self->priv->progress_reporter_target; -#line 348 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _vala_assert (_tmp0_ != NULL, "progress_reporter != null"); -#line 350 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp1_ = self->priv->progress_reporter; -#line 350 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp1__target = self->priv->progress_reporter_target; -#line 350 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _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) -{ - 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" - 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 3200 "TumblrPublishing.c" - } -#line 358 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - g_debug ("TumblrPublishing.vala:358: EVENT: uploader reports upload complete; %d" \ -" 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, &_tmp0_, NULL, FALSE); -#line 360 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - 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" - 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_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 3214 "TumblrPublishing.c" -} - - -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" - 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 3235 "TumblrPublishing.c" - } -#line 371 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _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'" \ -".", _tmp0_); -#line 373 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - 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_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, &_tmp2_, NULL, FALSE); -#line 374 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - 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" - _tmp3_ = self->priv->host; -#line 376 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - spit_publishing_plugin_host_post_error (_tmp3_, err); -#line 3253 "TumblrPublishing.c" -} - - -static void -publishing_tumblr_tumblr_publisher_do_logout (PublishingTumblrTumblrPublisher* self) -{ - SpitPublishingAuthenticator* _tmp0_; -#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" - if (spit_publishing_authenticator_can_logout (_tmp0_)) { -#line 3269 "TumblrPublishing.c" - SpitPublishingAuthenticator* _tmp1_; -#line 384 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp1_ = self->priv->authenticator; -#line 384 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - 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 3281 "TumblrPublishing.c" -} - - -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" - 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 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" - _tmp0_ = self->priv->authenticator; -#line 399 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - spit_publishing_authenticator_authenticate (_tmp0_); -#line 3305 "TumblrPublishing.c" -} - - -static void -publishing_tumblr_tumblr_publisher_real_start (SpitPublishingPublisher* base) -{ - PublishingTumblrTumblrPublisher * self; - gboolean _tmp0_; -#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" - 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 3320 "TumblrPublishing.c" - } -#line 406 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp0_ = self->priv->was_started; -#line 406 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - 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 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 3334 "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 3348 "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 3357 "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 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 3377 "TumblrPublishing.c" - } -#line 460 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - return result; -#line 3381 "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 3390 "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 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 3410 "TumblrPublishing.c" - } -#line 461 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - return result; -#line 3414 "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 3424 "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 3434 "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 3444 "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 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 * self = NULL; - GtkBox* _tmp0_; - 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); -#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_ = 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 = _tmp1_; -#line 458 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _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 = _tmp2_; -#line 459 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - self->priv->media_type = media_type; -#line 460 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp3_ = (sizes != NULL) ? _vala_array_dup9 (sizes, sizes_length1) : ((gpointer) sizes); -#line 460 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _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 = _tmp3_; -#line 460 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - 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" - _tmp4_ = (blogs != NULL) ? _vala_array_dup10 (blogs, blogs_length1) : ((gpointer) blogs); -#line 461 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _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 = _tmp4_; -#line 461 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - 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 3529 "TumblrPublishing.c" - { - GtkBuilder* _tmp5_; - GtkBuilder* _tmp6_; - GtkBuilder* _tmp7_; - GtkBuilder* _tmp8_; - GObject* _tmp9_; - GtkBox* _tmp10_; - GtkBuilder* _tmp11_; - 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* _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" - _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 = _tmp5_; -#line 465 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp6_ = self->priv->builder; -#line 465 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - 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 3578 "TumblrPublishing.c" - goto __catch23_g_error; - } -#line 467 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp7_ = self->priv->builder; -#line 467 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - gtk_builder_connect_signals (_tmp7_, NULL); -#line 470 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp8_ = self->priv->builder; -#line 470 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp9_ = gtk_builder_get_object (_tmp8_, "tumblr_pane"); -#line 470 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _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 = _tmp10_; -#line 471 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp11_ = self->priv->builder; -#line 471 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp12_ = gtk_builder_get_object (_tmp11_, "upload_info_label"); -#line 471 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _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 = _tmp13_; -#line 472 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp14_ = self->priv->builder; -#line 472 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp15_ = gtk_builder_get_object (_tmp14_, "logout_button"); -#line 472 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _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 = _tmp16_; -#line 473 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp17_ = self->priv->builder; -#line 473 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp18_ = gtk_builder_get_object (_tmp17_, "publish_button"); -#line 473 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _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 = _tmp19_; -#line 474 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp20_ = self->priv->builder; -#line 474 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp21_ = gtk_builder_get_object (_tmp20_, "size_combo"); -#line 474 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _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 = _tmp22_; -#line 475 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp23_ = self->priv->builder; -#line 475 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp24_ = gtk_builder_get_object (_tmp23_, "size_label"); -#line 475 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _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 = _tmp25_; -#line 476 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp26_ = self->priv->builder; -#line 476 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp27_ = gtk_builder_get_object (_tmp26_, "blog_combo"); -#line 476 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _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 = _tmp28_; -#line 477 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp29_ = self->priv->builder; -#line 477 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp30_ = gtk_builder_get_object (_tmp29_, "blog_label"); -#line 477 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _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 = _tmp31_; -#line 480 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp32_ = self->priv->username; -#line 480 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _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 = _tmp33_; -#line 481 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp34_ = self->priv->upload_info_label; -#line 481 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp35_ = upload_label_text; -#line 481 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - 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" - _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 (_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 (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" - _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 (_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* _tmp38_; - GtkLabel* _tmp39_; -#line 491 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _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 (_tmp38_, gtk_widget_get_type (), GtkWidget), FALSE); -#line 492 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _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 (_tmp39_, gtk_widget_get_type (), GtkWidget), FALSE); -#line 3705 "TumblrPublishing.c" - } -#line 495 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp40_ = self->priv->logout_button; -#line 495 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - 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" - _tmp41_ = self->priv->publish_button; -#line 496 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - 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 3717 "TumblrPublishing.c" - } - goto __finally23; - __catch23_g_error: - { - GError* e = NULL; - 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" - _tmp42_ = e; -#line 498 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp43_ = _tmp42_->message; -#line 498 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - g_warning (_ ("Could not load UI: %s"), _tmp43_); -#line 463 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _g_error_free0 (e); -#line 3737 "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 3748 "TumblrPublishing.c" - } -#line 454 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - return self; -#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) -{ -#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 3767 "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 3778 "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 3789 "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 3806 "TumblrPublishing.c" - PublishingTumblrBlogEntry** _tmp1_; - gint _tmp1__length1; - GtkComboBoxText* _tmp6_; - PublishingTumblrTumblrPublisher* _tmp7_; -#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 3815 "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 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 3834 "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 3849 "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" - 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) -{ - PublishingTumblrTumblrPublisher* _tmp0_; - GtkComboBoxText* _tmp1_; -#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" - 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) -{ - 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 3894 "TumblrPublishing.c" - PublishingTumblrSizeEntry** _tmp1_; - gint _tmp1__length1; - GtkComboBoxText* _tmp6_; - PublishingTumblrTumblrPublisher* _tmp7_; -#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 3903 "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 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 3922 "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 3937 "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" - 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) -{ - PublishingTumblrTumblrPublisher* _tmp0_; - GtkComboBoxText* _tmp1_; -#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" - 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) -{ -#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 3976 "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 3987 "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 4008 "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 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) -{ -#line 559 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - publishing_tumblr_tumblr_publisher_publishing_options_pane_notify_publish ((PublishingTumblrTumblrPublisherPublishingOptionsPane*) self); -#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) -{ -#line 560 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - publishing_tumblr_tumblr_publisher_publishing_options_pane_notify_logout ((PublishingTumblrTumblrPublisherPublishingOptionsPane*) self); -#line 4043 "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 4057 "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 4077 "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 4094 "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 4111 "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 4155 "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 4193 "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; -#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" - 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 4227 "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 4236 "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 4245 "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_; - 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" - _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 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 = data; -#line 582 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - byte_collection_length1 = data_length1; -#line 582 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - 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 4325 "TumblrPublishing.c" - { - guint8 _tmp4_; -#line 584 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp4_ = byte; -#line 584 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - if (((gint) _tmp4_) == 0) { -#line 4332 "TumblrPublishing.c" - GString* _tmp5_; -#line 585 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp5_ = s; -#line 585 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - g_string_append (_tmp5_, "%00"); -#line 4338 "TumblrPublishing.c" - } else { - gchar* _tmp6_; - gint _tmp6__length1; - guint8 _tmp7_; - gchar _tmp8_; - GString* _tmp9_; - gchar* _tmp10_; - gint _tmp10__length1; - gchar* _tmp11_; - gchar* _tmp12_; -#line 587 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp6_ = bytes; -#line 587 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp6__length1 = bytes_length1; -#line 587 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp7_ = byte; -#line 587 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp6_[0] = (gchar) _tmp7_; -#line 587 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp8_ = _tmp6_[0]; -#line 588 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp9_ = s; -#line 588 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp10_ = bytes; -#line 588 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp10__length1 = bytes_length1; -#line 588 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp11_ = soup_uri_encode ((const gchar*) _tmp10_, PUBLISHING_TUMBLR_ENCODE_RFC_3986_EXTRA); -#line 588 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp12_ = _tmp11_; -#line 588 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - g_string_append (_tmp9_, _tmp12_); -#line 588 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _g_free0 (_tmp12_); -#line 4373 "TumblrPublishing.c" - } - } - } - } -#line 591 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp13_ = s; -#line 591 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp14_ = _tmp13_->str; -#line 591 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp15_ = g_strdup (_tmp14_); -#line 591 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - 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 4392 "TumblrPublishing.c" -} - - -PublishingTumblrTumblrPublisherUploadTransaction* -publishing_tumblr_tumblr_publisher_upload_transaction_construct (GType object_type, - PublishingRESTSupportOAuth1Session* session, - SpitPublishingPublishable* publishable, - const gchar* blog_url) -{ - PublishingTumblrTumblrPublisherUploadTransaction* self = NULL; - 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" - 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_ = g_strdup_printf ("https://api.tumblr.com/v2/blog/%s/post", blog_url); -#line 597 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp1_ = _tmp0_; -#line 597 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - 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 (_tmp1_); -#line 595 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - return self; -#line 4423 "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 4434 "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 1442 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - g_return_val_if_fail (self != NULL, NULL); -#line 1443 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - res = (guint8*) self; -#line 1443 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - res_length1 = -1; -#line 1443 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _res_size_ = res_length1; -#line 1444 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp0_ = strlen (self); -#line 1444 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp1_ = _tmp0_; -#line 1444 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - res_length1 = (gint) _tmp1_; -#line 1444 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp2_ = res_length1; -#line 1445 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp3_ = res; -#line 1445 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp3__length1 = res_length1; -#line 1445 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp4_ = _tmp3_; -#line 1445 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp4__length1 = _tmp3__length1; -#line 1445 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - if (result_length1) { -#line 1445 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - *result_length1 = _tmp4__length1; -#line 4481 "TumblrPublishing.c" - } -#line 1445 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - result = _tmp4_; -#line 1445 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - return result; -#line 4487 "TumblrPublishing.c" -} - - -static gchar* -_vala_g_strjoinv (const gchar* separator, - gchar** str_array, - int str_array_length1) -{ - gchar* result = NULL; - 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 4502 "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 { - 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 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 1095 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - if (_tmp0_) { -#line 4543 "TumblrPublishing.c" - gint i = 0; - gsize len = 0UL; - gint _tmp20_; - gint _tmp22_; - gint _tmp23_; - gsize _tmp24_; - gint _tmp25_; - gint _tmp26_; - gint _tmp27_; - const gchar* res = NULL; - gsize _tmp28_; - void* _tmp29_; - void* ptr = NULL; - 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 4563 "TumblrPublishing.c" - { - gboolean _tmp4_ = FALSE; -#line 1098 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - i = 0; -#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 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 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 1098 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp7_ = FALSE; -#line 4603 "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 _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 1098 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp9_ = FALSE; -#line 4627 "TumblrPublishing.c" - } -#line 1098 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp6_ = _tmp9_; -#line 4631 "TumblrPublishing.c" - } -#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 4637 "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 1099 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp12_ = 0; -#line 4664 "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 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 4685 "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 _tmp33_ = FALSE; -#line 1109 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - i = 1; -#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 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 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 4753 "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 1111 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp38_ = ""; -#line 4780 "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 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 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 4799 "TumblrPublishing.c" - } else { - 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 4808 "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_; - 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 4851 "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 4908 "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 4919 "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 4961 "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 4975 "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 4993 "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 5010 "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 5024 "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 5034 "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" - cont = gee_map_iterator_next (_tmp39_); -#line 640 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - while (TRUE) { -#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" - _tmp40_ = cont; -#line 640 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - if (!_tmp40_) { -#line 640 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - break; -#line 5114 "TumblrPublishing.c" - } -#line 641 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp41_ = outbound_message; -#line 641 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp42_ = _tmp41_->request_headers; -#line 641 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp43_ = i; -#line 641 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp44_ = gee_map_iterator_get_key (_tmp43_); -#line 641 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp45_ = (gchar*) _tmp44_; -#line 641 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp46_ = i; -#line 641 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp47_ = gee_map_iterator_get_value (_tmp46_); -#line 641 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp48_ = (gchar*) _tmp47_; -#line 641 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - soup_message_headers_append (_tmp42_, _tmp45_, _tmp48_); -#line 641 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _g_free0 (_tmp48_); -#line 641 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _g_free0 (_tmp45_); -#line 642 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp49_ = i; -#line 642 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - cont = gee_map_iterator_next (_tmp49_); -#line 5142 "TumblrPublishing.c" - } -#line 644 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _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), _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" - 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 5170 "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 5188 "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 5201 "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 5212 "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; - 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" - 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" - _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 = _tmp0_; -#line 656 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - return self; -#line 5259 "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 5271 "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 5316 "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 5331 "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 5345 "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 5359 "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 5386 "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 5403 "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 5443 "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 5487 "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); -} - - - diff --git a/plugins/shotwell-publishing/YouTubePublishing.c b/plugins/shotwell-publishing/YouTubePublishing.c deleted file mode 100644 index f823262..0000000 --- a/plugins/shotwell-publishing/YouTubePublishing.c +++ /dev/null @@ -1,4355 +0,0 @@ -/* YouTubePublishing.c generated by valac 0.40.4, the Vala compiler - * generated from YouTubePublishing.vala, do not modify */ - -/* Copyright 2016 Software Freedom Conservancy Inc. - * - * This software is licensed under the GNU LGPL (version 2.1 or later). - * See the COPYING file in this distribution. - */ - - -#include -#include -#include -#include -#include -#include -#include -#include "shotwell-plugin-common.h" -#include -#include "gdata/gdata.h" -#include -#include -#include -#include -#include "shotwell-authenticator.h" -#include - - -#define TYPE_YOU_TUBE_SERVICE (you_tube_service_get_type ()) -#define YOU_TUBE_SERVICE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_YOU_TUBE_SERVICE, YouTubeService)) -#define YOU_TUBE_SERVICE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_YOU_TUBE_SERVICE, YouTubeServiceClass)) -#define IS_YOU_TUBE_SERVICE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_YOU_TUBE_SERVICE)) -#define IS_YOU_TUBE_SERVICE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_YOU_TUBE_SERVICE)) -#define YOU_TUBE_SERVICE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_YOU_TUBE_SERVICE, YouTubeServiceClass)) - -typedef struct _YouTubeService YouTubeService; -typedef struct _YouTubeServiceClass YouTubeServiceClass; -typedef struct _YouTubeServicePrivate YouTubeServicePrivate; -enum { - YOU_TUBE_SERVICE_0_PROPERTY, - YOU_TUBE_SERVICE_NUM_PROPERTIES -}; -static GParamSpec* you_tube_service_properties[YOU_TUBE_SERVICE_NUM_PROPERTIES]; -#define _g_free0(var) (var = (g_free (var), NULL)) - -#define PUBLISHING_YOU_TUBE_TYPE_YOU_TUBE_PUBLISHER (publishing_you_tube_you_tube_publisher_get_type ()) -#define PUBLISHING_YOU_TUBE_YOU_TUBE_PUBLISHER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_YOU_TUBE_TYPE_YOU_TUBE_PUBLISHER, PublishingYouTubeYouTubePublisher)) -#define PUBLISHING_YOU_TUBE_YOU_TUBE_PUBLISHER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_YOU_TUBE_TYPE_YOU_TUBE_PUBLISHER, PublishingYouTubeYouTubePublisherClass)) -#define PUBLISHING_YOU_TUBE_IS_YOU_TUBE_PUBLISHER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_YOU_TUBE_TYPE_YOU_TUBE_PUBLISHER)) -#define PUBLISHING_YOU_TUBE_IS_YOU_TUBE_PUBLISHER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_YOU_TUBE_TYPE_YOU_TUBE_PUBLISHER)) -#define PUBLISHING_YOU_TUBE_YOU_TUBE_PUBLISHER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_YOU_TUBE_TYPE_YOU_TUBE_PUBLISHER, PublishingYouTubeYouTubePublisherClass)) - -typedef struct _PublishingYouTubeYouTubePublisher PublishingYouTubeYouTubePublisher; -typedef struct _PublishingYouTubeYouTubePublisherClass PublishingYouTubeYouTubePublisherClass; - -#define PUBLISHING_YOU_TUBE_TYPE_PRIVACY_SETTING (publishing_you_tube_privacy_setting_get_type ()) - -#define PUBLISHING_YOU_TUBE_TYPE_PUBLISHING_PARAMETERS (publishing_you_tube_publishing_parameters_get_type ()) -#define PUBLISHING_YOU_TUBE_PUBLISHING_PARAMETERS(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_YOU_TUBE_TYPE_PUBLISHING_PARAMETERS, PublishingYouTubePublishingParameters)) -#define PUBLISHING_YOU_TUBE_PUBLISHING_PARAMETERS_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_YOU_TUBE_TYPE_PUBLISHING_PARAMETERS, PublishingYouTubePublishingParametersClass)) -#define PUBLISHING_YOU_TUBE_IS_PUBLISHING_PARAMETERS(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_YOU_TUBE_TYPE_PUBLISHING_PARAMETERS)) -#define PUBLISHING_YOU_TUBE_IS_PUBLISHING_PARAMETERS_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_YOU_TUBE_TYPE_PUBLISHING_PARAMETERS)) -#define PUBLISHING_YOU_TUBE_PUBLISHING_PARAMETERS_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_YOU_TUBE_TYPE_PUBLISHING_PARAMETERS, PublishingYouTubePublishingParametersClass)) - -typedef struct _PublishingYouTubePublishingParameters PublishingYouTubePublishingParameters; -typedef struct _PublishingYouTubePublishingParametersClass PublishingYouTubePublishingParametersClass; -typedef struct _PublishingYouTubePublishingParametersPrivate PublishingYouTubePublishingParametersPrivate; -typedef struct _PublishingYouTubeParamSpecPublishingParameters PublishingYouTubeParamSpecPublishingParameters; - -#define PUBLISHING_YOU_TUBE_TYPE_YOU_TUBE_AUTHORIZER (publishing_you_tube_you_tube_authorizer_get_type ()) -#define PUBLISHING_YOU_TUBE_YOU_TUBE_AUTHORIZER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_YOU_TUBE_TYPE_YOU_TUBE_AUTHORIZER, PublishingYouTubeYouTubeAuthorizer)) -#define PUBLISHING_YOU_TUBE_YOU_TUBE_AUTHORIZER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_YOU_TUBE_TYPE_YOU_TUBE_AUTHORIZER, PublishingYouTubeYouTubeAuthorizerClass)) -#define PUBLISHING_YOU_TUBE_IS_YOU_TUBE_AUTHORIZER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_YOU_TUBE_TYPE_YOU_TUBE_AUTHORIZER)) -#define PUBLISHING_YOU_TUBE_IS_YOU_TUBE_AUTHORIZER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_YOU_TUBE_TYPE_YOU_TUBE_AUTHORIZER)) -#define PUBLISHING_YOU_TUBE_YOU_TUBE_AUTHORIZER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_YOU_TUBE_TYPE_YOU_TUBE_AUTHORIZER, PublishingYouTubeYouTubeAuthorizerClass)) - -typedef struct _PublishingYouTubeYouTubeAuthorizer PublishingYouTubeYouTubeAuthorizer; -typedef struct _PublishingYouTubeYouTubeAuthorizerClass PublishingYouTubeYouTubeAuthorizerClass; -typedef struct _PublishingYouTubeYouTubeAuthorizerPrivate PublishingYouTubeYouTubeAuthorizerPrivate; -enum { - PUBLISHING_YOU_TUBE_YOU_TUBE_AUTHORIZER_0_PROPERTY, - PUBLISHING_YOU_TUBE_YOU_TUBE_AUTHORIZER_NUM_PROPERTIES -}; -static GParamSpec* publishing_you_tube_you_tube_authorizer_properties[PUBLISHING_YOU_TUBE_YOU_TUBE_AUTHORIZER_NUM_PROPERTIES]; -#define _publishing_rest_support_session_unref0(var) ((var == NULL) ? NULL : (var = (publishing_rest_support_session_unref (var), NULL))) -#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL))) -typedef struct _PublishingYouTubeYouTubePublisherPrivate PublishingYouTubeYouTubePublisherPrivate; -enum { - PUBLISHING_YOU_TUBE_YOU_TUBE_PUBLISHER_0_PROPERTY, - PUBLISHING_YOU_TUBE_YOU_TUBE_PUBLISHER_NUM_PROPERTIES -}; -static GParamSpec* publishing_you_tube_you_tube_publisher_properties[PUBLISHING_YOU_TUBE_YOU_TUBE_PUBLISHER_NUM_PROPERTIES]; -#define _publishing_you_tube_publishing_parameters_unref0(var) ((var == NULL) ? NULL : (var = (publishing_you_tube_publishing_parameters_unref (var), NULL))) -#define _g_error_free0(var) ((var == NULL) ? NULL : (var = (g_error_free (var), NULL))) - -#define PUBLISHING_YOU_TUBE_TYPE_PUBLISHING_OPTIONS_PANE (publishing_you_tube_publishing_options_pane_get_type ()) -#define PUBLISHING_YOU_TUBE_PUBLISHING_OPTIONS_PANE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_YOU_TUBE_TYPE_PUBLISHING_OPTIONS_PANE, PublishingYouTubePublishingOptionsPane)) -#define PUBLISHING_YOU_TUBE_PUBLISHING_OPTIONS_PANE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_YOU_TUBE_TYPE_PUBLISHING_OPTIONS_PANE, PublishingYouTubePublishingOptionsPaneClass)) -#define PUBLISHING_YOU_TUBE_IS_PUBLISHING_OPTIONS_PANE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_YOU_TUBE_TYPE_PUBLISHING_OPTIONS_PANE)) -#define PUBLISHING_YOU_TUBE_IS_PUBLISHING_OPTIONS_PANE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_YOU_TUBE_TYPE_PUBLISHING_OPTIONS_PANE)) -#define PUBLISHING_YOU_TUBE_PUBLISHING_OPTIONS_PANE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_YOU_TUBE_TYPE_PUBLISHING_OPTIONS_PANE, PublishingYouTubePublishingOptionsPaneClass)) - -typedef struct _PublishingYouTubePublishingOptionsPane PublishingYouTubePublishingOptionsPane; -typedef struct _PublishingYouTubePublishingOptionsPaneClass PublishingYouTubePublishingOptionsPaneClass; - -#define PUBLISHING_YOU_TUBE_TYPE_UPLOADER (publishing_you_tube_uploader_get_type ()) -#define PUBLISHING_YOU_TUBE_UPLOADER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_YOU_TUBE_TYPE_UPLOADER, PublishingYouTubeUploader)) -#define PUBLISHING_YOU_TUBE_UPLOADER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_YOU_TUBE_TYPE_UPLOADER, PublishingYouTubeUploaderClass)) -#define PUBLISHING_YOU_TUBE_IS_UPLOADER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_YOU_TUBE_TYPE_UPLOADER)) -#define PUBLISHING_YOU_TUBE_IS_UPLOADER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_YOU_TUBE_TYPE_UPLOADER)) -#define PUBLISHING_YOU_TUBE_UPLOADER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_YOU_TUBE_TYPE_UPLOADER, PublishingYouTubeUploaderClass)) - -typedef struct _PublishingYouTubeUploader PublishingYouTubeUploader; -typedef struct _PublishingYouTubeUploaderClass PublishingYouTubeUploaderClass; -#define _publishing_rest_support_batch_uploader_unref0(var) ((var == NULL) ? NULL : (var = (publishing_rest_support_batch_uploader_unref (var), NULL))) -typedef struct _PublishingYouTubePublishingOptionsPanePrivate PublishingYouTubePublishingOptionsPanePrivate; - -#define PUBLISHING_YOU_TUBE_PUBLISHING_OPTIONS_PANE_TYPE_PRIVACY_DESCRIPTION (publishing_you_tube_publishing_options_pane_privacy_description_get_type ()) -#define PUBLISHING_YOU_TUBE_PUBLISHING_OPTIONS_PANE_PRIVACY_DESCRIPTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_YOU_TUBE_PUBLISHING_OPTIONS_PANE_TYPE_PRIVACY_DESCRIPTION, PublishingYouTubePublishingOptionsPanePrivacyDescription)) -#define PUBLISHING_YOU_TUBE_PUBLISHING_OPTIONS_PANE_PRIVACY_DESCRIPTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_YOU_TUBE_PUBLISHING_OPTIONS_PANE_TYPE_PRIVACY_DESCRIPTION, PublishingYouTubePublishingOptionsPanePrivacyDescriptionClass)) -#define PUBLISHING_YOU_TUBE_PUBLISHING_OPTIONS_PANE_IS_PRIVACY_DESCRIPTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_YOU_TUBE_PUBLISHING_OPTIONS_PANE_TYPE_PRIVACY_DESCRIPTION)) -#define PUBLISHING_YOU_TUBE_PUBLISHING_OPTIONS_PANE_IS_PRIVACY_DESCRIPTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_YOU_TUBE_PUBLISHING_OPTIONS_PANE_TYPE_PRIVACY_DESCRIPTION)) -#define PUBLISHING_YOU_TUBE_PUBLISHING_OPTIONS_PANE_PRIVACY_DESCRIPTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_YOU_TUBE_PUBLISHING_OPTIONS_PANE_TYPE_PRIVACY_DESCRIPTION, PublishingYouTubePublishingOptionsPanePrivacyDescriptionClass)) - -typedef struct _PublishingYouTubePublishingOptionsPanePrivacyDescription PublishingYouTubePublishingOptionsPanePrivacyDescription; -typedef struct _PublishingYouTubePublishingOptionsPanePrivacyDescriptionClass PublishingYouTubePublishingOptionsPanePrivacyDescriptionClass; -enum { - PUBLISHING_YOU_TUBE_PUBLISHING_OPTIONS_PANE_0_PROPERTY, - PUBLISHING_YOU_TUBE_PUBLISHING_OPTIONS_PANE_NUM_PROPERTIES -}; -static GParamSpec* publishing_you_tube_publishing_options_pane_properties[PUBLISHING_YOU_TUBE_PUBLISHING_OPTIONS_PANE_NUM_PROPERTIES]; -#define _g_slist_free0(var) ((var == NULL) ? NULL : (var = (g_slist_free (var), NULL))) -typedef struct _PublishingYouTubePublishingOptionsPanePrivacyDescriptionPrivate PublishingYouTubePublishingOptionsPanePrivacyDescriptionPrivate; -#define _publishing_you_tube_publishing_options_pane_privacy_description_unref0(var) ((var == NULL) ? NULL : (var = (publishing_you_tube_publishing_options_pane_privacy_description_unref (var), NULL))) -typedef struct _PublishingYouTubePublishingOptionsPaneParamSpecPrivacyDescription PublishingYouTubePublishingOptionsPaneParamSpecPrivacyDescription; -enum { - PUBLISHING_YOU_TUBE_PUBLISHING_OPTIONS_PANE_PUBLISH_SIGNAL, - PUBLISHING_YOU_TUBE_PUBLISHING_OPTIONS_PANE_LOGOUT_SIGNAL, - PUBLISHING_YOU_TUBE_PUBLISHING_OPTIONS_PANE_NUM_SIGNALS -}; -static guint publishing_you_tube_publishing_options_pane_signals[PUBLISHING_YOU_TUBE_PUBLISHING_OPTIONS_PANE_NUM_SIGNALS] = {0}; - -#define PUBLISHING_YOU_TUBE_TYPE_UPLOAD_TRANSACTION (publishing_you_tube_upload_transaction_get_type ()) -#define PUBLISHING_YOU_TUBE_UPLOAD_TRANSACTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_YOU_TUBE_TYPE_UPLOAD_TRANSACTION, PublishingYouTubeUploadTransaction)) -#define PUBLISHING_YOU_TUBE_UPLOAD_TRANSACTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_YOU_TUBE_TYPE_UPLOAD_TRANSACTION, PublishingYouTubeUploadTransactionClass)) -#define PUBLISHING_YOU_TUBE_IS_UPLOAD_TRANSACTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_YOU_TUBE_TYPE_UPLOAD_TRANSACTION)) -#define PUBLISHING_YOU_TUBE_IS_UPLOAD_TRANSACTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_YOU_TUBE_TYPE_UPLOAD_TRANSACTION)) -#define PUBLISHING_YOU_TUBE_UPLOAD_TRANSACTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_YOU_TUBE_TYPE_UPLOAD_TRANSACTION, PublishingYouTubeUploadTransactionClass)) - -typedef struct _PublishingYouTubeUploadTransaction PublishingYouTubeUploadTransaction; -typedef struct _PublishingYouTubeUploadTransactionClass PublishingYouTubeUploadTransactionClass; -typedef struct _PublishingYouTubeUploadTransactionPrivate PublishingYouTubeUploadTransactionPrivate; -typedef struct _Block1Data Block1Data; -#define _g_main_loop_unref0(var) ((var == NULL) ? NULL : (var = (g_main_loop_unref (var), NULL))) -#define _publishing_rest_support_transaction_unref0(var) ((var == NULL) ? NULL : (var = (publishing_rest_support_transaction_unref (var), NULL))) -typedef struct _PublishingYouTubeUploadTransactionSpliceWithProgressData PublishingYouTubeUploadTransactionSpliceWithProgressData; -typedef struct _PublishingYouTubeUploaderPrivate PublishingYouTubeUploaderPrivate; -#define _vala_assert(expr, msg) if G_LIKELY (expr) ; else g_assertion_message_expr (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg); -#define _vala_return_if_fail(expr, msg) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return; } -#define _vala_return_val_if_fail(expr, msg, val) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return val; } -#define _vala_warn_if_fail(expr, msg) if G_LIKELY (expr) ; else g_warn_message (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg); - -struct _YouTubeService { - GObject parent_instance; - YouTubeServicePrivate * priv; -}; - -struct _YouTubeServiceClass { - GObjectClass parent_class; -}; - -typedef enum { - PUBLISHING_YOU_TUBE_PRIVACY_SETTING_PUBLIC, - PUBLISHING_YOU_TUBE_PRIVACY_SETTING_UNLISTED, - PUBLISHING_YOU_TUBE_PRIVACY_SETTING_PRIVATE -} PublishingYouTubePrivacySetting; - -struct _PublishingYouTubePublishingParameters { - GTypeInstance parent_instance; - volatile int ref_count; - PublishingYouTubePublishingParametersPrivate * priv; -}; - -struct _PublishingYouTubePublishingParametersClass { - GTypeClass parent_class; - void (*finalize) (PublishingYouTubePublishingParameters *self); -}; - -struct _PublishingYouTubePublishingParametersPrivate { - PublishingYouTubePrivacySetting privacy; - gchar* user_name; -}; - -struct _PublishingYouTubeParamSpecPublishingParameters { - GParamSpec parent_instance; -}; - -struct _PublishingYouTubeYouTubeAuthorizer { - GObject parent_instance; - PublishingYouTubeYouTubeAuthorizerPrivate * priv; -}; - -struct _PublishingYouTubeYouTubeAuthorizerClass { - GObjectClass parent_class; -}; - -struct _PublishingYouTubeYouTubeAuthorizerPrivate { - PublishingRESTSupportGoogleSession* session; - SpitPublishingAuthenticator* authenticator; -}; - -struct _PublishingYouTubeYouTubePublisher { - PublishingRESTSupportGooglePublisher parent_instance; - PublishingYouTubeYouTubePublisherPrivate * priv; -}; - -struct _PublishingYouTubeYouTubePublisherClass { - PublishingRESTSupportGooglePublisherClass parent_class; -}; - -struct _PublishingYouTubeYouTubePublisherPrivate { - gboolean running; - PublishingYouTubePublishingParameters* publishing_parameters; - SpitPublishingProgressCallback progress_reporter; - gpointer progress_reporter_target; - GDestroyNotify progress_reporter_target_destroy_notify; - SpitPublishingAuthenticator* authenticator; - GDataYouTubeService* youtube_service; -}; - -struct _PublishingYouTubePublishingOptionsPane { - GObject parent_instance; - PublishingYouTubePublishingOptionsPanePrivate * priv; -}; - -struct _PublishingYouTubePublishingOptionsPaneClass { - GObjectClass parent_class; -}; - -struct _PublishingYouTubePublishingOptionsPanePrivate { - GtkBox* pane_widget; - GtkComboBoxText* privacy_combo; - GtkLabel* login_identity_label; - GtkButton* publish_button; - GtkButton* logout_button; - GtkBuilder* builder; - GtkLabel* privacy_label; - PublishingYouTubePublishingOptionsPanePrivacyDescription** privacy_descriptions; - gint privacy_descriptions_length1; - gint _privacy_descriptions_size_; - PublishingYouTubePublishingParameters* publishing_parameters; -}; - -struct _PublishingYouTubePublishingOptionsPanePrivacyDescription { - GTypeInstance parent_instance; - volatile int ref_count; - PublishingYouTubePublishingOptionsPanePrivacyDescriptionPrivate * priv; - gchar* description; - PublishingYouTubePrivacySetting privacy_setting; -}; - -struct _PublishingYouTubePublishingOptionsPanePrivacyDescriptionClass { - GTypeClass parent_class; - void (*finalize) (PublishingYouTubePublishingOptionsPanePrivacyDescription *self); -}; - -struct _PublishingYouTubePublishingOptionsPaneParamSpecPrivacyDescription { - GParamSpec parent_instance; -}; - -struct _PublishingYouTubeUploadTransaction { - PublishingRESTSupportGooglePublisherAuthenticatedTransaction parent_instance; - PublishingYouTubeUploadTransactionPrivate * priv; -}; - -struct _PublishingYouTubeUploadTransactionClass { - PublishingRESTSupportGooglePublisherAuthenticatedTransactionClass parent_class; -}; - -struct _PublishingYouTubeUploadTransactionPrivate { - PublishingYouTubePublishingParameters* parameters; - PublishingRESTSupportGoogleSession* session; - SpitPublishingPublishable* publishable; - GDataYouTubeService* youtube_service; -}; - -struct _Block1Data { - int _ref_count_; - PublishingYouTubeUploadTransaction* self; - GMainLoop* loop; -}; - -struct _PublishingYouTubeUploadTransactionSpliceWithProgressData { - int _state_; - GObject* _source_object_; - GAsyncResult* _res_; - GTask* _async_result; - GAsyncReadyCallback _callback_; - gboolean _task_complete_; - PublishingYouTubeUploadTransaction* self; - GFileInfo* info; - GInputStream* input; - GOutputStream* output; - gint64 total_bytes; - gint64 bytes_to_write; - gint64 _tmp0_; - guint8 buffer[8192]; - gint64 _tmp1_; - gssize bytes_read; - gssize _tmp2_; - gssize bytes_written; - gssize _tmp3_; - gint64 _tmp4_; - gssize _tmp5_; - gint64 _tmp6_; - gint64 _tmp7_; - gint64 _tmp8_; - GError * _inner_error_; -}; - -struct _PublishingYouTubeUploader { - PublishingRESTSupportBatchUploader parent_instance; - PublishingYouTubeUploaderPrivate * priv; -}; - -struct _PublishingYouTubeUploaderClass { - PublishingRESTSupportBatchUploaderClass parent_class; -}; - -struct _PublishingYouTubeUploaderPrivate { - PublishingYouTubePublishingParameters* parameters; - GDataYouTubeService* youtube_service; -}; - - -static gpointer you_tube_service_parent_class = NULL; -static GdkPixbuf** you_tube_service_icon_pixbuf_set; -static gint you_tube_service_icon_pixbuf_set_length1; -static GdkPixbuf** you_tube_service_icon_pixbuf_set = NULL; -static gint you_tube_service_icon_pixbuf_set_length1 = 0; -static gint _you_tube_service_icon_pixbuf_set_size_ = 0; -static SpitPluggableIface * you_tube_service_spit_pluggable_parent_iface = NULL; -static SpitPublishingServiceIface * you_tube_service_spit_publishing_service_parent_iface = NULL; -static gpointer publishing_you_tube_publishing_parameters_parent_class = NULL; -static gpointer publishing_you_tube_you_tube_authorizer_parent_class = NULL; -static GDataAuthorizerInterface * publishing_you_tube_you_tube_authorizer_gdata_authorizer_parent_iface = NULL; -static gpointer publishing_you_tube_you_tube_publisher_parent_class = NULL; -static gpointer publishing_you_tube_publishing_options_pane_parent_class = NULL; -static gpointer publishing_you_tube_publishing_options_pane_privacy_description_parent_class = NULL; -static SpitPublishingDialogPaneIface * publishing_you_tube_publishing_options_pane_spit_publishing_dialog_pane_parent_iface = NULL; -static gpointer publishing_you_tube_upload_transaction_parent_class = NULL; -static gpointer publishing_you_tube_uploader_parent_class = NULL; - -GType you_tube_service_get_type (void) G_GNUC_CONST; -#define YOU_TUBE_SERVICE_ICON_FILENAME "youtube.png" -YouTubeService* you_tube_service_new (GFile* resource_directory); -YouTubeService* you_tube_service_construct (GType object_type, - GFile* resource_directory); -static gint you_tube_service_real_get_pluggable_interface (SpitPluggable* base, - gint min_host_interface, - gint max_host_interface); -static const gchar* you_tube_service_real_get_id (SpitPluggable* base); -static const gchar* you_tube_service_real_get_pluggable_name (SpitPluggable* base); -static void you_tube_service_real_get_info (SpitPluggable* base, - SpitPluggableInfo* info); -static GdkPixbuf** _vala_array_dup11 (GdkPixbuf** self, - int length); -static SpitPublishingPublisher* you_tube_service_real_create_publisher (SpitPublishingService* base, - SpitPublishingPluginHost* host); -PublishingYouTubeYouTubePublisher* publishing_you_tube_you_tube_publisher_new (SpitPublishingService* service, - SpitPublishingPluginHost* host); -PublishingYouTubeYouTubePublisher* publishing_you_tube_you_tube_publisher_construct (GType object_type, - SpitPublishingService* service, - SpitPublishingPluginHost* host); -GType publishing_you_tube_you_tube_publisher_get_type (void) G_GNUC_CONST; -static SpitPublishingPublisherMediaType you_tube_service_real_get_supported_media (SpitPublishingService* base); -static void you_tube_service_real_activation (SpitPluggable* base, - gboolean enabled); -static void you_tube_service_finalize (GObject * obj); -#define PUBLISHING_YOU_TUBE_DEVELOPER_KEY "AIzaSyB6hLnm0n5j8Y6Bkvh9bz3i8ADM2bJdYeY" -GType publishing_you_tube_privacy_setting_get_type (void) G_GNUC_CONST; -gpointer publishing_you_tube_publishing_parameters_ref (gpointer instance); -void publishing_you_tube_publishing_parameters_unref (gpointer instance); -GParamSpec* publishing_you_tube_param_spec_publishing_parameters (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void publishing_you_tube_value_set_publishing_parameters (GValue* value, - gpointer v_object); -void publishing_you_tube_value_take_publishing_parameters (GValue* value, - gpointer v_object); -gpointer publishing_you_tube_value_get_publishing_parameters (const GValue* value); -GType publishing_you_tube_publishing_parameters_get_type (void) G_GNUC_CONST; -#define PUBLISHING_YOU_TUBE_PUBLISHING_PARAMETERS_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), PUBLISHING_YOU_TUBE_TYPE_PUBLISHING_PARAMETERS, PublishingYouTubePublishingParametersPrivate)) -PublishingYouTubePublishingParameters* publishing_you_tube_publishing_parameters_new (void); -PublishingYouTubePublishingParameters* publishing_you_tube_publishing_parameters_construct (GType object_type); -PublishingYouTubePrivacySetting publishing_you_tube_publishing_parameters_get_privacy (PublishingYouTubePublishingParameters* self); -void publishing_you_tube_publishing_parameters_set_privacy (PublishingYouTubePublishingParameters* self, - PublishingYouTubePrivacySetting privacy); -gchar* publishing_you_tube_publishing_parameters_get_user_name (PublishingYouTubePublishingParameters* self); -void publishing_you_tube_publishing_parameters_set_user_name (PublishingYouTubePublishingParameters* self, - const gchar* user_name); -static void publishing_you_tube_publishing_parameters_finalize (PublishingYouTubePublishingParameters * obj); -GType publishing_you_tube_you_tube_authorizer_get_type (void) G_GNUC_CONST; -#define PUBLISHING_YOU_TUBE_YOU_TUBE_AUTHORIZER_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), PUBLISHING_YOU_TUBE_TYPE_YOU_TUBE_AUTHORIZER, PublishingYouTubeYouTubeAuthorizerPrivate)) -PublishingYouTubeYouTubeAuthorizer* publishing_you_tube_you_tube_authorizer_new (PublishingRESTSupportGoogleSession* session, - SpitPublishingAuthenticator* authenticator); -PublishingYouTubeYouTubeAuthorizer* publishing_you_tube_you_tube_authorizer_construct (GType object_type, - PublishingRESTSupportGoogleSession* session, - SpitPublishingAuthenticator* authenticator); -static gboolean publishing_you_tube_you_tube_authorizer_real_is_authorized_for_domain (GDataAuthorizer* base, - GDataAuthorizationDomain* domain); -static void publishing_you_tube_you_tube_authorizer_real_process_request (GDataAuthorizer* base, - GDataAuthorizationDomain* domain, - SoupMessage* message); -static gboolean publishing_you_tube_you_tube_authorizer_real_refresh_authorization (GDataAuthorizer* base, - GCancellable* cancellable, - GError** error); -static void publishing_you_tube_you_tube_authorizer_finalize (GObject * obj); -#define PUBLISHING_YOU_TUBE_YOU_TUBE_PUBLISHER_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), PUBLISHING_YOU_TUBE_TYPE_YOU_TUBE_PUBLISHER, PublishingYouTubeYouTubePublisherPrivate)) -static gboolean publishing_you_tube_you_tube_publisher_real_is_running (PublishingRESTSupportGooglePublisher* base); -static void publishing_you_tube_you_tube_publisher_real_start (PublishingRESTSupportGooglePublisher* base); -static void publishing_you_tube_you_tube_publisher_real_stop (PublishingRESTSupportGooglePublisher* base); -static void publishing_you_tube_you_tube_publisher_real_on_login_flow_complete (PublishingRESTSupportGooglePublisher* base); -static void publishing_you_tube_you_tube_publisher_do_show_publishing_options_pane (PublishingYouTubeYouTubePublisher* self); -static void publishing_you_tube_you_tube_publisher_on_publishing_options_logout (PublishingYouTubeYouTubePublisher* self); -static void publishing_you_tube_you_tube_publisher_on_publishing_options_publish (PublishingYouTubeYouTubePublisher* self); -static void publishing_you_tube_you_tube_publisher_do_upload (PublishingYouTubeYouTubePublisher* self); -static void publishing_you_tube_you_tube_publisher_on_upload_status_updated (PublishingYouTubeYouTubePublisher* self, - gint file_number, - gdouble completed_fraction); -static void publishing_you_tube_you_tube_publisher_on_upload_complete (PublishingYouTubeYouTubePublisher* self, - PublishingRESTSupportBatchUploader* uploader, - gint num_published); -static void _publishing_you_tube_you_tube_publisher_on_upload_complete_publishing_rest_support_batch_uploader_upload_complete (PublishingRESTSupportBatchUploader* _sender, - gint num_photos_published, - gpointer self); -static void publishing_you_tube_you_tube_publisher_on_upload_error (PublishingYouTubeYouTubePublisher* self, - PublishingRESTSupportBatchUploader* uploader, - GError* err); -static void _publishing_you_tube_you_tube_publisher_on_upload_error_publishing_rest_support_batch_uploader_upload_error (PublishingRESTSupportBatchUploader* _sender, - GError* err, - gpointer self); -static void publishing_you_tube_you_tube_publisher_do_show_success_pane (PublishingYouTubeYouTubePublisher* self); -GType publishing_you_tube_publishing_options_pane_get_type (void) G_GNUC_CONST; -PublishingYouTubePublishingOptionsPane* publishing_you_tube_publishing_options_pane_new (SpitPublishingAuthenticator* authenticator, - SpitPublishingPluginHost* host, - GtkBuilder* builder, - PublishingYouTubePublishingParameters* publishing_parameters); -PublishingYouTubePublishingOptionsPane* publishing_you_tube_publishing_options_pane_construct (GType object_type, - SpitPublishingAuthenticator* authenticator, - SpitPublishingPluginHost* host, - GtkBuilder* builder, - PublishingYouTubePublishingParameters* publishing_parameters); -static void _publishing_you_tube_you_tube_publisher_on_publishing_options_publish_publishing_you_tube_publishing_options_pane_publish (PublishingYouTubePublishingOptionsPane* _sender, - gpointer self); -static void _publishing_you_tube_you_tube_publisher_on_publishing_options_logout_publishing_you_tube_publishing_options_pane_logout (PublishingYouTubePublishingOptionsPane* _sender, - gpointer self); -GType publishing_you_tube_uploader_get_type (void) G_GNUC_CONST; -PublishingYouTubeUploader* publishing_you_tube_uploader_new (GDataYouTubeService* youtube_service, - PublishingRESTSupportGoogleSession* session, - SpitPublishingPublishable** publishables, - int publishables_length1, - PublishingYouTubePublishingParameters* parameters); -PublishingYouTubeUploader* publishing_you_tube_uploader_construct (GType object_type, - GDataYouTubeService* youtube_service, - PublishingRESTSupportGoogleSession* session, - SpitPublishingPublishable** publishables, - int publishables_length1, - PublishingYouTubePublishingParameters* parameters); -static void _publishing_you_tube_you_tube_publisher_on_upload_status_updated_spit_publishing_progress_callback (gint file_number, - gdouble fraction_complete, - gpointer self); -static void publishing_you_tube_you_tube_publisher_real_do_logout (PublishingRESTSupportGooglePublisher* base); -static SpitPublishingAuthenticator* publishing_you_tube_you_tube_publisher_real_get_authenticator (PublishingRESTSupportGooglePublisher* base); -static void publishing_you_tube_you_tube_publisher_finalize (GObject * obj); -static gpointer publishing_you_tube_publishing_options_pane_privacy_description_ref (gpointer instance); -static void publishing_you_tube_publishing_options_pane_privacy_description_unref (gpointer instance); -static GParamSpec* publishing_you_tube_publishing_options_pane_param_spec_privacy_description (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags) G_GNUC_UNUSED; -static void publishing_you_tube_publishing_options_pane_value_set_privacy_description (GValue* value, - gpointer v_object) G_GNUC_UNUSED; -static void publishing_you_tube_publishing_options_pane_value_take_privacy_description (GValue* value, - gpointer v_object) G_GNUC_UNUSED; -static gpointer publishing_you_tube_publishing_options_pane_value_get_privacy_description (const GValue* value) G_GNUC_UNUSED; -static GType publishing_you_tube_publishing_options_pane_privacy_description_get_type (void) G_GNUC_CONST G_GNUC_UNUSED; -#define PUBLISHING_YOU_TUBE_PUBLISHING_OPTIONS_PANE_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), PUBLISHING_YOU_TUBE_TYPE_PUBLISHING_OPTIONS_PANE, PublishingYouTubePublishingOptionsPanePrivate)) -static PublishingYouTubePublishingOptionsPanePrivacyDescription** publishing_you_tube_publishing_options_pane_create_privacy_descriptions (PublishingYouTubePublishingOptionsPane* self, - int* result_length1); -static void publishing_you_tube_publishing_options_pane_on_logout_clicked (PublishingYouTubePublishingOptionsPane* self); -static void _publishing_you_tube_publishing_options_pane_on_logout_clicked_gtk_button_clicked (GtkButton* _sender, - gpointer self); -static void publishing_you_tube_publishing_options_pane_on_publish_clicked (PublishingYouTubePublishingOptionsPane* self); -static void _publishing_you_tube_publishing_options_pane_on_publish_clicked_gtk_button_clicked (GtkButton* _sender, - gpointer self); -static void publishing_you_tube_publishing_options_pane_update_publish_button_sensitivity (PublishingYouTubePublishingOptionsPane* self); -static PublishingYouTubePublishingOptionsPanePrivacyDescription* publishing_you_tube_publishing_options_pane_privacy_description_new (const gchar* description, - PublishingYouTubePrivacySetting privacy_setting); -static PublishingYouTubePublishingOptionsPanePrivacyDescription* publishing_you_tube_publishing_options_pane_privacy_description_construct (GType object_type, - const gchar* description, - PublishingYouTubePrivacySetting privacy_setting); -static void _vala_array_add35 (PublishingYouTubePublishingOptionsPanePrivacyDescription** * array, - int* length, - int* size, - PublishingYouTubePublishingOptionsPanePrivacyDescription* value); -static void _vala_array_add36 (PublishingYouTubePublishingOptionsPanePrivacyDescription** * array, - int* length, - int* size, - PublishingYouTubePublishingOptionsPanePrivacyDescription* value); -static void _vala_array_add37 (PublishingYouTubePublishingOptionsPanePrivacyDescription** * array, - int* length, - int* size, - PublishingYouTubePublishingOptionsPanePrivacyDescription* value); -static GtkWidget* publishing_you_tube_publishing_options_pane_real_get_widget (SpitPublishingDialogPane* base); -static SpitPublishingDialogPaneGeometryOptions publishing_you_tube_publishing_options_pane_real_get_preferred_geometry (SpitPublishingDialogPane* base); -static void publishing_you_tube_publishing_options_pane_real_on_pane_installed (SpitPublishingDialogPane* base); -static void publishing_you_tube_publishing_options_pane_real_on_pane_uninstalled (SpitPublishingDialogPane* base); -static void publishing_you_tube_publishing_options_pane_privacy_description_finalize (PublishingYouTubePublishingOptionsPanePrivacyDescription * obj); -static void publishing_you_tube_publishing_options_pane_finalize (GObject * obj); -GType publishing_you_tube_upload_transaction_get_type (void) G_GNUC_CONST; -#define PUBLISHING_YOU_TUBE_UPLOAD_TRANSACTION_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), PUBLISHING_YOU_TUBE_TYPE_UPLOAD_TRANSACTION, PublishingYouTubeUploadTransactionPrivate)) -#define PUBLISHING_YOU_TUBE_UPLOAD_TRANSACTION_ENDPOINT_URL "https://uploads.gdata.youtube.com/feeds/api/users/default/uploads" -PublishingYouTubeUploadTransaction* publishing_you_tube_upload_transaction_new (GDataYouTubeService* youtube_service, - PublishingRESTSupportGoogleSession* session, - PublishingYouTubePublishingParameters* parameters, - SpitPublishingPublishable* publishable); -PublishingYouTubeUploadTransaction* publishing_you_tube_upload_transaction_construct (GType object_type, - GDataYouTubeService* youtube_service, - PublishingRESTSupportGoogleSession* session, - PublishingYouTubePublishingParameters* parameters, - SpitPublishingPublishable* publishable); -static void publishing_you_tube_upload_transaction_real_execute (PublishingRESTSupportTransaction* base, - GError** error); -static Block1Data* block1_data_ref (Block1Data* _data1_); -static void block1_data_unref (void * _userdata_); -static void publishing_you_tube_upload_transaction_splice_with_progress (PublishingYouTubeUploadTransaction* self, - GFileInfo* info, - GInputStream* input, - GOutputStream* output, - GAsyncReadyCallback _callback_, - gpointer _user_data_); -static void publishing_you_tube_upload_transaction_splice_with_progress_finish (PublishingYouTubeUploadTransaction* self, - GAsyncResult* _res_, - GError** error); -static void ___lambda4_ (Block1Data* _data1_, - GObject* obj, - GAsyncResult* res); -static void ____lambda4__gasync_ready_callback (GObject* source_object, - GAsyncResult* res, - gpointer self); -static void publishing_you_tube_upload_transaction_splice_with_progress_data_free (gpointer _data); -static void publishing_you_tube_upload_transaction_splice_with_progress_async_ready_wrapper (GObject *source_object, - GAsyncResult *res, - void *user_data); -static gboolean publishing_you_tube_upload_transaction_splice_with_progress_co (PublishingYouTubeUploadTransactionSpliceWithProgressData* _data_); -static void publishing_you_tube_upload_transaction_splice_with_progress_ready (GObject* source_object, - GAsyncResult* _res_, - gpointer _user_data_); -static void publishing_you_tube_upload_transaction_finalize (PublishingRESTSupportTransaction * obj); -#define PUBLISHING_YOU_TUBE_UPLOADER_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), PUBLISHING_YOU_TUBE_TYPE_UPLOADER, PublishingYouTubeUploaderPrivate)) -static PublishingRESTSupportTransaction* publishing_you_tube_uploader_real_create_transaction (PublishingRESTSupportBatchUploader* base, - SpitPublishingPublishable* publishable); -static void publishing_you_tube_uploader_finalize (PublishingRESTSupportBatchUploader * obj); -static void _vala_array_destroy (gpointer array, - gint array_length, - GDestroyNotify destroy_func); -static void _vala_array_free (gpointer array, - gint array_length, - GDestroyNotify destroy_func); - - -YouTubeService* -you_tube_service_construct (GType object_type, - GFile* resource_directory) -{ - YouTubeService * self = NULL; - GdkPixbuf** _tmp0_; - gint _tmp0__length1; -#line 12 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - g_return_val_if_fail (G_IS_FILE (resource_directory), NULL); -#line 12 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - self = (YouTubeService*) g_object_new (object_type, NULL); -#line 13 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp0_ = you_tube_service_icon_pixbuf_set; -#line 13 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp0__length1 = you_tube_service_icon_pixbuf_set_length1; -#line 13 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - if (_tmp0_ == NULL) { -#line 594 "YouTubePublishing.c" - gint _tmp1_; - GdkPixbuf** _tmp2_; -#line 14 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp2_ = resources_load_from_resource (PLUGIN_RESOURCE_PATH "/" YOU_TUBE_SERVICE_ICON_FILENAME, &_tmp1_); -#line 14 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - you_tube_service_icon_pixbuf_set = (_vala_array_free (you_tube_service_icon_pixbuf_set, you_tube_service_icon_pixbuf_set_length1, (GDestroyNotify) g_object_unref), NULL); -#line 14 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - you_tube_service_icon_pixbuf_set = _tmp2_; -#line 14 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - you_tube_service_icon_pixbuf_set_length1 = _tmp1_; -#line 14 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _you_tube_service_icon_pixbuf_set_size_ = you_tube_service_icon_pixbuf_set_length1; -#line 607 "YouTubePublishing.c" - } -#line 12 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - return self; -#line 611 "YouTubePublishing.c" -} - - -YouTubeService* -you_tube_service_new (GFile* resource_directory) -{ -#line 12 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - return you_tube_service_construct (TYPE_YOU_TUBE_SERVICE, resource_directory); -#line 620 "YouTubePublishing.c" -} - - -static gint -you_tube_service_real_get_pluggable_interface (SpitPluggable* base, - gint min_host_interface, - gint max_host_interface) -{ - YouTubeService * self; - gint result = 0; -#line 18 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_YOU_TUBE_SERVICE, YouTubeService); -#line 19 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - result = spit_negotiate_interfaces (min_host_interface, max_host_interface, SPIT_PUBLISHING_CURRENT_INTERFACE); -#line 19 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - return result; -#line 637 "YouTubePublishing.c" -} - - -static const gchar* -you_tube_service_real_get_id (SpitPluggable* base) -{ - YouTubeService * self; - const gchar* result = NULL; -#line 23 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_YOU_TUBE_SERVICE, YouTubeService); -#line 24 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - result = "org.yorba.shotwell.publishing.youtube"; -#line 24 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - return result; -#line 652 "YouTubePublishing.c" -} - - -static const gchar* -you_tube_service_real_get_pluggable_name (SpitPluggable* base) -{ - YouTubeService * self; - const gchar* result = NULL; -#line 27 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_YOU_TUBE_SERVICE, YouTubeService); -#line 28 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - result = "YouTube"; -#line 28 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - return result; -#line 667 "YouTubePublishing.c" -} - - -static gpointer -_g_object_ref0 (gpointer self) -{ -#line 40 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - return self ? g_object_ref (self) : NULL; -#line 676 "YouTubePublishing.c" -} - - -static GdkPixbuf** -_vala_array_dup11 (GdkPixbuf** self, - int length) -{ - GdkPixbuf** result; - int i; -#line 40 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - result = g_new0 (GdkPixbuf*, length + 1); -#line 40 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - for (i = 0; i < length; i++) { -#line 690 "YouTubePublishing.c" - GdkPixbuf* _tmp0_; -#line 40 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp0_ = _g_object_ref0 (self[i]); -#line 40 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - result[i] = _tmp0_; -#line 696 "YouTubePublishing.c" - } -#line 40 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - return result; -#line 700 "YouTubePublishing.c" -} - - -static void -you_tube_service_real_get_info (SpitPluggable* base, - SpitPluggableInfo* info) -{ - YouTubeService * 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 31 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_YOU_TUBE_SERVICE, YouTubeService); -#line 31 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - g_return_if_fail (info != NULL); -#line 32 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp0_ = g_strdup ("Jani Monoses, Lucas Beeler"); -#line 32 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _g_free0 ((*info).authors); -#line 32 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - (*info).authors = _tmp0_; -#line 33 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp1_ = g_strdup (_ ("Copyright 2016 Software Freedom Conservancy Inc.")); -#line 33 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _g_free0 ((*info).copyright); -#line 33 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - (*info).copyright = _tmp1_; -#line 34 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp2_ = g_strdup (RESOURCES_TRANSLATORS); -#line 34 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _g_free0 ((*info).translators); -#line 34 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - (*info).translators = _tmp2_; -#line 35 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp3_ = g_strdup (_VERSION); -#line 35 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _g_free0 ((*info).version); -#line 35 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - (*info).version = _tmp3_; -#line 36 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp4_ = g_strdup (RESOURCES_WEBSITE_NAME); -#line 36 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _g_free0 ((*info).website_name); -#line 36 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - (*info).website_name = _tmp4_; -#line 37 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp5_ = g_strdup (RESOURCES_WEBSITE_URL); -#line 37 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _g_free0 ((*info).website_url); -#line 37 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - (*info).website_url = _tmp5_; -#line 38 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - (*info).is_license_wordwrapped = FALSE; -#line 39 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp6_ = g_strdup (RESOURCES_LICENSE); -#line 39 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _g_free0 ((*info).license); -#line 39 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - (*info).license = _tmp6_; -#line 40 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp7_ = you_tube_service_icon_pixbuf_set; -#line 40 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp7__length1 = you_tube_service_icon_pixbuf_set_length1; -#line 40 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp8_ = (_tmp7_ != NULL) ? _vala_array_dup11 (_tmp7_, _tmp7__length1) : ((gpointer) _tmp7_); -#line 40 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp8__length1 = _tmp7__length1; -#line 40 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - (*info).icons = (_vala_array_free ((*info).icons, (*info).icons_length1, (GDestroyNotify) g_object_unref), NULL); -#line 40 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - (*info).icons = _tmp8_; -#line 40 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - (*info).icons_length1 = _tmp8__length1; -#line 782 "YouTubePublishing.c" -} - - -static SpitPublishingPublisher* -you_tube_service_real_create_publisher (SpitPublishingService* base, - SpitPublishingPluginHost* host) -{ - YouTubeService * self; - SpitPublishingPublisher* result = NULL; - PublishingYouTubeYouTubePublisher* _tmp0_; -#line 43 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_YOU_TUBE_SERVICE, YouTubeService); -#line 43 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - g_return_val_if_fail (SPIT_PUBLISHING_IS_PLUGIN_HOST (host), NULL); -#line 44 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp0_ = publishing_you_tube_you_tube_publisher_new (G_TYPE_CHECK_INSTANCE_CAST (self, SPIT_PUBLISHING_TYPE_SERVICE, SpitPublishingService), host); -#line 44 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - result = G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, SPIT_PUBLISHING_TYPE_PUBLISHER, SpitPublishingPublisher); -#line 44 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - return result; -#line 803 "YouTubePublishing.c" -} - - -static SpitPublishingPublisherMediaType -you_tube_service_real_get_supported_media (SpitPublishingService* base) -{ - YouTubeService * self; - SpitPublishingPublisherMediaType result = 0; -#line 47 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_YOU_TUBE_SERVICE, YouTubeService); -#line 48 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - result = SPIT_PUBLISHING_PUBLISHER_MEDIA_TYPE_VIDEO; -#line 48 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - return result; -#line 818 "YouTubePublishing.c" -} - - -static void -you_tube_service_real_activation (SpitPluggable* base, - gboolean enabled) -{ - YouTubeService * self; -#line 51 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_YOU_TUBE_SERVICE, YouTubeService); -#line 829 "YouTubePublishing.c" -} - - -static void -you_tube_service_class_init (YouTubeServiceClass * klass) -{ -#line 7 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - you_tube_service_parent_class = g_type_class_peek_parent (klass); -#line 7 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - G_OBJECT_CLASS (klass)->finalize = you_tube_service_finalize; -#line 840 "YouTubePublishing.c" -} - - -static void -you_tube_service_spit_pluggable_interface_init (SpitPluggableIface * iface) -{ -#line 7 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - you_tube_service_spit_pluggable_parent_iface = g_type_interface_peek_parent (iface); -#line 7 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - iface->get_pluggable_interface = (gint (*) (SpitPluggable *, gint, gint)) you_tube_service_real_get_pluggable_interface; -#line 7 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - iface->get_id = (const gchar* (*) (SpitPluggable *)) you_tube_service_real_get_id; -#line 7 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - iface->get_pluggable_name = (const gchar* (*) (SpitPluggable *)) you_tube_service_real_get_pluggable_name; -#line 7 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - iface->get_info = (void (*) (SpitPluggable *, SpitPluggableInfo*)) you_tube_service_real_get_info; -#line 7 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - iface->activation = (void (*) (SpitPluggable *, gboolean)) you_tube_service_real_activation; -#line 859 "YouTubePublishing.c" -} - - -static void -you_tube_service_spit_publishing_service_interface_init (SpitPublishingServiceIface * iface) -{ -#line 7 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - you_tube_service_spit_publishing_service_parent_iface = g_type_interface_peek_parent (iface); -#line 7 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - iface->create_publisher = (SpitPublishingPublisher* (*) (SpitPublishingService *, SpitPublishingPluginHost*)) you_tube_service_real_create_publisher; -#line 7 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - iface->get_supported_media = (SpitPublishingPublisherMediaType (*) (SpitPublishingService *)) you_tube_service_real_get_supported_media; -#line 872 "YouTubePublishing.c" -} - - -static void -you_tube_service_instance_init (YouTubeService * self) -{ -} - - -static void -you_tube_service_finalize (GObject * obj) -{ - YouTubeService * self; -#line 7 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_YOU_TUBE_SERVICE, YouTubeService); -#line 7 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - G_OBJECT_CLASS (you_tube_service_parent_class)->finalize (obj); -#line 890 "YouTubePublishing.c" -} - - -GType -you_tube_service_get_type (void) -{ - static volatile gsize you_tube_service_type_id__volatile = 0; - if (g_once_init_enter (&you_tube_service_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (YouTubeServiceClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) you_tube_service_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (YouTubeService), 0, (GInstanceInitFunc) you_tube_service_instance_init, NULL }; - static const GInterfaceInfo spit_pluggable_info = { (GInterfaceInitFunc) you_tube_service_spit_pluggable_interface_init, (GInterfaceFinalizeFunc) NULL, NULL}; - static const GInterfaceInfo spit_publishing_service_info = { (GInterfaceInitFunc) you_tube_service_spit_publishing_service_interface_init, (GInterfaceFinalizeFunc) NULL, NULL}; - GType you_tube_service_type_id; - you_tube_service_type_id = g_type_register_static (G_TYPE_OBJECT, "YouTubeService", &g_define_type_info, 0); - g_type_add_interface_static (you_tube_service_type_id, SPIT_TYPE_PLUGGABLE, &spit_pluggable_info); - g_type_add_interface_static (you_tube_service_type_id, SPIT_PUBLISHING_TYPE_SERVICE, &spit_publishing_service_info); - g_once_init_leave (&you_tube_service_type_id__volatile, you_tube_service_type_id); - } - return you_tube_service_type_id__volatile; -} - - -GType -publishing_you_tube_privacy_setting_get_type (void) -{ - static volatile gsize publishing_you_tube_privacy_setting_type_id__volatile = 0; - if (g_once_init_enter (&publishing_you_tube_privacy_setting_type_id__volatile)) { - static const GEnumValue values[] = {{PUBLISHING_YOU_TUBE_PRIVACY_SETTING_PUBLIC, "PUBLISHING_YOU_TUBE_PRIVACY_SETTING_PUBLIC", "public"}, {PUBLISHING_YOU_TUBE_PRIVACY_SETTING_UNLISTED, "PUBLISHING_YOU_TUBE_PRIVACY_SETTING_UNLISTED", "unlisted"}, {PUBLISHING_YOU_TUBE_PRIVACY_SETTING_PRIVATE, "PUBLISHING_YOU_TUBE_PRIVACY_SETTING_PRIVATE", "private"}, {0, NULL, NULL}}; - GType publishing_you_tube_privacy_setting_type_id; - publishing_you_tube_privacy_setting_type_id = g_enum_register_static ("PublishingYouTubePrivacySetting", values); - g_once_init_leave (&publishing_you_tube_privacy_setting_type_id__volatile, publishing_you_tube_privacy_setting_type_id); - } - return publishing_you_tube_privacy_setting_type_id__volatile; -} - - -PublishingYouTubePublishingParameters* -publishing_you_tube_publishing_parameters_construct (GType object_type) -{ - PublishingYouTubePublishingParameters* self = NULL; -#line 70 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - self = (PublishingYouTubePublishingParameters*) g_type_create_instance (object_type); -#line 71 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - self->priv->privacy = PUBLISHING_YOU_TUBE_PRIVACY_SETTING_PRIVATE; -#line 72 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _g_free0 (self->priv->user_name); -#line 72 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - self->priv->user_name = NULL; -#line 70 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - return self; -#line 940 "YouTubePublishing.c" -} - - -PublishingYouTubePublishingParameters* -publishing_you_tube_publishing_parameters_new (void) -{ -#line 70 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - return publishing_you_tube_publishing_parameters_construct (PUBLISHING_YOU_TUBE_TYPE_PUBLISHING_PARAMETERS); -#line 949 "YouTubePublishing.c" -} - - -PublishingYouTubePrivacySetting -publishing_you_tube_publishing_parameters_get_privacy (PublishingYouTubePublishingParameters* self) -{ - PublishingYouTubePrivacySetting result = 0; - PublishingYouTubePrivacySetting _tmp0_; -#line 75 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - g_return_val_if_fail (PUBLISHING_YOU_TUBE_IS_PUBLISHING_PARAMETERS (self), 0); -#line 76 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp0_ = self->priv->privacy; -#line 76 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - result = _tmp0_; -#line 76 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - return result; -#line 966 "YouTubePublishing.c" -} - - -void -publishing_you_tube_publishing_parameters_set_privacy (PublishingYouTubePublishingParameters* self, - PublishingYouTubePrivacySetting privacy) -{ -#line 79 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - g_return_if_fail (PUBLISHING_YOU_TUBE_IS_PUBLISHING_PARAMETERS (self)); -#line 80 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - self->priv->privacy = privacy; -#line 978 "YouTubePublishing.c" -} - - -gchar* -publishing_you_tube_publishing_parameters_get_user_name (PublishingYouTubePublishingParameters* self) -{ - gchar* result = NULL; - const gchar* _tmp0_; - gchar* _tmp1_; -#line 83 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - g_return_val_if_fail (PUBLISHING_YOU_TUBE_IS_PUBLISHING_PARAMETERS (self), NULL); -#line 84 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp0_ = self->priv->user_name; -#line 84 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp1_ = g_strdup (_tmp0_); -#line 84 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - result = _tmp1_; -#line 84 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - return result; -#line 998 "YouTubePublishing.c" -} - - -void -publishing_you_tube_publishing_parameters_set_user_name (PublishingYouTubePublishingParameters* self, - const gchar* user_name) -{ - gchar* _tmp0_; -#line 87 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - g_return_if_fail (PUBLISHING_YOU_TUBE_IS_PUBLISHING_PARAMETERS (self)); -#line 88 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp0_ = g_strdup (user_name); -#line 88 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _g_free0 (self->priv->user_name); -#line 88 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - self->priv->user_name = _tmp0_; -#line 1015 "YouTubePublishing.c" -} - - -static void -publishing_you_tube_value_publishing_parameters_init (GValue* value) -{ -#line 66 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - value->data[0].v_pointer = NULL; -#line 1024 "YouTubePublishing.c" -} - - -static void -publishing_you_tube_value_publishing_parameters_free_value (GValue* value) -{ -#line 66 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - if (value->data[0].v_pointer) { -#line 66 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - publishing_you_tube_publishing_parameters_unref (value->data[0].v_pointer); -#line 1035 "YouTubePublishing.c" - } -} - - -static void -publishing_you_tube_value_publishing_parameters_copy_value (const GValue* src_value, - GValue* dest_value) -{ -#line 66 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - if (src_value->data[0].v_pointer) { -#line 66 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - dest_value->data[0].v_pointer = publishing_you_tube_publishing_parameters_ref (src_value->data[0].v_pointer); -#line 1048 "YouTubePublishing.c" - } else { -#line 66 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - dest_value->data[0].v_pointer = NULL; -#line 1052 "YouTubePublishing.c" - } -} - - -static gpointer -publishing_you_tube_value_publishing_parameters_peek_pointer (const GValue* value) -{ -#line 66 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - return value->data[0].v_pointer; -#line 1062 "YouTubePublishing.c" -} - - -static gchar* -publishing_you_tube_value_publishing_parameters_collect_value (GValue* value, - guint n_collect_values, - GTypeCValue* collect_values, - guint collect_flags) -{ -#line 66 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - if (collect_values[0].v_pointer) { -#line 1074 "YouTubePublishing.c" - PublishingYouTubePublishingParameters * object; - object = collect_values[0].v_pointer; -#line 66 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - if (object->parent_instance.g_class == NULL) { -#line 66 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL); -#line 1081 "YouTubePublishing.c" - } else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) { -#line 66 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - return g_strconcat ("invalid object type `", g_type_name (G_TYPE_FROM_INSTANCE (object)), "' for value type `", G_VALUE_TYPE_NAME (value), "'", NULL); -#line 1085 "YouTubePublishing.c" - } -#line 66 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - value->data[0].v_pointer = publishing_you_tube_publishing_parameters_ref (object); -#line 1089 "YouTubePublishing.c" - } else { -#line 66 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - value->data[0].v_pointer = NULL; -#line 1093 "YouTubePublishing.c" - } -#line 66 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - return NULL; -#line 1097 "YouTubePublishing.c" -} - - -static gchar* -publishing_you_tube_value_publishing_parameters_lcopy_value (const GValue* value, - guint n_collect_values, - GTypeCValue* collect_values, - guint collect_flags) -{ - PublishingYouTubePublishingParameters ** object_p; - object_p = collect_values[0].v_pointer; -#line 66 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - if (!object_p) { -#line 66 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value)); -#line 1113 "YouTubePublishing.c" - } -#line 66 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - if (!value->data[0].v_pointer) { -#line 66 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - *object_p = NULL; -#line 1119 "YouTubePublishing.c" - } else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) { -#line 66 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - *object_p = value->data[0].v_pointer; -#line 1123 "YouTubePublishing.c" - } else { -#line 66 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - *object_p = publishing_you_tube_publishing_parameters_ref (value->data[0].v_pointer); -#line 1127 "YouTubePublishing.c" - } -#line 66 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - return NULL; -#line 1131 "YouTubePublishing.c" -} - - -GParamSpec* -publishing_you_tube_param_spec_publishing_parameters (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags) -{ - PublishingYouTubeParamSpecPublishingParameters* spec; -#line 66 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - g_return_val_if_fail (g_type_is_a (object_type, PUBLISHING_YOU_TUBE_TYPE_PUBLISHING_PARAMETERS), NULL); -#line 66 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags); -#line 66 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - G_PARAM_SPEC (spec)->value_type = object_type; -#line 66 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - return G_PARAM_SPEC (spec); -#line 1151 "YouTubePublishing.c" -} - - -gpointer -publishing_you_tube_value_get_publishing_parameters (const GValue* value) -{ -#line 66 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, PUBLISHING_YOU_TUBE_TYPE_PUBLISHING_PARAMETERS), NULL); -#line 66 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - return value->data[0].v_pointer; -#line 1162 "YouTubePublishing.c" -} - - -void -publishing_you_tube_value_set_publishing_parameters (GValue* value, - gpointer v_object) -{ - PublishingYouTubePublishingParameters * old; -#line 66 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, PUBLISHING_YOU_TUBE_TYPE_PUBLISHING_PARAMETERS)); -#line 66 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - old = value->data[0].v_pointer; -#line 66 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - if (v_object) { -#line 66 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, PUBLISHING_YOU_TUBE_TYPE_PUBLISHING_PARAMETERS)); -#line 66 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value))); -#line 66 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - value->data[0].v_pointer = v_object; -#line 66 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - publishing_you_tube_publishing_parameters_ref (value->data[0].v_pointer); -#line 1185 "YouTubePublishing.c" - } else { -#line 66 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - value->data[0].v_pointer = NULL; -#line 1189 "YouTubePublishing.c" - } -#line 66 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - if (old) { -#line 66 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - publishing_you_tube_publishing_parameters_unref (old); -#line 1195 "YouTubePublishing.c" - } -} - - -void -publishing_you_tube_value_take_publishing_parameters (GValue* value, - gpointer v_object) -{ - PublishingYouTubePublishingParameters * old; -#line 66 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, PUBLISHING_YOU_TUBE_TYPE_PUBLISHING_PARAMETERS)); -#line 66 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - old = value->data[0].v_pointer; -#line 66 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - if (v_object) { -#line 66 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, PUBLISHING_YOU_TUBE_TYPE_PUBLISHING_PARAMETERS)); -#line 66 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value))); -#line 66 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - value->data[0].v_pointer = v_object; -#line 1217 "YouTubePublishing.c" - } else { -#line 66 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - value->data[0].v_pointer = NULL; -#line 1221 "YouTubePublishing.c" - } -#line 66 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - if (old) { -#line 66 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - publishing_you_tube_publishing_parameters_unref (old); -#line 1227 "YouTubePublishing.c" - } -} - - -static void -publishing_you_tube_publishing_parameters_class_init (PublishingYouTubePublishingParametersClass * klass) -{ -#line 66 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - publishing_you_tube_publishing_parameters_parent_class = g_type_class_peek_parent (klass); -#line 66 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - ((PublishingYouTubePublishingParametersClass *) klass)->finalize = publishing_you_tube_publishing_parameters_finalize; -#line 66 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - g_type_class_add_private (klass, sizeof (PublishingYouTubePublishingParametersPrivate)); -#line 1241 "YouTubePublishing.c" -} - - -static void -publishing_you_tube_publishing_parameters_instance_init (PublishingYouTubePublishingParameters * self) -{ -#line 66 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - self->priv = PUBLISHING_YOU_TUBE_PUBLISHING_PARAMETERS_GET_PRIVATE (self); -#line 66 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - self->ref_count = 1; -#line 1252 "YouTubePublishing.c" -} - - -static void -publishing_you_tube_publishing_parameters_finalize (PublishingYouTubePublishingParameters * obj) -{ - PublishingYouTubePublishingParameters * self; -#line 66 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, PUBLISHING_YOU_TUBE_TYPE_PUBLISHING_PARAMETERS, PublishingYouTubePublishingParameters); -#line 66 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - g_signal_handlers_destroy (self); -#line 68 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _g_free0 (self->priv->user_name); -#line 1266 "YouTubePublishing.c" -} - - -GType -publishing_you_tube_publishing_parameters_get_type (void) -{ - static volatile gsize publishing_you_tube_publishing_parameters_type_id__volatile = 0; - if (g_once_init_enter (&publishing_you_tube_publishing_parameters_type_id__volatile)) { - static const GTypeValueTable g_define_type_value_table = { publishing_you_tube_value_publishing_parameters_init, publishing_you_tube_value_publishing_parameters_free_value, publishing_you_tube_value_publishing_parameters_copy_value, publishing_you_tube_value_publishing_parameters_peek_pointer, "p", publishing_you_tube_value_publishing_parameters_collect_value, "p", publishing_you_tube_value_publishing_parameters_lcopy_value }; - static const GTypeInfo g_define_type_info = { sizeof (PublishingYouTubePublishingParametersClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) publishing_you_tube_publishing_parameters_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PublishingYouTubePublishingParameters), 0, (GInstanceInitFunc) publishing_you_tube_publishing_parameters_instance_init, &g_define_type_value_table }; - static const GTypeFundamentalInfo g_define_type_fundamental_info = { (G_TYPE_FLAG_CLASSED | G_TYPE_FLAG_INSTANTIATABLE | G_TYPE_FLAG_DERIVABLE | G_TYPE_FLAG_DEEP_DERIVABLE) }; - GType publishing_you_tube_publishing_parameters_type_id; - publishing_you_tube_publishing_parameters_type_id = g_type_register_fundamental (g_type_fundamental_next (), "PublishingYouTubePublishingParameters", &g_define_type_info, &g_define_type_fundamental_info, 0); - g_once_init_leave (&publishing_you_tube_publishing_parameters_type_id__volatile, publishing_you_tube_publishing_parameters_type_id); - } - return publishing_you_tube_publishing_parameters_type_id__volatile; -} - - -gpointer -publishing_you_tube_publishing_parameters_ref (gpointer instance) -{ - PublishingYouTubePublishingParameters * self; - self = instance; -#line 66 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - g_atomic_int_inc (&self->ref_count); -#line 66 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - return instance; -#line 1295 "YouTubePublishing.c" -} - - -void -publishing_you_tube_publishing_parameters_unref (gpointer instance) -{ - PublishingYouTubePublishingParameters * self; - self = instance; -#line 66 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - if (g_atomic_int_dec_and_test (&self->ref_count)) { -#line 66 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - PUBLISHING_YOU_TUBE_PUBLISHING_PARAMETERS_GET_CLASS (self)->finalize (self); -#line 66 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - g_type_free_instance ((GTypeInstance *) self); -#line 1310 "YouTubePublishing.c" - } -} - - -static gpointer -_publishing_rest_support_session_ref0 (gpointer self) -{ -#line 97 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - return self ? publishing_rest_support_session_ref (self) : NULL; -#line 1320 "YouTubePublishing.c" -} - - -PublishingYouTubeYouTubeAuthorizer* -publishing_you_tube_you_tube_authorizer_construct (GType object_type, - PublishingRESTSupportGoogleSession* session, - SpitPublishingAuthenticator* authenticator) -{ - PublishingYouTubeYouTubeAuthorizer * self = NULL; - PublishingRESTSupportGoogleSession* _tmp0_; - SpitPublishingAuthenticator* _tmp1_; -#line 96 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - g_return_val_if_fail (PUBLISHING_REST_SUPPORT_IS_GOOGLE_SESSION (session), NULL); -#line 96 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - g_return_val_if_fail (SPIT_PUBLISHING_IS_AUTHENTICATOR (authenticator), NULL); -#line 96 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - self = (PublishingYouTubeYouTubeAuthorizer*) g_object_new (object_type, NULL); -#line 97 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp0_ = _publishing_rest_support_session_ref0 (session); -#line 97 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _publishing_rest_support_session_unref0 (self->priv->session); -#line 97 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - self->priv->session = _tmp0_; -#line 98 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp1_ = _g_object_ref0 (authenticator); -#line 98 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _g_object_unref0 (self->priv->authenticator); -#line 98 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - self->priv->authenticator = _tmp1_; -#line 96 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - return self; -#line 1352 "YouTubePublishing.c" -} - - -PublishingYouTubeYouTubeAuthorizer* -publishing_you_tube_you_tube_authorizer_new (PublishingRESTSupportGoogleSession* session, - SpitPublishingAuthenticator* authenticator) -{ -#line 96 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - return publishing_you_tube_you_tube_authorizer_construct (PUBLISHING_YOU_TUBE_TYPE_YOU_TUBE_AUTHORIZER, session, authenticator); -#line 1362 "YouTubePublishing.c" -} - - -static gboolean -publishing_you_tube_you_tube_authorizer_real_is_authorized_for_domain (GDataAuthorizer* base, - GDataAuthorizationDomain* domain) -{ - PublishingYouTubeYouTubeAuthorizer * self; - gboolean result = FALSE; -#line 101 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_YOU_TUBE_TYPE_YOU_TUBE_AUTHORIZER, PublishingYouTubeYouTubeAuthorizer); -#line 101 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - g_return_val_if_fail (GDATA_IS_AUTHORIZATION_DOMAIN (domain), FALSE); -#line 102 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - result = TRUE; -#line 102 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - return result; -#line 1380 "YouTubePublishing.c" -} - - -static void -publishing_you_tube_you_tube_authorizer_real_process_request (GDataAuthorizer* base, - GDataAuthorizationDomain* domain, - SoupMessage* message) -{ - PublishingYouTubeYouTubeAuthorizer * self; - gchar* header = NULL; - PublishingRESTSupportGoogleSession* _tmp0_; - gchar* _tmp1_; - gchar* _tmp2_; - gchar* _tmp3_; - gchar* _tmp4_; - SoupMessageHeaders* _tmp5_; - const gchar* _tmp6_; -#line 105 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_YOU_TUBE_TYPE_YOU_TUBE_AUTHORIZER, PublishingYouTubeYouTubeAuthorizer); -#line 105 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - g_return_if_fail ((domain == NULL) || GDATA_IS_AUTHORIZATION_DOMAIN (domain)); -#line 105 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - g_return_if_fail (SOUP_IS_MESSAGE (message)); -#line 107 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - if (domain == NULL) { -#line 108 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - return; -#line 1408 "YouTubePublishing.c" - } -#line 111 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp0_ = self->priv->session; -#line 111 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp1_ = publishing_rest_support_google_session_get_access_token (_tmp0_); -#line 111 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp2_ = _tmp1_; -#line 111 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp3_ = g_strdup_printf ("Bearer %s", _tmp2_); -#line 111 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp4_ = _tmp3_; -#line 111 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _g_free0 (_tmp2_); -#line 111 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - header = _tmp4_; -#line 112 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp5_ = message->request_headers; -#line 112 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp6_ = header; -#line 112 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - soup_message_headers_replace (_tmp5_, "Authorization", _tmp6_); -#line 105 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _g_free0 (header); -#line 1432 "YouTubePublishing.c" -} - - -static gboolean -publishing_you_tube_you_tube_authorizer_real_refresh_authorization (GDataAuthorizer* base, - GCancellable* cancellable, - GError** error) -{ - PublishingYouTubeYouTubeAuthorizer * self; - gboolean result = FALSE; - SpitPublishingAuthenticator* _tmp0_; -#line 115 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_YOU_TUBE_TYPE_YOU_TUBE_AUTHORIZER, PublishingYouTubeYouTubeAuthorizer); -#line 115 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - g_return_val_if_fail ((cancellable == NULL) || G_IS_CANCELLABLE (cancellable), FALSE); -#line 116 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp0_ = self->priv->authenticator; -#line 116 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - spit_publishing_authenticator_refresh (_tmp0_); -#line 117 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - result = TRUE; -#line 117 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - return result; -#line 1456 "YouTubePublishing.c" -} - - -static void -publishing_you_tube_you_tube_authorizer_class_init (PublishingYouTubeYouTubeAuthorizerClass * klass) -{ -#line 92 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - publishing_you_tube_you_tube_authorizer_parent_class = g_type_class_peek_parent (klass); -#line 92 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - g_type_class_add_private (klass, sizeof (PublishingYouTubeYouTubeAuthorizerPrivate)); -#line 92 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - G_OBJECT_CLASS (klass)->finalize = publishing_you_tube_you_tube_authorizer_finalize; -#line 1469 "YouTubePublishing.c" -} - - -static void -publishing_you_tube_you_tube_authorizer_gdata_authorizer_interface_init (GDataAuthorizerInterface * iface) -{ -#line 92 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - publishing_you_tube_you_tube_authorizer_gdata_authorizer_parent_iface = g_type_interface_peek_parent (iface); -#line 92 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - iface->is_authorized_for_domain = (gboolean (*) (GDataAuthorizer *, GDataAuthorizationDomain*)) publishing_you_tube_you_tube_authorizer_real_is_authorized_for_domain; -#line 92 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - iface->process_request = (void (*) (GDataAuthorizer *, GDataAuthorizationDomain*, SoupMessage*)) publishing_you_tube_you_tube_authorizer_real_process_request; -#line 92 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - iface->refresh_authorization = (gboolean (*) (GDataAuthorizer *, GCancellable*, GError**)) publishing_you_tube_you_tube_authorizer_real_refresh_authorization; -#line 1484 "YouTubePublishing.c" -} - - -static void -publishing_you_tube_you_tube_authorizer_instance_init (PublishingYouTubeYouTubeAuthorizer * self) -{ -#line 92 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - self->priv = PUBLISHING_YOU_TUBE_YOU_TUBE_AUTHORIZER_GET_PRIVATE (self); -#line 1493 "YouTubePublishing.c" -} - - -static void -publishing_you_tube_you_tube_authorizer_finalize (GObject * obj) -{ - PublishingYouTubeYouTubeAuthorizer * self; -#line 92 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, PUBLISHING_YOU_TUBE_TYPE_YOU_TUBE_AUTHORIZER, PublishingYouTubeYouTubeAuthorizer); -#line 93 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _publishing_rest_support_session_unref0 (self->priv->session); -#line 94 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _g_object_unref0 (self->priv->authenticator); -#line 92 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - G_OBJECT_CLASS (publishing_you_tube_you_tube_authorizer_parent_class)->finalize (obj); -#line 1509 "YouTubePublishing.c" -} - - -GType -publishing_you_tube_you_tube_authorizer_get_type (void) -{ - static volatile gsize publishing_you_tube_you_tube_authorizer_type_id__volatile = 0; - if (g_once_init_enter (&publishing_you_tube_you_tube_authorizer_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (PublishingYouTubeYouTubeAuthorizerClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) publishing_you_tube_you_tube_authorizer_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PublishingYouTubeYouTubeAuthorizer), 0, (GInstanceInitFunc) publishing_you_tube_you_tube_authorizer_instance_init, NULL }; - static const GInterfaceInfo gdata_authorizer_info = { (GInterfaceInitFunc) publishing_you_tube_you_tube_authorizer_gdata_authorizer_interface_init, (GInterfaceFinalizeFunc) NULL, NULL}; - GType publishing_you_tube_you_tube_authorizer_type_id; - publishing_you_tube_you_tube_authorizer_type_id = g_type_register_static (G_TYPE_OBJECT, "PublishingYouTubeYouTubeAuthorizer", &g_define_type_info, 0); - g_type_add_interface_static (publishing_you_tube_you_tube_authorizer_type_id, gdata_authorizer_get_type (), &gdata_authorizer_info); - g_once_init_leave (&publishing_you_tube_you_tube_authorizer_type_id__volatile, publishing_you_tube_you_tube_authorizer_type_id); - } - return publishing_you_tube_you_tube_authorizer_type_id__volatile; -} - - -PublishingYouTubeYouTubePublisher* -publishing_you_tube_you_tube_publisher_construct (GType object_type, - SpitPublishingService* service, - SpitPublishingPluginHost* host) -{ - PublishingYouTubeYouTubePublisher * self = NULL; - PublishingYouTubePublishingParameters* _tmp0_; -#line 128 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - g_return_val_if_fail (SPIT_PUBLISHING_IS_SERVICE (service), NULL); -#line 128 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - g_return_val_if_fail (SPIT_PUBLISHING_IS_PLUGIN_HOST (host), NULL); -#line 129 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - self = (PublishingYouTubeYouTubePublisher*) publishing_rest_support_google_publisher_construct (object_type, service, host, "https://gdata.youtube.com/"); -#line 131 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - self->priv->running = FALSE; -#line 132 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp0_ = publishing_you_tube_publishing_parameters_new (); -#line 132 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _publishing_you_tube_publishing_parameters_unref0 (self->priv->publishing_parameters); -#line 132 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - self->priv->publishing_parameters = _tmp0_; -#line 133 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - (self->priv->progress_reporter_target_destroy_notify == NULL) ? NULL : (self->priv->progress_reporter_target_destroy_notify (self->priv->progress_reporter_target), NULL); -#line 133 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - self->priv->progress_reporter = NULL; -#line 133 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - self->priv->progress_reporter_target = NULL; -#line 133 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - self->priv->progress_reporter_target_destroy_notify = NULL; -#line 133 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - self->priv->progress_reporter = NULL; -#line 133 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - self->priv->progress_reporter_target = NULL; -#line 133 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - self->priv->progress_reporter_target_destroy_notify = NULL; -#line 128 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - return self; -#line 1566 "YouTubePublishing.c" -} - - -PublishingYouTubeYouTubePublisher* -publishing_you_tube_you_tube_publisher_new (SpitPublishingService* service, - SpitPublishingPluginHost* host) -{ -#line 128 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - return publishing_you_tube_you_tube_publisher_construct (PUBLISHING_YOU_TUBE_TYPE_YOU_TUBE_PUBLISHER, service, host); -#line 1576 "YouTubePublishing.c" -} - - -static gboolean -publishing_you_tube_you_tube_publisher_real_is_running (PublishingRESTSupportGooglePublisher* base) -{ - PublishingYouTubeYouTubePublisher * self; - gboolean result = FALSE; - gboolean _tmp0_; -#line 136 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_YOU_TUBE_TYPE_YOU_TUBE_PUBLISHER, PublishingYouTubeYouTubePublisher); -#line 137 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp0_ = self->priv->running; -#line 137 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - result = _tmp0_; -#line 137 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - return result; -#line 1594 "YouTubePublishing.c" -} - - -static void -publishing_you_tube_you_tube_publisher_real_start (PublishingRESTSupportGooglePublisher* base) -{ - PublishingYouTubeYouTubePublisher * self; - SpitPublishingAuthenticator* _tmp0_; -#line 140 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_YOU_TUBE_TYPE_YOU_TUBE_PUBLISHER, PublishingYouTubeYouTubePublisher); -#line 141 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - g_debug ("YouTubePublishing.vala:141: YouTubePublisher: started."); -#line 143 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - if (publishing_rest_support_google_publisher_is_running (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_GOOGLE_PUBLISHER, PublishingRESTSupportGooglePublisher))) { -#line 144 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - return; -#line 1611 "YouTubePublishing.c" - } -#line 146 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - self->priv->running = TRUE; -#line 148 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp0_ = self->priv->authenticator; -#line 148 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - spit_publishing_authenticator_authenticate (_tmp0_); -#line 1619 "YouTubePublishing.c" -} - - -static void -publishing_you_tube_you_tube_publisher_real_stop (PublishingRESTSupportGooglePublisher* base) -{ - PublishingYouTubeYouTubePublisher * self; - PublishingRESTSupportGoogleSession* _tmp0_; - PublishingRESTSupportGoogleSession* _tmp1_; -#line 151 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_YOU_TUBE_TYPE_YOU_TUBE_PUBLISHER, PublishingYouTubeYouTubePublisher); -#line 152 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - g_debug ("YouTubePublishing.vala:152: YouTubePublisher: stopped."); -#line 154 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - self->priv->running = FALSE; -#line 156 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp0_ = publishing_rest_support_google_publisher_get_session (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_GOOGLE_PUBLISHER, PublishingRESTSupportGooglePublisher)); -#line 156 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp1_ = _tmp0_; -#line 156 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - publishing_rest_support_session_stop_transactions (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, PUBLISHING_REST_SUPPORT_TYPE_SESSION, PublishingRESTSupportSession)); -#line 156 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _publishing_rest_support_session_unref0 (_tmp1_); -#line 1643 "YouTubePublishing.c" -} - - -static void -publishing_you_tube_you_tube_publisher_real_on_login_flow_complete (PublishingRESTSupportGooglePublisher* base) -{ - PublishingYouTubeYouTubePublisher * self; - PublishingYouTubePublishingParameters* _tmp0_; - PublishingRESTSupportGoogleSession* _tmp1_; - PublishingRESTSupportGoogleSession* _tmp2_; - gchar* _tmp3_; - gchar* _tmp4_; - PublishingRESTSupportGoogleSession* _tmp5_; - PublishingRESTSupportGoogleSession* _tmp6_; - SpitPublishingAuthenticator* _tmp7_; - PublishingYouTubeYouTubeAuthorizer* _tmp8_; - PublishingYouTubeYouTubeAuthorizer* _tmp9_; - GDataYouTubeService* _tmp10_; -#line 159 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_YOU_TUBE_TYPE_YOU_TUBE_PUBLISHER, PublishingYouTubeYouTubePublisher); -#line 160 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - g_debug ("YouTubePublishing.vala:160: EVENT: OAuth login flow complete."); -#line 162 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp0_ = self->priv->publishing_parameters; -#line 162 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp1_ = publishing_rest_support_google_publisher_get_session (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_GOOGLE_PUBLISHER, PublishingRESTSupportGooglePublisher)); -#line 162 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp2_ = _tmp1_; -#line 162 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp3_ = publishing_rest_support_google_session_get_user_name (_tmp2_); -#line 162 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp4_ = _tmp3_; -#line 162 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - publishing_you_tube_publishing_parameters_set_user_name (_tmp0_, _tmp4_); -#line 162 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _g_free0 (_tmp4_); -#line 162 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _publishing_rest_support_session_unref0 (_tmp2_); -#line 164 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp5_ = publishing_rest_support_google_publisher_get_session (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_GOOGLE_PUBLISHER, PublishingRESTSupportGooglePublisher)); -#line 164 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp6_ = _tmp5_; -#line 164 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp7_ = self->priv->authenticator; -#line 164 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp8_ = publishing_you_tube_you_tube_authorizer_new (_tmp6_, _tmp7_); -#line 164 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp9_ = _tmp8_; -#line 164 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp10_ = gdata_youtube_service_new (PUBLISHING_YOU_TUBE_DEVELOPER_KEY, G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, gdata_authorizer_get_type (), GDataAuthorizer)); -#line 164 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _g_object_unref0 (self->priv->youtube_service); -#line 164 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - self->priv->youtube_service = _tmp10_; -#line 164 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _g_object_unref0 (_tmp9_); -#line 164 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _publishing_rest_support_session_unref0 (_tmp6_); -#line 166 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - publishing_you_tube_you_tube_publisher_do_show_publishing_options_pane (self); -#line 1704 "YouTubePublishing.c" -} - - -static void -publishing_you_tube_you_tube_publisher_on_publishing_options_logout (PublishingYouTubeYouTubePublisher* self) -{ -#line 169 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - g_return_if_fail (PUBLISHING_YOU_TUBE_IS_YOU_TUBE_PUBLISHER (self)); -#line 170 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - g_debug ("YouTubePublishing.vala:170: EVENT: user clicked 'Logout' in the publis" \ -"hing options pane."); -#line 172 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - if (!publishing_rest_support_google_publisher_is_running (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_GOOGLE_PUBLISHER, PublishingRESTSupportGooglePublisher))) { -#line 173 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - return; -#line 1719 "YouTubePublishing.c" - } -#line 175 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - publishing_rest_support_google_publisher_do_logout (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_GOOGLE_PUBLISHER, PublishingRESTSupportGooglePublisher)); -#line 1723 "YouTubePublishing.c" -} - - -static void -publishing_you_tube_you_tube_publisher_on_publishing_options_publish (PublishingYouTubeYouTubePublisher* self) -{ -#line 178 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - g_return_if_fail (PUBLISHING_YOU_TUBE_IS_YOU_TUBE_PUBLISHER (self)); -#line 179 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - g_debug ("YouTubePublishing.vala:179: EVENT: user clicked 'Publish' in the publi" \ -"shing options pane."); -#line 181 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - if (!publishing_rest_support_google_publisher_is_running (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_GOOGLE_PUBLISHER, PublishingRESTSupportGooglePublisher))) { -#line 182 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - return; -#line 1738 "YouTubePublishing.c" - } -#line 184 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - publishing_you_tube_you_tube_publisher_do_upload (self); -#line 1742 "YouTubePublishing.c" -} - - -static void -publishing_you_tube_you_tube_publisher_on_upload_status_updated (PublishingYouTubeYouTubePublisher* self, - gint file_number, - gdouble completed_fraction) -{ - SpitPublishingProgressCallback _tmp0_; - void* _tmp0__target; - SpitPublishingProgressCallback _tmp1_; - void* _tmp1__target; -#line 187 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - g_return_if_fail (PUBLISHING_YOU_TUBE_IS_YOU_TUBE_PUBLISHER (self)); -#line 188 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - g_debug ("YouTubePublishing.vala:188: EVENT: uploader reports upload %.2f percen" \ -"t complete.", 100.0 * completed_fraction); -#line 190 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp0_ = self->priv->progress_reporter; -#line 190 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp0__target = self->priv->progress_reporter_target; -#line 190 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _vala_assert (_tmp0_ != NULL, "progress_reporter != null"); -#line 192 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - if (!publishing_rest_support_google_publisher_is_running (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_GOOGLE_PUBLISHER, PublishingRESTSupportGooglePublisher))) { -#line 193 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - return; -#line 1769 "YouTubePublishing.c" - } -#line 195 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp1_ = self->priv->progress_reporter; -#line 195 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp1__target = self->priv->progress_reporter_target; -#line 195 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp1_ (file_number, completed_fraction, _tmp1__target); -#line 1777 "YouTubePublishing.c" -} - - -static void -_publishing_you_tube_you_tube_publisher_on_upload_complete_publishing_rest_support_batch_uploader_upload_complete (PublishingRESTSupportBatchUploader* _sender, - gint num_photos_published, - gpointer self) -{ -#line 200 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - publishing_you_tube_you_tube_publisher_on_upload_complete ((PublishingYouTubeYouTubePublisher*) self, _sender, num_photos_published); -#line 1788 "YouTubePublishing.c" -} - - -static void -_publishing_you_tube_you_tube_publisher_on_upload_error_publishing_rest_support_batch_uploader_upload_error (PublishingRESTSupportBatchUploader* _sender, - GError* err, - gpointer self) -{ -#line 201 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - publishing_you_tube_you_tube_publisher_on_upload_error ((PublishingYouTubeYouTubePublisher*) self, _sender, err); -#line 1799 "YouTubePublishing.c" -} - - -static void -publishing_you_tube_you_tube_publisher_on_upload_complete (PublishingYouTubeYouTubePublisher* self, - PublishingRESTSupportBatchUploader* uploader, - gint num_published) -{ - guint _tmp0_; - guint _tmp1_; -#line 198 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - g_return_if_fail (PUBLISHING_YOU_TUBE_IS_YOU_TUBE_PUBLISHER (self)); -#line 198 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - g_return_if_fail (PUBLISHING_REST_SUPPORT_IS_BATCH_UPLOADER (uploader)); -#line 200 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - g_signal_parse_name ("upload-complete", PUBLISHING_REST_SUPPORT_TYPE_BATCH_UPLOADER, &_tmp0_, NULL, FALSE); -#line 200 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - g_signal_handlers_disconnect_matched (uploader, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp0_, 0, NULL, (GCallback) _publishing_you_tube_you_tube_publisher_on_upload_complete_publishing_rest_support_batch_uploader_upload_complete, self); -#line 201 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - g_signal_parse_name ("upload-error", PUBLISHING_REST_SUPPORT_TYPE_BATCH_UPLOADER, &_tmp1_, NULL, FALSE); -#line 201 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - g_signal_handlers_disconnect_matched (uploader, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp1_, 0, NULL, (GCallback) _publishing_you_tube_you_tube_publisher_on_upload_error_publishing_rest_support_batch_uploader_upload_error, self); -#line 203 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - g_debug ("YouTubePublishing.vala:203: EVENT: uploader reports upload complete; %" \ -"d items published.", num_published); -#line 205 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - if (!publishing_rest_support_google_publisher_is_running (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_GOOGLE_PUBLISHER, PublishingRESTSupportGooglePublisher))) { -#line 206 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - return; -#line 1828 "YouTubePublishing.c" - } -#line 208 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - publishing_you_tube_you_tube_publisher_do_show_success_pane (self); -#line 1832 "YouTubePublishing.c" -} - - -static void -publishing_you_tube_you_tube_publisher_on_upload_error (PublishingYouTubeYouTubePublisher* self, - PublishingRESTSupportBatchUploader* uploader, - GError* err) -{ - guint _tmp0_; - guint _tmp1_; - const gchar* _tmp2_; - SpitPublishingPluginHost* _tmp3_; -#line 211 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - g_return_if_fail (PUBLISHING_YOU_TUBE_IS_YOU_TUBE_PUBLISHER (self)); -#line 211 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - g_return_if_fail (PUBLISHING_REST_SUPPORT_IS_BATCH_UPLOADER (uploader)); -#line 213 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - g_signal_parse_name ("upload-complete", PUBLISHING_REST_SUPPORT_TYPE_BATCH_UPLOADER, &_tmp0_, NULL, FALSE); -#line 213 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - g_signal_handlers_disconnect_matched (uploader, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp0_, 0, NULL, (GCallback) _publishing_you_tube_you_tube_publisher_on_upload_complete_publishing_rest_support_batch_uploader_upload_complete, self); -#line 214 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - g_signal_parse_name ("upload-error", PUBLISHING_REST_SUPPORT_TYPE_BATCH_UPLOADER, &_tmp1_, NULL, FALSE); -#line 214 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - g_signal_handlers_disconnect_matched (uploader, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp1_, 0, NULL, (GCallback) _publishing_you_tube_you_tube_publisher_on_upload_error_publishing_rest_support_batch_uploader_upload_error, self); -#line 216 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - if (!publishing_rest_support_google_publisher_is_running (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_GOOGLE_PUBLISHER, PublishingRESTSupportGooglePublisher))) { -#line 217 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - return; -#line 1861 "YouTubePublishing.c" - } -#line 219 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp2_ = err->message; -#line 219 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - g_debug ("YouTubePublishing.vala:219: EVENT: uploader reports upload error = '%s" \ -"'.", _tmp2_); -#line 221 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp3_ = publishing_rest_support_google_publisher_get_host (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_GOOGLE_PUBLISHER, PublishingRESTSupportGooglePublisher)); -#line 221 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - spit_publishing_plugin_host_post_error (_tmp3_, err); -#line 1871 "YouTubePublishing.c" -} - - -static void -_publishing_you_tube_you_tube_publisher_on_publishing_options_publish_publishing_you_tube_publishing_options_pane_publish (PublishingYouTubePublishingOptionsPane* _sender, - gpointer self) -{ -#line 241 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - publishing_you_tube_you_tube_publisher_on_publishing_options_publish ((PublishingYouTubeYouTubePublisher*) self); -#line 1881 "YouTubePublishing.c" -} - - -static void -_publishing_you_tube_you_tube_publisher_on_publishing_options_logout_publishing_you_tube_publishing_options_pane_logout (PublishingYouTubePublishingOptionsPane* _sender, - gpointer self) -{ -#line 242 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - publishing_you_tube_you_tube_publisher_on_publishing_options_logout ((PublishingYouTubeYouTubePublisher*) self); -#line 1891 "YouTubePublishing.c" -} - - -static void -publishing_you_tube_you_tube_publisher_do_show_publishing_options_pane (PublishingYouTubeYouTubePublisher* self) -{ - GtkBuilder* builder = NULL; - GtkBuilder* _tmp0_; - PublishingYouTubePublishingOptionsPane* opts_pane = NULL; - SpitPublishingAuthenticator* _tmp7_; - SpitPublishingPluginHost* _tmp8_; - GtkBuilder* _tmp9_; - PublishingYouTubePublishingParameters* _tmp10_; - PublishingYouTubePublishingOptionsPane* _tmp11_; - PublishingYouTubePublishingOptionsPane* _tmp12_; - PublishingYouTubePublishingOptionsPane* _tmp13_; - SpitPublishingPluginHost* _tmp14_; - PublishingYouTubePublishingOptionsPane* _tmp15_; - SpitPublishingPluginHost* _tmp16_; - GError * _inner_error_ = NULL; -#line 224 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - g_return_if_fail (PUBLISHING_YOU_TUBE_IS_YOU_TUBE_PUBLISHER (self)); -#line 225 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - g_debug ("YouTubePublishing.vala:225: ACTION: showing publishing options pane."); -#line 227 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp0_ = gtk_builder_new (); -#line 227 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - builder = _tmp0_; -#line 1920 "YouTubePublishing.c" - { - GtkBuilder* _tmp1_; -#line 230 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp1_ = builder; -#line 230 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - gtk_builder_add_from_resource (_tmp1_, PLUGIN_RESOURCE_PATH "/youtube_publishing_options_pane.ui", &_inner_error_); -#line 230 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 1929 "YouTubePublishing.c" - goto __catch25_g_error; - } - } - goto __finally25; - __catch25_g_error: - { - GError* e = NULL; - GError* _tmp2_; - const gchar* _tmp3_; - SpitPublishingPluginHost* _tmp4_; - GError* _tmp5_; - GError* _tmp6_; -#line 229 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - e = _inner_error_; -#line 229 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _inner_error_ = NULL; -#line 233 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp2_ = e; -#line 233 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp3_ = _tmp2_->message; -#line 233 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - g_warning ("YouTubePublishing.vala:233: Could not parse UI file! Error: %s.", _tmp3_); -#line 234 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp4_ = publishing_rest_support_google_publisher_get_host (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_GOOGLE_PUBLISHER, PublishingRESTSupportGooglePublisher)); -#line 234 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp5_ = g_error_new_literal (SPIT_PUBLISHING_PUBLISHING_ERROR, SPIT_PUBLISHING_PUBLISHING_ERROR_LOCAL_FILE_ERROR, _ ("A file required for publishing is unavailable. Publishing to YouTube c" \ -"an’t continue.")); -#line 234 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp6_ = _tmp5_; -#line 234 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - spit_publishing_plugin_host_post_error (_tmp4_, _tmp6_); -#line 234 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _g_error_free0 (_tmp6_); -#line 237 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _g_error_free0 (e); -#line 237 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _g_object_unref0 (builder); -#line 237 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - return; -#line 1968 "YouTubePublishing.c" - } - __finally25: -#line 229 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 229 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _g_object_unref0 (builder); -#line 229 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 229 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - g_clear_error (&_inner_error_); -#line 229 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - return; -#line 1981 "YouTubePublishing.c" - } -#line 240 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp7_ = self->priv->authenticator; -#line 240 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp8_ = publishing_rest_support_google_publisher_get_host (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_GOOGLE_PUBLISHER, PublishingRESTSupportGooglePublisher)); -#line 240 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp9_ = builder; -#line 240 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp10_ = self->priv->publishing_parameters; -#line 240 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp11_ = publishing_you_tube_publishing_options_pane_new (_tmp7_, _tmp8_, _tmp9_, _tmp10_); -#line 240 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - opts_pane = _tmp11_; -#line 241 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp12_ = opts_pane; -#line 241 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - g_signal_connect_object (_tmp12_, "publish", (GCallback) _publishing_you_tube_you_tube_publisher_on_publishing_options_publish_publishing_you_tube_publishing_options_pane_publish, self, 0); -#line 242 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp13_ = opts_pane; -#line 242 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - g_signal_connect_object (_tmp13_, "logout", (GCallback) _publishing_you_tube_you_tube_publisher_on_publishing_options_logout_publishing_you_tube_publishing_options_pane_logout, self, 0); -#line 243 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp14_ = publishing_rest_support_google_publisher_get_host (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_GOOGLE_PUBLISHER, PublishingRESTSupportGooglePublisher)); -#line 243 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp15_ = opts_pane; -#line 243 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - spit_publishing_plugin_host_install_dialog_pane (_tmp14_, G_TYPE_CHECK_INSTANCE_CAST (_tmp15_, SPIT_PUBLISHING_TYPE_DIALOG_PANE, SpitPublishingDialogPane), SPIT_PUBLISHING_PLUGIN_HOST_BUTTON_MODE_CANCEL); -#line 245 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp16_ = publishing_rest_support_google_publisher_get_host (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_GOOGLE_PUBLISHER, PublishingRESTSupportGooglePublisher)); -#line 245 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - spit_publishing_plugin_host_set_service_locked (_tmp16_, FALSE); -#line 224 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _g_object_unref0 (opts_pane); -#line 224 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _g_object_unref0 (builder); -#line 2017 "YouTubePublishing.c" -} - - -static void -_publishing_you_tube_you_tube_publisher_on_upload_status_updated_spit_publishing_progress_callback (gint file_number, - gdouble fraction_complete, - gpointer self) -{ -#line 269 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - publishing_you_tube_you_tube_publisher_on_upload_status_updated ((PublishingYouTubeYouTubePublisher*) self, file_number, fraction_complete); -#line 2028 "YouTubePublishing.c" -} - - -static void -publishing_you_tube_you_tube_publisher_do_upload (PublishingYouTubeYouTubePublisher* self) -{ - SpitPublishingPluginHost* _tmp0_; - SpitPublishingPluginHost* _tmp1_; - SpitPublishingPluginHost* _tmp2_; - void* _tmp3_; - GDestroyNotify _tmp4_; - SpitPublishingProgressCallback _tmp5_; - SpitPublishingPublishable** publishables = NULL; - SpitPublishingPluginHost* _tmp6_; - gint _tmp7_; - SpitPublishingPublishable** _tmp8_; - gint publishables_length1; - gint _publishables_size_; - PublishingYouTubeUploader* uploader = NULL; - GDataYouTubeService* _tmp9_; - PublishingRESTSupportGoogleSession* _tmp10_; - PublishingRESTSupportGoogleSession* _tmp11_; - SpitPublishingPublishable** _tmp12_; - gint _tmp12__length1; - PublishingYouTubePublishingParameters* _tmp13_; - PublishingYouTubeUploader* _tmp14_; - PublishingYouTubeUploader* _tmp15_; - PublishingYouTubeUploader* _tmp16_; - PublishingYouTubeUploader* _tmp17_; - PublishingYouTubeUploader* _tmp18_; -#line 248 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - g_return_if_fail (PUBLISHING_YOU_TUBE_IS_YOU_TUBE_PUBLISHER (self)); -#line 249 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - g_debug ("YouTubePublishing.vala:249: ACTION: uploading media items to remote se" \ -"rver."); -#line 251 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp0_ = publishing_rest_support_google_publisher_get_host (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_GOOGLE_PUBLISHER, PublishingRESTSupportGooglePublisher)); -#line 251 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - spit_publishing_plugin_host_set_service_locked (_tmp0_, TRUE); -#line 252 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp1_ = publishing_rest_support_google_publisher_get_host (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_GOOGLE_PUBLISHER, PublishingRESTSupportGooglePublisher)); -#line 252 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - spit_publishing_plugin_host_install_account_fetch_wait_pane (_tmp1_); -#line 254 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp2_ = publishing_rest_support_google_publisher_get_host (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_GOOGLE_PUBLISHER, PublishingRESTSupportGooglePublisher)); -#line 254 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp5_ = spit_publishing_plugin_host_serialize_publishables (_tmp2_, -1, FALSE, &_tmp3_, &_tmp4_); -#line 254 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - (self->priv->progress_reporter_target_destroy_notify == NULL) ? NULL : (self->priv->progress_reporter_target_destroy_notify (self->priv->progress_reporter_target), NULL); -#line 254 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - self->priv->progress_reporter = NULL; -#line 254 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - self->priv->progress_reporter_target = NULL; -#line 254 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - self->priv->progress_reporter_target_destroy_notify = NULL; -#line 254 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - self->priv->progress_reporter = _tmp5_; -#line 254 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - self->priv->progress_reporter_target = _tmp3_; -#line 254 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - self->priv->progress_reporter_target_destroy_notify = _tmp4_; -#line 260 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - if (!publishing_rest_support_google_publisher_is_running (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_GOOGLE_PUBLISHER, PublishingRESTSupportGooglePublisher))) { -#line 261 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - return; -#line 2093 "YouTubePublishing.c" - } -#line 263 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp6_ = publishing_rest_support_google_publisher_get_host (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_GOOGLE_PUBLISHER, PublishingRESTSupportGooglePublisher)); -#line 263 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp8_ = spit_publishing_plugin_host_get_publishables (_tmp6_, &_tmp7_); -#line 263 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - publishables = _tmp8_; -#line 263 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - publishables_length1 = _tmp7_; -#line 263 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _publishables_size_ = publishables_length1; -#line 264 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp9_ = self->priv->youtube_service; -#line 264 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp10_ = publishing_rest_support_google_publisher_get_session (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_GOOGLE_PUBLISHER, PublishingRESTSupportGooglePublisher)); -#line 264 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp11_ = _tmp10_; -#line 264 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp12_ = publishables; -#line 264 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp12__length1 = publishables_length1; -#line 264 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp13_ = self->priv->publishing_parameters; -#line 264 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp14_ = publishing_you_tube_uploader_new (_tmp9_, _tmp11_, _tmp12_, _tmp12__length1, _tmp13_); -#line 264 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp15_ = _tmp14_; -#line 264 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _publishing_rest_support_session_unref0 (_tmp11_); -#line 264 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - uploader = _tmp15_; -#line 266 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp16_ = uploader; -#line 266 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp16_, PUBLISHING_REST_SUPPORT_TYPE_BATCH_UPLOADER, PublishingRESTSupportBatchUploader), "upload-complete", (GCallback) _publishing_you_tube_you_tube_publisher_on_upload_complete_publishing_rest_support_batch_uploader_upload_complete, self, 0); -#line 267 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp17_ = uploader; -#line 267 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp17_, PUBLISHING_REST_SUPPORT_TYPE_BATCH_UPLOADER, PublishingRESTSupportBatchUploader), "upload-error", (GCallback) _publishing_you_tube_you_tube_publisher_on_upload_error_publishing_rest_support_batch_uploader_upload_error, self, 0); -#line 269 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp18_ = uploader; -#line 269 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - publishing_rest_support_batch_uploader_upload (G_TYPE_CHECK_INSTANCE_CAST (_tmp18_, PUBLISHING_REST_SUPPORT_TYPE_BATCH_UPLOADER, PublishingRESTSupportBatchUploader), _publishing_you_tube_you_tube_publisher_on_upload_status_updated_spit_publishing_progress_callback, self); -#line 248 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _publishing_rest_support_batch_uploader_unref0 (uploader); -#line 248 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - publishables = (_vala_array_free (publishables, publishables_length1, (GDestroyNotify) g_object_unref), NULL); -#line 2141 "YouTubePublishing.c" -} - - -static void -publishing_you_tube_you_tube_publisher_do_show_success_pane (PublishingYouTubeYouTubePublisher* self) -{ - SpitPublishingPluginHost* _tmp0_; - SpitPublishingPluginHost* _tmp1_; -#line 272 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - g_return_if_fail (PUBLISHING_YOU_TUBE_IS_YOU_TUBE_PUBLISHER (self)); -#line 273 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - g_debug ("YouTubePublishing.vala:273: ACTION: showing success pane."); -#line 275 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp0_ = publishing_rest_support_google_publisher_get_host (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_GOOGLE_PUBLISHER, PublishingRESTSupportGooglePublisher)); -#line 275 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - spit_publishing_plugin_host_set_service_locked (_tmp0_, FALSE); -#line 276 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp1_ = publishing_rest_support_google_publisher_get_host (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_GOOGLE_PUBLISHER, PublishingRESTSupportGooglePublisher)); -#line 276 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - spit_publishing_plugin_host_install_success_pane (_tmp1_); -#line 2162 "YouTubePublishing.c" -} - - -static void -publishing_you_tube_you_tube_publisher_real_do_logout (PublishingRESTSupportGooglePublisher* base) -{ - PublishingYouTubeYouTubePublisher * self; - SpitPublishingAuthenticator* _tmp0_; -#line 279 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_YOU_TUBE_TYPE_YOU_TUBE_PUBLISHER, PublishingYouTubeYouTubePublisher); -#line 280 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - g_debug ("YouTubePublishing.vala:280: ACTION: logging out user."); -#line 282 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp0_ = self->priv->authenticator; -#line 282 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - if (spit_publishing_authenticator_can_logout (_tmp0_)) { -#line 2179 "YouTubePublishing.c" - SpitPublishingAuthenticator* _tmp1_; - SpitPublishingAuthenticator* _tmp2_; -#line 283 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp1_ = self->priv->authenticator; -#line 283 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - spit_publishing_authenticator_logout (_tmp1_); -#line 284 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp2_ = self->priv->authenticator; -#line 284 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - spit_publishing_authenticator_authenticate (_tmp2_); -#line 2190 "YouTubePublishing.c" - } -} - - -static SpitPublishingAuthenticator* -publishing_you_tube_you_tube_publisher_real_get_authenticator (PublishingRESTSupportGooglePublisher* base) -{ - PublishingYouTubeYouTubePublisher * self; - SpitPublishingAuthenticator* result = NULL; - SpitPublishingAuthenticator* _tmp0_; - SpitPublishingAuthenticator* _tmp5_; - SpitPublishingAuthenticator* _tmp6_; -#line 288 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_YOU_TUBE_TYPE_YOU_TUBE_PUBLISHER, PublishingYouTubeYouTubePublisher); -#line 289 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp0_ = self->priv->authenticator; -#line 289 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - if (_tmp0_ == NULL) { -#line 2209 "YouTubePublishing.c" - PublishingAuthenticatorFactory* _tmp1_; - PublishingAuthenticatorFactory* _tmp2_; - SpitPublishingPluginHost* _tmp3_; - SpitPublishingAuthenticator* _tmp4_; -#line 290 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp1_ = publishing_authenticator_factory_get_instance (); -#line 290 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp2_ = _tmp1_; -#line 290 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp3_ = publishing_rest_support_google_publisher_get_host (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_GOOGLE_PUBLISHER, PublishingRESTSupportGooglePublisher)); -#line 290 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp4_ = spit_publishing_authenticator_factory_create (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, SPIT_PUBLISHING_TYPE_AUTHENTICATOR_FACTORY, SpitPublishingAuthenticatorFactory), "youtube", _tmp3_); -#line 290 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _g_object_unref0 (self->priv->authenticator); -#line 290 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - self->priv->authenticator = _tmp4_; -#line 290 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _g_object_unref0 (_tmp2_); -#line 2228 "YouTubePublishing.c" - } -#line 294 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp5_ = self->priv->authenticator; -#line 294 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp6_ = _g_object_ref0 (_tmp5_); -#line 294 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - result = _tmp6_; -#line 294 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - return result; -#line 2238 "YouTubePublishing.c" -} - - -static void -publishing_you_tube_you_tube_publisher_class_init (PublishingYouTubeYouTubePublisherClass * klass) -{ -#line 121 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - publishing_you_tube_you_tube_publisher_parent_class = g_type_class_peek_parent (klass); -#line 121 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - g_type_class_add_private (klass, sizeof (PublishingYouTubeYouTubePublisherPrivate)); -#line 121 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - ((PublishingRESTSupportGooglePublisherClass *) klass)->is_running = (gboolean (*) (PublishingRESTSupportGooglePublisher *)) publishing_you_tube_you_tube_publisher_real_is_running; -#line 121 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - ((PublishingRESTSupportGooglePublisherClass *) klass)->start = (void (*) (PublishingRESTSupportGooglePublisher *)) publishing_you_tube_you_tube_publisher_real_start; -#line 121 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - ((PublishingRESTSupportGooglePublisherClass *) klass)->stop = (void (*) (PublishingRESTSupportGooglePublisher *)) publishing_you_tube_you_tube_publisher_real_stop; -#line 121 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - ((PublishingRESTSupportGooglePublisherClass *) klass)->on_login_flow_complete = (void (*) (PublishingRESTSupportGooglePublisher *)) publishing_you_tube_you_tube_publisher_real_on_login_flow_complete; -#line 121 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - ((PublishingRESTSupportGooglePublisherClass *) klass)->do_logout = (void (*) (PublishingRESTSupportGooglePublisher *)) publishing_you_tube_you_tube_publisher_real_do_logout; -#line 121 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - ((PublishingRESTSupportGooglePublisherClass *) klass)->get_authenticator = (SpitPublishingAuthenticator* (*) (PublishingRESTSupportGooglePublisher *)) publishing_you_tube_you_tube_publisher_real_get_authenticator; -#line 121 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - G_OBJECT_CLASS (klass)->finalize = publishing_you_tube_you_tube_publisher_finalize; -#line 2263 "YouTubePublishing.c" -} - - -static void -publishing_you_tube_you_tube_publisher_instance_init (PublishingYouTubeYouTubePublisher * self) -{ -#line 121 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - self->priv = PUBLISHING_YOU_TUBE_YOU_TUBE_PUBLISHER_GET_PRIVATE (self); -#line 2272 "YouTubePublishing.c" -} - - -static void -publishing_you_tube_you_tube_publisher_finalize (GObject * obj) -{ - PublishingYouTubeYouTubePublisher * self; -#line 121 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, PUBLISHING_YOU_TUBE_TYPE_YOU_TUBE_PUBLISHER, PublishingYouTubeYouTubePublisher); -#line 123 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _publishing_you_tube_publishing_parameters_unref0 (self->priv->publishing_parameters); -#line 124 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - (self->priv->progress_reporter_target_destroy_notify == NULL) ? NULL : (self->priv->progress_reporter_target_destroy_notify (self->priv->progress_reporter_target), NULL); -#line 124 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - self->priv->progress_reporter = NULL; -#line 124 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - self->priv->progress_reporter_target = NULL; -#line 124 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - self->priv->progress_reporter_target_destroy_notify = NULL; -#line 125 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _g_object_unref0 (self->priv->authenticator); -#line 126 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _g_object_unref0 (self->priv->youtube_service); -#line 121 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - G_OBJECT_CLASS (publishing_you_tube_you_tube_publisher_parent_class)->finalize (obj); -#line 2298 "YouTubePublishing.c" -} - - -GType -publishing_you_tube_you_tube_publisher_get_type (void) -{ - static volatile gsize publishing_you_tube_you_tube_publisher_type_id__volatile = 0; - if (g_once_init_enter (&publishing_you_tube_you_tube_publisher_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (PublishingYouTubeYouTubePublisherClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) publishing_you_tube_you_tube_publisher_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PublishingYouTubeYouTubePublisher), 0, (GInstanceInitFunc) publishing_you_tube_you_tube_publisher_instance_init, NULL }; - GType publishing_you_tube_you_tube_publisher_type_id; - publishing_you_tube_you_tube_publisher_type_id = g_type_register_static (PUBLISHING_REST_SUPPORT_TYPE_GOOGLE_PUBLISHER, "PublishingYouTubeYouTubePublisher", &g_define_type_info, 0); - g_once_init_leave (&publishing_you_tube_you_tube_publisher_type_id__volatile, publishing_you_tube_you_tube_publisher_type_id); - } - return publishing_you_tube_you_tube_publisher_type_id__volatile; -} - - -static gpointer -_publishing_you_tube_publishing_parameters_ref0 (gpointer self) -{ -#line 327 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - return self ? publishing_you_tube_publishing_parameters_ref (self) : NULL; -#line 2321 "YouTubePublishing.c" -} - - -static gpointer -_publishing_you_tube_publishing_options_pane_privacy_description_ref0 (gpointer self) -{ -#line 347 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - return self ? publishing_you_tube_publishing_options_pane_privacy_description_ref (self) : NULL; -#line 2330 "YouTubePublishing.c" -} - - -static void -_publishing_you_tube_publishing_options_pane_on_logout_clicked_gtk_button_clicked (GtkButton* _sender, - gpointer self) -{ -#line 354 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - publishing_you_tube_publishing_options_pane_on_logout_clicked ((PublishingYouTubePublishingOptionsPane*) self); -#line 2340 "YouTubePublishing.c" -} - - -static void -_publishing_you_tube_publishing_options_pane_on_publish_clicked_gtk_button_clicked (GtkButton* _sender, - gpointer self) -{ -#line 355 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - publishing_you_tube_publishing_options_pane_on_publish_clicked ((PublishingYouTubePublishingOptionsPane*) self); -#line 2350 "YouTubePublishing.c" -} - - -PublishingYouTubePublishingOptionsPane* -publishing_you_tube_publishing_options_pane_construct (GType object_type, - SpitPublishingAuthenticator* authenticator, - SpitPublishingPluginHost* host, - GtkBuilder* builder, - PublishingYouTubePublishingParameters* publishing_parameters) -{ - PublishingYouTubePublishingOptionsPane * self = NULL; - gint _tmp0_; - PublishingYouTubePublishingOptionsPanePrivacyDescription** _tmp1_; - PublishingYouTubePublishingParameters* _tmp2_; - GtkBuilder* _tmp3_; - GSList* _tmp4_; - GSList* _tmp5_; - GtkBuilder* _tmp6_; - GObject* _tmp7_; - GtkLabel* _tmp8_; - GtkBuilder* _tmp9_; - GObject* _tmp10_; - GtkComboBoxText* _tmp11_; - GtkBuilder* _tmp12_; - GObject* _tmp13_; - GtkButton* _tmp14_; - GtkBuilder* _tmp15_; - GObject* _tmp16_; - GtkButton* _tmp17_; - GtkBuilder* _tmp18_; - GObject* _tmp19_; - GtkBox* _tmp20_; - GtkBuilder* _tmp21_; - GObject* _tmp22_; - GtkLabel* _tmp23_; - GtkLabel* _tmp28_; - gchar* _tmp29_; - gchar* _tmp30_; - gchar* _tmp31_; - gchar* _tmp32_; - PublishingYouTubePublishingOptionsPanePrivacyDescription** _tmp33_; - gint _tmp33__length1; - GtkComboBoxText* _tmp38_; - GtkLabel* _tmp39_; - GtkComboBoxText* _tmp40_; - GtkButton* _tmp41_; - GtkButton* _tmp42_; -#line 322 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - g_return_val_if_fail (SPIT_PUBLISHING_IS_AUTHENTICATOR (authenticator), NULL); -#line 322 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - g_return_val_if_fail (SPIT_PUBLISHING_IS_PLUGIN_HOST (host), NULL); -#line 322 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - g_return_val_if_fail (GTK_IS_BUILDER (builder), NULL); -#line 322 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - g_return_val_if_fail (PUBLISHING_YOU_TUBE_IS_PUBLISHING_PARAMETERS (publishing_parameters), NULL); -#line 322 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - self = (PublishingYouTubePublishingOptionsPane*) g_object_new (object_type, NULL); -#line 326 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp1_ = publishing_you_tube_publishing_options_pane_create_privacy_descriptions (self, &_tmp0_); -#line 326 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - self->priv->privacy_descriptions = (_vala_array_free (self->priv->privacy_descriptions, self->priv->privacy_descriptions_length1, (GDestroyNotify) publishing_you_tube_publishing_options_pane_privacy_description_unref), NULL); -#line 326 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - self->priv->privacy_descriptions = _tmp1_; -#line 326 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - self->priv->privacy_descriptions_length1 = _tmp0_; -#line 326 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - self->priv->_privacy_descriptions_size_ = self->priv->privacy_descriptions_length1; -#line 327 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp2_ = _publishing_you_tube_publishing_parameters_ref0 (publishing_parameters); -#line 327 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _publishing_you_tube_publishing_parameters_unref0 (self->priv->publishing_parameters); -#line 327 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - self->priv->publishing_parameters = _tmp2_; -#line 329 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp3_ = _g_object_ref0 (builder); -#line 329 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _g_object_unref0 (self->priv->builder); -#line 329 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - self->priv->builder = _tmp3_; -#line 330 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _vala_assert (builder != NULL, "builder != null"); -#line 331 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp4_ = gtk_builder_get_objects (builder); -#line 331 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp5_ = _tmp4_; -#line 331 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _vala_assert (g_slist_length (_tmp5_) > ((guint) 0), "builder.get_objects().length() > 0"); -#line 331 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _g_slist_free0 (_tmp5_); -#line 333 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp6_ = self->priv->builder; -#line 333 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp7_ = gtk_builder_get_object (_tmp6_, "login_identity_label"); -#line 333 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp8_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp7_, gtk_label_get_type ()) ? ((GtkLabel*) _tmp7_) : NULL); -#line 333 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _g_object_unref0 (self->priv->login_identity_label); -#line 333 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - self->priv->login_identity_label = _tmp8_; -#line 334 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp9_ = self->priv->builder; -#line 334 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp10_ = gtk_builder_get_object (_tmp9_, "privacy_combo"); -#line 334 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp11_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp10_, gtk_combo_box_text_get_type ()) ? ((GtkComboBoxText*) _tmp10_) : NULL); -#line 334 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _g_object_unref0 (self->priv->privacy_combo); -#line 334 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - self->priv->privacy_combo = _tmp11_; -#line 335 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp12_ = self->priv->builder; -#line 335 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp13_ = gtk_builder_get_object (_tmp12_, "publish_button"); -#line 335 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp14_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp13_, gtk_button_get_type ()) ? ((GtkButton*) _tmp13_) : NULL); -#line 335 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _g_object_unref0 (self->priv->publish_button); -#line 335 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - self->priv->publish_button = _tmp14_; -#line 336 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp15_ = self->priv->builder; -#line 336 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp16_ = gtk_builder_get_object (_tmp15_, "logout_button"); -#line 336 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp17_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp16_, gtk_button_get_type ()) ? ((GtkButton*) _tmp16_) : NULL); -#line 336 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _g_object_unref0 (self->priv->logout_button); -#line 336 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - self->priv->logout_button = _tmp17_; -#line 337 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp18_ = self->priv->builder; -#line 337 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp19_ = gtk_builder_get_object (_tmp18_, "youtube_pane_widget"); -#line 337 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp20_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp19_, gtk_box_get_type ()) ? ((GtkBox*) _tmp19_) : NULL); -#line 337 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _g_object_unref0 (self->priv->pane_widget); -#line 337 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - self->priv->pane_widget = _tmp20_; -#line 338 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp21_ = self->priv->builder; -#line 338 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp22_ = gtk_builder_get_object (_tmp21_, "privacy_label"); -#line 338 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp23_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp22_, gtk_label_get_type ()) ? ((GtkLabel*) _tmp22_) : NULL); -#line 338 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _g_object_unref0 (self->priv->privacy_label); -#line 338 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - self->priv->privacy_label = _tmp23_; -#line 340 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - if (!spit_publishing_authenticator_can_logout (authenticator)) { -#line 2502 "YouTubePublishing.c" - GtkButton* _tmp24_; - GtkContainer* _tmp25_; - GtkContainer* _tmp26_; - GtkButton* _tmp27_; -#line 341 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp24_ = self->priv->logout_button; -#line 341 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp25_ = gtk_widget_get_parent (G_TYPE_CHECK_INSTANCE_CAST (_tmp24_, gtk_widget_get_type (), GtkWidget)); -#line 341 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp26_ = _tmp25_; -#line 341 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp27_ = self->priv->logout_button; -#line 341 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - gtk_container_remove (_tmp26_, G_TYPE_CHECK_INSTANCE_CAST (_tmp27_, gtk_widget_get_type (), GtkWidget)); -#line 2517 "YouTubePublishing.c" - } -#line 344 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp28_ = self->priv->login_identity_label; -#line 344 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp29_ = publishing_you_tube_publishing_parameters_get_user_name (publishing_parameters); -#line 344 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp30_ = _tmp29_; -#line 344 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp31_ = g_strdup_printf (_ ("You are logged into YouTube as %s."), _tmp30_); -#line 344 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp32_ = _tmp31_; -#line 344 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - gtk_label_set_label (_tmp28_, _tmp32_); -#line 344 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _g_free0 (_tmp32_); -#line 344 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _g_free0 (_tmp30_); -#line 347 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp33_ = self->priv->privacy_descriptions; -#line 347 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp33__length1 = self->priv->privacy_descriptions_length1; -#line 2539 "YouTubePublishing.c" - { - PublishingYouTubePublishingOptionsPanePrivacyDescription** desc_collection = NULL; - gint desc_collection_length1 = 0; - gint _desc_collection_size_ = 0; - gint desc_it = 0; -#line 347 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - desc_collection = _tmp33_; -#line 347 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - desc_collection_length1 = _tmp33__length1; -#line 347 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - for (desc_it = 0; desc_it < _tmp33__length1; desc_it = desc_it + 1) { -#line 2551 "YouTubePublishing.c" - PublishingYouTubePublishingOptionsPanePrivacyDescription* _tmp34_; - PublishingYouTubePublishingOptionsPanePrivacyDescription* desc = NULL; -#line 347 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp34_ = _publishing_you_tube_publishing_options_pane_privacy_description_ref0 (desc_collection[desc_it]); -#line 347 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - desc = _tmp34_; -#line 2558 "YouTubePublishing.c" - { - GtkComboBoxText* _tmp35_; - PublishingYouTubePublishingOptionsPanePrivacyDescription* _tmp36_; - const gchar* _tmp37_; -#line 348 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp35_ = self->priv->privacy_combo; -#line 348 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp36_ = desc; -#line 348 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp37_ = _tmp36_->description; -#line 348 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - gtk_combo_box_text_append_text (_tmp35_, _tmp37_); -#line 347 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _publishing_you_tube_publishing_options_pane_privacy_description_unref0 (desc); -#line 2573 "YouTubePublishing.c" - } - } - } -#line 351 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp38_ = self->priv->privacy_combo; -#line 351 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - gtk_combo_box_set_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp38_, gtk_combo_box_get_type (), GtkComboBox), (gint) PUBLISHING_YOU_TUBE_PRIVACY_SETTING_PUBLIC); -#line 352 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp39_ = self->priv->privacy_label; -#line 352 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp40_ = self->priv->privacy_combo; -#line 352 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - gtk_label_set_mnemonic_widget (_tmp39_, G_TYPE_CHECK_INSTANCE_CAST (_tmp40_, gtk_widget_get_type (), GtkWidget)); -#line 354 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp41_ = self->priv->logout_button; -#line 354 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - g_signal_connect_object (_tmp41_, "clicked", (GCallback) _publishing_you_tube_publishing_options_pane_on_logout_clicked_gtk_button_clicked, self, 0); -#line 355 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp42_ = self->priv->publish_button; -#line 355 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - g_signal_connect_object (_tmp42_, "clicked", (GCallback) _publishing_you_tube_publishing_options_pane_on_publish_clicked_gtk_button_clicked, self, 0); -#line 322 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - return self; -#line 2597 "YouTubePublishing.c" -} - - -PublishingYouTubePublishingOptionsPane* -publishing_you_tube_publishing_options_pane_new (SpitPublishingAuthenticator* authenticator, - SpitPublishingPluginHost* host, - GtkBuilder* builder, - PublishingYouTubePublishingParameters* publishing_parameters) -{ -#line 322 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - return publishing_you_tube_publishing_options_pane_construct (PUBLISHING_YOU_TUBE_TYPE_PUBLISHING_OPTIONS_PANE, authenticator, host, builder, publishing_parameters); -#line 2609 "YouTubePublishing.c" -} - - -static void -publishing_you_tube_publishing_options_pane_on_publish_clicked (PublishingYouTubePublishingOptionsPane* self) -{ - PublishingYouTubePublishingParameters* _tmp0_; - PublishingYouTubePublishingOptionsPanePrivacyDescription** _tmp1_; - gint _tmp1__length1; - GtkComboBoxText* _tmp2_; - PublishingYouTubePublishingOptionsPanePrivacyDescription* _tmp3_; - PublishingYouTubePrivacySetting _tmp4_; -#line 358 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - g_return_if_fail (PUBLISHING_YOU_TUBE_IS_PUBLISHING_OPTIONS_PANE (self)); -#line 359 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp0_ = self->priv->publishing_parameters; -#line 359 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp1_ = self->priv->privacy_descriptions; -#line 359 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp1__length1 = self->priv->privacy_descriptions_length1; -#line 359 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp2_ = self->priv->privacy_combo; -#line 359 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp3_ = _tmp1_[gtk_combo_box_get_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, gtk_combo_box_get_type (), GtkComboBox))]; -#line 359 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp4_ = _tmp3_->privacy_setting; -#line 359 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - publishing_you_tube_publishing_parameters_set_privacy (_tmp0_, _tmp4_); -#line 362 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - g_signal_emit (self, publishing_you_tube_publishing_options_pane_signals[PUBLISHING_YOU_TUBE_PUBLISHING_OPTIONS_PANE_PUBLISH_SIGNAL], 0); -#line 2640 "YouTubePublishing.c" -} - - -static void -publishing_you_tube_publishing_options_pane_on_logout_clicked (PublishingYouTubePublishingOptionsPane* self) -{ -#line 365 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - g_return_if_fail (PUBLISHING_YOU_TUBE_IS_PUBLISHING_OPTIONS_PANE (self)); -#line 366 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - g_signal_emit (self, publishing_you_tube_publishing_options_pane_signals[PUBLISHING_YOU_TUBE_PUBLISHING_OPTIONS_PANE_LOGOUT_SIGNAL], 0); -#line 2651 "YouTubePublishing.c" -} - - -static void -publishing_you_tube_publishing_options_pane_update_publish_button_sensitivity (PublishingYouTubePublishingOptionsPane* self) -{ - GtkButton* _tmp0_; -#line 369 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - g_return_if_fail (PUBLISHING_YOU_TUBE_IS_PUBLISHING_OPTIONS_PANE (self)); -#line 370 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp0_ = self->priv->publish_button; -#line 370 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - gtk_widget_set_sensitive (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, gtk_widget_get_type (), GtkWidget), TRUE); -#line 2665 "YouTubePublishing.c" -} - - -static void -_vala_array_add35 (PublishingYouTubePublishingOptionsPanePrivacyDescription** * array, - int* length, - int* size, - PublishingYouTubePublishingOptionsPanePrivacyDescription* value) -{ -#line 376 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - if ((*length) == (*size)) { -#line 376 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - *size = (*size) ? (2 * (*size)) : 4; -#line 376 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - *array = g_renew (PublishingYouTubePublishingOptionsPanePrivacyDescription*, *array, (*size) + 1); -#line 2681 "YouTubePublishing.c" - } -#line 376 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - (*array)[(*length)++] = value; -#line 376 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - (*array)[*length] = NULL; -#line 2687 "YouTubePublishing.c" -} - - -static void -_vala_array_add36 (PublishingYouTubePublishingOptionsPanePrivacyDescription** * array, - int* length, - int* size, - PublishingYouTubePublishingOptionsPanePrivacyDescription* value) -{ -#line 377 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - if ((*length) == (*size)) { -#line 377 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - *size = (*size) ? (2 * (*size)) : 4; -#line 377 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - *array = g_renew (PublishingYouTubePublishingOptionsPanePrivacyDescription*, *array, (*size) + 1); -#line 2703 "YouTubePublishing.c" - } -#line 377 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - (*array)[(*length)++] = value; -#line 377 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - (*array)[*length] = NULL; -#line 2709 "YouTubePublishing.c" -} - - -static void -_vala_array_add37 (PublishingYouTubePublishingOptionsPanePrivacyDescription** * array, - int* length, - int* size, - PublishingYouTubePublishingOptionsPanePrivacyDescription* value) -{ -#line 378 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - if ((*length) == (*size)) { -#line 378 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - *size = (*size) ? (2 * (*size)) : 4; -#line 378 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - *array = g_renew (PublishingYouTubePublishingOptionsPanePrivacyDescription*, *array, (*size) + 1); -#line 2725 "YouTubePublishing.c" - } -#line 378 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - (*array)[(*length)++] = value; -#line 378 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - (*array)[*length] = NULL; -#line 2731 "YouTubePublishing.c" -} - - -static PublishingYouTubePublishingOptionsPanePrivacyDescription** -publishing_you_tube_publishing_options_pane_create_privacy_descriptions (PublishingYouTubePublishingOptionsPane* self, - int* result_length1) -{ - PublishingYouTubePublishingOptionsPanePrivacyDescription** result = NULL; - PublishingYouTubePublishingOptionsPanePrivacyDescription** _result_ = NULL; - PublishingYouTubePublishingOptionsPanePrivacyDescription** _tmp0_; - gint _result__length1; - gint __result__size_; - PublishingYouTubePublishingOptionsPanePrivacyDescription** _tmp1_; - gint _tmp1__length1; - PublishingYouTubePublishingOptionsPanePrivacyDescription* _tmp2_; - PublishingYouTubePublishingOptionsPanePrivacyDescription** _tmp3_; - gint _tmp3__length1; - PublishingYouTubePublishingOptionsPanePrivacyDescription* _tmp4_; - PublishingYouTubePublishingOptionsPanePrivacyDescription** _tmp5_; - gint _tmp5__length1; - PublishingYouTubePublishingOptionsPanePrivacyDescription* _tmp6_; - PublishingYouTubePublishingOptionsPanePrivacyDescription** _tmp7_; - gint _tmp7__length1; -#line 373 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - g_return_val_if_fail (PUBLISHING_YOU_TUBE_IS_PUBLISHING_OPTIONS_PANE (self), NULL); -#line 374 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp0_ = g_new0 (PublishingYouTubePublishingOptionsPanePrivacyDescription*, 0 + 1); -#line 374 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _result_ = _tmp0_; -#line 374 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _result__length1 = 0; -#line 374 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - __result__size_ = _result__length1; -#line 376 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp1_ = _result_; -#line 376 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp1__length1 = _result__length1; -#line 376 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp2_ = publishing_you_tube_publishing_options_pane_privacy_description_new (_ ("Public listed"), PUBLISHING_YOU_TUBE_PRIVACY_SETTING_PUBLIC); -#line 376 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _vala_array_add35 (&_result_, &_result__length1, &__result__size_, _tmp2_); -#line 377 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp3_ = _result_; -#line 377 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp3__length1 = _result__length1; -#line 377 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp4_ = publishing_you_tube_publishing_options_pane_privacy_description_new (_ ("Public unlisted"), PUBLISHING_YOU_TUBE_PRIVACY_SETTING_UNLISTED); -#line 377 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _vala_array_add36 (&_result_, &_result__length1, &__result__size_, _tmp4_); -#line 378 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp5_ = _result_; -#line 378 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp5__length1 = _result__length1; -#line 378 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp6_ = publishing_you_tube_publishing_options_pane_privacy_description_new (_ ("Private"), PUBLISHING_YOU_TUBE_PRIVACY_SETTING_PRIVATE); -#line 378 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _vala_array_add37 (&_result_, &_result__length1, &__result__size_, _tmp6_); -#line 380 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp7_ = _result_; -#line 380 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp7__length1 = _result__length1; -#line 380 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - if (result_length1) { -#line 380 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - *result_length1 = _tmp7__length1; -#line 2797 "YouTubePublishing.c" - } -#line 380 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - result = _tmp7_; -#line 380 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - return result; -#line 2803 "YouTubePublishing.c" -} - - -static GtkWidget* -publishing_you_tube_publishing_options_pane_real_get_widget (SpitPublishingDialogPane* base) -{ - PublishingYouTubePublishingOptionsPane * self; - GtkWidget* result = NULL; - GtkBox* _tmp0_; - GtkBox* _tmp1_; - GtkWidget* _tmp2_; -#line 383 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_YOU_TUBE_TYPE_PUBLISHING_OPTIONS_PANE, PublishingYouTubePublishingOptionsPane); -#line 384 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp0_ = self->priv->pane_widget; -#line 384 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _vala_assert (_tmp0_ != NULL, "pane_widget != null"); -#line 385 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp1_ = self->priv->pane_widget; -#line 385 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp2_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, gtk_widget_get_type (), GtkWidget)); -#line 385 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - result = _tmp2_; -#line 385 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - return result; -#line 2829 "YouTubePublishing.c" -} - - -static SpitPublishingDialogPaneGeometryOptions -publishing_you_tube_publishing_options_pane_real_get_preferred_geometry (SpitPublishingDialogPane* base) -{ - PublishingYouTubePublishingOptionsPane * self; - SpitPublishingDialogPaneGeometryOptions result = 0; -#line 388 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_YOU_TUBE_TYPE_PUBLISHING_OPTIONS_PANE, PublishingYouTubePublishingOptionsPane); -#line 389 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - result = SPIT_PUBLISHING_DIALOG_PANE_GEOMETRY_OPTIONS_NONE; -#line 389 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - return result; -#line 2844 "YouTubePublishing.c" -} - - -static void -publishing_you_tube_publishing_options_pane_real_on_pane_installed (SpitPublishingDialogPane* base) -{ - PublishingYouTubePublishingOptionsPane * self; -#line 392 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_YOU_TUBE_TYPE_PUBLISHING_OPTIONS_PANE, PublishingYouTubePublishingOptionsPane); -#line 393 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - publishing_you_tube_publishing_options_pane_update_publish_button_sensitivity (self); -#line 2856 "YouTubePublishing.c" -} - - -static void -publishing_you_tube_publishing_options_pane_real_on_pane_uninstalled (SpitPublishingDialogPane* base) -{ - PublishingYouTubePublishingOptionsPane * self; -#line 396 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_YOU_TUBE_TYPE_PUBLISHING_OPTIONS_PANE, PublishingYouTubePublishingOptionsPane); -#line 2866 "YouTubePublishing.c" -} - - -static PublishingYouTubePublishingOptionsPanePrivacyDescription* -publishing_you_tube_publishing_options_pane_privacy_description_construct (GType object_type, - const gchar* description, - PublishingYouTubePrivacySetting privacy_setting) -{ - PublishingYouTubePublishingOptionsPanePrivacyDescription* self = NULL; - gchar* _tmp0_; -#line 303 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - g_return_val_if_fail (description != NULL, NULL); -#line 303 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - self = (PublishingYouTubePublishingOptionsPanePrivacyDescription*) g_type_create_instance (object_type); -#line 304 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp0_ = g_strdup (description); -#line 304 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _g_free0 (self->description); -#line 304 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - self->description = _tmp0_; -#line 305 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - self->privacy_setting = privacy_setting; -#line 303 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - return self; -#line 2891 "YouTubePublishing.c" -} - - -static PublishingYouTubePublishingOptionsPanePrivacyDescription* -publishing_you_tube_publishing_options_pane_privacy_description_new (const gchar* description, - PublishingYouTubePrivacySetting privacy_setting) -{ -#line 303 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - return publishing_you_tube_publishing_options_pane_privacy_description_construct (PUBLISHING_YOU_TUBE_PUBLISHING_OPTIONS_PANE_TYPE_PRIVACY_DESCRIPTION, description, privacy_setting); -#line 2901 "YouTubePublishing.c" -} - - -static void -publishing_you_tube_publishing_options_pane_value_privacy_description_init (GValue* value) -{ -#line 299 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - value->data[0].v_pointer = NULL; -#line 2910 "YouTubePublishing.c" -} - - -static void -publishing_you_tube_publishing_options_pane_value_privacy_description_free_value (GValue* value) -{ -#line 299 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - if (value->data[0].v_pointer) { -#line 299 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - publishing_you_tube_publishing_options_pane_privacy_description_unref (value->data[0].v_pointer); -#line 2921 "YouTubePublishing.c" - } -} - - -static void -publishing_you_tube_publishing_options_pane_value_privacy_description_copy_value (const GValue* src_value, - GValue* dest_value) -{ -#line 299 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - if (src_value->data[0].v_pointer) { -#line 299 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - dest_value->data[0].v_pointer = publishing_you_tube_publishing_options_pane_privacy_description_ref (src_value->data[0].v_pointer); -#line 2934 "YouTubePublishing.c" - } else { -#line 299 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - dest_value->data[0].v_pointer = NULL; -#line 2938 "YouTubePublishing.c" - } -} - - -static gpointer -publishing_you_tube_publishing_options_pane_value_privacy_description_peek_pointer (const GValue* value) -{ -#line 299 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - return value->data[0].v_pointer; -#line 2948 "YouTubePublishing.c" -} - - -static gchar* -publishing_you_tube_publishing_options_pane_value_privacy_description_collect_value (GValue* value, - guint n_collect_values, - GTypeCValue* collect_values, - guint collect_flags) -{ -#line 299 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - if (collect_values[0].v_pointer) { -#line 2960 "YouTubePublishing.c" - PublishingYouTubePublishingOptionsPanePrivacyDescription * object; - object = collect_values[0].v_pointer; -#line 299 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - if (object->parent_instance.g_class == NULL) { -#line 299 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL); -#line 2967 "YouTubePublishing.c" - } else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) { -#line 299 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - return g_strconcat ("invalid object type `", g_type_name (G_TYPE_FROM_INSTANCE (object)), "' for value type `", G_VALUE_TYPE_NAME (value), "'", NULL); -#line 2971 "YouTubePublishing.c" - } -#line 299 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - value->data[0].v_pointer = publishing_you_tube_publishing_options_pane_privacy_description_ref (object); -#line 2975 "YouTubePublishing.c" - } else { -#line 299 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - value->data[0].v_pointer = NULL; -#line 2979 "YouTubePublishing.c" - } -#line 299 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - return NULL; -#line 2983 "YouTubePublishing.c" -} - - -static gchar* -publishing_you_tube_publishing_options_pane_value_privacy_description_lcopy_value (const GValue* value, - guint n_collect_values, - GTypeCValue* collect_values, - guint collect_flags) -{ - PublishingYouTubePublishingOptionsPanePrivacyDescription ** object_p; - object_p = collect_values[0].v_pointer; -#line 299 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - if (!object_p) { -#line 299 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value)); -#line 2999 "YouTubePublishing.c" - } -#line 299 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - if (!value->data[0].v_pointer) { -#line 299 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - *object_p = NULL; -#line 3005 "YouTubePublishing.c" - } else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) { -#line 299 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - *object_p = value->data[0].v_pointer; -#line 3009 "YouTubePublishing.c" - } else { -#line 299 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - *object_p = publishing_you_tube_publishing_options_pane_privacy_description_ref (value->data[0].v_pointer); -#line 3013 "YouTubePublishing.c" - } -#line 299 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - return NULL; -#line 3017 "YouTubePublishing.c" -} - - -static GParamSpec* -publishing_you_tube_publishing_options_pane_param_spec_privacy_description (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags) -{ - PublishingYouTubePublishingOptionsPaneParamSpecPrivacyDescription* spec; -#line 299 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - g_return_val_if_fail (g_type_is_a (object_type, PUBLISHING_YOU_TUBE_PUBLISHING_OPTIONS_PANE_TYPE_PRIVACY_DESCRIPTION), NULL); -#line 299 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags); -#line 299 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - G_PARAM_SPEC (spec)->value_type = object_type; -#line 299 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - return G_PARAM_SPEC (spec); -#line 3037 "YouTubePublishing.c" -} - - -static gpointer -publishing_you_tube_publishing_options_pane_value_get_privacy_description (const GValue* value) -{ -#line 299 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, PUBLISHING_YOU_TUBE_PUBLISHING_OPTIONS_PANE_TYPE_PRIVACY_DESCRIPTION), NULL); -#line 299 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - return value->data[0].v_pointer; -#line 3048 "YouTubePublishing.c" -} - - -static void -publishing_you_tube_publishing_options_pane_value_set_privacy_description (GValue* value, - gpointer v_object) -{ - PublishingYouTubePublishingOptionsPanePrivacyDescription * old; -#line 299 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, PUBLISHING_YOU_TUBE_PUBLISHING_OPTIONS_PANE_TYPE_PRIVACY_DESCRIPTION)); -#line 299 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - old = value->data[0].v_pointer; -#line 299 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - if (v_object) { -#line 299 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, PUBLISHING_YOU_TUBE_PUBLISHING_OPTIONS_PANE_TYPE_PRIVACY_DESCRIPTION)); -#line 299 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value))); -#line 299 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - value->data[0].v_pointer = v_object; -#line 299 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - publishing_you_tube_publishing_options_pane_privacy_description_ref (value->data[0].v_pointer); -#line 3071 "YouTubePublishing.c" - } else { -#line 299 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - value->data[0].v_pointer = NULL; -#line 3075 "YouTubePublishing.c" - } -#line 299 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - if (old) { -#line 299 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - publishing_you_tube_publishing_options_pane_privacy_description_unref (old); -#line 3081 "YouTubePublishing.c" - } -} - - -static void -publishing_you_tube_publishing_options_pane_value_take_privacy_description (GValue* value, - gpointer v_object) -{ - PublishingYouTubePublishingOptionsPanePrivacyDescription * old; -#line 299 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, PUBLISHING_YOU_TUBE_PUBLISHING_OPTIONS_PANE_TYPE_PRIVACY_DESCRIPTION)); -#line 299 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - old = value->data[0].v_pointer; -#line 299 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - if (v_object) { -#line 299 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, PUBLISHING_YOU_TUBE_PUBLISHING_OPTIONS_PANE_TYPE_PRIVACY_DESCRIPTION)); -#line 299 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value))); -#line 299 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - value->data[0].v_pointer = v_object; -#line 3103 "YouTubePublishing.c" - } else { -#line 299 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - value->data[0].v_pointer = NULL; -#line 3107 "YouTubePublishing.c" - } -#line 299 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - if (old) { -#line 299 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - publishing_you_tube_publishing_options_pane_privacy_description_unref (old); -#line 3113 "YouTubePublishing.c" - } -} - - -static void -publishing_you_tube_publishing_options_pane_privacy_description_class_init (PublishingYouTubePublishingOptionsPanePrivacyDescriptionClass * klass) -{ -#line 299 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - publishing_you_tube_publishing_options_pane_privacy_description_parent_class = g_type_class_peek_parent (klass); -#line 299 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - ((PublishingYouTubePublishingOptionsPanePrivacyDescriptionClass *) klass)->finalize = publishing_you_tube_publishing_options_pane_privacy_description_finalize; -#line 3125 "YouTubePublishing.c" -} - - -static void -publishing_you_tube_publishing_options_pane_privacy_description_instance_init (PublishingYouTubePublishingOptionsPanePrivacyDescription * self) -{ -#line 299 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - self->ref_count = 1; -#line 3134 "YouTubePublishing.c" -} - - -static void -publishing_you_tube_publishing_options_pane_privacy_description_finalize (PublishingYouTubePublishingOptionsPanePrivacyDescription * obj) -{ - PublishingYouTubePublishingOptionsPanePrivacyDescription * self; -#line 299 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, PUBLISHING_YOU_TUBE_PUBLISHING_OPTIONS_PANE_TYPE_PRIVACY_DESCRIPTION, PublishingYouTubePublishingOptionsPanePrivacyDescription); -#line 299 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - g_signal_handlers_destroy (self); -#line 300 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _g_free0 (self->description); -#line 3148 "YouTubePublishing.c" -} - - -static GType -publishing_you_tube_publishing_options_pane_privacy_description_get_type (void) -{ - static volatile gsize publishing_you_tube_publishing_options_pane_privacy_description_type_id__volatile = 0; - if (g_once_init_enter (&publishing_you_tube_publishing_options_pane_privacy_description_type_id__volatile)) { - static const GTypeValueTable g_define_type_value_table = { publishing_you_tube_publishing_options_pane_value_privacy_description_init, publishing_you_tube_publishing_options_pane_value_privacy_description_free_value, publishing_you_tube_publishing_options_pane_value_privacy_description_copy_value, publishing_you_tube_publishing_options_pane_value_privacy_description_peek_pointer, "p", publishing_you_tube_publishing_options_pane_value_privacy_description_collect_value, "p", publishing_you_tube_publishing_options_pane_value_privacy_description_lcopy_value }; - static const GTypeInfo g_define_type_info = { sizeof (PublishingYouTubePublishingOptionsPanePrivacyDescriptionClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) publishing_you_tube_publishing_options_pane_privacy_description_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PublishingYouTubePublishingOptionsPanePrivacyDescription), 0, (GInstanceInitFunc) publishing_you_tube_publishing_options_pane_privacy_description_instance_init, &g_define_type_value_table }; - static const GTypeFundamentalInfo g_define_type_fundamental_info = { (G_TYPE_FLAG_CLASSED | G_TYPE_FLAG_INSTANTIATABLE | G_TYPE_FLAG_DERIVABLE | G_TYPE_FLAG_DEEP_DERIVABLE) }; - GType publishing_you_tube_publishing_options_pane_privacy_description_type_id; - publishing_you_tube_publishing_options_pane_privacy_description_type_id = g_type_register_fundamental (g_type_fundamental_next (), "PublishingYouTubePublishingOptionsPanePrivacyDescription", &g_define_type_info, &g_define_type_fundamental_info, 0); - g_once_init_leave (&publishing_you_tube_publishing_options_pane_privacy_description_type_id__volatile, publishing_you_tube_publishing_options_pane_privacy_description_type_id); - } - return publishing_you_tube_publishing_options_pane_privacy_description_type_id__volatile; -} - - -static gpointer -publishing_you_tube_publishing_options_pane_privacy_description_ref (gpointer instance) -{ - PublishingYouTubePublishingOptionsPanePrivacyDescription * self; - self = instance; -#line 299 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - g_atomic_int_inc (&self->ref_count); -#line 299 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - return instance; -#line 3177 "YouTubePublishing.c" -} - - -static void -publishing_you_tube_publishing_options_pane_privacy_description_unref (gpointer instance) -{ - PublishingYouTubePublishingOptionsPanePrivacyDescription * self; - self = instance; -#line 299 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - if (g_atomic_int_dec_and_test (&self->ref_count)) { -#line 299 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - PUBLISHING_YOU_TUBE_PUBLISHING_OPTIONS_PANE_PRIVACY_DESCRIPTION_GET_CLASS (self)->finalize (self); -#line 299 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - g_type_free_instance ((GTypeInstance *) self); -#line 3192 "YouTubePublishing.c" - } -} - - -static void -publishing_you_tube_publishing_options_pane_class_init (PublishingYouTubePublishingOptionsPaneClass * klass) -{ -#line 298 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - publishing_you_tube_publishing_options_pane_parent_class = g_type_class_peek_parent (klass); -#line 298 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - g_type_class_add_private (klass, sizeof (PublishingYouTubePublishingOptionsPanePrivate)); -#line 298 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - G_OBJECT_CLASS (klass)->finalize = publishing_you_tube_publishing_options_pane_finalize; -#line 298 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - publishing_you_tube_publishing_options_pane_signals[PUBLISHING_YOU_TUBE_PUBLISHING_OPTIONS_PANE_PUBLISH_SIGNAL] = g_signal_new ("publish", PUBLISHING_YOU_TUBE_TYPE_PUBLISHING_OPTIONS_PANE, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_marshal_VOID__VOID, G_TYPE_NONE, 0); -#line 298 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - publishing_you_tube_publishing_options_pane_signals[PUBLISHING_YOU_TUBE_PUBLISHING_OPTIONS_PANE_LOGOUT_SIGNAL] = g_signal_new ("logout", PUBLISHING_YOU_TUBE_TYPE_PUBLISHING_OPTIONS_PANE, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_marshal_VOID__VOID, G_TYPE_NONE, 0); -#line 3210 "YouTubePublishing.c" -} - - -static void -publishing_you_tube_publishing_options_pane_spit_publishing_dialog_pane_interface_init (SpitPublishingDialogPaneIface * iface) -{ -#line 298 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - publishing_you_tube_publishing_options_pane_spit_publishing_dialog_pane_parent_iface = g_type_interface_peek_parent (iface); -#line 298 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - iface->get_widget = (GtkWidget* (*) (SpitPublishingDialogPane *)) publishing_you_tube_publishing_options_pane_real_get_widget; -#line 298 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - iface->get_preferred_geometry = (SpitPublishingDialogPaneGeometryOptions (*) (SpitPublishingDialogPane *)) publishing_you_tube_publishing_options_pane_real_get_preferred_geometry; -#line 298 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - iface->on_pane_installed = (void (*) (SpitPublishingDialogPane *)) publishing_you_tube_publishing_options_pane_real_on_pane_installed; -#line 298 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - iface->on_pane_uninstalled = (void (*) (SpitPublishingDialogPane *)) publishing_you_tube_publishing_options_pane_real_on_pane_uninstalled; -#line 3227 "YouTubePublishing.c" -} - - -static void -publishing_you_tube_publishing_options_pane_instance_init (PublishingYouTubePublishingOptionsPane * self) -{ -#line 298 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - self->priv = PUBLISHING_YOU_TUBE_PUBLISHING_OPTIONS_PANE_GET_PRIVATE (self); -#line 312 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - self->priv->pane_widget = NULL; -#line 313 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - self->priv->privacy_combo = NULL; -#line 314 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - self->priv->login_identity_label = NULL; -#line 315 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - self->priv->publish_button = NULL; -#line 316 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - self->priv->logout_button = NULL; -#line 317 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - self->priv->builder = NULL; -#line 318 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - self->priv->privacy_label = NULL; -#line 3250 "YouTubePublishing.c" -} - - -static void -publishing_you_tube_publishing_options_pane_finalize (GObject * obj) -{ - PublishingYouTubePublishingOptionsPane * self; -#line 298 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, PUBLISHING_YOU_TUBE_TYPE_PUBLISHING_OPTIONS_PANE, PublishingYouTubePublishingOptionsPane); -#line 312 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _g_object_unref0 (self->priv->pane_widget); -#line 313 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _g_object_unref0 (self->priv->privacy_combo); -#line 314 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _g_object_unref0 (self->priv->login_identity_label); -#line 315 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _g_object_unref0 (self->priv->publish_button); -#line 316 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _g_object_unref0 (self->priv->logout_button); -#line 317 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _g_object_unref0 (self->priv->builder); -#line 318 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _g_object_unref0 (self->priv->privacy_label); -#line 319 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - self->priv->privacy_descriptions = (_vala_array_free (self->priv->privacy_descriptions, self->priv->privacy_descriptions_length1, (GDestroyNotify) publishing_you_tube_publishing_options_pane_privacy_description_unref), NULL); -#line 320 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _publishing_you_tube_publishing_parameters_unref0 (self->priv->publishing_parameters); -#line 298 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - G_OBJECT_CLASS (publishing_you_tube_publishing_options_pane_parent_class)->finalize (obj); -#line 3280 "YouTubePublishing.c" -} - - -GType -publishing_you_tube_publishing_options_pane_get_type (void) -{ - static volatile gsize publishing_you_tube_publishing_options_pane_type_id__volatile = 0; - if (g_once_init_enter (&publishing_you_tube_publishing_options_pane_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (PublishingYouTubePublishingOptionsPaneClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) publishing_you_tube_publishing_options_pane_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PublishingYouTubePublishingOptionsPane), 0, (GInstanceInitFunc) publishing_you_tube_publishing_options_pane_instance_init, NULL }; - static const GInterfaceInfo spit_publishing_dialog_pane_info = { (GInterfaceInitFunc) publishing_you_tube_publishing_options_pane_spit_publishing_dialog_pane_interface_init, (GInterfaceFinalizeFunc) NULL, NULL}; - GType publishing_you_tube_publishing_options_pane_type_id; - publishing_you_tube_publishing_options_pane_type_id = g_type_register_static (G_TYPE_OBJECT, "PublishingYouTubePublishingOptionsPane", &g_define_type_info, 0); - g_type_add_interface_static (publishing_you_tube_publishing_options_pane_type_id, SPIT_PUBLISHING_TYPE_DIALOG_PANE, &spit_publishing_dialog_pane_info); - g_once_init_leave (&publishing_you_tube_publishing_options_pane_type_id__volatile, publishing_you_tube_publishing_options_pane_type_id); - } - return publishing_you_tube_publishing_options_pane_type_id__volatile; -} - - -PublishingYouTubeUploadTransaction* -publishing_you_tube_upload_transaction_construct (GType object_type, - GDataYouTubeService* youtube_service, - PublishingRESTSupportGoogleSession* session, - PublishingYouTubePublishingParameters* parameters, - SpitPublishingPublishable* publishable) -{ - PublishingYouTubeUploadTransaction* self = NULL; - PublishingRESTSupportGoogleSession* _tmp0_; - PublishingYouTubePublishingParameters* _tmp1_; - SpitPublishingPublishable* _tmp2_; - GDataYouTubeService* _tmp3_; -#line 407 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - g_return_val_if_fail (GDATA_IS_YOUTUBE_SERVICE (youtube_service), NULL); -#line 407 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - g_return_val_if_fail (PUBLISHING_REST_SUPPORT_IS_GOOGLE_SESSION (session), NULL); -#line 407 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - g_return_val_if_fail (PUBLISHING_YOU_TUBE_IS_PUBLISHING_PARAMETERS (parameters), NULL); -#line 407 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - g_return_val_if_fail (SPIT_PUBLISHING_IS_PUBLISHABLE (publishable), NULL); -#line 409 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - self = (PublishingYouTubeUploadTransaction*) publishing_rest_support_google_publisher_authenticated_transaction_construct (object_type, session, PUBLISHING_YOU_TUBE_UPLOAD_TRANSACTION_ENDPOINT_URL, PUBLISHING_REST_SUPPORT_HTTP_METHOD_POST); -#line 410 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _vala_assert (publishing_rest_support_session_is_authenticated (G_TYPE_CHECK_INSTANCE_CAST (session, PUBLISHING_REST_SUPPORT_TYPE_SESSION, PublishingRESTSupportSession)), "session.is_authenticated()"); -#line 411 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp0_ = _publishing_rest_support_session_ref0 (session); -#line 411 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _publishing_rest_support_session_unref0 (self->priv->session); -#line 411 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - self->priv->session = _tmp0_; -#line 412 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp1_ = _publishing_you_tube_publishing_parameters_ref0 (parameters); -#line 412 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _publishing_you_tube_publishing_parameters_unref0 (self->priv->parameters); -#line 412 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - self->priv->parameters = _tmp1_; -#line 413 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp2_ = _g_object_ref0 (publishable); -#line 413 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _g_object_unref0 (self->priv->publishable); -#line 413 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - self->priv->publishable = _tmp2_; -#line 414 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp3_ = _g_object_ref0 (youtube_service); -#line 414 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _g_object_unref0 (self->priv->youtube_service); -#line 414 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - self->priv->youtube_service = _tmp3_; -#line 407 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - return self; -#line 3350 "YouTubePublishing.c" -} - - -PublishingYouTubeUploadTransaction* -publishing_you_tube_upload_transaction_new (GDataYouTubeService* youtube_service, - PublishingRESTSupportGoogleSession* session, - PublishingYouTubePublishingParameters* parameters, - SpitPublishingPublishable* publishable) -{ -#line 407 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - return publishing_you_tube_upload_transaction_construct (PUBLISHING_YOU_TUBE_TYPE_UPLOAD_TRANSACTION, youtube_service, session, parameters, publishable); -#line 3362 "YouTubePublishing.c" -} - - -static Block1Data* -block1_data_ref (Block1Data* _data1_) -{ -#line 438 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - g_atomic_int_inc (&_data1_->_ref_count_); -#line 438 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - return _data1_; -#line 3373 "YouTubePublishing.c" -} - - -static void -block1_data_unref (void * _userdata_) -{ - Block1Data* _data1_; - _data1_ = (Block1Data*) _userdata_; -#line 438 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - if (g_atomic_int_dec_and_test (&_data1_->_ref_count_)) { -#line 3384 "YouTubePublishing.c" - PublishingYouTubeUploadTransaction* self; -#line 438 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - self = _data1_->self; -#line 438 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _g_main_loop_unref0 (_data1_->loop); -#line 438 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _publishing_rest_support_transaction_unref0 (self); -#line 438 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - g_slice_free (Block1Data, _data1_); -#line 3394 "YouTubePublishing.c" - } -} - - -static void -___lambda4_ (Block1Data* _data1_, - GObject* obj, - GAsyncResult* res) -{ - PublishingYouTubeUploadTransaction* self; - GMainLoop* _tmp2_; - GError * _inner_error_ = NULL; -#line 447 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - self = _data1_->self; -#line 447 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - g_return_if_fail ((obj == NULL) || G_IS_OBJECT (obj)); -#line 447 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - g_return_if_fail (G_IS_ASYNC_RESULT (res)); -#line 3413 "YouTubePublishing.c" - { -#line 449 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - publishing_you_tube_upload_transaction_splice_with_progress_finish (self, res, &_inner_error_); -#line 449 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 3419 "YouTubePublishing.c" - goto __catch27_g_error; - } - } - goto __finally27; - __catch27_g_error: - { - GError* _error_ = NULL; - GError* _tmp0_; - const gchar* _tmp1_; -#line 448 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _error_ = _inner_error_; -#line 448 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _inner_error_ = NULL; -#line 451 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp0_ = _error_; -#line 451 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp1_ = _tmp0_->message; -#line 451 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - g_critical ("YouTubePublishing.vala:451: Failed to upload: %s", _tmp1_); -#line 448 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _g_error_free0 (_error_); -#line 3441 "YouTubePublishing.c" - } - __finally27: -#line 448 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 448 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 448 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - g_clear_error (&_inner_error_); -#line 448 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - return; -#line 3452 "YouTubePublishing.c" - } -#line 453 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp2_ = _data1_->loop; -#line 453 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - g_main_loop_quit (_tmp2_); -#line 3458 "YouTubePublishing.c" -} - - -static void -____lambda4__gasync_ready_callback (GObject* source_object, - GAsyncResult* res, - gpointer self) -{ -#line 447 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - ___lambda4_ (self, source_object, res); -#line 447 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - block1_data_unref (self); -#line 3471 "YouTubePublishing.c" -} - - -static void -publishing_you_tube_upload_transaction_real_execute (PublishingRESTSupportTransaction* base, - GError** error) -{ - PublishingYouTubeUploadTransaction * self; - GDataYouTubeVideo* video = NULL; - GDataYouTubeVideo* _tmp0_; - gchar* slug = NULL; - SpitPublishingPublishable* _tmp1_; - gchar* _tmp2_; - gchar* title = NULL; - SpitPublishingPublishable* _tmp3_; - gchar* _tmp4_; - const gchar* _tmp5_; - GDataYouTubeVideo* _tmp8_; - const gchar* _tmp9_; - GDataYouTubeVideo* _tmp10_; - PublishingYouTubePublishingParameters* _tmp11_; - PublishingYouTubePublishingParameters* _tmp12_; - GFile* file = NULL; - SpitPublishingPublishable* _tmp18_; - GFile* _tmp19_; - GError * _inner_error_ = NULL; -#line 417 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_YOU_TUBE_TYPE_UPLOAD_TRANSACTION, PublishingYouTubeUploadTransaction); -#line 418 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp0_ = gdata_youtube_video_new (NULL); -#line 418 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - video = _tmp0_; -#line 420 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp1_ = self->priv->publishable; -#line 420 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp2_ = spit_publishing_publishable_get_param_string (_tmp1_, SPIT_PUBLISHING_PUBLISHABLE_PARAM_STRING_BASENAME); -#line 420 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - slug = _tmp2_; -#line 422 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp3_ = self->priv->publishable; -#line 422 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp4_ = spit_publishing_publishable_get_publishing_name (_tmp3_); -#line 422 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - title = _tmp4_; -#line 423 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp5_ = title; -#line 423 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - if (g_strcmp0 (_tmp5_, "") == 0) { -#line 3520 "YouTubePublishing.c" - SpitPublishingPublishable* _tmp6_; - gchar* _tmp7_; -#line 424 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp6_ = self->priv->publishable; -#line 424 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp7_ = spit_publishing_publishable_get_param_string (_tmp6_, SPIT_PUBLISHING_PUBLISHABLE_PARAM_STRING_BASENAME); -#line 424 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _g_free0 (title); -#line 424 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - title = _tmp7_; -#line 3531 "YouTubePublishing.c" - } -#line 426 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp8_ = video; -#line 426 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp9_ = title; -#line 426 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - gdata_entry_set_title (G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, gdata_entry_get_type (), GDataEntry), _tmp9_); -#line 428 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp10_ = video; -#line 428 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp11_ = self->priv->parameters; -#line 428 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - g_object_set (_tmp10_, "is-private", publishing_you_tube_publishing_parameters_get_privacy (_tmp11_) == PUBLISHING_YOU_TUBE_PRIVACY_SETTING_PRIVATE, NULL); -#line 430 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp12_ = self->priv->parameters; -#line 430 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - if (publishing_you_tube_publishing_parameters_get_privacy (_tmp12_) == PUBLISHING_YOU_TUBE_PRIVACY_SETTING_UNLISTED) { -#line 3549 "YouTubePublishing.c" - GDataYouTubeVideo* _tmp13_; -#line 431 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp13_ = video; -#line 431 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - gdata_youtube_video_set_access_control (_tmp13_, "list", GDATA_YOUTUBE_PERMISSION_DENIED); -#line 3555 "YouTubePublishing.c" - } else { - GDataYouTubeVideo* _tmp14_; - gboolean _tmp15_; - gboolean _tmp16_; -#line 432 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp14_ = video; -#line 432 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - g_object_get (_tmp14_, "is-private", &_tmp15_, NULL); -#line 432 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp16_ = _tmp15_; -#line 432 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - if (!_tmp16_) { -#line 3568 "YouTubePublishing.c" - GDataYouTubeVideo* _tmp17_; -#line 433 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp17_ = video; -#line 433 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - gdata_youtube_video_set_access_control (_tmp17_, "list", GDATA_YOUTUBE_PERMISSION_ALLOWED); -#line 3574 "YouTubePublishing.c" - } - } -#line 436 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp18_ = self->priv->publishable; -#line 436 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp19_ = spit_publishing_publishable_get_serialized_file (_tmp18_); -#line 436 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - file = _tmp19_; -#line 3583 "YouTubePublishing.c" - { - Block1Data* _data1_; - GFileInfo* info = NULL; - GFile* _tmp20_; - GFileInfo* _tmp21_; - GDataUploadStream* upload_stream = NULL; - GDataYouTubeService* _tmp22_; - GDataYouTubeVideo* _tmp23_; - const gchar* _tmp24_; - GFileInfo* _tmp25_; - const gchar* _tmp26_; - GDataUploadStream* _tmp27_; - GFileInputStream* input_stream = NULL; - GFile* _tmp28_; - GFileInputStream* _tmp29_; - GMainLoop* _tmp30_; - GFileInfo* _tmp31_; - GFileInputStream* _tmp32_; - GDataUploadStream* _tmp33_; - GMainLoop* _tmp34_; - GDataYouTubeVideo* _tmp35_ = NULL; - GDataYouTubeService* _tmp36_; - GDataUploadStream* _tmp37_; - GDataYouTubeVideo* _tmp38_; - GDataYouTubeVideo* _tmp39_; -#line 438 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _data1_ = g_slice_new0 (Block1Data); -#line 438 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _data1_->_ref_count_ = 1; -#line 438 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _data1_->self = publishing_rest_support_transaction_ref (self); -#line 439 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp20_ = file; -#line 439 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp21_ = g_file_query_info (_tmp20_, G_FILE_ATTRIBUTE_STANDARD_CONTENT_TYPE "," G_FILE_ATTRIBUTE_STANDARD_SIZE, G_FILE_QUERY_INFO_NONE, NULL, &_inner_error_); -#line 439 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - info = _tmp21_; -#line 439 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 439 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - block1_data_unref (_data1_); -#line 439 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _data1_ = NULL; -#line 3627 "YouTubePublishing.c" - goto __catch26_g_error; - } -#line 441 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp22_ = self->priv->youtube_service; -#line 441 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp23_ = video; -#line 441 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp24_ = slug; -#line 441 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp25_ = info; -#line 441 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp26_ = g_file_info_get_content_type (_tmp25_); -#line 441 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp27_ = gdata_youtube_service_upload_video (_tmp22_, _tmp23_, _tmp24_, _tmp26_, NULL, &_inner_error_); -#line 441 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - upload_stream = _tmp27_; -#line 441 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 441 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _g_object_unref0 (info); -#line 441 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - block1_data_unref (_data1_); -#line 441 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _data1_ = NULL; -#line 3652 "YouTubePublishing.c" - goto __catch26_g_error; - } -#line 443 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp28_ = file; -#line 443 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp29_ = g_file_read (_tmp28_, NULL, &_inner_error_); -#line 443 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - input_stream = _tmp29_; -#line 443 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 443 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _g_object_unref0 (upload_stream); -#line 443 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _g_object_unref0 (info); -#line 443 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - block1_data_unref (_data1_); -#line 443 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _data1_ = NULL; -#line 3671 "YouTubePublishing.c" - goto __catch26_g_error; - } -#line 446 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp30_ = g_main_loop_new (NULL, FALSE); -#line 446 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _data1_->loop = _tmp30_; -#line 447 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp31_ = info; -#line 447 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp32_ = input_stream; -#line 447 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp33_ = upload_stream; -#line 447 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - publishing_you_tube_upload_transaction_splice_with_progress (self, _tmp31_, G_TYPE_CHECK_INSTANCE_CAST (_tmp32_, g_input_stream_get_type (), GInputStream), G_TYPE_CHECK_INSTANCE_CAST (_tmp33_, g_output_stream_get_type (), GOutputStream), ____lambda4__gasync_ready_callback, block1_data_ref (_data1_)); -#line 455 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp34_ = _data1_->loop; -#line 455 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - g_main_loop_run (_tmp34_); -#line 456 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp36_ = self->priv->youtube_service; -#line 456 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp37_ = upload_stream; -#line 456 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp38_ = gdata_youtube_service_finish_video_upload (_tmp36_, _tmp37_, &_inner_error_); -#line 456 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp35_ = _tmp38_; -#line 456 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 456 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _g_object_unref0 (input_stream); -#line 456 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _g_object_unref0 (upload_stream); -#line 456 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _g_object_unref0 (info); -#line 456 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - block1_data_unref (_data1_); -#line 456 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _data1_ = NULL; -#line 3710 "YouTubePublishing.c" - goto __catch26_g_error; - } -#line 456 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp39_ = _tmp35_; -#line 456 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp35_ = NULL; -#line 456 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _g_object_unref0 (video); -#line 456 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - video = _tmp39_; -#line 438 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _g_object_unref0 (_tmp35_); -#line 438 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _g_object_unref0 (input_stream); -#line 438 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _g_object_unref0 (upload_stream); -#line 438 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _g_object_unref0 (info); -#line 438 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - block1_data_unref (_data1_); -#line 438 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _data1_ = NULL; -#line 3733 "YouTubePublishing.c" - } - goto __finally26; - __catch26_g_error: - { - GError* _error_ = NULL; - GError* _tmp40_; - const gchar* _tmp41_; -#line 438 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _error_ = _inner_error_; -#line 438 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _inner_error_ = NULL; -#line 458 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp40_ = _error_; -#line 458 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp41_ = _tmp40_->message; -#line 458 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - g_critical ("YouTubePublishing.vala:458: Upload failed: %s", _tmp41_); -#line 438 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _g_error_free0 (_error_); -#line 3753 "YouTubePublishing.c" - } - __finally26: -#line 438 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 438 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - if (_inner_error_->domain == SPIT_PUBLISHING_PUBLISHING_ERROR) { -#line 438 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - g_propagate_error (error, _inner_error_); -#line 438 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _g_object_unref0 (file); -#line 438 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _g_free0 (title); -#line 438 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _g_free0 (slug); -#line 438 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _g_object_unref0 (video); -#line 438 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - return; -#line 3772 "YouTubePublishing.c" - } else { -#line 438 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _g_object_unref0 (file); -#line 438 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _g_free0 (title); -#line 438 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _g_free0 (slug); -#line 438 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _g_object_unref0 (video); -#line 438 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 438 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - g_clear_error (&_inner_error_); -#line 438 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - return; -#line 3788 "YouTubePublishing.c" - } - } -#line 417 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _g_object_unref0 (file); -#line 417 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _g_free0 (title); -#line 417 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _g_free0 (slug); -#line 417 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _g_object_unref0 (video); -#line 3799 "YouTubePublishing.c" -} - - -static void -publishing_you_tube_upload_transaction_splice_with_progress_data_free (gpointer _data) -{ - PublishingYouTubeUploadTransactionSpliceWithProgressData* _data_; - _data_ = _data; -#line 400 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _g_object_unref0 (_data_->info); -#line 400 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _g_object_unref0 (_data_->input); -#line 400 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _g_object_unref0 (_data_->output); -#line 400 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _publishing_rest_support_transaction_unref0 (_data_->self); -#line 400 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - g_slice_free (PublishingYouTubeUploadTransactionSpliceWithProgressData, _data_); -#line 3818 "YouTubePublishing.c" -} - - -static void -publishing_you_tube_upload_transaction_splice_with_progress_async_ready_wrapper (GObject *source_object, - GAsyncResult *res, - void *user_data) -{ - PublishingYouTubeUploadTransactionSpliceWithProgressData* _task_data_; -#line 400 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _task_data_ = g_task_get_task_data (G_TASK (res)); -#line 400 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - if (_task_data_->_callback_ != NULL) { -#line 400 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _task_data_->_callback_ (source_object, res, user_data); -#line 3834 "YouTubePublishing.c" - } -#line 400 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _task_data_->_task_complete_ = TRUE; -#line 3838 "YouTubePublishing.c" -} - - -static gpointer -_publishing_rest_support_transaction_ref0 (gpointer self) -{ -#line 400 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - return self ? publishing_rest_support_transaction_ref (self) : NULL; -#line 3847 "YouTubePublishing.c" -} - - -static void -publishing_you_tube_upload_transaction_splice_with_progress (PublishingYouTubeUploadTransaction* self, - GFileInfo* info, - GInputStream* input, - GOutputStream* output, - GAsyncReadyCallback _callback_, - gpointer _user_data_) -{ - PublishingYouTubeUploadTransactionSpliceWithProgressData* _data_; - PublishingYouTubeUploadTransaction* _tmp0_; - GFileInfo* _tmp1_; - GInputStream* _tmp2_; - GOutputStream* _tmp3_; -#line 400 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _data_ = g_slice_new0 (PublishingYouTubeUploadTransactionSpliceWithProgressData); -#line 400 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _data_->_callback_ = _callback_; -#line 400 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _data_->_async_result = g_task_new (NULL, NULL, publishing_you_tube_upload_transaction_splice_with_progress_async_ready_wrapper, _user_data_); -#line 400 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - if (_callback_ == NULL) { -#line 400 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _data_->_task_complete_ = TRUE; -#line 3874 "YouTubePublishing.c" - } -#line 400 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - g_task_set_task_data (_data_->_async_result, _data_, publishing_you_tube_upload_transaction_splice_with_progress_data_free); -#line 400 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp0_ = _publishing_rest_support_transaction_ref0 (self); -#line 400 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _data_->self = _tmp0_; -#line 400 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp1_ = _g_object_ref0 (info); -#line 400 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _g_object_unref0 (_data_->info); -#line 400 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _data_->info = _tmp1_; -#line 400 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp2_ = _g_object_ref0 (input); -#line 400 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _g_object_unref0 (_data_->input); -#line 400 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _data_->input = _tmp2_; -#line 400 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp3_ = _g_object_ref0 (output); -#line 400 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _g_object_unref0 (_data_->output); -#line 400 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _data_->output = _tmp3_; -#line 400 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - publishing_you_tube_upload_transaction_splice_with_progress_co (_data_); -#line 3902 "YouTubePublishing.c" -} - - -static void -publishing_you_tube_upload_transaction_splice_with_progress_finish (PublishingYouTubeUploadTransaction* self, - GAsyncResult* _res_, - GError** error) -{ - PublishingYouTubeUploadTransactionSpliceWithProgressData* _data_; -#line 400 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _data_ = g_task_propagate_pointer (G_TASK (_res_), error); -#line 400 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - if (NULL == _data_) { -#line 400 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - return; -#line 3918 "YouTubePublishing.c" - } -} - - -static void -publishing_you_tube_upload_transaction_splice_with_progress_ready (GObject* source_object, - GAsyncResult* _res_, - gpointer _user_data_) -{ - PublishingYouTubeUploadTransactionSpliceWithProgressData* _data_; -#line 468 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _data_ = _user_data_; -#line 468 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _data_->_source_object_ = source_object; -#line 468 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _data_->_res_ = _res_; -#line 468 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _data_->_task_complete_ = TRUE; -#line 468 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - publishing_you_tube_upload_transaction_splice_with_progress_co (_data_); -#line 3939 "YouTubePublishing.c" -} - - -static gboolean -publishing_you_tube_upload_transaction_splice_with_progress_co (PublishingYouTubeUploadTransactionSpliceWithProgressData* _data_) -{ -#line 462 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - switch (_data_->_state_) { -#line 462 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - case 0: -#line 3950 "YouTubePublishing.c" - goto _state_0; -#line 462 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - case 1: -#line 3954 "YouTubePublishing.c" - goto _state_1; -#line 462 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - case 2: -#line 3958 "YouTubePublishing.c" - goto _state_2; -#line 462 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - case 3: -#line 3962 "YouTubePublishing.c" - goto _state_3; -#line 462 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - case 4: -#line 3966 "YouTubePublishing.c" - goto _state_4; - default: -#line 462 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - g_assert_not_reached (); -#line 3971 "YouTubePublishing.c" - } - _state_0: -#line 463 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _data_->total_bytes = g_file_info_get_size (_data_->info); -#line 464 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _data_->_tmp0_ = _data_->total_bytes; -#line 464 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _data_->bytes_to_write = _data_->_tmp0_; -#line 467 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - while (TRUE) { -#line 467 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _data_->_tmp1_ = _data_->bytes_to_write; -#line 467 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - if (!(_data_->_tmp1_ > ((gint64) 0))) { -#line 467 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - break; -#line 3988 "YouTubePublishing.c" - } -#line 468 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _data_->_state_ = 1; -#line 468 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - g_input_stream_read_async (_data_->input, _data_->buffer, (gsize) 8192, G_PRIORITY_DEFAULT, NULL, publishing_you_tube_upload_transaction_splice_with_progress_ready, _data_); -#line 468 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - return FALSE; -#line 3996 "YouTubePublishing.c" - _state_1: -#line 468 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _data_->bytes_read = g_input_stream_read_finish (_data_->input, _data_->_res_, &_data_->_inner_error_); -#line 468 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - if (G_UNLIKELY (_data_->_inner_error_ != NULL)) { -#line 468 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - g_task_return_error (_data_->_async_result, _data_->_inner_error_); -#line 468 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - g_object_unref (_data_->_async_result); -#line 468 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - return FALSE; -#line 4008 "YouTubePublishing.c" - } -#line 469 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _data_->_tmp2_ = _data_->bytes_read; -#line 469 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - if (_data_->_tmp2_ == ((gssize) 0)) { -#line 470 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - break; -#line 4016 "YouTubePublishing.c" - } -#line 472 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _data_->_tmp3_ = _data_->bytes_read; -#line 472 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _data_->_state_ = 2; -#line 472 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - g_output_stream_write_async (_data_->output, _data_->buffer + 0, (gsize) (((gint) _data_->_tmp3_) - 0), G_PRIORITY_DEFAULT, NULL, publishing_you_tube_upload_transaction_splice_with_progress_ready, _data_); -#line 472 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - return FALSE; -#line 4026 "YouTubePublishing.c" - _state_2: -#line 472 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _data_->bytes_written = g_output_stream_write_finish (_data_->output, _data_->_res_, &_data_->_inner_error_); -#line 472 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - if (G_UNLIKELY (_data_->_inner_error_ != NULL)) { -#line 472 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - g_task_return_error (_data_->_async_result, _data_->_inner_error_); -#line 472 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - g_object_unref (_data_->_async_result); -#line 472 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - return FALSE; -#line 4038 "YouTubePublishing.c" - } -#line 473 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _data_->_tmp4_ = _data_->bytes_to_write; -#line 473 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _data_->_tmp5_ = _data_->bytes_written; -#line 473 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _data_->bytes_to_write = _data_->_tmp4_ - _data_->_tmp5_; -#line 474 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _data_->_tmp6_ = _data_->total_bytes; -#line 474 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _data_->_tmp7_ = _data_->bytes_to_write; -#line 474 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _data_->_tmp8_ = _data_->total_bytes; -#line 474 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - g_signal_emit_by_name (G_TYPE_CHECK_INSTANCE_CAST (_data_->self, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "chunk-transmitted", (gint) (_data_->_tmp6_ - _data_->_tmp7_), (gint) _data_->_tmp8_); -#line 4054 "YouTubePublishing.c" - } -#line 477 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _data_->_state_ = 3; -#line 477 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - g_output_stream_close_async (_data_->output, G_PRIORITY_DEFAULT, NULL, publishing_you_tube_upload_transaction_splice_with_progress_ready, _data_); -#line 477 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - return FALSE; -#line 4062 "YouTubePublishing.c" - _state_3: -#line 477 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - g_output_stream_close_finish (_data_->output, _data_->_res_, &_data_->_inner_error_); -#line 477 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - if (G_UNLIKELY (_data_->_inner_error_ != NULL)) { -#line 477 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - g_task_return_error (_data_->_async_result, _data_->_inner_error_); -#line 477 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - g_object_unref (_data_->_async_result); -#line 477 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - return FALSE; -#line 4074 "YouTubePublishing.c" - } -#line 478 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _data_->_state_ = 4; -#line 478 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - g_input_stream_close_async (_data_->input, G_PRIORITY_DEFAULT, NULL, publishing_you_tube_upload_transaction_splice_with_progress_ready, _data_); -#line 478 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - return FALSE; -#line 4082 "YouTubePublishing.c" - _state_4: -#line 478 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - g_input_stream_close_finish (_data_->input, _data_->_res_, &_data_->_inner_error_); -#line 478 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - if (G_UNLIKELY (_data_->_inner_error_ != NULL)) { -#line 478 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - g_task_return_error (_data_->_async_result, _data_->_inner_error_); -#line 478 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - g_object_unref (_data_->_async_result); -#line 478 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - return FALSE; -#line 4094 "YouTubePublishing.c" - } -#line 462 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - g_task_return_pointer (_data_->_async_result, _data_, NULL); -#line 462 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - if (_data_->_state_ != 0) { -#line 462 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - while (_data_->_task_complete_ != TRUE) { -#line 462 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - g_main_context_iteration (g_task_get_context (_data_->_async_result), TRUE); -#line 4104 "YouTubePublishing.c" - } - } -#line 462 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - g_object_unref (_data_->_async_result); -#line 462 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - return FALSE; -#line 4111 "YouTubePublishing.c" -} - - -static void -publishing_you_tube_upload_transaction_class_init (PublishingYouTubeUploadTransactionClass * klass) -{ -#line 400 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - publishing_you_tube_upload_transaction_parent_class = g_type_class_peek_parent (klass); -#line 400 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - ((PublishingRESTSupportTransactionClass *) klass)->finalize = publishing_you_tube_upload_transaction_finalize; -#line 400 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - g_type_class_add_private (klass, sizeof (PublishingYouTubeUploadTransactionPrivate)); -#line 400 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - ((PublishingRESTSupportTransactionClass *) klass)->execute = (void (*) (PublishingRESTSupportTransaction *, GError**)) publishing_you_tube_upload_transaction_real_execute; -#line 4126 "YouTubePublishing.c" -} - - -static void -publishing_you_tube_upload_transaction_instance_init (PublishingYouTubeUploadTransaction * self) -{ -#line 400 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - self->priv = PUBLISHING_YOU_TUBE_UPLOAD_TRANSACTION_GET_PRIVATE (self); -#line 4135 "YouTubePublishing.c" -} - - -static void -publishing_you_tube_upload_transaction_finalize (PublishingRESTSupportTransaction * obj) -{ - PublishingYouTubeUploadTransaction * self; -#line 400 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, PUBLISHING_YOU_TUBE_TYPE_UPLOAD_TRANSACTION, PublishingYouTubeUploadTransaction); -#line 402 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _publishing_you_tube_publishing_parameters_unref0 (self->priv->parameters); -#line 403 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _publishing_rest_support_session_unref0 (self->priv->session); -#line 404 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _g_object_unref0 (self->priv->publishable); -#line 405 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _g_object_unref0 (self->priv->youtube_service); -#line 400 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - PUBLISHING_REST_SUPPORT_TRANSACTION_CLASS (publishing_you_tube_upload_transaction_parent_class)->finalize (obj); -#line 4155 "YouTubePublishing.c" -} - - -GType -publishing_you_tube_upload_transaction_get_type (void) -{ - static volatile gsize publishing_you_tube_upload_transaction_type_id__volatile = 0; - if (g_once_init_enter (&publishing_you_tube_upload_transaction_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (PublishingYouTubeUploadTransactionClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) publishing_you_tube_upload_transaction_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PublishingYouTubeUploadTransaction), 0, (GInstanceInitFunc) publishing_you_tube_upload_transaction_instance_init, NULL }; - GType publishing_you_tube_upload_transaction_type_id; - publishing_you_tube_upload_transaction_type_id = g_type_register_static (PUBLISHING_REST_SUPPORT_GOOGLE_PUBLISHER_TYPE_AUTHENTICATED_TRANSACTION, "PublishingYouTubeUploadTransaction", &g_define_type_info, 0); - g_once_init_leave (&publishing_you_tube_upload_transaction_type_id__volatile, publishing_you_tube_upload_transaction_type_id); - } - return publishing_you_tube_upload_transaction_type_id__volatile; -} - - -PublishingYouTubeUploader* -publishing_you_tube_uploader_construct (GType object_type, - GDataYouTubeService* youtube_service, - PublishingRESTSupportGoogleSession* session, - SpitPublishingPublishable** publishables, - int publishables_length1, - PublishingYouTubePublishingParameters* parameters) -{ - PublishingYouTubeUploader* self = NULL; - PublishingYouTubePublishingParameters* _tmp0_; - GDataYouTubeService* _tmp1_; -#line 486 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - g_return_val_if_fail (GDATA_IS_YOUTUBE_SERVICE (youtube_service), NULL); -#line 486 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - g_return_val_if_fail (PUBLISHING_REST_SUPPORT_IS_GOOGLE_SESSION (session), NULL); -#line 486 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - g_return_val_if_fail (PUBLISHING_YOU_TUBE_IS_PUBLISHING_PARAMETERS (parameters), NULL); -#line 488 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - self = (PublishingYouTubeUploader*) publishing_rest_support_batch_uploader_construct (object_type, G_TYPE_CHECK_INSTANCE_CAST (session, PUBLISHING_REST_SUPPORT_TYPE_SESSION, PublishingRESTSupportSession), publishables, publishables_length1); -#line 490 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp0_ = _publishing_you_tube_publishing_parameters_ref0 (parameters); -#line 490 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _publishing_you_tube_publishing_parameters_unref0 (self->priv->parameters); -#line 490 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - self->priv->parameters = _tmp0_; -#line 491 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp1_ = _g_object_ref0 (youtube_service); -#line 491 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _g_object_unref0 (self->priv->youtube_service); -#line 491 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - self->priv->youtube_service = _tmp1_; -#line 486 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - return self; -#line 4206 "YouTubePublishing.c" -} - - -PublishingYouTubeUploader* -publishing_you_tube_uploader_new (GDataYouTubeService* youtube_service, - PublishingRESTSupportGoogleSession* session, - SpitPublishingPublishable** publishables, - int publishables_length1, - PublishingYouTubePublishingParameters* parameters) -{ -#line 486 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - return publishing_you_tube_uploader_construct (PUBLISHING_YOU_TUBE_TYPE_UPLOADER, youtube_service, session, publishables, publishables_length1, parameters); -#line 4219 "YouTubePublishing.c" -} - - -static PublishingRESTSupportTransaction* -publishing_you_tube_uploader_real_create_transaction (PublishingRESTSupportBatchUploader* base, - SpitPublishingPublishable* publishable) -{ - PublishingYouTubeUploader * self; - PublishingRESTSupportTransaction* result = NULL; - GDataYouTubeService* _tmp0_; - PublishingRESTSupportSession* _tmp1_; - PublishingRESTSupportGoogleSession* _tmp2_; - PublishingYouTubePublishingParameters* _tmp3_; - SpitPublishingPublishable* _tmp4_; - SpitPublishingPublishable* _tmp5_; - PublishingYouTubeUploadTransaction* _tmp6_; - PublishingRESTSupportTransaction* _tmp7_; -#line 494 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_YOU_TUBE_TYPE_UPLOADER, PublishingYouTubeUploader); -#line 494 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - g_return_val_if_fail (SPIT_PUBLISHING_IS_PUBLISHABLE (publishable), NULL); -#line 496 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp0_ = self->priv->youtube_service; -#line 496 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp1_ = publishing_rest_support_batch_uploader_get_session (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_BATCH_UPLOADER, PublishingRESTSupportBatchUploader)); -#line 496 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp2_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, PUBLISHING_REST_SUPPORT_TYPE_GOOGLE_SESSION, PublishingRESTSupportGoogleSession); -#line 496 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp3_ = self->priv->parameters; -#line 496 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp4_ = publishing_rest_support_batch_uploader_get_current_publishable (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_BATCH_UPLOADER, PublishingRESTSupportBatchUploader)); -#line 496 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp5_ = _tmp4_; -#line 496 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp6_ = publishing_you_tube_upload_transaction_new (_tmp0_, _tmp2_, _tmp3_, _tmp5_); -#line 496 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp7_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction); -#line 496 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _g_object_unref0 (_tmp5_); -#line 496 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _publishing_rest_support_session_unref0 (_tmp2_); -#line 496 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - result = _tmp7_; -#line 496 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - return result; -#line 4265 "YouTubePublishing.c" -} - - -static void -publishing_you_tube_uploader_class_init (PublishingYouTubeUploaderClass * klass) -{ -#line 482 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - publishing_you_tube_uploader_parent_class = g_type_class_peek_parent (klass); -#line 482 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - ((PublishingRESTSupportBatchUploaderClass *) klass)->finalize = publishing_you_tube_uploader_finalize; -#line 482 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - g_type_class_add_private (klass, sizeof (PublishingYouTubeUploaderPrivate)); -#line 482 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - ((PublishingRESTSupportBatchUploaderClass *) klass)->create_transaction = (PublishingRESTSupportTransaction* (*) (PublishingRESTSupportBatchUploader *, SpitPublishingPublishable*)) publishing_you_tube_uploader_real_create_transaction; -#line 4280 "YouTubePublishing.c" -} - - -static void -publishing_you_tube_uploader_instance_init (PublishingYouTubeUploader * self) -{ -#line 482 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - self->priv = PUBLISHING_YOU_TUBE_UPLOADER_GET_PRIVATE (self); -#line 4289 "YouTubePublishing.c" -} - - -static void -publishing_you_tube_uploader_finalize (PublishingRESTSupportBatchUploader * obj) -{ - PublishingYouTubeUploader * self; -#line 482 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, PUBLISHING_YOU_TUBE_TYPE_UPLOADER, PublishingYouTubeUploader); -#line 483 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _publishing_you_tube_publishing_parameters_unref0 (self->priv->parameters); -#line 484 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _g_object_unref0 (self->priv->youtube_service); -#line 482 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - PUBLISHING_REST_SUPPORT_BATCH_UPLOADER_CLASS (publishing_you_tube_uploader_parent_class)->finalize (obj); -#line 4305 "YouTubePublishing.c" -} - - -GType -publishing_you_tube_uploader_get_type (void) -{ - static volatile gsize publishing_you_tube_uploader_type_id__volatile = 0; - if (g_once_init_enter (&publishing_you_tube_uploader_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (PublishingYouTubeUploaderClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) publishing_you_tube_uploader_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PublishingYouTubeUploader), 0, (GInstanceInitFunc) publishing_you_tube_uploader_instance_init, NULL }; - GType publishing_you_tube_uploader_type_id; - publishing_you_tube_uploader_type_id = g_type_register_static (PUBLISHING_REST_SUPPORT_TYPE_BATCH_UPLOADER, "PublishingYouTubeUploader", &g_define_type_info, 0); - g_once_init_leave (&publishing_you_tube_uploader_type_id__volatile, publishing_you_tube_uploader_type_id); - } - return publishing_you_tube_uploader_type_id__volatile; -} - - -static void -_vala_array_destroy (gpointer array, - gint array_length, - GDestroyNotify destroy_func) -{ - if ((array != NULL) && (destroy_func != NULL)) { - int i; - for (i = 0; i < array_length; i = i + 1) { - if (((gpointer*) array)[i] != NULL) { - destroy_func (((gpointer*) array)[i]); - } - } - } -} - - -static void -_vala_array_free (gpointer array, - gint array_length, - GDestroyNotify destroy_func) -{ - _vala_array_destroy (array, array_length, destroy_func); - g_free (array); -} - - - diff --git a/plugins/shotwell-publishing/shotwell-publishing.c b/plugins/shotwell-publishing/shotwell-publishing.c deleted file mode 100644 index 0a2cf42..0000000 --- a/plugins/shotwell-publishing/shotwell-publishing.c +++ /dev/null @@ -1,743 +0,0 @@ -/* shotwell-publishing.c generated by valac 0.40.4, the Vala compiler - * generated from shotwell-publishing.vala, do not modify */ - -/* Copyright 2016 Software Freedom Conservancy Inc. - * - * This software is licensed under the GNU Lesser General Public License - * (version 2.1 or later). See the COPYING file in this distribution. - */ - - -#include -#include -#include -#include -#include "shotwell-authenticator.h" -#include -#include -#include -#include - - -#define TYPE_SHOTWELL_PUBLISHING_CORE_SERVICES (shotwell_publishing_core_services_get_type ()) -#define SHOTWELL_PUBLISHING_CORE_SERVICES(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SHOTWELL_PUBLISHING_CORE_SERVICES, ShotwellPublishingCoreServices)) -#define SHOTWELL_PUBLISHING_CORE_SERVICES_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SHOTWELL_PUBLISHING_CORE_SERVICES, ShotwellPublishingCoreServicesClass)) -#define IS_SHOTWELL_PUBLISHING_CORE_SERVICES(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SHOTWELL_PUBLISHING_CORE_SERVICES)) -#define IS_SHOTWELL_PUBLISHING_CORE_SERVICES_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SHOTWELL_PUBLISHING_CORE_SERVICES)) -#define SHOTWELL_PUBLISHING_CORE_SERVICES_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SHOTWELL_PUBLISHING_CORE_SERVICES, ShotwellPublishingCoreServicesClass)) - -typedef struct _ShotwellPublishingCoreServices ShotwellPublishingCoreServices; -typedef struct _ShotwellPublishingCoreServicesClass ShotwellPublishingCoreServicesClass; -typedef struct _ShotwellPublishingCoreServicesPrivate ShotwellPublishingCoreServicesPrivate; -enum { - SHOTWELL_PUBLISHING_CORE_SERVICES_0_PROPERTY, - SHOTWELL_PUBLISHING_CORE_SERVICES_NUM_PROPERTIES -}; -static GParamSpec* shotwell_publishing_core_services_properties[SHOTWELL_PUBLISHING_CORE_SERVICES_NUM_PROPERTIES]; -#define _g_free0(var) (var = (g_free (var), NULL)) - -#define TYPE_FACEBOOK_SERVICE (facebook_service_get_type ()) -#define FACEBOOK_SERVICE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_FACEBOOK_SERVICE, FacebookService)) -#define FACEBOOK_SERVICE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_FACEBOOK_SERVICE, FacebookServiceClass)) -#define IS_FACEBOOK_SERVICE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_FACEBOOK_SERVICE)) -#define IS_FACEBOOK_SERVICE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_FACEBOOK_SERVICE)) -#define FACEBOOK_SERVICE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_FACEBOOK_SERVICE, FacebookServiceClass)) - -typedef struct _FacebookService FacebookService; -typedef struct _FacebookServiceClass FacebookServiceClass; - -#define TYPE_PICASA_SERVICE (picasa_service_get_type ()) -#define PICASA_SERVICE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PICASA_SERVICE, PicasaService)) -#define PICASA_SERVICE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PICASA_SERVICE, PicasaServiceClass)) -#define IS_PICASA_SERVICE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PICASA_SERVICE)) -#define IS_PICASA_SERVICE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PICASA_SERVICE)) -#define PICASA_SERVICE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PICASA_SERVICE, PicasaServiceClass)) - -typedef struct _PicasaService PicasaService; -typedef struct _PicasaServiceClass PicasaServiceClass; - -#define TYPE_FLICKR_SERVICE (flickr_service_get_type ()) -#define FLICKR_SERVICE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_FLICKR_SERVICE, FlickrService)) -#define FLICKR_SERVICE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_FLICKR_SERVICE, FlickrServiceClass)) -#define IS_FLICKR_SERVICE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_FLICKR_SERVICE)) -#define IS_FLICKR_SERVICE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_FLICKR_SERVICE)) -#define FLICKR_SERVICE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_FLICKR_SERVICE, FlickrServiceClass)) - -typedef struct _FlickrService FlickrService; -typedef struct _FlickrServiceClass FlickrServiceClass; - -#define TYPE_YOU_TUBE_SERVICE (you_tube_service_get_type ()) -#define YOU_TUBE_SERVICE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_YOU_TUBE_SERVICE, YouTubeService)) -#define YOU_TUBE_SERVICE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_YOU_TUBE_SERVICE, YouTubeServiceClass)) -#define IS_YOU_TUBE_SERVICE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_YOU_TUBE_SERVICE)) -#define IS_YOU_TUBE_SERVICE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_YOU_TUBE_SERVICE)) -#define YOU_TUBE_SERVICE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_YOU_TUBE_SERVICE, YouTubeServiceClass)) - -typedef struct _YouTubeService YouTubeService; -typedef struct _YouTubeServiceClass YouTubeServiceClass; - -#define TYPE_PIWIGO_SERVICE (piwigo_service_get_type ()) -#define PIWIGO_SERVICE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PIWIGO_SERVICE, PiwigoService)) -#define PIWIGO_SERVICE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PIWIGO_SERVICE, PiwigoServiceClass)) -#define IS_PIWIGO_SERVICE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PIWIGO_SERVICE)) -#define IS_PIWIGO_SERVICE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PIWIGO_SERVICE)) -#define PIWIGO_SERVICE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PIWIGO_SERVICE, PiwigoServiceClass)) - -typedef struct _PiwigoService PiwigoService; -typedef struct _PiwigoServiceClass PiwigoServiceClass; - -#define TYPE_TUMBLR_SERVICE (tumblr_service_get_type ()) -#define TUMBLR_SERVICE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_TUMBLR_SERVICE, TumblrService)) -#define TUMBLR_SERVICE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_TUMBLR_SERVICE, TumblrServiceClass)) -#define IS_TUMBLR_SERVICE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_TUMBLR_SERVICE)) -#define IS_TUMBLR_SERVICE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_TUMBLR_SERVICE)) -#define TUMBLR_SERVICE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_TUMBLR_SERVICE, TumblrServiceClass)) - -typedef struct _TumblrService TumblrService; -typedef struct _TumblrServiceClass TumblrServiceClass; -#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL))) - -struct _ShotwellPublishingCoreServices { - GObject parent_instance; - ShotwellPublishingCoreServicesPrivate * priv; -}; - -struct _ShotwellPublishingCoreServicesClass { - GObjectClass parent_class; -}; - -struct _ShotwellPublishingCoreServicesPrivate { - SpitPluggable** pluggables; - gint pluggables_length1; - gint _pluggables_size_; -}; - - -static gpointer shotwell_publishing_core_services_parent_class = NULL; -static SpitModuleIface * shotwell_publishing_core_services_spit_module_parent_iface = NULL; - -GType shotwell_publishing_core_services_get_type (void) G_GNUC_CONST; -#define SHOTWELL_PUBLISHING_CORE_SERVICES_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_SHOTWELL_PUBLISHING_CORE_SERVICES, ShotwellPublishingCoreServicesPrivate)) -ShotwellPublishingCoreServices* shotwell_publishing_core_services_new (GFile* module_file); -ShotwellPublishingCoreServices* shotwell_publishing_core_services_construct (GType object_type, - GFile* module_file); -FacebookService* facebook_service_new (GFile* resource_directory); -FacebookService* facebook_service_construct (GType object_type, - GFile* resource_directory); -GType facebook_service_get_type (void) G_GNUC_CONST; -static void _vala_array_add1 (SpitPluggable** * array, - int* length, - int* size, - SpitPluggable* value); -PicasaService* picasa_service_new (GFile* resource_directory); -PicasaService* picasa_service_construct (GType object_type, - GFile* resource_directory); -GType picasa_service_get_type (void) G_GNUC_CONST; -static void _vala_array_add2 (SpitPluggable** * array, - int* length, - int* size, - SpitPluggable* value); -FlickrService* flickr_service_new (GFile* resource_directory); -FlickrService* flickr_service_construct (GType object_type, - GFile* resource_directory); -GType flickr_service_get_type (void) G_GNUC_CONST; -static void _vala_array_add3 (SpitPluggable** * array, - int* length, - int* size, - SpitPluggable* value); -YouTubeService* you_tube_service_new (GFile* resource_directory); -YouTubeService* you_tube_service_construct (GType object_type, - GFile* resource_directory); -GType you_tube_service_get_type (void) G_GNUC_CONST; -static void _vala_array_add4 (SpitPluggable** * array, - int* length, - int* size, - SpitPluggable* value); -PiwigoService* piwigo_service_new (GFile* resource_directory); -PiwigoService* piwigo_service_construct (GType object_type, - GFile* resource_directory); -GType piwigo_service_get_type (void) G_GNUC_CONST; -static void _vala_array_add5 (SpitPluggable** * array, - int* length, - int* size, - SpitPluggable* value); -TumblrService* tumblr_service_new (GFile* resource_directory); -TumblrService* tumblr_service_construct (GType object_type, - GFile* resource_directory); -GType tumblr_service_get_type (void) G_GNUC_CONST; -static void _vala_array_add6 (SpitPluggable** * array, - int* length, - int* size, - SpitPluggable* value); -static const gchar* shotwell_publishing_core_services_real_get_module_name (SpitModule* base); -static const gchar* shotwell_publishing_core_services_real_get_version (SpitModule* base); -static const gchar* shotwell_publishing_core_services_real_get_id (SpitModule* base); -static SpitPluggable** shotwell_publishing_core_services_real_get_pluggables (SpitModule* base, - int* result_length1); -static void shotwell_publishing_core_services_finalize (GObject * obj); -SpitModule* spit_entry_point (SpitEntryPointParams* params); -static void _vala_array_destroy (gpointer array, - gint array_length, - GDestroyNotify destroy_func); -static void _vala_array_free (gpointer array, - gint array_length, - GDestroyNotify destroy_func); - - -static void -_vala_array_add1 (SpitPluggable** * array, - int* length, - int* size, - SpitPluggable* value) -{ -#line 27 "/home/jens/Source/shotwell/plugins/shotwell-publishing/shotwell-publishing.vala" - if ((*length) == (*size)) { -#line 27 "/home/jens/Source/shotwell/plugins/shotwell-publishing/shotwell-publishing.vala" - *size = (*size) ? (2 * (*size)) : 4; -#line 27 "/home/jens/Source/shotwell/plugins/shotwell-publishing/shotwell-publishing.vala" - *array = g_renew (SpitPluggable*, *array, (*size) + 1); -#line 200 "shotwell-publishing.c" - } -#line 27 "/home/jens/Source/shotwell/plugins/shotwell-publishing/shotwell-publishing.vala" - (*array)[(*length)++] = value; -#line 27 "/home/jens/Source/shotwell/plugins/shotwell-publishing/shotwell-publishing.vala" - (*array)[*length] = NULL; -#line 206 "shotwell-publishing.c" -} - - -static void -_vala_array_add2 (SpitPluggable** * array, - int* length, - int* size, - SpitPluggable* value) -{ -#line 33 "/home/jens/Source/shotwell/plugins/shotwell-publishing/shotwell-publishing.vala" - if ((*length) == (*size)) { -#line 33 "/home/jens/Source/shotwell/plugins/shotwell-publishing/shotwell-publishing.vala" - *size = (*size) ? (2 * (*size)) : 4; -#line 33 "/home/jens/Source/shotwell/plugins/shotwell-publishing/shotwell-publishing.vala" - *array = g_renew (SpitPluggable*, *array, (*size) + 1); -#line 222 "shotwell-publishing.c" - } -#line 33 "/home/jens/Source/shotwell/plugins/shotwell-publishing/shotwell-publishing.vala" - (*array)[(*length)++] = value; -#line 33 "/home/jens/Source/shotwell/plugins/shotwell-publishing/shotwell-publishing.vala" - (*array)[*length] = NULL; -#line 228 "shotwell-publishing.c" -} - - -static void -_vala_array_add3 (SpitPluggable** * array, - int* length, - int* size, - SpitPluggable* value) -{ -#line 39 "/home/jens/Source/shotwell/plugins/shotwell-publishing/shotwell-publishing.vala" - if ((*length) == (*size)) { -#line 39 "/home/jens/Source/shotwell/plugins/shotwell-publishing/shotwell-publishing.vala" - *size = (*size) ? (2 * (*size)) : 4; -#line 39 "/home/jens/Source/shotwell/plugins/shotwell-publishing/shotwell-publishing.vala" - *array = g_renew (SpitPluggable*, *array, (*size) + 1); -#line 244 "shotwell-publishing.c" - } -#line 39 "/home/jens/Source/shotwell/plugins/shotwell-publishing/shotwell-publishing.vala" - (*array)[(*length)++] = value; -#line 39 "/home/jens/Source/shotwell/plugins/shotwell-publishing/shotwell-publishing.vala" - (*array)[*length] = NULL; -#line 250 "shotwell-publishing.c" -} - - -static void -_vala_array_add4 (SpitPluggable** * array, - int* length, - int* size, - SpitPluggable* value) -{ -#line 45 "/home/jens/Source/shotwell/plugins/shotwell-publishing/shotwell-publishing.vala" - if ((*length) == (*size)) { -#line 45 "/home/jens/Source/shotwell/plugins/shotwell-publishing/shotwell-publishing.vala" - *size = (*size) ? (2 * (*size)) : 4; -#line 45 "/home/jens/Source/shotwell/plugins/shotwell-publishing/shotwell-publishing.vala" - *array = g_renew (SpitPluggable*, *array, (*size) + 1); -#line 266 "shotwell-publishing.c" - } -#line 45 "/home/jens/Source/shotwell/plugins/shotwell-publishing/shotwell-publishing.vala" - (*array)[(*length)++] = value; -#line 45 "/home/jens/Source/shotwell/plugins/shotwell-publishing/shotwell-publishing.vala" - (*array)[*length] = NULL; -#line 272 "shotwell-publishing.c" -} - - -static void -_vala_array_add5 (SpitPluggable** * array, - int* length, - int* size, - SpitPluggable* value) -{ -#line 50 "/home/jens/Source/shotwell/plugins/shotwell-publishing/shotwell-publishing.vala" - if ((*length) == (*size)) { -#line 50 "/home/jens/Source/shotwell/plugins/shotwell-publishing/shotwell-publishing.vala" - *size = (*size) ? (2 * (*size)) : 4; -#line 50 "/home/jens/Source/shotwell/plugins/shotwell-publishing/shotwell-publishing.vala" - *array = g_renew (SpitPluggable*, *array, (*size) + 1); -#line 288 "shotwell-publishing.c" - } -#line 50 "/home/jens/Source/shotwell/plugins/shotwell-publishing/shotwell-publishing.vala" - (*array)[(*length)++] = value; -#line 50 "/home/jens/Source/shotwell/plugins/shotwell-publishing/shotwell-publishing.vala" - (*array)[*length] = NULL; -#line 294 "shotwell-publishing.c" -} - - -static void -_vala_array_add6 (SpitPluggable** * array, - int* length, - int* size, - SpitPluggable* value) -{ -#line 54 "/home/jens/Source/shotwell/plugins/shotwell-publishing/shotwell-publishing.vala" - if ((*length) == (*size)) { -#line 54 "/home/jens/Source/shotwell/plugins/shotwell-publishing/shotwell-publishing.vala" - *size = (*size) ? (2 * (*size)) : 4; -#line 54 "/home/jens/Source/shotwell/plugins/shotwell-publishing/shotwell-publishing.vala" - *array = g_renew (SpitPluggable*, *array, (*size) + 1); -#line 310 "shotwell-publishing.c" - } -#line 54 "/home/jens/Source/shotwell/plugins/shotwell-publishing/shotwell-publishing.vala" - (*array)[(*length)++] = value; -#line 54 "/home/jens/Source/shotwell/plugins/shotwell-publishing/shotwell-publishing.vala" - (*array)[*length] = NULL; -#line 316 "shotwell-publishing.c" -} - - -ShotwellPublishingCoreServices* -shotwell_publishing_core_services_construct (GType object_type, - GFile* module_file) -{ - ShotwellPublishingCoreServices * self = NULL; - GFile* resource_directory = NULL; - GFile* _tmp0_; - PublishingAuthenticatorFactory* factory = NULL; - PublishingAuthenticatorFactory* _tmp1_; - GeeList* authenicators = NULL; - PublishingAuthenticatorFactory* _tmp2_; - GeeList* _tmp3_; - GFile* _tmp4_; - gchar* _tmp5_; - gchar* _tmp6_; - GeeList* _tmp7_; - gint _tmp8_; - gint _tmp9_; - GeeList* _tmp10_; - GeeList* _tmp14_; - GeeList* _tmp18_; - GeeList* _tmp22_; - SpitPluggable** _tmp26_; - gint _tmp26__length1; - GFile* _tmp27_; - PiwigoService* _tmp28_; - SpitPluggable** _tmp29_; - gint _tmp29__length1; - GFile* _tmp30_; - GFile* _tmp31_; - TumblrService* _tmp32_; -#line 15 "/home/jens/Source/shotwell/plugins/shotwell-publishing/shotwell-publishing.vala" - g_return_val_if_fail (G_IS_FILE (module_file), NULL); -#line 15 "/home/jens/Source/shotwell/plugins/shotwell-publishing/shotwell-publishing.vala" - self = (ShotwellPublishingCoreServices*) g_object_new (object_type, NULL); -#line 16 "/home/jens/Source/shotwell/plugins/shotwell-publishing/shotwell-publishing.vala" - _tmp0_ = g_file_get_parent (module_file); -#line 16 "/home/jens/Source/shotwell/plugins/shotwell-publishing/shotwell-publishing.vala" - resource_directory = _tmp0_; -#line 17 "/home/jens/Source/shotwell/plugins/shotwell-publishing/shotwell-publishing.vala" - _tmp1_ = publishing_authenticator_factory_get_instance (); -#line 17 "/home/jens/Source/shotwell/plugins/shotwell-publishing/shotwell-publishing.vala" - factory = _tmp1_; -#line 18 "/home/jens/Source/shotwell/plugins/shotwell-publishing/shotwell-publishing.vala" - _tmp2_ = factory; -#line 18 "/home/jens/Source/shotwell/plugins/shotwell-publishing/shotwell-publishing.vala" - _tmp3_ = spit_publishing_authenticator_factory_get_available_authenticators (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, SPIT_PUBLISHING_TYPE_AUTHENTICATOR_FACTORY, SpitPublishingAuthenticatorFactory)); -#line 18 "/home/jens/Source/shotwell/plugins/shotwell-publishing/shotwell-publishing.vala" - authenicators = _tmp3_; -#line 22 "/home/jens/Source/shotwell/plugins/shotwell-publishing/shotwell-publishing.vala" - _tmp4_ = resource_directory; -#line 22 "/home/jens/Source/shotwell/plugins/shotwell-publishing/shotwell-publishing.vala" - _tmp5_ = g_file_get_path (_tmp4_); -#line 22 "/home/jens/Source/shotwell/plugins/shotwell-publishing/shotwell-publishing.vala" - _tmp6_ = _tmp5_; -#line 22 "/home/jens/Source/shotwell/plugins/shotwell-publishing/shotwell-publishing.vala" - g_debug ("shotwell-publishing.vala:22: Looking for resources in %s", _tmp6_); -#line 22 "/home/jens/Source/shotwell/plugins/shotwell-publishing/shotwell-publishing.vala" - _g_free0 (_tmp6_); -#line 23 "/home/jens/Source/shotwell/plugins/shotwell-publishing/shotwell-publishing.vala" - _tmp7_ = authenicators; -#line 23 "/home/jens/Source/shotwell/plugins/shotwell-publishing/shotwell-publishing.vala" - _tmp8_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, GEE_TYPE_COLLECTION, GeeCollection)); -#line 23 "/home/jens/Source/shotwell/plugins/shotwell-publishing/shotwell-publishing.vala" - _tmp9_ = _tmp8_; -#line 23 "/home/jens/Source/shotwell/plugins/shotwell-publishing/shotwell-publishing.vala" - g_debug ("shotwell-publishing.vala:23: Found %d authenicators", _tmp9_); -#line 26 "/home/jens/Source/shotwell/plugins/shotwell-publishing/shotwell-publishing.vala" - _tmp10_ = authenicators; -#line 26 "/home/jens/Source/shotwell/plugins/shotwell-publishing/shotwell-publishing.vala" - if (gee_collection_contains (G_TYPE_CHECK_INSTANCE_CAST (_tmp10_, GEE_TYPE_COLLECTION, GeeCollection), "facebook")) { -#line 391 "shotwell-publishing.c" - SpitPluggable** _tmp11_; - gint _tmp11__length1; - GFile* _tmp12_; - FacebookService* _tmp13_; -#line 27 "/home/jens/Source/shotwell/plugins/shotwell-publishing/shotwell-publishing.vala" - _tmp11_ = self->priv->pluggables; -#line 27 "/home/jens/Source/shotwell/plugins/shotwell-publishing/shotwell-publishing.vala" - _tmp11__length1 = self->priv->pluggables_length1; -#line 27 "/home/jens/Source/shotwell/plugins/shotwell-publishing/shotwell-publishing.vala" - _tmp12_ = resource_directory; -#line 27 "/home/jens/Source/shotwell/plugins/shotwell-publishing/shotwell-publishing.vala" - _tmp13_ = facebook_service_new (_tmp12_); -#line 27 "/home/jens/Source/shotwell/plugins/shotwell-publishing/shotwell-publishing.vala" - _vala_array_add1 (&self->priv->pluggables, &self->priv->pluggables_length1, &self->priv->_pluggables_size_, G_TYPE_CHECK_INSTANCE_CAST (_tmp13_, SPIT_TYPE_PLUGGABLE, SpitPluggable)); -#line 406 "shotwell-publishing.c" - } -#line 32 "/home/jens/Source/shotwell/plugins/shotwell-publishing/shotwell-publishing.vala" - _tmp14_ = authenicators; -#line 32 "/home/jens/Source/shotwell/plugins/shotwell-publishing/shotwell-publishing.vala" - if (gee_collection_contains (G_TYPE_CHECK_INSTANCE_CAST (_tmp14_, GEE_TYPE_COLLECTION, GeeCollection), "picasa")) { -#line 412 "shotwell-publishing.c" - SpitPluggable** _tmp15_; - gint _tmp15__length1; - GFile* _tmp16_; - PicasaService* _tmp17_; -#line 33 "/home/jens/Source/shotwell/plugins/shotwell-publishing/shotwell-publishing.vala" - _tmp15_ = self->priv->pluggables; -#line 33 "/home/jens/Source/shotwell/plugins/shotwell-publishing/shotwell-publishing.vala" - _tmp15__length1 = self->priv->pluggables_length1; -#line 33 "/home/jens/Source/shotwell/plugins/shotwell-publishing/shotwell-publishing.vala" - _tmp16_ = resource_directory; -#line 33 "/home/jens/Source/shotwell/plugins/shotwell-publishing/shotwell-publishing.vala" - _tmp17_ = picasa_service_new (_tmp16_); -#line 33 "/home/jens/Source/shotwell/plugins/shotwell-publishing/shotwell-publishing.vala" - _vala_array_add2 (&self->priv->pluggables, &self->priv->pluggables_length1, &self->priv->_pluggables_size_, G_TYPE_CHECK_INSTANCE_CAST (_tmp17_, SPIT_TYPE_PLUGGABLE, SpitPluggable)); -#line 427 "shotwell-publishing.c" - } -#line 38 "/home/jens/Source/shotwell/plugins/shotwell-publishing/shotwell-publishing.vala" - _tmp18_ = authenicators; -#line 38 "/home/jens/Source/shotwell/plugins/shotwell-publishing/shotwell-publishing.vala" - if (gee_collection_contains (G_TYPE_CHECK_INSTANCE_CAST (_tmp18_, GEE_TYPE_COLLECTION, GeeCollection), "flickr")) { -#line 433 "shotwell-publishing.c" - SpitPluggable** _tmp19_; - gint _tmp19__length1; - GFile* _tmp20_; - FlickrService* _tmp21_; -#line 39 "/home/jens/Source/shotwell/plugins/shotwell-publishing/shotwell-publishing.vala" - _tmp19_ = self->priv->pluggables; -#line 39 "/home/jens/Source/shotwell/plugins/shotwell-publishing/shotwell-publishing.vala" - _tmp19__length1 = self->priv->pluggables_length1; -#line 39 "/home/jens/Source/shotwell/plugins/shotwell-publishing/shotwell-publishing.vala" - _tmp20_ = resource_directory; -#line 39 "/home/jens/Source/shotwell/plugins/shotwell-publishing/shotwell-publishing.vala" - _tmp21_ = flickr_service_new (_tmp20_); -#line 39 "/home/jens/Source/shotwell/plugins/shotwell-publishing/shotwell-publishing.vala" - _vala_array_add3 (&self->priv->pluggables, &self->priv->pluggables_length1, &self->priv->_pluggables_size_, G_TYPE_CHECK_INSTANCE_CAST (_tmp21_, SPIT_TYPE_PLUGGABLE, SpitPluggable)); -#line 448 "shotwell-publishing.c" - } -#line 44 "/home/jens/Source/shotwell/plugins/shotwell-publishing/shotwell-publishing.vala" - _tmp22_ = authenicators; -#line 44 "/home/jens/Source/shotwell/plugins/shotwell-publishing/shotwell-publishing.vala" - if (gee_collection_contains (G_TYPE_CHECK_INSTANCE_CAST (_tmp22_, GEE_TYPE_COLLECTION, GeeCollection), "youtube")) { -#line 454 "shotwell-publishing.c" - SpitPluggable** _tmp23_; - gint _tmp23__length1; - GFile* _tmp24_; - YouTubeService* _tmp25_; -#line 45 "/home/jens/Source/shotwell/plugins/shotwell-publishing/shotwell-publishing.vala" - _tmp23_ = self->priv->pluggables; -#line 45 "/home/jens/Source/shotwell/plugins/shotwell-publishing/shotwell-publishing.vala" - _tmp23__length1 = self->priv->pluggables_length1; -#line 45 "/home/jens/Source/shotwell/plugins/shotwell-publishing/shotwell-publishing.vala" - _tmp24_ = resource_directory; -#line 45 "/home/jens/Source/shotwell/plugins/shotwell-publishing/shotwell-publishing.vala" - _tmp25_ = you_tube_service_new (_tmp24_); -#line 45 "/home/jens/Source/shotwell/plugins/shotwell-publishing/shotwell-publishing.vala" - _vala_array_add4 (&self->priv->pluggables, &self->priv->pluggables_length1, &self->priv->_pluggables_size_, G_TYPE_CHECK_INSTANCE_CAST (_tmp25_, SPIT_TYPE_PLUGGABLE, SpitPluggable)); -#line 469 "shotwell-publishing.c" - } -#line 50 "/home/jens/Source/shotwell/plugins/shotwell-publishing/shotwell-publishing.vala" - _tmp26_ = self->priv->pluggables; -#line 50 "/home/jens/Source/shotwell/plugins/shotwell-publishing/shotwell-publishing.vala" - _tmp26__length1 = self->priv->pluggables_length1; -#line 50 "/home/jens/Source/shotwell/plugins/shotwell-publishing/shotwell-publishing.vala" - _tmp27_ = resource_directory; -#line 50 "/home/jens/Source/shotwell/plugins/shotwell-publishing/shotwell-publishing.vala" - _tmp28_ = piwigo_service_new (_tmp27_); -#line 50 "/home/jens/Source/shotwell/plugins/shotwell-publishing/shotwell-publishing.vala" - _vala_array_add5 (&self->priv->pluggables, &self->priv->pluggables_length1, &self->priv->_pluggables_size_, G_TYPE_CHECK_INSTANCE_CAST (_tmp28_, SPIT_TYPE_PLUGGABLE, SpitPluggable)); -#line 54 "/home/jens/Source/shotwell/plugins/shotwell-publishing/shotwell-publishing.vala" - _tmp29_ = self->priv->pluggables; -#line 54 "/home/jens/Source/shotwell/plugins/shotwell-publishing/shotwell-publishing.vala" - _tmp29__length1 = self->priv->pluggables_length1; -#line 54 "/home/jens/Source/shotwell/plugins/shotwell-publishing/shotwell-publishing.vala" - _tmp30_ = g_file_get_parent (module_file); -#line 54 "/home/jens/Source/shotwell/plugins/shotwell-publishing/shotwell-publishing.vala" - _tmp31_ = _tmp30_; -#line 54 "/home/jens/Source/shotwell/plugins/shotwell-publishing/shotwell-publishing.vala" - _tmp32_ = tumblr_service_new (_tmp31_); -#line 54 "/home/jens/Source/shotwell/plugins/shotwell-publishing/shotwell-publishing.vala" - _vala_array_add6 (&self->priv->pluggables, &self->priv->pluggables_length1, &self->priv->_pluggables_size_, G_TYPE_CHECK_INSTANCE_CAST (_tmp32_, SPIT_TYPE_PLUGGABLE, SpitPluggable)); -#line 54 "/home/jens/Source/shotwell/plugins/shotwell-publishing/shotwell-publishing.vala" - _g_object_unref0 (_tmp31_); -#line 15 "/home/jens/Source/shotwell/plugins/shotwell-publishing/shotwell-publishing.vala" - _g_object_unref0 (authenicators); -#line 15 "/home/jens/Source/shotwell/plugins/shotwell-publishing/shotwell-publishing.vala" - _g_object_unref0 (factory); -#line 15 "/home/jens/Source/shotwell/plugins/shotwell-publishing/shotwell-publishing.vala" - _g_object_unref0 (resource_directory); -#line 15 "/home/jens/Source/shotwell/plugins/shotwell-publishing/shotwell-publishing.vala" - return self; -#line 503 "shotwell-publishing.c" -} - - -ShotwellPublishingCoreServices* -shotwell_publishing_core_services_new (GFile* module_file) -{ -#line 15 "/home/jens/Source/shotwell/plugins/shotwell-publishing/shotwell-publishing.vala" - return shotwell_publishing_core_services_construct (TYPE_SHOTWELL_PUBLISHING_CORE_SERVICES, module_file); -#line 512 "shotwell-publishing.c" -} - - -static const gchar* -shotwell_publishing_core_services_real_get_module_name (SpitModule* base) -{ - ShotwellPublishingCoreServices * self; - const gchar* result = NULL; -#line 58 "/home/jens/Source/shotwell/plugins/shotwell-publishing/shotwell-publishing.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_SHOTWELL_PUBLISHING_CORE_SERVICES, ShotwellPublishingCoreServices); -#line 59 "/home/jens/Source/shotwell/plugins/shotwell-publishing/shotwell-publishing.vala" - result = _ ("Core Publishing Services"); -#line 59 "/home/jens/Source/shotwell/plugins/shotwell-publishing/shotwell-publishing.vala" - return result; -#line 527 "shotwell-publishing.c" -} - - -static const gchar* -shotwell_publishing_core_services_real_get_version (SpitModule* base) -{ - ShotwellPublishingCoreServices * self; - const gchar* result = NULL; -#line 62 "/home/jens/Source/shotwell/plugins/shotwell-publishing/shotwell-publishing.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_SHOTWELL_PUBLISHING_CORE_SERVICES, ShotwellPublishingCoreServices); -#line 63 "/home/jens/Source/shotwell/plugins/shotwell-publishing/shotwell-publishing.vala" - result = _VERSION; -#line 63 "/home/jens/Source/shotwell/plugins/shotwell-publishing/shotwell-publishing.vala" - return result; -#line 542 "shotwell-publishing.c" -} - - -static const gchar* -shotwell_publishing_core_services_real_get_id (SpitModule* base) -{ - ShotwellPublishingCoreServices * self; - const gchar* result = NULL; -#line 66 "/home/jens/Source/shotwell/plugins/shotwell-publishing/shotwell-publishing.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_SHOTWELL_PUBLISHING_CORE_SERVICES, ShotwellPublishingCoreServices); -#line 67 "/home/jens/Source/shotwell/plugins/shotwell-publishing/shotwell-publishing.vala" - result = "org.yorba.shotwell.publishing.core_services"; -#line 67 "/home/jens/Source/shotwell/plugins/shotwell-publishing/shotwell-publishing.vala" - return result; -#line 557 "shotwell-publishing.c" -} - - -static SpitPluggable** -shotwell_publishing_core_services_real_get_pluggables (SpitModule* base, - int* result_length1) -{ - ShotwellPublishingCoreServices * self; - SpitPluggable** result = NULL; - SpitPluggable** _tmp0_; - gint _tmp0__length1; - SpitPluggable** _tmp1_; - gint _tmp1__length1; -#line 70 "/home/jens/Source/shotwell/plugins/shotwell-publishing/shotwell-publishing.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_SHOTWELL_PUBLISHING_CORE_SERVICES, ShotwellPublishingCoreServices); -#line 71 "/home/jens/Source/shotwell/plugins/shotwell-publishing/shotwell-publishing.vala" - _tmp0_ = self->priv->pluggables; -#line 71 "/home/jens/Source/shotwell/plugins/shotwell-publishing/shotwell-publishing.vala" - _tmp0__length1 = self->priv->pluggables_length1; -#line 71 "/home/jens/Source/shotwell/plugins/shotwell-publishing/shotwell-publishing.vala" - _tmp1_ = _tmp0_; -#line 71 "/home/jens/Source/shotwell/plugins/shotwell-publishing/shotwell-publishing.vala" - _tmp1__length1 = _tmp0__length1; -#line 71 "/home/jens/Source/shotwell/plugins/shotwell-publishing/shotwell-publishing.vala" - if (result_length1) { -#line 71 "/home/jens/Source/shotwell/plugins/shotwell-publishing/shotwell-publishing.vala" - *result_length1 = _tmp1__length1; -#line 585 "shotwell-publishing.c" - } -#line 71 "/home/jens/Source/shotwell/plugins/shotwell-publishing/shotwell-publishing.vala" - result = _tmp1_; -#line 71 "/home/jens/Source/shotwell/plugins/shotwell-publishing/shotwell-publishing.vala" - return result; -#line 591 "shotwell-publishing.c" -} - - -static void -shotwell_publishing_core_services_class_init (ShotwellPublishingCoreServicesClass * klass) -{ -#line 10 "/home/jens/Source/shotwell/plugins/shotwell-publishing/shotwell-publishing.vala" - shotwell_publishing_core_services_parent_class = g_type_class_peek_parent (klass); -#line 10 "/home/jens/Source/shotwell/plugins/shotwell-publishing/shotwell-publishing.vala" - g_type_class_add_private (klass, sizeof (ShotwellPublishingCoreServicesPrivate)); -#line 10 "/home/jens/Source/shotwell/plugins/shotwell-publishing/shotwell-publishing.vala" - G_OBJECT_CLASS (klass)->finalize = shotwell_publishing_core_services_finalize; -#line 604 "shotwell-publishing.c" -} - - -static void -shotwell_publishing_core_services_spit_module_interface_init (SpitModuleIface * iface) -{ -#line 10 "/home/jens/Source/shotwell/plugins/shotwell-publishing/shotwell-publishing.vala" - shotwell_publishing_core_services_spit_module_parent_iface = g_type_interface_peek_parent (iface); -#line 10 "/home/jens/Source/shotwell/plugins/shotwell-publishing/shotwell-publishing.vala" - iface->get_module_name = (const gchar* (*) (SpitModule *)) shotwell_publishing_core_services_real_get_module_name; -#line 10 "/home/jens/Source/shotwell/plugins/shotwell-publishing/shotwell-publishing.vala" - iface->get_version = (const gchar* (*) (SpitModule *)) shotwell_publishing_core_services_real_get_version; -#line 10 "/home/jens/Source/shotwell/plugins/shotwell-publishing/shotwell-publishing.vala" - iface->get_id = (const gchar* (*) (SpitModule *)) shotwell_publishing_core_services_real_get_id; -#line 10 "/home/jens/Source/shotwell/plugins/shotwell-publishing/shotwell-publishing.vala" - iface->get_pluggables = (SpitPluggable** (*) (SpitModule *, int*)) shotwell_publishing_core_services_real_get_pluggables; -#line 621 "shotwell-publishing.c" -} - - -static void -shotwell_publishing_core_services_instance_init (ShotwellPublishingCoreServices * self) -{ - SpitPluggable** _tmp0_; -#line 10 "/home/jens/Source/shotwell/plugins/shotwell-publishing/shotwell-publishing.vala" - self->priv = SHOTWELL_PUBLISHING_CORE_SERVICES_GET_PRIVATE (self); -#line 11 "/home/jens/Source/shotwell/plugins/shotwell-publishing/shotwell-publishing.vala" - _tmp0_ = g_new0 (SpitPluggable*, 0 + 1); -#line 11 "/home/jens/Source/shotwell/plugins/shotwell-publishing/shotwell-publishing.vala" - self->priv->pluggables = _tmp0_; -#line 11 "/home/jens/Source/shotwell/plugins/shotwell-publishing/shotwell-publishing.vala" - self->priv->pluggables_length1 = 0; -#line 11 "/home/jens/Source/shotwell/plugins/shotwell-publishing/shotwell-publishing.vala" - self->priv->_pluggables_size_ = self->priv->pluggables_length1; -#line 639 "shotwell-publishing.c" -} - - -static void -shotwell_publishing_core_services_finalize (GObject * obj) -{ - ShotwellPublishingCoreServices * self; -#line 10 "/home/jens/Source/shotwell/plugins/shotwell-publishing/shotwell-publishing.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_SHOTWELL_PUBLISHING_CORE_SERVICES, ShotwellPublishingCoreServices); -#line 11 "/home/jens/Source/shotwell/plugins/shotwell-publishing/shotwell-publishing.vala" - self->priv->pluggables = (_vala_array_free (self->priv->pluggables, self->priv->pluggables_length1, (GDestroyNotify) g_object_unref), NULL); -#line 10 "/home/jens/Source/shotwell/plugins/shotwell-publishing/shotwell-publishing.vala" - G_OBJECT_CLASS (shotwell_publishing_core_services_parent_class)->finalize (obj); -#line 653 "shotwell-publishing.c" -} - - -GType -shotwell_publishing_core_services_get_type (void) -{ - static volatile gsize shotwell_publishing_core_services_type_id__volatile = 0; - if (g_once_init_enter (&shotwell_publishing_core_services_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (ShotwellPublishingCoreServicesClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) shotwell_publishing_core_services_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (ShotwellPublishingCoreServices), 0, (GInstanceInitFunc) shotwell_publishing_core_services_instance_init, NULL }; - static const GInterfaceInfo spit_module_info = { (GInterfaceInitFunc) shotwell_publishing_core_services_spit_module_interface_init, (GInterfaceFinalizeFunc) NULL, NULL}; - GType shotwell_publishing_core_services_type_id; - shotwell_publishing_core_services_type_id = g_type_register_static (G_TYPE_OBJECT, "ShotwellPublishingCoreServices", &g_define_type_info, 0); - g_type_add_interface_static (shotwell_publishing_core_services_type_id, SPIT_TYPE_MODULE, &spit_module_info); - g_once_init_leave (&shotwell_publishing_core_services_type_id__volatile, shotwell_publishing_core_services_type_id); - } - return shotwell_publishing_core_services_type_id__volatile; -} - - -SpitModule* -spit_entry_point (SpitEntryPointParams* params) -{ - SpitModule* result = NULL; - gint _tmp0_; - gint _tmp1_; - ShotwellPublishingCoreServices* _tmp2_ = NULL; - gint _tmp3_; -#line 77 "/home/jens/Source/shotwell/plugins/shotwell-publishing/shotwell-publishing.vala" - _tmp0_ = (*params).host_min_spit_interface; -#line 77 "/home/jens/Source/shotwell/plugins/shotwell-publishing/shotwell-publishing.vala" - _tmp1_ = (*params).host_max_spit_interface; -#line 77 "/home/jens/Source/shotwell/plugins/shotwell-publishing/shotwell-publishing.vala" - (*params).module_spit_interface = spit_negotiate_interfaces (_tmp0_, _tmp1_, SPIT_CURRENT_INTERFACE); -#line 80 "/home/jens/Source/shotwell/plugins/shotwell-publishing/shotwell-publishing.vala" - _tmp3_ = (*params).module_spit_interface; -#line 80 "/home/jens/Source/shotwell/plugins/shotwell-publishing/shotwell-publishing.vala" - if (_tmp3_ != SPIT_UNSUPPORTED_INTERFACE) { -#line 691 "shotwell-publishing.c" - GFile* _tmp4_; - ShotwellPublishingCoreServices* _tmp5_; -#line 81 "/home/jens/Source/shotwell/plugins/shotwell-publishing/shotwell-publishing.vala" - _tmp4_ = (*params).module_file; -#line 81 "/home/jens/Source/shotwell/plugins/shotwell-publishing/shotwell-publishing.vala" - _tmp5_ = shotwell_publishing_core_services_new (_tmp4_); -#line 81 "/home/jens/Source/shotwell/plugins/shotwell-publishing/shotwell-publishing.vala" - _g_object_unref0 (_tmp2_); -#line 81 "/home/jens/Source/shotwell/plugins/shotwell-publishing/shotwell-publishing.vala" - _tmp2_ = _tmp5_; -#line 702 "shotwell-publishing.c" - } else { -#line 81 "/home/jens/Source/shotwell/plugins/shotwell-publishing/shotwell-publishing.vala" - _g_object_unref0 (_tmp2_); -#line 81 "/home/jens/Source/shotwell/plugins/shotwell-publishing/shotwell-publishing.vala" - _tmp2_ = NULL; -#line 708 "shotwell-publishing.c" - } -#line 80 "/home/jens/Source/shotwell/plugins/shotwell-publishing/shotwell-publishing.vala" - result = G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, SPIT_TYPE_MODULE, SpitModule); -#line 80 "/home/jens/Source/shotwell/plugins/shotwell-publishing/shotwell-publishing.vala" - return result; -#line 714 "shotwell-publishing.c" -} - - -static void -_vala_array_destroy (gpointer array, - gint array_length, - GDestroyNotify destroy_func) -{ - if ((array != NULL) && (destroy_func != NULL)) { - int i; - for (i = 0; i < array_length; i = i + 1) { - if (((gpointer*) array)[i] != NULL) { - destroy_func (((gpointer*) array)[i]); - } - } - } -} - - -static void -_vala_array_free (gpointer array, - gint array_length, - GDestroyNotify destroy_func) -{ - _vala_array_destroy (array, array_length, destroy_func); - g_free (array); -} - - - diff --git a/plugins/shotwell-transitions/BlindsEffect.c b/plugins/shotwell-transitions/BlindsEffect.c deleted file mode 100644 index ef1f15e..0000000 --- a/plugins/shotwell-transitions/BlindsEffect.c +++ /dev/null @@ -1,843 +0,0 @@ -/* BlindsEffect.c generated by valac 0.40.4, the Vala compiler - * generated from BlindsEffect.vala, do not modify */ - -/* Copyright 2013 Jens Bav - * Copyright 2016 Software Freedom Conservancy Inc. - * - * This software is licensed under the GNU Lesser General Public License - * (version 2.1 or later). See the COPYING file in this distribution. - */ - - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include - - -#define TYPE_SHOTWELL_TRANSITION_DESCRIPTOR (shotwell_transition_descriptor_get_type ()) -#define SHOTWELL_TRANSITION_DESCRIPTOR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SHOTWELL_TRANSITION_DESCRIPTOR, ShotwellTransitionDescriptor)) -#define SHOTWELL_TRANSITION_DESCRIPTOR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SHOTWELL_TRANSITION_DESCRIPTOR, ShotwellTransitionDescriptorClass)) -#define IS_SHOTWELL_TRANSITION_DESCRIPTOR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SHOTWELL_TRANSITION_DESCRIPTOR)) -#define IS_SHOTWELL_TRANSITION_DESCRIPTOR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SHOTWELL_TRANSITION_DESCRIPTOR)) -#define SHOTWELL_TRANSITION_DESCRIPTOR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SHOTWELL_TRANSITION_DESCRIPTOR, ShotwellTransitionDescriptorClass)) - -typedef struct _ShotwellTransitionDescriptor ShotwellTransitionDescriptor; -typedef struct _ShotwellTransitionDescriptorClass ShotwellTransitionDescriptorClass; -typedef struct _ShotwellTransitionDescriptorPrivate ShotwellTransitionDescriptorPrivate; - -#define TYPE_BLINDS_EFFECT_DESCRIPTOR (blinds_effect_descriptor_get_type ()) -#define BLINDS_EFFECT_DESCRIPTOR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_BLINDS_EFFECT_DESCRIPTOR, BlindsEffectDescriptor)) -#define BLINDS_EFFECT_DESCRIPTOR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_BLINDS_EFFECT_DESCRIPTOR, BlindsEffectDescriptorClass)) -#define IS_BLINDS_EFFECT_DESCRIPTOR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_BLINDS_EFFECT_DESCRIPTOR)) -#define IS_BLINDS_EFFECT_DESCRIPTOR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_BLINDS_EFFECT_DESCRIPTOR)) -#define BLINDS_EFFECT_DESCRIPTOR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_BLINDS_EFFECT_DESCRIPTOR, BlindsEffectDescriptorClass)) - -typedef struct _BlindsEffectDescriptor BlindsEffectDescriptor; -typedef struct _BlindsEffectDescriptorClass BlindsEffectDescriptorClass; -typedef struct _BlindsEffectDescriptorPrivate BlindsEffectDescriptorPrivate; -enum { - BLINDS_EFFECT_DESCRIPTOR_0_PROPERTY, - BLINDS_EFFECT_DESCRIPTOR_NUM_PROPERTIES -}; -static GParamSpec* blinds_effect_descriptor_properties[BLINDS_EFFECT_DESCRIPTOR_NUM_PROPERTIES]; - -#define TYPE_BLINDS_EFFECT (blinds_effect_get_type ()) -#define BLINDS_EFFECT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_BLINDS_EFFECT, BlindsEffect)) -#define BLINDS_EFFECT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_BLINDS_EFFECT, BlindsEffectClass)) -#define IS_BLINDS_EFFECT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_BLINDS_EFFECT)) -#define IS_BLINDS_EFFECT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_BLINDS_EFFECT)) -#define BLINDS_EFFECT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_BLINDS_EFFECT, BlindsEffectClass)) - -typedef struct _BlindsEffect BlindsEffect; -typedef struct _BlindsEffectClass BlindsEffectClass; -typedef struct _BlindsEffectPrivate BlindsEffectPrivate; -enum { - BLINDS_EFFECT_0_PROPERTY, - BLINDS_EFFECT_NUM_PROPERTIES -}; -static GParamSpec* blinds_effect_properties[BLINDS_EFFECT_NUM_PROPERTIES]; -#define _cairo_surface_destroy0(var) ((var == NULL) ? NULL : (var = (cairo_surface_destroy (var), NULL))) -#define _cairo_destroy0(var) ((var == NULL) ? NULL : (var = (cairo_destroy (var), NULL))) - -struct _ShotwellTransitionDescriptor { - GObject parent_instance; - ShotwellTransitionDescriptorPrivate * priv; -}; - -struct _ShotwellTransitionDescriptorClass { - GObjectClass parent_class; - const gchar* (*get_id) (ShotwellTransitionDescriptor* self); - const gchar* (*get_pluggable_name) (ShotwellTransitionDescriptor* self); - SpitTransitionsEffect* (*create) (ShotwellTransitionDescriptor* self, SpitHostInterface* host); -}; - -struct _BlindsEffectDescriptor { - ShotwellTransitionDescriptor parent_instance; - BlindsEffectDescriptorPrivate * priv; -}; - -struct _BlindsEffectDescriptorClass { - ShotwellTransitionDescriptorClass parent_class; -}; - -struct _BlindsEffect { - GObject parent_instance; - BlindsEffectPrivate * priv; -}; - -struct _BlindsEffectClass { - GObjectClass parent_class; -}; - -struct _BlindsEffectPrivate { - gint current_blind_width; - cairo_surface_t** to_blinds; - gint to_blinds_length1; - gint _to_blinds_size_; - gint blind_count; -}; - - -static gpointer blinds_effect_descriptor_parent_class = NULL; -static gpointer blinds_effect_parent_class = NULL; -static SpitTransitionsEffectIface * blinds_effect_spit_transitions_effect_parent_iface = NULL; - -GType shotwell_transition_descriptor_get_type (void) G_GNUC_CONST; -GType blinds_effect_descriptor_get_type (void) G_GNUC_CONST; -BlindsEffectDescriptor* blinds_effect_descriptor_new (GFile* resource_directory); -BlindsEffectDescriptor* blinds_effect_descriptor_construct (GType object_type, - GFile* resource_directory); -ShotwellTransitionDescriptor* shotwell_transition_descriptor_construct (GType object_type, - GFile* resource_directory); -static const gchar* blinds_effect_descriptor_real_get_id (ShotwellTransitionDescriptor* base); -static const gchar* blinds_effect_descriptor_real_get_pluggable_name (ShotwellTransitionDescriptor* base); -static SpitTransitionsEffect* blinds_effect_descriptor_real_create (ShotwellTransitionDescriptor* base, - SpitHostInterface* host); -BlindsEffect* blinds_effect_new (void); -BlindsEffect* blinds_effect_construct (GType object_type); -GType blinds_effect_get_type (void) G_GNUC_CONST; -#define BLINDS_EFFECT_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_BLINDS_EFFECT, BlindsEffectPrivate)) -#define BLINDS_EFFECT_DESIRED_FPS 30 -#define BLINDS_EFFECT_MIN_FPS 15 -#define BLINDS_EFFECT_BLIND_WIDTH 50 -static void blinds_effect_real_get_fps (SpitTransitionsEffect* base, - gint* desired_fps, - gint* min_fps); -static gboolean blinds_effect_real_needs_clear_background (SpitTransitionsEffect* base); -static void blinds_effect_real_start (SpitTransitionsEffect* base, - SpitTransitionsVisuals* visuals, - SpitTransitionsMotion* motion); -static void blinds_effect_real_paint (SpitTransitionsEffect* base, - SpitTransitionsVisuals* visuals, - SpitTransitionsMotion* motion, - cairo_t* ctx, - gint width, - gint height, - gint frame_number); -static void blinds_effect_real_advance (SpitTransitionsEffect* base, - SpitTransitionsVisuals* visuals, - SpitTransitionsMotion* motion, - gint frame_number); -static void blinds_effect_real_cancel (SpitTransitionsEffect* base); -static void blinds_effect_finalize (GObject * obj); -static void _vala_array_destroy (gpointer array, - gint array_length, - GDestroyNotify destroy_func); -static void _vala_array_free (gpointer array, - gint array_length, - GDestroyNotify destroy_func); - - -BlindsEffectDescriptor* -blinds_effect_descriptor_construct (GType object_type, - GFile* resource_directory) -{ - BlindsEffectDescriptor * self = NULL; -#line 11 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - g_return_val_if_fail (G_IS_FILE (resource_directory), NULL); -#line 12 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - self = (BlindsEffectDescriptor*) shotwell_transition_descriptor_construct (object_type, resource_directory); -#line 11 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - return self; -#line 172 "BlindsEffect.c" -} - - -BlindsEffectDescriptor* -blinds_effect_descriptor_new (GFile* resource_directory) -{ -#line 11 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - return blinds_effect_descriptor_construct (TYPE_BLINDS_EFFECT_DESCRIPTOR, resource_directory); -#line 181 "BlindsEffect.c" -} - - -static const gchar* -blinds_effect_descriptor_real_get_id (ShotwellTransitionDescriptor* base) -{ - BlindsEffectDescriptor * self; - const gchar* result = NULL; -#line 15 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_BLINDS_EFFECT_DESCRIPTOR, BlindsEffectDescriptor); -#line 16 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - result = "org.yorba.shotwell.transitions.blinds"; -#line 16 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - return result; -#line 196 "BlindsEffect.c" -} - - -static const gchar* -blinds_effect_descriptor_real_get_pluggable_name (ShotwellTransitionDescriptor* base) -{ - BlindsEffectDescriptor * self; - const gchar* result = NULL; -#line 19 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_BLINDS_EFFECT_DESCRIPTOR, BlindsEffectDescriptor); -#line 20 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - result = _ ("Blinds"); -#line 20 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - return result; -#line 211 "BlindsEffect.c" -} - - -static SpitTransitionsEffect* -blinds_effect_descriptor_real_create (ShotwellTransitionDescriptor* base, - SpitHostInterface* host) -{ - BlindsEffectDescriptor * self; - SpitTransitionsEffect* result = NULL; - BlindsEffect* _tmp0_; -#line 23 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_BLINDS_EFFECT_DESCRIPTOR, BlindsEffectDescriptor); -#line 23 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - g_return_val_if_fail (SPIT_IS_HOST_INTERFACE (host), NULL); -#line 24 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - _tmp0_ = blinds_effect_new (); -#line 24 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - result = G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, SPIT_TRANSITIONS_TYPE_EFFECT, SpitTransitionsEffect); -#line 24 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - return result; -#line 232 "BlindsEffect.c" -} - - -static void -blinds_effect_descriptor_class_init (BlindsEffectDescriptorClass * klass) -{ -#line 10 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - blinds_effect_descriptor_parent_class = g_type_class_peek_parent (klass); -#line 10 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - ((ShotwellTransitionDescriptorClass *) klass)->get_id = (const gchar* (*) (ShotwellTransitionDescriptor *)) blinds_effect_descriptor_real_get_id; -#line 10 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - ((ShotwellTransitionDescriptorClass *) klass)->get_pluggable_name = (const gchar* (*) (ShotwellTransitionDescriptor *)) blinds_effect_descriptor_real_get_pluggable_name; -#line 10 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - ((ShotwellTransitionDescriptorClass *) klass)->create = (SpitTransitionsEffect* (*) (ShotwellTransitionDescriptor *, SpitHostInterface*)) blinds_effect_descriptor_real_create; -#line 247 "BlindsEffect.c" -} - - -static void -blinds_effect_descriptor_instance_init (BlindsEffectDescriptor * self) -{ -} - - -GType -blinds_effect_descriptor_get_type (void) -{ - static volatile gsize blinds_effect_descriptor_type_id__volatile = 0; - if (g_once_init_enter (&blinds_effect_descriptor_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (BlindsEffectDescriptorClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) blinds_effect_descriptor_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (BlindsEffectDescriptor), 0, (GInstanceInitFunc) blinds_effect_descriptor_instance_init, NULL }; - GType blinds_effect_descriptor_type_id; - blinds_effect_descriptor_type_id = g_type_register_static (TYPE_SHOTWELL_TRANSITION_DESCRIPTOR, "BlindsEffectDescriptor", &g_define_type_info, 0); - g_once_init_leave (&blinds_effect_descriptor_type_id__volatile, blinds_effect_descriptor_type_id); - } - return blinds_effect_descriptor_type_id__volatile; -} - - -BlindsEffect* -blinds_effect_construct (GType object_type) -{ - BlindsEffect * self = NULL; -#line 38 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - self = (BlindsEffect*) g_object_new (object_type, NULL); -#line 38 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - return self; -#line 279 "BlindsEffect.c" -} - - -BlindsEffect* -blinds_effect_new (void) -{ -#line 38 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - return blinds_effect_construct (TYPE_BLINDS_EFFECT); -#line 288 "BlindsEffect.c" -} - - -static void -blinds_effect_real_get_fps (SpitTransitionsEffect* base, - gint* desired_fps, - gint* min_fps) -{ - BlindsEffect * self; - gint _vala_desired_fps = 0; - gint _vala_min_fps = 0; -#line 41 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_BLINDS_EFFECT, BlindsEffect); -#line 42 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - _vala_desired_fps = BLINDS_EFFECT_DESIRED_FPS; -#line 43 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - _vala_min_fps = BLINDS_EFFECT_MIN_FPS; -#line 41 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - if (desired_fps) { -#line 41 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - *desired_fps = _vala_desired_fps; -#line 310 "BlindsEffect.c" - } -#line 41 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - if (min_fps) { -#line 41 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - *min_fps = _vala_min_fps; -#line 316 "BlindsEffect.c" - } -} - - -static gboolean -blinds_effect_real_needs_clear_background (SpitTransitionsEffect* base) -{ - BlindsEffect * self; - gboolean result = FALSE; -#line 46 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_BLINDS_EFFECT, BlindsEffect); -#line 47 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - result = TRUE; -#line 47 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - return result; -#line 332 "BlindsEffect.c" -} - - -static void -blinds_effect_real_start (SpitTransitionsEffect* base, - SpitTransitionsVisuals* visuals, - SpitTransitionsMotion* motion) -{ - BlindsEffect * self; - GdkPixbuf* _tmp0_; - GdkPixbuf* _tmp1_; -#line 50 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_BLINDS_EFFECT, BlindsEffect); -#line 50 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - g_return_if_fail (SPIT_TRANSITIONS_IS_VISUALS (visuals)); -#line 50 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - g_return_if_fail (SPIT_TRANSITIONS_IS_MOTION (motion)); -#line 51 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - _tmp0_ = spit_transitions_visuals_get_from_pixbuf (visuals); -#line 51 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - _tmp1_ = _tmp0_; -#line 51 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - if (_tmp1_ != NULL) { -#line 356 "BlindsEffect.c" - GdkPixbuf* _tmp2_; - GdkPixbuf* _tmp3_; - gint _tmp4_; - gint _tmp5_; - GdkPixbuf* _tmp6_; - GdkPixbuf* _tmp7_; - gint _tmp8_; - gint _tmp9_; - gint _tmp10_; - gint _tmp11_; - cairo_surface_t** _tmp12_; -#line 52 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - _tmp2_ = spit_transitions_visuals_get_to_pixbuf (visuals); -#line 52 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - _tmp3_ = _tmp2_; -#line 52 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - _tmp4_ = gdk_pixbuf_get_width (_tmp3_); -#line 52 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - _tmp5_ = _tmp4_; -#line 52 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - self->priv->blind_count = _tmp5_ / BLINDS_EFFECT_BLIND_WIDTH; -#line 53 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - _tmp6_ = spit_transitions_visuals_get_to_pixbuf (visuals); -#line 53 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - _tmp7_ = _tmp6_; -#line 53 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - _tmp8_ = gdk_pixbuf_get_width (_tmp7_); -#line 53 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - _tmp9_ = _tmp8_; -#line 53 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - _tmp10_ = self->priv->blind_count; -#line 53 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - self->priv->current_blind_width = (gint) ceil (((gdouble) _tmp9_) / ((gdouble) _tmp10_)); -#line 56 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - _tmp11_ = self->priv->blind_count; -#line 56 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - _tmp12_ = g_new0 (cairo_surface_t*, _tmp11_ + 1); -#line 56 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - self->priv->to_blinds = (_vala_array_free (self->priv->to_blinds, self->priv->to_blinds_length1, (GDestroyNotify) cairo_surface_destroy), NULL); -#line 56 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - self->priv->to_blinds = _tmp12_; -#line 56 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - self->priv->to_blinds_length1 = _tmp11_; -#line 56 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - self->priv->_to_blinds_size_ = self->priv->to_blinds_length1; -#line 402 "BlindsEffect.c" - { - gint i = 0; -#line 58 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - i = 0; -#line 407 "BlindsEffect.c" - { - gboolean _tmp13_ = FALSE; -#line 58 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - _tmp13_ = TRUE; -#line 58 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - while (TRUE) { -#line 414 "BlindsEffect.c" - gint _tmp15_; - gint _tmp16_; - cairo_surface_t** _tmp17_; - gint _tmp17__length1; - gint _tmp18_; - gint _tmp19_; - GdkPixbuf* _tmp20_; - GdkPixbuf* _tmp21_; - gint _tmp22_; - gint _tmp23_; - cairo_surface_t* _tmp24_; - cairo_surface_t* _tmp25_; - cairo_t* ctx = NULL; - cairo_surface_t** _tmp26_; - gint _tmp26__length1; - gint _tmp27_; - cairo_surface_t* _tmp28_; - cairo_t* _tmp29_; - cairo_t* _tmp30_; - GdkPixbuf* _tmp31_; - GdkPixbuf* _tmp32_; - gint _tmp33_; - gint _tmp34_; - cairo_t* _tmp35_; -#line 58 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - if (!_tmp13_) { -#line 441 "BlindsEffect.c" - gint _tmp14_; -#line 58 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - _tmp14_ = i; -#line 58 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - i = _tmp14_ + 1; -#line 447 "BlindsEffect.c" - } -#line 58 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - _tmp13_ = FALSE; -#line 58 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - _tmp15_ = i; -#line 58 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - _tmp16_ = self->priv->blind_count; -#line 58 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - if (!(_tmp15_ < _tmp16_)) { -#line 58 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - break; -#line 459 "BlindsEffect.c" - } -#line 59 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - _tmp17_ = self->priv->to_blinds; -#line 59 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - _tmp17__length1 = self->priv->to_blinds_length1; -#line 59 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - _tmp18_ = i; -#line 59 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - _tmp19_ = self->priv->current_blind_width; -#line 59 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - _tmp20_ = spit_transitions_visuals_get_to_pixbuf (visuals); -#line 59 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - _tmp21_ = _tmp20_; -#line 59 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - _tmp22_ = gdk_pixbuf_get_height (_tmp21_); -#line 59 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - _tmp23_ = _tmp22_; -#line 59 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - _tmp24_ = cairo_image_surface_create (CAIRO_FORMAT_RGB24, _tmp19_, _tmp23_); -#line 59 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - _cairo_surface_destroy0 (_tmp17_[_tmp18_]); -#line 59 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - _tmp17_[_tmp18_] = _tmp24_; -#line 59 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - _tmp25_ = _tmp17_[_tmp18_]; -#line 61 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - _tmp26_ = self->priv->to_blinds; -#line 61 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - _tmp26__length1 = self->priv->to_blinds_length1; -#line 61 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - _tmp27_ = i; -#line 61 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - _tmp28_ = _tmp26_[_tmp27_]; -#line 61 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - _tmp29_ = cairo_create (_tmp28_); -#line 61 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - ctx = _tmp29_; -#line 62 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - _tmp30_ = ctx; -#line 62 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - _tmp31_ = spit_transitions_visuals_get_to_pixbuf (visuals); -#line 62 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - _tmp32_ = _tmp31_; -#line 62 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - _tmp33_ = i; -#line 62 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - _tmp34_ = self->priv->current_blind_width; -#line 62 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - gdk_cairo_set_source_pixbuf (_tmp30_, _tmp32_, (gdouble) ((-_tmp33_) * _tmp34_), (gdouble) 0); -#line 63 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - _tmp35_ = ctx; -#line 63 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - cairo_paint (_tmp35_); -#line 58 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - _cairo_destroy0 (ctx); -#line 515 "BlindsEffect.c" - } - } - } - } -} - - -static void -blinds_effect_real_paint (SpitTransitionsEffect* base, - SpitTransitionsVisuals* visuals, - SpitTransitionsMotion* motion, - cairo_t* ctx, - gint width, - gint height, - gint frame_number) -{ - BlindsEffect * self; - gdouble alpha = 0.0; - gint y = 0; - GdkRectangle _tmp0_ = {0}; - GdkRectangle _tmp1_; - gint _tmp2_; - gint x = 0; - GdkRectangle _tmp3_ = {0}; - GdkRectangle _tmp4_; - gint _tmp5_; - GdkPixbuf* _tmp6_; - GdkPixbuf* _tmp7_; -#line 68 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_BLINDS_EFFECT, BlindsEffect); -#line 68 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - g_return_if_fail (SPIT_TRANSITIONS_IS_VISUALS (visuals)); -#line 68 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - g_return_if_fail (SPIT_TRANSITIONS_IS_MOTION (motion)); -#line 68 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - g_return_if_fail (ctx != NULL); -#line 70 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - alpha = spit_transitions_motion_get_alpha (motion, frame_number); -#line 71 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - spit_transitions_visuals_get_to_pos (visuals, &_tmp0_); -#line 71 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - _tmp1_ = _tmp0_; -#line 71 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - _tmp2_ = _tmp1_.y; -#line 71 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - y = _tmp2_; -#line 72 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - spit_transitions_visuals_get_to_pos (visuals, &_tmp3_); -#line 72 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - _tmp4_ = _tmp3_; -#line 72 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - _tmp5_ = _tmp4_.x; -#line 72 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - x = _tmp5_; -#line 74 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - _tmp6_ = spit_transitions_visuals_get_from_pixbuf (visuals); -#line 74 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - _tmp7_ = _tmp6_; -#line 74 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - if (_tmp7_ != NULL) { -#line 576 "BlindsEffect.c" - GdkPixbuf* _tmp8_; - GdkPixbuf* _tmp9_; - GdkRectangle _tmp10_ = {0}; - GdkRectangle _tmp11_; - gint _tmp12_; - GdkRectangle _tmp13_ = {0}; - GdkRectangle _tmp14_; - gint _tmp15_; - gdouble _tmp16_; -#line 75 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - _tmp8_ = spit_transitions_visuals_get_from_pixbuf (visuals); -#line 75 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - _tmp9_ = _tmp8_; -#line 75 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - spit_transitions_visuals_get_from_pos (visuals, &_tmp10_); -#line 75 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - _tmp11_ = _tmp10_; -#line 75 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - _tmp12_ = _tmp11_.x; -#line 75 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - spit_transitions_visuals_get_from_pos (visuals, &_tmp13_); -#line 75 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - _tmp14_ = _tmp13_; -#line 75 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - _tmp15_ = _tmp14_.y; -#line 75 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - gdk_cairo_set_source_pixbuf (ctx, _tmp9_, (gdouble) _tmp12_, (gdouble) _tmp15_); -#line 77 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - _tmp16_ = alpha; -#line 77 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - cairo_paint_with_alpha (ctx, 1 - (_tmp16_ * 2)); -#line 608 "BlindsEffect.c" - } - { - gint i = 0; -#line 80 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - i = 0; -#line 614 "BlindsEffect.c" - { - gboolean _tmp17_ = FALSE; -#line 80 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - _tmp17_ = TRUE; -#line 80 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - while (TRUE) { -#line 621 "BlindsEffect.c" - gint _tmp19_; - gint _tmp20_; - cairo_surface_t** _tmp21_; - gint _tmp21__length1; - gint _tmp22_; - cairo_surface_t* _tmp23_; - gint _tmp24_; - gint _tmp25_; - gint _tmp26_; - gint _tmp27_; - gint _tmp28_; - gint _tmp29_; - gint _tmp30_; - gint _tmp31_; - gint _tmp32_; - gdouble _tmp33_; - GdkPixbuf* _tmp34_; - GdkPixbuf* _tmp35_; - gint _tmp36_; - gint _tmp37_; -#line 80 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - if (!_tmp17_) { -#line 644 "BlindsEffect.c" - gint _tmp18_; -#line 80 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - _tmp18_ = i; -#line 80 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - i = _tmp18_ + 1; -#line 650 "BlindsEffect.c" - } -#line 80 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - _tmp17_ = FALSE; -#line 80 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - _tmp19_ = i; -#line 80 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - _tmp20_ = self->priv->blind_count; -#line 80 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - if (!(_tmp19_ < _tmp20_)) { -#line 80 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - break; -#line 662 "BlindsEffect.c" - } -#line 81 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - _tmp21_ = self->priv->to_blinds; -#line 81 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - _tmp21__length1 = self->priv->to_blinds_length1; -#line 81 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - _tmp22_ = i; -#line 81 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - _tmp23_ = _tmp21_[_tmp22_]; -#line 81 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - _tmp24_ = x; -#line 81 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - _tmp25_ = i; -#line 81 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - _tmp26_ = self->priv->current_blind_width; -#line 81 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - _tmp27_ = y; -#line 81 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - cairo_set_source_surface (ctx, _tmp23_, (gdouble) (_tmp24_ + (_tmp25_ * _tmp26_)), (gdouble) _tmp27_); -#line 82 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - _tmp28_ = x; -#line 82 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - _tmp29_ = i; -#line 82 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - _tmp30_ = self->priv->current_blind_width; -#line 82 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - _tmp31_ = y; -#line 82 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - _tmp32_ = self->priv->current_blind_width; -#line 82 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - _tmp33_ = alpha; -#line 82 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - _tmp34_ = spit_transitions_visuals_get_to_pixbuf (visuals); -#line 82 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - _tmp35_ = _tmp34_; -#line 82 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - _tmp36_ = gdk_pixbuf_get_height (_tmp35_); -#line 82 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - _tmp37_ = _tmp36_; -#line 82 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - cairo_rectangle (ctx, (gdouble) (_tmp28_ + (_tmp29_ * _tmp30_)), (gdouble) _tmp31_, _tmp32_ * (_tmp33_ + 0.5), (gdouble) _tmp37_); -#line 84 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - cairo_fill (ctx); -#line 706 "BlindsEffect.c" - } - } - } -#line 87 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - cairo_clip (ctx); -#line 88 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - cairo_paint (ctx); -#line 714 "BlindsEffect.c" -} - - -static void -blinds_effect_real_advance (SpitTransitionsEffect* base, - SpitTransitionsVisuals* visuals, - SpitTransitionsMotion* motion, - gint frame_number) -{ - BlindsEffect * self; -#line 91 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_BLINDS_EFFECT, BlindsEffect); -#line 91 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - g_return_if_fail (SPIT_TRANSITIONS_IS_VISUALS (visuals)); -#line 91 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - g_return_if_fail (SPIT_TRANSITIONS_IS_MOTION (motion)); -#line 731 "BlindsEffect.c" -} - - -static void -blinds_effect_real_cancel (SpitTransitionsEffect* base) -{ - BlindsEffect * self; -#line 94 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_BLINDS_EFFECT, BlindsEffect); -#line 741 "BlindsEffect.c" -} - - -static void -blinds_effect_class_init (BlindsEffectClass * klass) -{ -#line 28 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - blinds_effect_parent_class = g_type_class_peek_parent (klass); -#line 28 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - g_type_class_add_private (klass, sizeof (BlindsEffectPrivate)); -#line 28 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - G_OBJECT_CLASS (klass)->finalize = blinds_effect_finalize; -#line 754 "BlindsEffect.c" -} - - -static void -blinds_effect_spit_transitions_effect_interface_init (SpitTransitionsEffectIface * iface) -{ -#line 28 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - blinds_effect_spit_transitions_effect_parent_iface = g_type_interface_peek_parent (iface); -#line 28 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - iface->get_fps = (void (*) (SpitTransitionsEffect *, gint*, gint*)) blinds_effect_real_get_fps; -#line 28 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - iface->needs_clear_background = (gboolean (*) (SpitTransitionsEffect *)) blinds_effect_real_needs_clear_background; -#line 28 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - iface->start = (void (*) (SpitTransitionsEffect *, SpitTransitionsVisuals*, SpitTransitionsMotion*)) blinds_effect_real_start; -#line 28 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - iface->paint = (void (*) (SpitTransitionsEffect *, SpitTransitionsVisuals*, SpitTransitionsMotion*, cairo_t*, gint, gint, gint)) blinds_effect_real_paint; -#line 28 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - iface->advance = (void (*) (SpitTransitionsEffect *, SpitTransitionsVisuals*, SpitTransitionsMotion*, gint)) blinds_effect_real_advance; -#line 28 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - iface->cancel = (void (*) (SpitTransitionsEffect *)) blinds_effect_real_cancel; -#line 775 "BlindsEffect.c" -} - - -static void -blinds_effect_instance_init (BlindsEffect * self) -{ -#line 28 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - self->priv = BLINDS_EFFECT_GET_PRIVATE (self); -#line 784 "BlindsEffect.c" -} - - -static void -blinds_effect_finalize (GObject * obj) -{ - BlindsEffect * self; -#line 28 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_BLINDS_EFFECT, BlindsEffect); -#line 35 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - self->priv->to_blinds = (_vala_array_free (self->priv->to_blinds, self->priv->to_blinds_length1, (GDestroyNotify) cairo_surface_destroy), NULL); -#line 28 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - G_OBJECT_CLASS (blinds_effect_parent_class)->finalize (obj); -#line 798 "BlindsEffect.c" -} - - -GType -blinds_effect_get_type (void) -{ - static volatile gsize blinds_effect_type_id__volatile = 0; - if (g_once_init_enter (&blinds_effect_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (BlindsEffectClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) blinds_effect_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (BlindsEffect), 0, (GInstanceInitFunc) blinds_effect_instance_init, NULL }; - static const GInterfaceInfo spit_transitions_effect_info = { (GInterfaceInitFunc) blinds_effect_spit_transitions_effect_interface_init, (GInterfaceFinalizeFunc) NULL, NULL}; - GType blinds_effect_type_id; - blinds_effect_type_id = g_type_register_static (G_TYPE_OBJECT, "BlindsEffect", &g_define_type_info, 0); - g_type_add_interface_static (blinds_effect_type_id, SPIT_TRANSITIONS_TYPE_EFFECT, &spit_transitions_effect_info); - g_once_init_leave (&blinds_effect_type_id__volatile, blinds_effect_type_id); - } - return blinds_effect_type_id__volatile; -} - - -static void -_vala_array_destroy (gpointer array, - gint array_length, - GDestroyNotify destroy_func) -{ - if ((array != NULL) && (destroy_func != NULL)) { - int i; - for (i = 0; i < array_length; i = i + 1) { - if (((gpointer*) array)[i] != NULL) { - destroy_func (((gpointer*) array)[i]); - } - } - } -} - - -static void -_vala_array_free (gpointer array, - gint array_length, - GDestroyNotify destroy_func) -{ - _vala_array_destroy (array, array_length, destroy_func); - g_free (array); -} - - - diff --git a/plugins/shotwell-transitions/ChessEffect.c b/plugins/shotwell-transitions/ChessEffect.c deleted file mode 100644 index 103eeb0..0000000 --- a/plugins/shotwell-transitions/ChessEffect.c +++ /dev/null @@ -1,763 +0,0 @@ -/* ChessEffect.c generated by valac 0.40.4, the Vala compiler - * generated from ChessEffect.vala, do not modify */ - -/* Copyright 2013 Jens Bav - * Copyright 2016 Software Freedom Conservancy Inc. - * - * This software is licensed under the GNU Lesser General Public License - * (version 2.1 or later). See the COPYING file in this distribution. - */ - - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include - - -#define TYPE_SHOTWELL_TRANSITION_DESCRIPTOR (shotwell_transition_descriptor_get_type ()) -#define SHOTWELL_TRANSITION_DESCRIPTOR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SHOTWELL_TRANSITION_DESCRIPTOR, ShotwellTransitionDescriptor)) -#define SHOTWELL_TRANSITION_DESCRIPTOR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SHOTWELL_TRANSITION_DESCRIPTOR, ShotwellTransitionDescriptorClass)) -#define IS_SHOTWELL_TRANSITION_DESCRIPTOR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SHOTWELL_TRANSITION_DESCRIPTOR)) -#define IS_SHOTWELL_TRANSITION_DESCRIPTOR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SHOTWELL_TRANSITION_DESCRIPTOR)) -#define SHOTWELL_TRANSITION_DESCRIPTOR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SHOTWELL_TRANSITION_DESCRIPTOR, ShotwellTransitionDescriptorClass)) - -typedef struct _ShotwellTransitionDescriptor ShotwellTransitionDescriptor; -typedef struct _ShotwellTransitionDescriptorClass ShotwellTransitionDescriptorClass; -typedef struct _ShotwellTransitionDescriptorPrivate ShotwellTransitionDescriptorPrivate; - -#define TYPE_CHESS_EFFECT_DESCRIPTOR (chess_effect_descriptor_get_type ()) -#define CHESS_EFFECT_DESCRIPTOR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_CHESS_EFFECT_DESCRIPTOR, ChessEffectDescriptor)) -#define CHESS_EFFECT_DESCRIPTOR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_CHESS_EFFECT_DESCRIPTOR, ChessEffectDescriptorClass)) -#define IS_CHESS_EFFECT_DESCRIPTOR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_CHESS_EFFECT_DESCRIPTOR)) -#define IS_CHESS_EFFECT_DESCRIPTOR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_CHESS_EFFECT_DESCRIPTOR)) -#define CHESS_EFFECT_DESCRIPTOR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_CHESS_EFFECT_DESCRIPTOR, ChessEffectDescriptorClass)) - -typedef struct _ChessEffectDescriptor ChessEffectDescriptor; -typedef struct _ChessEffectDescriptorClass ChessEffectDescriptorClass; -typedef struct _ChessEffectDescriptorPrivate ChessEffectDescriptorPrivate; -enum { - CHESS_EFFECT_DESCRIPTOR_0_PROPERTY, - CHESS_EFFECT_DESCRIPTOR_NUM_PROPERTIES -}; -static GParamSpec* chess_effect_descriptor_properties[CHESS_EFFECT_DESCRIPTOR_NUM_PROPERTIES]; - -#define TYPE_CHESS_EFFECT (chess_effect_get_type ()) -#define CHESS_EFFECT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_CHESS_EFFECT, ChessEffect)) -#define CHESS_EFFECT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_CHESS_EFFECT, ChessEffectClass)) -#define IS_CHESS_EFFECT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_CHESS_EFFECT)) -#define IS_CHESS_EFFECT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_CHESS_EFFECT)) -#define CHESS_EFFECT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_CHESS_EFFECT, ChessEffectClass)) - -typedef struct _ChessEffect ChessEffect; -typedef struct _ChessEffectClass ChessEffectClass; -typedef struct _ChessEffectPrivate ChessEffectPrivate; -enum { - CHESS_EFFECT_0_PROPERTY, - CHESS_EFFECT_NUM_PROPERTIES -}; -static GParamSpec* chess_effect_properties[CHESS_EFFECT_NUM_PROPERTIES]; - -struct _ShotwellTransitionDescriptor { - GObject parent_instance; - ShotwellTransitionDescriptorPrivate * priv; -}; - -struct _ShotwellTransitionDescriptorClass { - GObjectClass parent_class; - const gchar* (*get_id) (ShotwellTransitionDescriptor* self); - const gchar* (*get_pluggable_name) (ShotwellTransitionDescriptor* self); - SpitTransitionsEffect* (*create) (ShotwellTransitionDescriptor* self, SpitHostInterface* host); -}; - -struct _ChessEffectDescriptor { - ShotwellTransitionDescriptor parent_instance; - ChessEffectDescriptorPrivate * priv; -}; - -struct _ChessEffectDescriptorClass { - ShotwellTransitionDescriptorClass parent_class; -}; - -struct _ChessEffect { - GObject parent_instance; - ChessEffectPrivate * priv; -}; - -struct _ChessEffectClass { - GObjectClass parent_class; -}; - -struct _ChessEffectPrivate { - gdouble square_count_x; - gdouble square_count_y; -}; - - -static gpointer chess_effect_descriptor_parent_class = NULL; -static gpointer chess_effect_parent_class = NULL; -static SpitTransitionsEffectIface * chess_effect_spit_transitions_effect_parent_iface = NULL; - -GType shotwell_transition_descriptor_get_type (void) G_GNUC_CONST; -GType chess_effect_descriptor_get_type (void) G_GNUC_CONST; -ChessEffectDescriptor* chess_effect_descriptor_new (GFile* resource_directory); -ChessEffectDescriptor* chess_effect_descriptor_construct (GType object_type, - GFile* resource_directory); -ShotwellTransitionDescriptor* shotwell_transition_descriptor_construct (GType object_type, - GFile* resource_directory); -static const gchar* chess_effect_descriptor_real_get_id (ShotwellTransitionDescriptor* base); -static const gchar* chess_effect_descriptor_real_get_pluggable_name (ShotwellTransitionDescriptor* base); -static SpitTransitionsEffect* chess_effect_descriptor_real_create (ShotwellTransitionDescriptor* base, - SpitHostInterface* host); -ChessEffect* chess_effect_new (void); -ChessEffect* chess_effect_construct (GType object_type); -GType chess_effect_get_type (void) G_GNUC_CONST; -#define CHESS_EFFECT_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_CHESS_EFFECT, ChessEffectPrivate)) -#define CHESS_EFFECT_DESIRED_FPS 25 -#define CHESS_EFFECT_MIN_FPS 10 -#define CHESS_EFFECT_SQUARE_SIZE 100 -static void chess_effect_real_get_fps (SpitTransitionsEffect* base, - gint* desired_fps, - gint* min_fps); -static void chess_effect_real_start (SpitTransitionsEffect* base, - SpitTransitionsVisuals* visuals, - SpitTransitionsMotion* motion); -static gboolean chess_effect_real_needs_clear_background (SpitTransitionsEffect* base); -static void chess_effect_real_paint (SpitTransitionsEffect* base, - SpitTransitionsVisuals* visuals, - SpitTransitionsMotion* motion, - cairo_t* ctx, - gint width, - gint height, - gint frame_number); -static void chess_effect_real_advance (SpitTransitionsEffect* base, - SpitTransitionsVisuals* visuals, - SpitTransitionsMotion* motion, - gint frame_number); -static void chess_effect_real_cancel (SpitTransitionsEffect* base); -static void chess_effect_finalize (GObject * obj); - - -ChessEffectDescriptor* -chess_effect_descriptor_construct (GType object_type, - GFile* resource_directory) -{ - ChessEffectDescriptor * self = NULL; -#line 11 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - g_return_val_if_fail (G_IS_FILE (resource_directory), NULL); -#line 12 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - self = (ChessEffectDescriptor*) shotwell_transition_descriptor_construct (object_type, resource_directory); -#line 11 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - return self; -#line 160 "ChessEffect.c" -} - - -ChessEffectDescriptor* -chess_effect_descriptor_new (GFile* resource_directory) -{ -#line 11 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - return chess_effect_descriptor_construct (TYPE_CHESS_EFFECT_DESCRIPTOR, resource_directory); -#line 169 "ChessEffect.c" -} - - -static const gchar* -chess_effect_descriptor_real_get_id (ShotwellTransitionDescriptor* base) -{ - ChessEffectDescriptor * self; - const gchar* result = NULL; -#line 15 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_CHESS_EFFECT_DESCRIPTOR, ChessEffectDescriptor); -#line 16 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - result = "org.yorba.shotwell.transitions.chess"; -#line 16 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - return result; -#line 184 "ChessEffect.c" -} - - -static const gchar* -chess_effect_descriptor_real_get_pluggable_name (ShotwellTransitionDescriptor* base) -{ - ChessEffectDescriptor * self; - const gchar* result = NULL; -#line 19 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_CHESS_EFFECT_DESCRIPTOR, ChessEffectDescriptor); -#line 20 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - result = _ ("Chess"); -#line 20 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - return result; -#line 199 "ChessEffect.c" -} - - -static SpitTransitionsEffect* -chess_effect_descriptor_real_create (ShotwellTransitionDescriptor* base, - SpitHostInterface* host) -{ - ChessEffectDescriptor * self; - SpitTransitionsEffect* result = NULL; - ChessEffect* _tmp0_; -#line 23 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_CHESS_EFFECT_DESCRIPTOR, ChessEffectDescriptor); -#line 23 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - g_return_val_if_fail (SPIT_IS_HOST_INTERFACE (host), NULL); -#line 24 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - _tmp0_ = chess_effect_new (); -#line 24 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - result = G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, SPIT_TRANSITIONS_TYPE_EFFECT, SpitTransitionsEffect); -#line 24 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - return result; -#line 220 "ChessEffect.c" -} - - -static void -chess_effect_descriptor_class_init (ChessEffectDescriptorClass * klass) -{ -#line 10 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - chess_effect_descriptor_parent_class = g_type_class_peek_parent (klass); -#line 10 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - ((ShotwellTransitionDescriptorClass *) klass)->get_id = (const gchar* (*) (ShotwellTransitionDescriptor *)) chess_effect_descriptor_real_get_id; -#line 10 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - ((ShotwellTransitionDescriptorClass *) klass)->get_pluggable_name = (const gchar* (*) (ShotwellTransitionDescriptor *)) chess_effect_descriptor_real_get_pluggable_name; -#line 10 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - ((ShotwellTransitionDescriptorClass *) klass)->create = (SpitTransitionsEffect* (*) (ShotwellTransitionDescriptor *, SpitHostInterface*)) chess_effect_descriptor_real_create; -#line 235 "ChessEffect.c" -} - - -static void -chess_effect_descriptor_instance_init (ChessEffectDescriptor * self) -{ -} - - -GType -chess_effect_descriptor_get_type (void) -{ - static volatile gsize chess_effect_descriptor_type_id__volatile = 0; - if (g_once_init_enter (&chess_effect_descriptor_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (ChessEffectDescriptorClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) chess_effect_descriptor_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (ChessEffectDescriptor), 0, (GInstanceInitFunc) chess_effect_descriptor_instance_init, NULL }; - GType chess_effect_descriptor_type_id; - chess_effect_descriptor_type_id = g_type_register_static (TYPE_SHOTWELL_TRANSITION_DESCRIPTOR, "ChessEffectDescriptor", &g_define_type_info, 0); - g_once_init_leave (&chess_effect_descriptor_type_id__volatile, chess_effect_descriptor_type_id); - } - return chess_effect_descriptor_type_id__volatile; -} - - -ChessEffect* -chess_effect_construct (GType object_type) -{ - ChessEffect * self = NULL; -#line 35 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - self = (ChessEffect*) g_object_new (object_type, NULL); -#line 35 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - return self; -#line 267 "ChessEffect.c" -} - - -ChessEffect* -chess_effect_new (void) -{ -#line 35 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - return chess_effect_construct (TYPE_CHESS_EFFECT); -#line 276 "ChessEffect.c" -} - - -static void -chess_effect_real_get_fps (SpitTransitionsEffect* base, - gint* desired_fps, - gint* min_fps) -{ - ChessEffect * self; - gint _vala_desired_fps = 0; - gint _vala_min_fps = 0; -#line 38 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_CHESS_EFFECT, ChessEffect); -#line 39 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - _vala_desired_fps = CHESS_EFFECT_DESIRED_FPS; -#line 40 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - _vala_min_fps = CHESS_EFFECT_MIN_FPS; -#line 38 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - if (desired_fps) { -#line 38 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - *desired_fps = _vala_desired_fps; -#line 298 "ChessEffect.c" - } -#line 38 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - if (min_fps) { -#line 38 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - *min_fps = _vala_min_fps; -#line 304 "ChessEffect.c" - } -} - - -static void -chess_effect_real_start (SpitTransitionsEffect* base, - SpitTransitionsVisuals* visuals, - SpitTransitionsMotion* motion) -{ - ChessEffect * self; - GdkRectangle _tmp0_ = {0}; - GdkRectangle _tmp1_; - gint _tmp2_; - GdkRectangle _tmp3_ = {0}; - GdkRectangle _tmp4_; - gint _tmp5_; -#line 43 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_CHESS_EFFECT, ChessEffect); -#line 43 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - g_return_if_fail (SPIT_TRANSITIONS_IS_VISUALS (visuals)); -#line 43 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - g_return_if_fail (SPIT_TRANSITIONS_IS_MOTION (motion)); -#line 44 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - spit_transitions_visuals_get_to_pos (visuals, &_tmp0_); -#line 44 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - _tmp1_ = _tmp0_; -#line 44 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - _tmp2_ = _tmp1_.height; -#line 44 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - self->priv->square_count_y = (gdouble) ((_tmp2_ / CHESS_EFFECT_SQUARE_SIZE) + 2); -#line 45 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - spit_transitions_visuals_get_to_pos (visuals, &_tmp3_); -#line 45 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - _tmp4_ = _tmp3_; -#line 45 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - _tmp5_ = _tmp4_.width; -#line 45 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - self->priv->square_count_x = (gdouble) ((_tmp5_ / CHESS_EFFECT_SQUARE_SIZE) + 2); -#line 343 "ChessEffect.c" -} - - -static gboolean -chess_effect_real_needs_clear_background (SpitTransitionsEffect* base) -{ - ChessEffect * self; - gboolean result = FALSE; -#line 48 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_CHESS_EFFECT, ChessEffect); -#line 49 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - result = TRUE; -#line 49 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - return result; -#line 358 "ChessEffect.c" -} - - -static void -chess_effect_real_paint (SpitTransitionsEffect* base, - SpitTransitionsVisuals* visuals, - SpitTransitionsMotion* motion, - cairo_t* ctx, - gint width, - gint height, - gint frame_number) -{ - ChessEffect * self; - gdouble alpha = 0.0; - gdouble size = 0.0; - gdouble _tmp0_; - GdkPixbuf* _tmp1_; - GdkPixbuf* _tmp2_; - GdkPixbuf* _tmp12_; - GdkPixbuf* _tmp13_; -#line 52 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_CHESS_EFFECT, ChessEffect); -#line 52 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - g_return_if_fail (SPIT_TRANSITIONS_IS_VISUALS (visuals)); -#line 52 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - g_return_if_fail (SPIT_TRANSITIONS_IS_MOTION (motion)); -#line 52 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - g_return_if_fail (ctx != NULL); -#line 54 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - alpha = spit_transitions_motion_get_alpha (motion, frame_number); -#line 55 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - _tmp0_ = alpha; -#line 55 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - size = (2 * _tmp0_) * CHESS_EFFECT_SQUARE_SIZE; -#line 56 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - _tmp1_ = spit_transitions_visuals_get_from_pixbuf (visuals); -#line 56 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - _tmp2_ = _tmp1_; -#line 56 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - if (_tmp2_ != NULL) { -#line 399 "ChessEffect.c" - GdkPixbuf* _tmp3_; - GdkPixbuf* _tmp4_; - GdkRectangle _tmp5_ = {0}; - GdkRectangle _tmp6_; - gint _tmp7_; - GdkRectangle _tmp8_ = {0}; - GdkRectangle _tmp9_; - gint _tmp10_; - gdouble _tmp11_; -#line 57 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - _tmp3_ = spit_transitions_visuals_get_from_pixbuf (visuals); -#line 57 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - _tmp4_ = _tmp3_; -#line 57 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - spit_transitions_visuals_get_from_pos (visuals, &_tmp5_); -#line 57 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - _tmp6_ = _tmp5_; -#line 57 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - _tmp7_ = _tmp6_.x; -#line 57 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - spit_transitions_visuals_get_from_pos (visuals, &_tmp8_); -#line 57 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - _tmp9_ = _tmp8_; -#line 57 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - _tmp10_ = _tmp9_.y; -#line 57 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - gdk_cairo_set_source_pixbuf (ctx, _tmp4_, (gdouble) _tmp7_, (gdouble) _tmp10_); -#line 59 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - _tmp11_ = alpha; -#line 59 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - cairo_paint_with_alpha (ctx, 1 - _tmp11_); -#line 431 "ChessEffect.c" - } -#line 62 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - _tmp12_ = spit_transitions_visuals_get_to_pixbuf (visuals); -#line 62 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - _tmp13_ = _tmp12_; -#line 62 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - if (_tmp13_ != NULL) { -#line 439 "ChessEffect.c" - GdkPixbuf* _tmp14_; - GdkPixbuf* _tmp15_; - GdkRectangle _tmp16_ = {0}; - GdkRectangle _tmp17_; - gint _tmp18_; - GdkRectangle _tmp19_ = {0}; - GdkRectangle _tmp20_; - gint _tmp21_; - gdouble _tmp59_; -#line 63 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - _tmp14_ = spit_transitions_visuals_get_to_pixbuf (visuals); -#line 63 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - _tmp15_ = _tmp14_; -#line 63 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - spit_transitions_visuals_get_to_pos (visuals, &_tmp16_); -#line 63 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - _tmp17_ = _tmp16_; -#line 63 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - _tmp18_ = _tmp17_.x; -#line 63 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - spit_transitions_visuals_get_to_pos (visuals, &_tmp19_); -#line 63 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - _tmp20_ = _tmp19_; -#line 63 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - _tmp21_ = _tmp20_.y; -#line 63 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - gdk_cairo_set_source_pixbuf (ctx, _tmp15_, (gdouble) _tmp18_, (gdouble) _tmp21_); -#line 467 "ChessEffect.c" - { - gdouble y = 0.0; -#line 64 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - y = (gdouble) 0; -#line 472 "ChessEffect.c" - { - gboolean _tmp22_ = FALSE; -#line 64 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - _tmp22_ = TRUE; -#line 64 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - while (TRUE) { -#line 479 "ChessEffect.c" - gdouble _tmp24_; - gdouble _tmp25_; -#line 64 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - if (!_tmp22_) { -#line 484 "ChessEffect.c" - gdouble _tmp23_; -#line 64 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - _tmp23_ = y; -#line 64 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - y = _tmp23_ + 1; -#line 490 "ChessEffect.c" - } -#line 64 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - _tmp22_ = FALSE; -#line 64 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - _tmp24_ = y; -#line 64 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - _tmp25_ = self->priv->square_count_y; -#line 64 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - if (!(_tmp24_ <= _tmp25_)) { -#line 64 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - break; -#line 502 "ChessEffect.c" - } - { - gdouble x = 0.0; -#line 65 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - x = (gdouble) 0; -#line 508 "ChessEffect.c" - { - gboolean _tmp26_ = FALSE; -#line 65 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - _tmp26_ = TRUE; -#line 65 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - while (TRUE) { -#line 515 "ChessEffect.c" - gdouble _tmp28_; - gdouble _tmp29_; - gdouble _tmp30_ = 0.0; - gdouble _tmp31_; - gdouble _tmp32_; - gdouble translation = 0.0; - SpitTransitionsDirection _tmp33_; - SpitTransitionsDirection _tmp34_; -#line 65 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - if (!_tmp26_) { -#line 526 "ChessEffect.c" - gdouble _tmp27_; -#line 65 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - _tmp27_ = x; -#line 65 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - x = _tmp27_ + 1; -#line 532 "ChessEffect.c" - } -#line 65 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - _tmp26_ = FALSE; -#line 65 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - _tmp28_ = x; -#line 65 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - _tmp29_ = self->priv->square_count_x; -#line 65 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - if (!(_tmp28_ <= _tmp29_)) { -#line 65 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - break; -#line 544 "ChessEffect.c" - } -#line 66 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - _tmp31_ = x; -#line 66 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - _tmp32_ = y; -#line 66 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - if (fmod (_tmp31_ + _tmp32_, 2) == ((gdouble) 0)) { -#line 66 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - _tmp30_ = (-1.5) * CHESS_EFFECT_SQUARE_SIZE; -#line 554 "ChessEffect.c" - } else { -#line 66 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - _tmp30_ = 1.5 * CHESS_EFFECT_SQUARE_SIZE; -#line 558 "ChessEffect.c" - } -#line 66 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - translation = _tmp30_; -#line 67 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - _tmp33_ = spit_transitions_motion_get_direction (motion); -#line 67 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - _tmp34_ = _tmp33_; -#line 67 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - if (_tmp34_ == SPIT_TRANSITIONS_DIRECTION_FORWARD) { -#line 568 "ChessEffect.c" - GdkRectangle _tmp35_ = {0}; - GdkRectangle _tmp36_; - gint _tmp37_; - gdouble _tmp38_; - gdouble _tmp39_; - GdkRectangle _tmp40_ = {0}; - GdkRectangle _tmp41_; - gint _tmp42_; - gdouble _tmp43_; - gdouble _tmp44_; -#line 68 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - spit_transitions_visuals_get_to_pos (visuals, &_tmp35_); -#line 68 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - _tmp36_ = _tmp35_; -#line 68 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - _tmp37_ = _tmp36_.x; -#line 68 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - _tmp38_ = translation; -#line 68 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - _tmp39_ = x; -#line 68 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - spit_transitions_visuals_get_to_pos (visuals, &_tmp40_); -#line 68 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - _tmp41_ = _tmp40_; -#line 68 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - _tmp42_ = _tmp41_.y; -#line 68 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - _tmp43_ = y; -#line 68 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - _tmp44_ = size; -#line 68 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - cairo_rectangle (ctx, (_tmp37_ + _tmp38_) + (_tmp39_ * CHESS_EFFECT_SQUARE_SIZE), _tmp42_ + (_tmp43_ * CHESS_EFFECT_SQUARE_SIZE), _tmp44_, (gdouble) CHESS_EFFECT_SQUARE_SIZE); -#line 601 "ChessEffect.c" - } else { - GdkRectangle _tmp45_ = {0}; - GdkRectangle _tmp46_; - gint _tmp47_; - GdkRectangle _tmp48_ = {0}; - GdkRectangle _tmp49_; - gint _tmp50_; - gdouble _tmp51_; - gdouble _tmp52_; - gdouble _tmp53_; - GdkRectangle _tmp54_ = {0}; - GdkRectangle _tmp55_; - gint _tmp56_; - gdouble _tmp57_; - gdouble _tmp58_; -#line 71 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - spit_transitions_visuals_get_to_pos (visuals, &_tmp45_); -#line 71 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - _tmp46_ = _tmp45_; -#line 71 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - _tmp47_ = _tmp46_.x; -#line 71 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - spit_transitions_visuals_get_to_pos (visuals, &_tmp48_); -#line 71 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - _tmp49_ = _tmp48_; -#line 71 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - _tmp50_ = _tmp49_.width; -#line 71 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - _tmp51_ = translation; -#line 71 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - _tmp52_ = x; -#line 71 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - _tmp53_ = size; -#line 71 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - spit_transitions_visuals_get_to_pos (visuals, &_tmp54_); -#line 71 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - _tmp55_ = _tmp54_; -#line 71 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - _tmp56_ = _tmp55_.y; -#line 71 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - _tmp57_ = y; -#line 71 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - _tmp58_ = size; -#line 71 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - cairo_rectangle (ctx, (((_tmp47_ + _tmp50_) + _tmp51_) - (_tmp52_ * CHESS_EFFECT_SQUARE_SIZE)) - _tmp53_, _tmp56_ + (_tmp57_ * CHESS_EFFECT_SQUARE_SIZE), _tmp58_, (gdouble) CHESS_EFFECT_SQUARE_SIZE); -#line 647 "ChessEffect.c" - } - } - } - } - } - } - } -#line 78 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - cairo_clip (ctx); -#line 79 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - _tmp59_ = alpha; -#line 79 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - cairo_paint_with_alpha (ctx, _tmp59_); -#line 661 "ChessEffect.c" - } -} - - -static void -chess_effect_real_advance (SpitTransitionsEffect* base, - SpitTransitionsVisuals* visuals, - SpitTransitionsMotion* motion, - gint frame_number) -{ - ChessEffect * self; -#line 83 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_CHESS_EFFECT, ChessEffect); -#line 83 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - g_return_if_fail (SPIT_TRANSITIONS_IS_VISUALS (visuals)); -#line 83 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - g_return_if_fail (SPIT_TRANSITIONS_IS_MOTION (motion)); -#line 679 "ChessEffect.c" -} - - -static void -chess_effect_real_cancel (SpitTransitionsEffect* base) -{ - ChessEffect * self; -#line 86 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_CHESS_EFFECT, ChessEffect); -#line 689 "ChessEffect.c" -} - - -static void -chess_effect_class_init (ChessEffectClass * klass) -{ -#line 28 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - chess_effect_parent_class = g_type_class_peek_parent (klass); -#line 28 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - g_type_class_add_private (klass, sizeof (ChessEffectPrivate)); -#line 28 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - G_OBJECT_CLASS (klass)->finalize = chess_effect_finalize; -#line 702 "ChessEffect.c" -} - - -static void -chess_effect_spit_transitions_effect_interface_init (SpitTransitionsEffectIface * iface) -{ -#line 28 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - chess_effect_spit_transitions_effect_parent_iface = g_type_interface_peek_parent (iface); -#line 28 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - iface->get_fps = (void (*) (SpitTransitionsEffect *, gint*, gint*)) chess_effect_real_get_fps; -#line 28 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - iface->start = (void (*) (SpitTransitionsEffect *, SpitTransitionsVisuals*, SpitTransitionsMotion*)) chess_effect_real_start; -#line 28 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - iface->needs_clear_background = (gboolean (*) (SpitTransitionsEffect *)) chess_effect_real_needs_clear_background; -#line 28 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - iface->paint = (void (*) (SpitTransitionsEffect *, SpitTransitionsVisuals*, SpitTransitionsMotion*, cairo_t*, gint, gint, gint)) chess_effect_real_paint; -#line 28 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - iface->advance = (void (*) (SpitTransitionsEffect *, SpitTransitionsVisuals*, SpitTransitionsMotion*, gint)) chess_effect_real_advance; -#line 28 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - iface->cancel = (void (*) (SpitTransitionsEffect *)) chess_effect_real_cancel; -#line 723 "ChessEffect.c" -} - - -static void -chess_effect_instance_init (ChessEffect * self) -{ -#line 28 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - self->priv = CHESS_EFFECT_GET_PRIVATE (self); -#line 732 "ChessEffect.c" -} - - -static void -chess_effect_finalize (GObject * obj) -{ - ChessEffect * self; -#line 28 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_CHESS_EFFECT, ChessEffect); -#line 28 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - G_OBJECT_CLASS (chess_effect_parent_class)->finalize (obj); -#line 744 "ChessEffect.c" -} - - -GType -chess_effect_get_type (void) -{ - static volatile gsize chess_effect_type_id__volatile = 0; - if (g_once_init_enter (&chess_effect_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (ChessEffectClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) chess_effect_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (ChessEffect), 0, (GInstanceInitFunc) chess_effect_instance_init, NULL }; - static const GInterfaceInfo spit_transitions_effect_info = { (GInterfaceInitFunc) chess_effect_spit_transitions_effect_interface_init, (GInterfaceFinalizeFunc) NULL, NULL}; - GType chess_effect_type_id; - chess_effect_type_id = g_type_register_static (G_TYPE_OBJECT, "ChessEffect", &g_define_type_info, 0); - g_type_add_interface_static (chess_effect_type_id, SPIT_TRANSITIONS_TYPE_EFFECT, &spit_transitions_effect_info); - g_once_init_leave (&chess_effect_type_id__volatile, chess_effect_type_id); - } - return chess_effect_type_id__volatile; -} - - - diff --git a/plugins/shotwell-transitions/CircleEffect.c b/plugins/shotwell-transitions/CircleEffect.c deleted file mode 100644 index cb2b660..0000000 --- a/plugins/shotwell-transitions/CircleEffect.c +++ /dev/null @@ -1,528 +0,0 @@ -/* CircleEffect.c generated by valac 0.40.4, the Vala compiler - * generated from CircleEffect.vala, do not modify */ - -/* Copyright 2013 Jens Bav - * Copyright 2016 Software Freedom Conservancy Inc. - * - * This software is licensed under the GNU Lesser General Public License - * (version 2.1 or later). See the COPYING file in this distribution. - */ - - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include - - -#define TYPE_SHOTWELL_TRANSITION_DESCRIPTOR (shotwell_transition_descriptor_get_type ()) -#define SHOTWELL_TRANSITION_DESCRIPTOR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SHOTWELL_TRANSITION_DESCRIPTOR, ShotwellTransitionDescriptor)) -#define SHOTWELL_TRANSITION_DESCRIPTOR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SHOTWELL_TRANSITION_DESCRIPTOR, ShotwellTransitionDescriptorClass)) -#define IS_SHOTWELL_TRANSITION_DESCRIPTOR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SHOTWELL_TRANSITION_DESCRIPTOR)) -#define IS_SHOTWELL_TRANSITION_DESCRIPTOR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SHOTWELL_TRANSITION_DESCRIPTOR)) -#define SHOTWELL_TRANSITION_DESCRIPTOR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SHOTWELL_TRANSITION_DESCRIPTOR, ShotwellTransitionDescriptorClass)) - -typedef struct _ShotwellTransitionDescriptor ShotwellTransitionDescriptor; -typedef struct _ShotwellTransitionDescriptorClass ShotwellTransitionDescriptorClass; -typedef struct _ShotwellTransitionDescriptorPrivate ShotwellTransitionDescriptorPrivate; - -#define TYPE_CIRCLE_EFFECT_DESCRIPTOR (circle_effect_descriptor_get_type ()) -#define CIRCLE_EFFECT_DESCRIPTOR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_CIRCLE_EFFECT_DESCRIPTOR, CircleEffectDescriptor)) -#define CIRCLE_EFFECT_DESCRIPTOR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_CIRCLE_EFFECT_DESCRIPTOR, CircleEffectDescriptorClass)) -#define IS_CIRCLE_EFFECT_DESCRIPTOR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_CIRCLE_EFFECT_DESCRIPTOR)) -#define IS_CIRCLE_EFFECT_DESCRIPTOR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_CIRCLE_EFFECT_DESCRIPTOR)) -#define CIRCLE_EFFECT_DESCRIPTOR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_CIRCLE_EFFECT_DESCRIPTOR, CircleEffectDescriptorClass)) - -typedef struct _CircleEffectDescriptor CircleEffectDescriptor; -typedef struct _CircleEffectDescriptorClass CircleEffectDescriptorClass; -typedef struct _CircleEffectDescriptorPrivate CircleEffectDescriptorPrivate; -enum { - CIRCLE_EFFECT_DESCRIPTOR_0_PROPERTY, - CIRCLE_EFFECT_DESCRIPTOR_NUM_PROPERTIES -}; -static GParamSpec* circle_effect_descriptor_properties[CIRCLE_EFFECT_DESCRIPTOR_NUM_PROPERTIES]; - -#define TYPE_CIRCLE_EFFECT (circle_effect_get_type ()) -#define CIRCLE_EFFECT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_CIRCLE_EFFECT, CircleEffect)) -#define CIRCLE_EFFECT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_CIRCLE_EFFECT, CircleEffectClass)) -#define IS_CIRCLE_EFFECT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_CIRCLE_EFFECT)) -#define IS_CIRCLE_EFFECT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_CIRCLE_EFFECT)) -#define CIRCLE_EFFECT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_CIRCLE_EFFECT, CircleEffectClass)) - -typedef struct _CircleEffect CircleEffect; -typedef struct _CircleEffectClass CircleEffectClass; -typedef struct _CircleEffectPrivate CircleEffectPrivate; -enum { - CIRCLE_EFFECT_0_PROPERTY, - CIRCLE_EFFECT_NUM_PROPERTIES -}; -static GParamSpec* circle_effect_properties[CIRCLE_EFFECT_NUM_PROPERTIES]; - -struct _ShotwellTransitionDescriptor { - GObject parent_instance; - ShotwellTransitionDescriptorPrivate * priv; -}; - -struct _ShotwellTransitionDescriptorClass { - GObjectClass parent_class; - const gchar* (*get_id) (ShotwellTransitionDescriptor* self); - const gchar* (*get_pluggable_name) (ShotwellTransitionDescriptor* self); - SpitTransitionsEffect* (*create) (ShotwellTransitionDescriptor* self, SpitHostInterface* host); -}; - -struct _CircleEffectDescriptor { - ShotwellTransitionDescriptor parent_instance; - CircleEffectDescriptorPrivate * priv; -}; - -struct _CircleEffectDescriptorClass { - ShotwellTransitionDescriptorClass parent_class; -}; - -struct _CircleEffect { - GObject parent_instance; - CircleEffectPrivate * priv; -}; - -struct _CircleEffectClass { - GObjectClass parent_class; -}; - - -static gpointer circle_effect_descriptor_parent_class = NULL; -static gpointer circle_effect_parent_class = NULL; -static SpitTransitionsEffectIface * circle_effect_spit_transitions_effect_parent_iface = NULL; - -GType shotwell_transition_descriptor_get_type (void) G_GNUC_CONST; -GType circle_effect_descriptor_get_type (void) G_GNUC_CONST; -CircleEffectDescriptor* circle_effect_descriptor_new (GFile* resource_directory); -CircleEffectDescriptor* circle_effect_descriptor_construct (GType object_type, - GFile* resource_directory); -ShotwellTransitionDescriptor* shotwell_transition_descriptor_construct (GType object_type, - GFile* resource_directory); -static const gchar* circle_effect_descriptor_real_get_id (ShotwellTransitionDescriptor* base); -static const gchar* circle_effect_descriptor_real_get_pluggable_name (ShotwellTransitionDescriptor* base); -static SpitTransitionsEffect* circle_effect_descriptor_real_create (ShotwellTransitionDescriptor* base, - SpitHostInterface* host); -CircleEffect* circle_effect_new (void); -CircleEffect* circle_effect_construct (GType object_type); -GType circle_effect_get_type (void) G_GNUC_CONST; -#define CIRCLE_EFFECT_DESIRED_FPS 25 -#define CIRCLE_EFFECT_MIN_FPS 15 -static void circle_effect_real_get_fps (SpitTransitionsEffect* base, - gint* desired_fps, - gint* min_fps); -static void circle_effect_real_start (SpitTransitionsEffect* base, - SpitTransitionsVisuals* visuals, - SpitTransitionsMotion* motion); -static gboolean circle_effect_real_needs_clear_background (SpitTransitionsEffect* base); -static void circle_effect_real_paint (SpitTransitionsEffect* base, - SpitTransitionsVisuals* visuals, - SpitTransitionsMotion* motion, - cairo_t* ctx, - gint width, - gint height, - gint frame_number); -static void circle_effect_real_advance (SpitTransitionsEffect* base, - SpitTransitionsVisuals* visuals, - SpitTransitionsMotion* motion, - gint frame_number); -static void circle_effect_real_cancel (SpitTransitionsEffect* base); - - -CircleEffectDescriptor* -circle_effect_descriptor_construct (GType object_type, - GFile* resource_directory) -{ - CircleEffectDescriptor * self = NULL; -#line 11 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CircleEffect.vala" - g_return_val_if_fail (G_IS_FILE (resource_directory), NULL); -#line 12 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CircleEffect.vala" - self = (CircleEffectDescriptor*) shotwell_transition_descriptor_construct (object_type, resource_directory); -#line 11 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CircleEffect.vala" - return self; -#line 152 "CircleEffect.c" -} - - -CircleEffectDescriptor* -circle_effect_descriptor_new (GFile* resource_directory) -{ -#line 11 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CircleEffect.vala" - return circle_effect_descriptor_construct (TYPE_CIRCLE_EFFECT_DESCRIPTOR, resource_directory); -#line 161 "CircleEffect.c" -} - - -static const gchar* -circle_effect_descriptor_real_get_id (ShotwellTransitionDescriptor* base) -{ - CircleEffectDescriptor * self; - const gchar* result = NULL; -#line 15 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CircleEffect.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_CIRCLE_EFFECT_DESCRIPTOR, CircleEffectDescriptor); -#line 16 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CircleEffect.vala" - result = "org.yorba.shotwell.transitions.circle"; -#line 16 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CircleEffect.vala" - return result; -#line 176 "CircleEffect.c" -} - - -static const gchar* -circle_effect_descriptor_real_get_pluggable_name (ShotwellTransitionDescriptor* base) -{ - CircleEffectDescriptor * self; - const gchar* result = NULL; -#line 19 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CircleEffect.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_CIRCLE_EFFECT_DESCRIPTOR, CircleEffectDescriptor); -#line 20 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CircleEffect.vala" - result = _ ("Circle"); -#line 20 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CircleEffect.vala" - return result; -#line 191 "CircleEffect.c" -} - - -static SpitTransitionsEffect* -circle_effect_descriptor_real_create (ShotwellTransitionDescriptor* base, - SpitHostInterface* host) -{ - CircleEffectDescriptor * self; - SpitTransitionsEffect* result = NULL; - CircleEffect* _tmp0_; -#line 23 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CircleEffect.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_CIRCLE_EFFECT_DESCRIPTOR, CircleEffectDescriptor); -#line 23 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CircleEffect.vala" - g_return_val_if_fail (SPIT_IS_HOST_INTERFACE (host), NULL); -#line 24 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CircleEffect.vala" - _tmp0_ = circle_effect_new (); -#line 24 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CircleEffect.vala" - result = G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, SPIT_TRANSITIONS_TYPE_EFFECT, SpitTransitionsEffect); -#line 24 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CircleEffect.vala" - return result; -#line 212 "CircleEffect.c" -} - - -static void -circle_effect_descriptor_class_init (CircleEffectDescriptorClass * klass) -{ -#line 10 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CircleEffect.vala" - circle_effect_descriptor_parent_class = g_type_class_peek_parent (klass); -#line 10 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CircleEffect.vala" - ((ShotwellTransitionDescriptorClass *) klass)->get_id = (const gchar* (*) (ShotwellTransitionDescriptor *)) circle_effect_descriptor_real_get_id; -#line 10 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CircleEffect.vala" - ((ShotwellTransitionDescriptorClass *) klass)->get_pluggable_name = (const gchar* (*) (ShotwellTransitionDescriptor *)) circle_effect_descriptor_real_get_pluggable_name; -#line 10 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CircleEffect.vala" - ((ShotwellTransitionDescriptorClass *) klass)->create = (SpitTransitionsEffect* (*) (ShotwellTransitionDescriptor *, SpitHostInterface*)) circle_effect_descriptor_real_create; -#line 227 "CircleEffect.c" -} - - -static void -circle_effect_descriptor_instance_init (CircleEffectDescriptor * self) -{ -} - - -GType -circle_effect_descriptor_get_type (void) -{ - static volatile gsize circle_effect_descriptor_type_id__volatile = 0; - if (g_once_init_enter (&circle_effect_descriptor_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (CircleEffectDescriptorClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) circle_effect_descriptor_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (CircleEffectDescriptor), 0, (GInstanceInitFunc) circle_effect_descriptor_instance_init, NULL }; - GType circle_effect_descriptor_type_id; - circle_effect_descriptor_type_id = g_type_register_static (TYPE_SHOTWELL_TRANSITION_DESCRIPTOR, "CircleEffectDescriptor", &g_define_type_info, 0); - g_once_init_leave (&circle_effect_descriptor_type_id__volatile, circle_effect_descriptor_type_id); - } - return circle_effect_descriptor_type_id__volatile; -} - - -CircleEffect* -circle_effect_construct (GType object_type) -{ - CircleEffect * self = NULL; -#line 32 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CircleEffect.vala" - self = (CircleEffect*) g_object_new (object_type, NULL); -#line 32 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CircleEffect.vala" - return self; -#line 259 "CircleEffect.c" -} - - -CircleEffect* -circle_effect_new (void) -{ -#line 32 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CircleEffect.vala" - return circle_effect_construct (TYPE_CIRCLE_EFFECT); -#line 268 "CircleEffect.c" -} - - -static void -circle_effect_real_get_fps (SpitTransitionsEffect* base, - gint* desired_fps, - gint* min_fps) -{ - CircleEffect * self; - gint _vala_desired_fps = 0; - gint _vala_min_fps = 0; -#line 35 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CircleEffect.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_CIRCLE_EFFECT, CircleEffect); -#line 36 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CircleEffect.vala" - _vala_desired_fps = CIRCLE_EFFECT_DESIRED_FPS; -#line 37 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CircleEffect.vala" - _vala_min_fps = CIRCLE_EFFECT_MIN_FPS; -#line 35 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CircleEffect.vala" - if (desired_fps) { -#line 35 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CircleEffect.vala" - *desired_fps = _vala_desired_fps; -#line 290 "CircleEffect.c" - } -#line 35 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CircleEffect.vala" - if (min_fps) { -#line 35 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CircleEffect.vala" - *min_fps = _vala_min_fps; -#line 296 "CircleEffect.c" - } -} - - -static void -circle_effect_real_start (SpitTransitionsEffect* base, - SpitTransitionsVisuals* visuals, - SpitTransitionsMotion* motion) -{ - CircleEffect * self; -#line 40 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CircleEffect.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_CIRCLE_EFFECT, CircleEffect); -#line 40 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CircleEffect.vala" - g_return_if_fail (SPIT_TRANSITIONS_IS_VISUALS (visuals)); -#line 40 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CircleEffect.vala" - g_return_if_fail (SPIT_TRANSITIONS_IS_MOTION (motion)); -#line 313 "CircleEffect.c" -} - - -static gboolean -circle_effect_real_needs_clear_background (SpitTransitionsEffect* base) -{ - CircleEffect * self; - gboolean result = FALSE; -#line 43 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CircleEffect.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_CIRCLE_EFFECT, CircleEffect); -#line 44 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CircleEffect.vala" - result = TRUE; -#line 44 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CircleEffect.vala" - return result; -#line 328 "CircleEffect.c" -} - - -static void -circle_effect_real_paint (SpitTransitionsEffect* base, - SpitTransitionsVisuals* visuals, - SpitTransitionsMotion* motion, - cairo_t* ctx, - gint width, - gint height, - gint frame_number) -{ - CircleEffect * self; - gdouble alpha = 0.0; - gint radius = 0; - gdouble _tmp0_; - GdkPixbuf* _tmp1_; - GdkPixbuf* _tmp2_; - GdkPixbuf* _tmp12_; - GdkPixbuf* _tmp13_; -#line 47 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CircleEffect.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_CIRCLE_EFFECT, CircleEffect); -#line 47 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CircleEffect.vala" - g_return_if_fail (SPIT_TRANSITIONS_IS_VISUALS (visuals)); -#line 47 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CircleEffect.vala" - g_return_if_fail (SPIT_TRANSITIONS_IS_MOTION (motion)); -#line 47 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CircleEffect.vala" - g_return_if_fail (ctx != NULL); -#line 49 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CircleEffect.vala" - alpha = spit_transitions_motion_get_alpha (motion, frame_number); -#line 50 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CircleEffect.vala" - _tmp0_ = alpha; -#line 50 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CircleEffect.vala" - radius = (gint) (_tmp0_ * fmax ((gdouble) width, (gdouble) height)); -#line 52 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CircleEffect.vala" - _tmp1_ = spit_transitions_visuals_get_from_pixbuf (visuals); -#line 52 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CircleEffect.vala" - _tmp2_ = _tmp1_; -#line 52 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CircleEffect.vala" - if (_tmp2_ != NULL) { -#line 369 "CircleEffect.c" - GdkPixbuf* _tmp3_; - GdkPixbuf* _tmp4_; - GdkRectangle _tmp5_ = {0}; - GdkRectangle _tmp6_; - gint _tmp7_; - GdkRectangle _tmp8_ = {0}; - GdkRectangle _tmp9_; - gint _tmp10_; - gdouble _tmp11_; -#line 53 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CircleEffect.vala" - _tmp3_ = spit_transitions_visuals_get_from_pixbuf (visuals); -#line 53 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CircleEffect.vala" - _tmp4_ = _tmp3_; -#line 53 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CircleEffect.vala" - spit_transitions_visuals_get_from_pos (visuals, &_tmp5_); -#line 53 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CircleEffect.vala" - _tmp6_ = _tmp5_; -#line 53 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CircleEffect.vala" - _tmp7_ = _tmp6_.x; -#line 53 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CircleEffect.vala" - spit_transitions_visuals_get_from_pos (visuals, &_tmp8_); -#line 53 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CircleEffect.vala" - _tmp9_ = _tmp8_; -#line 53 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CircleEffect.vala" - _tmp10_ = _tmp9_.y; -#line 53 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CircleEffect.vala" - gdk_cairo_set_source_pixbuf (ctx, _tmp4_, (gdouble) _tmp7_, (gdouble) _tmp10_); -#line 55 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CircleEffect.vala" - _tmp11_ = alpha; -#line 55 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CircleEffect.vala" - cairo_paint_with_alpha (ctx, 1 - _tmp11_); -#line 401 "CircleEffect.c" - } -#line 58 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CircleEffect.vala" - _tmp12_ = spit_transitions_visuals_get_to_pixbuf (visuals); -#line 58 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CircleEffect.vala" - _tmp13_ = _tmp12_; -#line 58 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CircleEffect.vala" - if (_tmp13_ != NULL) { -#line 409 "CircleEffect.c" - GdkPixbuf* _tmp14_; - GdkPixbuf* _tmp15_; - GdkRectangle _tmp16_ = {0}; - GdkRectangle _tmp17_; - gint _tmp18_; - GdkRectangle _tmp19_ = {0}; - GdkRectangle _tmp20_; - gint _tmp21_; - gint _tmp22_; -#line 59 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CircleEffect.vala" - _tmp14_ = spit_transitions_visuals_get_to_pixbuf (visuals); -#line 59 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CircleEffect.vala" - _tmp15_ = _tmp14_; -#line 59 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CircleEffect.vala" - spit_transitions_visuals_get_to_pos (visuals, &_tmp16_); -#line 59 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CircleEffect.vala" - _tmp17_ = _tmp16_; -#line 59 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CircleEffect.vala" - _tmp18_ = _tmp17_.x; -#line 59 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CircleEffect.vala" - spit_transitions_visuals_get_to_pos (visuals, &_tmp19_); -#line 59 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CircleEffect.vala" - _tmp20_ = _tmp19_; -#line 59 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CircleEffect.vala" - _tmp21_ = _tmp20_.y; -#line 59 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CircleEffect.vala" - gdk_cairo_set_source_pixbuf (ctx, _tmp15_, (gdouble) _tmp18_, (gdouble) _tmp21_); -#line 60 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CircleEffect.vala" - _tmp22_ = radius; -#line 60 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CircleEffect.vala" - cairo_arc (ctx, (gdouble) (((gint) width) / 2), (gdouble) (((gint) height) / 2), (gdouble) _tmp22_, (gdouble) 0, 2 * G_PI); -#line 61 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CircleEffect.vala" - cairo_clip (ctx); -#line 62 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CircleEffect.vala" - cairo_paint (ctx); -#line 445 "CircleEffect.c" - } -} - - -static void -circle_effect_real_advance (SpitTransitionsEffect* base, - SpitTransitionsVisuals* visuals, - SpitTransitionsMotion* motion, - gint frame_number) -{ - CircleEffect * self; -#line 66 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CircleEffect.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_CIRCLE_EFFECT, CircleEffect); -#line 66 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CircleEffect.vala" - g_return_if_fail (SPIT_TRANSITIONS_IS_VISUALS (visuals)); -#line 66 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CircleEffect.vala" - g_return_if_fail (SPIT_TRANSITIONS_IS_MOTION (motion)); -#line 463 "CircleEffect.c" -} - - -static void -circle_effect_real_cancel (SpitTransitionsEffect* base) -{ - CircleEffect * self; -#line 69 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CircleEffect.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_CIRCLE_EFFECT, CircleEffect); -#line 473 "CircleEffect.c" -} - - -static void -circle_effect_class_init (CircleEffectClass * klass) -{ -#line 28 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CircleEffect.vala" - circle_effect_parent_class = g_type_class_peek_parent (klass); -#line 482 "CircleEffect.c" -} - - -static void -circle_effect_spit_transitions_effect_interface_init (SpitTransitionsEffectIface * iface) -{ -#line 28 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CircleEffect.vala" - circle_effect_spit_transitions_effect_parent_iface = g_type_interface_peek_parent (iface); -#line 28 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CircleEffect.vala" - iface->get_fps = (void (*) (SpitTransitionsEffect *, gint*, gint*)) circle_effect_real_get_fps; -#line 28 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CircleEffect.vala" - iface->start = (void (*) (SpitTransitionsEffect *, SpitTransitionsVisuals*, SpitTransitionsMotion*)) circle_effect_real_start; -#line 28 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CircleEffect.vala" - iface->needs_clear_background = (gboolean (*) (SpitTransitionsEffect *)) circle_effect_real_needs_clear_background; -#line 28 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CircleEffect.vala" - iface->paint = (void (*) (SpitTransitionsEffect *, SpitTransitionsVisuals*, SpitTransitionsMotion*, cairo_t*, gint, gint, gint)) circle_effect_real_paint; -#line 28 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CircleEffect.vala" - iface->advance = (void (*) (SpitTransitionsEffect *, SpitTransitionsVisuals*, SpitTransitionsMotion*, gint)) circle_effect_real_advance; -#line 28 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CircleEffect.vala" - iface->cancel = (void (*) (SpitTransitionsEffect *)) circle_effect_real_cancel; -#line 503 "CircleEffect.c" -} - - -static void -circle_effect_instance_init (CircleEffect * self) -{ -} - - -GType -circle_effect_get_type (void) -{ - static volatile gsize circle_effect_type_id__volatile = 0; - if (g_once_init_enter (&circle_effect_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (CircleEffectClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) circle_effect_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (CircleEffect), 0, (GInstanceInitFunc) circle_effect_instance_init, NULL }; - static const GInterfaceInfo spit_transitions_effect_info = { (GInterfaceInitFunc) circle_effect_spit_transitions_effect_interface_init, (GInterfaceFinalizeFunc) NULL, NULL}; - GType circle_effect_type_id; - circle_effect_type_id = g_type_register_static (G_TYPE_OBJECT, "CircleEffect", &g_define_type_info, 0); - g_type_add_interface_static (circle_effect_type_id, SPIT_TRANSITIONS_TYPE_EFFECT, &spit_transitions_effect_info); - g_once_init_leave (&circle_effect_type_id__volatile, circle_effect_type_id); - } - return circle_effect_type_id__volatile; -} - - - diff --git a/plugins/shotwell-transitions/CirclesEffect.c b/plugins/shotwell-transitions/CirclesEffect.c deleted file mode 100644 index 410dc93..0000000 --- a/plugins/shotwell-transitions/CirclesEffect.c +++ /dev/null @@ -1,662 +0,0 @@ -/* CirclesEffect.c generated by valac 0.40.4, the Vala compiler - * generated from CirclesEffect.vala, do not modify */ - -/* Copyright 2013 Jens Bav - * Copyright 2016 Software Freedom Conservancy Inc. - * - * This software is licensed under the GNU Lesser General Public License - * (version 2.1 or later). See the COPYING file in this distribution. - */ - - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include - - -#define TYPE_SHOTWELL_TRANSITION_DESCRIPTOR (shotwell_transition_descriptor_get_type ()) -#define SHOTWELL_TRANSITION_DESCRIPTOR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SHOTWELL_TRANSITION_DESCRIPTOR, ShotwellTransitionDescriptor)) -#define SHOTWELL_TRANSITION_DESCRIPTOR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SHOTWELL_TRANSITION_DESCRIPTOR, ShotwellTransitionDescriptorClass)) -#define IS_SHOTWELL_TRANSITION_DESCRIPTOR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SHOTWELL_TRANSITION_DESCRIPTOR)) -#define IS_SHOTWELL_TRANSITION_DESCRIPTOR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SHOTWELL_TRANSITION_DESCRIPTOR)) -#define SHOTWELL_TRANSITION_DESCRIPTOR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SHOTWELL_TRANSITION_DESCRIPTOR, ShotwellTransitionDescriptorClass)) - -typedef struct _ShotwellTransitionDescriptor ShotwellTransitionDescriptor; -typedef struct _ShotwellTransitionDescriptorClass ShotwellTransitionDescriptorClass; -typedef struct _ShotwellTransitionDescriptorPrivate ShotwellTransitionDescriptorPrivate; - -#define TYPE_CIRCLES_EFFECT_DESCRIPTOR (circles_effect_descriptor_get_type ()) -#define CIRCLES_EFFECT_DESCRIPTOR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_CIRCLES_EFFECT_DESCRIPTOR, CirclesEffectDescriptor)) -#define CIRCLES_EFFECT_DESCRIPTOR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_CIRCLES_EFFECT_DESCRIPTOR, CirclesEffectDescriptorClass)) -#define IS_CIRCLES_EFFECT_DESCRIPTOR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_CIRCLES_EFFECT_DESCRIPTOR)) -#define IS_CIRCLES_EFFECT_DESCRIPTOR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_CIRCLES_EFFECT_DESCRIPTOR)) -#define CIRCLES_EFFECT_DESCRIPTOR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_CIRCLES_EFFECT_DESCRIPTOR, CirclesEffectDescriptorClass)) - -typedef struct _CirclesEffectDescriptor CirclesEffectDescriptor; -typedef struct _CirclesEffectDescriptorClass CirclesEffectDescriptorClass; -typedef struct _CirclesEffectDescriptorPrivate CirclesEffectDescriptorPrivate; -enum { - CIRCLES_EFFECT_DESCRIPTOR_0_PROPERTY, - CIRCLES_EFFECT_DESCRIPTOR_NUM_PROPERTIES -}; -static GParamSpec* circles_effect_descriptor_properties[CIRCLES_EFFECT_DESCRIPTOR_NUM_PROPERTIES]; - -#define TYPE_CIRCLES_EFFECT (circles_effect_get_type ()) -#define CIRCLES_EFFECT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_CIRCLES_EFFECT, CirclesEffect)) -#define CIRCLES_EFFECT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_CIRCLES_EFFECT, CirclesEffectClass)) -#define IS_CIRCLES_EFFECT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_CIRCLES_EFFECT)) -#define IS_CIRCLES_EFFECT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_CIRCLES_EFFECT)) -#define CIRCLES_EFFECT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_CIRCLES_EFFECT, CirclesEffectClass)) - -typedef struct _CirclesEffect CirclesEffect; -typedef struct _CirclesEffectClass CirclesEffectClass; -typedef struct _CirclesEffectPrivate CirclesEffectPrivate; -enum { - CIRCLES_EFFECT_0_PROPERTY, - CIRCLES_EFFECT_NUM_PROPERTIES -}; -static GParamSpec* circles_effect_properties[CIRCLES_EFFECT_NUM_PROPERTIES]; - -struct _ShotwellTransitionDescriptor { - GObject parent_instance; - ShotwellTransitionDescriptorPrivate * priv; -}; - -struct _ShotwellTransitionDescriptorClass { - GObjectClass parent_class; - const gchar* (*get_id) (ShotwellTransitionDescriptor* self); - const gchar* (*get_pluggable_name) (ShotwellTransitionDescriptor* self); - SpitTransitionsEffect* (*create) (ShotwellTransitionDescriptor* self, SpitHostInterface* host); -}; - -struct _CirclesEffectDescriptor { - ShotwellTransitionDescriptor parent_instance; - CirclesEffectDescriptorPrivate * priv; -}; - -struct _CirclesEffectDescriptorClass { - ShotwellTransitionDescriptorClass parent_class; -}; - -struct _CirclesEffect { - GObject parent_instance; - CirclesEffectPrivate * priv; -}; - -struct _CirclesEffectClass { - GObjectClass parent_class; -}; - - -static gpointer circles_effect_descriptor_parent_class = NULL; -static gpointer circles_effect_parent_class = NULL; -static SpitTransitionsEffectIface * circles_effect_spit_transitions_effect_parent_iface = NULL; - -GType shotwell_transition_descriptor_get_type (void) G_GNUC_CONST; -GType circles_effect_descriptor_get_type (void) G_GNUC_CONST; -CirclesEffectDescriptor* circles_effect_descriptor_new (GFile* resource_directory); -CirclesEffectDescriptor* circles_effect_descriptor_construct (GType object_type, - GFile* resource_directory); -ShotwellTransitionDescriptor* shotwell_transition_descriptor_construct (GType object_type, - GFile* resource_directory); -static const gchar* circles_effect_descriptor_real_get_id (ShotwellTransitionDescriptor* base); -static const gchar* circles_effect_descriptor_real_get_pluggable_name (ShotwellTransitionDescriptor* base); -static SpitTransitionsEffect* circles_effect_descriptor_real_create (ShotwellTransitionDescriptor* base, - SpitHostInterface* host); -CirclesEffect* circles_effect_new (void); -CirclesEffect* circles_effect_construct (GType object_type); -GType circles_effect_get_type (void) G_GNUC_CONST; -#define CIRCLES_EFFECT_DESIRED_FPS 25 -#define CIRCLES_EFFECT_MIN_FPS 15 -#define CIRCLES_EFFECT_SPEED 2.5 -static void circles_effect_real_get_fps (SpitTransitionsEffect* base, - gint* desired_fps, - gint* min_fps); -static void circles_effect_real_start (SpitTransitionsEffect* base, - SpitTransitionsVisuals* visuals, - SpitTransitionsMotion* motion); -static gboolean circles_effect_real_needs_clear_background (SpitTransitionsEffect* base); -static void circles_effect_real_paint (SpitTransitionsEffect* base, - SpitTransitionsVisuals* visuals, - SpitTransitionsMotion* motion, - cairo_t* ctx, - gint width, - gint height, - gint frame_number); -static void circles_effect_real_advance (SpitTransitionsEffect* base, - SpitTransitionsVisuals* visuals, - SpitTransitionsMotion* motion, - gint frame_number); -static void circles_effect_real_cancel (SpitTransitionsEffect* base); - - -CirclesEffectDescriptor* -circles_effect_descriptor_construct (GType object_type, - GFile* resource_directory) -{ - CirclesEffectDescriptor * self = NULL; -#line 11 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala" - g_return_val_if_fail (G_IS_FILE (resource_directory), NULL); -#line 12 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala" - self = (CirclesEffectDescriptor*) shotwell_transition_descriptor_construct (object_type, resource_directory); -#line 11 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala" - return self; -#line 153 "CirclesEffect.c" -} - - -CirclesEffectDescriptor* -circles_effect_descriptor_new (GFile* resource_directory) -{ -#line 11 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala" - return circles_effect_descriptor_construct (TYPE_CIRCLES_EFFECT_DESCRIPTOR, resource_directory); -#line 162 "CirclesEffect.c" -} - - -static const gchar* -circles_effect_descriptor_real_get_id (ShotwellTransitionDescriptor* base) -{ - CirclesEffectDescriptor * self; - const gchar* result = NULL; -#line 15 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_CIRCLES_EFFECT_DESCRIPTOR, CirclesEffectDescriptor); -#line 16 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala" - result = "org.yorba.shotwell.transitions.circles"; -#line 16 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala" - return result; -#line 177 "CirclesEffect.c" -} - - -static const gchar* -circles_effect_descriptor_real_get_pluggable_name (ShotwellTransitionDescriptor* base) -{ - CirclesEffectDescriptor * self; - const gchar* result = NULL; -#line 19 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_CIRCLES_EFFECT_DESCRIPTOR, CirclesEffectDescriptor); -#line 20 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala" - result = _ ("Circles"); -#line 20 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala" - return result; -#line 192 "CirclesEffect.c" -} - - -static SpitTransitionsEffect* -circles_effect_descriptor_real_create (ShotwellTransitionDescriptor* base, - SpitHostInterface* host) -{ - CirclesEffectDescriptor * self; - SpitTransitionsEffect* result = NULL; - CirclesEffect* _tmp0_; -#line 23 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_CIRCLES_EFFECT_DESCRIPTOR, CirclesEffectDescriptor); -#line 23 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala" - g_return_val_if_fail (SPIT_IS_HOST_INTERFACE (host), NULL); -#line 24 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala" - _tmp0_ = circles_effect_new (); -#line 24 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala" - result = G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, SPIT_TRANSITIONS_TYPE_EFFECT, SpitTransitionsEffect); -#line 24 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala" - return result; -#line 213 "CirclesEffect.c" -} - - -static void -circles_effect_descriptor_class_init (CirclesEffectDescriptorClass * klass) -{ -#line 10 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala" - circles_effect_descriptor_parent_class = g_type_class_peek_parent (klass); -#line 10 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala" - ((ShotwellTransitionDescriptorClass *) klass)->get_id = (const gchar* (*) (ShotwellTransitionDescriptor *)) circles_effect_descriptor_real_get_id; -#line 10 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala" - ((ShotwellTransitionDescriptorClass *) klass)->get_pluggable_name = (const gchar* (*) (ShotwellTransitionDescriptor *)) circles_effect_descriptor_real_get_pluggable_name; -#line 10 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala" - ((ShotwellTransitionDescriptorClass *) klass)->create = (SpitTransitionsEffect* (*) (ShotwellTransitionDescriptor *, SpitHostInterface*)) circles_effect_descriptor_real_create; -#line 228 "CirclesEffect.c" -} - - -static void -circles_effect_descriptor_instance_init (CirclesEffectDescriptor * self) -{ -} - - -GType -circles_effect_descriptor_get_type (void) -{ - static volatile gsize circles_effect_descriptor_type_id__volatile = 0; - if (g_once_init_enter (&circles_effect_descriptor_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (CirclesEffectDescriptorClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) circles_effect_descriptor_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (CirclesEffectDescriptor), 0, (GInstanceInitFunc) circles_effect_descriptor_instance_init, NULL }; - GType circles_effect_descriptor_type_id; - circles_effect_descriptor_type_id = g_type_register_static (TYPE_SHOTWELL_TRANSITION_DESCRIPTOR, "CirclesEffectDescriptor", &g_define_type_info, 0); - g_once_init_leave (&circles_effect_descriptor_type_id__volatile, circles_effect_descriptor_type_id); - } - return circles_effect_descriptor_type_id__volatile; -} - - -CirclesEffect* -circles_effect_construct (GType object_type) -{ - CirclesEffect * self = NULL; -#line 33 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala" - self = (CirclesEffect*) g_object_new (object_type, NULL); -#line 33 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala" - return self; -#line 260 "CirclesEffect.c" -} - - -CirclesEffect* -circles_effect_new (void) -{ -#line 33 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala" - return circles_effect_construct (TYPE_CIRCLES_EFFECT); -#line 269 "CirclesEffect.c" -} - - -static void -circles_effect_real_get_fps (SpitTransitionsEffect* base, - gint* desired_fps, - gint* min_fps) -{ - CirclesEffect * self; - gint _vala_desired_fps = 0; - gint _vala_min_fps = 0; -#line 36 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_CIRCLES_EFFECT, CirclesEffect); -#line 37 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala" - _vala_desired_fps = CIRCLES_EFFECT_DESIRED_FPS; -#line 38 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala" - _vala_min_fps = CIRCLES_EFFECT_MIN_FPS; -#line 36 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala" - if (desired_fps) { -#line 36 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala" - *desired_fps = _vala_desired_fps; -#line 291 "CirclesEffect.c" - } -#line 36 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala" - if (min_fps) { -#line 36 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala" - *min_fps = _vala_min_fps; -#line 297 "CirclesEffect.c" - } -} - - -static void -circles_effect_real_start (SpitTransitionsEffect* base, - SpitTransitionsVisuals* visuals, - SpitTransitionsMotion* motion) -{ - CirclesEffect * self; -#line 41 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_CIRCLES_EFFECT, CirclesEffect); -#line 41 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala" - g_return_if_fail (SPIT_TRANSITIONS_IS_VISUALS (visuals)); -#line 41 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala" - g_return_if_fail (SPIT_TRANSITIONS_IS_MOTION (motion)); -#line 314 "CirclesEffect.c" -} - - -static gboolean -circles_effect_real_needs_clear_background (SpitTransitionsEffect* base) -{ - CirclesEffect * self; - gboolean result = FALSE; -#line 44 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_CIRCLES_EFFECT, CirclesEffect); -#line 45 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala" - result = TRUE; -#line 45 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala" - return result; -#line 329 "CirclesEffect.c" -} - - -static void -circles_effect_real_paint (SpitTransitionsEffect* base, - SpitTransitionsVisuals* visuals, - SpitTransitionsMotion* motion, - cairo_t* ctx, - gint width, - gint height, - gint frame_number) -{ - CirclesEffect * self; - gdouble alpha = 0.0; - gint distance = 0; - gint radius = 0; - gint circleCountX = 0; - gint _tmp0_; - gint circleCountY = 0; - gint _tmp1_; - gdouble maxRadius = 0.0; - gint _tmp2_; - GdkPixbuf* _tmp3_; - GdkPixbuf* _tmp4_; - GdkPixbuf* _tmp14_; - GdkPixbuf* _tmp15_; -#line 48 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_CIRCLES_EFFECT, CirclesEffect); -#line 48 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala" - g_return_if_fail (SPIT_TRANSITIONS_IS_VISUALS (visuals)); -#line 48 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala" - g_return_if_fail (SPIT_TRANSITIONS_IS_MOTION (motion)); -#line 48 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala" - g_return_if_fail (ctx != NULL); -#line 50 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala" - alpha = spit_transitions_motion_get_alpha (motion, frame_number); -#line 51 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala" - distance = 60; -#line 52 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala" - _tmp0_ = distance; -#line 52 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala" - circleCountX = width / (2 * _tmp0_); -#line 53 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala" - _tmp1_ = distance; -#line 53 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala" - circleCountY = height / _tmp1_; -#line 54 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala" - _tmp2_ = distance; -#line 54 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala" - maxRadius = CIRCLES_EFFECT_SPEED * _tmp2_; -#line 56 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala" - _tmp3_ = spit_transitions_visuals_get_from_pixbuf (visuals); -#line 56 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala" - _tmp4_ = _tmp3_; -#line 56 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala" - if (_tmp4_ != NULL) { -#line 386 "CirclesEffect.c" - GdkPixbuf* _tmp5_; - GdkPixbuf* _tmp6_; - GdkRectangle _tmp7_ = {0}; - GdkRectangle _tmp8_; - gint _tmp9_; - GdkRectangle _tmp10_ = {0}; - GdkRectangle _tmp11_; - gint _tmp12_; - gdouble _tmp13_; -#line 57 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala" - _tmp5_ = spit_transitions_visuals_get_from_pixbuf (visuals); -#line 57 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala" - _tmp6_ = _tmp5_; -#line 57 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala" - spit_transitions_visuals_get_from_pos (visuals, &_tmp7_); -#line 57 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala" - _tmp8_ = _tmp7_; -#line 57 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala" - _tmp9_ = _tmp8_.x; -#line 57 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala" - spit_transitions_visuals_get_from_pos (visuals, &_tmp10_); -#line 57 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala" - _tmp11_ = _tmp10_; -#line 57 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala" - _tmp12_ = _tmp11_.y; -#line 57 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala" - gdk_cairo_set_source_pixbuf (ctx, _tmp6_, (gdouble) _tmp9_, (gdouble) _tmp12_); -#line 59 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala" - _tmp13_ = alpha; -#line 59 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala" - cairo_paint_with_alpha (ctx, 1 - _tmp13_); -#line 418 "CirclesEffect.c" - } -#line 62 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala" - _tmp14_ = spit_transitions_visuals_get_to_pixbuf (visuals); -#line 62 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala" - _tmp15_ = _tmp14_; -#line 62 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala" - if (_tmp15_ != NULL) { -#line 426 "CirclesEffect.c" - GdkPixbuf* _tmp16_; - GdkPixbuf* _tmp17_; - GdkRectangle _tmp18_ = {0}; - GdkRectangle _tmp19_; - gint _tmp20_; - GdkRectangle _tmp21_ = {0}; - GdkRectangle _tmp22_; - gint _tmp23_; - gdouble _tmp43_; -#line 63 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala" - _tmp16_ = spit_transitions_visuals_get_to_pixbuf (visuals); -#line 63 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala" - _tmp17_ = _tmp16_; -#line 63 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala" - spit_transitions_visuals_get_to_pos (visuals, &_tmp18_); -#line 63 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala" - _tmp19_ = _tmp18_; -#line 63 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala" - _tmp20_ = _tmp19_.x; -#line 63 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala" - spit_transitions_visuals_get_to_pos (visuals, &_tmp21_); -#line 63 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala" - _tmp22_ = _tmp21_; -#line 63 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala" - _tmp23_ = _tmp22_.y; -#line 63 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala" - gdk_cairo_set_source_pixbuf (ctx, _tmp17_, (gdouble) _tmp20_, (gdouble) _tmp23_); -#line 454 "CirclesEffect.c" - { - gint y = 0; -#line 65 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala" - y = 0; -#line 459 "CirclesEffect.c" - { - gboolean _tmp24_ = FALSE; -#line 65 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala" - _tmp24_ = TRUE; -#line 65 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala" - while (TRUE) { -#line 466 "CirclesEffect.c" - gint _tmp26_; - gint _tmp27_; -#line 65 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala" - if (!_tmp24_) { -#line 471 "CirclesEffect.c" - gint _tmp25_; -#line 65 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala" - _tmp25_ = y; -#line 65 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala" - y = _tmp25_ + 1; -#line 477 "CirclesEffect.c" - } -#line 65 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala" - _tmp24_ = FALSE; -#line 65 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala" - _tmp26_ = y; -#line 65 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala" - _tmp27_ = circleCountY; -#line 65 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala" - if (!(_tmp26_ <= _tmp27_)) { -#line 65 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala" - break; -#line 489 "CirclesEffect.c" - } - { - gint x = 0; -#line 66 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala" - x = 0; -#line 495 "CirclesEffect.c" - { - gboolean _tmp28_ = FALSE; -#line 66 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala" - _tmp28_ = TRUE; -#line 66 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala" - while (TRUE) { -#line 502 "CirclesEffect.c" - gint _tmp30_; - gint _tmp31_; - gdouble _tmp32_; - gint _tmp33_; - gint _tmp34_; - gint _tmp35_; - gint _tmp36_; - gdouble _tmp37_; - gint _tmp38_; - gint _tmp39_; - gint _tmp40_; - gint _tmp41_; - gint _tmp42_; -#line 66 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala" - if (!_tmp28_) { -#line 518 "CirclesEffect.c" - gint _tmp29_; -#line 66 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala" - _tmp29_ = x; -#line 66 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala" - x = _tmp29_ + 1; -#line 524 "CirclesEffect.c" - } -#line 66 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala" - _tmp28_ = FALSE; -#line 66 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala" - _tmp30_ = x; -#line 66 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala" - _tmp31_ = circleCountX; -#line 66 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala" - if (!(_tmp30_ <= _tmp31_)) { -#line 66 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala" - break; -#line 536 "CirclesEffect.c" - } -#line 67 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala" - _tmp32_ = alpha; -#line 67 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala" - _tmp33_ = x; -#line 67 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala" - _tmp34_ = y; -#line 67 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala" - _tmp35_ = circleCountY; -#line 67 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala" - _tmp36_ = circleCountX; -#line 67 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala" - _tmp37_ = maxRadius; -#line 67 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala" - radius = (gint) (fmax ((gdouble) 0, fmin ((gdouble) 1, _tmp32_ - (((gdouble) (_tmp33_ + _tmp34_)) / ((gdouble) ((_tmp35_ + _tmp36_) * CIRCLES_EFFECT_SPEED))))) * _tmp37_); -#line 69 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala" - _tmp38_ = distance; -#line 69 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala" - _tmp39_ = x; -#line 69 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala" - _tmp40_ = distance; -#line 69 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala" - _tmp41_ = y; -#line 69 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala" - _tmp42_ = radius; -#line 69 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala" - cairo_arc (ctx, (gdouble) ((2 * _tmp38_) * _tmp39_), (gdouble) ((2 * _tmp40_) * _tmp41_), (gdouble) _tmp42_, (gdouble) 0, 2 * G_PI); -#line 70 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala" - cairo_fill (ctx); -#line 566 "CirclesEffect.c" - } - } - } - } - } - } -#line 74 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala" - cairo_clip (ctx); -#line 75 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala" - _tmp43_ = alpha; -#line 75 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala" - cairo_paint_with_alpha (ctx, _tmp43_); -#line 579 "CirclesEffect.c" - } -} - - -static void -circles_effect_real_advance (SpitTransitionsEffect* base, - SpitTransitionsVisuals* visuals, - SpitTransitionsMotion* motion, - gint frame_number) -{ - CirclesEffect * self; -#line 81 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_CIRCLES_EFFECT, CirclesEffect); -#line 81 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala" - g_return_if_fail (SPIT_TRANSITIONS_IS_VISUALS (visuals)); -#line 81 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala" - g_return_if_fail (SPIT_TRANSITIONS_IS_MOTION (motion)); -#line 597 "CirclesEffect.c" -} - - -static void -circles_effect_real_cancel (SpitTransitionsEffect* base) -{ - CirclesEffect * self; -#line 84 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_CIRCLES_EFFECT, CirclesEffect); -#line 607 "CirclesEffect.c" -} - - -static void -circles_effect_class_init (CirclesEffectClass * klass) -{ -#line 28 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala" - circles_effect_parent_class = g_type_class_peek_parent (klass); -#line 616 "CirclesEffect.c" -} - - -static void -circles_effect_spit_transitions_effect_interface_init (SpitTransitionsEffectIface * iface) -{ -#line 28 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala" - circles_effect_spit_transitions_effect_parent_iface = g_type_interface_peek_parent (iface); -#line 28 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala" - iface->get_fps = (void (*) (SpitTransitionsEffect *, gint*, gint*)) circles_effect_real_get_fps; -#line 28 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala" - iface->start = (void (*) (SpitTransitionsEffect *, SpitTransitionsVisuals*, SpitTransitionsMotion*)) circles_effect_real_start; -#line 28 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala" - iface->needs_clear_background = (gboolean (*) (SpitTransitionsEffect *)) circles_effect_real_needs_clear_background; -#line 28 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala" - iface->paint = (void (*) (SpitTransitionsEffect *, SpitTransitionsVisuals*, SpitTransitionsMotion*, cairo_t*, gint, gint, gint)) circles_effect_real_paint; -#line 28 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala" - iface->advance = (void (*) (SpitTransitionsEffect *, SpitTransitionsVisuals*, SpitTransitionsMotion*, gint)) circles_effect_real_advance; -#line 28 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala" - iface->cancel = (void (*) (SpitTransitionsEffect *)) circles_effect_real_cancel; -#line 637 "CirclesEffect.c" -} - - -static void -circles_effect_instance_init (CirclesEffect * self) -{ -} - - -GType -circles_effect_get_type (void) -{ - static volatile gsize circles_effect_type_id__volatile = 0; - if (g_once_init_enter (&circles_effect_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (CirclesEffectClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) circles_effect_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (CirclesEffect), 0, (GInstanceInitFunc) circles_effect_instance_init, NULL }; - static const GInterfaceInfo spit_transitions_effect_info = { (GInterfaceInitFunc) circles_effect_spit_transitions_effect_interface_init, (GInterfaceFinalizeFunc) NULL, NULL}; - GType circles_effect_type_id; - circles_effect_type_id = g_type_register_static (G_TYPE_OBJECT, "CirclesEffect", &g_define_type_info, 0); - g_type_add_interface_static (circles_effect_type_id, SPIT_TRANSITIONS_TYPE_EFFECT, &spit_transitions_effect_info); - g_once_init_leave (&circles_effect_type_id__volatile, circles_effect_type_id); - } - return circles_effect_type_id__volatile; -} - - - diff --git a/plugins/shotwell-transitions/ClockEffect.c b/plugins/shotwell-transitions/ClockEffect.c deleted file mode 100644 index f8f3748..0000000 --- a/plugins/shotwell-transitions/ClockEffect.c +++ /dev/null @@ -1,633 +0,0 @@ -/* ClockEffect.c generated by valac 0.40.4, the Vala compiler - * generated from ClockEffect.vala, do not modify */ - -/* Copyright 2013 Jens Bav - * Copyright 2016 Software Freedom Conservancy Inc. - * - * This software is licensed under the GNU Lesser General Public License - * (version 2.1 or later). See the COPYING file in this distribution. - */ - - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include - - -#define TYPE_SHOTWELL_TRANSITION_DESCRIPTOR (shotwell_transition_descriptor_get_type ()) -#define SHOTWELL_TRANSITION_DESCRIPTOR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SHOTWELL_TRANSITION_DESCRIPTOR, ShotwellTransitionDescriptor)) -#define SHOTWELL_TRANSITION_DESCRIPTOR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SHOTWELL_TRANSITION_DESCRIPTOR, ShotwellTransitionDescriptorClass)) -#define IS_SHOTWELL_TRANSITION_DESCRIPTOR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SHOTWELL_TRANSITION_DESCRIPTOR)) -#define IS_SHOTWELL_TRANSITION_DESCRIPTOR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SHOTWELL_TRANSITION_DESCRIPTOR)) -#define SHOTWELL_TRANSITION_DESCRIPTOR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SHOTWELL_TRANSITION_DESCRIPTOR, ShotwellTransitionDescriptorClass)) - -typedef struct _ShotwellTransitionDescriptor ShotwellTransitionDescriptor; -typedef struct _ShotwellTransitionDescriptorClass ShotwellTransitionDescriptorClass; -typedef struct _ShotwellTransitionDescriptorPrivate ShotwellTransitionDescriptorPrivate; - -#define TYPE_CLOCK_EFFECT_DESCRIPTOR (clock_effect_descriptor_get_type ()) -#define CLOCK_EFFECT_DESCRIPTOR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_CLOCK_EFFECT_DESCRIPTOR, ClockEffectDescriptor)) -#define CLOCK_EFFECT_DESCRIPTOR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_CLOCK_EFFECT_DESCRIPTOR, ClockEffectDescriptorClass)) -#define IS_CLOCK_EFFECT_DESCRIPTOR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_CLOCK_EFFECT_DESCRIPTOR)) -#define IS_CLOCK_EFFECT_DESCRIPTOR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_CLOCK_EFFECT_DESCRIPTOR)) -#define CLOCK_EFFECT_DESCRIPTOR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_CLOCK_EFFECT_DESCRIPTOR, ClockEffectDescriptorClass)) - -typedef struct _ClockEffectDescriptor ClockEffectDescriptor; -typedef struct _ClockEffectDescriptorClass ClockEffectDescriptorClass; -typedef struct _ClockEffectDescriptorPrivate ClockEffectDescriptorPrivate; -enum { - CLOCK_EFFECT_DESCRIPTOR_0_PROPERTY, - CLOCK_EFFECT_DESCRIPTOR_NUM_PROPERTIES -}; -static GParamSpec* clock_effect_descriptor_properties[CLOCK_EFFECT_DESCRIPTOR_NUM_PROPERTIES]; - -#define TYPE_CLOCK_EFFECT (clock_effect_get_type ()) -#define CLOCK_EFFECT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_CLOCK_EFFECT, ClockEffect)) -#define CLOCK_EFFECT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_CLOCK_EFFECT, ClockEffectClass)) -#define IS_CLOCK_EFFECT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_CLOCK_EFFECT)) -#define IS_CLOCK_EFFECT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_CLOCK_EFFECT)) -#define CLOCK_EFFECT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_CLOCK_EFFECT, ClockEffectClass)) - -typedef struct _ClockEffect ClockEffect; -typedef struct _ClockEffectClass ClockEffectClass; -typedef struct _ClockEffectPrivate ClockEffectPrivate; -enum { - CLOCK_EFFECT_0_PROPERTY, - CLOCK_EFFECT_NUM_PROPERTIES -}; -static GParamSpec* clock_effect_properties[CLOCK_EFFECT_NUM_PROPERTIES]; - -struct _ShotwellTransitionDescriptor { - GObject parent_instance; - ShotwellTransitionDescriptorPrivate * priv; -}; - -struct _ShotwellTransitionDescriptorClass { - GObjectClass parent_class; - const gchar* (*get_id) (ShotwellTransitionDescriptor* self); - const gchar* (*get_pluggable_name) (ShotwellTransitionDescriptor* self); - SpitTransitionsEffect* (*create) (ShotwellTransitionDescriptor* self, SpitHostInterface* host); -}; - -struct _ClockEffectDescriptor { - ShotwellTransitionDescriptor parent_instance; - ClockEffectDescriptorPrivate * priv; -}; - -struct _ClockEffectDescriptorClass { - ShotwellTransitionDescriptorClass parent_class; -}; - -struct _ClockEffect { - GObject parent_instance; - ClockEffectPrivate * priv; -}; - -struct _ClockEffectClass { - GObjectClass parent_class; -}; - - -static gpointer clock_effect_descriptor_parent_class = NULL; -static gpointer clock_effect_parent_class = NULL; -static SpitTransitionsEffectIface * clock_effect_spit_transitions_effect_parent_iface = NULL; - -GType shotwell_transition_descriptor_get_type (void) G_GNUC_CONST; -GType clock_effect_descriptor_get_type (void) G_GNUC_CONST; -ClockEffectDescriptor* clock_effect_descriptor_new (GFile* resource_directory); -ClockEffectDescriptor* clock_effect_descriptor_construct (GType object_type, - GFile* resource_directory); -ShotwellTransitionDescriptor* shotwell_transition_descriptor_construct (GType object_type, - GFile* resource_directory); -static const gchar* clock_effect_descriptor_real_get_id (ShotwellTransitionDescriptor* base); -static const gchar* clock_effect_descriptor_real_get_pluggable_name (ShotwellTransitionDescriptor* base); -static SpitTransitionsEffect* clock_effect_descriptor_real_create (ShotwellTransitionDescriptor* base, - SpitHostInterface* host); -ClockEffect* clock_effect_new (void); -ClockEffect* clock_effect_construct (GType object_type); -GType clock_effect_get_type (void) G_GNUC_CONST; -#define CLOCK_EFFECT_DESIRED_FPS 25 -#define CLOCK_EFFECT_MIN_FPS 15 -#define CLOCK_EFFECT_TOP_RADIANT (0.5 * G_PI) -static void clock_effect_real_get_fps (SpitTransitionsEffect* base, - gint* desired_fps, - gint* min_fps); -static void clock_effect_real_start (SpitTransitionsEffect* base, - SpitTransitionsVisuals* visuals, - SpitTransitionsMotion* motion); -static gboolean clock_effect_real_needs_clear_background (SpitTransitionsEffect* base); -static void clock_effect_real_paint (SpitTransitionsEffect* base, - SpitTransitionsVisuals* visuals, - SpitTransitionsMotion* motion, - cairo_t* ctx, - gint width, - gint height, - gint frame_number); -static void clock_effect_real_advance (SpitTransitionsEffect* base, - SpitTransitionsVisuals* visuals, - SpitTransitionsMotion* motion, - gint frame_number); -static void clock_effect_real_cancel (SpitTransitionsEffect* base); - - -ClockEffectDescriptor* -clock_effect_descriptor_construct (GType object_type, - GFile* resource_directory) -{ - ClockEffectDescriptor * self = NULL; -#line 11 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala" - g_return_val_if_fail (G_IS_FILE (resource_directory), NULL); -#line 12 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala" - self = (ClockEffectDescriptor*) shotwell_transition_descriptor_construct (object_type, resource_directory); -#line 11 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala" - return self; -#line 153 "ClockEffect.c" -} - - -ClockEffectDescriptor* -clock_effect_descriptor_new (GFile* resource_directory) -{ -#line 11 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala" - return clock_effect_descriptor_construct (TYPE_CLOCK_EFFECT_DESCRIPTOR, resource_directory); -#line 162 "ClockEffect.c" -} - - -static const gchar* -clock_effect_descriptor_real_get_id (ShotwellTransitionDescriptor* base) -{ - ClockEffectDescriptor * self; - const gchar* result = NULL; -#line 15 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_CLOCK_EFFECT_DESCRIPTOR, ClockEffectDescriptor); -#line 16 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala" - result = "org.yorba.shotwell.transitions.clock"; -#line 16 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala" - return result; -#line 177 "ClockEffect.c" -} - - -static const gchar* -clock_effect_descriptor_real_get_pluggable_name (ShotwellTransitionDescriptor* base) -{ - ClockEffectDescriptor * self; - const gchar* result = NULL; -#line 19 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_CLOCK_EFFECT_DESCRIPTOR, ClockEffectDescriptor); -#line 20 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala" - result = _ ("Clock"); -#line 20 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala" - return result; -#line 192 "ClockEffect.c" -} - - -static SpitTransitionsEffect* -clock_effect_descriptor_real_create (ShotwellTransitionDescriptor* base, - SpitHostInterface* host) -{ - ClockEffectDescriptor * self; - SpitTransitionsEffect* result = NULL; - ClockEffect* _tmp0_; -#line 23 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_CLOCK_EFFECT_DESCRIPTOR, ClockEffectDescriptor); -#line 23 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala" - g_return_val_if_fail (SPIT_IS_HOST_INTERFACE (host), NULL); -#line 24 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala" - _tmp0_ = clock_effect_new (); -#line 24 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala" - result = G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, SPIT_TRANSITIONS_TYPE_EFFECT, SpitTransitionsEffect); -#line 24 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala" - return result; -#line 213 "ClockEffect.c" -} - - -static void -clock_effect_descriptor_class_init (ClockEffectDescriptorClass * klass) -{ -#line 10 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala" - clock_effect_descriptor_parent_class = g_type_class_peek_parent (klass); -#line 10 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala" - ((ShotwellTransitionDescriptorClass *) klass)->get_id = (const gchar* (*) (ShotwellTransitionDescriptor *)) clock_effect_descriptor_real_get_id; -#line 10 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala" - ((ShotwellTransitionDescriptorClass *) klass)->get_pluggable_name = (const gchar* (*) (ShotwellTransitionDescriptor *)) clock_effect_descriptor_real_get_pluggable_name; -#line 10 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala" - ((ShotwellTransitionDescriptorClass *) klass)->create = (SpitTransitionsEffect* (*) (ShotwellTransitionDescriptor *, SpitHostInterface*)) clock_effect_descriptor_real_create; -#line 228 "ClockEffect.c" -} - - -static void -clock_effect_descriptor_instance_init (ClockEffectDescriptor * self) -{ -} - - -GType -clock_effect_descriptor_get_type (void) -{ - static volatile gsize clock_effect_descriptor_type_id__volatile = 0; - if (g_once_init_enter (&clock_effect_descriptor_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (ClockEffectDescriptorClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) clock_effect_descriptor_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (ClockEffectDescriptor), 0, (GInstanceInitFunc) clock_effect_descriptor_instance_init, NULL }; - GType clock_effect_descriptor_type_id; - clock_effect_descriptor_type_id = g_type_register_static (TYPE_SHOTWELL_TRANSITION_DESCRIPTOR, "ClockEffectDescriptor", &g_define_type_info, 0); - g_once_init_leave (&clock_effect_descriptor_type_id__volatile, clock_effect_descriptor_type_id); - } - return clock_effect_descriptor_type_id__volatile; -} - - -ClockEffect* -clock_effect_construct (GType object_type) -{ - ClockEffect * self = NULL; -#line 33 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala" - self = (ClockEffect*) g_object_new (object_type, NULL); -#line 33 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala" - return self; -#line 260 "ClockEffect.c" -} - - -ClockEffect* -clock_effect_new (void) -{ -#line 33 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala" - return clock_effect_construct (TYPE_CLOCK_EFFECT); -#line 269 "ClockEffect.c" -} - - -static void -clock_effect_real_get_fps (SpitTransitionsEffect* base, - gint* desired_fps, - gint* min_fps) -{ - ClockEffect * self; - gint _vala_desired_fps = 0; - gint _vala_min_fps = 0; -#line 36 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_CLOCK_EFFECT, ClockEffect); -#line 37 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala" - _vala_desired_fps = CLOCK_EFFECT_DESIRED_FPS; -#line 38 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala" - _vala_min_fps = CLOCK_EFFECT_MIN_FPS; -#line 36 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala" - if (desired_fps) { -#line 36 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala" - *desired_fps = _vala_desired_fps; -#line 291 "ClockEffect.c" - } -#line 36 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala" - if (min_fps) { -#line 36 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala" - *min_fps = _vala_min_fps; -#line 297 "ClockEffect.c" - } -} - - -static void -clock_effect_real_start (SpitTransitionsEffect* base, - SpitTransitionsVisuals* visuals, - SpitTransitionsMotion* motion) -{ - ClockEffect * self; -#line 41 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_CLOCK_EFFECT, ClockEffect); -#line 41 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala" - g_return_if_fail (SPIT_TRANSITIONS_IS_VISUALS (visuals)); -#line 41 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala" - g_return_if_fail (SPIT_TRANSITIONS_IS_MOTION (motion)); -#line 314 "ClockEffect.c" -} - - -static gboolean -clock_effect_real_needs_clear_background (SpitTransitionsEffect* base) -{ - ClockEffect * self; - gboolean result = FALSE; -#line 44 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_CLOCK_EFFECT, ClockEffect); -#line 45 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala" - result = TRUE; -#line 45 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala" - return result; -#line 329 "ClockEffect.c" -} - - -static void -clock_effect_real_paint (SpitTransitionsEffect* base, - SpitTransitionsVisuals* visuals, - SpitTransitionsMotion* motion, - cairo_t* ctx, - gint width, - gint height, - gint frame_number) -{ - ClockEffect * self; - gdouble alpha = 0.0; - gdouble start_angle = 0.0; - gdouble stop_angle = 0.0; - SpitTransitionsDirection _tmp0_; - SpitTransitionsDirection _tmp1_; - gint radius = 0; - GdkRectangle _tmp4_ = {0}; - GdkRectangle _tmp5_; - gint _tmp6_; - GdkRectangle _tmp7_ = {0}; - GdkRectangle _tmp8_; - gint _tmp9_; - GdkPixbuf* _tmp10_; - GdkPixbuf* _tmp11_; - GdkPixbuf* _tmp21_; - GdkPixbuf* _tmp22_; -#line 48 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_CLOCK_EFFECT, ClockEffect); -#line 48 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala" - g_return_if_fail (SPIT_TRANSITIONS_IS_VISUALS (visuals)); -#line 48 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala" - g_return_if_fail (SPIT_TRANSITIONS_IS_MOTION (motion)); -#line 48 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala" - g_return_if_fail (ctx != NULL); -#line 50 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala" - alpha = spit_transitions_motion_get_alpha (motion, frame_number); -#line 51 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala" - start_angle = -CLOCK_EFFECT_TOP_RADIANT; -#line 51 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala" - stop_angle = -CLOCK_EFFECT_TOP_RADIANT; -#line 53 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala" - _tmp0_ = spit_transitions_motion_get_direction (motion); -#line 53 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala" - _tmp1_ = _tmp0_; -#line 53 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala" - if (_tmp1_ == SPIT_TRANSITIONS_DIRECTION_FORWARD) { -#line 379 "ClockEffect.c" - gdouble _tmp2_; -#line 54 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala" - _tmp2_ = alpha; -#line 54 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala" - stop_angle = ((_tmp2_ * G_PI) * 2) - CLOCK_EFFECT_TOP_RADIANT; -#line 385 "ClockEffect.c" - } else { - gdouble _tmp3_; -#line 56 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala" - _tmp3_ = alpha; -#line 56 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala" - start_angle = ((2 * (1 - _tmp3_)) * G_PI) - CLOCK_EFFECT_TOP_RADIANT; -#line 392 "ClockEffect.c" - } -#line 58 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala" - spit_transitions_visuals_get_to_pos (visuals, &_tmp4_); -#line 58 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala" - _tmp5_ = _tmp4_; -#line 58 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala" - _tmp6_ = _tmp5_.width; -#line 58 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala" - spit_transitions_visuals_get_to_pos (visuals, &_tmp7_); -#line 58 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala" - _tmp8_ = _tmp7_; -#line 58 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala" - _tmp9_ = _tmp8_.height; -#line 58 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala" - radius = (gint) fmax ((gdouble) _tmp6_, (gdouble) _tmp9_); -#line 60 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala" - _tmp10_ = spit_transitions_visuals_get_from_pixbuf (visuals); -#line 60 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala" - _tmp11_ = _tmp10_; -#line 60 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala" - if (_tmp11_ != NULL) { -#line 414 "ClockEffect.c" - GdkPixbuf* _tmp12_; - GdkPixbuf* _tmp13_; - GdkRectangle _tmp14_ = {0}; - GdkRectangle _tmp15_; - gint _tmp16_; - GdkRectangle _tmp17_ = {0}; - GdkRectangle _tmp18_; - gint _tmp19_; - gdouble _tmp20_; -#line 61 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala" - _tmp12_ = spit_transitions_visuals_get_from_pixbuf (visuals); -#line 61 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala" - _tmp13_ = _tmp12_; -#line 61 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala" - spit_transitions_visuals_get_from_pos (visuals, &_tmp14_); -#line 61 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala" - _tmp15_ = _tmp14_; -#line 61 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala" - _tmp16_ = _tmp15_.x; -#line 61 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala" - spit_transitions_visuals_get_from_pos (visuals, &_tmp17_); -#line 61 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala" - _tmp18_ = _tmp17_; -#line 61 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala" - _tmp19_ = _tmp18_.y; -#line 61 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala" - gdk_cairo_set_source_pixbuf (ctx, _tmp13_, (gdouble) _tmp16_, (gdouble) _tmp19_); -#line 63 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala" - _tmp20_ = alpha; -#line 63 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala" - cairo_paint_with_alpha (ctx, 1 - _tmp20_); -#line 446 "ClockEffect.c" - } -#line 66 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala" - _tmp21_ = spit_transitions_visuals_get_to_pixbuf (visuals); -#line 66 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala" - _tmp22_ = _tmp21_; -#line 66 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala" - if (_tmp22_ != NULL) { -#line 454 "ClockEffect.c" - GdkPixbuf* _tmp23_; - GdkPixbuf* _tmp24_; - GdkRectangle _tmp25_ = {0}; - GdkRectangle _tmp26_; - gint _tmp27_; - GdkRectangle _tmp28_ = {0}; - GdkRectangle _tmp29_; - gint _tmp30_; - gint x = 0; - GdkRectangle _tmp31_ = {0}; - GdkRectangle _tmp32_; - gint _tmp33_; - GdkRectangle _tmp34_ = {0}; - GdkRectangle _tmp35_; - gint _tmp36_; - gint y = 0; - GdkRectangle _tmp37_ = {0}; - GdkRectangle _tmp38_; - gint _tmp39_; - GdkRectangle _tmp40_ = {0}; - GdkRectangle _tmp41_; - gint _tmp42_; - gint _tmp43_; - gint _tmp44_; - gint _tmp45_; - gint _tmp46_; - gint _tmp47_; - gdouble _tmp48_; - gdouble _tmp49_; -#line 67 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala" - _tmp23_ = spit_transitions_visuals_get_to_pixbuf (visuals); -#line 67 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala" - _tmp24_ = _tmp23_; -#line 67 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala" - spit_transitions_visuals_get_to_pos (visuals, &_tmp25_); -#line 67 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala" - _tmp26_ = _tmp25_; -#line 67 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala" - _tmp27_ = _tmp26_.x; -#line 67 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala" - spit_transitions_visuals_get_to_pos (visuals, &_tmp28_); -#line 67 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala" - _tmp29_ = _tmp28_; -#line 67 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala" - _tmp30_ = _tmp29_.y; -#line 67 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala" - gdk_cairo_set_source_pixbuf (ctx, _tmp24_, (gdouble) _tmp27_, (gdouble) _tmp30_); -#line 69 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala" - spit_transitions_visuals_get_to_pos (visuals, &_tmp31_); -#line 69 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala" - _tmp32_ = _tmp31_; -#line 69 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala" - _tmp33_ = _tmp32_.x; -#line 69 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala" - spit_transitions_visuals_get_to_pos (visuals, &_tmp34_); -#line 69 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala" - _tmp35_ = _tmp34_; -#line 69 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala" - _tmp36_ = _tmp35_.width; -#line 69 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala" - x = _tmp33_ + (((gint) _tmp36_) / 2); -#line 70 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala" - spit_transitions_visuals_get_to_pos (visuals, &_tmp37_); -#line 70 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala" - _tmp38_ = _tmp37_; -#line 70 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala" - _tmp39_ = _tmp38_.y; -#line 70 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala" - spit_transitions_visuals_get_to_pos (visuals, &_tmp40_); -#line 70 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala" - _tmp41_ = _tmp40_; -#line 70 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala" - _tmp42_ = _tmp41_.height; -#line 70 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala" - y = _tmp39_ + (((gint) _tmp42_) / 2); -#line 72 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala" - _tmp43_ = x; -#line 72 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala" - _tmp44_ = y; -#line 72 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala" - cairo_move_to (ctx, (gdouble) _tmp43_, (gdouble) _tmp44_); -#line 73 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala" - _tmp45_ = x; -#line 73 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala" - _tmp46_ = y; -#line 73 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala" - _tmp47_ = radius; -#line 73 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala" - _tmp48_ = start_angle; -#line 73 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala" - _tmp49_ = stop_angle; -#line 73 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala" - cairo_arc (ctx, (gdouble) _tmp45_, (gdouble) _tmp46_, (gdouble) _tmp47_, _tmp48_, _tmp49_); -#line 74 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala" - cairo_fill_preserve (ctx); -#line 550 "ClockEffect.c" - } -} - - -static void -clock_effect_real_advance (SpitTransitionsEffect* base, - SpitTransitionsVisuals* visuals, - SpitTransitionsMotion* motion, - gint frame_number) -{ - ClockEffect * self; -#line 78 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_CLOCK_EFFECT, ClockEffect); -#line 78 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala" - g_return_if_fail (SPIT_TRANSITIONS_IS_VISUALS (visuals)); -#line 78 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala" - g_return_if_fail (SPIT_TRANSITIONS_IS_MOTION (motion)); -#line 568 "ClockEffect.c" -} - - -static void -clock_effect_real_cancel (SpitTransitionsEffect* base) -{ - ClockEffect * self; -#line 81 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_CLOCK_EFFECT, ClockEffect); -#line 578 "ClockEffect.c" -} - - -static void -clock_effect_class_init (ClockEffectClass * klass) -{ -#line 28 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala" - clock_effect_parent_class = g_type_class_peek_parent (klass); -#line 587 "ClockEffect.c" -} - - -static void -clock_effect_spit_transitions_effect_interface_init (SpitTransitionsEffectIface * iface) -{ -#line 28 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala" - clock_effect_spit_transitions_effect_parent_iface = g_type_interface_peek_parent (iface); -#line 28 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala" - iface->get_fps = (void (*) (SpitTransitionsEffect *, gint*, gint*)) clock_effect_real_get_fps; -#line 28 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala" - iface->start = (void (*) (SpitTransitionsEffect *, SpitTransitionsVisuals*, SpitTransitionsMotion*)) clock_effect_real_start; -#line 28 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala" - iface->needs_clear_background = (gboolean (*) (SpitTransitionsEffect *)) clock_effect_real_needs_clear_background; -#line 28 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala" - iface->paint = (void (*) (SpitTransitionsEffect *, SpitTransitionsVisuals*, SpitTransitionsMotion*, cairo_t*, gint, gint, gint)) clock_effect_real_paint; -#line 28 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala" - iface->advance = (void (*) (SpitTransitionsEffect *, SpitTransitionsVisuals*, SpitTransitionsMotion*, gint)) clock_effect_real_advance; -#line 28 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala" - iface->cancel = (void (*) (SpitTransitionsEffect *)) clock_effect_real_cancel; -#line 608 "ClockEffect.c" -} - - -static void -clock_effect_instance_init (ClockEffect * self) -{ -} - - -GType -clock_effect_get_type (void) -{ - static volatile gsize clock_effect_type_id__volatile = 0; - if (g_once_init_enter (&clock_effect_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (ClockEffectClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) clock_effect_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (ClockEffect), 0, (GInstanceInitFunc) clock_effect_instance_init, NULL }; - static const GInterfaceInfo spit_transitions_effect_info = { (GInterfaceInitFunc) clock_effect_spit_transitions_effect_interface_init, (GInterfaceFinalizeFunc) NULL, NULL}; - GType clock_effect_type_id; - clock_effect_type_id = g_type_register_static (G_TYPE_OBJECT, "ClockEffect", &g_define_type_info, 0); - g_type_add_interface_static (clock_effect_type_id, SPIT_TRANSITIONS_TYPE_EFFECT, &spit_transitions_effect_info); - g_once_init_leave (&clock_effect_type_id__volatile, clock_effect_type_id); - } - return clock_effect_type_id__volatile; -} - - - diff --git a/plugins/shotwell-transitions/CrumbleEffect.c b/plugins/shotwell-transitions/CrumbleEffect.c deleted file mode 100644 index 62b4c5e..0000000 --- a/plugins/shotwell-transitions/CrumbleEffect.c +++ /dev/null @@ -1,884 +0,0 @@ -/* CrumbleEffect.c generated by valac 0.40.4, the Vala compiler - * generated from CrumbleEffect.vala, do not modify */ - -/* Copyright 2010 Maxim Kartashev - * Copyright 2016 Software Freedom Conservancy Inc. - * - * This software is licensed under the GNU Lesser General Public License - * (version 2.1 or later). See the COPYING file in this distribution. - */ - - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include - - -#define TYPE_SHOTWELL_TRANSITION_DESCRIPTOR (shotwell_transition_descriptor_get_type ()) -#define SHOTWELL_TRANSITION_DESCRIPTOR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SHOTWELL_TRANSITION_DESCRIPTOR, ShotwellTransitionDescriptor)) -#define SHOTWELL_TRANSITION_DESCRIPTOR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SHOTWELL_TRANSITION_DESCRIPTOR, ShotwellTransitionDescriptorClass)) -#define IS_SHOTWELL_TRANSITION_DESCRIPTOR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SHOTWELL_TRANSITION_DESCRIPTOR)) -#define IS_SHOTWELL_TRANSITION_DESCRIPTOR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SHOTWELL_TRANSITION_DESCRIPTOR)) -#define SHOTWELL_TRANSITION_DESCRIPTOR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SHOTWELL_TRANSITION_DESCRIPTOR, ShotwellTransitionDescriptorClass)) - -typedef struct _ShotwellTransitionDescriptor ShotwellTransitionDescriptor; -typedef struct _ShotwellTransitionDescriptorClass ShotwellTransitionDescriptorClass; -typedef struct _ShotwellTransitionDescriptorPrivate ShotwellTransitionDescriptorPrivate; - -#define TYPE_CRUMBLE_EFFECT_DESCRIPTOR (crumble_effect_descriptor_get_type ()) -#define CRUMBLE_EFFECT_DESCRIPTOR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_CRUMBLE_EFFECT_DESCRIPTOR, CrumbleEffectDescriptor)) -#define CRUMBLE_EFFECT_DESCRIPTOR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_CRUMBLE_EFFECT_DESCRIPTOR, CrumbleEffectDescriptorClass)) -#define IS_CRUMBLE_EFFECT_DESCRIPTOR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_CRUMBLE_EFFECT_DESCRIPTOR)) -#define IS_CRUMBLE_EFFECT_DESCRIPTOR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_CRUMBLE_EFFECT_DESCRIPTOR)) -#define CRUMBLE_EFFECT_DESCRIPTOR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_CRUMBLE_EFFECT_DESCRIPTOR, CrumbleEffectDescriptorClass)) - -typedef struct _CrumbleEffectDescriptor CrumbleEffectDescriptor; -typedef struct _CrumbleEffectDescriptorClass CrumbleEffectDescriptorClass; -typedef struct _CrumbleEffectDescriptorPrivate CrumbleEffectDescriptorPrivate; -enum { - CRUMBLE_EFFECT_DESCRIPTOR_0_PROPERTY, - CRUMBLE_EFFECT_DESCRIPTOR_NUM_PROPERTIES -}; -static GParamSpec* crumble_effect_descriptor_properties[CRUMBLE_EFFECT_DESCRIPTOR_NUM_PROPERTIES]; - -#define TYPE_CRUMBLE_EFFECT (crumble_effect_get_type ()) -#define CRUMBLE_EFFECT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_CRUMBLE_EFFECT, CrumbleEffect)) -#define CRUMBLE_EFFECT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_CRUMBLE_EFFECT, CrumbleEffectClass)) -#define IS_CRUMBLE_EFFECT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_CRUMBLE_EFFECT)) -#define IS_CRUMBLE_EFFECT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_CRUMBLE_EFFECT)) -#define CRUMBLE_EFFECT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_CRUMBLE_EFFECT, CrumbleEffectClass)) - -typedef struct _CrumbleEffect CrumbleEffect; -typedef struct _CrumbleEffectClass CrumbleEffectClass; -typedef struct _CrumbleEffectPrivate CrumbleEffectPrivate; -enum { - CRUMBLE_EFFECT_0_PROPERTY, - CRUMBLE_EFFECT_NUM_PROPERTIES -}; -static GParamSpec* crumble_effect_properties[CRUMBLE_EFFECT_NUM_PROPERTIES]; -#define _cairo_surface_destroy0(var) ((var == NULL) ? NULL : (var = (cairo_surface_destroy (var), NULL))) -#define _cairo_destroy0(var) ((var == NULL) ? NULL : (var = (cairo_destroy (var), NULL))) -#define _g_rand_free0(var) ((var == NULL) ? NULL : (var = (g_rand_free (var), NULL))) - -struct _ShotwellTransitionDescriptor { - GObject parent_instance; - ShotwellTransitionDescriptorPrivate * priv; -}; - -struct _ShotwellTransitionDescriptorClass { - GObjectClass parent_class; - const gchar* (*get_id) (ShotwellTransitionDescriptor* self); - const gchar* (*get_pluggable_name) (ShotwellTransitionDescriptor* self); - SpitTransitionsEffect* (*create) (ShotwellTransitionDescriptor* self, SpitHostInterface* host); -}; - -struct _CrumbleEffectDescriptor { - ShotwellTransitionDescriptor parent_instance; - CrumbleEffectDescriptorPrivate * priv; -}; - -struct _CrumbleEffectDescriptorClass { - ShotwellTransitionDescriptorClass parent_class; -}; - -struct _CrumbleEffect { - GObject parent_instance; - CrumbleEffectPrivate * priv; -}; - -struct _CrumbleEffectClass { - GObjectClass parent_class; -}; - -struct _CrumbleEffectPrivate { - cairo_surface_t** from_stripes; - gint from_stripes_length1; - gint _from_stripes_size_; - gdouble* accelerations; - gint accelerations_length1; - gint _accelerations_size_; - gint stripes_count; -}; - - -static gpointer crumble_effect_descriptor_parent_class = NULL; -static gpointer crumble_effect_parent_class = NULL; -static SpitTransitionsEffectIface * crumble_effect_spit_transitions_effect_parent_iface = NULL; - -GType shotwell_transition_descriptor_get_type (void) G_GNUC_CONST; -GType crumble_effect_descriptor_get_type (void) G_GNUC_CONST; -CrumbleEffectDescriptor* crumble_effect_descriptor_new (GFile* resource_directory); -CrumbleEffectDescriptor* crumble_effect_descriptor_construct (GType object_type, - GFile* resource_directory); -ShotwellTransitionDescriptor* shotwell_transition_descriptor_construct (GType object_type, - GFile* resource_directory); -static const gchar* crumble_effect_descriptor_real_get_id (ShotwellTransitionDescriptor* base); -static const gchar* crumble_effect_descriptor_real_get_pluggable_name (ShotwellTransitionDescriptor* base); -static SpitTransitionsEffect* crumble_effect_descriptor_real_create (ShotwellTransitionDescriptor* base, - SpitHostInterface* host); -CrumbleEffect* crumble_effect_new (void); -CrumbleEffect* crumble_effect_construct (GType object_type); -GType crumble_effect_get_type (void) G_GNUC_CONST; -#define CRUMBLE_EFFECT_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_CRUMBLE_EFFECT, CrumbleEffectPrivate)) -#define CRUMBLE_EFFECT_DESIRED_FPS 25 -#define CRUMBLE_EFFECT_MIN_FPS 15 -#define CRUMBLE_EFFECT_STRIPE_WIDTH 10 -static void crumble_effect_real_get_fps (SpitTransitionsEffect* base, - gint* desired_fps, - gint* min_fps); -static gboolean crumble_effect_real_needs_clear_background (SpitTransitionsEffect* base); -static void crumble_effect_real_start (SpitTransitionsEffect* base, - SpitTransitionsVisuals* visuals, - SpitTransitionsMotion* motion); -static void crumble_effect_real_paint (SpitTransitionsEffect* base, - SpitTransitionsVisuals* visuals, - SpitTransitionsMotion* motion, - cairo_t* ctx, - gint width, - gint height, - gint frame_number); -static void crumble_effect_real_advance (SpitTransitionsEffect* base, - SpitTransitionsVisuals* visuals, - SpitTransitionsMotion* motion, - gint frame_number); -static void crumble_effect_real_cancel (SpitTransitionsEffect* base); -static void crumble_effect_finalize (GObject * obj); -static void _vala_array_destroy (gpointer array, - gint array_length, - GDestroyNotify destroy_func); -static void _vala_array_free (gpointer array, - gint array_length, - GDestroyNotify destroy_func); - - -CrumbleEffectDescriptor* -crumble_effect_descriptor_construct (GType object_type, - GFile* resource_directory) -{ - CrumbleEffectDescriptor * self = NULL; -#line 11 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - g_return_val_if_fail (G_IS_FILE (resource_directory), NULL); -#line 12 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - self = (CrumbleEffectDescriptor*) shotwell_transition_descriptor_construct (object_type, resource_directory); -#line 11 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - return self; -#line 175 "CrumbleEffect.c" -} - - -CrumbleEffectDescriptor* -crumble_effect_descriptor_new (GFile* resource_directory) -{ -#line 11 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - return crumble_effect_descriptor_construct (TYPE_CRUMBLE_EFFECT_DESCRIPTOR, resource_directory); -#line 184 "CrumbleEffect.c" -} - - -static const gchar* -crumble_effect_descriptor_real_get_id (ShotwellTransitionDescriptor* base) -{ - CrumbleEffectDescriptor * self; - const gchar* result = NULL; -#line 15 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_CRUMBLE_EFFECT_DESCRIPTOR, CrumbleEffectDescriptor); -#line 16 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - result = "org.yorba.shotwell.transitions.crumble"; -#line 16 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - return result; -#line 199 "CrumbleEffect.c" -} - - -static const gchar* -crumble_effect_descriptor_real_get_pluggable_name (ShotwellTransitionDescriptor* base) -{ - CrumbleEffectDescriptor * self; - const gchar* result = NULL; -#line 19 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_CRUMBLE_EFFECT_DESCRIPTOR, CrumbleEffectDescriptor); -#line 20 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - result = _ ("Crumble"); -#line 20 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - return result; -#line 214 "CrumbleEffect.c" -} - - -static SpitTransitionsEffect* -crumble_effect_descriptor_real_create (ShotwellTransitionDescriptor* base, - SpitHostInterface* host) -{ - CrumbleEffectDescriptor * self; - SpitTransitionsEffect* result = NULL; - CrumbleEffect* _tmp0_; -#line 23 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_CRUMBLE_EFFECT_DESCRIPTOR, CrumbleEffectDescriptor); -#line 23 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - g_return_val_if_fail (SPIT_IS_HOST_INTERFACE (host), NULL); -#line 24 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - _tmp0_ = crumble_effect_new (); -#line 24 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - result = G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, SPIT_TRANSITIONS_TYPE_EFFECT, SpitTransitionsEffect); -#line 24 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - return result; -#line 235 "CrumbleEffect.c" -} - - -static void -crumble_effect_descriptor_class_init (CrumbleEffectDescriptorClass * klass) -{ -#line 10 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - crumble_effect_descriptor_parent_class = g_type_class_peek_parent (klass); -#line 10 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - ((ShotwellTransitionDescriptorClass *) klass)->get_id = (const gchar* (*) (ShotwellTransitionDescriptor *)) crumble_effect_descriptor_real_get_id; -#line 10 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - ((ShotwellTransitionDescriptorClass *) klass)->get_pluggable_name = (const gchar* (*) (ShotwellTransitionDescriptor *)) crumble_effect_descriptor_real_get_pluggable_name; -#line 10 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - ((ShotwellTransitionDescriptorClass *) klass)->create = (SpitTransitionsEffect* (*) (ShotwellTransitionDescriptor *, SpitHostInterface*)) crumble_effect_descriptor_real_create; -#line 250 "CrumbleEffect.c" -} - - -static void -crumble_effect_descriptor_instance_init (CrumbleEffectDescriptor * self) -{ -} - - -GType -crumble_effect_descriptor_get_type (void) -{ - static volatile gsize crumble_effect_descriptor_type_id__volatile = 0; - if (g_once_init_enter (&crumble_effect_descriptor_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (CrumbleEffectDescriptorClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) crumble_effect_descriptor_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (CrumbleEffectDescriptor), 0, (GInstanceInitFunc) crumble_effect_descriptor_instance_init, NULL }; - GType crumble_effect_descriptor_type_id; - crumble_effect_descriptor_type_id = g_type_register_static (TYPE_SHOTWELL_TRANSITION_DESCRIPTOR, "CrumbleEffectDescriptor", &g_define_type_info, 0); - g_once_init_leave (&crumble_effect_descriptor_type_id__volatile, crumble_effect_descriptor_type_id); - } - return crumble_effect_descriptor_type_id__volatile; -} - - -CrumbleEffect* -crumble_effect_construct (GType object_type) -{ - CrumbleEffect * self = NULL; -#line 38 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - self = (CrumbleEffect*) g_object_new (object_type, NULL); -#line 38 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - return self; -#line 282 "CrumbleEffect.c" -} - - -CrumbleEffect* -crumble_effect_new (void) -{ -#line 38 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - return crumble_effect_construct (TYPE_CRUMBLE_EFFECT); -#line 291 "CrumbleEffect.c" -} - - -static void -crumble_effect_real_get_fps (SpitTransitionsEffect* base, - gint* desired_fps, - gint* min_fps) -{ - CrumbleEffect * self; - gint _vala_desired_fps = 0; - gint _vala_min_fps = 0; -#line 41 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_CRUMBLE_EFFECT, CrumbleEffect); -#line 42 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - _vala_desired_fps = CRUMBLE_EFFECT_DESIRED_FPS; -#line 43 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - _vala_min_fps = CRUMBLE_EFFECT_MIN_FPS; -#line 41 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - if (desired_fps) { -#line 41 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - *desired_fps = _vala_desired_fps; -#line 313 "CrumbleEffect.c" - } -#line 41 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - if (min_fps) { -#line 41 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - *min_fps = _vala_min_fps; -#line 319 "CrumbleEffect.c" - } -} - - -static gboolean -crumble_effect_real_needs_clear_background (SpitTransitionsEffect* base) -{ - CrumbleEffect * self; - gboolean result = FALSE; -#line 46 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_CRUMBLE_EFFECT, CrumbleEffect); -#line 47 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - result = TRUE; -#line 47 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - return result; -#line 335 "CrumbleEffect.c" -} - - -static void -crumble_effect_real_start (SpitTransitionsEffect* base, - SpitTransitionsVisuals* visuals, - SpitTransitionsMotion* motion) -{ - CrumbleEffect * self; - GRand* rand = NULL; - GRand* _tmp0_; - GdkPixbuf* _tmp1_; - GdkPixbuf* _tmp2_; -#line 50 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_CRUMBLE_EFFECT, CrumbleEffect); -#line 50 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - g_return_if_fail (SPIT_TRANSITIONS_IS_VISUALS (visuals)); -#line 50 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - g_return_if_fail (SPIT_TRANSITIONS_IS_MOTION (motion)); -#line 51 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - _tmp0_ = g_rand_new (); -#line 51 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - rand = _tmp0_; -#line 55 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - _tmp1_ = spit_transitions_visuals_get_from_pixbuf (visuals); -#line 55 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - _tmp2_ = _tmp1_; -#line 55 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - if (_tmp2_ != NULL) { -#line 365 "CrumbleEffect.c" - GdkPixbuf* _tmp3_; - GdkPixbuf* _tmp4_; - gint _tmp5_; - gint _tmp6_; - gint _tmp7_; - cairo_surface_t** _tmp8_; - gint _tmp9_; - gdouble* _tmp10_; -#line 56 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - _tmp3_ = spit_transitions_visuals_get_from_pixbuf (visuals); -#line 56 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - _tmp4_ = _tmp3_; -#line 56 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - _tmp5_ = gdk_pixbuf_get_width (_tmp4_); -#line 56 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - _tmp6_ = _tmp5_; -#line 56 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - self->priv->stripes_count = _tmp6_ / CRUMBLE_EFFECT_STRIPE_WIDTH; -#line 57 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - _tmp7_ = self->priv->stripes_count; -#line 57 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - _tmp8_ = g_new0 (cairo_surface_t*, _tmp7_ + 1); -#line 57 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - self->priv->from_stripes = (_vala_array_free (self->priv->from_stripes, self->priv->from_stripes_length1, (GDestroyNotify) cairo_surface_destroy), NULL); -#line 57 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - self->priv->from_stripes = _tmp8_; -#line 57 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - self->priv->from_stripes_length1 = _tmp7_; -#line 57 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - self->priv->_from_stripes_size_ = self->priv->from_stripes_length1; -#line 58 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - _tmp9_ = self->priv->stripes_count; -#line 58 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - _tmp10_ = g_new0 (gdouble, _tmp9_); -#line 58 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - self->priv->accelerations = (g_free (self->priv->accelerations), NULL); -#line 58 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - self->priv->accelerations = _tmp10_; -#line 58 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - self->priv->accelerations_length1 = _tmp9_; -#line 58 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - self->priv->_accelerations_size_ = self->priv->accelerations_length1; -#line 408 "CrumbleEffect.c" - { - gint i = 0; -#line 59 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - i = 0; -#line 413 "CrumbleEffect.c" - { - gboolean _tmp11_ = FALSE; -#line 59 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - _tmp11_ = TRUE; -#line 59 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - while (TRUE) { -#line 420 "CrumbleEffect.c" - gint _tmp13_; - gint _tmp14_; - cairo_surface_t** _tmp15_; - gint _tmp15__length1; - gint _tmp16_; - GdkPixbuf* _tmp17_; - GdkPixbuf* _tmp18_; - gint _tmp19_; - gint _tmp20_; - cairo_surface_t* _tmp21_; - cairo_surface_t* _tmp22_; - cairo_t* ctx = NULL; - cairo_surface_t** _tmp23_; - gint _tmp23__length1; - gint _tmp24_; - cairo_surface_t* _tmp25_; - cairo_t* _tmp26_; - cairo_t* _tmp27_; - GdkPixbuf* _tmp28_; - GdkPixbuf* _tmp29_; - gint _tmp30_; - cairo_t* _tmp31_; - gdouble* _tmp32_; - gint _tmp32__length1; - gint _tmp33_; - GRand* _tmp34_; - gdouble _tmp35_; -#line 59 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - if (!_tmp11_) { -#line 450 "CrumbleEffect.c" - gint _tmp12_; -#line 59 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - _tmp12_ = i; -#line 59 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - i = _tmp12_ + 1; -#line 456 "CrumbleEffect.c" - } -#line 59 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - _tmp11_ = FALSE; -#line 59 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - _tmp13_ = i; -#line 59 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - _tmp14_ = self->priv->stripes_count; -#line 59 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - if (!(_tmp13_ < _tmp14_)) { -#line 59 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - break; -#line 468 "CrumbleEffect.c" - } -#line 60 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - _tmp15_ = self->priv->from_stripes; -#line 60 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - _tmp15__length1 = self->priv->from_stripes_length1; -#line 60 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - _tmp16_ = i; -#line 60 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - _tmp17_ = spit_transitions_visuals_get_from_pixbuf (visuals); -#line 60 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - _tmp18_ = _tmp17_; -#line 60 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - _tmp19_ = gdk_pixbuf_get_height (_tmp18_); -#line 60 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - _tmp20_ = _tmp19_; -#line 60 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - _tmp21_ = cairo_image_surface_create (CAIRO_FORMAT_RGB24, CRUMBLE_EFFECT_STRIPE_WIDTH, _tmp20_); -#line 60 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - _cairo_surface_destroy0 (_tmp15_[_tmp16_]); -#line 60 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - _tmp15_[_tmp16_] = _tmp21_; -#line 60 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - _tmp22_ = _tmp15_[_tmp16_]; -#line 62 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - _tmp23_ = self->priv->from_stripes; -#line 62 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - _tmp23__length1 = self->priv->from_stripes_length1; -#line 62 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - _tmp24_ = i; -#line 62 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - _tmp25_ = _tmp23_[_tmp24_]; -#line 62 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - _tmp26_ = cairo_create (_tmp25_); -#line 62 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - ctx = _tmp26_; -#line 63 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - _tmp27_ = ctx; -#line 63 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - _tmp28_ = spit_transitions_visuals_get_from_pixbuf (visuals); -#line 63 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - _tmp29_ = _tmp28_; -#line 63 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - _tmp30_ = i; -#line 63 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - gdk_cairo_set_source_pixbuf (_tmp27_, _tmp29_, (gdouble) ((-_tmp30_) * CRUMBLE_EFFECT_STRIPE_WIDTH), (gdouble) 0); -#line 64 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - _tmp31_ = ctx; -#line 64 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - cairo_paint (_tmp31_); -#line 65 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - _tmp32_ = self->priv->accelerations; -#line 65 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - _tmp32__length1 = self->priv->accelerations_length1; -#line 65 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - _tmp33_ = i; -#line 65 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - _tmp34_ = rand; -#line 65 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - _tmp32_[_tmp33_] = g_rand_double (_tmp34_); -#line 65 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - _tmp35_ = _tmp32_[_tmp33_]; -#line 59 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - _cairo_destroy0 (ctx); -#line 532 "CrumbleEffect.c" - } - } - } - } -#line 50 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - _g_rand_free0 (rand); -#line 539 "CrumbleEffect.c" -} - - -static void -crumble_effect_real_paint (SpitTransitionsEffect* base, - SpitTransitionsVisuals* visuals, - SpitTransitionsMotion* motion, - cairo_t* ctx, - gint width, - gint height, - gint frame_number) -{ - CrumbleEffect * self; - gdouble alpha = 0.0; - gdouble _tmp0_; -#line 70 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_CRUMBLE_EFFECT, CrumbleEffect); -#line 70 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - g_return_if_fail (SPIT_TRANSITIONS_IS_VISUALS (visuals)); -#line 70 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - g_return_if_fail (SPIT_TRANSITIONS_IS_MOTION (motion)); -#line 70 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - g_return_if_fail (ctx != NULL); -#line 72 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - alpha = spit_transitions_motion_get_alpha (motion, frame_number); -#line 74 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - _tmp0_ = alpha; -#line 74 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - if (_tmp0_ < 0.5) { -#line 569 "CrumbleEffect.c" - gdouble _tmp1_; -#line 76 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - _tmp1_ = alpha; -#line 76 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - alpha = _tmp1_ * 2; -#line 575 "CrumbleEffect.c" - { - gint i = 0; -#line 79 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - i = 0; -#line 580 "CrumbleEffect.c" - { - gboolean _tmp2_ = FALSE; -#line 79 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - _tmp2_ = TRUE; -#line 79 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - while (TRUE) { -#line 587 "CrumbleEffect.c" - gint _tmp4_; - gint _tmp5_; - gint x = 0; - GdkRectangle _tmp6_ = {0}; - GdkRectangle _tmp7_; - gint _tmp8_; - gint _tmp9_; - gdouble a = 0.0; - gdouble _tmp10_; - gdouble _tmp11_; - gdouble* _tmp12_; - gint _tmp12__length1; - gint _tmp13_; - gdouble _tmp14_; - gint y = 0; - GdkRectangle _tmp15_ = {0}; - GdkRectangle _tmp16_; - gint _tmp17_; - GdkPixbuf* _tmp18_; - GdkPixbuf* _tmp19_; - gint _tmp20_; - gint _tmp21_; - gdouble _tmp22_; - gdouble _tmp23_; - cairo_surface_t** _tmp24_; - gint _tmp24__length1; - gint _tmp25_; - cairo_surface_t* _tmp26_; - gint _tmp27_; - gint _tmp28_; -#line 79 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - if (!_tmp2_) { -#line 620 "CrumbleEffect.c" - gint _tmp3_; -#line 79 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - _tmp3_ = i; -#line 79 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - i = _tmp3_ + 1; -#line 626 "CrumbleEffect.c" - } -#line 79 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - _tmp2_ = FALSE; -#line 79 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - _tmp4_ = i; -#line 79 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - _tmp5_ = self->priv->stripes_count; -#line 79 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - if (!(_tmp4_ < _tmp5_)) { -#line 79 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - break; -#line 638 "CrumbleEffect.c" - } -#line 80 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - spit_transitions_visuals_get_from_pos (visuals, &_tmp6_); -#line 80 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - _tmp7_ = _tmp6_; -#line 80 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - _tmp8_ = _tmp7_.x; -#line 80 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - _tmp9_ = i; -#line 80 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - x = _tmp8_ + (_tmp9_ * CRUMBLE_EFFECT_STRIPE_WIDTH); -#line 81 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - _tmp10_ = alpha; -#line 81 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - _tmp11_ = alpha; -#line 81 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - _tmp12_ = self->priv->accelerations; -#line 81 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - _tmp12__length1 = self->priv->accelerations_length1; -#line 81 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - _tmp13_ = i; -#line 81 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - _tmp14_ = _tmp12_[_tmp13_]; -#line 81 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - a = _tmp10_ + (_tmp11_ * _tmp14_); -#line 82 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - spit_transitions_visuals_get_from_pos (visuals, &_tmp15_); -#line 82 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - _tmp16_ = _tmp15_; -#line 82 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - _tmp17_ = _tmp16_.y; -#line 82 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - _tmp18_ = spit_transitions_visuals_get_from_pixbuf (visuals); -#line 82 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - _tmp19_ = _tmp18_; -#line 82 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - _tmp20_ = gdk_pixbuf_get_height (_tmp19_); -#line 82 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - _tmp21_ = _tmp20_; -#line 82 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - _tmp22_ = a; -#line 82 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - _tmp23_ = a; -#line 82 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - y = _tmp17_ + ((gint) ((_tmp21_ * _tmp22_) * _tmp23_)); -#line 84 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - _tmp24_ = self->priv->from_stripes; -#line 84 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - _tmp24__length1 = self->priv->from_stripes_length1; -#line 84 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - _tmp25_ = i; -#line 84 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - _tmp26_ = _tmp24_[_tmp25_]; -#line 84 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - _tmp27_ = x; -#line 84 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - _tmp28_ = y; -#line 84 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - cairo_set_source_surface (ctx, _tmp26_, (gdouble) _tmp27_, (gdouble) _tmp28_); -#line 85 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - cairo_paint (ctx); -#line 700 "CrumbleEffect.c" - } - } - } - } else { - GdkPixbuf* _tmp29_; - GdkPixbuf* _tmp30_; -#line 87 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - _tmp29_ = spit_transitions_visuals_get_to_pixbuf (visuals); -#line 87 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - _tmp30_ = _tmp29_; -#line 87 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - if (_tmp30_ != NULL) { -#line 713 "CrumbleEffect.c" - gdouble _tmp31_; - GdkPixbuf* _tmp32_; - GdkPixbuf* _tmp33_; - GdkRectangle _tmp34_ = {0}; - GdkRectangle _tmp35_; - gint _tmp36_; - GdkRectangle _tmp37_ = {0}; - GdkRectangle _tmp38_; - gint _tmp39_; - gdouble _tmp40_; -#line 89 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - _tmp31_ = alpha; -#line 89 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - alpha = (_tmp31_ - 0.5) * 2; -#line 90 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - _tmp32_ = spit_transitions_visuals_get_to_pixbuf (visuals); -#line 90 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - _tmp33_ = _tmp32_; -#line 90 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - spit_transitions_visuals_get_to_pos (visuals, &_tmp34_); -#line 90 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - _tmp35_ = _tmp34_; -#line 90 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - _tmp36_ = _tmp35_.x; -#line 90 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - spit_transitions_visuals_get_to_pos (visuals, &_tmp37_); -#line 90 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - _tmp38_ = _tmp37_; -#line 90 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - _tmp39_ = _tmp38_.y; -#line 90 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - gdk_cairo_set_source_pixbuf (ctx, _tmp33_, (gdouble) _tmp36_, (gdouble) _tmp39_); -#line 91 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - _tmp40_ = alpha; -#line 91 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - cairo_paint_with_alpha (ctx, _tmp40_); -#line 750 "CrumbleEffect.c" - } else { - } - } -} - - -static void -crumble_effect_real_advance (SpitTransitionsEffect* base, - SpitTransitionsVisuals* visuals, - SpitTransitionsMotion* motion, - gint frame_number) -{ - CrumbleEffect * self; -#line 97 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_CRUMBLE_EFFECT, CrumbleEffect); -#line 97 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - g_return_if_fail (SPIT_TRANSITIONS_IS_VISUALS (visuals)); -#line 97 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - g_return_if_fail (SPIT_TRANSITIONS_IS_MOTION (motion)); -#line 770 "CrumbleEffect.c" -} - - -static void -crumble_effect_real_cancel (SpitTransitionsEffect* base) -{ - CrumbleEffect * self; -#line 100 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_CRUMBLE_EFFECT, CrumbleEffect); -#line 780 "CrumbleEffect.c" -} - - -static void -crumble_effect_class_init (CrumbleEffectClass * klass) -{ -#line 28 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - crumble_effect_parent_class = g_type_class_peek_parent (klass); -#line 28 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - g_type_class_add_private (klass, sizeof (CrumbleEffectPrivate)); -#line 28 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - G_OBJECT_CLASS (klass)->finalize = crumble_effect_finalize; -#line 793 "CrumbleEffect.c" -} - - -static void -crumble_effect_spit_transitions_effect_interface_init (SpitTransitionsEffectIface * iface) -{ -#line 28 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - crumble_effect_spit_transitions_effect_parent_iface = g_type_interface_peek_parent (iface); -#line 28 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - iface->get_fps = (void (*) (SpitTransitionsEffect *, gint*, gint*)) crumble_effect_real_get_fps; -#line 28 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - iface->needs_clear_background = (gboolean (*) (SpitTransitionsEffect *)) crumble_effect_real_needs_clear_background; -#line 28 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - iface->start = (void (*) (SpitTransitionsEffect *, SpitTransitionsVisuals*, SpitTransitionsMotion*)) crumble_effect_real_start; -#line 28 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - iface->paint = (void (*) (SpitTransitionsEffect *, SpitTransitionsVisuals*, SpitTransitionsMotion*, cairo_t*, gint, gint, gint)) crumble_effect_real_paint; -#line 28 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - iface->advance = (void (*) (SpitTransitionsEffect *, SpitTransitionsVisuals*, SpitTransitionsMotion*, gint)) crumble_effect_real_advance; -#line 28 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - iface->cancel = (void (*) (SpitTransitionsEffect *)) crumble_effect_real_cancel; -#line 814 "CrumbleEffect.c" -} - - -static void -crumble_effect_instance_init (CrumbleEffect * self) -{ -#line 28 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - self->priv = CRUMBLE_EFFECT_GET_PRIVATE (self); -#line 823 "CrumbleEffect.c" -} - - -static void -crumble_effect_finalize (GObject * obj) -{ - CrumbleEffect * self; -#line 28 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_CRUMBLE_EFFECT, CrumbleEffect); -#line 34 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - self->priv->from_stripes = (_vala_array_free (self->priv->from_stripes, self->priv->from_stripes_length1, (GDestroyNotify) cairo_surface_destroy), NULL); -#line 35 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - self->priv->accelerations = (g_free (self->priv->accelerations), NULL); -#line 28 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - G_OBJECT_CLASS (crumble_effect_parent_class)->finalize (obj); -#line 839 "CrumbleEffect.c" -} - - -GType -crumble_effect_get_type (void) -{ - static volatile gsize crumble_effect_type_id__volatile = 0; - if (g_once_init_enter (&crumble_effect_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (CrumbleEffectClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) crumble_effect_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (CrumbleEffect), 0, (GInstanceInitFunc) crumble_effect_instance_init, NULL }; - static const GInterfaceInfo spit_transitions_effect_info = { (GInterfaceInitFunc) crumble_effect_spit_transitions_effect_interface_init, (GInterfaceFinalizeFunc) NULL, NULL}; - GType crumble_effect_type_id; - crumble_effect_type_id = g_type_register_static (G_TYPE_OBJECT, "CrumbleEffect", &g_define_type_info, 0); - g_type_add_interface_static (crumble_effect_type_id, SPIT_TRANSITIONS_TYPE_EFFECT, &spit_transitions_effect_info); - g_once_init_leave (&crumble_effect_type_id__volatile, crumble_effect_type_id); - } - return crumble_effect_type_id__volatile; -} - - -static void -_vala_array_destroy (gpointer array, - gint array_length, - GDestroyNotify destroy_func) -{ - if ((array != NULL) && (destroy_func != NULL)) { - int i; - for (i = 0; i < array_length; i = i + 1) { - if (((gpointer*) array)[i] != NULL) { - destroy_func (((gpointer*) array)[i]); - } - } - } -} - - -static void -_vala_array_free (gpointer array, - gint array_length, - GDestroyNotify destroy_func) -{ - _vala_array_destroy (array, array_length, destroy_func); - g_free (array); -} - - - diff --git a/plugins/shotwell-transitions/FadeEffect.c b/plugins/shotwell-transitions/FadeEffect.c deleted file mode 100644 index 25551e2..0000000 --- a/plugins/shotwell-transitions/FadeEffect.c +++ /dev/null @@ -1,518 +0,0 @@ -/* FadeEffect.c generated by valac 0.40.4, the Vala compiler - * generated from FadeEffect.vala, do not modify */ - -/* Copyright 2010 Maxim Kartashev - * Copyright 2016 Software Freedom Conservancy Inc. - * - * This software is licensed under the GNU Lesser General Public License - * (version 2.1 or later). See the COPYING file in this distribution. - */ - - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include - - -#define TYPE_SHOTWELL_TRANSITION_DESCRIPTOR (shotwell_transition_descriptor_get_type ()) -#define SHOTWELL_TRANSITION_DESCRIPTOR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SHOTWELL_TRANSITION_DESCRIPTOR, ShotwellTransitionDescriptor)) -#define SHOTWELL_TRANSITION_DESCRIPTOR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SHOTWELL_TRANSITION_DESCRIPTOR, ShotwellTransitionDescriptorClass)) -#define IS_SHOTWELL_TRANSITION_DESCRIPTOR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SHOTWELL_TRANSITION_DESCRIPTOR)) -#define IS_SHOTWELL_TRANSITION_DESCRIPTOR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SHOTWELL_TRANSITION_DESCRIPTOR)) -#define SHOTWELL_TRANSITION_DESCRIPTOR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SHOTWELL_TRANSITION_DESCRIPTOR, ShotwellTransitionDescriptorClass)) - -typedef struct _ShotwellTransitionDescriptor ShotwellTransitionDescriptor; -typedef struct _ShotwellTransitionDescriptorClass ShotwellTransitionDescriptorClass; -typedef struct _ShotwellTransitionDescriptorPrivate ShotwellTransitionDescriptorPrivate; - -#define TYPE_FADE_EFFECT_DESCRIPTOR (fade_effect_descriptor_get_type ()) -#define FADE_EFFECT_DESCRIPTOR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_FADE_EFFECT_DESCRIPTOR, FadeEffectDescriptor)) -#define FADE_EFFECT_DESCRIPTOR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_FADE_EFFECT_DESCRIPTOR, FadeEffectDescriptorClass)) -#define IS_FADE_EFFECT_DESCRIPTOR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_FADE_EFFECT_DESCRIPTOR)) -#define IS_FADE_EFFECT_DESCRIPTOR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_FADE_EFFECT_DESCRIPTOR)) -#define FADE_EFFECT_DESCRIPTOR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_FADE_EFFECT_DESCRIPTOR, FadeEffectDescriptorClass)) - -typedef struct _FadeEffectDescriptor FadeEffectDescriptor; -typedef struct _FadeEffectDescriptorClass FadeEffectDescriptorClass; -typedef struct _FadeEffectDescriptorPrivate FadeEffectDescriptorPrivate; -enum { - FADE_EFFECT_DESCRIPTOR_0_PROPERTY, - FADE_EFFECT_DESCRIPTOR_NUM_PROPERTIES -}; -static GParamSpec* fade_effect_descriptor_properties[FADE_EFFECT_DESCRIPTOR_NUM_PROPERTIES]; - -#define TYPE_FADE_EFFECT (fade_effect_get_type ()) -#define FADE_EFFECT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_FADE_EFFECT, FadeEffect)) -#define FADE_EFFECT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_FADE_EFFECT, FadeEffectClass)) -#define IS_FADE_EFFECT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_FADE_EFFECT)) -#define IS_FADE_EFFECT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_FADE_EFFECT)) -#define FADE_EFFECT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_FADE_EFFECT, FadeEffectClass)) - -typedef struct _FadeEffect FadeEffect; -typedef struct _FadeEffectClass FadeEffectClass; -typedef struct _FadeEffectPrivate FadeEffectPrivate; -enum { - FADE_EFFECT_0_PROPERTY, - FADE_EFFECT_NUM_PROPERTIES -}; -static GParamSpec* fade_effect_properties[FADE_EFFECT_NUM_PROPERTIES]; - -struct _ShotwellTransitionDescriptor { - GObject parent_instance; - ShotwellTransitionDescriptorPrivate * priv; -}; - -struct _ShotwellTransitionDescriptorClass { - GObjectClass parent_class; - const gchar* (*get_id) (ShotwellTransitionDescriptor* self); - const gchar* (*get_pluggable_name) (ShotwellTransitionDescriptor* self); - SpitTransitionsEffect* (*create) (ShotwellTransitionDescriptor* self, SpitHostInterface* host); -}; - -struct _FadeEffectDescriptor { - ShotwellTransitionDescriptor parent_instance; - FadeEffectDescriptorPrivate * priv; -}; - -struct _FadeEffectDescriptorClass { - ShotwellTransitionDescriptorClass parent_class; -}; - -struct _FadeEffect { - GObject parent_instance; - FadeEffectPrivate * priv; -}; - -struct _FadeEffectClass { - GObjectClass parent_class; -}; - - -static gpointer fade_effect_descriptor_parent_class = NULL; -static gpointer fade_effect_parent_class = NULL; -static SpitTransitionsEffectIface * fade_effect_spit_transitions_effect_parent_iface = NULL; - -GType shotwell_transition_descriptor_get_type (void) G_GNUC_CONST; -GType fade_effect_descriptor_get_type (void) G_GNUC_CONST; -FadeEffectDescriptor* fade_effect_descriptor_new (GFile* resource_directory); -FadeEffectDescriptor* fade_effect_descriptor_construct (GType object_type, - GFile* resource_directory); -ShotwellTransitionDescriptor* shotwell_transition_descriptor_construct (GType object_type, - GFile* resource_directory); -static const gchar* fade_effect_descriptor_real_get_id (ShotwellTransitionDescriptor* base); -static const gchar* fade_effect_descriptor_real_get_pluggable_name (ShotwellTransitionDescriptor* base); -static SpitTransitionsEffect* fade_effect_descriptor_real_create (ShotwellTransitionDescriptor* base, - SpitHostInterface* host); -FadeEffect* fade_effect_new (void); -FadeEffect* fade_effect_construct (GType object_type); -GType fade_effect_get_type (void) G_GNUC_CONST; -#define FADE_EFFECT_DESIRED_FPS 30 -#define FADE_EFFECT_MIN_FPS 20 -static void fade_effect_real_get_fps (SpitTransitionsEffect* base, - gint* desired_fps, - gint* min_fps); -static void fade_effect_real_start (SpitTransitionsEffect* base, - SpitTransitionsVisuals* visuals, - SpitTransitionsMotion* motion); -static gboolean fade_effect_real_needs_clear_background (SpitTransitionsEffect* base); -static void fade_effect_real_paint (SpitTransitionsEffect* base, - SpitTransitionsVisuals* visuals, - SpitTransitionsMotion* motion, - cairo_t* ctx, - gint width, - gint height, - gint frame_number); -static void fade_effect_real_advance (SpitTransitionsEffect* base, - SpitTransitionsVisuals* visuals, - SpitTransitionsMotion* motion, - gint frame_number); -static void fade_effect_real_cancel (SpitTransitionsEffect* base); - - -FadeEffectDescriptor* -fade_effect_descriptor_construct (GType object_type, - GFile* resource_directory) -{ - FadeEffectDescriptor * self = NULL; -#line 11 "/home/jens/Source/shotwell/plugins/shotwell-transitions/FadeEffect.vala" - g_return_val_if_fail (G_IS_FILE (resource_directory), NULL); -#line 12 "/home/jens/Source/shotwell/plugins/shotwell-transitions/FadeEffect.vala" - self = (FadeEffectDescriptor*) shotwell_transition_descriptor_construct (object_type, resource_directory); -#line 11 "/home/jens/Source/shotwell/plugins/shotwell-transitions/FadeEffect.vala" - return self; -#line 152 "FadeEffect.c" -} - - -FadeEffectDescriptor* -fade_effect_descriptor_new (GFile* resource_directory) -{ -#line 11 "/home/jens/Source/shotwell/plugins/shotwell-transitions/FadeEffect.vala" - return fade_effect_descriptor_construct (TYPE_FADE_EFFECT_DESCRIPTOR, resource_directory); -#line 161 "FadeEffect.c" -} - - -static const gchar* -fade_effect_descriptor_real_get_id (ShotwellTransitionDescriptor* base) -{ - FadeEffectDescriptor * self; - const gchar* result = NULL; -#line 15 "/home/jens/Source/shotwell/plugins/shotwell-transitions/FadeEffect.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_FADE_EFFECT_DESCRIPTOR, FadeEffectDescriptor); -#line 16 "/home/jens/Source/shotwell/plugins/shotwell-transitions/FadeEffect.vala" - result = "org.yorba.shotwell.transitions.fade"; -#line 16 "/home/jens/Source/shotwell/plugins/shotwell-transitions/FadeEffect.vala" - return result; -#line 176 "FadeEffect.c" -} - - -static const gchar* -fade_effect_descriptor_real_get_pluggable_name (ShotwellTransitionDescriptor* base) -{ - FadeEffectDescriptor * self; - const gchar* result = NULL; -#line 19 "/home/jens/Source/shotwell/plugins/shotwell-transitions/FadeEffect.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_FADE_EFFECT_DESCRIPTOR, FadeEffectDescriptor); -#line 20 "/home/jens/Source/shotwell/plugins/shotwell-transitions/FadeEffect.vala" - result = _ ("Fade"); -#line 20 "/home/jens/Source/shotwell/plugins/shotwell-transitions/FadeEffect.vala" - return result; -#line 191 "FadeEffect.c" -} - - -static SpitTransitionsEffect* -fade_effect_descriptor_real_create (ShotwellTransitionDescriptor* base, - SpitHostInterface* host) -{ - FadeEffectDescriptor * self; - SpitTransitionsEffect* result = NULL; - FadeEffect* _tmp0_; -#line 23 "/home/jens/Source/shotwell/plugins/shotwell-transitions/FadeEffect.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_FADE_EFFECT_DESCRIPTOR, FadeEffectDescriptor); -#line 23 "/home/jens/Source/shotwell/plugins/shotwell-transitions/FadeEffect.vala" - g_return_val_if_fail (SPIT_IS_HOST_INTERFACE (host), NULL); -#line 24 "/home/jens/Source/shotwell/plugins/shotwell-transitions/FadeEffect.vala" - _tmp0_ = fade_effect_new (); -#line 24 "/home/jens/Source/shotwell/plugins/shotwell-transitions/FadeEffect.vala" - result = G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, SPIT_TRANSITIONS_TYPE_EFFECT, SpitTransitionsEffect); -#line 24 "/home/jens/Source/shotwell/plugins/shotwell-transitions/FadeEffect.vala" - return result; -#line 212 "FadeEffect.c" -} - - -static void -fade_effect_descriptor_class_init (FadeEffectDescriptorClass * klass) -{ -#line 10 "/home/jens/Source/shotwell/plugins/shotwell-transitions/FadeEffect.vala" - fade_effect_descriptor_parent_class = g_type_class_peek_parent (klass); -#line 10 "/home/jens/Source/shotwell/plugins/shotwell-transitions/FadeEffect.vala" - ((ShotwellTransitionDescriptorClass *) klass)->get_id = (const gchar* (*) (ShotwellTransitionDescriptor *)) fade_effect_descriptor_real_get_id; -#line 10 "/home/jens/Source/shotwell/plugins/shotwell-transitions/FadeEffect.vala" - ((ShotwellTransitionDescriptorClass *) klass)->get_pluggable_name = (const gchar* (*) (ShotwellTransitionDescriptor *)) fade_effect_descriptor_real_get_pluggable_name; -#line 10 "/home/jens/Source/shotwell/plugins/shotwell-transitions/FadeEffect.vala" - ((ShotwellTransitionDescriptorClass *) klass)->create = (SpitTransitionsEffect* (*) (ShotwellTransitionDescriptor *, SpitHostInterface*)) fade_effect_descriptor_real_create; -#line 227 "FadeEffect.c" -} - - -static void -fade_effect_descriptor_instance_init (FadeEffectDescriptor * self) -{ -} - - -GType -fade_effect_descriptor_get_type (void) -{ - static volatile gsize fade_effect_descriptor_type_id__volatile = 0; - if (g_once_init_enter (&fade_effect_descriptor_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (FadeEffectDescriptorClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) fade_effect_descriptor_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (FadeEffectDescriptor), 0, (GInstanceInitFunc) fade_effect_descriptor_instance_init, NULL }; - GType fade_effect_descriptor_type_id; - fade_effect_descriptor_type_id = g_type_register_static (TYPE_SHOTWELL_TRANSITION_DESCRIPTOR, "FadeEffectDescriptor", &g_define_type_info, 0); - g_once_init_leave (&fade_effect_descriptor_type_id__volatile, fade_effect_descriptor_type_id); - } - return fade_effect_descriptor_type_id__volatile; -} - - -FadeEffect* -fade_effect_construct (GType object_type) -{ - FadeEffect * self = NULL; -#line 32 "/home/jens/Source/shotwell/plugins/shotwell-transitions/FadeEffect.vala" - self = (FadeEffect*) g_object_new (object_type, NULL); -#line 32 "/home/jens/Source/shotwell/plugins/shotwell-transitions/FadeEffect.vala" - return self; -#line 259 "FadeEffect.c" -} - - -FadeEffect* -fade_effect_new (void) -{ -#line 32 "/home/jens/Source/shotwell/plugins/shotwell-transitions/FadeEffect.vala" - return fade_effect_construct (TYPE_FADE_EFFECT); -#line 268 "FadeEffect.c" -} - - -static void -fade_effect_real_get_fps (SpitTransitionsEffect* base, - gint* desired_fps, - gint* min_fps) -{ - FadeEffect * self; - gint _vala_desired_fps = 0; - gint _vala_min_fps = 0; -#line 35 "/home/jens/Source/shotwell/plugins/shotwell-transitions/FadeEffect.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_FADE_EFFECT, FadeEffect); -#line 36 "/home/jens/Source/shotwell/plugins/shotwell-transitions/FadeEffect.vala" - _vala_desired_fps = FADE_EFFECT_DESIRED_FPS; -#line 37 "/home/jens/Source/shotwell/plugins/shotwell-transitions/FadeEffect.vala" - _vala_min_fps = FADE_EFFECT_MIN_FPS; -#line 35 "/home/jens/Source/shotwell/plugins/shotwell-transitions/FadeEffect.vala" - if (desired_fps) { -#line 35 "/home/jens/Source/shotwell/plugins/shotwell-transitions/FadeEffect.vala" - *desired_fps = _vala_desired_fps; -#line 290 "FadeEffect.c" - } -#line 35 "/home/jens/Source/shotwell/plugins/shotwell-transitions/FadeEffect.vala" - if (min_fps) { -#line 35 "/home/jens/Source/shotwell/plugins/shotwell-transitions/FadeEffect.vala" - *min_fps = _vala_min_fps; -#line 296 "FadeEffect.c" - } -} - - -static void -fade_effect_real_start (SpitTransitionsEffect* base, - SpitTransitionsVisuals* visuals, - SpitTransitionsMotion* motion) -{ - FadeEffect * self; -#line 40 "/home/jens/Source/shotwell/plugins/shotwell-transitions/FadeEffect.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_FADE_EFFECT, FadeEffect); -#line 40 "/home/jens/Source/shotwell/plugins/shotwell-transitions/FadeEffect.vala" - g_return_if_fail (SPIT_TRANSITIONS_IS_VISUALS (visuals)); -#line 40 "/home/jens/Source/shotwell/plugins/shotwell-transitions/FadeEffect.vala" - g_return_if_fail (SPIT_TRANSITIONS_IS_MOTION (motion)); -#line 313 "FadeEffect.c" -} - - -static gboolean -fade_effect_real_needs_clear_background (SpitTransitionsEffect* base) -{ - FadeEffect * self; - gboolean result = FALSE; -#line 43 "/home/jens/Source/shotwell/plugins/shotwell-transitions/FadeEffect.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_FADE_EFFECT, FadeEffect); -#line 44 "/home/jens/Source/shotwell/plugins/shotwell-transitions/FadeEffect.vala" - result = TRUE; -#line 44 "/home/jens/Source/shotwell/plugins/shotwell-transitions/FadeEffect.vala" - return result; -#line 328 "FadeEffect.c" -} - - -static void -fade_effect_real_paint (SpitTransitionsEffect* base, - SpitTransitionsVisuals* visuals, - SpitTransitionsMotion* motion, - cairo_t* ctx, - gint width, - gint height, - gint frame_number) -{ - FadeEffect * self; - gdouble alpha = 0.0; - GdkPixbuf* _tmp0_; - GdkPixbuf* _tmp1_; - GdkPixbuf* _tmp11_; - GdkPixbuf* _tmp12_; -#line 47 "/home/jens/Source/shotwell/plugins/shotwell-transitions/FadeEffect.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_FADE_EFFECT, FadeEffect); -#line 47 "/home/jens/Source/shotwell/plugins/shotwell-transitions/FadeEffect.vala" - g_return_if_fail (SPIT_TRANSITIONS_IS_VISUALS (visuals)); -#line 47 "/home/jens/Source/shotwell/plugins/shotwell-transitions/FadeEffect.vala" - g_return_if_fail (SPIT_TRANSITIONS_IS_MOTION (motion)); -#line 47 "/home/jens/Source/shotwell/plugins/shotwell-transitions/FadeEffect.vala" - g_return_if_fail (ctx != NULL); -#line 49 "/home/jens/Source/shotwell/plugins/shotwell-transitions/FadeEffect.vala" - alpha = spit_transitions_motion_get_alpha (motion, frame_number); -#line 53 "/home/jens/Source/shotwell/plugins/shotwell-transitions/FadeEffect.vala" - _tmp0_ = spit_transitions_visuals_get_from_pixbuf (visuals); -#line 53 "/home/jens/Source/shotwell/plugins/shotwell-transitions/FadeEffect.vala" - _tmp1_ = _tmp0_; -#line 53 "/home/jens/Source/shotwell/plugins/shotwell-transitions/FadeEffect.vala" - if (_tmp1_ != NULL) { -#line 363 "FadeEffect.c" - GdkPixbuf* _tmp2_; - GdkPixbuf* _tmp3_; - GdkRectangle _tmp4_ = {0}; - GdkRectangle _tmp5_; - gint _tmp6_; - GdkRectangle _tmp7_ = {0}; - GdkRectangle _tmp8_; - gint _tmp9_; - gdouble _tmp10_; -#line 54 "/home/jens/Source/shotwell/plugins/shotwell-transitions/FadeEffect.vala" - _tmp2_ = spit_transitions_visuals_get_from_pixbuf (visuals); -#line 54 "/home/jens/Source/shotwell/plugins/shotwell-transitions/FadeEffect.vala" - _tmp3_ = _tmp2_; -#line 54 "/home/jens/Source/shotwell/plugins/shotwell-transitions/FadeEffect.vala" - spit_transitions_visuals_get_from_pos (visuals, &_tmp4_); -#line 54 "/home/jens/Source/shotwell/plugins/shotwell-transitions/FadeEffect.vala" - _tmp5_ = _tmp4_; -#line 54 "/home/jens/Source/shotwell/plugins/shotwell-transitions/FadeEffect.vala" - _tmp6_ = _tmp5_.x; -#line 54 "/home/jens/Source/shotwell/plugins/shotwell-transitions/FadeEffect.vala" - spit_transitions_visuals_get_from_pos (visuals, &_tmp7_); -#line 54 "/home/jens/Source/shotwell/plugins/shotwell-transitions/FadeEffect.vala" - _tmp8_ = _tmp7_; -#line 54 "/home/jens/Source/shotwell/plugins/shotwell-transitions/FadeEffect.vala" - _tmp9_ = _tmp8_.y; -#line 54 "/home/jens/Source/shotwell/plugins/shotwell-transitions/FadeEffect.vala" - gdk_cairo_set_source_pixbuf (ctx, _tmp3_, (gdouble) _tmp6_, (gdouble) _tmp9_); -#line 55 "/home/jens/Source/shotwell/plugins/shotwell-transitions/FadeEffect.vala" - _tmp10_ = alpha; -#line 55 "/home/jens/Source/shotwell/plugins/shotwell-transitions/FadeEffect.vala" - cairo_paint_with_alpha (ctx, 1.0 - _tmp10_); -#line 395 "FadeEffect.c" - } -#line 58 "/home/jens/Source/shotwell/plugins/shotwell-transitions/FadeEffect.vala" - _tmp11_ = spit_transitions_visuals_get_to_pixbuf (visuals); -#line 58 "/home/jens/Source/shotwell/plugins/shotwell-transitions/FadeEffect.vala" - _tmp12_ = _tmp11_; -#line 58 "/home/jens/Source/shotwell/plugins/shotwell-transitions/FadeEffect.vala" - if (_tmp12_ != NULL) { -#line 403 "FadeEffect.c" - GdkPixbuf* _tmp13_; - GdkPixbuf* _tmp14_; - GdkRectangle _tmp15_ = {0}; - GdkRectangle _tmp16_; - gint _tmp17_; - GdkRectangle _tmp18_ = {0}; - GdkRectangle _tmp19_; - gint _tmp20_; - gdouble _tmp21_; -#line 59 "/home/jens/Source/shotwell/plugins/shotwell-transitions/FadeEffect.vala" - _tmp13_ = spit_transitions_visuals_get_to_pixbuf (visuals); -#line 59 "/home/jens/Source/shotwell/plugins/shotwell-transitions/FadeEffect.vala" - _tmp14_ = _tmp13_; -#line 59 "/home/jens/Source/shotwell/plugins/shotwell-transitions/FadeEffect.vala" - spit_transitions_visuals_get_to_pos (visuals, &_tmp15_); -#line 59 "/home/jens/Source/shotwell/plugins/shotwell-transitions/FadeEffect.vala" - _tmp16_ = _tmp15_; -#line 59 "/home/jens/Source/shotwell/plugins/shotwell-transitions/FadeEffect.vala" - _tmp17_ = _tmp16_.x; -#line 59 "/home/jens/Source/shotwell/plugins/shotwell-transitions/FadeEffect.vala" - spit_transitions_visuals_get_to_pos (visuals, &_tmp18_); -#line 59 "/home/jens/Source/shotwell/plugins/shotwell-transitions/FadeEffect.vala" - _tmp19_ = _tmp18_; -#line 59 "/home/jens/Source/shotwell/plugins/shotwell-transitions/FadeEffect.vala" - _tmp20_ = _tmp19_.y; -#line 59 "/home/jens/Source/shotwell/plugins/shotwell-transitions/FadeEffect.vala" - gdk_cairo_set_source_pixbuf (ctx, _tmp14_, (gdouble) _tmp17_, (gdouble) _tmp20_); -#line 60 "/home/jens/Source/shotwell/plugins/shotwell-transitions/FadeEffect.vala" - _tmp21_ = alpha; -#line 60 "/home/jens/Source/shotwell/plugins/shotwell-transitions/FadeEffect.vala" - cairo_paint_with_alpha (ctx, _tmp21_); -#line 435 "FadeEffect.c" - } -} - - -static void -fade_effect_real_advance (SpitTransitionsEffect* base, - SpitTransitionsVisuals* visuals, - SpitTransitionsMotion* motion, - gint frame_number) -{ - FadeEffect * self; -#line 64 "/home/jens/Source/shotwell/plugins/shotwell-transitions/FadeEffect.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_FADE_EFFECT, FadeEffect); -#line 64 "/home/jens/Source/shotwell/plugins/shotwell-transitions/FadeEffect.vala" - g_return_if_fail (SPIT_TRANSITIONS_IS_VISUALS (visuals)); -#line 64 "/home/jens/Source/shotwell/plugins/shotwell-transitions/FadeEffect.vala" - g_return_if_fail (SPIT_TRANSITIONS_IS_MOTION (motion)); -#line 453 "FadeEffect.c" -} - - -static void -fade_effect_real_cancel (SpitTransitionsEffect* base) -{ - FadeEffect * self; -#line 67 "/home/jens/Source/shotwell/plugins/shotwell-transitions/FadeEffect.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_FADE_EFFECT, FadeEffect); -#line 463 "FadeEffect.c" -} - - -static void -fade_effect_class_init (FadeEffectClass * klass) -{ -#line 28 "/home/jens/Source/shotwell/plugins/shotwell-transitions/FadeEffect.vala" - fade_effect_parent_class = g_type_class_peek_parent (klass); -#line 472 "FadeEffect.c" -} - - -static void -fade_effect_spit_transitions_effect_interface_init (SpitTransitionsEffectIface * iface) -{ -#line 28 "/home/jens/Source/shotwell/plugins/shotwell-transitions/FadeEffect.vala" - fade_effect_spit_transitions_effect_parent_iface = g_type_interface_peek_parent (iface); -#line 28 "/home/jens/Source/shotwell/plugins/shotwell-transitions/FadeEffect.vala" - iface->get_fps = (void (*) (SpitTransitionsEffect *, gint*, gint*)) fade_effect_real_get_fps; -#line 28 "/home/jens/Source/shotwell/plugins/shotwell-transitions/FadeEffect.vala" - iface->start = (void (*) (SpitTransitionsEffect *, SpitTransitionsVisuals*, SpitTransitionsMotion*)) fade_effect_real_start; -#line 28 "/home/jens/Source/shotwell/plugins/shotwell-transitions/FadeEffect.vala" - iface->needs_clear_background = (gboolean (*) (SpitTransitionsEffect *)) fade_effect_real_needs_clear_background; -#line 28 "/home/jens/Source/shotwell/plugins/shotwell-transitions/FadeEffect.vala" - iface->paint = (void (*) (SpitTransitionsEffect *, SpitTransitionsVisuals*, SpitTransitionsMotion*, cairo_t*, gint, gint, gint)) fade_effect_real_paint; -#line 28 "/home/jens/Source/shotwell/plugins/shotwell-transitions/FadeEffect.vala" - iface->advance = (void (*) (SpitTransitionsEffect *, SpitTransitionsVisuals*, SpitTransitionsMotion*, gint)) fade_effect_real_advance; -#line 28 "/home/jens/Source/shotwell/plugins/shotwell-transitions/FadeEffect.vala" - iface->cancel = (void (*) (SpitTransitionsEffect *)) fade_effect_real_cancel; -#line 493 "FadeEffect.c" -} - - -static void -fade_effect_instance_init (FadeEffect * self) -{ -} - - -GType -fade_effect_get_type (void) -{ - static volatile gsize fade_effect_type_id__volatile = 0; - if (g_once_init_enter (&fade_effect_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (FadeEffectClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) fade_effect_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (FadeEffect), 0, (GInstanceInitFunc) fade_effect_instance_init, NULL }; - static const GInterfaceInfo spit_transitions_effect_info = { (GInterfaceInitFunc) fade_effect_spit_transitions_effect_interface_init, (GInterfaceFinalizeFunc) NULL, NULL}; - GType fade_effect_type_id; - fade_effect_type_id = g_type_register_static (G_TYPE_OBJECT, "FadeEffect", &g_define_type_info, 0); - g_type_add_interface_static (fade_effect_type_id, SPIT_TRANSITIONS_TYPE_EFFECT, &spit_transitions_effect_info); - g_once_init_leave (&fade_effect_type_id__volatile, fade_effect_type_id); - } - return fade_effect_type_id__volatile; -} - - - diff --git a/plugins/shotwell-transitions/SlideEffect.c b/plugins/shotwell-transitions/SlideEffect.c deleted file mode 100644 index f516265..0000000 --- a/plugins/shotwell-transitions/SlideEffect.c +++ /dev/null @@ -1,617 +0,0 @@ -/* SlideEffect.c generated by valac 0.40.4, the Vala compiler - * generated from SlideEffect.vala, do not modify */ - -/* Copyright 2010 Maxim Kartashev - * Copyright 2016 Software Freedom Conservancy Inc. - * - * This software is licensed under the GNU Lesser General Public License - * (version 2.1 or later). See the COPYING file in this distribution. - */ - - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include - - -#define TYPE_SHOTWELL_TRANSITION_DESCRIPTOR (shotwell_transition_descriptor_get_type ()) -#define SHOTWELL_TRANSITION_DESCRIPTOR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SHOTWELL_TRANSITION_DESCRIPTOR, ShotwellTransitionDescriptor)) -#define SHOTWELL_TRANSITION_DESCRIPTOR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SHOTWELL_TRANSITION_DESCRIPTOR, ShotwellTransitionDescriptorClass)) -#define IS_SHOTWELL_TRANSITION_DESCRIPTOR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SHOTWELL_TRANSITION_DESCRIPTOR)) -#define IS_SHOTWELL_TRANSITION_DESCRIPTOR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SHOTWELL_TRANSITION_DESCRIPTOR)) -#define SHOTWELL_TRANSITION_DESCRIPTOR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SHOTWELL_TRANSITION_DESCRIPTOR, ShotwellTransitionDescriptorClass)) - -typedef struct _ShotwellTransitionDescriptor ShotwellTransitionDescriptor; -typedef struct _ShotwellTransitionDescriptorClass ShotwellTransitionDescriptorClass; -typedef struct _ShotwellTransitionDescriptorPrivate ShotwellTransitionDescriptorPrivate; - -#define TYPE_SLIDE_EFFECT_DESCRIPTOR (slide_effect_descriptor_get_type ()) -#define SLIDE_EFFECT_DESCRIPTOR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SLIDE_EFFECT_DESCRIPTOR, SlideEffectDescriptor)) -#define SLIDE_EFFECT_DESCRIPTOR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SLIDE_EFFECT_DESCRIPTOR, SlideEffectDescriptorClass)) -#define IS_SLIDE_EFFECT_DESCRIPTOR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SLIDE_EFFECT_DESCRIPTOR)) -#define IS_SLIDE_EFFECT_DESCRIPTOR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SLIDE_EFFECT_DESCRIPTOR)) -#define SLIDE_EFFECT_DESCRIPTOR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SLIDE_EFFECT_DESCRIPTOR, SlideEffectDescriptorClass)) - -typedef struct _SlideEffectDescriptor SlideEffectDescriptor; -typedef struct _SlideEffectDescriptorClass SlideEffectDescriptorClass; -typedef struct _SlideEffectDescriptorPrivate SlideEffectDescriptorPrivate; -enum { - SLIDE_EFFECT_DESCRIPTOR_0_PROPERTY, - SLIDE_EFFECT_DESCRIPTOR_NUM_PROPERTIES -}; -static GParamSpec* slide_effect_descriptor_properties[SLIDE_EFFECT_DESCRIPTOR_NUM_PROPERTIES]; - -#define TYPE_SLIDE_EFFECT (slide_effect_get_type ()) -#define SLIDE_EFFECT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SLIDE_EFFECT, SlideEffect)) -#define SLIDE_EFFECT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SLIDE_EFFECT, SlideEffectClass)) -#define IS_SLIDE_EFFECT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SLIDE_EFFECT)) -#define IS_SLIDE_EFFECT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SLIDE_EFFECT)) -#define SLIDE_EFFECT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SLIDE_EFFECT, SlideEffectClass)) - -typedef struct _SlideEffect SlideEffect; -typedef struct _SlideEffectClass SlideEffectClass; -typedef struct _SlideEffectPrivate SlideEffectPrivate; -enum { - SLIDE_EFFECT_0_PROPERTY, - SLIDE_EFFECT_NUM_PROPERTIES -}; -static GParamSpec* slide_effect_properties[SLIDE_EFFECT_NUM_PROPERTIES]; - -struct _ShotwellTransitionDescriptor { - GObject parent_instance; - ShotwellTransitionDescriptorPrivate * priv; -}; - -struct _ShotwellTransitionDescriptorClass { - GObjectClass parent_class; - const gchar* (*get_id) (ShotwellTransitionDescriptor* self); - const gchar* (*get_pluggable_name) (ShotwellTransitionDescriptor* self); - SpitTransitionsEffect* (*create) (ShotwellTransitionDescriptor* self, SpitHostInterface* host); -}; - -struct _SlideEffectDescriptor { - ShotwellTransitionDescriptor parent_instance; - SlideEffectDescriptorPrivate * priv; -}; - -struct _SlideEffectDescriptorClass { - ShotwellTransitionDescriptorClass parent_class; -}; - -struct _SlideEffect { - GObject parent_instance; - SlideEffectPrivate * priv; -}; - -struct _SlideEffectClass { - GObjectClass parent_class; -}; - - -static gpointer slide_effect_descriptor_parent_class = NULL; -static gpointer slide_effect_parent_class = NULL; -static SpitTransitionsEffectIface * slide_effect_spit_transitions_effect_parent_iface = NULL; - -GType shotwell_transition_descriptor_get_type (void) G_GNUC_CONST; -GType slide_effect_descriptor_get_type (void) G_GNUC_CONST; -SlideEffectDescriptor* slide_effect_descriptor_new (GFile* resource_directory); -SlideEffectDescriptor* slide_effect_descriptor_construct (GType object_type, - GFile* resource_directory); -ShotwellTransitionDescriptor* shotwell_transition_descriptor_construct (GType object_type, - GFile* resource_directory); -static const gchar* slide_effect_descriptor_real_get_id (ShotwellTransitionDescriptor* base); -static const gchar* slide_effect_descriptor_real_get_pluggable_name (ShotwellTransitionDescriptor* base); -static SpitTransitionsEffect* slide_effect_descriptor_real_create (ShotwellTransitionDescriptor* base, - SpitHostInterface* host); -SlideEffect* slide_effect_new (void); -SlideEffect* slide_effect_construct (GType object_type); -GType slide_effect_get_type (void) G_GNUC_CONST; -#define SLIDE_EFFECT_DESIRED_FPS 25 -#define SLIDE_EFFECT_MIN_FPS 15 -static void slide_effect_real_get_fps (SpitTransitionsEffect* base, - gint* desired_fps, - gint* min_fps); -static void slide_effect_real_start (SpitTransitionsEffect* base, - SpitTransitionsVisuals* visuals, - SpitTransitionsMotion* motion); -static gboolean slide_effect_real_needs_clear_background (SpitTransitionsEffect* base); -static void slide_effect_real_paint (SpitTransitionsEffect* base, - SpitTransitionsVisuals* visuals, - SpitTransitionsMotion* motion, - cairo_t* ctx, - gint width, - gint height, - gint frame_number); -static void slide_effect_real_advance (SpitTransitionsEffect* base, - SpitTransitionsVisuals* visuals, - SpitTransitionsMotion* motion, - gint frame_number); -static void slide_effect_real_cancel (SpitTransitionsEffect* base); - - -SlideEffectDescriptor* -slide_effect_descriptor_construct (GType object_type, - GFile* resource_directory) -{ - SlideEffectDescriptor * self = NULL; -#line 11 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala" - g_return_val_if_fail (G_IS_FILE (resource_directory), NULL); -#line 12 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala" - self = (SlideEffectDescriptor*) shotwell_transition_descriptor_construct (object_type, resource_directory); -#line 11 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala" - return self; -#line 153 "SlideEffect.c" -} - - -SlideEffectDescriptor* -slide_effect_descriptor_new (GFile* resource_directory) -{ -#line 11 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala" - return slide_effect_descriptor_construct (TYPE_SLIDE_EFFECT_DESCRIPTOR, resource_directory); -#line 162 "SlideEffect.c" -} - - -static const gchar* -slide_effect_descriptor_real_get_id (ShotwellTransitionDescriptor* base) -{ - SlideEffectDescriptor * self; - const gchar* result = NULL; -#line 15 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_SLIDE_EFFECT_DESCRIPTOR, SlideEffectDescriptor); -#line 16 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala" - result = "org.yorba.shotwell.transitions.slide"; -#line 16 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala" - return result; -#line 177 "SlideEffect.c" -} - - -static const gchar* -slide_effect_descriptor_real_get_pluggable_name (ShotwellTransitionDescriptor* base) -{ - SlideEffectDescriptor * self; - const gchar* result = NULL; -#line 19 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_SLIDE_EFFECT_DESCRIPTOR, SlideEffectDescriptor); -#line 20 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala" - result = _ ("Slide"); -#line 20 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala" - return result; -#line 192 "SlideEffect.c" -} - - -static SpitTransitionsEffect* -slide_effect_descriptor_real_create (ShotwellTransitionDescriptor* base, - SpitHostInterface* host) -{ - SlideEffectDescriptor * self; - SpitTransitionsEffect* result = NULL; - SlideEffect* _tmp0_; -#line 23 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_SLIDE_EFFECT_DESCRIPTOR, SlideEffectDescriptor); -#line 23 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala" - g_return_val_if_fail (SPIT_IS_HOST_INTERFACE (host), NULL); -#line 24 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala" - _tmp0_ = slide_effect_new (); -#line 24 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala" - result = G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, SPIT_TRANSITIONS_TYPE_EFFECT, SpitTransitionsEffect); -#line 24 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala" - return result; -#line 213 "SlideEffect.c" -} - - -static void -slide_effect_descriptor_class_init (SlideEffectDescriptorClass * klass) -{ -#line 10 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala" - slide_effect_descriptor_parent_class = g_type_class_peek_parent (klass); -#line 10 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala" - ((ShotwellTransitionDescriptorClass *) klass)->get_id = (const gchar* (*) (ShotwellTransitionDescriptor *)) slide_effect_descriptor_real_get_id; -#line 10 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala" - ((ShotwellTransitionDescriptorClass *) klass)->get_pluggable_name = (const gchar* (*) (ShotwellTransitionDescriptor *)) slide_effect_descriptor_real_get_pluggable_name; -#line 10 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala" - ((ShotwellTransitionDescriptorClass *) klass)->create = (SpitTransitionsEffect* (*) (ShotwellTransitionDescriptor *, SpitHostInterface*)) slide_effect_descriptor_real_create; -#line 228 "SlideEffect.c" -} - - -static void -slide_effect_descriptor_instance_init (SlideEffectDescriptor * self) -{ -} - - -GType -slide_effect_descriptor_get_type (void) -{ - static volatile gsize slide_effect_descriptor_type_id__volatile = 0; - if (g_once_init_enter (&slide_effect_descriptor_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (SlideEffectDescriptorClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) slide_effect_descriptor_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (SlideEffectDescriptor), 0, (GInstanceInitFunc) slide_effect_descriptor_instance_init, NULL }; - GType slide_effect_descriptor_type_id; - slide_effect_descriptor_type_id = g_type_register_static (TYPE_SHOTWELL_TRANSITION_DESCRIPTOR, "SlideEffectDescriptor", &g_define_type_info, 0); - g_once_init_leave (&slide_effect_descriptor_type_id__volatile, slide_effect_descriptor_type_id); - } - return slide_effect_descriptor_type_id__volatile; -} - - -SlideEffect* -slide_effect_construct (GType object_type) -{ - SlideEffect * self = NULL; -#line 32 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala" - self = (SlideEffect*) g_object_new (object_type, NULL); -#line 32 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala" - return self; -#line 260 "SlideEffect.c" -} - - -SlideEffect* -slide_effect_new (void) -{ -#line 32 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala" - return slide_effect_construct (TYPE_SLIDE_EFFECT); -#line 269 "SlideEffect.c" -} - - -static void -slide_effect_real_get_fps (SpitTransitionsEffect* base, - gint* desired_fps, - gint* min_fps) -{ - SlideEffect * self; - gint _vala_desired_fps = 0; - gint _vala_min_fps = 0; -#line 35 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_SLIDE_EFFECT, SlideEffect); -#line 36 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala" - _vala_desired_fps = SLIDE_EFFECT_DESIRED_FPS; -#line 37 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala" - _vala_min_fps = SLIDE_EFFECT_MIN_FPS; -#line 35 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala" - if (desired_fps) { -#line 35 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala" - *desired_fps = _vala_desired_fps; -#line 291 "SlideEffect.c" - } -#line 35 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala" - if (min_fps) { -#line 35 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala" - *min_fps = _vala_min_fps; -#line 297 "SlideEffect.c" - } -} - - -static void -slide_effect_real_start (SpitTransitionsEffect* base, - SpitTransitionsVisuals* visuals, - SpitTransitionsMotion* motion) -{ - SlideEffect * self; -#line 40 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_SLIDE_EFFECT, SlideEffect); -#line 40 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala" - g_return_if_fail (SPIT_TRANSITIONS_IS_VISUALS (visuals)); -#line 40 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala" - g_return_if_fail (SPIT_TRANSITIONS_IS_MOTION (motion)); -#line 314 "SlideEffect.c" -} - - -static gboolean -slide_effect_real_needs_clear_background (SpitTransitionsEffect* base) -{ - SlideEffect * self; - gboolean result = FALSE; -#line 43 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_SLIDE_EFFECT, SlideEffect); -#line 44 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala" - result = TRUE; -#line 44 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala" - return result; -#line 329 "SlideEffect.c" -} - - -static void -slide_effect_real_paint (SpitTransitionsEffect* base, - SpitTransitionsVisuals* visuals, - SpitTransitionsMotion* motion, - cairo_t* ctx, - gint width, - gint height, - gint frame_number) -{ - SlideEffect * self; - gdouble alpha = 0.0; - GdkPixbuf* _tmp0_; - GdkPixbuf* _tmp1_; - GdkPixbuf* _tmp21_; - GdkPixbuf* _tmp22_; -#line 47 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_SLIDE_EFFECT, SlideEffect); -#line 47 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala" - g_return_if_fail (SPIT_TRANSITIONS_IS_VISUALS (visuals)); -#line 47 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala" - g_return_if_fail (SPIT_TRANSITIONS_IS_MOTION (motion)); -#line 47 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala" - g_return_if_fail (ctx != NULL); -#line 49 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala" - alpha = spit_transitions_motion_get_alpha (motion, frame_number); -#line 51 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala" - _tmp0_ = spit_transitions_visuals_get_from_pixbuf (visuals); -#line 51 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala" - _tmp1_ = _tmp0_; -#line 51 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala" - if (_tmp1_ != NULL) { -#line 364 "SlideEffect.c" - gint _tmp2_ = 0; - SpitTransitionsDirection _tmp3_; - SpitTransitionsDirection _tmp4_; - gint from_target_x = 0; - gint from_current_x = 0; - GdkRectangle _tmp9_ = {0}; - GdkRectangle _tmp10_; - gint _tmp11_; - gdouble _tmp12_; - gint _tmp13_; - gdouble _tmp14_; - GdkPixbuf* _tmp15_; - GdkPixbuf* _tmp16_; - gint _tmp17_; - GdkRectangle _tmp18_ = {0}; - GdkRectangle _tmp19_; - gint _tmp20_; -#line 52 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala" - _tmp3_ = spit_transitions_motion_get_direction (motion); -#line 52 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala" - _tmp4_ = _tmp3_; -#line 52 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala" - if (_tmp4_ == SPIT_TRANSITIONS_DIRECTION_FORWARD) { -#line 388 "SlideEffect.c" - GdkPixbuf* _tmp5_; - GdkPixbuf* _tmp6_; - gint _tmp7_; - gint _tmp8_; -#line 53 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala" - _tmp5_ = spit_transitions_visuals_get_from_pixbuf (visuals); -#line 53 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala" - _tmp6_ = _tmp5_; -#line 53 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala" - _tmp7_ = gdk_pixbuf_get_width (_tmp6_); -#line 53 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala" - _tmp8_ = _tmp7_; -#line 53 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala" - _tmp2_ = -_tmp8_; -#line 403 "SlideEffect.c" - } else { -#line 53 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala" - _tmp2_ = width; -#line 407 "SlideEffect.c" - } -#line 52 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala" - from_target_x = _tmp2_; -#line 54 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala" - spit_transitions_visuals_get_from_pos (visuals, &_tmp9_); -#line 54 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala" - _tmp10_ = _tmp9_; -#line 54 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala" - _tmp11_ = _tmp10_.x; -#line 54 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala" - _tmp12_ = alpha; -#line 54 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala" - _tmp13_ = from_target_x; -#line 54 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala" - _tmp14_ = alpha; -#line 54 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala" - from_current_x = (gint) ((_tmp11_ * (1 - _tmp12_)) + (_tmp13_ * _tmp14_)); -#line 55 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala" - _tmp15_ = spit_transitions_visuals_get_from_pixbuf (visuals); -#line 55 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala" - _tmp16_ = _tmp15_; -#line 55 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala" - _tmp17_ = from_current_x; -#line 55 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala" - spit_transitions_visuals_get_from_pos (visuals, &_tmp18_); -#line 55 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala" - _tmp19_ = _tmp18_; -#line 55 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala" - _tmp20_ = _tmp19_.y; -#line 55 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala" - gdk_cairo_set_source_pixbuf (ctx, _tmp16_, (gdouble) _tmp17_, (gdouble) _tmp20_); -#line 56 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala" - cairo_paint (ctx); -#line 441 "SlideEffect.c" - } -#line 59 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala" - _tmp21_ = spit_transitions_visuals_get_to_pixbuf (visuals); -#line 59 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala" - _tmp22_ = _tmp21_; -#line 59 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala" - if (_tmp22_ != NULL) { -#line 449 "SlideEffect.c" - gint to_target_x = 0; - GdkPixbuf* _tmp23_; - GdkPixbuf* _tmp24_; - gint _tmp25_; - gint _tmp26_; - gint _tmp27_ = 0; - SpitTransitionsDirection _tmp28_; - SpitTransitionsDirection _tmp29_; - gint from_x = 0; - gint to_current_x = 0; - gint _tmp34_; - gdouble _tmp35_; - gint _tmp36_; - gdouble _tmp37_; - GdkPixbuf* _tmp38_; - GdkPixbuf* _tmp39_; - gint _tmp40_; - GdkRectangle _tmp41_ = {0}; - GdkRectangle _tmp42_; - gint _tmp43_; -#line 60 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala" - _tmp23_ = spit_transitions_visuals_get_to_pixbuf (visuals); -#line 60 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala" - _tmp24_ = _tmp23_; -#line 60 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala" - _tmp25_ = gdk_pixbuf_get_width (_tmp24_); -#line 60 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala" - _tmp26_ = _tmp25_; -#line 60 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala" - to_target_x = (width - _tmp26_) / 2; -#line 61 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala" - _tmp28_ = spit_transitions_motion_get_direction (motion); -#line 61 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala" - _tmp29_ = _tmp28_; -#line 61 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala" - if (_tmp29_ == SPIT_TRANSITIONS_DIRECTION_FORWARD) { -#line 62 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala" - _tmp27_ = width; -#line 488 "SlideEffect.c" - } else { - GdkPixbuf* _tmp30_; - GdkPixbuf* _tmp31_; - gint _tmp32_; - gint _tmp33_; -#line 62 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala" - _tmp30_ = spit_transitions_visuals_get_to_pixbuf (visuals); -#line 62 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala" - _tmp31_ = _tmp30_; -#line 62 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala" - _tmp32_ = gdk_pixbuf_get_width (_tmp31_); -#line 62 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala" - _tmp33_ = _tmp32_; -#line 62 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala" - _tmp27_ = -_tmp33_; -#line 504 "SlideEffect.c" - } -#line 61 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala" - from_x = _tmp27_; -#line 63 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala" - _tmp34_ = from_x; -#line 63 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala" - _tmp35_ = alpha; -#line 63 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala" - _tmp36_ = to_target_x; -#line 63 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala" - _tmp37_ = alpha; -#line 63 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala" - to_current_x = (gint) ((_tmp34_ * (1 - _tmp35_)) + (_tmp36_ * _tmp37_)); -#line 64 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala" - _tmp38_ = spit_transitions_visuals_get_to_pixbuf (visuals); -#line 64 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala" - _tmp39_ = _tmp38_; -#line 64 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala" - _tmp40_ = to_current_x; -#line 64 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala" - spit_transitions_visuals_get_to_pos (visuals, &_tmp41_); -#line 64 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala" - _tmp42_ = _tmp41_; -#line 64 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala" - _tmp43_ = _tmp42_.y; -#line 64 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala" - gdk_cairo_set_source_pixbuf (ctx, _tmp39_, (gdouble) _tmp40_, (gdouble) _tmp43_); -#line 65 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala" - cairo_paint (ctx); -#line 534 "SlideEffect.c" - } -} - - -static void -slide_effect_real_advance (SpitTransitionsEffect* base, - SpitTransitionsVisuals* visuals, - SpitTransitionsMotion* motion, - gint frame_number) -{ - SlideEffect * self; -#line 69 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_SLIDE_EFFECT, SlideEffect); -#line 69 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala" - g_return_if_fail (SPIT_TRANSITIONS_IS_VISUALS (visuals)); -#line 69 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala" - g_return_if_fail (SPIT_TRANSITIONS_IS_MOTION (motion)); -#line 552 "SlideEffect.c" -} - - -static void -slide_effect_real_cancel (SpitTransitionsEffect* base) -{ - SlideEffect * self; -#line 72 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_SLIDE_EFFECT, SlideEffect); -#line 562 "SlideEffect.c" -} - - -static void -slide_effect_class_init (SlideEffectClass * klass) -{ -#line 28 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala" - slide_effect_parent_class = g_type_class_peek_parent (klass); -#line 571 "SlideEffect.c" -} - - -static void -slide_effect_spit_transitions_effect_interface_init (SpitTransitionsEffectIface * iface) -{ -#line 28 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala" - slide_effect_spit_transitions_effect_parent_iface = g_type_interface_peek_parent (iface); -#line 28 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala" - iface->get_fps = (void (*) (SpitTransitionsEffect *, gint*, gint*)) slide_effect_real_get_fps; -#line 28 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala" - iface->start = (void (*) (SpitTransitionsEffect *, SpitTransitionsVisuals*, SpitTransitionsMotion*)) slide_effect_real_start; -#line 28 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala" - iface->needs_clear_background = (gboolean (*) (SpitTransitionsEffect *)) slide_effect_real_needs_clear_background; -#line 28 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala" - iface->paint = (void (*) (SpitTransitionsEffect *, SpitTransitionsVisuals*, SpitTransitionsMotion*, cairo_t*, gint, gint, gint)) slide_effect_real_paint; -#line 28 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala" - iface->advance = (void (*) (SpitTransitionsEffect *, SpitTransitionsVisuals*, SpitTransitionsMotion*, gint)) slide_effect_real_advance; -#line 28 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala" - iface->cancel = (void (*) (SpitTransitionsEffect *)) slide_effect_real_cancel; -#line 592 "SlideEffect.c" -} - - -static void -slide_effect_instance_init (SlideEffect * self) -{ -} - - -GType -slide_effect_get_type (void) -{ - static volatile gsize slide_effect_type_id__volatile = 0; - if (g_once_init_enter (&slide_effect_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (SlideEffectClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) slide_effect_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (SlideEffect), 0, (GInstanceInitFunc) slide_effect_instance_init, NULL }; - static const GInterfaceInfo spit_transitions_effect_info = { (GInterfaceInitFunc) slide_effect_spit_transitions_effect_interface_init, (GInterfaceFinalizeFunc) NULL, NULL}; - GType slide_effect_type_id; - slide_effect_type_id = g_type_register_static (G_TYPE_OBJECT, "SlideEffect", &g_define_type_info, 0); - g_type_add_interface_static (slide_effect_type_id, SPIT_TRANSITIONS_TYPE_EFFECT, &spit_transitions_effect_info); - g_once_init_leave (&slide_effect_type_id__volatile, slide_effect_type_id); - } - return slide_effect_type_id__volatile; -} - - - diff --git a/plugins/shotwell-transitions/SquaresEffect.c b/plugins/shotwell-transitions/SquaresEffect.c deleted file mode 100644 index 50bef64..0000000 --- a/plugins/shotwell-transitions/SquaresEffect.c +++ /dev/null @@ -1,707 +0,0 @@ -/* SquaresEffect.c generated by valac 0.40.4, the Vala compiler - * generated from SquaresEffect.vala, do not modify */ - -/* Copyright 2013 Jens Bav - * Copyright 2016 Software Freedom Conservancy Inc. - * - * This software is licensed under the GNU Lesser General Public License - * (version 2.1 or later). See the COPYING file in this distribution. - */ - - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include - - -#define TYPE_SHOTWELL_TRANSITION_DESCRIPTOR (shotwell_transition_descriptor_get_type ()) -#define SHOTWELL_TRANSITION_DESCRIPTOR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SHOTWELL_TRANSITION_DESCRIPTOR, ShotwellTransitionDescriptor)) -#define SHOTWELL_TRANSITION_DESCRIPTOR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SHOTWELL_TRANSITION_DESCRIPTOR, ShotwellTransitionDescriptorClass)) -#define IS_SHOTWELL_TRANSITION_DESCRIPTOR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SHOTWELL_TRANSITION_DESCRIPTOR)) -#define IS_SHOTWELL_TRANSITION_DESCRIPTOR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SHOTWELL_TRANSITION_DESCRIPTOR)) -#define SHOTWELL_TRANSITION_DESCRIPTOR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SHOTWELL_TRANSITION_DESCRIPTOR, ShotwellTransitionDescriptorClass)) - -typedef struct _ShotwellTransitionDescriptor ShotwellTransitionDescriptor; -typedef struct _ShotwellTransitionDescriptorClass ShotwellTransitionDescriptorClass; -typedef struct _ShotwellTransitionDescriptorPrivate ShotwellTransitionDescriptorPrivate; - -#define TYPE_SQUARES_EFFECT_DESCRIPTOR (squares_effect_descriptor_get_type ()) -#define SQUARES_EFFECT_DESCRIPTOR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SQUARES_EFFECT_DESCRIPTOR, SquaresEffectDescriptor)) -#define SQUARES_EFFECT_DESCRIPTOR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SQUARES_EFFECT_DESCRIPTOR, SquaresEffectDescriptorClass)) -#define IS_SQUARES_EFFECT_DESCRIPTOR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SQUARES_EFFECT_DESCRIPTOR)) -#define IS_SQUARES_EFFECT_DESCRIPTOR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SQUARES_EFFECT_DESCRIPTOR)) -#define SQUARES_EFFECT_DESCRIPTOR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SQUARES_EFFECT_DESCRIPTOR, SquaresEffectDescriptorClass)) - -typedef struct _SquaresEffectDescriptor SquaresEffectDescriptor; -typedef struct _SquaresEffectDescriptorClass SquaresEffectDescriptorClass; -typedef struct _SquaresEffectDescriptorPrivate SquaresEffectDescriptorPrivate; -enum { - SQUARES_EFFECT_DESCRIPTOR_0_PROPERTY, - SQUARES_EFFECT_DESCRIPTOR_NUM_PROPERTIES -}; -static GParamSpec* squares_effect_descriptor_properties[SQUARES_EFFECT_DESCRIPTOR_NUM_PROPERTIES]; - -#define TYPE_SQUARES_EFFECT (squares_effect_get_type ()) -#define SQUARES_EFFECT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SQUARES_EFFECT, SquaresEffect)) -#define SQUARES_EFFECT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SQUARES_EFFECT, SquaresEffectClass)) -#define IS_SQUARES_EFFECT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SQUARES_EFFECT)) -#define IS_SQUARES_EFFECT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SQUARES_EFFECT)) -#define SQUARES_EFFECT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SQUARES_EFFECT, SquaresEffectClass)) - -typedef struct _SquaresEffect SquaresEffect; -typedef struct _SquaresEffectClass SquaresEffectClass; -typedef struct _SquaresEffectPrivate SquaresEffectPrivate; -enum { - SQUARES_EFFECT_0_PROPERTY, - SQUARES_EFFECT_NUM_PROPERTIES -}; -static GParamSpec* squares_effect_properties[SQUARES_EFFECT_NUM_PROPERTIES]; - -struct _ShotwellTransitionDescriptor { - GObject parent_instance; - ShotwellTransitionDescriptorPrivate * priv; -}; - -struct _ShotwellTransitionDescriptorClass { - GObjectClass parent_class; - const gchar* (*get_id) (ShotwellTransitionDescriptor* self); - const gchar* (*get_pluggable_name) (ShotwellTransitionDescriptor* self); - SpitTransitionsEffect* (*create) (ShotwellTransitionDescriptor* self, SpitHostInterface* host); -}; - -struct _SquaresEffectDescriptor { - ShotwellTransitionDescriptor parent_instance; - SquaresEffectDescriptorPrivate * priv; -}; - -struct _SquaresEffectDescriptorClass { - ShotwellTransitionDescriptorClass parent_class; -}; - -struct _SquaresEffect { - GObject parent_instance; - SquaresEffectPrivate * priv; -}; - -struct _SquaresEffectClass { - GObjectClass parent_class; -}; - -struct _SquaresEffectPrivate { - gdouble square_count_x; - gdouble square_count_y; -}; - - -static gpointer squares_effect_descriptor_parent_class = NULL; -static gpointer squares_effect_parent_class = NULL; -static SpitTransitionsEffectIface * squares_effect_spit_transitions_effect_parent_iface = NULL; - -GType shotwell_transition_descriptor_get_type (void) G_GNUC_CONST; -GType squares_effect_descriptor_get_type (void) G_GNUC_CONST; -SquaresEffectDescriptor* squares_effect_descriptor_new (GFile* resource_directory); -SquaresEffectDescriptor* squares_effect_descriptor_construct (GType object_type, - GFile* resource_directory); -ShotwellTransitionDescriptor* shotwell_transition_descriptor_construct (GType object_type, - GFile* resource_directory); -static const gchar* squares_effect_descriptor_real_get_id (ShotwellTransitionDescriptor* base); -static const gchar* squares_effect_descriptor_real_get_pluggable_name (ShotwellTransitionDescriptor* base); -static SpitTransitionsEffect* squares_effect_descriptor_real_create (ShotwellTransitionDescriptor* base, - SpitHostInterface* host); -SquaresEffect* squares_effect_new (void); -SquaresEffect* squares_effect_construct (GType object_type); -GType squares_effect_get_type (void) G_GNUC_CONST; -#define SQUARES_EFFECT_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_SQUARES_EFFECT, SquaresEffectPrivate)) -#define SQUARES_EFFECT_DESIRED_FPS 25 -#define SQUARES_EFFECT_MIN_FPS 10 -#define SQUARES_EFFECT_SQUARE_SIZE 100 -static void squares_effect_real_get_fps (SpitTransitionsEffect* base, - gint* desired_fps, - gint* min_fps); -static void squares_effect_real_start (SpitTransitionsEffect* base, - SpitTransitionsVisuals* visuals, - SpitTransitionsMotion* motion); -static gboolean squares_effect_real_needs_clear_background (SpitTransitionsEffect* base); -static void squares_effect_real_paint (SpitTransitionsEffect* base, - SpitTransitionsVisuals* visuals, - SpitTransitionsMotion* motion, - cairo_t* ctx, - gint width, - gint height, - gint frame_number); -static void squares_effect_real_advance (SpitTransitionsEffect* base, - SpitTransitionsVisuals* visuals, - SpitTransitionsMotion* motion, - gint frame_number); -static void squares_effect_real_cancel (SpitTransitionsEffect* base); -static void squares_effect_finalize (GObject * obj); - - -SquaresEffectDescriptor* -squares_effect_descriptor_construct (GType object_type, - GFile* resource_directory) -{ - SquaresEffectDescriptor * self = NULL; -#line 11 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala" - g_return_val_if_fail (G_IS_FILE (resource_directory), NULL); -#line 12 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala" - self = (SquaresEffectDescriptor*) shotwell_transition_descriptor_construct (object_type, resource_directory); -#line 11 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala" - return self; -#line 160 "SquaresEffect.c" -} - - -SquaresEffectDescriptor* -squares_effect_descriptor_new (GFile* resource_directory) -{ -#line 11 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala" - return squares_effect_descriptor_construct (TYPE_SQUARES_EFFECT_DESCRIPTOR, resource_directory); -#line 169 "SquaresEffect.c" -} - - -static const gchar* -squares_effect_descriptor_real_get_id (ShotwellTransitionDescriptor* base) -{ - SquaresEffectDescriptor * self; - const gchar* result = NULL; -#line 15 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_SQUARES_EFFECT_DESCRIPTOR, SquaresEffectDescriptor); -#line 16 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala" - result = "org.yorba.shotwell.transitions.squares"; -#line 16 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala" - return result; -#line 184 "SquaresEffect.c" -} - - -static const gchar* -squares_effect_descriptor_real_get_pluggable_name (ShotwellTransitionDescriptor* base) -{ - SquaresEffectDescriptor * self; - const gchar* result = NULL; -#line 19 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_SQUARES_EFFECT_DESCRIPTOR, SquaresEffectDescriptor); -#line 20 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala" - result = _ ("Squares"); -#line 20 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala" - return result; -#line 199 "SquaresEffect.c" -} - - -static SpitTransitionsEffect* -squares_effect_descriptor_real_create (ShotwellTransitionDescriptor* base, - SpitHostInterface* host) -{ - SquaresEffectDescriptor * self; - SpitTransitionsEffect* result = NULL; - SquaresEffect* _tmp0_; -#line 23 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_SQUARES_EFFECT_DESCRIPTOR, SquaresEffectDescriptor); -#line 23 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala" - g_return_val_if_fail (SPIT_IS_HOST_INTERFACE (host), NULL); -#line 24 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala" - _tmp0_ = squares_effect_new (); -#line 24 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala" - result = G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, SPIT_TRANSITIONS_TYPE_EFFECT, SpitTransitionsEffect); -#line 24 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala" - return result; -#line 220 "SquaresEffect.c" -} - - -static void -squares_effect_descriptor_class_init (SquaresEffectDescriptorClass * klass) -{ -#line 10 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala" - squares_effect_descriptor_parent_class = g_type_class_peek_parent (klass); -#line 10 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala" - ((ShotwellTransitionDescriptorClass *) klass)->get_id = (const gchar* (*) (ShotwellTransitionDescriptor *)) squares_effect_descriptor_real_get_id; -#line 10 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala" - ((ShotwellTransitionDescriptorClass *) klass)->get_pluggable_name = (const gchar* (*) (ShotwellTransitionDescriptor *)) squares_effect_descriptor_real_get_pluggable_name; -#line 10 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala" - ((ShotwellTransitionDescriptorClass *) klass)->create = (SpitTransitionsEffect* (*) (ShotwellTransitionDescriptor *, SpitHostInterface*)) squares_effect_descriptor_real_create; -#line 235 "SquaresEffect.c" -} - - -static void -squares_effect_descriptor_instance_init (SquaresEffectDescriptor * self) -{ -} - - -GType -squares_effect_descriptor_get_type (void) -{ - static volatile gsize squares_effect_descriptor_type_id__volatile = 0; - if (g_once_init_enter (&squares_effect_descriptor_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (SquaresEffectDescriptorClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) squares_effect_descriptor_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (SquaresEffectDescriptor), 0, (GInstanceInitFunc) squares_effect_descriptor_instance_init, NULL }; - GType squares_effect_descriptor_type_id; - squares_effect_descriptor_type_id = g_type_register_static (TYPE_SHOTWELL_TRANSITION_DESCRIPTOR, "SquaresEffectDescriptor", &g_define_type_info, 0); - g_once_init_leave (&squares_effect_descriptor_type_id__volatile, squares_effect_descriptor_type_id); - } - return squares_effect_descriptor_type_id__volatile; -} - - -SquaresEffect* -squares_effect_construct (GType object_type) -{ - SquaresEffect * self = NULL; -#line 35 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala" - self = (SquaresEffect*) g_object_new (object_type, NULL); -#line 35 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala" - return self; -#line 267 "SquaresEffect.c" -} - - -SquaresEffect* -squares_effect_new (void) -{ -#line 35 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala" - return squares_effect_construct (TYPE_SQUARES_EFFECT); -#line 276 "SquaresEffect.c" -} - - -static void -squares_effect_real_get_fps (SpitTransitionsEffect* base, - gint* desired_fps, - gint* min_fps) -{ - SquaresEffect * self; - gint _vala_desired_fps = 0; - gint _vala_min_fps = 0; -#line 38 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_SQUARES_EFFECT, SquaresEffect); -#line 39 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala" - _vala_desired_fps = SQUARES_EFFECT_DESIRED_FPS; -#line 40 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala" - _vala_min_fps = SQUARES_EFFECT_MIN_FPS; -#line 38 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala" - if (desired_fps) { -#line 38 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala" - *desired_fps = _vala_desired_fps; -#line 298 "SquaresEffect.c" - } -#line 38 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala" - if (min_fps) { -#line 38 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala" - *min_fps = _vala_min_fps; -#line 304 "SquaresEffect.c" - } -} - - -static void -squares_effect_real_start (SpitTransitionsEffect* base, - SpitTransitionsVisuals* visuals, - SpitTransitionsMotion* motion) -{ - SquaresEffect * self; - GdkRectangle _tmp0_ = {0}; - GdkRectangle _tmp1_; - gint _tmp2_; - GdkRectangle _tmp3_ = {0}; - GdkRectangle _tmp4_; - gint _tmp5_; -#line 43 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_SQUARES_EFFECT, SquaresEffect); -#line 43 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala" - g_return_if_fail (SPIT_TRANSITIONS_IS_VISUALS (visuals)); -#line 43 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala" - g_return_if_fail (SPIT_TRANSITIONS_IS_MOTION (motion)); -#line 44 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala" - spit_transitions_visuals_get_to_pos (visuals, &_tmp0_); -#line 44 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala" - _tmp1_ = _tmp0_; -#line 44 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala" - _tmp2_ = _tmp1_.width; -#line 44 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala" - self->priv->square_count_x = (gdouble) ((_tmp2_ / SQUARES_EFFECT_SQUARE_SIZE) + 1); -#line 45 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala" - spit_transitions_visuals_get_to_pos (visuals, &_tmp3_); -#line 45 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala" - _tmp4_ = _tmp3_; -#line 45 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala" - _tmp5_ = _tmp4_.height; -#line 45 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala" - self->priv->square_count_y = (gdouble) ((_tmp5_ / SQUARES_EFFECT_SQUARE_SIZE) + 1); -#line 343 "SquaresEffect.c" -} - - -static gboolean -squares_effect_real_needs_clear_background (SpitTransitionsEffect* base) -{ - SquaresEffect * self; - gboolean result = FALSE; -#line 48 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_SQUARES_EFFECT, SquaresEffect); -#line 49 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala" - result = TRUE; -#line 49 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala" - return result; -#line 358 "SquaresEffect.c" -} - - -static void -squares_effect_real_paint (SpitTransitionsEffect* base, - SpitTransitionsVisuals* visuals, - SpitTransitionsMotion* motion, - cairo_t* ctx, - gint width, - gint height, - gint frame_number) -{ - SquaresEffect * self; - gdouble alpha = 0.0; - GdkPixbuf* _tmp0_; - GdkPixbuf* _tmp1_; - GdkPixbuf* _tmp11_; - GdkPixbuf* _tmp12_; -#line 52 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_SQUARES_EFFECT, SquaresEffect); -#line 52 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala" - g_return_if_fail (SPIT_TRANSITIONS_IS_VISUALS (visuals)); -#line 52 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala" - g_return_if_fail (SPIT_TRANSITIONS_IS_MOTION (motion)); -#line 52 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala" - g_return_if_fail (ctx != NULL); -#line 54 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala" - alpha = spit_transitions_motion_get_alpha (motion, frame_number); -#line 55 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala" - _tmp0_ = spit_transitions_visuals_get_from_pixbuf (visuals); -#line 55 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala" - _tmp1_ = _tmp0_; -#line 55 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala" - if (_tmp1_ != NULL) { -#line 393 "SquaresEffect.c" - GdkPixbuf* _tmp2_; - GdkPixbuf* _tmp3_; - GdkRectangle _tmp4_ = {0}; - GdkRectangle _tmp5_; - gint _tmp6_; - GdkRectangle _tmp7_ = {0}; - GdkRectangle _tmp8_; - gint _tmp9_; - gdouble _tmp10_; -#line 56 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala" - _tmp2_ = spit_transitions_visuals_get_from_pixbuf (visuals); -#line 56 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala" - _tmp3_ = _tmp2_; -#line 56 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala" - spit_transitions_visuals_get_from_pos (visuals, &_tmp4_); -#line 56 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala" - _tmp5_ = _tmp4_; -#line 56 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala" - _tmp6_ = _tmp5_.x; -#line 56 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala" - spit_transitions_visuals_get_from_pos (visuals, &_tmp7_); -#line 56 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala" - _tmp8_ = _tmp7_; -#line 56 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala" - _tmp9_ = _tmp8_.y; -#line 56 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala" - gdk_cairo_set_source_pixbuf (ctx, _tmp3_, (gdouble) _tmp6_, (gdouble) _tmp9_); -#line 58 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala" - _tmp10_ = alpha; -#line 58 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala" - cairo_paint_with_alpha (ctx, 1 - _tmp10_); -#line 425 "SquaresEffect.c" - } -#line 61 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala" - _tmp11_ = spit_transitions_visuals_get_to_pixbuf (visuals); -#line 61 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala" - _tmp12_ = _tmp11_; -#line 61 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala" - if (_tmp12_ != NULL) { -#line 433 "SquaresEffect.c" - GdkPixbuf* _tmp13_; - GdkPixbuf* _tmp14_; - GdkRectangle _tmp15_ = {0}; - GdkRectangle _tmp16_; - gint _tmp17_; - GdkRectangle _tmp18_ = {0}; - GdkRectangle _tmp19_; - gint _tmp20_; - gdouble _tmp46_; -#line 62 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala" - _tmp13_ = spit_transitions_visuals_get_to_pixbuf (visuals); -#line 62 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala" - _tmp14_ = _tmp13_; -#line 62 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala" - spit_transitions_visuals_get_to_pos (visuals, &_tmp15_); -#line 62 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala" - _tmp16_ = _tmp15_; -#line 62 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala" - _tmp17_ = _tmp16_.x; -#line 62 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala" - spit_transitions_visuals_get_to_pos (visuals, &_tmp18_); -#line 62 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala" - _tmp19_ = _tmp18_; -#line 62 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala" - _tmp20_ = _tmp19_.y; -#line 62 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala" - gdk_cairo_set_source_pixbuf (ctx, _tmp14_, (gdouble) _tmp17_, (gdouble) _tmp20_); -#line 461 "SquaresEffect.c" - { - gdouble y = 0.0; -#line 63 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala" - y = (gdouble) 0; -#line 466 "SquaresEffect.c" - { - gboolean _tmp21_ = FALSE; -#line 63 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala" - _tmp21_ = TRUE; -#line 63 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala" - while (TRUE) { -#line 473 "SquaresEffect.c" - gdouble _tmp23_; - gdouble _tmp24_; -#line 63 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala" - if (!_tmp21_) { -#line 478 "SquaresEffect.c" - gdouble _tmp22_; -#line 63 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala" - _tmp22_ = y; -#line 63 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala" - y = _tmp22_ + 1; -#line 484 "SquaresEffect.c" - } -#line 63 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala" - _tmp21_ = FALSE; -#line 63 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala" - _tmp23_ = y; -#line 63 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala" - _tmp24_ = self->priv->square_count_y; -#line 63 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala" - if (!(_tmp23_ <= _tmp24_)) { -#line 63 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala" - break; -#line 496 "SquaresEffect.c" - } - { - gdouble x = 0.0; -#line 64 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala" - x = (gdouble) 0; -#line 502 "SquaresEffect.c" - { - gboolean _tmp25_ = FALSE; -#line 64 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala" - _tmp25_ = TRUE; -#line 64 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala" - while (TRUE) { -#line 509 "SquaresEffect.c" - gdouble _tmp27_; - gdouble _tmp28_; - gdouble size = 0.0; - gdouble _tmp29_; - gdouble _tmp30_; - gdouble _tmp31_; - gdouble _tmp32_; - gdouble _tmp33_; - gdouble _tmp34_; - gdouble _tmp35_; - GdkRectangle _tmp36_ = {0}; - GdkRectangle _tmp37_; - gint _tmp38_; - gdouble _tmp39_; - GdkRectangle _tmp40_ = {0}; - GdkRectangle _tmp41_; - gint _tmp42_; - gdouble _tmp43_; - gdouble _tmp44_; - gdouble _tmp45_; -#line 64 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala" - if (!_tmp25_) { -#line 532 "SquaresEffect.c" - gdouble _tmp26_; -#line 64 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala" - _tmp26_ = x; -#line 64 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala" - x = _tmp26_ + 1; -#line 538 "SquaresEffect.c" - } -#line 64 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala" - _tmp25_ = FALSE; -#line 64 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala" - _tmp27_ = x; -#line 64 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala" - _tmp28_ = self->priv->square_count_x; -#line 64 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala" - if (!(_tmp27_ <= _tmp28_)) { -#line 64 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala" - break; -#line 550 "SquaresEffect.c" - } -#line 65 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala" - _tmp29_ = alpha; -#line 65 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala" - _tmp30_ = self->priv->square_count_x; -#line 65 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala" - _tmp31_ = x; -#line 65 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala" - _tmp32_ = self->priv->square_count_x; -#line 65 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala" - _tmp33_ = self->priv->square_count_y; -#line 65 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala" - _tmp34_ = y; -#line 65 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala" - _tmp35_ = self->priv->square_count_y; -#line 65 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala" - size = SQUARES_EFFECT_SQUARE_SIZE * fmin ((gdouble) 1, _tmp29_ + ((((_tmp30_ - _tmp31_) / _tmp32_) + ((_tmp33_ - _tmp34_) / _tmp35_)) / 2.5)); -#line 68 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala" - spit_transitions_visuals_get_to_pos (visuals, &_tmp36_); -#line 68 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala" - _tmp37_ = _tmp36_; -#line 68 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala" - _tmp38_ = _tmp37_.x; -#line 68 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala" - _tmp39_ = x; -#line 68 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala" - spit_transitions_visuals_get_to_pos (visuals, &_tmp40_); -#line 68 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala" - _tmp41_ = _tmp40_; -#line 68 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala" - _tmp42_ = _tmp41_.y; -#line 68 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala" - _tmp43_ = y; -#line 68 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala" - _tmp44_ = size; -#line 68 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala" - _tmp45_ = size; -#line 68 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala" - cairo_rectangle (ctx, _tmp38_ + (_tmp39_ * SQUARES_EFFECT_SQUARE_SIZE), _tmp42_ + (_tmp43_ * SQUARES_EFFECT_SQUARE_SIZE), _tmp44_, _tmp45_); -#line 71 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala" - cairo_fill (ctx); -#line 592 "SquaresEffect.c" - } - } - } - } - } - } -#line 75 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala" - cairo_clip (ctx); -#line 76 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala" - _tmp46_ = alpha; -#line 76 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala" - cairo_paint_with_alpha (ctx, _tmp46_); -#line 605 "SquaresEffect.c" - } -} - - -static void -squares_effect_real_advance (SpitTransitionsEffect* base, - SpitTransitionsVisuals* visuals, - SpitTransitionsMotion* motion, - gint frame_number) -{ - SquaresEffect * self; -#line 80 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_SQUARES_EFFECT, SquaresEffect); -#line 80 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala" - g_return_if_fail (SPIT_TRANSITIONS_IS_VISUALS (visuals)); -#line 80 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala" - g_return_if_fail (SPIT_TRANSITIONS_IS_MOTION (motion)); -#line 623 "SquaresEffect.c" -} - - -static void -squares_effect_real_cancel (SpitTransitionsEffect* base) -{ - SquaresEffect * self; -#line 83 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_SQUARES_EFFECT, SquaresEffect); -#line 633 "SquaresEffect.c" -} - - -static void -squares_effect_class_init (SquaresEffectClass * klass) -{ -#line 28 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala" - squares_effect_parent_class = g_type_class_peek_parent (klass); -#line 28 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala" - g_type_class_add_private (klass, sizeof (SquaresEffectPrivate)); -#line 28 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala" - G_OBJECT_CLASS (klass)->finalize = squares_effect_finalize; -#line 646 "SquaresEffect.c" -} - - -static void -squares_effect_spit_transitions_effect_interface_init (SpitTransitionsEffectIface * iface) -{ -#line 28 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala" - squares_effect_spit_transitions_effect_parent_iface = g_type_interface_peek_parent (iface); -#line 28 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala" - iface->get_fps = (void (*) (SpitTransitionsEffect *, gint*, gint*)) squares_effect_real_get_fps; -#line 28 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala" - iface->start = (void (*) (SpitTransitionsEffect *, SpitTransitionsVisuals*, SpitTransitionsMotion*)) squares_effect_real_start; -#line 28 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala" - iface->needs_clear_background = (gboolean (*) (SpitTransitionsEffect *)) squares_effect_real_needs_clear_background; -#line 28 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala" - iface->paint = (void (*) (SpitTransitionsEffect *, SpitTransitionsVisuals*, SpitTransitionsMotion*, cairo_t*, gint, gint, gint)) squares_effect_real_paint; -#line 28 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala" - iface->advance = (void (*) (SpitTransitionsEffect *, SpitTransitionsVisuals*, SpitTransitionsMotion*, gint)) squares_effect_real_advance; -#line 28 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala" - iface->cancel = (void (*) (SpitTransitionsEffect *)) squares_effect_real_cancel; -#line 667 "SquaresEffect.c" -} - - -static void -squares_effect_instance_init (SquaresEffect * self) -{ -#line 28 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala" - self->priv = SQUARES_EFFECT_GET_PRIVATE (self); -#line 676 "SquaresEffect.c" -} - - -static void -squares_effect_finalize (GObject * obj) -{ - SquaresEffect * self; -#line 28 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_SQUARES_EFFECT, SquaresEffect); -#line 28 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala" - G_OBJECT_CLASS (squares_effect_parent_class)->finalize (obj); -#line 688 "SquaresEffect.c" -} - - -GType -squares_effect_get_type (void) -{ - static volatile gsize squares_effect_type_id__volatile = 0; - if (g_once_init_enter (&squares_effect_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (SquaresEffectClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) squares_effect_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (SquaresEffect), 0, (GInstanceInitFunc) squares_effect_instance_init, NULL }; - static const GInterfaceInfo spit_transitions_effect_info = { (GInterfaceInitFunc) squares_effect_spit_transitions_effect_interface_init, (GInterfaceFinalizeFunc) NULL, NULL}; - GType squares_effect_type_id; - squares_effect_type_id = g_type_register_static (G_TYPE_OBJECT, "SquaresEffect", &g_define_type_info, 0); - g_type_add_interface_static (squares_effect_type_id, SPIT_TRANSITIONS_TYPE_EFFECT, &spit_transitions_effect_info); - g_once_init_leave (&squares_effect_type_id__volatile, squares_effect_type_id); - } - return squares_effect_type_id__volatile; -} - - - diff --git a/plugins/shotwell-transitions/StripesEffect.c b/plugins/shotwell-transitions/StripesEffect.c deleted file mode 100644 index d0bac4d..0000000 --- a/plugins/shotwell-transitions/StripesEffect.c +++ /dev/null @@ -1,704 +0,0 @@ -/* StripesEffect.c generated by valac 0.40.4, the Vala compiler - * generated from StripesEffect.vala, do not modify */ - -/* Copyright 2013 Jens Bav - * Copyright 2016 Software Freedom Conservancy Inc. - * - * This software is licensed under the GNU Lesser General Public License - * (version 2.1 or later). See the COPYING file in this distribution. - */ - - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include - - -#define TYPE_SHOTWELL_TRANSITION_DESCRIPTOR (shotwell_transition_descriptor_get_type ()) -#define SHOTWELL_TRANSITION_DESCRIPTOR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SHOTWELL_TRANSITION_DESCRIPTOR, ShotwellTransitionDescriptor)) -#define SHOTWELL_TRANSITION_DESCRIPTOR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SHOTWELL_TRANSITION_DESCRIPTOR, ShotwellTransitionDescriptorClass)) -#define IS_SHOTWELL_TRANSITION_DESCRIPTOR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SHOTWELL_TRANSITION_DESCRIPTOR)) -#define IS_SHOTWELL_TRANSITION_DESCRIPTOR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SHOTWELL_TRANSITION_DESCRIPTOR)) -#define SHOTWELL_TRANSITION_DESCRIPTOR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SHOTWELL_TRANSITION_DESCRIPTOR, ShotwellTransitionDescriptorClass)) - -typedef struct _ShotwellTransitionDescriptor ShotwellTransitionDescriptor; -typedef struct _ShotwellTransitionDescriptorClass ShotwellTransitionDescriptorClass; -typedef struct _ShotwellTransitionDescriptorPrivate ShotwellTransitionDescriptorPrivate; - -#define TYPE_STRIPES_EFFECT_DESCRIPTOR (stripes_effect_descriptor_get_type ()) -#define STRIPES_EFFECT_DESCRIPTOR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_STRIPES_EFFECT_DESCRIPTOR, StripesEffectDescriptor)) -#define STRIPES_EFFECT_DESCRIPTOR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_STRIPES_EFFECT_DESCRIPTOR, StripesEffectDescriptorClass)) -#define IS_STRIPES_EFFECT_DESCRIPTOR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_STRIPES_EFFECT_DESCRIPTOR)) -#define IS_STRIPES_EFFECT_DESCRIPTOR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_STRIPES_EFFECT_DESCRIPTOR)) -#define STRIPES_EFFECT_DESCRIPTOR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_STRIPES_EFFECT_DESCRIPTOR, StripesEffectDescriptorClass)) - -typedef struct _StripesEffectDescriptor StripesEffectDescriptor; -typedef struct _StripesEffectDescriptorClass StripesEffectDescriptorClass; -typedef struct _StripesEffectDescriptorPrivate StripesEffectDescriptorPrivate; -enum { - STRIPES_EFFECT_DESCRIPTOR_0_PROPERTY, - STRIPES_EFFECT_DESCRIPTOR_NUM_PROPERTIES -}; -static GParamSpec* stripes_effect_descriptor_properties[STRIPES_EFFECT_DESCRIPTOR_NUM_PROPERTIES]; - -#define TYPE_STRIPES_EFFECT (stripes_effect_get_type ()) -#define STRIPES_EFFECT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_STRIPES_EFFECT, StripesEffect)) -#define STRIPES_EFFECT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_STRIPES_EFFECT, StripesEffectClass)) -#define IS_STRIPES_EFFECT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_STRIPES_EFFECT)) -#define IS_STRIPES_EFFECT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_STRIPES_EFFECT)) -#define STRIPES_EFFECT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_STRIPES_EFFECT, StripesEffectClass)) - -typedef struct _StripesEffect StripesEffect; -typedef struct _StripesEffectClass StripesEffectClass; -typedef struct _StripesEffectPrivate StripesEffectPrivate; -enum { - STRIPES_EFFECT_0_PROPERTY, - STRIPES_EFFECT_NUM_PROPERTIES -}; -static GParamSpec* stripes_effect_properties[STRIPES_EFFECT_NUM_PROPERTIES]; - -struct _ShotwellTransitionDescriptor { - GObject parent_instance; - ShotwellTransitionDescriptorPrivate * priv; -}; - -struct _ShotwellTransitionDescriptorClass { - GObjectClass parent_class; - const gchar* (*get_id) (ShotwellTransitionDescriptor* self); - const gchar* (*get_pluggable_name) (ShotwellTransitionDescriptor* self); - SpitTransitionsEffect* (*create) (ShotwellTransitionDescriptor* self, SpitHostInterface* host); -}; - -struct _StripesEffectDescriptor { - ShotwellTransitionDescriptor parent_instance; - StripesEffectDescriptorPrivate * priv; -}; - -struct _StripesEffectDescriptorClass { - ShotwellTransitionDescriptorClass parent_class; -}; - -struct _StripesEffect { - GObject parent_instance; - StripesEffectPrivate * priv; -}; - -struct _StripesEffectClass { - GObjectClass parent_class; -}; - -struct _StripesEffectPrivate { - gint stripe_count; -}; - - -static gpointer stripes_effect_descriptor_parent_class = NULL; -static gpointer stripes_effect_parent_class = NULL; -static SpitTransitionsEffectIface * stripes_effect_spit_transitions_effect_parent_iface = NULL; - -GType shotwell_transition_descriptor_get_type (void) G_GNUC_CONST; -GType stripes_effect_descriptor_get_type (void) G_GNUC_CONST; -StripesEffectDescriptor* stripes_effect_descriptor_new (GFile* resource_directory); -StripesEffectDescriptor* stripes_effect_descriptor_construct (GType object_type, - GFile* resource_directory); -ShotwellTransitionDescriptor* shotwell_transition_descriptor_construct (GType object_type, - GFile* resource_directory); -static const gchar* stripes_effect_descriptor_real_get_id (ShotwellTransitionDescriptor* base); -static const gchar* stripes_effect_descriptor_real_get_pluggable_name (ShotwellTransitionDescriptor* base); -static SpitTransitionsEffect* stripes_effect_descriptor_real_create (ShotwellTransitionDescriptor* base, - SpitHostInterface* host); -StripesEffect* stripes_effect_new (void); -StripesEffect* stripes_effect_construct (GType object_type); -GType stripes_effect_get_type (void) G_GNUC_CONST; -#define STRIPES_EFFECT_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_STRIPES_EFFECT, StripesEffectPrivate)) -#define STRIPES_EFFECT_DESIRED_FPS 25 -#define STRIPES_EFFECT_MIN_FPS 10 -#define STRIPES_EFFECT_STRIPE_HEIGHT 100 -static void stripes_effect_real_get_fps (SpitTransitionsEffect* base, - gint* desired_fps, - gint* min_fps); -static void stripes_effect_real_start (SpitTransitionsEffect* base, - SpitTransitionsVisuals* visuals, - SpitTransitionsMotion* motion); -static gboolean stripes_effect_real_needs_clear_background (SpitTransitionsEffect* base); -static void stripes_effect_real_paint (SpitTransitionsEffect* base, - SpitTransitionsVisuals* visuals, - SpitTransitionsMotion* motion, - cairo_t* ctx, - gint width, - gint height, - gint frame_number); -static void stripes_effect_real_advance (SpitTransitionsEffect* base, - SpitTransitionsVisuals* visuals, - SpitTransitionsMotion* motion, - gint frame_number); -static void stripes_effect_real_cancel (SpitTransitionsEffect* base); -static void stripes_effect_finalize (GObject * obj); - - -StripesEffectDescriptor* -stripes_effect_descriptor_construct (GType object_type, - GFile* resource_directory) -{ - StripesEffectDescriptor * self = NULL; -#line 11 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala" - g_return_val_if_fail (G_IS_FILE (resource_directory), NULL); -#line 12 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala" - self = (StripesEffectDescriptor*) shotwell_transition_descriptor_construct (object_type, resource_directory); -#line 11 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala" - return self; -#line 159 "StripesEffect.c" -} - - -StripesEffectDescriptor* -stripes_effect_descriptor_new (GFile* resource_directory) -{ -#line 11 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala" - return stripes_effect_descriptor_construct (TYPE_STRIPES_EFFECT_DESCRIPTOR, resource_directory); -#line 168 "StripesEffect.c" -} - - -static const gchar* -stripes_effect_descriptor_real_get_id (ShotwellTransitionDescriptor* base) -{ - StripesEffectDescriptor * self; - const gchar* result = NULL; -#line 15 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_STRIPES_EFFECT_DESCRIPTOR, StripesEffectDescriptor); -#line 16 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala" - result = "org.yorba.shotwell.transitions.stripes"; -#line 16 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala" - return result; -#line 183 "StripesEffect.c" -} - - -static const gchar* -stripes_effect_descriptor_real_get_pluggable_name (ShotwellTransitionDescriptor* base) -{ - StripesEffectDescriptor * self; - const gchar* result = NULL; -#line 19 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_STRIPES_EFFECT_DESCRIPTOR, StripesEffectDescriptor); -#line 20 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala" - result = _ ("Stripes"); -#line 20 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala" - return result; -#line 198 "StripesEffect.c" -} - - -static SpitTransitionsEffect* -stripes_effect_descriptor_real_create (ShotwellTransitionDescriptor* base, - SpitHostInterface* host) -{ - StripesEffectDescriptor * self; - SpitTransitionsEffect* result = NULL; - StripesEffect* _tmp0_; -#line 23 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_STRIPES_EFFECT_DESCRIPTOR, StripesEffectDescriptor); -#line 23 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala" - g_return_val_if_fail (SPIT_IS_HOST_INTERFACE (host), NULL); -#line 24 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala" - _tmp0_ = stripes_effect_new (); -#line 24 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala" - result = G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, SPIT_TRANSITIONS_TYPE_EFFECT, SpitTransitionsEffect); -#line 24 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala" - return result; -#line 219 "StripesEffect.c" -} - - -static void -stripes_effect_descriptor_class_init (StripesEffectDescriptorClass * klass) -{ -#line 10 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala" - stripes_effect_descriptor_parent_class = g_type_class_peek_parent (klass); -#line 10 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala" - ((ShotwellTransitionDescriptorClass *) klass)->get_id = (const gchar* (*) (ShotwellTransitionDescriptor *)) stripes_effect_descriptor_real_get_id; -#line 10 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala" - ((ShotwellTransitionDescriptorClass *) klass)->get_pluggable_name = (const gchar* (*) (ShotwellTransitionDescriptor *)) stripes_effect_descriptor_real_get_pluggable_name; -#line 10 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala" - ((ShotwellTransitionDescriptorClass *) klass)->create = (SpitTransitionsEffect* (*) (ShotwellTransitionDescriptor *, SpitHostInterface*)) stripes_effect_descriptor_real_create; -#line 234 "StripesEffect.c" -} - - -static void -stripes_effect_descriptor_instance_init (StripesEffectDescriptor * self) -{ -} - - -GType -stripes_effect_descriptor_get_type (void) -{ - static volatile gsize stripes_effect_descriptor_type_id__volatile = 0; - if (g_once_init_enter (&stripes_effect_descriptor_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (StripesEffectDescriptorClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) stripes_effect_descriptor_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (StripesEffectDescriptor), 0, (GInstanceInitFunc) stripes_effect_descriptor_instance_init, NULL }; - GType stripes_effect_descriptor_type_id; - stripes_effect_descriptor_type_id = g_type_register_static (TYPE_SHOTWELL_TRANSITION_DESCRIPTOR, "StripesEffectDescriptor", &g_define_type_info, 0); - g_once_init_leave (&stripes_effect_descriptor_type_id__volatile, stripes_effect_descriptor_type_id); - } - return stripes_effect_descriptor_type_id__volatile; -} - - -StripesEffect* -stripes_effect_construct (GType object_type) -{ - StripesEffect * self = NULL; -#line 34 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala" - self = (StripesEffect*) g_object_new (object_type, NULL); -#line 34 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala" - return self; -#line 266 "StripesEffect.c" -} - - -StripesEffect* -stripes_effect_new (void) -{ -#line 34 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala" - return stripes_effect_construct (TYPE_STRIPES_EFFECT); -#line 275 "StripesEffect.c" -} - - -static void -stripes_effect_real_get_fps (SpitTransitionsEffect* base, - gint* desired_fps, - gint* min_fps) -{ - StripesEffect * self; - gint _vala_desired_fps = 0; - gint _vala_min_fps = 0; -#line 37 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_STRIPES_EFFECT, StripesEffect); -#line 38 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala" - _vala_desired_fps = STRIPES_EFFECT_DESIRED_FPS; -#line 39 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala" - _vala_min_fps = STRIPES_EFFECT_MIN_FPS; -#line 37 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala" - if (desired_fps) { -#line 37 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala" - *desired_fps = _vala_desired_fps; -#line 297 "StripesEffect.c" - } -#line 37 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala" - if (min_fps) { -#line 37 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala" - *min_fps = _vala_min_fps; -#line 303 "StripesEffect.c" - } -} - - -static void -stripes_effect_real_start (SpitTransitionsEffect* base, - SpitTransitionsVisuals* visuals, - SpitTransitionsMotion* motion) -{ - StripesEffect * self; - GdkRectangle _tmp0_ = {0}; - GdkRectangle _tmp1_; - gint _tmp2_; -#line 42 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_STRIPES_EFFECT, StripesEffect); -#line 42 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala" - g_return_if_fail (SPIT_TRANSITIONS_IS_VISUALS (visuals)); -#line 42 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala" - g_return_if_fail (SPIT_TRANSITIONS_IS_MOTION (motion)); -#line 43 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala" - spit_transitions_visuals_get_to_pos (visuals, &_tmp0_); -#line 43 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala" - _tmp1_ = _tmp0_; -#line 43 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala" - _tmp2_ = _tmp1_.height; -#line 43 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala" - self->priv->stripe_count = (_tmp2_ / STRIPES_EFFECT_STRIPE_HEIGHT) + 1; -#line 331 "StripesEffect.c" -} - - -static gboolean -stripes_effect_real_needs_clear_background (SpitTransitionsEffect* base) -{ - StripesEffect * self; - gboolean result = FALSE; -#line 46 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_STRIPES_EFFECT, StripesEffect); -#line 47 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala" - result = TRUE; -#line 47 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala" - return result; -#line 346 "StripesEffect.c" -} - - -static void -stripes_effect_real_paint (SpitTransitionsEffect* base, - SpitTransitionsVisuals* visuals, - SpitTransitionsMotion* motion, - cairo_t* ctx, - gint width, - gint height, - gint frame_number) -{ - StripesEffect * self; - gdouble alpha = 0.0; - GdkPixbuf* _tmp0_; - GdkPixbuf* _tmp1_; - GdkPixbuf* _tmp11_; - GdkPixbuf* _tmp12_; -#line 50 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_STRIPES_EFFECT, StripesEffect); -#line 50 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala" - g_return_if_fail (SPIT_TRANSITIONS_IS_VISUALS (visuals)); -#line 50 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala" - g_return_if_fail (SPIT_TRANSITIONS_IS_MOTION (motion)); -#line 50 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala" - g_return_if_fail (ctx != NULL); -#line 52 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala" - alpha = spit_transitions_motion_get_alpha (motion, frame_number); -#line 53 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala" - _tmp0_ = spit_transitions_visuals_get_from_pixbuf (visuals); -#line 53 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala" - _tmp1_ = _tmp0_; -#line 53 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala" - if (_tmp1_ != NULL) { -#line 381 "StripesEffect.c" - GdkPixbuf* _tmp2_; - GdkPixbuf* _tmp3_; - GdkRectangle _tmp4_ = {0}; - GdkRectangle _tmp5_; - gint _tmp6_; - GdkRectangle _tmp7_ = {0}; - GdkRectangle _tmp8_; - gint _tmp9_; - gdouble _tmp10_; -#line 54 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala" - _tmp2_ = spit_transitions_visuals_get_from_pixbuf (visuals); -#line 54 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala" - _tmp3_ = _tmp2_; -#line 54 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala" - spit_transitions_visuals_get_from_pos (visuals, &_tmp4_); -#line 54 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala" - _tmp5_ = _tmp4_; -#line 54 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala" - _tmp6_ = _tmp5_.x; -#line 54 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala" - spit_transitions_visuals_get_from_pos (visuals, &_tmp7_); -#line 54 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala" - _tmp8_ = _tmp7_; -#line 54 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala" - _tmp9_ = _tmp8_.y; -#line 54 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala" - gdk_cairo_set_source_pixbuf (ctx, _tmp3_, (gdouble) _tmp6_, (gdouble) _tmp9_); -#line 56 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala" - _tmp10_ = alpha; -#line 56 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala" - cairo_paint_with_alpha (ctx, 1 - fmin ((gdouble) 1, _tmp10_ * 2)); -#line 413 "StripesEffect.c" - } -#line 59 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala" - _tmp11_ = spit_transitions_visuals_get_to_pixbuf (visuals); -#line 59 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala" - _tmp12_ = _tmp11_; -#line 59 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala" - if (_tmp12_ != NULL) { -#line 421 "StripesEffect.c" - GdkPixbuf* _tmp13_; - GdkPixbuf* _tmp14_; - GdkRectangle _tmp15_ = {0}; - GdkRectangle _tmp16_; - gint _tmp17_; - GdkRectangle _tmp18_ = {0}; - GdkRectangle _tmp19_; - gint _tmp20_; - gint x = 0; - GdkRectangle _tmp21_ = {0}; - GdkRectangle _tmp22_; - gint _tmp23_; - gint y = 0; - GdkRectangle _tmp24_ = {0}; - GdkRectangle _tmp25_; - gint _tmp26_; - gdouble _tmp55_; -#line 60 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala" - _tmp13_ = spit_transitions_visuals_get_to_pixbuf (visuals); -#line 60 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala" - _tmp14_ = _tmp13_; -#line 60 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala" - spit_transitions_visuals_get_to_pos (visuals, &_tmp15_); -#line 60 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala" - _tmp16_ = _tmp15_; -#line 60 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala" - _tmp17_ = _tmp16_.x; -#line 60 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala" - spit_transitions_visuals_get_to_pos (visuals, &_tmp18_); -#line 60 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala" - _tmp19_ = _tmp18_; -#line 60 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala" - _tmp20_ = _tmp19_.y; -#line 60 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala" - gdk_cairo_set_source_pixbuf (ctx, _tmp14_, (gdouble) _tmp17_, (gdouble) _tmp20_); -#line 61 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala" - spit_transitions_visuals_get_to_pos (visuals, &_tmp21_); -#line 61 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala" - _tmp22_ = _tmp21_; -#line 61 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala" - _tmp23_ = _tmp22_.x; -#line 61 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala" - x = _tmp23_; -#line 62 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala" - spit_transitions_visuals_get_to_pos (visuals, &_tmp24_); -#line 62 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala" - _tmp25_ = _tmp24_; -#line 62 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala" - _tmp26_ = _tmp25_.y; -#line 62 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala" - y = _tmp26_; -#line 473 "StripesEffect.c" - { - gint i = 0; -#line 63 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala" - i = 0; -#line 478 "StripesEffect.c" - { - gboolean _tmp27_ = FALSE; -#line 63 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala" - _tmp27_ = TRUE; -#line 63 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala" - while (TRUE) { -#line 485 "StripesEffect.c" - gint _tmp29_; - gint _tmp30_; - gint _tmp31_; - SpitTransitionsDirection _tmp32_; - SpitTransitionsDirection _tmp33_; -#line 63 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala" - if (!_tmp27_) { -#line 493 "StripesEffect.c" - gint _tmp28_; -#line 63 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala" - _tmp28_ = i; -#line 63 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala" - i = _tmp28_ + 1; -#line 499 "StripesEffect.c" - } -#line 63 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala" - _tmp27_ = FALSE; -#line 63 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala" - _tmp29_ = i; -#line 63 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala" - _tmp30_ = self->priv->stripe_count; -#line 63 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala" - if (!(_tmp29_ <= _tmp30_)) { -#line 63 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala" - break; -#line 511 "StripesEffect.c" - } -#line 64 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala" - _tmp31_ = i; -#line 64 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala" - _tmp32_ = spit_transitions_motion_get_direction (motion); -#line 64 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala" - _tmp33_ = _tmp32_; -#line 64 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala" - if ((_tmp31_ % 2) == ((gint) _tmp33_)) { -#line 521 "StripesEffect.c" - gint _tmp34_; - GdkRectangle _tmp35_ = {0}; - GdkRectangle _tmp36_; - gint _tmp37_; - gdouble _tmp38_; - GdkRectangle _tmp39_ = {0}; - GdkRectangle _tmp40_; - gint _tmp41_; - gint _tmp42_; - gint _tmp43_; - gint _tmp44_; - GdkRectangle _tmp45_ = {0}; - GdkRectangle _tmp46_; - gint _tmp47_; -#line 65 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala" - _tmp34_ = x; -#line 65 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala" - spit_transitions_visuals_get_to_pos (visuals, &_tmp35_); -#line 65 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala" - _tmp36_ = _tmp35_; -#line 65 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala" - _tmp37_ = _tmp36_.width; -#line 65 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala" - _tmp38_ = alpha; -#line 65 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala" - spit_transitions_visuals_get_to_pos (visuals, &_tmp39_); -#line 65 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala" - _tmp40_ = _tmp39_; -#line 65 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala" - _tmp41_ = _tmp40_.width; -#line 65 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala" - _tmp42_ = y; -#line 65 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala" - _tmp43_ = i; -#line 65 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala" - _tmp44_ = x; -#line 65 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala" - spit_transitions_visuals_get_to_pos (visuals, &_tmp45_); -#line 65 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala" - _tmp46_ = _tmp45_; -#line 65 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala" - _tmp47_ = _tmp46_.width; -#line 65 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala" - cairo_rectangle (ctx, (_tmp34_ + _tmp37_) - (_tmp38_ * _tmp41_), (gdouble) (_tmp42_ + (_tmp43_ * STRIPES_EFFECT_STRIPE_HEIGHT)), (gdouble) (_tmp44_ + _tmp47_), (gdouble) STRIPES_EFFECT_STRIPE_HEIGHT); -#line 566 "StripesEffect.c" - } else { - gint _tmp48_; - gint _tmp49_; - gint _tmp50_; - GdkRectangle _tmp51_ = {0}; - GdkRectangle _tmp52_; - gint _tmp53_; - gdouble _tmp54_; -#line 68 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala" - _tmp48_ = x; -#line 68 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala" - _tmp49_ = y; -#line 68 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala" - _tmp50_ = i; -#line 68 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala" - spit_transitions_visuals_get_to_pos (visuals, &_tmp51_); -#line 68 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala" - _tmp52_ = _tmp51_; -#line 68 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala" - _tmp53_ = _tmp52_.width; -#line 68 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala" - _tmp54_ = alpha; -#line 68 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala" - cairo_rectangle (ctx, (gdouble) _tmp48_, (gdouble) (_tmp49_ + (STRIPES_EFFECT_STRIPE_HEIGHT * _tmp50_)), _tmp53_ * _tmp54_, (gdouble) STRIPES_EFFECT_STRIPE_HEIGHT); -#line 591 "StripesEffect.c" - } - } - } - } -#line 73 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala" - cairo_clip (ctx); -#line 74 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala" - _tmp55_ = alpha; -#line 74 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala" - cairo_paint_with_alpha (ctx, _tmp55_); -#line 602 "StripesEffect.c" - } -} - - -static void -stripes_effect_real_advance (SpitTransitionsEffect* base, - SpitTransitionsVisuals* visuals, - SpitTransitionsMotion* motion, - gint frame_number) -{ - StripesEffect * self; -#line 78 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_STRIPES_EFFECT, StripesEffect); -#line 78 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala" - g_return_if_fail (SPIT_TRANSITIONS_IS_VISUALS (visuals)); -#line 78 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala" - g_return_if_fail (SPIT_TRANSITIONS_IS_MOTION (motion)); -#line 620 "StripesEffect.c" -} - - -static void -stripes_effect_real_cancel (SpitTransitionsEffect* base) -{ - StripesEffect * self; -#line 81 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_STRIPES_EFFECT, StripesEffect); -#line 630 "StripesEffect.c" -} - - -static void -stripes_effect_class_init (StripesEffectClass * klass) -{ -#line 28 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala" - stripes_effect_parent_class = g_type_class_peek_parent (klass); -#line 28 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala" - g_type_class_add_private (klass, sizeof (StripesEffectPrivate)); -#line 28 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala" - G_OBJECT_CLASS (klass)->finalize = stripes_effect_finalize; -#line 643 "StripesEffect.c" -} - - -static void -stripes_effect_spit_transitions_effect_interface_init (SpitTransitionsEffectIface * iface) -{ -#line 28 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala" - stripes_effect_spit_transitions_effect_parent_iface = g_type_interface_peek_parent (iface); -#line 28 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala" - iface->get_fps = (void (*) (SpitTransitionsEffect *, gint*, gint*)) stripes_effect_real_get_fps; -#line 28 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala" - iface->start = (void (*) (SpitTransitionsEffect *, SpitTransitionsVisuals*, SpitTransitionsMotion*)) stripes_effect_real_start; -#line 28 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala" - iface->needs_clear_background = (gboolean (*) (SpitTransitionsEffect *)) stripes_effect_real_needs_clear_background; -#line 28 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala" - iface->paint = (void (*) (SpitTransitionsEffect *, SpitTransitionsVisuals*, SpitTransitionsMotion*, cairo_t*, gint, gint, gint)) stripes_effect_real_paint; -#line 28 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala" - iface->advance = (void (*) (SpitTransitionsEffect *, SpitTransitionsVisuals*, SpitTransitionsMotion*, gint)) stripes_effect_real_advance; -#line 28 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala" - iface->cancel = (void (*) (SpitTransitionsEffect *)) stripes_effect_real_cancel; -#line 664 "StripesEffect.c" -} - - -static void -stripes_effect_instance_init (StripesEffect * self) -{ -#line 28 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala" - self->priv = STRIPES_EFFECT_GET_PRIVATE (self); -#line 673 "StripesEffect.c" -} - - -static void -stripes_effect_finalize (GObject * obj) -{ - StripesEffect * self; -#line 28 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_STRIPES_EFFECT, StripesEffect); -#line 28 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala" - G_OBJECT_CLASS (stripes_effect_parent_class)->finalize (obj); -#line 685 "StripesEffect.c" -} - - -GType -stripes_effect_get_type (void) -{ - static volatile gsize stripes_effect_type_id__volatile = 0; - if (g_once_init_enter (&stripes_effect_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (StripesEffectClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) stripes_effect_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (StripesEffect), 0, (GInstanceInitFunc) stripes_effect_instance_init, NULL }; - static const GInterfaceInfo spit_transitions_effect_info = { (GInterfaceInitFunc) stripes_effect_spit_transitions_effect_interface_init, (GInterfaceFinalizeFunc) NULL, NULL}; - GType stripes_effect_type_id; - stripes_effect_type_id = g_type_register_static (G_TYPE_OBJECT, "StripesEffect", &g_define_type_info, 0); - g_type_add_interface_static (stripes_effect_type_id, SPIT_TRANSITIONS_TYPE_EFFECT, &spit_transitions_effect_info); - g_once_init_leave (&stripes_effect_type_id__volatile, stripes_effect_type_id); - } - return stripes_effect_type_id__volatile; -} - - - diff --git a/plugins/shotwell-transitions/shotwell-transitions.c b/plugins/shotwell-transitions/shotwell-transitions.c deleted file mode 100644 index b8be39c..0000000 --- a/plugins/shotwell-transitions/shotwell-transitions.c +++ /dev/null @@ -1,1240 +0,0 @@ -/* shotwell-transitions.c generated by valac 0.40.4, the Vala compiler - * generated from shotwell-transitions.vala, do not modify */ - -/* Copyright 2016 Software Freedom Conservancy Inc. - * - * This software is licensed under the GNU Lesser General Public License - * (version 2.1 or later). See the COPYING file in this distribution. - */ - - -#include -#include -#include -#include -#include -#include -#include -#include -#include "shotwell-plugin-common.h" - - -#define TYPE_SHOTWELL_TRANSITIONS (shotwell_transitions_get_type ()) -#define SHOTWELL_TRANSITIONS(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SHOTWELL_TRANSITIONS, ShotwellTransitions)) -#define SHOTWELL_TRANSITIONS_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SHOTWELL_TRANSITIONS, ShotwellTransitionsClass)) -#define IS_SHOTWELL_TRANSITIONS(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SHOTWELL_TRANSITIONS)) -#define IS_SHOTWELL_TRANSITIONS_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SHOTWELL_TRANSITIONS)) -#define SHOTWELL_TRANSITIONS_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SHOTWELL_TRANSITIONS, ShotwellTransitionsClass)) - -typedef struct _ShotwellTransitions ShotwellTransitions; -typedef struct _ShotwellTransitionsClass ShotwellTransitionsClass; -typedef struct _ShotwellTransitionsPrivate ShotwellTransitionsPrivate; -enum { - SHOTWELL_TRANSITIONS_0_PROPERTY, - SHOTWELL_TRANSITIONS_NUM_PROPERTIES -}; -static GParamSpec* shotwell_transitions_properties[SHOTWELL_TRANSITIONS_NUM_PROPERTIES]; - -#define TYPE_SHOTWELL_TRANSITION_DESCRIPTOR (shotwell_transition_descriptor_get_type ()) -#define SHOTWELL_TRANSITION_DESCRIPTOR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SHOTWELL_TRANSITION_DESCRIPTOR, ShotwellTransitionDescriptor)) -#define SHOTWELL_TRANSITION_DESCRIPTOR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SHOTWELL_TRANSITION_DESCRIPTOR, ShotwellTransitionDescriptorClass)) -#define IS_SHOTWELL_TRANSITION_DESCRIPTOR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SHOTWELL_TRANSITION_DESCRIPTOR)) -#define IS_SHOTWELL_TRANSITION_DESCRIPTOR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SHOTWELL_TRANSITION_DESCRIPTOR)) -#define SHOTWELL_TRANSITION_DESCRIPTOR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SHOTWELL_TRANSITION_DESCRIPTOR, ShotwellTransitionDescriptorClass)) - -typedef struct _ShotwellTransitionDescriptor ShotwellTransitionDescriptor; -typedef struct _ShotwellTransitionDescriptorClass ShotwellTransitionDescriptorClass; - -#define TYPE_FADE_EFFECT_DESCRIPTOR (fade_effect_descriptor_get_type ()) -#define FADE_EFFECT_DESCRIPTOR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_FADE_EFFECT_DESCRIPTOR, FadeEffectDescriptor)) -#define FADE_EFFECT_DESCRIPTOR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_FADE_EFFECT_DESCRIPTOR, FadeEffectDescriptorClass)) -#define IS_FADE_EFFECT_DESCRIPTOR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_FADE_EFFECT_DESCRIPTOR)) -#define IS_FADE_EFFECT_DESCRIPTOR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_FADE_EFFECT_DESCRIPTOR)) -#define FADE_EFFECT_DESCRIPTOR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_FADE_EFFECT_DESCRIPTOR, FadeEffectDescriptorClass)) - -typedef struct _FadeEffectDescriptor FadeEffectDescriptor; -typedef struct _FadeEffectDescriptorClass FadeEffectDescriptorClass; - -#define TYPE_SLIDE_EFFECT_DESCRIPTOR (slide_effect_descriptor_get_type ()) -#define SLIDE_EFFECT_DESCRIPTOR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SLIDE_EFFECT_DESCRIPTOR, SlideEffectDescriptor)) -#define SLIDE_EFFECT_DESCRIPTOR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SLIDE_EFFECT_DESCRIPTOR, SlideEffectDescriptorClass)) -#define IS_SLIDE_EFFECT_DESCRIPTOR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SLIDE_EFFECT_DESCRIPTOR)) -#define IS_SLIDE_EFFECT_DESCRIPTOR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SLIDE_EFFECT_DESCRIPTOR)) -#define SLIDE_EFFECT_DESCRIPTOR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SLIDE_EFFECT_DESCRIPTOR, SlideEffectDescriptorClass)) - -typedef struct _SlideEffectDescriptor SlideEffectDescriptor; -typedef struct _SlideEffectDescriptorClass SlideEffectDescriptorClass; - -#define TYPE_CRUMBLE_EFFECT_DESCRIPTOR (crumble_effect_descriptor_get_type ()) -#define CRUMBLE_EFFECT_DESCRIPTOR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_CRUMBLE_EFFECT_DESCRIPTOR, CrumbleEffectDescriptor)) -#define CRUMBLE_EFFECT_DESCRIPTOR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_CRUMBLE_EFFECT_DESCRIPTOR, CrumbleEffectDescriptorClass)) -#define IS_CRUMBLE_EFFECT_DESCRIPTOR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_CRUMBLE_EFFECT_DESCRIPTOR)) -#define IS_CRUMBLE_EFFECT_DESCRIPTOR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_CRUMBLE_EFFECT_DESCRIPTOR)) -#define CRUMBLE_EFFECT_DESCRIPTOR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_CRUMBLE_EFFECT_DESCRIPTOR, CrumbleEffectDescriptorClass)) - -typedef struct _CrumbleEffectDescriptor CrumbleEffectDescriptor; -typedef struct _CrumbleEffectDescriptorClass CrumbleEffectDescriptorClass; - -#define TYPE_BLINDS_EFFECT_DESCRIPTOR (blinds_effect_descriptor_get_type ()) -#define BLINDS_EFFECT_DESCRIPTOR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_BLINDS_EFFECT_DESCRIPTOR, BlindsEffectDescriptor)) -#define BLINDS_EFFECT_DESCRIPTOR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_BLINDS_EFFECT_DESCRIPTOR, BlindsEffectDescriptorClass)) -#define IS_BLINDS_EFFECT_DESCRIPTOR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_BLINDS_EFFECT_DESCRIPTOR)) -#define IS_BLINDS_EFFECT_DESCRIPTOR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_BLINDS_EFFECT_DESCRIPTOR)) -#define BLINDS_EFFECT_DESCRIPTOR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_BLINDS_EFFECT_DESCRIPTOR, BlindsEffectDescriptorClass)) - -typedef struct _BlindsEffectDescriptor BlindsEffectDescriptor; -typedef struct _BlindsEffectDescriptorClass BlindsEffectDescriptorClass; - -#define TYPE_CIRCLE_EFFECT_DESCRIPTOR (circle_effect_descriptor_get_type ()) -#define CIRCLE_EFFECT_DESCRIPTOR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_CIRCLE_EFFECT_DESCRIPTOR, CircleEffectDescriptor)) -#define CIRCLE_EFFECT_DESCRIPTOR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_CIRCLE_EFFECT_DESCRIPTOR, CircleEffectDescriptorClass)) -#define IS_CIRCLE_EFFECT_DESCRIPTOR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_CIRCLE_EFFECT_DESCRIPTOR)) -#define IS_CIRCLE_EFFECT_DESCRIPTOR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_CIRCLE_EFFECT_DESCRIPTOR)) -#define CIRCLE_EFFECT_DESCRIPTOR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_CIRCLE_EFFECT_DESCRIPTOR, CircleEffectDescriptorClass)) - -typedef struct _CircleEffectDescriptor CircleEffectDescriptor; -typedef struct _CircleEffectDescriptorClass CircleEffectDescriptorClass; - -#define TYPE_CIRCLES_EFFECT_DESCRIPTOR (circles_effect_descriptor_get_type ()) -#define CIRCLES_EFFECT_DESCRIPTOR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_CIRCLES_EFFECT_DESCRIPTOR, CirclesEffectDescriptor)) -#define CIRCLES_EFFECT_DESCRIPTOR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_CIRCLES_EFFECT_DESCRIPTOR, CirclesEffectDescriptorClass)) -#define IS_CIRCLES_EFFECT_DESCRIPTOR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_CIRCLES_EFFECT_DESCRIPTOR)) -#define IS_CIRCLES_EFFECT_DESCRIPTOR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_CIRCLES_EFFECT_DESCRIPTOR)) -#define CIRCLES_EFFECT_DESCRIPTOR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_CIRCLES_EFFECT_DESCRIPTOR, CirclesEffectDescriptorClass)) - -typedef struct _CirclesEffectDescriptor CirclesEffectDescriptor; -typedef struct _CirclesEffectDescriptorClass CirclesEffectDescriptorClass; - -#define TYPE_CLOCK_EFFECT_DESCRIPTOR (clock_effect_descriptor_get_type ()) -#define CLOCK_EFFECT_DESCRIPTOR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_CLOCK_EFFECT_DESCRIPTOR, ClockEffectDescriptor)) -#define CLOCK_EFFECT_DESCRIPTOR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_CLOCK_EFFECT_DESCRIPTOR, ClockEffectDescriptorClass)) -#define IS_CLOCK_EFFECT_DESCRIPTOR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_CLOCK_EFFECT_DESCRIPTOR)) -#define IS_CLOCK_EFFECT_DESCRIPTOR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_CLOCK_EFFECT_DESCRIPTOR)) -#define CLOCK_EFFECT_DESCRIPTOR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_CLOCK_EFFECT_DESCRIPTOR, ClockEffectDescriptorClass)) - -typedef struct _ClockEffectDescriptor ClockEffectDescriptor; -typedef struct _ClockEffectDescriptorClass ClockEffectDescriptorClass; - -#define TYPE_SQUARES_EFFECT_DESCRIPTOR (squares_effect_descriptor_get_type ()) -#define SQUARES_EFFECT_DESCRIPTOR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SQUARES_EFFECT_DESCRIPTOR, SquaresEffectDescriptor)) -#define SQUARES_EFFECT_DESCRIPTOR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SQUARES_EFFECT_DESCRIPTOR, SquaresEffectDescriptorClass)) -#define IS_SQUARES_EFFECT_DESCRIPTOR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SQUARES_EFFECT_DESCRIPTOR)) -#define IS_SQUARES_EFFECT_DESCRIPTOR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SQUARES_EFFECT_DESCRIPTOR)) -#define SQUARES_EFFECT_DESCRIPTOR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SQUARES_EFFECT_DESCRIPTOR, SquaresEffectDescriptorClass)) - -typedef struct _SquaresEffectDescriptor SquaresEffectDescriptor; -typedef struct _SquaresEffectDescriptorClass SquaresEffectDescriptorClass; - -#define TYPE_CHESS_EFFECT_DESCRIPTOR (chess_effect_descriptor_get_type ()) -#define CHESS_EFFECT_DESCRIPTOR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_CHESS_EFFECT_DESCRIPTOR, ChessEffectDescriptor)) -#define CHESS_EFFECT_DESCRIPTOR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_CHESS_EFFECT_DESCRIPTOR, ChessEffectDescriptorClass)) -#define IS_CHESS_EFFECT_DESCRIPTOR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_CHESS_EFFECT_DESCRIPTOR)) -#define IS_CHESS_EFFECT_DESCRIPTOR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_CHESS_EFFECT_DESCRIPTOR)) -#define CHESS_EFFECT_DESCRIPTOR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_CHESS_EFFECT_DESCRIPTOR, ChessEffectDescriptorClass)) - -typedef struct _ChessEffectDescriptor ChessEffectDescriptor; -typedef struct _ChessEffectDescriptorClass ChessEffectDescriptorClass; - -#define TYPE_STRIPES_EFFECT_DESCRIPTOR (stripes_effect_descriptor_get_type ()) -#define STRIPES_EFFECT_DESCRIPTOR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_STRIPES_EFFECT_DESCRIPTOR, StripesEffectDescriptor)) -#define STRIPES_EFFECT_DESCRIPTOR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_STRIPES_EFFECT_DESCRIPTOR, StripesEffectDescriptorClass)) -#define IS_STRIPES_EFFECT_DESCRIPTOR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_STRIPES_EFFECT_DESCRIPTOR)) -#define IS_STRIPES_EFFECT_DESCRIPTOR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_STRIPES_EFFECT_DESCRIPTOR)) -#define STRIPES_EFFECT_DESCRIPTOR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_STRIPES_EFFECT_DESCRIPTOR, StripesEffectDescriptorClass)) - -typedef struct _StripesEffectDescriptor StripesEffectDescriptor; -typedef struct _StripesEffectDescriptorClass StripesEffectDescriptorClass; -#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL))) -typedef struct _ShotwellTransitionDescriptorPrivate ShotwellTransitionDescriptorPrivate; -enum { - SHOTWELL_TRANSITION_DESCRIPTOR_0_PROPERTY, - SHOTWELL_TRANSITION_DESCRIPTOR_NUM_PROPERTIES -}; -static GParamSpec* shotwell_transition_descriptor_properties[SHOTWELL_TRANSITION_DESCRIPTOR_NUM_PROPERTIES]; -#define _g_free0(var) (var = (g_free (var), NULL)) - -struct _ShotwellTransitions { - GObject parent_instance; - ShotwellTransitionsPrivate * priv; -}; - -struct _ShotwellTransitionsClass { - GObjectClass parent_class; -}; - -struct _ShotwellTransitionsPrivate { - SpitPluggable** pluggables; - gint pluggables_length1; - gint _pluggables_size_; -}; - -struct _ShotwellTransitionDescriptor { - GObject parent_instance; - ShotwellTransitionDescriptorPrivate * priv; -}; - -struct _ShotwellTransitionDescriptorClass { - GObjectClass parent_class; - const gchar* (*get_id) (ShotwellTransitionDescriptor* self); - const gchar* (*get_pluggable_name) (ShotwellTransitionDescriptor* self); - SpitTransitionsEffect* (*create) (ShotwellTransitionDescriptor* self, SpitHostInterface* host); -}; - - -static gpointer shotwell_transitions_parent_class = NULL; -static SpitModuleIface * shotwell_transitions_spit_module_parent_iface = NULL; -static gpointer shotwell_transition_descriptor_parent_class = NULL; -static GdkPixbuf** shotwell_transition_descriptor_icon_pixbuf_set; -static gint shotwell_transition_descriptor_icon_pixbuf_set_length1; -static GdkPixbuf** shotwell_transition_descriptor_icon_pixbuf_set = NULL; -static gint shotwell_transition_descriptor_icon_pixbuf_set_length1 = 0; -static gint _shotwell_transition_descriptor_icon_pixbuf_set_size_ = 0; -static SpitPluggableIface * shotwell_transition_descriptor_spit_pluggable_parent_iface = NULL; -static SpitTransitionsDescriptorIface * shotwell_transition_descriptor_spit_transitions_descriptor_parent_iface = NULL; - -GType shotwell_transitions_get_type (void) G_GNUC_CONST; -#define SHOTWELL_TRANSITIONS_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_SHOTWELL_TRANSITIONS, ShotwellTransitionsPrivate)) -ShotwellTransitions* shotwell_transitions_new (GFile* module_file); -ShotwellTransitions* shotwell_transitions_construct (GType object_type, - GFile* module_file); -FadeEffectDescriptor* fade_effect_descriptor_new (GFile* resource_directory); -FadeEffectDescriptor* fade_effect_descriptor_construct (GType object_type, - GFile* resource_directory); -GType shotwell_transition_descriptor_get_type (void) G_GNUC_CONST; -GType fade_effect_descriptor_get_type (void) G_GNUC_CONST; -static void _vala_array_add1 (SpitPluggable** * array, - int* length, - int* size, - SpitPluggable* value); -SlideEffectDescriptor* slide_effect_descriptor_new (GFile* resource_directory); -SlideEffectDescriptor* slide_effect_descriptor_construct (GType object_type, - GFile* resource_directory); -GType slide_effect_descriptor_get_type (void) G_GNUC_CONST; -static void _vala_array_add2 (SpitPluggable** * array, - int* length, - int* size, - SpitPluggable* value); -CrumbleEffectDescriptor* crumble_effect_descriptor_new (GFile* resource_directory); -CrumbleEffectDescriptor* crumble_effect_descriptor_construct (GType object_type, - GFile* resource_directory); -GType crumble_effect_descriptor_get_type (void) G_GNUC_CONST; -static void _vala_array_add3 (SpitPluggable** * array, - int* length, - int* size, - SpitPluggable* value); -BlindsEffectDescriptor* blinds_effect_descriptor_new (GFile* resource_directory); -BlindsEffectDescriptor* blinds_effect_descriptor_construct (GType object_type, - GFile* resource_directory); -GType blinds_effect_descriptor_get_type (void) G_GNUC_CONST; -static void _vala_array_add4 (SpitPluggable** * array, - int* length, - int* size, - SpitPluggable* value); -CircleEffectDescriptor* circle_effect_descriptor_new (GFile* resource_directory); -CircleEffectDescriptor* circle_effect_descriptor_construct (GType object_type, - GFile* resource_directory); -GType circle_effect_descriptor_get_type (void) G_GNUC_CONST; -static void _vala_array_add5 (SpitPluggable** * array, - int* length, - int* size, - SpitPluggable* value); -CirclesEffectDescriptor* circles_effect_descriptor_new (GFile* resource_directory); -CirclesEffectDescriptor* circles_effect_descriptor_construct (GType object_type, - GFile* resource_directory); -GType circles_effect_descriptor_get_type (void) G_GNUC_CONST; -static void _vala_array_add6 (SpitPluggable** * array, - int* length, - int* size, - SpitPluggable* value); -ClockEffectDescriptor* clock_effect_descriptor_new (GFile* resource_directory); -ClockEffectDescriptor* clock_effect_descriptor_construct (GType object_type, - GFile* resource_directory); -GType clock_effect_descriptor_get_type (void) G_GNUC_CONST; -static void _vala_array_add7 (SpitPluggable** * array, - int* length, - int* size, - SpitPluggable* value); -SquaresEffectDescriptor* squares_effect_descriptor_new (GFile* resource_directory); -SquaresEffectDescriptor* squares_effect_descriptor_construct (GType object_type, - GFile* resource_directory); -GType squares_effect_descriptor_get_type (void) G_GNUC_CONST; -static void _vala_array_add8 (SpitPluggable** * array, - int* length, - int* size, - SpitPluggable* value); -ChessEffectDescriptor* chess_effect_descriptor_new (GFile* resource_directory); -ChessEffectDescriptor* chess_effect_descriptor_construct (GType object_type, - GFile* resource_directory); -GType chess_effect_descriptor_get_type (void) G_GNUC_CONST; -static void _vala_array_add9 (SpitPluggable** * array, - int* length, - int* size, - SpitPluggable* value); -StripesEffectDescriptor* stripes_effect_descriptor_new (GFile* resource_directory); -StripesEffectDescriptor* stripes_effect_descriptor_construct (GType object_type, - GFile* resource_directory); -GType stripes_effect_descriptor_get_type (void) G_GNUC_CONST; -static void _vala_array_add10 (SpitPluggable** * array, - int* length, - int* size, - SpitPluggable* value); -static const gchar* shotwell_transitions_real_get_module_name (SpitModule* base); -static const gchar* shotwell_transitions_real_get_version (SpitModule* base); -static const gchar* shotwell_transitions_real_get_id (SpitModule* base); -static SpitPluggable** shotwell_transitions_real_get_pluggables (SpitModule* base, - int* result_length1); -static void shotwell_transitions_finalize (GObject * obj); -SpitModule* spit_entry_point (SpitEntryPointParams* params); -#define SHOTWELL_TRANSITION_DESCRIPTOR_ICON_FILENAME "slideshow-plugin.png" -ShotwellTransitionDescriptor* shotwell_transition_descriptor_construct (GType object_type, - GFile* resource_directory); -static gint shotwell_transition_descriptor_real_get_pluggable_interface (SpitPluggable* base, - gint min_host_interface, - gint max_host_interface); -const gchar* shotwell_transition_descriptor_get_id (ShotwellTransitionDescriptor* self); -static const gchar* shotwell_transition_descriptor_real_get_id (ShotwellTransitionDescriptor* self); -const gchar* shotwell_transition_descriptor_get_pluggable_name (ShotwellTransitionDescriptor* self); -static const gchar* shotwell_transition_descriptor_real_get_pluggable_name (ShotwellTransitionDescriptor* self); -static void shotwell_transition_descriptor_real_get_info (SpitPluggable* base, - SpitPluggableInfo* info); -static GdkPixbuf** _vala_array_dup1 (GdkPixbuf** self, - int length); -static void shotwell_transition_descriptor_real_activation (SpitPluggable* base, - gboolean enabled); -SpitTransitionsEffect* shotwell_transition_descriptor_create (ShotwellTransitionDescriptor* self, - SpitHostInterface* host); -static SpitTransitionsEffect* shotwell_transition_descriptor_real_create (ShotwellTransitionDescriptor* self, - SpitHostInterface* host); -static void shotwell_transition_descriptor_finalize (GObject * obj); -static void _vala_array_destroy (gpointer array, - gint array_length, - GDestroyNotify destroy_func); -static void _vala_array_free (gpointer array, - gint array_length, - GDestroyNotify destroy_func); - - -static void -_vala_array_add1 (SpitPluggable** * array, - int* length, - int* size, - SpitPluggable* value) -{ -#line 15 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - if ((*length) == (*size)) { -#line 15 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - *size = (*size) ? (2 * (*size)) : 4; -#line 15 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - *array = g_renew (SpitPluggable*, *array, (*size) + 1); -#line 330 "shotwell-transitions.c" - } -#line 15 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - (*array)[(*length)++] = value; -#line 15 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - (*array)[*length] = NULL; -#line 336 "shotwell-transitions.c" -} - - -static void -_vala_array_add2 (SpitPluggable** * array, - int* length, - int* size, - SpitPluggable* value) -{ -#line 16 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - if ((*length) == (*size)) { -#line 16 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - *size = (*size) ? (2 * (*size)) : 4; -#line 16 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - *array = g_renew (SpitPluggable*, *array, (*size) + 1); -#line 352 "shotwell-transitions.c" - } -#line 16 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - (*array)[(*length)++] = value; -#line 16 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - (*array)[*length] = NULL; -#line 358 "shotwell-transitions.c" -} - - -static void -_vala_array_add3 (SpitPluggable** * array, - int* length, - int* size, - SpitPluggable* value) -{ -#line 17 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - if ((*length) == (*size)) { -#line 17 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - *size = (*size) ? (2 * (*size)) : 4; -#line 17 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - *array = g_renew (SpitPluggable*, *array, (*size) + 1); -#line 374 "shotwell-transitions.c" - } -#line 17 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - (*array)[(*length)++] = value; -#line 17 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - (*array)[*length] = NULL; -#line 380 "shotwell-transitions.c" -} - - -static void -_vala_array_add4 (SpitPluggable** * array, - int* length, - int* size, - SpitPluggable* value) -{ -#line 18 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - if ((*length) == (*size)) { -#line 18 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - *size = (*size) ? (2 * (*size)) : 4; -#line 18 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - *array = g_renew (SpitPluggable*, *array, (*size) + 1); -#line 396 "shotwell-transitions.c" - } -#line 18 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - (*array)[(*length)++] = value; -#line 18 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - (*array)[*length] = NULL; -#line 402 "shotwell-transitions.c" -} - - -static void -_vala_array_add5 (SpitPluggable** * array, - int* length, - int* size, - SpitPluggable* value) -{ -#line 19 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - if ((*length) == (*size)) { -#line 19 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - *size = (*size) ? (2 * (*size)) : 4; -#line 19 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - *array = g_renew (SpitPluggable*, *array, (*size) + 1); -#line 418 "shotwell-transitions.c" - } -#line 19 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - (*array)[(*length)++] = value; -#line 19 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - (*array)[*length] = NULL; -#line 424 "shotwell-transitions.c" -} - - -static void -_vala_array_add6 (SpitPluggable** * array, - int* length, - int* size, - SpitPluggable* value) -{ -#line 20 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - if ((*length) == (*size)) { -#line 20 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - *size = (*size) ? (2 * (*size)) : 4; -#line 20 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - *array = g_renew (SpitPluggable*, *array, (*size) + 1); -#line 440 "shotwell-transitions.c" - } -#line 20 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - (*array)[(*length)++] = value; -#line 20 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - (*array)[*length] = NULL; -#line 446 "shotwell-transitions.c" -} - - -static void -_vala_array_add7 (SpitPluggable** * array, - int* length, - int* size, - SpitPluggable* value) -{ -#line 21 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - if ((*length) == (*size)) { -#line 21 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - *size = (*size) ? (2 * (*size)) : 4; -#line 21 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - *array = g_renew (SpitPluggable*, *array, (*size) + 1); -#line 462 "shotwell-transitions.c" - } -#line 21 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - (*array)[(*length)++] = value; -#line 21 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - (*array)[*length] = NULL; -#line 468 "shotwell-transitions.c" -} - - -static void -_vala_array_add8 (SpitPluggable** * array, - int* length, - int* size, - SpitPluggable* value) -{ -#line 22 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - if ((*length) == (*size)) { -#line 22 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - *size = (*size) ? (2 * (*size)) : 4; -#line 22 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - *array = g_renew (SpitPluggable*, *array, (*size) + 1); -#line 484 "shotwell-transitions.c" - } -#line 22 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - (*array)[(*length)++] = value; -#line 22 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - (*array)[*length] = NULL; -#line 490 "shotwell-transitions.c" -} - - -static void -_vala_array_add9 (SpitPluggable** * array, - int* length, - int* size, - SpitPluggable* value) -{ -#line 23 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - if ((*length) == (*size)) { -#line 23 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - *size = (*size) ? (2 * (*size)) : 4; -#line 23 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - *array = g_renew (SpitPluggable*, *array, (*size) + 1); -#line 506 "shotwell-transitions.c" - } -#line 23 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - (*array)[(*length)++] = value; -#line 23 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - (*array)[*length] = NULL; -#line 512 "shotwell-transitions.c" -} - - -static void -_vala_array_add10 (SpitPluggable** * array, - int* length, - int* size, - SpitPluggable* value) -{ -#line 24 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - if ((*length) == (*size)) { -#line 24 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - *size = (*size) ? (2 * (*size)) : 4; -#line 24 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - *array = g_renew (SpitPluggable*, *array, (*size) + 1); -#line 528 "shotwell-transitions.c" - } -#line 24 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - (*array)[(*length)++] = value; -#line 24 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - (*array)[*length] = NULL; -#line 534 "shotwell-transitions.c" -} - - -ShotwellTransitions* -shotwell_transitions_construct (GType object_type, - GFile* module_file) -{ - ShotwellTransitions * self = NULL; - GFile* resource_directory = NULL; - GFile* _tmp0_; - SpitPluggable** _tmp1_; - gint _tmp1__length1; - FadeEffectDescriptor* _tmp2_; - SpitPluggable** _tmp3_; - gint _tmp3__length1; - SlideEffectDescriptor* _tmp4_; - SpitPluggable** _tmp5_; - gint _tmp5__length1; - CrumbleEffectDescriptor* _tmp6_; - SpitPluggable** _tmp7_; - gint _tmp7__length1; - BlindsEffectDescriptor* _tmp8_; - SpitPluggable** _tmp9_; - gint _tmp9__length1; - CircleEffectDescriptor* _tmp10_; - SpitPluggable** _tmp11_; - gint _tmp11__length1; - CirclesEffectDescriptor* _tmp12_; - SpitPluggable** _tmp13_; - gint _tmp13__length1; - ClockEffectDescriptor* _tmp14_; - SpitPluggable** _tmp15_; - gint _tmp15__length1; - SquaresEffectDescriptor* _tmp16_; - SpitPluggable** _tmp17_; - gint _tmp17__length1; - ChessEffectDescriptor* _tmp18_; - SpitPluggable** _tmp19_; - gint _tmp19__length1; - StripesEffectDescriptor* _tmp20_; -#line 12 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - g_return_val_if_fail (G_IS_FILE (module_file), NULL); -#line 12 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - self = (ShotwellTransitions*) g_object_new (object_type, NULL); -#line 13 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - _tmp0_ = g_file_get_parent (module_file); -#line 13 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - resource_directory = _tmp0_; -#line 15 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - _tmp1_ = self->priv->pluggables; -#line 15 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - _tmp1__length1 = self->priv->pluggables_length1; -#line 15 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - _tmp2_ = fade_effect_descriptor_new (resource_directory); -#line 15 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - _vala_array_add1 (&self->priv->pluggables, &self->priv->pluggables_length1, &self->priv->_pluggables_size_, G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, SPIT_TYPE_PLUGGABLE, SpitPluggable)); -#line 16 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - _tmp3_ = self->priv->pluggables; -#line 16 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - _tmp3__length1 = self->priv->pluggables_length1; -#line 16 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - _tmp4_ = slide_effect_descriptor_new (resource_directory); -#line 16 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - _vala_array_add2 (&self->priv->pluggables, &self->priv->pluggables_length1, &self->priv->_pluggables_size_, G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, SPIT_TYPE_PLUGGABLE, SpitPluggable)); -#line 17 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - _tmp5_ = self->priv->pluggables; -#line 17 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - _tmp5__length1 = self->priv->pluggables_length1; -#line 17 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - _tmp6_ = crumble_effect_descriptor_new (resource_directory); -#line 17 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - _vala_array_add3 (&self->priv->pluggables, &self->priv->pluggables_length1, &self->priv->_pluggables_size_, G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, SPIT_TYPE_PLUGGABLE, SpitPluggable)); -#line 18 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - _tmp7_ = self->priv->pluggables; -#line 18 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - _tmp7__length1 = self->priv->pluggables_length1; -#line 18 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - _tmp8_ = blinds_effect_descriptor_new (resource_directory); -#line 18 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - _vala_array_add4 (&self->priv->pluggables, &self->priv->pluggables_length1, &self->priv->_pluggables_size_, G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, SPIT_TYPE_PLUGGABLE, SpitPluggable)); -#line 19 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - _tmp9_ = self->priv->pluggables; -#line 19 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - _tmp9__length1 = self->priv->pluggables_length1; -#line 19 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - _tmp10_ = circle_effect_descriptor_new (resource_directory); -#line 19 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - _vala_array_add5 (&self->priv->pluggables, &self->priv->pluggables_length1, &self->priv->_pluggables_size_, G_TYPE_CHECK_INSTANCE_CAST (_tmp10_, SPIT_TYPE_PLUGGABLE, SpitPluggable)); -#line 20 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - _tmp11_ = self->priv->pluggables; -#line 20 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - _tmp11__length1 = self->priv->pluggables_length1; -#line 20 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - _tmp12_ = circles_effect_descriptor_new (resource_directory); -#line 20 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - _vala_array_add6 (&self->priv->pluggables, &self->priv->pluggables_length1, &self->priv->_pluggables_size_, G_TYPE_CHECK_INSTANCE_CAST (_tmp12_, SPIT_TYPE_PLUGGABLE, SpitPluggable)); -#line 21 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - _tmp13_ = self->priv->pluggables; -#line 21 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - _tmp13__length1 = self->priv->pluggables_length1; -#line 21 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - _tmp14_ = clock_effect_descriptor_new (resource_directory); -#line 21 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - _vala_array_add7 (&self->priv->pluggables, &self->priv->pluggables_length1, &self->priv->_pluggables_size_, G_TYPE_CHECK_INSTANCE_CAST (_tmp14_, SPIT_TYPE_PLUGGABLE, SpitPluggable)); -#line 22 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - _tmp15_ = self->priv->pluggables; -#line 22 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - _tmp15__length1 = self->priv->pluggables_length1; -#line 22 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - _tmp16_ = squares_effect_descriptor_new (resource_directory); -#line 22 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - _vala_array_add8 (&self->priv->pluggables, &self->priv->pluggables_length1, &self->priv->_pluggables_size_, G_TYPE_CHECK_INSTANCE_CAST (_tmp16_, SPIT_TYPE_PLUGGABLE, SpitPluggable)); -#line 23 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - _tmp17_ = self->priv->pluggables; -#line 23 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - _tmp17__length1 = self->priv->pluggables_length1; -#line 23 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - _tmp18_ = chess_effect_descriptor_new (resource_directory); -#line 23 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - _vala_array_add9 (&self->priv->pluggables, &self->priv->pluggables_length1, &self->priv->_pluggables_size_, G_TYPE_CHECK_INSTANCE_CAST (_tmp18_, SPIT_TYPE_PLUGGABLE, SpitPluggable)); -#line 24 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - _tmp19_ = self->priv->pluggables; -#line 24 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - _tmp19__length1 = self->priv->pluggables_length1; -#line 24 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - _tmp20_ = stripes_effect_descriptor_new (resource_directory); -#line 24 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - _vala_array_add10 (&self->priv->pluggables, &self->priv->pluggables_length1, &self->priv->_pluggables_size_, G_TYPE_CHECK_INSTANCE_CAST (_tmp20_, SPIT_TYPE_PLUGGABLE, SpitPluggable)); -#line 12 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - _g_object_unref0 (resource_directory); -#line 12 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - return self; -#line 667 "shotwell-transitions.c" -} - - -ShotwellTransitions* -shotwell_transitions_new (GFile* module_file) -{ -#line 12 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - return shotwell_transitions_construct (TYPE_SHOTWELL_TRANSITIONS, module_file); -#line 676 "shotwell-transitions.c" -} - - -static const gchar* -shotwell_transitions_real_get_module_name (SpitModule* base) -{ - ShotwellTransitions * self; - const gchar* result = NULL; -#line 27 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_SHOTWELL_TRANSITIONS, ShotwellTransitions); -#line 28 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - result = _ ("Core Slideshow Transitions"); -#line 28 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - return result; -#line 691 "shotwell-transitions.c" -} - - -static const gchar* -shotwell_transitions_real_get_version (SpitModule* base) -{ - ShotwellTransitions * self; - const gchar* result = NULL; -#line 31 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_SHOTWELL_TRANSITIONS, ShotwellTransitions); -#line 32 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - result = _VERSION; -#line 32 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - return result; -#line 706 "shotwell-transitions.c" -} - - -static const gchar* -shotwell_transitions_real_get_id (SpitModule* base) -{ - ShotwellTransitions * self; - const gchar* result = NULL; -#line 35 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_SHOTWELL_TRANSITIONS, ShotwellTransitions); -#line 36 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - result = "org.yorba.shotwell.transitions"; -#line 36 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - return result; -#line 721 "shotwell-transitions.c" -} - - -static SpitPluggable** -shotwell_transitions_real_get_pluggables (SpitModule* base, - int* result_length1) -{ - ShotwellTransitions * self; - SpitPluggable** result = NULL; - SpitPluggable** _tmp0_; - gint _tmp0__length1; - SpitPluggable** _tmp1_; - gint _tmp1__length1; -#line 39 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_SHOTWELL_TRANSITIONS, ShotwellTransitions); -#line 40 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - _tmp0_ = self->priv->pluggables; -#line 40 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - _tmp0__length1 = self->priv->pluggables_length1; -#line 40 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - _tmp1_ = _tmp0_; -#line 40 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - _tmp1__length1 = _tmp0__length1; -#line 40 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - if (result_length1) { -#line 40 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - *result_length1 = _tmp1__length1; -#line 749 "shotwell-transitions.c" - } -#line 40 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - result = _tmp1_; -#line 40 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - return result; -#line 755 "shotwell-transitions.c" -} - - -static void -shotwell_transitions_class_init (ShotwellTransitionsClass * klass) -{ -#line 9 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - shotwell_transitions_parent_class = g_type_class_peek_parent (klass); -#line 9 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - g_type_class_add_private (klass, sizeof (ShotwellTransitionsPrivate)); -#line 9 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - G_OBJECT_CLASS (klass)->finalize = shotwell_transitions_finalize; -#line 768 "shotwell-transitions.c" -} - - -static void -shotwell_transitions_spit_module_interface_init (SpitModuleIface * iface) -{ -#line 9 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - shotwell_transitions_spit_module_parent_iface = g_type_interface_peek_parent (iface); -#line 9 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - iface->get_module_name = (const gchar* (*) (SpitModule *)) shotwell_transitions_real_get_module_name; -#line 9 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - iface->get_version = (const gchar* (*) (SpitModule *)) shotwell_transitions_real_get_version; -#line 9 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - iface->get_id = (const gchar* (*) (SpitModule *)) shotwell_transitions_real_get_id; -#line 9 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - iface->get_pluggables = (SpitPluggable** (*) (SpitModule *, int*)) shotwell_transitions_real_get_pluggables; -#line 785 "shotwell-transitions.c" -} - - -static void -shotwell_transitions_instance_init (ShotwellTransitions * self) -{ - SpitPluggable** _tmp0_; -#line 9 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - self->priv = SHOTWELL_TRANSITIONS_GET_PRIVATE (self); -#line 10 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - _tmp0_ = g_new0 (SpitPluggable*, 0 + 1); -#line 10 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - self->priv->pluggables = _tmp0_; -#line 10 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - self->priv->pluggables_length1 = 0; -#line 10 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - self->priv->_pluggables_size_ = self->priv->pluggables_length1; -#line 803 "shotwell-transitions.c" -} - - -static void -shotwell_transitions_finalize (GObject * obj) -{ - ShotwellTransitions * self; -#line 9 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_SHOTWELL_TRANSITIONS, ShotwellTransitions); -#line 10 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - self->priv->pluggables = (_vala_array_free (self->priv->pluggables, self->priv->pluggables_length1, (GDestroyNotify) g_object_unref), NULL); -#line 9 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - G_OBJECT_CLASS (shotwell_transitions_parent_class)->finalize (obj); -#line 817 "shotwell-transitions.c" -} - - -GType -shotwell_transitions_get_type (void) -{ - static volatile gsize shotwell_transitions_type_id__volatile = 0; - if (g_once_init_enter (&shotwell_transitions_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (ShotwellTransitionsClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) shotwell_transitions_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (ShotwellTransitions), 0, (GInstanceInitFunc) shotwell_transitions_instance_init, NULL }; - static const GInterfaceInfo spit_module_info = { (GInterfaceInitFunc) shotwell_transitions_spit_module_interface_init, (GInterfaceFinalizeFunc) NULL, NULL}; - GType shotwell_transitions_type_id; - shotwell_transitions_type_id = g_type_register_static (G_TYPE_OBJECT, "ShotwellTransitions", &g_define_type_info, 0); - g_type_add_interface_static (shotwell_transitions_type_id, SPIT_TYPE_MODULE, &spit_module_info); - g_once_init_leave (&shotwell_transitions_type_id__volatile, shotwell_transitions_type_id); - } - return shotwell_transitions_type_id__volatile; -} - - -SpitModule* -spit_entry_point (SpitEntryPointParams* params) -{ - SpitModule* result = NULL; - gint _tmp0_; - gint _tmp1_; - ShotwellTransitions* _tmp2_ = NULL; - gint _tmp3_; -#line 46 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - _tmp0_ = (*params).host_min_spit_interface; -#line 46 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - _tmp1_ = (*params).host_max_spit_interface; -#line 46 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - (*params).module_spit_interface = spit_negotiate_interfaces (_tmp0_, _tmp1_, SPIT_CURRENT_INTERFACE); -#line 49 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - _tmp3_ = (*params).module_spit_interface; -#line 49 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - if (_tmp3_ != SPIT_UNSUPPORTED_INTERFACE) { -#line 855 "shotwell-transitions.c" - GFile* _tmp4_; - ShotwellTransitions* _tmp5_; -#line 50 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - _tmp4_ = (*params).module_file; -#line 50 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - _tmp5_ = shotwell_transitions_new (_tmp4_); -#line 50 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - _g_object_unref0 (_tmp2_); -#line 50 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - _tmp2_ = _tmp5_; -#line 866 "shotwell-transitions.c" - } else { -#line 50 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - _g_object_unref0 (_tmp2_); -#line 50 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - _tmp2_ = NULL; -#line 872 "shotwell-transitions.c" - } -#line 49 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - result = G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, SPIT_TYPE_MODULE, SpitModule); -#line 49 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - return result; -#line 878 "shotwell-transitions.c" -} - - -ShotwellTransitionDescriptor* -shotwell_transition_descriptor_construct (GType object_type, - GFile* resource_directory) -{ - ShotwellTransitionDescriptor * self = NULL; - GdkPixbuf** _tmp0_; - gint _tmp0__length1; -#line 59 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - g_return_val_if_fail (G_IS_FILE (resource_directory), NULL); -#line 59 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - self = (ShotwellTransitionDescriptor*) g_object_new (object_type, NULL); -#line 60 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - _tmp0_ = shotwell_transition_descriptor_icon_pixbuf_set; -#line 60 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - _tmp0__length1 = shotwell_transition_descriptor_icon_pixbuf_set_length1; -#line 60 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - if (_tmp0_ == NULL) { -#line 899 "shotwell-transitions.c" - gint _tmp1_; - GdkPixbuf** _tmp2_; -#line 61 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - _tmp2_ = resources_load_from_resource (PLUGIN_RESOURCE_PATH "/" SHOTWELL_TRANSITION_DESCRIPTOR_ICON_FILENAME, &_tmp1_); -#line 61 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - shotwell_transition_descriptor_icon_pixbuf_set = (_vala_array_free (shotwell_transition_descriptor_icon_pixbuf_set, shotwell_transition_descriptor_icon_pixbuf_set_length1, (GDestroyNotify) g_object_unref), NULL); -#line 61 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - shotwell_transition_descriptor_icon_pixbuf_set = _tmp2_; -#line 61 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - shotwell_transition_descriptor_icon_pixbuf_set_length1 = _tmp1_; -#line 61 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - _shotwell_transition_descriptor_icon_pixbuf_set_size_ = shotwell_transition_descriptor_icon_pixbuf_set_length1; -#line 912 "shotwell-transitions.c" - } -#line 59 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - return self; -#line 916 "shotwell-transitions.c" -} - - -static gint -shotwell_transition_descriptor_real_get_pluggable_interface (SpitPluggable* base, - gint min_host_interface, - gint max_host_interface) -{ - ShotwellTransitionDescriptor * self; - gint result = 0; -#line 65 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_SHOTWELL_TRANSITION_DESCRIPTOR, ShotwellTransitionDescriptor); -#line 66 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - result = spit_negotiate_interfaces (min_host_interface, max_host_interface, SPIT_TRANSITIONS_CURRENT_INTERFACE); -#line 66 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - return result; -#line 933 "shotwell-transitions.c" -} - - -static const gchar* -shotwell_transition_descriptor_real_get_id (ShotwellTransitionDescriptor* self) -{ -#line 70 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - g_critical ("Type `%s' does not implement abstract method `shotwell_transition_descriptor_get_id'", g_type_name (G_TYPE_FROM_INSTANCE (self))); -#line 70 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - return NULL; -#line 944 "shotwell-transitions.c" -} - - -const gchar* -shotwell_transition_descriptor_get_id (ShotwellTransitionDescriptor* self) -{ -#line 70 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - g_return_val_if_fail (IS_SHOTWELL_TRANSITION_DESCRIPTOR (self), NULL); -#line 70 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - return SHOTWELL_TRANSITION_DESCRIPTOR_GET_CLASS (self)->get_id (self); -#line 955 "shotwell-transitions.c" -} - - -static const gchar* -shotwell_transition_descriptor_real_get_pluggable_name (ShotwellTransitionDescriptor* self) -{ -#line 72 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - g_critical ("Type `%s' does not implement abstract method `shotwell_transition_descriptor_get_pluggable_name'", g_type_name (G_TYPE_FROM_INSTANCE (self))); -#line 72 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - return NULL; -#line 966 "shotwell-transitions.c" -} - - -const gchar* -shotwell_transition_descriptor_get_pluggable_name (ShotwellTransitionDescriptor* self) -{ -#line 72 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - g_return_val_if_fail (IS_SHOTWELL_TRANSITION_DESCRIPTOR (self), NULL); -#line 72 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - return SHOTWELL_TRANSITION_DESCRIPTOR_GET_CLASS (self)->get_pluggable_name (self); -#line 977 "shotwell-transitions.c" -} - - -static gpointer -_g_object_ref0 (gpointer self) -{ -#line 83 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - return self ? g_object_ref (self) : NULL; -#line 986 "shotwell-transitions.c" -} - - -static GdkPixbuf** -_vala_array_dup1 (GdkPixbuf** self, - int length) -{ - GdkPixbuf** result; - int i; -#line 83 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - result = g_new0 (GdkPixbuf*, length + 1); -#line 83 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - for (i = 0; i < length; i++) { -#line 1000 "shotwell-transitions.c" - GdkPixbuf* _tmp0_; -#line 83 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - _tmp0_ = _g_object_ref0 (self[i]); -#line 83 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - result[i] = _tmp0_; -#line 1006 "shotwell-transitions.c" - } -#line 83 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - return result; -#line 1010 "shotwell-transitions.c" -} - - -static void -shotwell_transition_descriptor_real_get_info (SpitPluggable* base, - SpitPluggableInfo* info) -{ - ShotwellTransitionDescriptor * 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 74 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_SHOTWELL_TRANSITION_DESCRIPTOR, ShotwellTransitionDescriptor); -#line 74 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - g_return_if_fail (info != NULL); -#line 75 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - _tmp0_ = g_strdup ("Maxim Kartashev"); -#line 75 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - _g_free0 ((*info).authors); -#line 75 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - (*info).authors = _tmp0_; -#line 76 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - _tmp1_ = g_strdup (_ ("Copyright 2010 Maxim Kartashev, Copyright 2016 Software Freedom Conser" \ -"vancy Inc.")); -#line 76 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - _g_free0 ((*info).copyright); -#line 76 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - (*info).copyright = _tmp1_; -#line 77 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - _tmp2_ = g_strdup (RESOURCES_TRANSLATORS); -#line 77 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - _g_free0 ((*info).translators); -#line 77 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - (*info).translators = _tmp2_; -#line 78 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - _tmp3_ = g_strdup (_VERSION); -#line 78 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - _g_free0 ((*info).version); -#line 78 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - (*info).version = _tmp3_; -#line 79 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - _tmp4_ = g_strdup (RESOURCES_WEBSITE_NAME); -#line 79 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - _g_free0 ((*info).website_name); -#line 79 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - (*info).website_name = _tmp4_; -#line 80 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - _tmp5_ = g_strdup (RESOURCES_WEBSITE_URL); -#line 80 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - _g_free0 ((*info).website_url); -#line 80 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - (*info).website_url = _tmp5_; -#line 81 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - (*info).is_license_wordwrapped = FALSE; -#line 82 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - _tmp6_ = g_strdup (RESOURCES_LICENSE); -#line 82 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - _g_free0 ((*info).license); -#line 82 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - (*info).license = _tmp6_; -#line 83 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - _tmp7_ = shotwell_transition_descriptor_icon_pixbuf_set; -#line 83 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - _tmp7__length1 = shotwell_transition_descriptor_icon_pixbuf_set_length1; -#line 83 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - _tmp8_ = (_tmp7_ != NULL) ? _vala_array_dup1 (_tmp7_, _tmp7__length1) : ((gpointer) _tmp7_); -#line 83 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - _tmp8__length1 = _tmp7__length1; -#line 83 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - (*info).icons = (_vala_array_free ((*info).icons, (*info).icons_length1, (GDestroyNotify) g_object_unref), NULL); -#line 83 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - (*info).icons = _tmp8_; -#line 83 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - (*info).icons_length1 = _tmp8__length1; -#line 1092 "shotwell-transitions.c" -} - - -static void -shotwell_transition_descriptor_real_activation (SpitPluggable* base, - gboolean enabled) -{ - ShotwellTransitionDescriptor * self; -#line 86 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_SHOTWELL_TRANSITION_DESCRIPTOR, ShotwellTransitionDescriptor); -#line 1103 "shotwell-transitions.c" -} - - -static SpitTransitionsEffect* -shotwell_transition_descriptor_real_create (ShotwellTransitionDescriptor* self, - SpitHostInterface* host) -{ -#line 89 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - g_critical ("Type `%s' does not implement abstract method `shotwell_transition_descriptor_create'", g_type_name (G_TYPE_FROM_INSTANCE (self))); -#line 89 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - return NULL; -#line 1115 "shotwell-transitions.c" -} - - -SpitTransitionsEffect* -shotwell_transition_descriptor_create (ShotwellTransitionDescriptor* self, - SpitHostInterface* host) -{ -#line 89 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - g_return_val_if_fail (IS_SHOTWELL_TRANSITION_DESCRIPTOR (self), NULL); -#line 89 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - return SHOTWELL_TRANSITION_DESCRIPTOR_GET_CLASS (self)->create (self, host); -#line 1127 "shotwell-transitions.c" -} - - -static void -shotwell_transition_descriptor_class_init (ShotwellTransitionDescriptorClass * klass) -{ -#line 54 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - shotwell_transition_descriptor_parent_class = g_type_class_peek_parent (klass); -#line 54 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - ((ShotwellTransitionDescriptorClass *) klass)->get_id = (const gchar* (*) (ShotwellTransitionDescriptor *)) shotwell_transition_descriptor_real_get_id; -#line 54 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - ((ShotwellTransitionDescriptorClass *) klass)->get_pluggable_name = (const gchar* (*) (ShotwellTransitionDescriptor *)) shotwell_transition_descriptor_real_get_pluggable_name; -#line 54 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - ((ShotwellTransitionDescriptorClass *) klass)->create = (SpitTransitionsEffect* (*) (ShotwellTransitionDescriptor *, SpitHostInterface*)) shotwell_transition_descriptor_real_create; -#line 54 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - G_OBJECT_CLASS (klass)->finalize = shotwell_transition_descriptor_finalize; -#line 1144 "shotwell-transitions.c" -} - - -static void -shotwell_transition_descriptor_spit_pluggable_interface_init (SpitPluggableIface * iface) -{ -#line 54 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - shotwell_transition_descriptor_spit_pluggable_parent_iface = g_type_interface_peek_parent (iface); -#line 54 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - iface->get_pluggable_interface = (gint (*) (SpitPluggable *, gint, gint)) shotwell_transition_descriptor_real_get_pluggable_interface; -#line 54 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - iface->get_id = (const gchar* (*) (SpitPluggable *)) shotwell_transition_descriptor_get_id; -#line 54 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - iface->get_pluggable_name = (const gchar* (*) (SpitPluggable *)) shotwell_transition_descriptor_get_pluggable_name; -#line 54 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - iface->get_info = (void (*) (SpitPluggable *, SpitPluggableInfo*)) shotwell_transition_descriptor_real_get_info; -#line 54 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - iface->activation = (void (*) (SpitPluggable *, gboolean)) shotwell_transition_descriptor_real_activation; -#line 1163 "shotwell-transitions.c" -} - - -static void -shotwell_transition_descriptor_spit_transitions_descriptor_interface_init (SpitTransitionsDescriptorIface * iface) -{ -#line 54 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - shotwell_transition_descriptor_spit_transitions_descriptor_parent_iface = g_type_interface_peek_parent (iface); -#line 54 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - iface->create = (SpitTransitionsEffect* (*) (SpitTransitionsDescriptor *, SpitHostInterface*)) shotwell_transition_descriptor_create; -#line 1174 "shotwell-transitions.c" -} - - -static void -shotwell_transition_descriptor_instance_init (ShotwellTransitionDescriptor * self) -{ -} - - -static void -shotwell_transition_descriptor_finalize (GObject * obj) -{ - ShotwellTransitionDescriptor * self; -#line 54 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_SHOTWELL_TRANSITION_DESCRIPTOR, ShotwellTransitionDescriptor); -#line 54 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - G_OBJECT_CLASS (shotwell_transition_descriptor_parent_class)->finalize (obj); -#line 1192 "shotwell-transitions.c" -} - - -GType -shotwell_transition_descriptor_get_type (void) -{ - static volatile gsize shotwell_transition_descriptor_type_id__volatile = 0; - if (g_once_init_enter (&shotwell_transition_descriptor_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (ShotwellTransitionDescriptorClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) shotwell_transition_descriptor_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (ShotwellTransitionDescriptor), 0, (GInstanceInitFunc) shotwell_transition_descriptor_instance_init, NULL }; - static const GInterfaceInfo spit_pluggable_info = { (GInterfaceInitFunc) shotwell_transition_descriptor_spit_pluggable_interface_init, (GInterfaceFinalizeFunc) NULL, NULL}; - static const GInterfaceInfo spit_transitions_descriptor_info = { (GInterfaceInitFunc) shotwell_transition_descriptor_spit_transitions_descriptor_interface_init, (GInterfaceFinalizeFunc) NULL, NULL}; - GType shotwell_transition_descriptor_type_id; - shotwell_transition_descriptor_type_id = g_type_register_static (G_TYPE_OBJECT, "ShotwellTransitionDescriptor", &g_define_type_info, G_TYPE_FLAG_ABSTRACT); - g_type_add_interface_static (shotwell_transition_descriptor_type_id, SPIT_TYPE_PLUGGABLE, &spit_pluggable_info); - g_type_add_interface_static (shotwell_transition_descriptor_type_id, SPIT_TRANSITIONS_TYPE_DESCRIPTOR, &spit_transitions_descriptor_info); - g_once_init_leave (&shotwell_transition_descriptor_type_id__volatile, shotwell_transition_descriptor_type_id); - } - return shotwell_transition_descriptor_type_id__volatile; -} - - -static void -_vala_array_destroy (gpointer array, - gint array_length, - GDestroyNotify destroy_func) -{ - if ((array != NULL) && (destroy_func != NULL)) { - int i; - for (i = 0; i < array_length; i = i + 1) { - if (((gpointer*) array)[i] != NULL) { - destroy_func (((gpointer*) array)[i]); - } - } - } -} - - -static void -_vala_array_free (gpointer array, - gint array_length, - GDestroyNotify destroy_func) -{ - _vala_array_destroy (array, array_length, destroy_func); - g_free (array); -} - - - -- cgit v1.2.3