Elementary elm_genlist.c: Code refactoring and indentation fix.

SVN revision: 58178
This commit is contained in:
Daniel Juyung Seo 2011-03-29 12:43:03 +00:00
parent 9f7b0fe79a
commit d0fa2c13ad
1 changed files with 14 additions and 12 deletions

View File

@ -1753,18 +1753,20 @@ _item_realize(Elm_Genlist_Item *it,
if ((calc) && (it->wd->homogeneous) && ((it->wd->item_width) || ((it->wd->item_width) && (it->wd->group_item_width))))
{
/* homogenous genlist shortcut */
if ((it->flags & ELM_GENLIST_ITEM_GROUP) && (!it->mincalcd))
{
it->w = it->minw = it->wd->group_item_width;
it->h = it->minh = it->wd->group_item_height;
it->mincalcd = EINA_TRUE;
}
else if (!it->mincalcd)
{
it->w = it->minw = it->wd->item_width;
it->h = it->minh = it->wd->item_height;
it->mincalcd = EINA_TRUE;
}
if (!it->mincalcd)
{
if (it->flags & ELM_GENLIST_ITEM_GROUP)
{
it->w = it->minw = it->wd->group_item_width;
it->h = it->minh = it->wd->group_item_height;
}
else
{
it->w = it->minw = it->wd->item_width;
it->h = it->minh = it->wd->item_height;
}
it->mincalcd = EINA_TRUE;
}
}
else
{