Emit ::load-finished for every texture load
authorEmmanuele Bassi <ebassi@linux.intel.com>
Wed, 14 Jan 2009 15:30:10 +0000 (15:30 +0000)
committerEmmanuele Bassi <ebassi@linux.intel.com>
Wed, 14 Jan 2009 15:38:04 +0000 (15:38 +0000)
The ::load-finished signal is emitted only when loading a texture
using clutter_texture_set_from_file(). Since this breaks user
expectations and consistency, we should also emit ::load-finished
when loading a texture from image data.

clutter/clutter-texture.c

index a3b1bd3..d081b38 100644 (file)
@@ -1270,6 +1270,8 @@ clutter_texture_set_from_data (ClutterTexture     *texture,
 
   cogl_texture_unref (new_texture);
 
+  g_signal_emit (texture, texture_signals[LOAD_FINISHED], 0, error);
+
   return TRUE;
 }