From da6fb65d97fe0dd4d9f834585977e7c7135c6933 Mon Sep 17 00:00:00 2001 From: Seunggyun Kim Date: Mon, 11 Apr 2011 18:19:35 +0900 Subject: [PATCH] [elm_genlist.c] fix reorder bug Change-Id: I27452163a972b1bb99eb5c1c46d27a9b60f63bcc --- src/lib/elm_genlist.c | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/src/lib/elm_genlist.c b/src/lib/elm_genlist.c index f451ce1..a2bd972 100644 --- a/src/lib/elm_genlist.c +++ b/src/lib/elm_genlist.c @@ -1592,9 +1592,9 @@ _mouse_up(void *data, if (it->wd->reorder_it->parent == it->wd->reorder_rel->parent) // todo : refactoring { if (roy + oy <= it->wd->reorder_rel->scrl_y) - _effect_item_move_before(it->wd->reorder_it, it->wd->reorder_rel); - else _effect_item_move_after(it->wd->reorder_it, it->wd->reorder_rel); + else + _effect_item_move_before(it->wd->reorder_it, it->wd->reorder_rel); } } it->wd->reorder_deleted = EINA_FALSE; @@ -6128,11 +6128,11 @@ elm_genlist_edit_item_selected_get(const Elm_Genlist_Item *it) */ EAPI void elm_genlist_item_rename_mode_set(Elm_Genlist_Item *it, Eina_Bool renamed) - { +{ if (!it) return; if (renamed) - { + { _item_unrealize(it); it->renamed = EINA_TRUE; it->wd->rename_it = it; @@ -6141,19 +6141,19 @@ elm_genlist_item_rename_mode_set(Elm_Genlist_Item *it, Eina_Bool renamed) if (it->wd->calc_job) ecore_job_del(it->wd->calc_job); it->wd->calc_job = ecore_job_add(_calc_job, it->wd); - } - else - { + } + else + { if (it->renamed) - { + { it->renamed = EINA_FALSE; it->nocache = EINA_TRUE; it->wd->rename_it = NULL; _item_cache_zero(it->wd); elm_genlist_item_update(it); - } } } +} EAPI Eina_Bool elm_genlist_item_rename_mode_get(Elm_Genlist_Item *item) -- 2.7.4