[libgdata/libgdata-0-7] documents: Actually store the content-type notification signal handler ID



commit 373c739299ff56f88cf1ae1a59a5aff47d89328d
Author: Philip Withnall <philip tecnocode co uk>
Date:   Sat Dec 11 19:13:22 2010 +0000

    documents: Actually store the content-type notification signal handler ID
    
    This is the third commit to fix this trivial problem. I need more sugar.

 .../services/documents/gdata-documents-document.c  |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gdata/services/documents/gdata-documents-document.c b/gdata/services/documents/gdata-documents-document.c
index 3359113..c5bc91a 100644
--- a/gdata/services/documents/gdata-documents-document.c
+++ b/gdata/services/documents/gdata-documents-document.c
@@ -152,7 +152,7 @@ gdata_documents_document_download (GDataDocumentsDocument *self, GDataDocumentsS
 	/* Synchronously splice the data from the download stream to the file stream (network -> disk) */
 	src_stream = gdata_download_stream_new (_service, download_uri);
 	if (content_type != NULL)
-		g_signal_connect (src_stream, "notify::content-type", (GCallback) notify_content_type_cb, content_type);
+		content_type_signal = g_signal_connect (src_stream, "notify::content-type", (GCallback) notify_content_type_cb, content_type);
 
 	g_output_stream_splice (G_OUTPUT_STREAM (dest_stream), src_stream, G_OUTPUT_STREAM_SPLICE_CLOSE_SOURCE | G_OUTPUT_STREAM_SPLICE_CLOSE_TARGET,
 	                        cancellable, &child_error);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]