Changeset 3757
- Timestamp:
- 09/04/08 11:10:58
- Files:
-
- trunk/ChangeLog (modified) (1 diff)
- trunk/libtinymail-camel/tny-camel-mime-part.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/ChangeLog
r3754 r3757 1 2008-09-03 Jose Dapena Paz <jdapena@igalia.com> 2 3 * libtinymail-camel/tny-camel-mime-part.c 4 (tny_camel_mime_part_decode_to_stream_async_default): make it really 5 asynchronous, doing the operation in a separate thread. 6 1 7 2008-09-03 Sergio Villar Senin <svillar@igalia.com> 2 8 trunk/libtinymail-camel/tny-camel-mime-part.c
r3736 r3757 304 304 } 305 305 306 /* This one is just to fulfil the API requirements */ 306 static gpointer 307 decode_to_stream_async_thread (gpointer userdata) 308 { 309 DecodeAsyncInfo *info = (DecodeAsyncInfo *) userdata; 310 311 tny_mime_part_decode_to_stream (info->self, info->stream, &(info->err)); 312 313 g_idle_add_full (G_PRIORITY_HIGH, 314 decode_async_callback, 315 info, decode_async_destroyer); 316 return NULL; 317 318 } 307 319 308 320 static void … … 317 329 { 318 330 DecodeAsyncInfo *info = g_slice_new0 (DecodeAsyncInfo); 319 320 tny_mime_part_decode_to_stream (self, stream, NULL);321 331 322 332 info->self = g_object_ref (self); … … 326 336 info->err = NULL; 327 337 328 g_idle_add_full (G_PRIORITY_HIGH,329 decode_async_callback,330 info, decode_async_destroyer);331 338 if (g_thread_create (decode_to_stream_async_thread, info, FALSE, &(info->err)) == FALSE) { 339 g_critical ("%s failed: couldn't create the working thread", __FUNCTION__); 340 } 341 332 342 return; 333 343 }
