elm genlist: Mark TODO to moved function.
authorseoz <seoz@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Mon, 27 Jun 2011 03:06:33 +0000 (03:06 +0000)
committerseoz <seoz@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Mon, 27 Jun 2011 03:06:33 +0000 (03:06 +0000)
Change moved callback in item class to smart callback.

git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/elementary@60717 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

src/lib/Elementary.h.in
src/lib/elm_genlist.c

index 81703b4..064cc6c 100644 (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;
      };
index c3358de..df23ff8 100644 (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);
 }