From 4df0e1fbf1bd7147b0641e18b416fe5471553e51 Mon Sep 17 00:00:00 2001 From: seoz Date: Mon, 5 Sep 2011 12:14:20 +0000 Subject: [PATCH] elm genlist: Fixed formatting. git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/elementary@63194 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33 --- src/lib/elm_genlist.c | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/src/lib/elm_genlist.c b/src/lib/elm_genlist.c index a127385..26f084a 100644 --- a/src/lib/elm_genlist.c +++ b/src/lib/elm_genlist.c @@ -938,10 +938,12 @@ _mouse_move(void *data, if (!it->wd->reorder_start_y) it->wd->reorder_start_y = it->block->y + it->y; - if (it_scrl_y < oy) y_pos = oy; - else if (it_scrl_y + it->wd->reorder_it->h > oy+oh) - y_pos = oy + oh - it->wd->reorder_it->h; - else y_pos = it_scrl_y; + if (it_scrl_y < oy) + y_pos = oy; + else if (it_scrl_y + it->wd->reorder_it->h > oy + oh) + y_pos = oy + oh - it->wd->reorder_it->h; + else + y_pos = it_scrl_y; _item_position(it, it->base.view, it->scrl_x, y_pos); @@ -2127,7 +2129,7 @@ _get_space_for_reorder_item(Elm_Genlist_Item *it) { it->block->reorder_offset = it->wd->reorder_it->h * -1; if (it->block->count == 1) - it->wd->reorder_rel = it; + it->wd->reorder_rel = it; } else if ((it->wd->reorder_start_y >= it->block->y) && (roy - oy + (roh / 2) <= it->block->y - it->wd->pan_y)) @@ -2246,7 +2248,7 @@ _item_block_position(Item_Block *itb, if (vis) { if (it->wd->reorder_mode) - y += _get_space_for_reorder_item(it); + y += _get_space_for_reorder_item(it); git = it->group_item; if (git) { -- 2.7.4