elm_genlist.c: return "elm.text" part's text when the part parameter is null on _item...
authorDaniel Juyung Seo <juyung.seo@samsung.com>
Sat, 30 Nov 2013 08:02:24 +0000 (17:02 +0900)
committerDaniel Juyung Seo <juyung.seo@samsung.com>
Sat, 30 Nov 2013 08:02:24 +0000 (17:02 +0900)
Now elm_object_item_text_get() works fine.

legacy/elementary/src/lib/elm_genlist.c

index 5423370..19d76e3 100644 (file)
@@ -5217,7 +5217,10 @@ _item_text_get_hook(Elm_Gen_Item *it,
    else if (it->decorate_it_set)
      ret = edje_object_part_text_get(it->item->deco_it_view, part);
    if (!ret)
-     ret = edje_object_part_text_get(VIEW(it), part);
+     if (part)
+       ret = edje_object_part_text_get(VIEW(it), part);
+     else
+       ret = edje_object_part_text_get(VIEW(it), "elm.text");
    return ret;
 }