minh /= 2;
if ((adx > minw) || (ady > minh))
{
- it->dragging = 1;
+ it->dragging = EINA_TRUE;
if (it->long_timer)
{
ecore_timer_del(it->long_timer);
it->wd->on_hold = EINA_TRUE;
}
- it->down = 1;
- it->dragging = 0;
+ it->down = EINA_TRUE;
+ it->dragging = EINA_FALSE;
evas_object_geometry_get(obj, &x, &y, NULL, NULL);
it->dx = ev->canvas.x - x;
it->dy = ev->canvas.y - y;
Eina_Bool dragged = EINA_FALSE;
if (ev->button != 1) return;
- it->down = 0;
+ it->down = EINA_FALSE;
if (ev->event_flags & EVAS_EVENT_FLAG_ON_HOLD) it->wd->on_hold = EINA_TRUE;
else it->wd->on_hold = EINA_FALSE;
if (it->long_timer)
}
if (it->dragging)
{
- it->dragging = 0;
+ it->dragging = EINA_FALSE;
evas_object_smart_callback_call(it->base.widget, "drag,stop", it);
dragged = 1;
}
it->wd->longpressed = EINA_FALSE;
if (!it->wd->wasselected)
_item_unselect(it);
- it->wd->wasselected = 0;
+ it->wd->wasselected = EINA_FALSE;
return;
}
if (dragged)
it->want_unrealize = EINA_FALSE;
}
-static int
+static Eina_Bool
_item_block_recalc(Item_Block *itb,
int in,
int qadd,
const Eina_List *l;
Elm_Genlist_Item *it;
Evas_Coord minw = 0, minh = 0;
- int showme = 0, changed = 0;
+ Eina_Bool showme = EINA_FALSE, changed = EINA_FALSE;
Evas_Coord y = 0;
itb->num = in;
{
if (qadd)
{
- if (!it->mincalcd) changed = 1;
+ if (!it->mincalcd) changed = EINA_TRUE;
if (changed)
{
_item_realize(it, in, 1);
{
const Eina_List *l;
Elm_Genlist_Item *it;
- int dragging = 0;
+ Eina_Bool dragging = EINA_FALSE;
if (!itb->realized) return;
EINA_LIST_FOREACH(itb->items, l, it)
{
if (it->dragging)
{
- dragging = 1;
+ dragging = EINA_TRUE;
it->want_unrealize = EINA_TRUE;
}
else
EINA_INLIST_FOREACH(wd->blocks, itb)
{
- int showme = 0;
+ Eina_Bool showme = EINA_FALSE;
itb->num = in;
showme = itb->showme;
- itb->showme = 0;
+ itb->showme = EINA_FALSE;
if (chb)
{
if (itb->realized) _item_block_unrealize(itb);
in += itb->count;
if ((showme) && (wd->show_item))
{
- wd->show_item->showme = 0;
+ wd->show_item->showme = EINA_FALSE;
if (wd->bring_in)
elm_smart_scroller_region_bring_in(wd->scr,
wd->show_item->x +
itminw = it->w;
itminh = it->h;
- it->updateme = 0;
+ it->updateme = EINA_FALSE;
if (it->realized)
{
_item_unrealize(it);
}
num++;
}
- itb->updateme = 0;
+ itb->updateme = EINA_FALSE;
if (recalc)
{
position = 1;
_queue_proecess(Widget_Data *wd,
int norender)
{
- int n, showme = 0;
+ int n;
+ Eina_Bool showme = EINA_FALSE;
double t0, t;
t0 = ecore_time_get();
norender);
it->block->changed = 0;
}
- if (showme) it->block->showme = 1;
+ if (showme) it->block->showme = EINA_TRUE;
if (eina_inlist_count(wd->blocks) > 1)
{
if ((t - t0) > (ecore_animator_frametime_get())) break;
it->rel = it2;
it->rel->relcount++;
}
- it->before = 0;
+ it->before = EINA_FALSE;
_item_queue(wd, it);
return it;
}
printf("FIXME: 12 tree not handled yet\n");
}
it->rel = NULL;
- it->before = 1;
+ it->before = EINA_TRUE;
_item_queue(wd, it);
return it;
}
}
it->rel = before;
it->rel->relcount++;
- it->before = 1;
+ it->before = EINA_TRUE;
_item_queue(wd, it);
return it;
}
}
it->rel = after;
it->rel->relcount++;
- it->before = 0;
+ it->before = EINA_FALSE;
_item_queue(wd, it);
return it;
}
{
Elm_Genlist_Item *it;
- wd->clear_me = 1;
+ wd->clear_me = EINA_TRUE;
EINA_INLIST_FOREACH(wd->items, it)
{
- it->delete_me = 1;
+ it->delete_me = EINA_TRUE;
}
return;
}
- wd->clear_me = 0;
+ wd->clear_me = EINA_FALSE;
while (wd->items)
{
Elm_Genlist_Item *it = ELM_GENLIST_ITEM_FROM_INLIST(wd->items);
if ((it->queued) || (!it->mincalcd))
{
it->wd->show_item = it;
- it->wd->bring_in = 1;
+ it->wd->bring_in = EINA_TRUE;
it->showme = EINA_TRUE;
return;
}
if ((it->queued) || (!it->mincalcd))
{
it->wd->show_item = it;
- it->wd->bring_in = 1;
+ it->wd->bring_in = EINA_TRUE;
it->showme = EINA_TRUE;
return;
}
if ((it->queued) || (!it->mincalcd))
{
it->wd->show_item = it;
- it->wd->bring_in = 1;
+ it->wd->bring_in = EINA_TRUE;
it->showme = EINA_TRUE;
return;
}
if ((it->queued) || (!it->mincalcd))
{
it->wd->show_item = it;
- it->wd->bring_in = 1;
+ it->wd->bring_in = EINA_TRUE;
it->showme = EINA_TRUE;
return;
}
if ((it->queued) || (!it->mincalcd))
{
it->wd->show_item = it;
- it->wd->bring_in = 1;
+ it->wd->bring_in = EINA_TRUE;
it->showme = EINA_TRUE;
return;
}
if ((it->queued) || (!it->mincalcd))
{
it->wd->show_item = it;
- it->wd->bring_in = 1;
+ it->wd->bring_in = EINA_TRUE;
it->showme = EINA_TRUE;
return;
}