forked from enlightenment/efl
elm genlist: Mark TODO to moved function.
Change moved callback in item class to smart callback. SVN revision: 60717
This commit is contained in:
parent
653a395b4e
commit
321c4c8daf
|
@ -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;
|
||||
};
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue