Hi,
Currently items in genlist only support elm_object_item_part_text_get,
but not elm_object_item_part_text_set.
Here is a patch that adds that function.
I need to change the item text from time to time without reloading all
swallowed parts (without doing elm_genlist_item_update), thus
elm_object_item_part_text_set() is needed.
Please apply.
Thanks,
--
Raoul Hecky
Calaos
Index: src/lib/elm_genlist.c
===================================================================
--- src/lib/elm_genlist.c (révision 69996)
+++ src/lib/elm_genlist.c (copie de travail)
@@ -3664,13 +3664,19 @@
}
static const char *
-_item_text_hook(Elm_Gen_Item *it, const char *part)
+_item_text_get_hook(Elm_Gen_Item *it, const char *part)
{
if (!it->itc->func.text_get) return NULL;
return edje_object_part_text_get(VIEW(it), part);
}
static void
+_item_text_set_hook(Elm_Gen_Item *it, const char *part, const char *text)
+{
+ edje_object_part_text_set(VIEW(it), part, text);
+}
+
+static void
_item_disable_hook(Elm_Object_Item *it)
{
Eina_List *l;
@@ -3761,7 +3767,8 @@
elm_widget_item_content_get_hook_set(it, _item_content_get_hook);
elm_widget_item_content_set_hook_set(it, _item_content_set_hook);
elm_widget_item_content_unset_hook_set(it, _item_content_unset_hook);
- elm_widget_item_text_get_hook_set(it, _item_text_hook);
+ elm_widget_item_text_get_hook_set(it, _item_text_get_hook);
+ elm_widget_item_text_set_hook_set(it, _item_text_set_hook);
elm_widget_item_disable_hook_set(it, _item_disable_hook);
elm_widget_item_del_pre_hook_set(it, _item_del_pre_hook);
elm_widget_item_signal_emit_hook_set(it, _item_signal_emit_hook);
------------------------------------------------------------------------------
Better than sec? Nothing is better than sec when it comes to
monitoring Big Data applications. Try Boundary one-second
resolution app monitoring today. Free.
http://p.sf.net/sfu/Boundary-dev2dev
_______________________________________________
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel