elm genlist: Removed elm_genlist_item_update() from
authorseoz <seoz@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Thu, 21 Jul 2011 07:10:17 +0000 (07:10 +0000)
committerseoz <seoz@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Thu, 21 Jul 2011 07:10:17 +0000 (07:10 +0000)
elm_genlist_item_data_set(). So please call elm_genlist_item_update()
when you need it.

git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/elementary@61546 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

src/lib/elm_genlist.c

index 2a4c7cf..c4137cd 100644 (file)
@@ -4777,9 +4777,9 @@ elm_genlist_item_del(Elm_Genlist_Item *it)
  * Set the data item from the genlist item
  *
  * This set the data value passed on the elm_genlist_item_append() and
- * related item addition calls. This function will also call
- * elm_genlist_item_update() so the item will be updated to reflect the
- * new data.
+ * related item addition calls. This function will not call
+ * elm_genlist_item_update() anymore. So call elm_genlist_item_update()
+ * manually only when it's needed.
  *
  * @param it The item
  * @param data The new data pointer to set
@@ -4792,7 +4792,6 @@ elm_genlist_item_data_set(Elm_Genlist_Item *it,
 {
    ELM_WIDGET_ITEM_WIDTYPE_CHECK_OR_RETURN(it);
    elm_widget_item_data_set(it, data);
-   elm_genlist_item_update(it);
 }
 
 /**