forked from enlightenment/efl
elm genlist/gengrid: No need to call elm_widget_data_get() if we know it. it->wd is a widget data.
SVN revision: 64263
This commit is contained in:
parent
c0001ca741
commit
f596776217
|
@ -2857,7 +2857,7 @@ EAPI void
|
|||
elm_gengrid_item_show(Elm_Gen_Item *it)
|
||||
{
|
||||
ELM_WIDGET_ITEM_WIDTYPE_CHECK_OR_RETURN(it);
|
||||
Widget_Data *wd = elm_widget_data_get(WIDGET(it));
|
||||
Widget_Data *wd = it->wd;
|
||||
Evas_Coord minx = 0, miny = 0;
|
||||
|
||||
if (!wd) return;
|
||||
|
@ -2885,7 +2885,7 @@ elm_gengrid_item_bring_in(Elm_Gen_Item *it)
|
|||
if (it->delete_me) return;
|
||||
|
||||
Evas_Coord minx = 0, miny = 0;
|
||||
Widget_Data *wd = elm_widget_data_get(WIDGET(it));
|
||||
Widget_Data *wd = it->wd;
|
||||
if (!wd) return;
|
||||
_pan_min_get(wd->pan_smart, &minx, &miny);
|
||||
|
||||
|
|
|
@ -3975,7 +3975,7 @@ elm_genlist_item_selected_set(Elm_Gen_Item *it,
|
|||
Eina_Bool selected)
|
||||
{
|
||||
ELM_WIDGET_ITEM_WIDTYPE_CHECK_OR_RETURN(it);
|
||||
Widget_Data *wd = elm_widget_data_get(WIDGET(it));
|
||||
Widget_Data *wd = it->wd;
|
||||
if (!wd) return;
|
||||
if ((it->delete_me) || (it->disabled)) return;
|
||||
selected = !!selected;
|
||||
|
|
Loading…
Reference in New Issue