[elm_genlist.c] Refactoring.
authorDaniel Juyung Seo <juyung.seo@samsung.com>
Tue, 9 Nov 2010 07:40:20 +0000 (16:40 +0900)
committerDaniel Juyung Seo <juyung.seo@samsung.com>
Tue, 9 Nov 2010 07:40:20 +0000 (16:40 +0900)
  + Modified indentation according to open source SVN.

src/lib/elm_genlist.c

index f440e90..8c7c3c5 100644 (file)
@@ -2061,57 +2061,55 @@ _calc_job(void *data)
                                 showme = _item_block_recalc(itb, in, 0, 1);
                                 chb = itb;
                         }
-                 itb->y = y;
-                 itb->x = 0;
-                 minh += itb->minh;
-                 if (minw == -1) minw = itb->minw;
-                 else if (minw < itb->minw)
-                        {
-                                minw = itb->minw;
-                                minw_change = 1;
-                        }
-                 itb->w = minw;
-                 itb->h = itb->minh;
-                 y += itb->h;
-                 in += itb->count;
-                 if (showme)
-                        {
-                                if(wd->show_item) 
-                                       {
-                                               wd->show_item->showme = 0;
-                                               if (wd->bring_in)
-                                                 elm_smart_scroller_region_bring_in(wd->scr,
-                                                                 wd->show_item->x + wd->show_item->block->x,
-                                                                 wd->show_item->y + wd->show_item->block->y,
-                                                                 wd->show_item->block->w,
-                                                                 wd->show_item->h);
-                                               else
-                                                 elm_smart_scroller_child_region_show(wd->scr,
-                                                                 wd->show_item->x + wd->show_item->block->x,
-                                                                 wd->show_item->y + wd->show_item->block->y,
-                                                                 wd->show_item->block->w,
-                                                                 wd->show_item->h);
-                                               wd->show_item = NULL;
-                                       }
-                        }
-         }
-
-       if (minw_change)
-         {
-                 EINA_INLIST_FOREACH(wd->blocks, itb)
-                        {
-                                itb->minw = minw;
-                                itb->w = itb->minw;
-                        }
-         }
-       if ((chb) && (EINA_INLIST_GET(chb)->next))
-         {
-                 EINA_INLIST_FOREACH(EINA_INLIST_GET(chb)->next, itb)
-                         if (itb->realized) _item_block_unrealize(itb);
-         }
-       evas_object_geometry_get(wd->pan_smart, NULL, NULL, &ow, &oh);
-       if (minw < ow) minw = ow;
-       if ((minw != wd->minw) || (minh != wd->minh) || wd->select_all_item)
+        itb->y = y;
+        itb->x = 0;
+        minh += itb->minh;
+        if (minw == -1) minw = itb->minw;
+        else if (minw < itb->minw)
+          {
+             minw = itb->minw;
+             minw_change = 1;
+          }
+        itb->w = minw;
+        itb->h = itb->minh;
+        y += itb->h;
+        in += itb->count;
+        if ((showme) && (wd->show_item))
+          {
+             wd->show_item->showme = 0;
+             if (wd->bring_in)
+               elm_smart_scroller_region_bring_in(wd->scr,
+                                                  wd->show_item->x + wd->show_item->block->x,
+                                                  wd->show_item->y + wd->show_item->block->y,
+                                                  wd->show_item->block->w,
+                                                  wd->show_item->h);
+             else
+               elm_smart_scroller_child_region_show(wd->scr,
+                                                    wd->show_item->x + wd->show_item->block->x,
+                                                    wd->show_item->y + wd->show_item->block->y,
+                                                    wd->show_item->block->w,
+                                                    wd->show_item->h);
+             wd->show_item = NULL;
+          }
+     }
+   if (minw_change)
+     {
+        EINA_INLIST_FOREACH(wd->blocks, itb)
+          {
+             itb->minw = minw;
+             itb->w = itb->minw;
+          }
+     }
+   if ((chb) && (EINA_INLIST_GET(chb)->next))
+     {
+        EINA_INLIST_FOREACH(EINA_INLIST_GET(chb)->next, itb)
+          {
+             if (itb->realized) _item_block_unrealize(itb);
+          }
+     }
+   evas_object_geometry_get(wd->pan_smart, NULL, NULL, &ow, &oh);
+   if (minw < ow) minw = ow;
+   if ((minw != wd->minw) || (minh != wd->minh) || wd->select_all_item)
      {
         wd->minw = minw;
         wd->minh = minh;