elm gengrid: Removed elm_gengrid_item_update() from elm_gengrid_item_data_set(). So please call elm_gengrid_item_update() when you need it.

This change is same as a genlist change in the following link.
http://www.mail-archive.com/enlightenment-devel@lists.sourceforge.net/msg33855.html


SVN revision: 61674
This commit is contained in:
Daniel Juyung Seo 2011-07-25 09:02:41 +00:00
parent 804a13f2dd
commit aa0bd38522
1 changed files with 3 additions and 4 deletions

View File

@ -2355,9 +2355,9 @@ elm_gengrid_item_data_get(const Elm_Gengrid_Item *item)
* Set the data item from the gengrid item * Set the data item from the gengrid item
* *
* This sets the data value passed on the elm_gengrid_item_append() and * This sets the data value passed on the elm_gengrid_item_append() and
* related item addition calls. This function will also call * related item addition calls. This function will not call
* elm_gengrid_item_update() so the item will be updated to reflect * elm_gengrid_item_update() anymore. So call elm_gengrid_item_update()
* the new data. * manually only when it's needed.
* *
* @param item The item * @param item The item
* @param data The new data pointer to set * @param data The new data pointer to set
@ -2370,7 +2370,6 @@ elm_gengrid_item_data_set(Elm_Gengrid_Item *item,
{ {
ELM_WIDGET_ITEM_WIDTYPE_CHECK_OR_RETURN(item); ELM_WIDGET_ITEM_WIDTYPE_CHECK_OR_RETURN(item);
elm_widget_item_data_set(item, data); elm_widget_item_data_set(item, data);
elm_gengrid_item_update(item);
} }
EAPI const Elm_Gengrid_Item_Class * EAPI const Elm_Gengrid_Item_Class *