forked from enlightenment/efl
Elementary genlist: Removed internal routine in _item_block_realize().
Genlist items are realized separately. So block realize doesn't mean realizing all items in the block. This function and _item_block_unrealize() will be refactored later again. SVN revision: 60085
This commit is contained in:
parent
05e9808e0c
commit
65a345438e
|
@ -2219,25 +2219,11 @@ _item_block_recalc(Item_Block *itb,
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
_item_block_realize(Item_Block *itb,
|
_item_block_realize(Item_Block *itb)
|
||||||
int in,
|
|
||||||
int full)
|
|
||||||
{
|
{
|
||||||
const Eina_List *l;
|
|
||||||
Elm_Genlist_Item *it;
|
|
||||||
|
|
||||||
if (itb->realized) return;
|
if (itb->realized) return;
|
||||||
evas_event_freeze(evas_object_evas_get(itb->wd->obj));
|
|
||||||
EINA_LIST_FOREACH(itb->items, l, it)
|
|
||||||
{
|
|
||||||
if (it->delete_me) continue;
|
|
||||||
if (full) _item_realize(it, in, EINA_FALSE);
|
|
||||||
in++;
|
|
||||||
}
|
|
||||||
itb->realized = EINA_TRUE;
|
itb->realized = EINA_TRUE;
|
||||||
itb->want_unrealize = EINA_FALSE;
|
itb->want_unrealize = EINA_FALSE;
|
||||||
evas_event_thaw(evas_object_evas_get(itb->wd->obj));
|
|
||||||
evas_event_thaw_eval(evas_object_evas_get(itb->wd->obj));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
@ -2871,7 +2857,7 @@ _pan_calculate(Evas_Object *obj)
|
||||||
cvx, cvy, cvw, cvh))
|
cvx, cvy, cvw, cvh))
|
||||||
{
|
{
|
||||||
if ((!itb->realized) || (itb->changed))
|
if ((!itb->realized) || (itb->changed))
|
||||||
_item_block_realize(itb, in, 0);
|
_item_block_realize(itb);
|
||||||
_item_block_position(itb, in);
|
_item_block_position(itb, in);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in New Issue