mirror of
https://github.com/brl/mutter.git
synced 2024-11-27 02:20:43 -05:00
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:
parent
2ee0e40848
commit
a318fe5ca5
@ -1230,7 +1230,10 @@ clutter_texture_set_custom_property (ClutterScriptable *scriptable,
|
|||||||
|
|
||||||
path = clutter_script_lookup_filename (script, str);
|
path = clutter_script_lookup_filename (script, str);
|
||||||
if (G_UNLIKELY (!path))
|
if (G_UNLIKELY (!path))
|
||||||
|
{
|
||||||
|
g_warning ("Unable to find image %s", str);
|
||||||
return;
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
error = NULL;
|
error = NULL;
|
||||||
clutter_texture_set_from_file (texture, path, &error);
|
clutter_texture_set_from_file (texture, path, &error);
|
||||||
|
Loading…
Reference in New Issue
Block a user