forked from enlightenment/efl
elm gengrid: Fixed wrong _calc_job parameter. Patch by Bluezery <ohpowel@gmail.com>
On Fri, Oct 19, 2012 at 12:30 PM, Bluezery <ohpowel@gmail.com> wrote: > Dear all, > > There is a bug, invalid data assign into ecore_job. > Trivial whilte space removal is included also. it's automated in my editor :D. > > Please review this patch. > > -- > BRs, > Kim. SVN revision: 78221
This commit is contained in:
parent
0474ed0f3f
commit
4e49a5f52e
|
@ -1161,7 +1161,7 @@ _item_place(Elm_Gen_Item *it,
|
||||||
if (wsd->calc_job)
|
if (wsd->calc_job)
|
||||||
ecore_job_del(wsd->calc_job);
|
ecore_job_del(wsd->calc_job);
|
||||||
wsd->calc_job =
|
wsd->calc_job =
|
||||||
ecore_job_add(_calc_job, WIDGET(it));
|
ecore_job_add(_calc_job, wsd);
|
||||||
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
@ -2362,14 +2362,14 @@ static void
|
||||||
_access_obj_process(Elm_Gengrid_Smart_Data * sd, Eina_Bool is_access)
|
_access_obj_process(Elm_Gengrid_Smart_Data * sd, Eina_Bool is_access)
|
||||||
{
|
{
|
||||||
Elm_Gen_Item *it;
|
Elm_Gen_Item *it;
|
||||||
|
|
||||||
EINA_INLIST_FOREACH(sd->items, it)
|
EINA_INLIST_FOREACH(sd->items, it)
|
||||||
{
|
{
|
||||||
if (!it->realized) continue;
|
if (!it->realized) continue;
|
||||||
if (is_access) _access_widget_item_register(it);
|
if (is_access) _access_widget_item_register(it);
|
||||||
else
|
else
|
||||||
_elm_access_widget_item_unregister((Elm_Widget_Item *)it);
|
_elm_access_widget_item_unregister((Elm_Widget_Item *)it);
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -2378,13 +2378,13 @@ _access_hook(Evas_Object *obj, Eina_Bool is_access)
|
||||||
{
|
{
|
||||||
ELM_GENGRID_CHECK(obj);
|
ELM_GENGRID_CHECK(obj);
|
||||||
ELM_GENGRID_DATA_GET(obj, sd);
|
ELM_GENGRID_DATA_GET(obj, sd);
|
||||||
|
|
||||||
if (is_access)
|
if (is_access)
|
||||||
ELM_WIDGET_CLASS(ELM_WIDGET_DATA(sd)->api)->focus_next =
|
ELM_WIDGET_CLASS(ELM_WIDGET_DATA(sd)->api)->focus_next =
|
||||||
_elm_gengrid_smart_focus_next;
|
_elm_gengrid_smart_focus_next;
|
||||||
else
|
else
|
||||||
ELM_WIDGET_CLASS(ELM_WIDGET_DATA(sd)->api)->focus_next = NULL;
|
ELM_WIDGET_CLASS(ELM_WIDGET_DATA(sd)->api)->focus_next = NULL;
|
||||||
|
|
||||||
_access_obj_process(sd, is_access);
|
_access_obj_process(sd, is_access);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue