Elementary elm_genlist.c: Code refactoring and indentation fix.
authorDaniel Juyung Seo <seojuyung2@gmail.com>
Tue, 29 Mar 2011 12:43:03 +0000 (12:43 +0000)
committerDaniel Juyung Seo <seojuyung2@gmail.com>
Tue, 29 Mar 2011 12:43:03 +0000 (12:43 +0000)
SVN revision: 58178

src/lib/elm_genlist.c

index b9d54cc416c6898d3d9e929e69ee0a13a791be85..3e5d2e322ffda2e8156f887215731947ad31a197 100644 (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
      {