summaryrefslogtreecommitdiff
path: root/plugins/shotwell-publishing/YouTubePublishing.c
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/shotwell-publishing/YouTubePublishing.c')
-rw-r--r--plugins/shotwell-publishing/YouTubePublishing.c1473
1 files changed, 704 insertions, 769 deletions
diff --git a/plugins/shotwell-publishing/YouTubePublishing.c b/plugins/shotwell-publishing/YouTubePublishing.c
index 188562b..4be28b4 100644
--- a/plugins/shotwell-publishing/YouTubePublishing.c
+++ b/plugins/shotwell-publishing/YouTubePublishing.c
@@ -1,4 +1,4 @@
-/* YouTubePublishing.c generated by valac 0.34.7, the Vala compiler
+/* YouTubePublishing.c generated by valac 0.36.6, the Vala compiler
* generated from YouTubePublishing.vala, do not modify */
/* Copyright 2016 Software Freedom Conservancy Inc.
@@ -112,6 +112,12 @@ typedef struct _PublishingYouTubePublishingOptionsPanePrivacyDescriptionClass Pu
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_LAST_SIGNAL
+};
+static guint publishing_you_tube_publishing_options_pane_signals[PUBLISHING_YOU_TUBE_PUBLISHING_OPTIONS_PANE_LAST_SIGNAL] = {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))
@@ -267,7 +273,9 @@ struct _PublishingYouTubeUploadTransactionSpliceWithProgressData {
int _state_;
GObject* _source_object_;
GAsyncResult* _res_;
- GSimpleAsyncResult* _async_result;
+ GTask* _async_result;
+ GAsyncReadyCallback _callback_;
+ gboolean _task_complete_;
PublishingYouTubeUploadTransaction* self;
GFileInfo* info;
GInputStream* input;
@@ -318,15 +326,15 @@ 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 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 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 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;
@@ -348,7 +356,7 @@ PublishingYouTubeYouTubePublisher* publishing_you_tube_you_tube_publisher_constr
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);
+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);
@@ -368,7 +376,7 @@ PublishingYouTubePrivacySetting publishing_you_tube_publishing_parameters_get_pr
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);
+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))
enum {
@@ -379,7 +387,7 @@ PublishingYouTubeYouTubeAuthorizer* publishing_you_tube_you_tube_authorizer_cons
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);
+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))
enum {
PUBLISHING_YOU_TUBE_YOU_TUBE_PUBLISHER_DUMMY_PROPERTY
@@ -409,7 +417,7 @@ PublishingYouTubeUploader* publishing_you_tube_uploader_construct (GType object_
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 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;
@@ -429,9 +437,9 @@ static void _publishing_you_tube_publishing_options_pane_on_publish_clicked_gtk_
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_add32 (PublishingYouTubePublishingOptionsPanePrivacyDescription*** array, int* length, int* size, PublishingYouTubePublishingOptionsPanePrivacyDescription* value);
-static void _vala_array_add33 (PublishingYouTubePublishingOptionsPanePrivacyDescription*** array, int* length, int* size, PublishingYouTubePublishingOptionsPanePrivacyDescription* value);
-static void _vala_array_add34 (PublishingYouTubePublishingOptionsPanePrivacyDescription*** array, int* length, int* size, PublishingYouTubePublishingOptionsPanePrivacyDescription* value);
+static void _vala_array_add32 (PublishingYouTubePublishingOptionsPanePrivacyDescription** * array, int* length, int* size, PublishingYouTubePublishingOptionsPanePrivacyDescription* value);
+static void _vala_array_add33 (PublishingYouTubePublishingOptionsPanePrivacyDescription** * array, int* length, int* size, PublishingYouTubePublishingOptionsPanePrivacyDescription* value);
+static void _vala_array_add34 (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);
@@ -439,8 +447,8 @@ static void publishing_you_tube_publishing_options_pane_real_on_pane_uninstalled
enum {
PUBLISHING_YOU_TUBE_PUBLISHING_OPTIONS_PANE_PRIVACY_DESCRIPTION_DUMMY_PROPERTY
};
-static void publishing_you_tube_publishing_options_pane_privacy_description_finalize (PublishingYouTubePublishingOptionsPanePrivacyDescription* obj);
-static void publishing_you_tube_publishing_options_pane_finalize (GObject* obj);
+static void publishing_you_tube_publishing_options_pane_privacy_description_finalize (PublishingYouTubePublishingOptionsPanePrivacyDescription * obj);
+static void publishing_you_tube_publishing_options_pane_finalize (GObject * obj);
GType publishing_you_tube_upload_transaction_get_type (void) G_GNUC_CONST;
#define PUBLISHING_YOU_TUBE_UPLOAD_TRANSACTION_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), PUBLISHING_YOU_TUBE_TYPE_UPLOAD_TRANSACTION, PublishingYouTubeUploadTransactionPrivate))
enum {
@@ -457,23 +465,24 @@ static void publishing_you_tube_upload_transaction_splice_with_progress_finish (
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);
+static void publishing_you_tube_upload_transaction_finalize (PublishingRESTSupportTransaction * obj);
#define PUBLISHING_YOU_TUBE_UPLOADER_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), PUBLISHING_YOU_TUBE_TYPE_UPLOADER, PublishingYouTubeUploaderPrivate))
enum {
PUBLISHING_YOU_TUBE_UPLOADER_DUMMY_PROPERTY
};
static PublishingRESTSupportTransaction* publishing_you_tube_uploader_real_create_transaction (PublishingRESTSupportBatchUploader* base, SpitPublishingPublishable* publishable);
-static void publishing_you_tube_uploader_finalize (PublishingRESTSupportBatchUploader* obj);
+static void publishing_you_tube_uploader_finalize (PublishingRESTSupportBatchUploader * obj);
static void _vala_array_destroy (gpointer array, gint array_length, GDestroyNotify destroy_func);
static void _vala_array_free (gpointer array, gint array_length, GDestroyNotify destroy_func);
YouTubeService* you_tube_service_construct (GType object_type, GFile* resource_directory) {
YouTubeService * self = NULL;
- GdkPixbuf** _tmp0_ = NULL;
- gint _tmp0__length1 = 0;
+ 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"
@@ -484,9 +493,9 @@ YouTubeService* you_tube_service_construct (GType object_type, GFile* resource_d
_tmp0__length1 = you_tube_service_icon_pixbuf_set_length1;
#line 13 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
if (_tmp0_ == NULL) {
-#line 488 "YouTubePublishing.c"
- gint _tmp1_ = 0;
- GdkPixbuf** _tmp2_ = NULL;
+#line 497 "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"
@@ -497,27 +506,27 @@ YouTubeService* you_tube_service_construct (GType object_type, GFile* resource_d
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 501 "YouTubePublishing.c"
+#line 510 "YouTubePublishing.c"
}
#line 12 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
return self;
-#line 505 "YouTubePublishing.c"
+#line 514 "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 512 "YouTubePublishing.c"
+#line 521 "YouTubePublishing.c"
}
static gint you_tube_service_real_get_pluggable_interface (SpitPluggable* base, gint min_host_interface, gint max_host_interface) {
YouTubeService * self;
gint result = 0;
- gint _tmp0_ = 0;
- gint _tmp1_ = 0;
- gint _tmp2_ = 0;
+ gint _tmp0_;
+ gint _tmp1_;
+ gint _tmp2_;
#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"
@@ -530,7 +539,7 @@ static gint you_tube_service_real_get_pluggable_interface (SpitPluggable* base,
result = _tmp2_;
#line 19 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
return result;
-#line 534 "YouTubePublishing.c"
+#line 543 "YouTubePublishing.c"
}
@@ -543,7 +552,7 @@ static const gchar* you_tube_service_real_get_id (SpitPluggable* base) {
result = "org.yorba.shotwell.publishing.youtube";
#line 24 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
return result;
-#line 547 "YouTubePublishing.c"
+#line 556 "YouTubePublishing.c"
}
@@ -556,14 +565,14 @@ static const gchar* you_tube_service_real_get_pluggable_name (SpitPluggable* bas
result = "YouTube";
#line 28 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
return result;
-#line 560 "YouTubePublishing.c"
+#line 569 "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 567 "YouTubePublishing.c"
+#line 576 "YouTubePublishing.c"
}
@@ -574,34 +583,33 @@ static GdkPixbuf** _vala_array_dup9 (GdkPixbuf** self, int length) {
result = g_new0 (GdkPixbuf*, length + 1);
#line 40 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
for (i = 0; i < length; i++) {
-#line 578 "YouTubePublishing.c"
- GdkPixbuf* _tmp0_ = NULL;
+#line 587 "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 584 "YouTubePublishing.c"
+#line 593 "YouTubePublishing.c"
}
#line 40 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
return result;
-#line 588 "YouTubePublishing.c"
+#line 597 "YouTubePublishing.c"
}
static void you_tube_service_real_get_info (SpitPluggable* base, SpitPluggableInfo* info) {
YouTubeService * self;
- gchar* _tmp0_ = NULL;
- const gchar* _tmp1_ = NULL;
- gchar* _tmp2_ = NULL;
- gchar* _tmp3_ = NULL;
- gchar* _tmp4_ = NULL;
- gchar* _tmp5_ = NULL;
- gchar* _tmp6_ = NULL;
- gchar* _tmp7_ = NULL;
- GdkPixbuf** _tmp8_ = NULL;
- gint _tmp8__length1 = 0;
- GdkPixbuf** _tmp9_ = NULL;
- gint _tmp9__length1 = 0;
+ 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"
@@ -613,68 +621,66 @@ static void you_tube_service_real_get_info (SpitPluggable* base, SpitPluggableIn
#line 32 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
(*info).authors = _tmp0_;
#line 33 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
- _tmp1_ = _ ("Copyright 2016 Software Freedom Conservancy Inc.");
-#line 33 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
- _tmp2_ = g_strdup (_tmp1_);
+ _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 = _tmp2_;
+ (*info).copyright = _tmp1_;
#line 34 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
- _tmp3_ = g_strdup (RESOURCES_TRANSLATORS);
+ _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 = _tmp3_;
+ (*info).translators = _tmp2_;
#line 35 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
- _tmp4_ = g_strdup (_VERSION);
+ _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 = _tmp4_;
+ (*info).version = _tmp3_;
#line 36 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
- _tmp5_ = g_strdup (RESOURCES_WEBSITE_NAME);
+ _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 = _tmp5_;
+ (*info).website_name = _tmp4_;
#line 37 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
- _tmp6_ = g_strdup (RESOURCES_WEBSITE_URL);
+ _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 = _tmp6_;
+ (*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"
- _tmp7_ = g_strdup (RESOURCES_LICENSE);
+ _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 = _tmp7_;
+ (*info).license = _tmp6_;
#line 40 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
- _tmp8_ = you_tube_service_icon_pixbuf_set;
+ _tmp7_ = you_tube_service_icon_pixbuf_set;
#line 40 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
- _tmp8__length1 = you_tube_service_icon_pixbuf_set_length1;
+ _tmp7__length1 = you_tube_service_icon_pixbuf_set_length1;
#line 40 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
- _tmp9_ = (_tmp8_ != NULL) ? _vala_array_dup9 (_tmp8_, _tmp8__length1) : ((gpointer) _tmp8_);
+ _tmp8_ = (_tmp7_ != NULL) ? _vala_array_dup9 (_tmp7_, _tmp7__length1) : ((gpointer) _tmp7_);
#line 40 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
- _tmp9__length1 = _tmp8__length1;
+ _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 = _tmp9_;
+ (*info).icons = _tmp8_;
#line 40 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
- (*info).icons_length1 = _tmp9__length1;
-#line 670 "YouTubePublishing.c"
+ (*info).icons_length1 = _tmp8__length1;
+#line 676 "YouTubePublishing.c"
}
static SpitPublishingPublisher* you_tube_service_real_create_publisher (SpitPublishingService* base, SpitPublishingPluginHost* host) {
YouTubeService * self;
SpitPublishingPublisher* result = NULL;
- SpitPublishingPluginHost* _tmp0_ = NULL;
- PublishingYouTubeYouTubePublisher* _tmp1_ = NULL;
+ SpitPublishingPluginHost* _tmp0_;
+ PublishingYouTubeYouTubePublisher* _tmp1_;
#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"
@@ -687,7 +693,7 @@ static SpitPublishingPublisher* you_tube_service_real_create_publisher (SpitPubl
result = G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, SPIT_PUBLISHING_TYPE_PUBLISHER, SpitPublishingPublisher);
#line 44 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
return result;
-#line 691 "YouTubePublishing.c"
+#line 697 "YouTubePublishing.c"
}
@@ -700,7 +706,7 @@ static SpitPublishingPublisherMediaType you_tube_service_real_get_supported_medi
result = SPIT_PUBLISHING_PUBLISHER_MEDIA_TYPE_VIDEO;
#line 48 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
return result;
-#line 704 "YouTubePublishing.c"
+#line 710 "YouTubePublishing.c"
}
@@ -708,7 +714,7 @@ static void you_tube_service_real_activation (SpitPluggable* base, gboolean enab
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 712 "YouTubePublishing.c"
+#line 718 "YouTubePublishing.c"
}
@@ -717,7 +723,7 @@ static void you_tube_service_class_init (YouTubeServiceClass * klass) {
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 721 "YouTubePublishing.c"
+#line 727 "YouTubePublishing.c"
}
@@ -725,16 +731,16 @@ static void you_tube_service_spit_pluggable_interface_init (SpitPluggableIface *
#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;
+ 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;
+ 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;
+ 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;
+ 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 738 "YouTubePublishing.c"
+ iface->activation = (void (*) (SpitPluggable *, gboolean)) you_tube_service_real_activation;
+#line 744 "YouTubePublishing.c"
}
@@ -742,10 +748,10 @@ static void you_tube_service_spit_publishing_service_interface_init (SpitPublish
#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;
+ 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 749 "YouTubePublishing.c"
+ iface->get_supported_media = (SpitPublishingPublisherMediaType (*) (SpitPublishingService *)) you_tube_service_real_get_supported_media;
+#line 755 "YouTubePublishing.c"
}
@@ -753,13 +759,13 @@ static void you_tube_service_instance_init (YouTubeService * self) {
}
-static void you_tube_service_finalize (GObject* obj) {
+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 763 "YouTubePublishing.c"
+#line 769 "YouTubePublishing.c"
}
@@ -803,20 +809,20 @@ PublishingYouTubePublishingParameters* publishing_you_tube_publishing_parameters
self->priv->user_name = NULL;
#line 70 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
return self;
-#line 807 "YouTubePublishing.c"
+#line 813 "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 814 "YouTubePublishing.c"
+#line 820 "YouTubePublishing.c"
}
PublishingYouTubePrivacySetting publishing_you_tube_publishing_parameters_get_privacy (PublishingYouTubePublishingParameters* self) {
PublishingYouTubePrivacySetting result = 0;
- PublishingYouTubePrivacySetting _tmp0_ = 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"
@@ -825,26 +831,26 @@ PublishingYouTubePrivacySetting publishing_you_tube_publishing_parameters_get_pr
result = _tmp0_;
#line 76 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
return result;
-#line 829 "YouTubePublishing.c"
+#line 835 "YouTubePublishing.c"
}
void publishing_you_tube_publishing_parameters_set_privacy (PublishingYouTubePublishingParameters* self, PublishingYouTubePrivacySetting privacy) {
- PublishingYouTubePrivacySetting _tmp0_ = 0;
+ PublishingYouTubePrivacySetting _tmp0_;
#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"
_tmp0_ = privacy;
#line 80 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
self->priv->privacy = _tmp0_;
-#line 841 "YouTubePublishing.c"
+#line 847 "YouTubePublishing.c"
}
gchar* publishing_you_tube_publishing_parameters_get_user_name (PublishingYouTubePublishingParameters* self) {
gchar* result = NULL;
- const gchar* _tmp0_ = NULL;
- gchar* _tmp1_ = 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"
@@ -855,13 +861,13 @@ gchar* publishing_you_tube_publishing_parameters_get_user_name (PublishingYouTub
result = _tmp1_;
#line 84 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
return result;
-#line 859 "YouTubePublishing.c"
+#line 865 "YouTubePublishing.c"
}
void publishing_you_tube_publishing_parameters_set_user_name (PublishingYouTubePublishingParameters* self, const gchar* user_name) {
- const gchar* _tmp0_ = NULL;
- gchar* _tmp1_ = NULL;
+ const gchar* _tmp0_;
+ gchar* _tmp1_;
#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"
@@ -872,14 +878,14 @@ void publishing_you_tube_publishing_parameters_set_user_name (PublishingYouTubeP
_g_free0 (self->priv->user_name);
#line 88 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
self->priv->user_name = _tmp1_;
-#line 876 "YouTubePublishing.c"
+#line 882 "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 883 "YouTubePublishing.c"
+#line 889 "YouTubePublishing.c"
}
@@ -888,7 +894,7 @@ static void publishing_you_tube_value_publishing_parameters_free_value (GValue*
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 892 "YouTubePublishing.c"
+#line 898 "YouTubePublishing.c"
}
}
@@ -898,11 +904,11 @@ static void publishing_you_tube_value_publishing_parameters_copy_value (const GV
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 902 "YouTubePublishing.c"
+#line 908 "YouTubePublishing.c"
} else {
#line 66 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
dest_value->data[0].v_pointer = NULL;
-#line 906 "YouTubePublishing.c"
+#line 912 "YouTubePublishing.c"
}
}
@@ -910,66 +916,66 @@ static void publishing_you_tube_value_publishing_parameters_copy_value (const GV
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 914 "YouTubePublishing.c"
+#line 920 "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 921 "YouTubePublishing.c"
- PublishingYouTubePublishingParameters* object;
+#line 927 "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 928 "YouTubePublishing.c"
+#line 934 "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 932 "YouTubePublishing.c"
+#line 938 "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 936 "YouTubePublishing.c"
+#line 942 "YouTubePublishing.c"
} else {
#line 66 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
value->data[0].v_pointer = NULL;
-#line 940 "YouTubePublishing.c"
+#line 946 "YouTubePublishing.c"
}
#line 66 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
return NULL;
-#line 944 "YouTubePublishing.c"
+#line 950 "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;
+ 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 955 "YouTubePublishing.c"
+#line 961 "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 961 "YouTubePublishing.c"
+#line 967 "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 965 "YouTubePublishing.c"
+#line 971 "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 969 "YouTubePublishing.c"
+#line 975 "YouTubePublishing.c"
}
#line 66 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
return NULL;
-#line 973 "YouTubePublishing.c"
+#line 979 "YouTubePublishing.c"
}
@@ -983,7 +989,7 @@ GParamSpec* publishing_you_tube_param_spec_publishing_parameters (const gchar* n
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 987 "YouTubePublishing.c"
+#line 993 "YouTubePublishing.c"
}
@@ -992,12 +998,12 @@ gpointer publishing_you_tube_value_get_publishing_parameters (const GValue* valu
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 996 "YouTubePublishing.c"
+#line 1002 "YouTubePublishing.c"
}
void publishing_you_tube_value_set_publishing_parameters (GValue* value, gpointer v_object) {
- PublishingYouTubePublishingParameters* old;
+ 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"
@@ -1012,23 +1018,23 @@ void publishing_you_tube_value_set_publishing_parameters (GValue* value, gpointe
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 1016 "YouTubePublishing.c"
+#line 1022 "YouTubePublishing.c"
} else {
#line 66 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
value->data[0].v_pointer = NULL;
-#line 1020 "YouTubePublishing.c"
+#line 1026 "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 1026 "YouTubePublishing.c"
+#line 1032 "YouTubePublishing.c"
}
}
void publishing_you_tube_value_take_publishing_parameters (GValue* value, gpointer v_object) {
- PublishingYouTubePublishingParameters* old;
+ 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"
@@ -1041,17 +1047,17 @@ void publishing_you_tube_value_take_publishing_parameters (GValue* value, gpoint
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 1045 "YouTubePublishing.c"
+#line 1051 "YouTubePublishing.c"
} else {
#line 66 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
value->data[0].v_pointer = NULL;
-#line 1049 "YouTubePublishing.c"
+#line 1055 "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 1055 "YouTubePublishing.c"
+#line 1061 "YouTubePublishing.c"
}
}
@@ -1063,7 +1069,7 @@ static void publishing_you_tube_publishing_parameters_class_init (PublishingYouT
((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 1067 "YouTubePublishing.c"
+#line 1073 "YouTubePublishing.c"
}
@@ -1072,11 +1078,11 @@ static void publishing_you_tube_publishing_parameters_instance_init (PublishingY
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 1076 "YouTubePublishing.c"
+#line 1082 "YouTubePublishing.c"
}
-static void publishing_you_tube_publishing_parameters_finalize (PublishingYouTubePublishingParameters* obj) {
+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);
@@ -1084,7 +1090,7 @@ static void publishing_you_tube_publishing_parameters_finalize (PublishingYouTub
g_signal_handlers_destroy (self);
#line 68 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
_g_free0 (self->priv->user_name);
-#line 1088 "YouTubePublishing.c"
+#line 1094 "YouTubePublishing.c"
}
@@ -1103,18 +1109,18 @@ GType publishing_you_tube_publishing_parameters_get_type (void) {
gpointer publishing_you_tube_publishing_parameters_ref (gpointer instance) {
- PublishingYouTubePublishingParameters* self;
+ 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 1113 "YouTubePublishing.c"
+#line 1119 "YouTubePublishing.c"
}
void publishing_you_tube_publishing_parameters_unref (gpointer instance) {
- PublishingYouTubePublishingParameters* self;
+ 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)) {
@@ -1122,7 +1128,7 @@ void publishing_you_tube_publishing_parameters_unref (gpointer instance) {
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 1126 "YouTubePublishing.c"
+#line 1132 "YouTubePublishing.c"
}
}
@@ -1130,16 +1136,16 @@ void publishing_you_tube_publishing_parameters_unref (gpointer instance) {
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 1134 "YouTubePublishing.c"
+#line 1140 "YouTubePublishing.c"
}
PublishingYouTubeYouTubeAuthorizer* publishing_you_tube_you_tube_authorizer_construct (GType object_type, PublishingRESTSupportGoogleSession* session, SpitPublishingAuthenticator* authenticator) {
PublishingYouTubeYouTubeAuthorizer * self = NULL;
- PublishingRESTSupportGoogleSession* _tmp0_ = NULL;
- PublishingRESTSupportGoogleSession* _tmp1_ = NULL;
- SpitPublishingAuthenticator* _tmp2_ = NULL;
- SpitPublishingAuthenticator* _tmp3_ = NULL;
+ PublishingRESTSupportGoogleSession* _tmp0_;
+ PublishingRESTSupportGoogleSession* _tmp1_;
+ SpitPublishingAuthenticator* _tmp2_;
+ SpitPublishingAuthenticator* _tmp3_;
#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"
@@ -1164,14 +1170,14 @@ PublishingYouTubeYouTubeAuthorizer* publishing_you_tube_you_tube_authorizer_cons
self->priv->authenticator = _tmp3_;
#line 96 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
return self;
-#line 1168 "YouTubePublishing.c"
+#line 1174 "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 1175 "YouTubePublishing.c"
+#line 1181 "YouTubePublishing.c"
}
@@ -1186,22 +1192,22 @@ static gboolean publishing_you_tube_you_tube_authorizer_real_is_authorized_for_d
result = TRUE;
#line 102 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
return result;
-#line 1190 "YouTubePublishing.c"
+#line 1196 "YouTubePublishing.c"
}
static void publishing_you_tube_you_tube_authorizer_real_process_request (GDataAuthorizer* base, GDataAuthorizationDomain* domain, SoupMessage* message) {
PublishingYouTubeYouTubeAuthorizer * self;
- GDataAuthorizationDomain* _tmp0_ = NULL;
+ GDataAuthorizationDomain* _tmp0_;
gchar* header = NULL;
- PublishingRESTSupportGoogleSession* _tmp1_ = NULL;
- gchar* _tmp2_ = NULL;
- gchar* _tmp3_ = NULL;
- gchar* _tmp4_ = NULL;
- gchar* _tmp5_ = NULL;
- SoupMessage* _tmp6_ = NULL;
- SoupMessageHeaders* _tmp7_ = NULL;
- const gchar* _tmp8_ = NULL;
+ PublishingRESTSupportGoogleSession* _tmp1_;
+ gchar* _tmp2_;
+ gchar* _tmp3_;
+ gchar* _tmp4_;
+ gchar* _tmp5_;
+ SoupMessage* _tmp6_;
+ SoupMessageHeaders* _tmp7_;
+ const gchar* _tmp8_;
#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"
@@ -1214,7 +1220,7 @@ static void publishing_you_tube_you_tube_authorizer_real_process_request (GDataA
if (_tmp0_ == NULL) {
#line 108 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
return;
-#line 1218 "YouTubePublishing.c"
+#line 1224 "YouTubePublishing.c"
}
#line 111 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
_tmp1_ = self->priv->session;
@@ -1240,14 +1246,14 @@ static void publishing_you_tube_you_tube_authorizer_real_process_request (GDataA
soup_message_headers_replace (_tmp7_, "Authorization", _tmp8_);
#line 105 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
_g_free0 (header);
-#line 1244 "YouTubePublishing.c"
+#line 1250 "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_ = NULL;
+ 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"
@@ -1260,7 +1266,7 @@ static gboolean publishing_you_tube_you_tube_authorizer_real_refresh_authorizati
result = TRUE;
#line 117 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
return result;
-#line 1264 "YouTubePublishing.c"
+#line 1270 "YouTubePublishing.c"
}
@@ -1271,7 +1277,7 @@ static void publishing_you_tube_you_tube_authorizer_class_init (PublishingYouTub
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 1275 "YouTubePublishing.c"
+#line 1281 "YouTubePublishing.c"
}
@@ -1279,23 +1285,23 @@ static void publishing_you_tube_you_tube_authorizer_gdata_authorizer_interface_i
#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;
+ 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;
+ 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 1288 "YouTubePublishing.c"
+ iface->refresh_authorization = (gboolean (*) (GDataAuthorizer *, GCancellable*, GError**)) publishing_you_tube_you_tube_authorizer_real_refresh_authorization;
+#line 1294 "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 1295 "YouTubePublishing.c"
+#line 1301 "YouTubePublishing.c"
}
-static void publishing_you_tube_you_tube_authorizer_finalize (GObject* obj) {
+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);
@@ -1305,7 +1311,7 @@ static void publishing_you_tube_you_tube_authorizer_finalize (GObject* obj) {
_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 1309 "YouTubePublishing.c"
+#line 1315 "YouTubePublishing.c"
}
@@ -1325,9 +1331,9 @@ GType publishing_you_tube_you_tube_authorizer_get_type (void) {
PublishingYouTubeYouTubePublisher* publishing_you_tube_you_tube_publisher_construct (GType object_type, SpitPublishingService* service, SpitPublishingPluginHost* host) {
PublishingYouTubeYouTubePublisher * self = NULL;
- SpitPublishingService* _tmp0_ = NULL;
- SpitPublishingPluginHost* _tmp1_ = NULL;
- PublishingYouTubePublishingParameters* _tmp2_ = NULL;
+ SpitPublishingService* _tmp0_;
+ SpitPublishingPluginHost* _tmp1_;
+ PublishingYouTubePublishingParameters* _tmp2_;
#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"
@@ -1362,21 +1368,21 @@ PublishingYouTubeYouTubePublisher* publishing_you_tube_you_tube_publisher_constr
self->priv->progress_reporter_target_destroy_notify = NULL;
#line 128 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
return self;
-#line 1366 "YouTubePublishing.c"
+#line 1372 "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 1373 "YouTubePublishing.c"
+#line 1379 "YouTubePublishing.c"
}
static gboolean publishing_you_tube_you_tube_publisher_real_is_running (PublishingRESTSupportGooglePublisher* base) {
PublishingYouTubeYouTubePublisher * self;
gboolean result = FALSE;
- gboolean _tmp0_ = 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"
@@ -1385,14 +1391,14 @@ static gboolean publishing_you_tube_you_tube_publisher_real_is_running (Publishi
result = _tmp0_;
#line 137 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
return result;
-#line 1389 "YouTubePublishing.c"
+#line 1395 "YouTubePublishing.c"
}
static void publishing_you_tube_you_tube_publisher_real_start (PublishingRESTSupportGooglePublisher* base) {
PublishingYouTubeYouTubePublisher * self;
- gboolean _tmp0_ = FALSE;
- SpitPublishingAuthenticator* _tmp1_ = NULL;
+ gboolean _tmp0_;
+ SpitPublishingAuthenticator* _tmp1_;
#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"
@@ -1403,7 +1409,7 @@ static void publishing_you_tube_you_tube_publisher_real_start (PublishingRESTSup
if (_tmp0_) {
#line 144 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
return;
-#line 1407 "YouTubePublishing.c"
+#line 1413 "YouTubePublishing.c"
}
#line 146 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
self->priv->running = TRUE;
@@ -1411,14 +1417,14 @@ static void publishing_you_tube_you_tube_publisher_real_start (PublishingRESTSup
_tmp1_ = self->priv->authenticator;
#line 148 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
spit_publishing_authenticator_authenticate (_tmp1_);
-#line 1415 "YouTubePublishing.c"
+#line 1421 "YouTubePublishing.c"
}
static void publishing_you_tube_you_tube_publisher_real_stop (PublishingRESTSupportGooglePublisher* base) {
PublishingYouTubeYouTubePublisher * self;
- PublishingRESTSupportGoogleSession* _tmp0_ = NULL;
- PublishingRESTSupportGoogleSession* _tmp1_ = NULL;
+ 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"
@@ -1433,23 +1439,23 @@ static void publishing_you_tube_you_tube_publisher_real_stop (PublishingRESTSupp
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 1437 "YouTubePublishing.c"
+#line 1443 "YouTubePublishing.c"
}
static void publishing_you_tube_you_tube_publisher_real_on_login_flow_complete (PublishingRESTSupportGooglePublisher* base) {
PublishingYouTubeYouTubePublisher * self;
- PublishingYouTubePublishingParameters* _tmp0_ = NULL;
- PublishingRESTSupportGoogleSession* _tmp1_ = NULL;
- PublishingRESTSupportGoogleSession* _tmp2_ = NULL;
- gchar* _tmp3_ = NULL;
- gchar* _tmp4_ = NULL;
- PublishingRESTSupportGoogleSession* _tmp5_ = NULL;
- PublishingRESTSupportGoogleSession* _tmp6_ = NULL;
- SpitPublishingAuthenticator* _tmp7_ = NULL;
- PublishingYouTubeYouTubeAuthorizer* _tmp8_ = NULL;
- PublishingYouTubeYouTubeAuthorizer* _tmp9_ = NULL;
- GDataYouTubeService* _tmp10_ = NULL;
+ 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"
@@ -1492,12 +1498,12 @@ static void publishing_you_tube_you_tube_publisher_real_on_login_flow_complete (
_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 1496 "YouTubePublishing.c"
+#line 1502 "YouTubePublishing.c"
}
static void publishing_you_tube_you_tube_publisher_on_publishing_options_logout (PublishingYouTubeYouTubePublisher* self) {
- gboolean _tmp0_ = FALSE;
+ gboolean _tmp0_;
#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"
@@ -1509,16 +1515,16 @@ static void publishing_you_tube_you_tube_publisher_on_publishing_options_logout
if (!_tmp0_) {
#line 173 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
return;
-#line 1512 "YouTubePublishing.c"
+#line 1518 "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 1516 "YouTubePublishing.c"
+#line 1522 "YouTubePublishing.c"
}
static void publishing_you_tube_you_tube_publisher_on_publishing_options_publish (PublishingYouTubeYouTubePublisher* self) {
- gboolean _tmp0_ = FALSE;
+ gboolean _tmp0_;
#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"
@@ -1530,23 +1536,23 @@ static void publishing_you_tube_you_tube_publisher_on_publishing_options_publish
if (!_tmp0_) {
#line 182 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
return;
-#line 1532 "YouTubePublishing.c"
+#line 1538 "YouTubePublishing.c"
}
#line 184 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
publishing_you_tube_you_tube_publisher_do_upload (self);
-#line 1536 "YouTubePublishing.c"
+#line 1542 "YouTubePublishing.c"
}
static void publishing_you_tube_you_tube_publisher_on_upload_status_updated (PublishingYouTubeYouTubePublisher* self, gint file_number, gdouble completed_fraction) {
- gdouble _tmp0_ = 0.0;
- SpitPublishingProgressCallback _tmp1_ = NULL;
- void* _tmp1__target = NULL;
- gboolean _tmp2_ = FALSE;
- SpitPublishingProgressCallback _tmp3_ = NULL;
- void* _tmp3__target = NULL;
- gint _tmp4_ = 0;
- gdouble _tmp5_ = 0.0;
+ gdouble _tmp0_;
+ SpitPublishingProgressCallback _tmp1_;
+ void* _tmp1__target;
+ gboolean _tmp2_;
+ SpitPublishingProgressCallback _tmp3_;
+ void* _tmp3__target;
+ gint _tmp4_;
+ gdouble _tmp5_;
#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"
@@ -1566,7 +1572,7 @@ static void publishing_you_tube_you_tube_publisher_on_upload_status_updated (Pub
if (!_tmp2_) {
#line 193 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
return;
-#line 1567 "YouTubePublishing.c"
+#line 1573 "YouTubePublishing.c"
}
#line 195 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
_tmp3_ = self->priv->progress_reporter;
@@ -1578,31 +1584,31 @@ static void publishing_you_tube_you_tube_publisher_on_upload_status_updated (Pub
_tmp5_ = completed_fraction;
#line 195 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
_tmp3_ (_tmp4_, _tmp5_, _tmp3__target);
-#line 1579 "YouTubePublishing.c"
+#line 1585 "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 1586 "YouTubePublishing.c"
+#line 1592 "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 1593 "YouTubePublishing.c"
+#line 1599 "YouTubePublishing.c"
}
static void publishing_you_tube_you_tube_publisher_on_upload_complete (PublishingYouTubeYouTubePublisher* self, PublishingRESTSupportBatchUploader* uploader, gint num_published) {
- PublishingRESTSupportBatchUploader* _tmp0_ = NULL;
- guint _tmp1_ = 0U;
- PublishingRESTSupportBatchUploader* _tmp2_ = NULL;
- guint _tmp3_ = 0U;
- gint _tmp4_ = 0;
- gboolean _tmp5_ = FALSE;
+ PublishingRESTSupportBatchUploader* _tmp0_;
+ guint _tmp1_;
+ PublishingRESTSupportBatchUploader* _tmp2_;
+ guint _tmp3_;
+ gint _tmp4_;
+ gboolean _tmp5_;
#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"
@@ -1630,24 +1636,24 @@ static void publishing_you_tube_you_tube_publisher_on_upload_complete (Publishin
if (!_tmp5_) {
#line 206 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
return;
-#line 1630 "YouTubePublishing.c"
+#line 1636 "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 1634 "YouTubePublishing.c"
+#line 1640 "YouTubePublishing.c"
}
static void publishing_you_tube_you_tube_publisher_on_upload_error (PublishingYouTubeYouTubePublisher* self, PublishingRESTSupportBatchUploader* uploader, GError* err) {
- PublishingRESTSupportBatchUploader* _tmp0_ = NULL;
- guint _tmp1_ = 0U;
- PublishingRESTSupportBatchUploader* _tmp2_ = NULL;
- guint _tmp3_ = 0U;
- gboolean _tmp4_ = FALSE;
- GError* _tmp5_ = NULL;
- const gchar* _tmp6_ = NULL;
- SpitPublishingPluginHost* _tmp7_ = NULL;
- GError* _tmp8_ = NULL;
+ PublishingRESTSupportBatchUploader* _tmp0_;
+ guint _tmp1_;
+ PublishingRESTSupportBatchUploader* _tmp2_;
+ guint _tmp3_;
+ gboolean _tmp4_;
+ GError* _tmp5_;
+ const gchar* _tmp6_;
+ SpitPublishingPluginHost* _tmp7_;
+ GError* _tmp8_;
#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"
@@ -1670,7 +1676,7 @@ static void publishing_you_tube_you_tube_publisher_on_upload_error (PublishingYo
if (!_tmp4_) {
#line 217 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
return;
-#line 1670 "YouTubePublishing.c"
+#line 1676 "YouTubePublishing.c"
}
#line 219 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
_tmp5_ = err;
@@ -1685,38 +1691,38 @@ static void publishing_you_tube_you_tube_publisher_on_upload_error (PublishingYo
_tmp8_ = err;
#line 221 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
spit_publishing_plugin_host_post_error (_tmp7_, _tmp8_);
-#line 1684 "YouTubePublishing.c"
+#line 1690 "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 1691 "YouTubePublishing.c"
+#line 1697 "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 1698 "YouTubePublishing.c"
+#line 1704 "YouTubePublishing.c"
}
static void publishing_you_tube_you_tube_publisher_do_show_publishing_options_pane (PublishingYouTubeYouTubePublisher* self) {
GtkBuilder* builder = NULL;
- GtkBuilder* _tmp0_ = NULL;
+ GtkBuilder* _tmp0_;
PublishingYouTubePublishingOptionsPane* opts_pane = NULL;
- SpitPublishingAuthenticator* _tmp8_ = NULL;
- SpitPublishingPluginHost* _tmp9_ = NULL;
- GtkBuilder* _tmp10_ = NULL;
- PublishingYouTubePublishingParameters* _tmp11_ = NULL;
- PublishingYouTubePublishingOptionsPane* _tmp12_ = NULL;
- PublishingYouTubePublishingOptionsPane* _tmp13_ = NULL;
- PublishingYouTubePublishingOptionsPane* _tmp14_ = NULL;
- SpitPublishingPluginHost* _tmp15_ = NULL;
- PublishingYouTubePublishingOptionsPane* _tmp16_ = NULL;
- SpitPublishingPluginHost* _tmp17_ = 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));
@@ -1726,16 +1732,16 @@ static void publishing_you_tube_you_tube_publisher_do_show_publishing_options_pa
_tmp0_ = gtk_builder_new ();
#line 227 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
builder = _tmp0_;
-#line 1725 "YouTubePublishing.c"
+#line 1731 "YouTubePublishing.c"
{
- GtkBuilder* _tmp1_ = NULL;
+ 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 1734 "YouTubePublishing.c"
+#line 1740 "YouTubePublishing.c"
goto __catch20_g_error;
}
}
@@ -1743,12 +1749,11 @@ static void publishing_you_tube_you_tube_publisher_do_show_publishing_options_pa
__catch20_g_error:
{
GError* e = NULL;
- GError* _tmp2_ = NULL;
- const gchar* _tmp3_ = NULL;
- SpitPublishingPluginHost* _tmp4_ = NULL;
- const gchar* _tmp5_ = NULL;
- GError* _tmp6_ = NULL;
- GError* _tmp7_ = NULL;
+ 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"
@@ -1762,23 +1767,21 @@ static void publishing_you_tube_you_tube_publisher_do_show_publishing_options_pa
#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_ = _ ("A file required for publishing is unavailable. Publishing to YouTube c" \
-"an’t continue.");
+ _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_ = g_error_new_literal (SPIT_PUBLISHING_PUBLISHING_ERROR, SPIT_PUBLISHING_PUBLISHING_ERROR_LOCAL_FILE_ERROR, _tmp5_);
+ _tmp6_ = _tmp5_;
#line 234 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
- _tmp7_ = _tmp6_;
+ spit_publishing_plugin_host_post_error (_tmp4_, _tmp6_);
#line 234 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
- spit_publishing_plugin_host_post_error (_tmp4_, _tmp7_);
-#line 234 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
- _g_error_free0 (_tmp7_);
+ _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 1776 "YouTubePublishing.c"
+#line 1779 "YouTubePublishing.c"
}
__finally20:
#line 229 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
@@ -1791,79 +1794,79 @@ static void publishing_you_tube_you_tube_publisher_do_show_publishing_options_pa
g_clear_error (&_inner_error_);
#line 229 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
return;
-#line 1789 "YouTubePublishing.c"
+#line 1792 "YouTubePublishing.c"
}
#line 240 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
- _tmp8_ = self->priv->authenticator;
+ _tmp7_ = self->priv->authenticator;
#line 240 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
- _tmp9_ = publishing_rest_support_google_publisher_get_host (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_GOOGLE_PUBLISHER, PublishingRESTSupportGooglePublisher));
+ _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"
- _tmp10_ = builder;
+ _tmp9_ = builder;
#line 240 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
- _tmp11_ = self->priv->publishing_parameters;
+ _tmp10_ = self->priv->publishing_parameters;
#line 240 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
- _tmp12_ = publishing_you_tube_publishing_options_pane_new (_tmp8_, _tmp9_, _tmp10_, _tmp11_);
+ _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 = _tmp12_;
+ opts_pane = _tmp11_;
#line 241 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
- _tmp13_ = opts_pane;
+ _tmp12_ = opts_pane;
#line 241 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
- g_signal_connect_object (_tmp13_, "publish", (GCallback) _publishing_you_tube_you_tube_publisher_on_publishing_options_publish_publishing_you_tube_publishing_options_pane_publish, self, 0);
+ 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"
- _tmp14_ = opts_pane;
+ _tmp13_ = opts_pane;
#line 242 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
- g_signal_connect_object (_tmp14_, "logout", (GCallback) _publishing_you_tube_you_tube_publisher_on_publishing_options_logout_publishing_you_tube_publishing_options_pane_logout, self, 0);
+ 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"
- _tmp15_ = publishing_rest_support_google_publisher_get_host (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_GOOGLE_PUBLISHER, PublishingRESTSupportGooglePublisher));
+ _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"
- _tmp16_ = opts_pane;
+ _tmp15_ = opts_pane;
#line 243 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
- spit_publishing_plugin_host_install_dialog_pane (_tmp15_, G_TYPE_CHECK_INSTANCE_CAST (_tmp16_, SPIT_PUBLISHING_TYPE_DIALOG_PANE, SpitPublishingDialogPane), SPIT_PUBLISHING_PLUGIN_HOST_BUTTON_MODE_CANCEL);
+ 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"
- _tmp17_ = publishing_rest_support_google_publisher_get_host (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_GOOGLE_PUBLISHER, PublishingRESTSupportGooglePublisher));
+ _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 (_tmp17_, FALSE);
+ 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 1825 "YouTubePublishing.c"
+#line 1828 "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 1832 "YouTubePublishing.c"
+#line 1835 "YouTubePublishing.c"
}
static void publishing_you_tube_you_tube_publisher_do_upload (PublishingYouTubeYouTubePublisher* self) {
- SpitPublishingPluginHost* _tmp0_ = NULL;
- SpitPublishingPluginHost* _tmp1_ = NULL;
- SpitPublishingPluginHost* _tmp2_ = NULL;
- void* _tmp3_ = NULL;
- GDestroyNotify _tmp4_ = NULL;
- SpitPublishingProgressCallback _tmp5_ = NULL;
- gboolean _tmp6_ = FALSE;
+ SpitPublishingPluginHost* _tmp0_;
+ SpitPublishingPluginHost* _tmp1_;
+ SpitPublishingPluginHost* _tmp2_;
+ void* _tmp3_;
+ GDestroyNotify _tmp4_;
+ SpitPublishingProgressCallback _tmp5_;
+ gboolean _tmp6_;
SpitPublishingPublishable** publishables = NULL;
- SpitPublishingPluginHost* _tmp7_ = NULL;
- gint _tmp8_ = 0;
- SpitPublishingPublishable** _tmp9_ = NULL;
- gint publishables_length1 = 0;
- gint _publishables_size_ = 0;
+ SpitPublishingPluginHost* _tmp7_;
+ gint _tmp8_;
+ SpitPublishingPublishable** _tmp9_;
+ gint publishables_length1;
+ gint _publishables_size_;
PublishingYouTubeUploader* uploader = NULL;
- GDataYouTubeService* _tmp10_ = NULL;
- PublishingRESTSupportGoogleSession* _tmp11_ = NULL;
- PublishingRESTSupportGoogleSession* _tmp12_ = NULL;
- SpitPublishingPublishable** _tmp13_ = NULL;
- gint _tmp13__length1 = 0;
- PublishingYouTubePublishingParameters* _tmp14_ = NULL;
- PublishingYouTubeUploader* _tmp15_ = NULL;
- PublishingYouTubeUploader* _tmp16_ = NULL;
- PublishingYouTubeUploader* _tmp17_ = NULL;
- PublishingYouTubeUploader* _tmp18_ = NULL;
- PublishingYouTubeUploader* _tmp19_ = NULL;
+ GDataYouTubeService* _tmp10_;
+ PublishingRESTSupportGoogleSession* _tmp11_;
+ PublishingRESTSupportGoogleSession* _tmp12_;
+ SpitPublishingPublishable** _tmp13_;
+ gint _tmp13__length1;
+ PublishingYouTubePublishingParameters* _tmp14_;
+ PublishingYouTubeUploader* _tmp15_;
+ PublishingYouTubeUploader* _tmp16_;
+ PublishingYouTubeUploader* _tmp17_;
+ PublishingYouTubeUploader* _tmp18_;
+ PublishingYouTubeUploader* _tmp19_;
#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"
@@ -1901,7 +1904,7 @@ static void publishing_you_tube_you_tube_publisher_do_upload (PublishingYouTubeY
if (!_tmp6_) {
#line 261 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
return;
-#line 1898 "YouTubePublishing.c"
+#line 1901 "YouTubePublishing.c"
}
#line 263 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
_tmp7_ = publishing_rest_support_google_publisher_get_host (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_GOOGLE_PUBLISHER, PublishingRESTSupportGooglePublisher));
@@ -1949,13 +1952,13 @@ static void publishing_you_tube_you_tube_publisher_do_upload (PublishingYouTubeY
_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 1946 "YouTubePublishing.c"
+#line 1949 "YouTubePublishing.c"
}
static void publishing_you_tube_you_tube_publisher_do_show_success_pane (PublishingYouTubeYouTubePublisher* self) {
- SpitPublishingPluginHost* _tmp0_ = NULL;
- SpitPublishingPluginHost* _tmp1_ = NULL;
+ 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"
@@ -1968,14 +1971,14 @@ static void publishing_you_tube_you_tube_publisher_do_show_success_pane (Publish
_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 1965 "YouTubePublishing.c"
+#line 1968 "YouTubePublishing.c"
}
static void publishing_you_tube_you_tube_publisher_real_do_logout (PublishingRESTSupportGooglePublisher* base) {
PublishingYouTubeYouTubePublisher * self;
- SpitPublishingAuthenticator* _tmp0_ = NULL;
- gboolean _tmp1_ = FALSE;
+ SpitPublishingAuthenticator* _tmp0_;
+ gboolean _tmp1_;
#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"
@@ -1986,9 +1989,9 @@ static void publishing_you_tube_you_tube_publisher_real_do_logout (PublishingRES
_tmp1_ = spit_publishing_authenticator_can_logout (_tmp0_);
#line 282 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
if (_tmp1_) {
-#line 1983 "YouTubePublishing.c"
- SpitPublishingAuthenticator* _tmp2_ = NULL;
- SpitPublishingAuthenticator* _tmp3_ = NULL;
+#line 1986 "YouTubePublishing.c"
+ SpitPublishingAuthenticator* _tmp2_;
+ SpitPublishingAuthenticator* _tmp3_;
#line 283 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
_tmp2_ = self->priv->authenticator;
#line 283 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
@@ -1997,7 +2000,7 @@ static void publishing_you_tube_you_tube_publisher_real_do_logout (PublishingRES
_tmp3_ = self->priv->authenticator;
#line 284 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
spit_publishing_authenticator_authenticate (_tmp3_);
-#line 1994 "YouTubePublishing.c"
+#line 1997 "YouTubePublishing.c"
}
}
@@ -2005,20 +2008,20 @@ static void publishing_you_tube_you_tube_publisher_real_do_logout (PublishingRES
static SpitPublishingAuthenticator* publishing_you_tube_you_tube_publisher_real_get_authenticator (PublishingRESTSupportGooglePublisher* base) {
PublishingYouTubeYouTubePublisher * self;
SpitPublishingAuthenticator* result = NULL;
- SpitPublishingAuthenticator* _tmp0_ = NULL;
- SpitPublishingAuthenticator* _tmp5_ = NULL;
- SpitPublishingAuthenticator* _tmp6_ = 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 2011 "YouTubePublishing.c"
- PublishingAuthenticatorFactory* _tmp1_ = NULL;
- PublishingAuthenticatorFactory* _tmp2_ = NULL;
- SpitPublishingPluginHost* _tmp3_ = NULL;
- SpitPublishingAuthenticator* _tmp4_ = NULL;
+#line 2014 "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"
@@ -2033,7 +2036,7 @@ static SpitPublishingAuthenticator* publishing_you_tube_you_tube_publisher_real_
self->priv->authenticator = _tmp4_;
#line 290 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
_g_object_unref0 (_tmp2_);
-#line 2030 "YouTubePublishing.c"
+#line 2033 "YouTubePublishing.c"
}
#line 294 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
_tmp5_ = self->priv->authenticator;
@@ -2043,7 +2046,7 @@ static SpitPublishingAuthenticator* publishing_you_tube_you_tube_publisher_real_
result = _tmp6_;
#line 294 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
return result;
-#line 2040 "YouTubePublishing.c"
+#line 2043 "YouTubePublishing.c"
}
@@ -2053,31 +2056,31 @@ static void publishing_you_tube_you_tube_publisher_class_init (PublishingYouTube
#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;
+ ((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;
+ ((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;
+ ((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;
+ ((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;
+ ((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;
+ ((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 2063 "YouTubePublishing.c"
+#line 2066 "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 2070 "YouTubePublishing.c"
+#line 2073 "YouTubePublishing.c"
}
-static void publishing_you_tube_you_tube_publisher_finalize (GObject* obj) {
+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);
@@ -2097,7 +2100,7 @@ static void publishing_you_tube_you_tube_publisher_finalize (GObject* obj) {
_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 2094 "YouTubePublishing.c"
+#line 2097 "YouTubePublishing.c"
}
@@ -2116,78 +2119,77 @@ GType publishing_you_tube_you_tube_publisher_get_type (void) {
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 2113 "YouTubePublishing.c"
+#line 2116 "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 2120 "YouTubePublishing.c"
+#line 2123 "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 2127 "YouTubePublishing.c"
+#line 2130 "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 2134 "YouTubePublishing.c"
+#line 2137 "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_ = 0;
- PublishingYouTubePublishingOptionsPanePrivacyDescription** _tmp1_ = NULL;
- PublishingYouTubePublishingParameters* _tmp2_ = NULL;
- PublishingYouTubePublishingParameters* _tmp3_ = NULL;
- GtkBuilder* _tmp4_ = NULL;
- GtkBuilder* _tmp5_ = NULL;
- GtkBuilder* _tmp6_ = NULL;
- GtkBuilder* _tmp7_ = NULL;
- GSList* _tmp8_ = NULL;
- GSList* _tmp9_ = NULL;
- guint _tmp10_ = 0U;
- GtkBuilder* _tmp11_ = NULL;
- GObject* _tmp12_ = NULL;
- GtkLabel* _tmp13_ = NULL;
- GtkBuilder* _tmp14_ = NULL;
- GObject* _tmp15_ = NULL;
- GtkComboBoxText* _tmp16_ = NULL;
- GtkBuilder* _tmp17_ = NULL;
- GObject* _tmp18_ = NULL;
- GtkButton* _tmp19_ = NULL;
- GtkBuilder* _tmp20_ = NULL;
- GObject* _tmp21_ = NULL;
- GtkButton* _tmp22_ = NULL;
- GtkBuilder* _tmp23_ = NULL;
- GObject* _tmp24_ = NULL;
- GtkBox* _tmp25_ = NULL;
- GtkBuilder* _tmp26_ = NULL;
- GObject* _tmp27_ = NULL;
- GtkLabel* _tmp28_ = NULL;
- SpitPublishingAuthenticator* _tmp29_ = NULL;
- gboolean _tmp30_ = FALSE;
- GtkLabel* _tmp35_ = NULL;
- const gchar* _tmp36_ = NULL;
- PublishingYouTubePublishingParameters* _tmp37_ = NULL;
- gchar* _tmp38_ = NULL;
- gchar* _tmp39_ = NULL;
- gchar* _tmp40_ = NULL;
- gchar* _tmp41_ = NULL;
- PublishingYouTubePublishingOptionsPanePrivacyDescription** _tmp42_ = NULL;
- gint _tmp42__length1 = 0;
- GtkComboBoxText* _tmp47_ = NULL;
- GtkLabel* _tmp48_ = NULL;
- GtkComboBoxText* _tmp49_ = NULL;
- GtkButton* _tmp50_ = NULL;
- GtkButton* _tmp51_ = NULL;
+ gint _tmp0_;
+ PublishingYouTubePublishingOptionsPanePrivacyDescription** _tmp1_;
+ PublishingYouTubePublishingParameters* _tmp2_;
+ PublishingYouTubePublishingParameters* _tmp3_;
+ GtkBuilder* _tmp4_;
+ GtkBuilder* _tmp5_;
+ GtkBuilder* _tmp6_;
+ GtkBuilder* _tmp7_;
+ GSList* _tmp8_;
+ GSList* _tmp9_;
+ guint _tmp10_;
+ GtkBuilder* _tmp11_;
+ GObject* _tmp12_;
+ GtkLabel* _tmp13_;
+ GtkBuilder* _tmp14_;
+ GObject* _tmp15_;
+ GtkComboBoxText* _tmp16_;
+ GtkBuilder* _tmp17_;
+ GObject* _tmp18_;
+ GtkButton* _tmp19_;
+ GtkBuilder* _tmp20_;
+ GObject* _tmp21_;
+ GtkButton* _tmp22_;
+ GtkBuilder* _tmp23_;
+ GObject* _tmp24_;
+ GtkBox* _tmp25_;
+ GtkBuilder* _tmp26_;
+ GObject* _tmp27_;
+ GtkLabel* _tmp28_;
+ SpitPublishingAuthenticator* _tmp29_;
+ gboolean _tmp30_;
+ GtkLabel* _tmp35_;
+ PublishingYouTubePublishingParameters* _tmp36_;
+ gchar* _tmp37_;
+ gchar* _tmp38_;
+ gchar* _tmp39_;
+ gchar* _tmp40_;
+ PublishingYouTubePublishingOptionsPanePrivacyDescription** _tmp41_;
+ gint _tmp41__length1;
+ GtkComboBoxText* _tmp46_;
+ GtkLabel* _tmp47_;
+ GtkComboBoxText* _tmp48_;
+ GtkButton* _tmp49_;
+ GtkButton* _tmp50_;
#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"
@@ -2306,11 +2308,11 @@ PublishingYouTubePublishingOptionsPane* publishing_you_tube_publishing_options_p
_tmp30_ = spit_publishing_authenticator_can_logout (_tmp29_);
#line 340 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
if (!_tmp30_) {
-#line 2303 "YouTubePublishing.c"
- GtkButton* _tmp31_ = NULL;
- GtkContainer* _tmp32_ = NULL;
- GtkContainer* _tmp33_ = NULL;
- GtkButton* _tmp34_ = NULL;
+#line 2305 "YouTubePublishing.c"
+ GtkButton* _tmp31_;
+ GtkContainer* _tmp32_;
+ GtkContainer* _tmp33_;
+ GtkButton* _tmp34_;
#line 341 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
_tmp31_ = self->priv->logout_button;
#line 341 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
@@ -2321,32 +2323,30 @@ PublishingYouTubePublishingOptionsPane* publishing_you_tube_publishing_options_p
_tmp34_ = self->priv->logout_button;
#line 341 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
gtk_container_remove (_tmp33_, G_TYPE_CHECK_INSTANCE_CAST (_tmp34_, gtk_widget_get_type (), GtkWidget));
-#line 2318 "YouTubePublishing.c"
+#line 2320 "YouTubePublishing.c"
}
#line 344 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
_tmp35_ = self->priv->login_identity_label;
#line 344 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
- _tmp36_ = _ ("You are logged into YouTube as %s.");
-#line 344 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
- _tmp37_ = publishing_parameters;
+ _tmp36_ = publishing_parameters;
#line 344 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
- _tmp38_ = publishing_you_tube_publishing_parameters_get_user_name (_tmp37_);
+ _tmp37_ = publishing_you_tube_publishing_parameters_get_user_name (_tmp36_);
#line 344 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
- _tmp39_ = _tmp38_;
+ _tmp38_ = _tmp37_;
#line 344 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
- _tmp40_ = g_strdup_printf (_tmp36_, _tmp39_);
+ _tmp39_ = g_strdup_printf (_ ("You are logged into YouTube as %s."), _tmp38_);
#line 344 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
- _tmp41_ = _tmp40_;
+ _tmp40_ = _tmp39_;
#line 344 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
- gtk_label_set_label (_tmp35_, _tmp41_);
+ gtk_label_set_label (_tmp35_, _tmp40_);
#line 344 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
- _g_free0 (_tmp41_);
+ _g_free0 (_tmp40_);
#line 344 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
- _g_free0 (_tmp39_);
+ _g_free0 (_tmp38_);
#line 347 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
- _tmp42_ = self->priv->privacy_descriptions;
+ _tmp41_ = self->priv->privacy_descriptions;
#line 347 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
- _tmp42__length1 = self->priv->privacy_descriptions_length1;
+ _tmp41__length1 = self->priv->privacy_descriptions_length1;
#line 2344 "YouTubePublishing.c"
{
PublishingYouTubePublishingOptionsPanePrivacyDescription** desc_collection = NULL;
@@ -2354,31 +2354,31 @@ PublishingYouTubePublishingOptionsPane* publishing_you_tube_publishing_options_p
gint _desc_collection_size_ = 0;
gint desc_it = 0;
#line 347 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
- desc_collection = _tmp42_;
+ desc_collection = _tmp41_;
#line 347 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
- desc_collection_length1 = _tmp42__length1;
+ desc_collection_length1 = _tmp41__length1;
#line 347 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
- for (desc_it = 0; desc_it < _tmp42__length1; desc_it = desc_it + 1) {
+ for (desc_it = 0; desc_it < _tmp41__length1; desc_it = desc_it + 1) {
#line 2356 "YouTubePublishing.c"
- PublishingYouTubePublishingOptionsPanePrivacyDescription* _tmp43_ = NULL;
+ PublishingYouTubePublishingOptionsPanePrivacyDescription* _tmp42_;
PublishingYouTubePublishingOptionsPanePrivacyDescription* desc = NULL;
#line 347 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
- _tmp43_ = _publishing_you_tube_publishing_options_pane_privacy_description_ref0 (desc_collection[desc_it]);
+ _tmp42_ = _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 = _tmp43_;
+ desc = _tmp42_;
#line 2363 "YouTubePublishing.c"
{
- GtkComboBoxText* _tmp44_ = NULL;
- PublishingYouTubePublishingOptionsPanePrivacyDescription* _tmp45_ = NULL;
- const gchar* _tmp46_ = NULL;
+ GtkComboBoxText* _tmp43_;
+ PublishingYouTubePublishingOptionsPanePrivacyDescription* _tmp44_;
+ const gchar* _tmp45_;
#line 348 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
- _tmp44_ = self->priv->privacy_combo;
+ _tmp43_ = self->priv->privacy_combo;
#line 348 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
- _tmp45_ = desc;
+ _tmp44_ = desc;
#line 348 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
- _tmp46_ = _tmp45_->description;
+ _tmp45_ = _tmp44_->description;
#line 348 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
- gtk_combo_box_text_append_text (_tmp44_, _tmp46_);
+ gtk_combo_box_text_append_text (_tmp43_, _tmp45_);
#line 347 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
_publishing_you_tube_publishing_options_pane_privacy_description_unref0 (desc);
#line 2378 "YouTubePublishing.c"
@@ -2386,23 +2386,23 @@ PublishingYouTubePublishingOptionsPane* publishing_you_tube_publishing_options_p
}
}
#line 351 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
- _tmp47_ = self->priv->privacy_combo;
+ _tmp46_ = 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 (_tmp47_, gtk_combo_box_get_type (), GtkComboBox), (gint) PUBLISHING_YOU_TUBE_PRIVACY_SETTING_PUBLIC);
+ gtk_combo_box_set_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp46_, gtk_combo_box_get_type (), GtkComboBox), (gint) PUBLISHING_YOU_TUBE_PRIVACY_SETTING_PUBLIC);
#line 352 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
- _tmp48_ = self->priv->privacy_label;
+ _tmp47_ = self->priv->privacy_label;
#line 352 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
- _tmp49_ = self->priv->privacy_combo;
+ _tmp48_ = self->priv->privacy_combo;
#line 352 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
- gtk_label_set_mnemonic_widget (_tmp48_, G_TYPE_CHECK_INSTANCE_CAST (_tmp49_, gtk_widget_get_type (), GtkWidget));
+ gtk_label_set_mnemonic_widget (_tmp47_, G_TYPE_CHECK_INSTANCE_CAST (_tmp48_, gtk_widget_get_type (), GtkWidget));
#line 354 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
- _tmp50_ = self->priv->logout_button;
+ _tmp49_ = self->priv->logout_button;
#line 354 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
- g_signal_connect_object (_tmp50_, "clicked", (GCallback) _publishing_you_tube_publishing_options_pane_on_logout_clicked_gtk_button_clicked, self, 0);
+ g_signal_connect_object (_tmp49_, "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"
- _tmp51_ = self->priv->publish_button;
+ _tmp50_ = self->priv->publish_button;
#line 355 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
- g_signal_connect_object (_tmp51_, "clicked", (GCallback) _publishing_you_tube_publishing_options_pane_on_publish_clicked_gtk_button_clicked, self, 0);
+ g_signal_connect_object (_tmp50_, "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 2402 "YouTubePublishing.c"
@@ -2417,13 +2417,13 @@ PublishingYouTubePublishingOptionsPane* publishing_you_tube_publishing_options_p
static void publishing_you_tube_publishing_options_pane_on_publish_clicked (PublishingYouTubePublishingOptionsPane* self) {
- PublishingYouTubePublishingParameters* _tmp0_ = NULL;
- PublishingYouTubePublishingOptionsPanePrivacyDescription** _tmp1_ = NULL;
- gint _tmp1__length1 = 0;
- GtkComboBoxText* _tmp2_ = NULL;
- gint _tmp3_ = 0;
- PublishingYouTubePublishingOptionsPanePrivacyDescription* _tmp4_ = NULL;
- PublishingYouTubePrivacySetting _tmp5_ = 0;
+ PublishingYouTubePublishingParameters* _tmp0_;
+ PublishingYouTubePublishingOptionsPanePrivacyDescription** _tmp1_;
+ gint _tmp1__length1;
+ GtkComboBoxText* _tmp2_;
+ gint _tmp3_;
+ PublishingYouTubePublishingOptionsPanePrivacyDescription* _tmp4_;
+ PublishingYouTubePrivacySetting _tmp5_;
#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"
@@ -2443,7 +2443,7 @@ static void publishing_you_tube_publishing_options_pane_on_publish_clicked (Publ
#line 359 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
publishing_you_tube_publishing_parameters_set_privacy (_tmp0_, _tmp5_);
#line 362 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
- g_signal_emit_by_name (self, "publish");
+ g_signal_emit (self, publishing_you_tube_publishing_options_pane_signals[PUBLISHING_YOU_TUBE_PUBLISHING_OPTIONS_PANE_PUBLISH_SIGNAL], 0);
#line 2441 "YouTubePublishing.c"
}
@@ -2452,13 +2452,13 @@ static void publishing_you_tube_publishing_options_pane_on_logout_clicked (Publi
#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_by_name (self, "logout");
+ g_signal_emit (self, publishing_you_tube_publishing_options_pane_signals[PUBLISHING_YOU_TUBE_PUBLISHING_OPTIONS_PANE_LOGOUT_SIGNAL], 0);
#line 2450 "YouTubePublishing.c"
}
static void publishing_you_tube_publishing_options_pane_update_publish_button_sensitivity (PublishingYouTubePublishingOptionsPane* self) {
- GtkButton* _tmp0_ = NULL;
+ 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"
@@ -2469,7 +2469,7 @@ static void publishing_you_tube_publishing_options_pane_update_publish_button_se
}
-static void _vala_array_add32 (PublishingYouTubePublishingOptionsPanePrivacyDescription*** array, int* length, int* size, PublishingYouTubePublishingOptionsPanePrivacyDescription* value) {
+static void _vala_array_add32 (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"
@@ -2486,7 +2486,7 @@ static void _vala_array_add32 (PublishingYouTubePublishingOptionsPanePrivacyDesc
}
-static void _vala_array_add33 (PublishingYouTubePublishingOptionsPanePrivacyDescription*** array, int* length, int* size, PublishingYouTubePublishingOptionsPanePrivacyDescription* value) {
+static void _vala_array_add33 (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"
@@ -2503,7 +2503,7 @@ static void _vala_array_add33 (PublishingYouTubePublishingOptionsPanePrivacyDesc
}
-static void _vala_array_add34 (PublishingYouTubePublishingOptionsPanePrivacyDescription*** array, int* length, int* size, PublishingYouTubePublishingOptionsPanePrivacyDescription* value) {
+static void _vala_array_add34 (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"
@@ -2523,23 +2523,20 @@ static void _vala_array_add34 (PublishingYouTubePublishingOptionsPanePrivacyDesc
static PublishingYouTubePublishingOptionsPanePrivacyDescription** publishing_you_tube_publishing_options_pane_create_privacy_descriptions (PublishingYouTubePublishingOptionsPane* self, int* result_length1) {
PublishingYouTubePublishingOptionsPanePrivacyDescription** result = NULL;
PublishingYouTubePublishingOptionsPanePrivacyDescription** _result_ = NULL;
- PublishingYouTubePublishingOptionsPanePrivacyDescription** _tmp0_ = NULL;
- gint _result__length1 = 0;
- gint __result__size_ = 0;
- PublishingYouTubePublishingOptionsPanePrivacyDescription** _tmp1_ = NULL;
- gint _tmp1__length1 = 0;
- const gchar* _tmp2_ = NULL;
- PublishingYouTubePublishingOptionsPanePrivacyDescription* _tmp3_ = NULL;
- PublishingYouTubePublishingOptionsPanePrivacyDescription** _tmp4_ = NULL;
- gint _tmp4__length1 = 0;
- const gchar* _tmp5_ = NULL;
- PublishingYouTubePublishingOptionsPanePrivacyDescription* _tmp6_ = NULL;
- PublishingYouTubePublishingOptionsPanePrivacyDescription** _tmp7_ = NULL;
- gint _tmp7__length1 = 0;
- const gchar* _tmp8_ = NULL;
- PublishingYouTubePublishingOptionsPanePrivacyDescription* _tmp9_ = NULL;
- PublishingYouTubePublishingOptionsPanePrivacyDescription** _tmp10_ = NULL;
- gint _tmp10__length1 = 0;
+ 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"
@@ -2555,55 +2552,49 @@ static PublishingYouTubePublishingOptionsPanePrivacyDescription** publishing_you
#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_ = _ ("Public listed");
+ _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"
- _tmp3_ = publishing_you_tube_publishing_options_pane_privacy_description_new (_tmp2_, PUBLISHING_YOU_TUBE_PRIVACY_SETTING_PUBLIC);
-#line 376 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
- _vala_array_add32 (&_result_, &_result__length1, &__result__size_, _tmp3_);
-#line 377 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
- _tmp4_ = _result_;
+ _vala_array_add32 (&_result_, &_result__length1, &__result__size_, _tmp2_);
#line 377 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
- _tmp4__length1 = _result__length1;
+ _tmp3_ = _result_;
#line 377 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
- _tmp5_ = _ ("Public unlisted");
+ _tmp3__length1 = _result__length1;
#line 377 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
- _tmp6_ = publishing_you_tube_publishing_options_pane_privacy_description_new (_tmp5_, PUBLISHING_YOU_TUBE_PRIVACY_SETTING_UNLISTED);
+ _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_add33 (&_result_, &_result__length1, &__result__size_, _tmp6_);
+ _vala_array_add33 (&_result_, &_result__length1, &__result__size_, _tmp4_);
#line 378 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
- _tmp7_ = _result_;
-#line 378 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
- _tmp7__length1 = _result__length1;
+ _tmp5_ = _result_;
#line 378 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
- _tmp8_ = _ ("Private");
+ _tmp5__length1 = _result__length1;
#line 378 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
- _tmp9_ = publishing_you_tube_publishing_options_pane_privacy_description_new (_tmp8_, PUBLISHING_YOU_TUBE_PRIVACY_SETTING_PRIVATE);
+ _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_add34 (&_result_, &_result__length1, &__result__size_, _tmp9_);
+ _vala_array_add34 (&_result_, &_result__length1, &__result__size_, _tmp6_);
#line 380 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
- _tmp10_ = _result_;
+ _tmp7_ = _result_;
#line 380 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
- _tmp10__length1 = _result__length1;
+ _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 = _tmp10__length1;
-#line 2585 "YouTubePublishing.c"
+ *result_length1 = _tmp7__length1;
+#line 2576 "YouTubePublishing.c"
}
#line 380 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
- result = _tmp10_;
+ result = _tmp7_;
#line 380 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
return result;
-#line 2591 "YouTubePublishing.c"
+#line 2582 "YouTubePublishing.c"
}
static GtkWidget* publishing_you_tube_publishing_options_pane_real_get_widget (SpitPublishingDialogPane* base) {
PublishingYouTubePublishingOptionsPane * self;
GtkWidget* result = NULL;
- GtkBox* _tmp0_ = NULL;
- GtkBox* _tmp1_ = NULL;
- GtkWidget* _tmp2_ = NULL;
+ 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"
@@ -2618,7 +2609,7 @@ static GtkWidget* publishing_you_tube_publishing_options_pane_real_get_widget (S
result = _tmp2_;
#line 385 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
return result;
-#line 2615 "YouTubePublishing.c"
+#line 2606 "YouTubePublishing.c"
}
@@ -2631,7 +2622,7 @@ static SpitPublishingDialogPaneGeometryOptions publishing_you_tube_publishing_op
result = SPIT_PUBLISHING_DIALOG_PANE_GEOMETRY_OPTIONS_NONE;
#line 389 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
return result;
-#line 2628 "YouTubePublishing.c"
+#line 2619 "YouTubePublishing.c"
}
@@ -2641,7 +2632,7 @@ static void publishing_you_tube_publishing_options_pane_real_on_pane_installed (
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 2638 "YouTubePublishing.c"
+#line 2629 "YouTubePublishing.c"
}
@@ -2649,15 +2640,15 @@ static void publishing_you_tube_publishing_options_pane_real_on_pane_uninstalled
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 2646 "YouTubePublishing.c"
+#line 2637 "YouTubePublishing.c"
}
static PublishingYouTubePublishingOptionsPanePrivacyDescription* publishing_you_tube_publishing_options_pane_privacy_description_construct (GType object_type, const gchar* description, PublishingYouTubePrivacySetting privacy_setting) {
PublishingYouTubePublishingOptionsPanePrivacyDescription* self = NULL;
- const gchar* _tmp0_ = NULL;
- gchar* _tmp1_ = NULL;
- PublishingYouTubePrivacySetting _tmp2_ = 0;
+ const gchar* _tmp0_;
+ gchar* _tmp1_;
+ PublishingYouTubePrivacySetting _tmp2_;
#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"
@@ -2676,21 +2667,21 @@ static PublishingYouTubePublishingOptionsPanePrivacyDescription* publishing_you_
self->privacy_setting = _tmp2_;
#line 303 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
return self;
-#line 2673 "YouTubePublishing.c"
+#line 2664 "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 2680 "YouTubePublishing.c"
+#line 2671 "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 2687 "YouTubePublishing.c"
+#line 2678 "YouTubePublishing.c"
}
@@ -2699,7 +2690,7 @@ static void publishing_you_tube_publishing_options_pane_value_privacy_descriptio
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 2696 "YouTubePublishing.c"
+#line 2687 "YouTubePublishing.c"
}
}
@@ -2709,11 +2700,11 @@ static void publishing_you_tube_publishing_options_pane_value_privacy_descriptio
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 2706 "YouTubePublishing.c"
+#line 2697 "YouTubePublishing.c"
} else {
#line 299 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
dest_value->data[0].v_pointer = NULL;
-#line 2710 "YouTubePublishing.c"
+#line 2701 "YouTubePublishing.c"
}
}
@@ -2721,66 +2712,66 @@ static void publishing_you_tube_publishing_options_pane_value_privacy_descriptio
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 2718 "YouTubePublishing.c"
+#line 2709 "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 2725 "YouTubePublishing.c"
- PublishingYouTubePublishingOptionsPanePrivacyDescription* object;
+#line 2716 "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 2732 "YouTubePublishing.c"
+#line 2723 "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 2736 "YouTubePublishing.c"
+#line 2727 "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 2740 "YouTubePublishing.c"
+#line 2731 "YouTubePublishing.c"
} else {
#line 299 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
value->data[0].v_pointer = NULL;
-#line 2744 "YouTubePublishing.c"
+#line 2735 "YouTubePublishing.c"
}
#line 299 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
return NULL;
-#line 2748 "YouTubePublishing.c"
+#line 2739 "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;
+ 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 2759 "YouTubePublishing.c"
+#line 2750 "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 2765 "YouTubePublishing.c"
+#line 2756 "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 2769 "YouTubePublishing.c"
+#line 2760 "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 2773 "YouTubePublishing.c"
+#line 2764 "YouTubePublishing.c"
}
#line 299 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
return NULL;
-#line 2777 "YouTubePublishing.c"
+#line 2768 "YouTubePublishing.c"
}
@@ -2794,7 +2785,7 @@ static GParamSpec* publishing_you_tube_publishing_options_pane_param_spec_privac
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 2791 "YouTubePublishing.c"
+#line 2782 "YouTubePublishing.c"
}
@@ -2803,12 +2794,12 @@ static gpointer publishing_you_tube_publishing_options_pane_value_get_privacy_de
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 2800 "YouTubePublishing.c"
+#line 2791 "YouTubePublishing.c"
}
static void publishing_you_tube_publishing_options_pane_value_set_privacy_description (GValue* value, gpointer v_object) {
- PublishingYouTubePublishingOptionsPanePrivacyDescription* old;
+ 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"
@@ -2823,23 +2814,23 @@ static void publishing_you_tube_publishing_options_pane_value_set_privacy_descri
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 2820 "YouTubePublishing.c"
+#line 2811 "YouTubePublishing.c"
} else {
#line 299 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
value->data[0].v_pointer = NULL;
-#line 2824 "YouTubePublishing.c"
+#line 2815 "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 2830 "YouTubePublishing.c"
+#line 2821 "YouTubePublishing.c"
}
}
static void publishing_you_tube_publishing_options_pane_value_take_privacy_description (GValue* value, gpointer v_object) {
- PublishingYouTubePublishingOptionsPanePrivacyDescription* old;
+ 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"
@@ -2852,17 +2843,17 @@ static void publishing_you_tube_publishing_options_pane_value_take_privacy_descr
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 2849 "YouTubePublishing.c"
+#line 2840 "YouTubePublishing.c"
} else {
#line 299 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
value->data[0].v_pointer = NULL;
-#line 2853 "YouTubePublishing.c"
+#line 2844 "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 2859 "YouTubePublishing.c"
+#line 2850 "YouTubePublishing.c"
}
}
@@ -2872,18 +2863,18 @@ static void publishing_you_tube_publishing_options_pane_privacy_description_clas
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 2869 "YouTubePublishing.c"
+#line 2860 "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 2876 "YouTubePublishing.c"
+#line 2867 "YouTubePublishing.c"
}
-static void publishing_you_tube_publishing_options_pane_privacy_description_finalize (PublishingYouTubePublishingOptionsPanePrivacyDescription* obj) {
+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);
@@ -2891,7 +2882,7 @@ static void publishing_you_tube_publishing_options_pane_privacy_description_fina
g_signal_handlers_destroy (self);
#line 300 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
_g_free0 (self->description);
-#line 2888 "YouTubePublishing.c"
+#line 2879 "YouTubePublishing.c"
}
@@ -2910,18 +2901,18 @@ static GType publishing_you_tube_publishing_options_pane_privacy_description_get
static gpointer publishing_you_tube_publishing_options_pane_privacy_description_ref (gpointer instance) {
- PublishingYouTubePublishingOptionsPanePrivacyDescription* self;
+ 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 2913 "YouTubePublishing.c"
+#line 2904 "YouTubePublishing.c"
}
static void publishing_you_tube_publishing_options_pane_privacy_description_unref (gpointer instance) {
- PublishingYouTubePublishingOptionsPanePrivacyDescription* self;
+ 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)) {
@@ -2929,7 +2920,7 @@ static void publishing_you_tube_publishing_options_pane_privacy_description_unre
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 2926 "YouTubePublishing.c"
+#line 2917 "YouTubePublishing.c"
}
}
@@ -2942,10 +2933,10 @@ static void publishing_you_tube_publishing_options_pane_class_init (PublishingYo
#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"
- 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);
+ 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"
- 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 2942 "YouTubePublishing.c"
+ 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 2933 "YouTubePublishing.c"
}
@@ -2953,14 +2944,14 @@ static void publishing_you_tube_publishing_options_pane_spit_publishing_dialog_p
#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;
+ 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;
+ 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;
+ 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 2957 "YouTubePublishing.c"
+ iface->on_pane_uninstalled = (void (*) (SpitPublishingDialogPane *)) publishing_you_tube_publishing_options_pane_real_on_pane_uninstalled;
+#line 2948 "YouTubePublishing.c"
}
@@ -2981,11 +2972,11 @@ static void publishing_you_tube_publishing_options_pane_instance_init (Publishin
self->priv->builder = NULL;
#line 318 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
self->priv->privacy_label = NULL;
-#line 2978 "YouTubePublishing.c"
+#line 2969 "YouTubePublishing.c"
}
-static void publishing_you_tube_publishing_options_pane_finalize (GObject* obj) {
+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);
@@ -3009,7 +3000,7 @@ static void publishing_you_tube_publishing_options_pane_finalize (GObject* obj)
_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 3006 "YouTubePublishing.c"
+#line 2997 "YouTubePublishing.c"
}
@@ -3029,17 +3020,17 @@ GType publishing_you_tube_publishing_options_pane_get_type (void) {
PublishingYouTubeUploadTransaction* publishing_you_tube_upload_transaction_construct (GType object_type, GDataYouTubeService* youtube_service, PublishingRESTSupportGoogleSession* session, PublishingYouTubePublishingParameters* parameters, SpitPublishingPublishable* publishable) {
PublishingYouTubeUploadTransaction* self = NULL;
- PublishingRESTSupportGoogleSession* _tmp0_ = NULL;
- PublishingRESTSupportGoogleSession* _tmp1_ = NULL;
- gboolean _tmp2_ = FALSE;
- PublishingRESTSupportGoogleSession* _tmp3_ = NULL;
- PublishingRESTSupportGoogleSession* _tmp4_ = NULL;
- PublishingYouTubePublishingParameters* _tmp5_ = NULL;
- PublishingYouTubePublishingParameters* _tmp6_ = NULL;
- SpitPublishingPublishable* _tmp7_ = NULL;
- SpitPublishingPublishable* _tmp8_ = NULL;
- GDataYouTubeService* _tmp9_ = NULL;
- GDataYouTubeService* _tmp10_ = NULL;
+ PublishingRESTSupportGoogleSession* _tmp0_;
+ PublishingRESTSupportGoogleSession* _tmp1_;
+ gboolean _tmp2_;
+ PublishingRESTSupportGoogleSession* _tmp3_;
+ PublishingRESTSupportGoogleSession* _tmp4_;
+ PublishingYouTubePublishingParameters* _tmp5_;
+ PublishingYouTubePublishingParameters* _tmp6_;
+ SpitPublishingPublishable* _tmp7_;
+ SpitPublishingPublishable* _tmp8_;
+ GDataYouTubeService* _tmp9_;
+ GDataYouTubeService* _tmp10_;
#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"
@@ -3092,14 +3083,14 @@ PublishingYouTubeUploadTransaction* publishing_you_tube_upload_transaction_const
self->priv->youtube_service = _tmp10_;
#line 407 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
return self;
-#line 3089 "YouTubePublishing.c"
+#line 3080 "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 3096 "YouTubePublishing.c"
+#line 3087 "YouTubePublishing.c"
}
@@ -3108,7 +3099,7 @@ static Block1Data* block1_data_ref (Block1Data* _data1_) {
g_atomic_int_inc (&_data1_->_ref_count_);
#line 438 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
return _data1_;
-#line 3105 "YouTubePublishing.c"
+#line 3096 "YouTubePublishing.c"
}
@@ -3117,7 +3108,7 @@ static void block1_data_unref (void * _userdata_) {
_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 3114 "YouTubePublishing.c"
+#line 3105 "YouTubePublishing.c"
PublishingYouTubeUploadTransaction* self;
#line 438 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
self = _data1_->self;
@@ -3127,14 +3118,14 @@ static void block1_data_unref (void * _userdata_) {
_publishing_rest_support_transaction_unref0 (self);
#line 438 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
g_slice_free (Block1Data, _data1_);
-#line 3124 "YouTubePublishing.c"
+#line 3115 "YouTubePublishing.c"
}
}
static void ___lambda4_ (Block1Data* _data1_, GObject* obj, GAsyncResult* res) {
PublishingYouTubeUploadTransaction* self;
- GMainLoop* _tmp3_ = NULL;
+ GMainLoop* _tmp3_;
GError * _inner_error_ = NULL;
#line 447 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
self = _data1_->self;
@@ -3142,16 +3133,16 @@ static void ___lambda4_ (Block1Data* _data1_, GObject* obj, GAsyncResult* res) {
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 3139 "YouTubePublishing.c"
+#line 3130 "YouTubePublishing.c"
{
- GAsyncResult* _tmp0_ = NULL;
+ GAsyncResult* _tmp0_;
#line 449 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
_tmp0_ = res;
#line 449 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
publishing_you_tube_upload_transaction_splice_with_progress_finish (self, _tmp0_, &_inner_error_);
#line 449 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 3148 "YouTubePublishing.c"
+#line 3139 "YouTubePublishing.c"
goto __catch22_g_error;
}
}
@@ -3159,8 +3150,8 @@ static void ___lambda4_ (Block1Data* _data1_, GObject* obj, GAsyncResult* res) {
__catch22_g_error:
{
GError* _error_ = NULL;
- GError* _tmp1_ = NULL;
- const gchar* _tmp2_ = NULL;
+ GError* _tmp1_;
+ const gchar* _tmp2_;
#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"
@@ -3173,7 +3164,7 @@ static void ___lambda4_ (Block1Data* _data1_, GObject* obj, GAsyncResult* res) {
g_critical ("YouTubePublishing.vala:451: Failed to upload: %s", _tmp2_);
#line 448 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
_g_error_free0 (_error_);
-#line 3170 "YouTubePublishing.c"
+#line 3161 "YouTubePublishing.c"
}
__finally22:
#line 448 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
@@ -3184,13 +3175,13 @@ static void ___lambda4_ (Block1Data* _data1_, GObject* obj, GAsyncResult* res) {
g_clear_error (&_inner_error_);
#line 448 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
return;
-#line 3181 "YouTubePublishing.c"
+#line 3172 "YouTubePublishing.c"
}
#line 453 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
_tmp3_ = _data1_->loop;
#line 453 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
g_main_loop_quit (_tmp3_);
-#line 3187 "YouTubePublishing.c"
+#line 3178 "YouTubePublishing.c"
}
@@ -3199,31 +3190,31 @@ static void ____lambda4__gasync_ready_callback (GObject* source_object, GAsyncRe
___lambda4_ (self, source_object, res);
#line 447 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
block1_data_unref (self);
-#line 3196 "YouTubePublishing.c"
+#line 3187 "YouTubePublishing.c"
}
static void publishing_you_tube_upload_transaction_real_execute (PublishingRESTSupportTransaction* base, GError** error) {
PublishingYouTubeUploadTransaction * self;
GDataYouTubeVideo* video = NULL;
- GDataYouTubeVideo* _tmp0_ = NULL;
+ GDataYouTubeVideo* _tmp0_;
gchar* slug = NULL;
- SpitPublishingPublishable* _tmp1_ = NULL;
- gchar* _tmp2_ = NULL;
+ SpitPublishingPublishable* _tmp1_;
+ gchar* _tmp2_;
gchar* title = NULL;
- SpitPublishingPublishable* _tmp3_ = NULL;
- gchar* _tmp4_ = NULL;
- const gchar* _tmp5_ = NULL;
- GDataYouTubeVideo* _tmp8_ = NULL;
- const gchar* _tmp9_ = NULL;
- GDataYouTubeVideo* _tmp10_ = NULL;
- PublishingYouTubePublishingParameters* _tmp11_ = NULL;
- PublishingYouTubePrivacySetting _tmp12_ = 0;
- PublishingYouTubePublishingParameters* _tmp13_ = NULL;
- PublishingYouTubePrivacySetting _tmp14_ = 0;
+ SpitPublishingPublishable* _tmp3_;
+ gchar* _tmp4_;
+ const gchar* _tmp5_;
+ GDataYouTubeVideo* _tmp8_;
+ const gchar* _tmp9_;
+ GDataYouTubeVideo* _tmp10_;
+ PublishingYouTubePublishingParameters* _tmp11_;
+ PublishingYouTubePrivacySetting _tmp12_;
+ PublishingYouTubePublishingParameters* _tmp13_;
+ PublishingYouTubePrivacySetting _tmp14_;
GFile* file = NULL;
- SpitPublishingPublishable* _tmp20_ = NULL;
- GFile* _tmp21_ = NULL;
+ SpitPublishingPublishable* _tmp20_;
+ GFile* _tmp21_;
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);
@@ -3247,9 +3238,9 @@ static void publishing_you_tube_upload_transaction_real_execute (PublishingRESTS
_tmp5_ = title;
#line 423 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
if (g_strcmp0 (_tmp5_, "") == 0) {
-#line 3244 "YouTubePublishing.c"
- SpitPublishingPublishable* _tmp6_ = NULL;
- gchar* _tmp7_ = NULL;
+#line 3235 "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"
@@ -3258,7 +3249,7 @@ static void publishing_you_tube_upload_transaction_real_execute (PublishingRESTS
_g_free0 (title);
#line 424 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
title = _tmp7_;
-#line 3255 "YouTubePublishing.c"
+#line 3246 "YouTubePublishing.c"
}
#line 426 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
_tmp8_ = video;
@@ -3280,17 +3271,17 @@ static void publishing_you_tube_upload_transaction_real_execute (PublishingRESTS
_tmp14_ = publishing_you_tube_publishing_parameters_get_privacy (_tmp13_);
#line 430 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
if (_tmp14_ == PUBLISHING_YOU_TUBE_PRIVACY_SETTING_UNLISTED) {
-#line 3277 "YouTubePublishing.c"
- GDataYouTubeVideo* _tmp15_ = NULL;
+#line 3268 "YouTubePublishing.c"
+ GDataYouTubeVideo* _tmp15_;
#line 431 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
_tmp15_ = video;
#line 431 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
gdata_youtube_video_set_access_control (_tmp15_, "list", GDATA_YOUTUBE_PERMISSION_DENIED);
-#line 3283 "YouTubePublishing.c"
+#line 3274 "YouTubePublishing.c"
} else {
- GDataYouTubeVideo* _tmp16_ = NULL;
- gboolean _tmp17_ = FALSE;
- gboolean _tmp18_ = FALSE;
+ GDataYouTubeVideo* _tmp16_;
+ gboolean _tmp17_;
+ gboolean _tmp18_;
#line 432 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
_tmp16_ = video;
#line 432 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
@@ -3299,13 +3290,13 @@ static void publishing_you_tube_upload_transaction_real_execute (PublishingRESTS
_tmp18_ = _tmp17_;
#line 432 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
if (!_tmp18_) {
-#line 3296 "YouTubePublishing.c"
- GDataYouTubeVideo* _tmp19_ = NULL;
+#line 3287 "YouTubePublishing.c"
+ GDataYouTubeVideo* _tmp19_;
#line 433 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
_tmp19_ = video;
#line 433 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
gdata_youtube_video_set_access_control (_tmp19_, "list", GDATA_YOUTUBE_PERMISSION_ALLOWED);
-#line 3302 "YouTubePublishing.c"
+#line 3293 "YouTubePublishing.c"
}
}
#line 436 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
@@ -3314,32 +3305,32 @@ static void publishing_you_tube_upload_transaction_real_execute (PublishingRESTS
_tmp21_ = spit_publishing_publishable_get_serialized_file (_tmp20_);
#line 436 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
file = _tmp21_;
-#line 3311 "YouTubePublishing.c"
+#line 3302 "YouTubePublishing.c"
{
Block1Data* _data1_;
GFileInfo* info = NULL;
- GFile* _tmp22_ = NULL;
- GFileInfo* _tmp23_ = NULL;
+ GFile* _tmp22_;
+ GFileInfo* _tmp23_;
GDataUploadStream* upload_stream = NULL;
- GDataYouTubeService* _tmp24_ = NULL;
- GDataYouTubeVideo* _tmp25_ = NULL;
- const gchar* _tmp26_ = NULL;
- GFileInfo* _tmp27_ = NULL;
- const gchar* _tmp28_ = NULL;
- GDataUploadStream* _tmp29_ = NULL;
+ GDataYouTubeService* _tmp24_;
+ GDataYouTubeVideo* _tmp25_;
+ const gchar* _tmp26_;
+ GFileInfo* _tmp27_;
+ const gchar* _tmp28_;
+ GDataUploadStream* _tmp29_;
GFileInputStream* input_stream = NULL;
- GFile* _tmp30_ = NULL;
- GFileInputStream* _tmp31_ = NULL;
- GMainLoop* _tmp32_ = NULL;
- GFileInfo* _tmp33_ = NULL;
- GFileInputStream* _tmp34_ = NULL;
- GDataUploadStream* _tmp35_ = NULL;
- GMainLoop* _tmp36_ = NULL;
+ GFile* _tmp30_;
+ GFileInputStream* _tmp31_;
+ GMainLoop* _tmp32_;
+ GFileInfo* _tmp33_;
+ GFileInputStream* _tmp34_;
+ GDataUploadStream* _tmp35_;
+ GMainLoop* _tmp36_;
GDataYouTubeVideo* _tmp37_ = NULL;
- GDataYouTubeService* _tmp38_ = NULL;
- GDataUploadStream* _tmp39_ = NULL;
- GDataYouTubeVideo* _tmp40_ = NULL;
- GDataYouTubeVideo* _tmp41_ = NULL;
+ GDataYouTubeService* _tmp38_;
+ GDataUploadStream* _tmp39_;
+ GDataYouTubeVideo* _tmp40_;
+ GDataYouTubeVideo* _tmp41_;
#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"
@@ -3358,7 +3349,7 @@ static void publishing_you_tube_upload_transaction_real_execute (PublishingRESTS
block1_data_unref (_data1_);
#line 439 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
_data1_ = NULL;
-#line 3355 "YouTubePublishing.c"
+#line 3346 "YouTubePublishing.c"
goto __catch21_g_error;
}
#line 441 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
@@ -3383,7 +3374,7 @@ static void publishing_you_tube_upload_transaction_real_execute (PublishingRESTS
block1_data_unref (_data1_);
#line 441 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
_data1_ = NULL;
-#line 3380 "YouTubePublishing.c"
+#line 3371 "YouTubePublishing.c"
goto __catch21_g_error;
}
#line 443 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
@@ -3402,7 +3393,7 @@ static void publishing_you_tube_upload_transaction_real_execute (PublishingRESTS
block1_data_unref (_data1_);
#line 443 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
_data1_ = NULL;
-#line 3399 "YouTubePublishing.c"
+#line 3390 "YouTubePublishing.c"
goto __catch21_g_error;
}
#line 446 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
@@ -3441,7 +3432,7 @@ static void publishing_you_tube_upload_transaction_real_execute (PublishingRESTS
block1_data_unref (_data1_);
#line 456 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
_data1_ = NULL;
-#line 3438 "YouTubePublishing.c"
+#line 3429 "YouTubePublishing.c"
goto __catch21_g_error;
}
#line 456 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
@@ -3464,14 +3455,14 @@ static void publishing_you_tube_upload_transaction_real_execute (PublishingRESTS
block1_data_unref (_data1_);
#line 438 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
_data1_ = NULL;
-#line 3461 "YouTubePublishing.c"
+#line 3452 "YouTubePublishing.c"
}
goto __finally21;
__catch21_g_error:
{
GError* _error_ = NULL;
- GError* _tmp42_ = NULL;
- const gchar* _tmp43_ = NULL;
+ GError* _tmp42_;
+ const gchar* _tmp43_;
#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"
@@ -3484,7 +3475,7 @@ static void publishing_you_tube_upload_transaction_real_execute (PublishingRESTS
g_critical ("YouTubePublishing.vala:458: Upload failed: %s", _tmp43_);
#line 438 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
_g_error_free0 (_error_);
-#line 3481 "YouTubePublishing.c"
+#line 3472 "YouTubePublishing.c"
}
__finally21:
#line 438 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
@@ -3503,7 +3494,7 @@ static void publishing_you_tube_upload_transaction_real_execute (PublishingRESTS
_g_object_unref0 (video);
#line 438 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
return;
-#line 3500 "YouTubePublishing.c"
+#line 3491 "YouTubePublishing.c"
} else {
#line 438 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
_g_object_unref0 (file);
@@ -3519,7 +3510,7 @@ static void publishing_you_tube_upload_transaction_real_execute (PublishingRESTS
g_clear_error (&_inner_error_);
#line 438 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
return;
-#line 3516 "YouTubePublishing.c"
+#line 3507 "YouTubePublishing.c"
}
}
#line 417 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
@@ -3530,7 +3521,7 @@ static void publishing_you_tube_upload_transaction_real_execute (PublishingRESTS
_g_free0 (slug);
#line 417 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
_g_object_unref0 (video);
-#line 3527 "YouTubePublishing.c"
+#line 3518 "YouTubePublishing.c"
}
@@ -3547,32 +3538,56 @@ static void publishing_you_tube_upload_transaction_splice_with_progress_data_fre
_publishing_rest_support_transaction_unref0 (_data_->self);
#line 400 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
g_slice_free (PublishingYouTubeUploadTransactionSpliceWithProgressData, _data_);
-#line 3544 "YouTubePublishing.c"
+#line 3535 "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 3547 "YouTubePublishing.c"
+ }
+#line 400 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
+ _task_data_->_task_complete_ = TRUE;
+#line 3551 "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 3551 "YouTubePublishing.c"
+#line 3558 "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_ = NULL;
- GFileInfo* _tmp1_ = NULL;
- GFileInfo* _tmp2_ = NULL;
- GInputStream* _tmp3_ = NULL;
- GInputStream* _tmp4_ = NULL;
- GOutputStream* _tmp5_ = NULL;
- GOutputStream* _tmp6_ = NULL;
+ PublishingYouTubeUploadTransaction* _tmp0_;
+ GFileInfo* _tmp1_;
+ GFileInfo* _tmp2_;
+ GInputStream* _tmp3_;
+ GInputStream* _tmp4_;
+ GOutputStream* _tmp5_;
+ GOutputStream* _tmp6_;
#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_->_async_result = g_simple_async_result_new (NULL, _callback_, _user_data_, publishing_you_tube_upload_transaction_splice_with_progress);
+ _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 3581 "YouTubePublishing.c"
+ }
#line 400 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
- g_simple_async_result_set_op_res_gpointer (_data_->_async_result, _data_, publishing_you_tube_upload_transaction_splice_with_progress_data_free);
+ 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"
@@ -3603,21 +3618,20 @@ static void publishing_you_tube_upload_transaction_splice_with_progress (Publish
_data_->output = _tmp6_;
#line 400 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
publishing_you_tube_upload_transaction_splice_with_progress_co (_data_);
-#line 3600 "YouTubePublishing.c"
+#line 3615 "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"
- if (g_simple_async_result_propagate_error (G_SIMPLE_ASYNC_RESULT (_res_), error)) {
+ _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 3610 "YouTubePublishing.c"
+#line 3627 "YouTubePublishing.c"
}
-#line 400 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
- _data_ = g_simple_async_result_get_op_res_gpointer (G_SIMPLE_ASYNC_RESULT (_res_));
-#line 3614 "YouTubePublishing.c"
}
@@ -3630,8 +3644,10 @@ static void publishing_you_tube_upload_transaction_splice_with_progress_ready (G
#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 3628 "YouTubePublishing.c"
+#line 3644 "YouTubePublishing.c"
}
@@ -3640,61 +3656,51 @@ static gboolean publishing_you_tube_upload_transaction_splice_with_progress_co (
switch (_data_->_state_) {
#line 462 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
case 0:
-#line 3637 "YouTubePublishing.c"
+#line 3653 "YouTubePublishing.c"
goto _state_0;
#line 462 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
case 1:
-#line 3641 "YouTubePublishing.c"
+#line 3657 "YouTubePublishing.c"
goto _state_1;
#line 462 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
case 2:
-#line 3645 "YouTubePublishing.c"
+#line 3661 "YouTubePublishing.c"
goto _state_2;
#line 462 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
case 3:
-#line 3649 "YouTubePublishing.c"
+#line 3665 "YouTubePublishing.c"
goto _state_3;
#line 462 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
case 4:
-#line 3653 "YouTubePublishing.c"
+#line 3669 "YouTubePublishing.c"
goto _state_4;
default:
#line 462 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
g_assert_not_reached ();
-#line 3658 "YouTubePublishing.c"
+#line 3674 "YouTubePublishing.c"
}
_state_0:
#line 463 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
- _data_->_tmp0_ = NULL;
-#line 463 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
_data_->_tmp0_ = _data_->info;
#line 463 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
- _data_->_tmp1_ = 0LL;
-#line 463 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
_data_->_tmp1_ = g_file_info_get_size (_data_->_tmp0_);
#line 463 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
_data_->total_bytes = _data_->_tmp1_;
#line 464 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
- _data_->_tmp2_ = 0LL;
-#line 464 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
_data_->_tmp2_ = _data_->total_bytes;
#line 464 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
_data_->bytes_to_write = _data_->_tmp2_;
#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_->_tmp3_ = 0LL;
-#line 467 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
_data_->_tmp3_ = _data_->bytes_to_write;
#line 467 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
if (!(_data_->_tmp3_ > ((gint64) 0))) {
#line 467 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
break;
-#line 3687 "YouTubePublishing.c"
+#line 3695 "YouTubePublishing.c"
}
#line 468 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
- _data_->_tmp4_ = NULL;
-#line 468 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
_data_->_tmp4_ = _data_->input;
#line 468 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
_data_->_state_ = 1;
@@ -3702,53 +3708,33 @@ static gboolean publishing_you_tube_upload_transaction_splice_with_progress_co (
g_input_stream_read_async (_data_->_tmp4_, _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 3699 "YouTubePublishing.c"
+#line 3705 "YouTubePublishing.c"
_state_1:
#line 468 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
- _data_->_tmp5_ = 0L;
-#line 468 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
_data_->_tmp5_ = g_input_stream_read_finish (_data_->_tmp4_, _data_->_res_, &_data_->_inner_error_);
#line 468 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
_data_->bytes_read = _data_->_tmp5_;
#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_simple_async_result_set_from_error (_data_->_async_result, _data_->_inner_error_);
-#line 468 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
- g_error_free (_data_->_inner_error_);
-#line 468 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
- if (_data_->_state_ == 0) {
-#line 468 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
- g_simple_async_result_complete_in_idle (_data_->_async_result);
-#line 3717 "YouTubePublishing.c"
- } else {
-#line 468 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
- g_simple_async_result_complete (_data_->_async_result);
-#line 3721 "YouTubePublishing.c"
- }
+ 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 3727 "YouTubePublishing.c"
+#line 3719 "YouTubePublishing.c"
}
#line 469 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
- _data_->_tmp6_ = 0L;
-#line 469 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
_data_->_tmp6_ = _data_->bytes_read;
#line 469 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
if (_data_->_tmp6_ == ((gssize) 0)) {
#line 470 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
break;
-#line 3737 "YouTubePublishing.c"
+#line 3727 "YouTubePublishing.c"
}
#line 472 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
- _data_->_tmp7_ = NULL;
-#line 472 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
_data_->_tmp7_ = _data_->output;
#line 472 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
- _data_->_tmp8_ = 0L;
-#line 472 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
_data_->_tmp8_ = _data_->bytes_read;
#line 472 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
_data_->_state_ = 2;
@@ -3756,65 +3742,39 @@ static gboolean publishing_you_tube_upload_transaction_splice_with_progress_co (
g_output_stream_write_async (_data_->_tmp7_, _data_->buffer + 0, (gsize) (((gint) _data_->_tmp8_) - 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 3753 "YouTubePublishing.c"
+#line 3739 "YouTubePublishing.c"
_state_2:
#line 472 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
- _data_->_tmp9_ = 0L;
-#line 472 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
_data_->_tmp9_ = g_output_stream_write_finish (_data_->_tmp7_, _data_->_res_, &_data_->_inner_error_);
#line 472 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
_data_->bytes_written = _data_->_tmp9_;
#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_simple_async_result_set_from_error (_data_->_async_result, _data_->_inner_error_);
-#line 472 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
- g_error_free (_data_->_inner_error_);
-#line 472 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
- if (_data_->_state_ == 0) {
-#line 472 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
- g_simple_async_result_complete_in_idle (_data_->_async_result);
-#line 3771 "YouTubePublishing.c"
- } else {
-#line 472 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
- g_simple_async_result_complete (_data_->_async_result);
-#line 3775 "YouTubePublishing.c"
- }
+ 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 3781 "YouTubePublishing.c"
+#line 3753 "YouTubePublishing.c"
}
#line 473 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
- _data_->_tmp10_ = 0LL;
-#line 473 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
_data_->_tmp10_ = _data_->bytes_to_write;
#line 473 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
- _data_->_tmp11_ = 0L;
-#line 473 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
_data_->_tmp11_ = _data_->bytes_written;
#line 473 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
_data_->bytes_to_write = _data_->_tmp10_ - _data_->_tmp11_;
#line 474 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
- _data_->_tmp12_ = 0LL;
-#line 474 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
_data_->_tmp12_ = _data_->total_bytes;
#line 474 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
- _data_->_tmp13_ = 0LL;
-#line 474 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
_data_->_tmp13_ = _data_->bytes_to_write;
#line 474 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
- _data_->_tmp14_ = 0LL;
-#line 474 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
_data_->_tmp14_ = _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_->_tmp12_ - _data_->_tmp13_), (gint) _data_->_tmp14_);
-#line 3807 "YouTubePublishing.c"
+#line 3769 "YouTubePublishing.c"
}
#line 477 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
- _data_->_tmp15_ = NULL;
-#line 477 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
_data_->_tmp15_ = _data_->output;
#line 477 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
_data_->_state_ = 3;
@@ -3822,35 +3782,21 @@ static gboolean publishing_you_tube_upload_transaction_splice_with_progress_co (
g_output_stream_close_async (_data_->_tmp15_, 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 3819 "YouTubePublishing.c"
+#line 3779 "YouTubePublishing.c"
_state_3:
#line 477 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
g_output_stream_close_finish (_data_->_tmp15_, _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_simple_async_result_set_from_error (_data_->_async_result, _data_->_inner_error_);
-#line 477 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
- g_error_free (_data_->_inner_error_);
-#line 477 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
- if (_data_->_state_ == 0) {
-#line 477 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
- g_simple_async_result_complete_in_idle (_data_->_async_result);
-#line 3833 "YouTubePublishing.c"
- } else {
-#line 477 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
- g_simple_async_result_complete (_data_->_async_result);
-#line 3837 "YouTubePublishing.c"
- }
+ 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 3843 "YouTubePublishing.c"
+#line 3791 "YouTubePublishing.c"
}
#line 478 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
- _data_->_tmp16_ = NULL;
-#line 478 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
_data_->_tmp16_ = _data_->input;
#line 478 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
_data_->_state_ = 4;
@@ -3858,47 +3804,36 @@ static gboolean publishing_you_tube_upload_transaction_splice_with_progress_co (
g_input_stream_close_async (_data_->_tmp16_, 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 3855 "YouTubePublishing.c"
+#line 3801 "YouTubePublishing.c"
_state_4:
#line 478 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
g_input_stream_close_finish (_data_->_tmp16_, _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_simple_async_result_set_from_error (_data_->_async_result, _data_->_inner_error_);
-#line 478 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
- g_error_free (_data_->_inner_error_);
-#line 478 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
- if (_data_->_state_ == 0) {
-#line 478 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
- g_simple_async_result_complete_in_idle (_data_->_async_result);
-#line 3869 "YouTubePublishing.c"
- } else {
-#line 478 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
- g_simple_async_result_complete (_data_->_async_result);
-#line 3873 "YouTubePublishing.c"
- }
+ 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 3879 "YouTubePublishing.c"
+#line 3813 "YouTubePublishing.c"
}
#line 462 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
- if (_data_->_state_ == 0) {
+ g_task_return_pointer (_data_->_async_result, _data_, NULL);
#line 462 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
- g_simple_async_result_complete_in_idle (_data_->_async_result);
-#line 3885 "YouTubePublishing.c"
- } else {
+ if (_data_->_state_ != 0) {
#line 462 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
- g_simple_async_result_complete (_data_->_async_result);
-#line 3889 "YouTubePublishing.c"
+ 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 3823 "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 3895 "YouTubePublishing.c"
+#line 3830 "YouTubePublishing.c"
}
@@ -3910,19 +3845,19 @@ static void publishing_you_tube_upload_transaction_class_init (PublishingYouTube
#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 3908 "YouTubePublishing.c"
+ ((PublishingRESTSupportTransactionClass *) klass)->execute = (void (*) (PublishingRESTSupportTransaction *, GError**)) publishing_you_tube_upload_transaction_real_execute;
+#line 3843 "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 3915 "YouTubePublishing.c"
+#line 3850 "YouTubePublishing.c"
}
-static void publishing_you_tube_upload_transaction_finalize (PublishingRESTSupportTransaction* obj) {
+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);
@@ -3936,7 +3871,7 @@ static void publishing_you_tube_upload_transaction_finalize (PublishingRESTSuppo
_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 3933 "YouTubePublishing.c"
+#line 3868 "YouTubePublishing.c"
}
@@ -3954,13 +3889,13 @@ GType publishing_you_tube_upload_transaction_get_type (void) {
PublishingYouTubeUploader* publishing_you_tube_uploader_construct (GType object_type, GDataYouTubeService* youtube_service, PublishingRESTSupportGoogleSession* session, SpitPublishingPublishable** publishables, int publishables_length1, PublishingYouTubePublishingParameters* parameters) {
PublishingYouTubeUploader* self = NULL;
- PublishingRESTSupportGoogleSession* _tmp0_ = NULL;
- SpitPublishingPublishable** _tmp1_ = NULL;
- gint _tmp1__length1 = 0;
- PublishingYouTubePublishingParameters* _tmp2_ = NULL;
- PublishingYouTubePublishingParameters* _tmp3_ = NULL;
- GDataYouTubeService* _tmp4_ = NULL;
- GDataYouTubeService* _tmp5_ = NULL;
+ PublishingRESTSupportGoogleSession* _tmp0_;
+ SpitPublishingPublishable** _tmp1_;
+ gint _tmp1__length1;
+ PublishingYouTubePublishingParameters* _tmp2_;
+ PublishingYouTubePublishingParameters* _tmp3_;
+ GDataYouTubeService* _tmp4_;
+ GDataYouTubeService* _tmp5_;
#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"
@@ -3993,28 +3928,28 @@ PublishingYouTubeUploader* publishing_you_tube_uploader_construct (GType object_
self->priv->youtube_service = _tmp5_;
#line 486 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
return self;
-#line 3990 "YouTubePublishing.c"
+#line 3925 "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 3997 "YouTubePublishing.c"
+#line 3932 "YouTubePublishing.c"
}
static PublishingRESTSupportTransaction* publishing_you_tube_uploader_real_create_transaction (PublishingRESTSupportBatchUploader* base, SpitPublishingPublishable* publishable) {
PublishingYouTubeUploader * self;
PublishingRESTSupportTransaction* result = NULL;
- GDataYouTubeService* _tmp0_ = NULL;
- PublishingRESTSupportSession* _tmp1_ = NULL;
- PublishingRESTSupportGoogleSession* _tmp2_ = NULL;
- PublishingYouTubePublishingParameters* _tmp3_ = NULL;
- SpitPublishingPublishable* _tmp4_ = NULL;
- SpitPublishingPublishable* _tmp5_ = NULL;
- PublishingYouTubeUploadTransaction* _tmp6_ = NULL;
- PublishingRESTSupportTransaction* _tmp7_ = 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"
@@ -4043,7 +3978,7 @@ static PublishingRESTSupportTransaction* publishing_you_tube_uploader_real_creat
result = _tmp7_;
#line 496 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala"
return result;
-#line 4040 "YouTubePublishing.c"
+#line 3975 "YouTubePublishing.c"
}
@@ -4055,19 +3990,19 @@ static void publishing_you_tube_uploader_class_init (PublishingYouTubeUploaderCl
#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 4053 "YouTubePublishing.c"
+ ((PublishingRESTSupportBatchUploaderClass *) klass)->create_transaction = (PublishingRESTSupportTransaction* (*) (PublishingRESTSupportBatchUploader *, SpitPublishingPublishable*)) publishing_you_tube_uploader_real_create_transaction;
+#line 3988 "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 4060 "YouTubePublishing.c"
+#line 3995 "YouTubePublishing.c"
}
-static void publishing_you_tube_uploader_finalize (PublishingRESTSupportBatchUploader* obj) {
+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);
@@ -4077,7 +4012,7 @@ static void publishing_you_tube_uploader_finalize (PublishingRESTSupportBatchUpl
_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 4074 "YouTubePublishing.c"
+#line 4009 "YouTubePublishing.c"
}