return ECORE_CALLBACK_CANCEL;
it->wd->longpressed = EINA_TRUE;
evas_object_smart_callback_call(WIDGET(it), SIG_LONGPRESSED, it);
- if ((it->wd->reorder_mode) && (it->item->flags != ELM_GENLIST_ITEM_GROUP))
+ if ((it->wd->reorder_mode) && (!it->group))
{
it->wd->reorder_it = it;
it->wd->reorder_start_y = 0;
for (it2 = it, depth = 0; it2->parent; it2 = it2->parent)
{
- if (it2->parent->item->flags != ELM_GENLIST_ITEM_GROUP) depth += 1;
+ if (!it2->parent->group) depth += 1;
}
it->item->expanded_depth = depth;
treesize = edje_object_data_get(VIEW(it), "treesize");
/* homogenous genlist shortcut */
if (!it->item->mincalcd)
{
- if (it->item->flags & ELM_GENLIST_ITEM_GROUP)
+ if (it->group)
{
it->item->w = it->item->minw = it->wd->group_item_width;
it->item->h = it->item->minh = it->wd->group_item_height;
it->item->h = it->item->minh = mh;
it->item->mincalcd = EINA_TRUE;
- if ((!it->wd->group_item_width) && (it->item->flags == ELM_GENLIST_ITEM_GROUP))
+ if ((!it->wd->group_item_width) && (it->group))
{
it->wd->group_item_width = mw;
it->wd->group_item_height = mh;
evas_event_freeze(evas_object_evas_get(itb->wd->obj));
EINA_LIST_FOREACH(itb->items, l, it)
{
- if (it->item->flags != ELM_GENLIST_ITEM_GROUP)
+ if (!it->group)
{
if (it->dragging)
{
vis = (ELM_RECTS_INTERSECT(it->item->scrl_x, it->item->scrl_y, it->item->w, it->item->h,
cvx, cvy, cvw, cvh));
- if (it->item->flags != ELM_GENLIST_ITEM_GROUP)
+ if (!it->group)
{
if ((itb->realized) && (!it->realized))
{
if (!it) return NULL;
if (!it->parent)
{
- if (flags & ELM_GENLIST_ITEM_GROUP)
+ if (it->group)
wd->group_items = eina_list_append(wd->group_items, it);
wd->items = eina_inlist_append(wd->items, EINA_INLIST_GET(it));
it->item->rel = NULL;
if (!it) return NULL;
if (!it->parent)
{
- if (flags & ELM_GENLIST_ITEM_GROUP)
+ if (it->group)
wd->group_items = eina_list_prepend(wd->group_items, it);
wd->items = eina_inlist_prepend(wd->items, EINA_INLIST_GET(it));
it->item->rel = NULL;
if (!it->parent)
{
- if ((flags & ELM_GENLIST_ITEM_GROUP) &&
- (after->item->flags & ELM_GENLIST_ITEM_GROUP))
+ if ((it->group) &&
+ (after->group))
wd->group_items = eina_list_append_relative(wd->group_items, it,
after);
}
if (!it->parent)
{
- if ((flags & ELM_GENLIST_ITEM_GROUP) &&
- (before->item->flags & ELM_GENLIST_ITEM_GROUP))
+ if (it->group && before->group)
wd->group_items = eina_list_prepend_relative(wd->group_items, it,
before);
}
wd->state = eina_inlist_sorted_state_new();
}
- if (flags & ELM_GENLIST_ITEM_GROUP)
+ if (it->group)
wd->group_items = eina_list_append(wd->group_items, it);
wd->items = eina_inlist_sorted_state_insert(wd->items, EINA_INLIST_GET(it),