[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[core/elementary] master 01/01: elementary: allow custom text part on item list



yoz pushed a commit to branch master.

commit 5414fdba3c874451b43e0994df897bb3705b1f2d
Author: Michaël Bouchaud (yoz) <yoz@efl.so>
Date:   Mon Sep 16 12:18:24 2013 +0200

    elementary: allow custom text part on item list
---
 src/lib/elm_list.c | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/src/lib/elm_list.c b/src/lib/elm_list.c
index e193fdf..72d3e9f 100644
--- a/src/lib/elm_list.c
+++ b/src/lib/elm_list.c
@@ -1405,7 +1405,11 @@ _item_text_set_hook(Elm_Object_Item *it,
 {
    Elm_List_Item *list_it = (Elm_List_Item *)it;
 
-   if (part && strcmp(part, "default")) return;
+   if (part && strcmp(part, "default"))
+     {
+        edje_object_part_text_escaped_set(VIEW(list_it), part, text);
+        return;
+     }
    if (!eina_stringshare_replace(&list_it->label, text)) return;
    if (VIEW(list_it))
      edje_object_part_text_escaped_set(VIEW(list_it), "elm.text", text);

--