[gthumb] [flicker] fixed photoset creation when uploading a single file
- From: Paolo Bacchilega <paobac src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gthumb] [flicker] fixed photoset creation when uploading a single file
- Date: Sun, 14 Mar 2010 20:29:11 +0000 (UTC)
commit bc3aaae1393c431ee1b722e17de324088b781003
Author: Paolo Bacchilega <paobac src gnome org>
Date: Sun Mar 14 21:28:23 2010 +0100
[flicker] fixed photoset creation when uploading a single file
extensions/flicker/flickr-connection.c | 8 ++++++++
extensions/flicker/flickr-connection.h | 1 +
extensions/flicker/flickr-service.c | 7 +++++++
3 files changed, 16 insertions(+), 0 deletions(-)
---
diff --git a/extensions/flicker/flickr-connection.c b/extensions/flicker/flickr-connection.c
index 72b3600..6585cf8 100644
--- a/extensions/flicker/flickr-connection.c
+++ b/extensions/flicker/flickr-connection.c
@@ -219,6 +219,14 @@ flickr_connection_get_result (FlickrConnection *self)
void
+flickr_connection_reset_result (FlickrConnection *self)
+{
+ _g_object_unref (self->priv->result);
+ self->priv->result = NULL;
+}
+
+
+void
flickr_connection_add_api_sig (FlickrConnection *self,
GHashTable *data_set)
{
diff --git a/extensions/flicker/flickr-connection.h b/extensions/flicker/flickr-connection.h
index 6c9d232..df21060 100644
--- a/extensions/flicker/flickr-connection.h
+++ b/extensions/flicker/flickr-connection.h
@@ -73,6 +73,7 @@ void flickr_connection_send_message (FlickrConnection *self,
SoupSessionCallback soup_session_cb,
gpointer soup_session_cb_data);
GSimpleAsyncResult * flickr_connection_get_result (FlickrConnection *self);
+void flickr_connection_reset_result (FlickrConnection *self);
void flickr_connection_add_api_sig (FlickrConnection *self,
GHashTable *data_set);
void flickr_connection_get_frob (FlickrConnection *self,
diff --git a/extensions/flicker/flickr-service.c b/extensions/flicker/flickr-service.c
index d167f7a..42f87aa 100644
--- a/extensions/flicker/flickr-service.c
+++ b/extensions/flicker/flickr-service.c
@@ -491,6 +491,12 @@ add_photos_to_set_done (FlickrService *self,
GSimpleAsyncResult *result;
result = flickr_connection_get_result (self->priv->conn);
+ if (result == NULL)
+ result = g_simple_async_result_new (G_OBJECT (self),
+ self->priv->add_photos->callback,
+ self->priv->add_photos->user_data,
+ flickr_service_add_photos_to_set);
+
if (error == NULL)
g_simple_async_result_set_op_res_gboolean (result, TRUE);
else
@@ -613,6 +619,7 @@ flickr_service_add_photos_to_set (FlickrService *self,
self->priv->add_photos->current = self->priv->add_photos->photo_ids;
self->priv->add_photos->n_current = 1;
+ flickr_connection_reset_result (self->priv->conn);
add_current_photo_to_set (self);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]