texture: Warn when the file loaded from a ClutterScript can't be found

Telling the user about files not found when loading a ClutterScript with
ClutterTextures in it is very useful and can save a few minutes (or
hours) of frustation because it "does not work".
This commit is contained in:
Damien Lespiau 2010-10-31 16:49:40 +00:00
parent 2ee0e40848
commit a318fe5ca5

View File

@ -1230,7 +1230,10 @@ clutter_texture_set_custom_property (ClutterScriptable *scriptable,
path = clutter_script_lookup_filename (script, str);
if (G_UNLIKELY (!path))
return;
{
g_warning ("Unable to find image %s", str);
return;
}
error = NULL;
clutter_texture_set_from_file (texture, path, &error);