cedric pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=be8605dc44de90227c33efd240e1895b1169047b

commit be8605dc44de90227c33efd240e1895b1169047b
Author: jinwoo.shin <jw0227.s...@samsung.com>
Date:   Thu Mar 10 14:15:13 2016 -0800

    edje: add error log message for missing description
    
    Summary:
    Developer cannot notice that any description didn't applied due to missing 
description or typo.
    This message will be helpful to make correct the application.
    
    Reviewers: cedric, Hermet, raster
    
    Subscribers: soohye.shin, minkyu, cedric, jpeg
    
    Differential Revision: https://phab.enlightenment.org/D3783
    
    Signed-off-by: Cedric BAIL <ced...@osg.samsung.com>
---
 src/lib/edje/edje_calc.c | 10 +++++++---
 1 file changed, 7 insertions(+), 3 deletions(-)

diff --git a/src/lib/edje/edje_calc.c b/src/lib/edje/edje_calc.c
index 3e8f9c3..fe3764a 100644
--- a/src/lib/edje/edje_calc.c
+++ b/src/lib/edje/edje_calc.c
@@ -721,9 +721,13 @@ _edje_part_description_apply(Edje *ed, Edje_Real_Part *ep, 
const char *d1, doubl
 
    epd1 = _edje_part_description_find(ed, ep, d1, v1, EINA_TRUE);
    if (!epd1)
-     epd1 = _edje_get_description_by_orientation(ed, ep->part->default_desc,
-                                                 &ep->part->default_desc_rtl,
-                                                ep->type); /* never NULL */
+     {
+        ERR("Cannot find description \"%s\" in part \"%s\" from group \"%s\". 
Fallback to default description.",
+            d1, ep->part->name, ed->group);
+        epd1 = _edje_get_description_by_orientation(ed, ep->part->default_desc,
+                                                    
&ep->part->default_desc_rtl,
+                                                    ep->type); /* never NULL */
+     }
 
    if (d2)
      epd2 = _edje_part_description_find(ed, ep, d2, v2, EINA_TRUE);

-- 


Reply via email to