diff options
author | ChunEon Park <hermet@hermet.pe.kr> | 2015-01-02 12:14:41 +0900 |
---|---|---|
committer | ChunEon Park <hermet@hermet.pe.kr> | 2015-01-02 12:14:41 +0900 |
commit | 0da29a39e8b1f2d080ba12fcd94398b3aacb4a18 (patch) | |
tree | 20b852eb6aca416f9af1bac5505814bc70157867 | |
parent | 24dc50ea12446f2ecb639c26de366733baaf0c81 (diff) | |
download | elementary-0da29a39e8b1f2d080ba12fcd94398b3aacb4a18.tar.gz |
genlist: exceptional handling.
just be hidden if contents are failed to swallow.
-rw-r--r-- | src/lib/elm_genlist.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/lib/elm_genlist.c b/src/lib/elm_genlist.c index 83eef29c2..ff91d2d64 100644 --- a/src/lib/elm_genlist.c +++ b/src/lib/elm_genlist.c @@ -363,8 +363,13 @@ _item_content_realize(Elm_Gen_Item *it, if (ic) { res = eina_list_append(res, ic); - edje_object_part_swallow(target, key, ic); - evas_object_show(ic); + if (!edje_object_part_swallow(target, key, ic)) + { + ERR("%s (%p) can not be swallowed into %s", + evas_object_type_get(ic), ic, key); + evas_object_hide(ic); + continue; + } elm_widget_sub_object_add(WIDGET(it), ic); if (eo_do(EO_OBJ(it), elm_wdg_item_disabled_get())) elm_widget_disabled_set(ic, EINA_TRUE); |