seoz pushed a commit to branch master.
commit 15fdde8c117ef5557eb86d475dbeec2499719c54
Author: Daniel Juyung Seo <[email protected]>
Date: Fri Mar 29 23:03:29 2013 +0900
Recommit the code which was removed by commit
3f4c3e03c600c87782543cf08de886016f2c192e
---
src/lib/elm_genlist.c | 11 +++++++++++
1 file changed, 11 insertions(+)
diff --git a/src/lib/elm_genlist.c b/src/lib/elm_genlist.c
index 9af7f22..7ea4558 100644
--- a/src/lib/elm_genlist.c
+++ b/src/lib/elm_genlist.c
@@ -3499,12 +3499,20 @@ _item_block_new(Elm_Genlist_Smart_Data *sd,
return itb;
}
+/**
+ * @internal
+ *
+ * This function adds an item to a block's item list. This may or may not
+ * rearrange existing blocks and create a new block.
+ *
+ */
static Eina_Bool
_item_block_add(Elm_Genlist_Smart_Data *sd,
Elm_Gen_Item *it)
{
Item_Block *itb = NULL;
+ // when a new item does not depend on another item
if (!it->item->rel)
{
newblock:
@@ -3572,6 +3580,7 @@ newblock:
}
else
{
+ // item move_before, prepend, insert_before, sorted_insert with
before
if (it->item->before)
{
if (sd->blocks)
@@ -3592,6 +3601,7 @@ newblock:
_item_position_update(itb->items, 0);
}
+ // item move_after, append, insert_after, sorted_insert without
before
else
{
if (sd->blocks)
@@ -3613,6 +3623,7 @@ newblock:
}
}
}
+ // when a new item depends on another item
else
{
Eina_List *tmp;
--
------------------------------------------------------------------------------
Own the Future-Intel(R) Level Up Game Demo Contest 2013
Rise to greatness in Intel's independent game demo contest. Compete
for recognition, cash, and the chance to get your game on Steam.
$5K grand prize plus 10 genre and skill prizes. Submit your demo
by 6/6/13. http://altfarm.mediaplex.com/ad/ck/12124-176961-30367-2