[clutter/wip/actor-content: 28/33] image-loader/pixbuf: Complete result in idle



commit 7ba6de939ad3ad614a7183f583961473bb548a0e
Author: Emmanuele Bassi <ebassi linux intel com>
Date:   Mon Apr 18 15:19:11 2011 +0100

    image-loader/pixbuf: Complete result in idle
    
    Make sure that the result of async loading is called in the main thread
    and not anywhere else.

 .../image-loaders/clutter-image-loader-pixbuf.c    |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/clutter/image-loaders/clutter-image-loader-pixbuf.c b/clutter/image-loaders/clutter-image-loader-pixbuf.c
index 033736b..e5e8e81 100644
--- a/clutter/image-loaders/clutter-image-loader-pixbuf.c
+++ b/clutter/image-loaders/clutter-image-loader-pixbuf.c
@@ -219,7 +219,7 @@ load_stream_data_read_callback (GObject      *gobject,
                                            _clutter_image_loader_load_stream_async);
           g_simple_async_result_set_op_res_gpointer (res, closure,
                                                      async_load_closure_free);
-          g_simple_async_result_complete (res);
+          g_simple_async_result_complete_in_idle (res);
           g_object_unref (res);
         }
     }
@@ -251,7 +251,7 @@ load_stream_data_read_callback (GObject      *gobject,
                                        _clutter_image_loader_load_stream_async);
       g_simple_async_result_set_op_res_gpointer (res, closure,
                                                  async_load_closure_free);
-      g_simple_async_result_complete (res);
+      g_simple_async_result_complete_in_idle (res);
       g_object_unref (res);
     }
 }



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