elm genlist: Mark TODO to moved function.

Change moved callback in item class to smart callback.


SVN revision: 60717
This commit is contained in:
Daniel Juyung Seo 2011-06-27 03:06:33 +00:00
parent 653a395b4e
commit 321c4c8daf
2 changed files with 3 additions and 1 deletions

View File

@ -3609,7 +3609,7 @@ extern "C" {
GenlistItemIconGetFunc icon_get;
GenlistItemStateGetFunc state_get;
GenlistItemDelFunc del;
GenlistItemMovedFunc moved;
GenlistItemMovedFunc moved; // TODO: do not use this. change this to smart callback.
} func;
const char *mode_item_style;
};

View File

@ -3517,6 +3517,7 @@ _item_move_after(Elm_Genlist_Item *it, Elm_Genlist_Item *after)
if (after->group_item) it->group_item = after->group_item;
_item_queue(it->wd, it);
// TODO: change this to smart callback
if (it->itc->func.moved)
it->itc->func.moved(it->base.widget, it, after, EINA_TRUE);
}
@ -3536,6 +3537,7 @@ _item_move_before(Elm_Genlist_Item *it, Elm_Genlist_Item *before)
if (before->group_item) it->group_item = before->group_item;
_item_queue(it->wd, it);
// TODO: change this to smart callback
if (it->itc->func.moved)
it->itc->func.moved(it->base.widget, it, before, EINA_FALSE);
}