From: Damien Lespiau Date: Sun, 31 Oct 2010 16:49:40 +0000 (+0000) Subject: texture: Warn when the file loaded from a ClutterScript can't be found X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a318fe5ca50feca359abc15238c4ed0da3b41397;p=profile%2Fivi%2Fclutter.git 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". --- diff --git a/clutter/clutter-texture.c b/clutter/clutter-texture.c index 0874b0d..87c3cf9 100644 --- a/clutter/clutter-texture.c +++ b/clutter/clutter-texture.c @@ -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);