summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJaehwan Kim <jae.hwan.kim@samsung.com>2014-11-18 17:13:38 +0900
committerJaehwan Kim <jae.hwan.kim@samsung.com>2014-11-18 17:13:38 +0900
commit8ea9bc7ba060347fcfbf3fd03e363755d6d23299 (patch)
treed08d0c6a351b49496fa3470b01592c004fda2cb7
parent237e3031005d9e2d44e16d13bc187bc4185a0036 (diff)
edje: Set the default image in image set.
If there's no suitable image in image set, set the first image among the set.
-rw-r--r--src/lib/edje/edje_calc.c17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/lib/edje/edje_calc.c b/src/lib/edje/edje_calc.c
index 14627cd302..f6d75e6cc7 100644
--- a/src/lib/edje/edje_calc.c
+++ b/src/lib/edje/edje_calc.c
@@ -405,6 +405,23 @@ _edje_image_find(Evas_Object *obj, Edje *ed, Edje_Real_Part_Set **eps,
405 } 405 }
406 } 406 }
407 407
408 entry = eina_list_data_get(set->entries);
409 if (entry)
410 {
411 if (eps)
412 {
413 if (!*eps)
414 *eps = calloc(1, sizeof (Edje_Real_Part_Set));
415 if (*eps)
416 {
417 (*eps)->entry = entry;
418 (*eps)->set = set;
419 (*eps)->id = id;
420 }
421 }
422 return entry->id;
423 }
424
408 return -1; 425 return -1;
409} 426}
410 427