Evas_Object *ic = elm_icon_add(obj);
if (!strcmp(part, "elm.swallow.icon"))
{
- if ((tit->mode & 0x3) == 0)
+ if (!(tit->mode & 0x3))
snprintf(buf, sizeof(buf), "%s/images/logo_small.png", PACKAGE_DATA_DIR);
else if ((tit->mode & 0x3) == 1)
snprintf(buf, sizeof(buf), "%s/images/logo.png", PACKAGE_DATA_DIR);
}
else if (!strcmp(part, "elm.swallow.end"))
{
- if ((tit->mode & 0x3) == 0)
+ if (!(tit->mode & 0x3))
snprintf(buf, sizeof(buf), "%s/images/sky_01.jpg", PACKAGE_DATA_DIR);
else if ((tit->mode & 0x3) == 1)
snprintf(buf, sizeof(buf), "%s/images/sky_02.jpg", PACKAGE_DATA_DIR);
evas_object_smart_callback_call(it->wd->obj, "selected", it);
it->walking--;
it->wd->walking--;
- if ((it->wd->clear_me) && (it->wd->walking == 0))
+ if ((it->wd->clear_me) && (!it->wd->walking))
elm_genlist_clear(it->wd->obj);
else
{
- if ((it->walking == 0) && (it->delete_me))
+ if ((!it->walking) && (it->delete_me))
{
- if (it->relcount == 0) _item_del(it);
+ if (!it->relcount) _item_del(it);
}
}
}
Evas_Event_Multi_Move *ev = event_info;
Evas_Coord acc_x, acc_y;
- if (it->wd->prev_multi_x == 0)
+ if (!it->wd->prev_multi_x)
{
it->wd->prev_multi_x = ev->cur.canvas.x;
it->wd->prev_multi_y = ev->cur.canvas.y;
// evas_object_hide(it->wd->point_rect);
if( it->wd->effect_mode && it->wd->pinchzoom_effect_mode != ELM_GENLIST_ITEM_PINCHZOOM_EFFECT_NONE) return;
- if (it->wd->multi_down == 0 && it->wd->multi_touch == EINA_TRUE)
+ if (!it->wd->multi_down && it->wd->multi_touch == EINA_TRUE)
{
if ( (it->wd->d1_x > 180) && (it->wd->d2_x > 180) )
{
it->h = it->minh = mh;
it->mincalcd = EINA_TRUE;
- if (in == 0 && it->wd->homogeneous)
+ if (!in && it->wd->homogeneous)
{
it->wd->item_width = mw;
it->wd->item_height = mh;
if (it->wd->ed)
{
- if (it != it->wd->ed->reorder_item && is_reorder && in > 0 && in % it->wd->max_items_per_block == 0 && !itb->reoder_y)
+ if (it != it->wd->ed->reorder_item && is_reorder && in > 0 && !(in % it->wd->max_items_per_block) && !itb->reoder_y)
{
itb->reoder_y -= it->h;
it->scrl_y = oy + itb->y + it->y - itb->wd->pan_y + itb->reoder_y;
}
- else if (it != it->wd->ed->reorder_item && is_reorder && in > 0 && in % it->wd->max_items_per_block == 0 && itb->reoder_y)
+ else if (it != it->wd->ed->reorder_item && is_reorder && in > 0 && !(in % it->wd->max_items_per_block) && itb->reoder_y)
{
itb->reoder_y = 0;
}
if (it->rel)
{
it->rel->relcount--;
- if ((it->rel->delete_me) && (it->rel->relcount == 0))
+ if ((it->rel->delete_me) && (!it->rel->relcount))
_item_del(it->rel);
it->rel = NULL;
}
it->wd->items = eina_inlist_remove(it->wd->items, EINA_INLIST_GET(it));
_item_block_del(it);
- if((!next_item && after->reorder_check == 0) || (next_item && after->reorder_check == 0) )
+ if((!next_item && !after->reorder_check) || (next_item && !after->reorder_check) )
{
- if(next_item && after->reorder_check == 0 && it == after) {
+ if(next_item && !after->reorder_check && it == after) {
it->wd->items = eina_inlist_append_relative(it->wd->items, EINA_INLIST_GET(it),
EINA_INLIST_GET(next_item));
it->rel = next_item;
{
EINA_LIST_FOREACH(itb->items, l, it)
{
- if(it->old_scrl_y == 0 )
+ if (!it->old_scrl_y)
it->old_scrl_y = it->scrl_y;
if(it->parent && it->parent->expanded && !it->showme)
{