The more panel should be changed when the theme is changed.
[framework/uifw/elementary.git] / src / lib / elm_list.c
index 819f939..d370baa 100644 (file)
@@ -5,27 +5,29 @@
 #define SWIPE_MOVES 12
 
 typedef struct _Widget_Data Widget_Data;
+typedef struct _Elm_List_Item Elm_List_Item;
 
 struct _Widget_Data
 {
    Evas_Object *scr, *box, *self;
    Eina_List *items, *selected, *to_delete;
-   Elm_List_Item *last_selected_item;
+   Elm_Object_Item *last_selected_item;
    Elm_List_Mode mode;
    Elm_List_Mode h_mode;
    Evas_Coord minw[2], minh[2];
-   Eina_Bool scr_minw : 1;
-   Eina_Bool scr_minh : 1;
+   Elm_Object_Select_Mode select_mode;
    int walking;
    int movements;
-   struct {
+   struct
+     {
         Evas_Coord x, y;
-   } history[SWIPE_MOVES];
+     } history[SWIPE_MOVES];
+   Eina_Bool scr_minw : 1;
+   Eina_Bool scr_minh : 1;
    Eina_Bool swipe : 1;
    Eina_Bool fix_pending : 1;
    Eina_Bool on_hold : 1;
    Eina_Bool multi : 1;
-   Eina_Bool always_select : 1;
    Eina_Bool longpressed : 1;
    Eina_Bool wasselected : 1;
 };
@@ -101,8 +103,8 @@ static const Evas_Smart_Cb_Description _signals[] = {
 };
 
 #define ELM_LIST_ITEM_CHECK_DELETED_RETURN(it, ...)                      \
-   ELM_WIDGET_ITEM_WIDTYPE_CHECK_OR_RETURN(it, __VA_ARGS__);             \
-if (it->deleted)                                                         \
+   ELM_OBJ_ITEM_CHECK_OR_RETURN(it, __VA_ARGS__);                        \
+if (((Elm_List_Item *)it)->deleted)                                     \
 {                                                                        \
    ERR("ERROR: "#it" has been DELETED.\n");                              \
    return __VA_ARGS__;                                                   \
@@ -131,11 +133,11 @@ _elm_list_item_free(Elm_List_Item *it)
    eina_stringshare_del(it->label);
 
    if (it->swipe_timer) ecore_timer_del(it->swipe_timer);
+   it->swipe_timer = NULL;
    if (it->long_timer) ecore_timer_del(it->long_timer);
+   it->long_timer = NULL;
    if (it->icon) evas_object_del(it->icon);
    if (it->end) evas_object_del(it->end);
-
-   elm_widget_item_del(it);
 }
 
 static Eina_Bool
@@ -166,7 +168,7 @@ _event_hook(Evas_Object *obj, Evas_Object *src __UNUSED__, Evas_Callback_Type ty
 
    /* TODO: fix logic for horizontal mode */
    if ((!strcmp(ev->keyname, "Left")) ||
-       (!strcmp(ev->keyname, "KP_Left")))
+       ((!strcmp(ev->keyname, "KP_Left")) && !ev->string))
      {
         if ((wd->h_mode) &&
             (((evas_key_modifier_is_set(ev->modifiers, "Shift")) &&
@@ -180,7 +182,7 @@ _event_hook(Evas_Object *obj, Evas_Object *src __UNUSED__, Evas_Callback_Type ty
           x -= step_x;
      }
    else if ((!strcmp(ev->keyname, "Right")) ||
-            (!strcmp(ev->keyname, "KP_Right")))
+            ((!strcmp(ev->keyname, "KP_Right")) && !ev->string))
      {
         if ((wd->h_mode) &&
             (((evas_key_modifier_is_set(ev->modifiers, "Shift")) &&
@@ -194,7 +196,7 @@ _event_hook(Evas_Object *obj, Evas_Object *src __UNUSED__, Evas_Callback_Type ty
           x += step_x;
      }
    else if ((!strcmp(ev->keyname, "Up"))  ||
-            (!strcmp(ev->keyname, "KP_Up")))
+            ((!strcmp(ev->keyname, "KP_Up")) && !ev->string))
      {
         if ((!wd->h_mode) &&
             (((evas_key_modifier_is_set(ev->modifiers, "Shift")) &&
@@ -208,7 +210,7 @@ _event_hook(Evas_Object *obj, Evas_Object *src __UNUSED__, Evas_Callback_Type ty
           y -= step_y;
      }
    else if ((!strcmp(ev->keyname, "Down")) ||
-            (!strcmp(ev->keyname, "KP_Down")))
+            ((!strcmp(ev->keyname, "KP_Down")) && !ev->string))
      {
         if ((!wd->h_mode) &&
             (((evas_key_modifier_is_set(ev->modifiers, "Shift")) &&
@@ -222,23 +224,23 @@ _event_hook(Evas_Object *obj, Evas_Object *src __UNUSED__, Evas_Callback_Type ty
           y += step_y;
      }
    else if ((!strcmp(ev->keyname, "Home")) ||
-            (!strcmp(ev->keyname, "KP_Home")))
+            ((!strcmp(ev->keyname, "KP_Home")) && !ev->string))
      {
         it = eina_list_data_get(wd->items);
-        elm_list_item_bring_in(it);
+        elm_list_item_bring_in((Elm_Object_Item *)it);
         ev->event_flags |= EVAS_EVENT_FLAG_ON_HOLD;
         return EINA_TRUE;
      }
    else if ((!strcmp(ev->keyname, "End")) ||
-            (!strcmp(ev->keyname, "KP_End")))
+            ((!strcmp(ev->keyname, "KP_End")) && !ev->string))
      {
         it = eina_list_data_get(eina_list_last(wd->items));
-        elm_list_item_bring_in(it);
+        elm_list_item_bring_in((Elm_Object_Item *)it);
         ev->event_flags |= EVAS_EVENT_FLAG_ON_HOLD;
         return EINA_TRUE;
      }
    else if ((!strcmp(ev->keyname, "Prior")) ||
-            (!strcmp(ev->keyname, "KP_Prior")))
+            ((!strcmp(ev->keyname, "KP_Prior")) && !ev->string))
      {
         if (wd->h_mode)
           {
@@ -256,7 +258,7 @@ _event_hook(Evas_Object *obj, Evas_Object *src __UNUSED__, Evas_Callback_Type ty
           }
      }
    else if ((!strcmp(ev->keyname, "Next")) ||
-            (!strcmp(ev->keyname, "KP_Next")))
+            ((!strcmp(ev->keyname, "KP_Next")) && !ev->string))
      {
         if (wd->h_mode)
           {
@@ -278,7 +280,7 @@ _event_hook(Evas_Object *obj, Evas_Object *src __UNUSED__, Evas_Callback_Type ty
             (!strcmp(ev->keyname, "space")))
            && (!wd->multi) && (wd->selected))
      {
-        it = elm_list_selected_item_get(obj);
+        it = (Elm_List_Item *) elm_list_selected_item_get(obj);
         evas_object_smart_callback_call(WIDGET(it), SIG_ACTIVATED, it);
      }
    else if (!strcmp(ev->keyname, "Escape"))
@@ -305,7 +307,8 @@ _deselect_all_items(Widget_Data *wd)
 {
    if (!wd->selected) return EINA_FALSE;
    while (wd->selected)
-     elm_list_item_selected_set(wd->selected->data, EINA_FALSE);
+     elm_list_item_selected_set((Elm_Object_Item *) wd->selected->data,
+                                EINA_FALSE);
 
    return EINA_TRUE;
 }
@@ -316,7 +319,7 @@ _item_multi_select_up(Widget_Data *wd)
    if (!wd->selected) return EINA_FALSE;
    if (!wd->multi) return EINA_FALSE;
 
-   Elm_List_Item *prev = elm_list_item_prev(wd->last_selected_item);
+   Elm_Object_Item *prev = elm_list_item_prev(wd->last_selected_item);
    if (!prev) return EINA_TRUE;
 
    if (elm_list_item_selected_get(prev))
@@ -339,7 +342,7 @@ _item_multi_select_down(Widget_Data *wd)
    if (!wd->selected) return EINA_FALSE;
    if (!wd->multi) return EINA_FALSE;
 
-   Elm_List_Item *next = elm_list_item_next(wd->last_selected_item);
+   Elm_Object_Item *next = elm_list_item_next(wd->last_selected_item);
    if (!next) return EINA_TRUE;
 
    if (elm_list_item_selected_get(next))
@@ -359,11 +362,10 @@ _item_multi_select_down(Widget_Data *wd)
 static Eina_Bool
 _item_single_select_up(Widget_Data *wd)
 {
-   Elm_List_Item *prev;
+   Elm_Object_Item *prev;
 
    if (!wd->selected) prev = eina_list_data_get(eina_list_last(wd->items));
    else prev = elm_list_item_prev(wd->last_selected_item);
-
    if (!prev) return EINA_FALSE;
 
    _deselect_all_items(wd);
@@ -376,11 +378,10 @@ _item_single_select_up(Widget_Data *wd)
 static Eina_Bool
 _item_single_select_down(Widget_Data *wd)
 {
-   Elm_List_Item *next;
+   Elm_Object_Item *next;
 
    if (!wd->selected) next = eina_list_data_get(wd->items);
    else next = elm_list_item_next(wd->last_selected_item);
-
    if (!next) return EINA_FALSE;
 
    _deselect_all_items(wd);
@@ -399,10 +400,9 @@ _elm_list_process_deletions(Widget_Data *wd)
 
    EINA_LIST_FREE(wd->to_delete, it)
      {
-        elm_widget_item_pre_notify_del(it);
-
         wd->items = eina_list_remove_list(wd->items, it->node);
         _elm_list_item_free(it);
+        elm_widget_item_free(it);
      }
 
    wd->walking--;
@@ -447,8 +447,25 @@ static void
 _del_pre_hook(Evas_Object *obj)
 {
    Widget_Data *wd = elm_widget_data_get(obj);
+   const Eina_List *l;
+   Elm_List_Item *it;
+
+   evas_object_smart_callback_del(obj, "sub-object-del", _sub_del);
+
    if (!wd) return;
 
+   EINA_LIST_FOREACH(wd->items, l, it)
+     {
+        if (it->icon)
+           evas_object_event_callback_del(it->icon,
+                                          EVAS_CALLBACK_CHANGED_SIZE_HINTS,
+                                          _changed_size_hints);
+        if (it->end)
+           evas_object_event_callback_del(it->end,
+                                          EVAS_CALLBACK_CHANGED_SIZE_HINTS,
+                                          _changed_size_hints);
+     }
+
    evas_object_event_callback_del(wd->scr,
                                   EVAS_CALLBACK_CHANGED_SIZE_HINTS,
                                   _changed_size_hints);
@@ -474,7 +491,11 @@ _del_hook(Evas_Object *obj)
    if (wd->to_delete)
      ERR("ERROR: leaking nodes!\n");
 
-   EINA_LIST_FREE(wd->items, it) _elm_list_item_free(it);
+   EINA_LIST_FREE(wd->items, it)
+     {
+        _elm_list_item_free(it);
+        elm_widget_item_free(it);
+     }
    eina_list_free(wd->selected);
    free(wd);
 }
@@ -701,7 +722,8 @@ _item_highlight(Elm_List_Item *it)
 
    if (!wd) return;
    ELM_LIST_ITEM_CHECK_DELETED_RETURN(it);
-   if ((it->highlighted) || (it->base.disabled)) return;
+   if ((it->highlighted) || (it->base.disabled) ||
+       (wd->select_mode == ELM_OBJECT_SELECT_MODE_NONE)) return;
 
    evas_object_ref(obj);
    _elm_list_walk(wd);
@@ -724,10 +746,10 @@ _item_select(Elm_List_Item *it)
 
    if (!wd) return;
    ELM_LIST_ITEM_CHECK_DELETED_RETURN(it);
-   if (it->base.disabled) return;
+   if (it->base.disabled || (wd->select_mode == ELM_OBJECT_SELECT_MODE_NONE)) return;
    if (it->selected)
      {
-        if (wd->always_select) goto call;
+        if (wd->select_mode == ELM_OBJECT_SELECT_MODE_ALWAYS) goto call;
         return;
      }
    it->selected = EINA_TRUE;
@@ -739,7 +761,7 @@ call:
 
    if (it->func) it->func((void *)it->base.data, WIDGET(it), it);
    evas_object_smart_callback_call(obj, SIG_SELECTED, it);
-   it->wd->last_selected_item = it;
+   it->wd->last_selected_item = (Elm_Object_Item *)it;
 
    _elm_list_unwalk(wd);
    evas_object_unref(obj);
@@ -1020,13 +1042,141 @@ _mouse_up(void *data, Evas *evas __UNUSED__, Evas_Object *obj __UNUSED__, void *
 }
 
 static void
-_item_disable(void *data)
+_item_disable(Elm_Object_Item *it)
 {
-   Elm_List_Item *it = data;
-   if (it->base.disabled)
-     edje_object_signal_emit(VIEW(it), "elm,state,disabled", "elm");
+   Elm_List_Item *item = (Elm_List_Item *)it;
+   if (item->base.disabled)
+     edje_object_signal_emit(VIEW(item), "elm,state,disabled", "elm");
+   else
+     edje_object_signal_emit(VIEW(item), "elm,state,enabled", "elm");
+}
+
+static void
+_item_content_set_hook(Elm_Object_Item *it, const char *part, Evas_Object *content)
+{
+   Elm_List_Item *item = (Elm_List_Item *)it;
+   Evas_Object **icon_p = NULL;
+   Eina_Bool dummy = EINA_FALSE;
+
+   if ((!part) || (!strcmp(part, "start")))
+     {
+        icon_p = &(item->icon);
+        dummy = item->dummy_icon;
+        if (!content) item->dummy_icon = EINA_TRUE;
+        else item->dummy_icon = EINA_FALSE;
+     }
+   else if (!strcmp(part, "end"))
+     {
+        icon_p = &(item->end);
+        dummy = item->dummy_end;
+        if (!content) item->dummy_end = EINA_TRUE;
+        else item->dummy_end = EINA_FALSE;
+     }
    else
-     edje_object_signal_emit(VIEW(it), "elm,state,enabled", "elm");
+     return;
+
+   if (content == *icon_p) return;
+   if ((dummy) && (!content)) return;
+   if (dummy) evas_object_del(*icon_p);
+   if (!content)
+     {
+        content = evas_object_rectangle_add(evas_object_evas_get(WIDGET(item)));
+        evas_object_color_set(content, 0, 0, 0, 0);
+     }
+   if (*icon_p)
+     {
+        evas_object_del(*icon_p);
+        *icon_p = NULL;
+     }
+   *icon_p = content;
+   if (VIEW(item))
+     edje_object_part_swallow(VIEW(item), "elm.swallow.icon", content);
+}
+
+static Evas_Object *
+_item_content_get_hook(const Elm_Object_Item *it, const char *part)
+{
+   Elm_List_Item *item = (Elm_List_Item *)it;
+
+   if ((!part) || (!strcmp(part, "start")))
+     {
+        if (item->dummy_icon) return NULL;
+        return item->icon;
+     }
+   else if (!strcmp(part, "end"))
+     {
+        if (item->dummy_end) return NULL;
+        return item->end;
+     }
+   return NULL;
+}
+
+static Evas_Object *
+_item_content_unset_hook(const Elm_Object_Item *it, const char *part)
+{
+   Elm_List_Item *item = (Elm_List_Item *)it;
+
+   if ((!part) || (!strcmp(part, "start")))
+     {
+        Evas_Object *obj = item->icon;
+        _item_content_set_hook((Elm_Object_Item *)it, part, NULL);
+        return obj;
+     }
+   else if (!strcmp(part, "end"))
+     {
+        Evas_Object *obj = item->end;
+        _item_content_set_hook((Elm_Object_Item *)it, part, NULL);
+        return obj;
+     }
+   return NULL;
+}
+
+static void
+_item_text_set_hook(Elm_Object_Item *it, const char *part, const char *text)
+{
+   Elm_List_Item *list_it = (Elm_List_Item *)it;
+   if (part && strcmp(part, "default")) return;
+   if (!eina_stringshare_replace(&list_it->label, text)) return;
+   if (VIEW(list_it))
+     edje_object_part_text_escaped_set(VIEW(list_it), "elm.text", text);
+}
+
+static const char *
+_item_text_get_hook(const Elm_Object_Item *it, const char *part)
+{
+   if (part && strcmp(part, "default")) return NULL;
+   return ((Elm_List_Item *)it)->label;
+}
+
+static Eina_Bool
+_item_del_pre_hook(Elm_Object_Item *it)
+{
+   Evas_Object *obj = WIDGET(it);
+   Elm_List_Item *item = (Elm_List_Item *)it;
+   Widget_Data *wd = elm_widget_data_get(obj);
+   if (!wd) return EINA_FALSE;
+
+   if (item->selected) _item_unselect(item);
+
+   if (wd->walking > 0)
+     {
+        if (item->deleted) return EINA_FALSE;
+        item->deleted = EINA_TRUE;
+        wd->to_delete = eina_list_append(wd->to_delete, item);
+        return EINA_FALSE;
+     }
+
+   wd->items = eina_list_remove_list(wd->items, item->node);
+
+   evas_object_ref(obj);
+   _elm_list_walk(wd);
+
+   _elm_list_item_free(item);
+
+   _elm_list_unwalk(wd);
+   evas_object_unref(obj);
+
+   return EINA_TRUE;
 }
 
 static Elm_List_Item *
@@ -1065,7 +1215,13 @@ _item_new(Evas_Object *obj, const char *label, Evas_Object *icon, Evas_Object *e
         evas_object_event_callback_add(it->end, EVAS_CALLBACK_CHANGED_SIZE_HINTS,
                                        _changed_size_hints, obj);
      }
-   _elm_widget_item_disable_set_hook_set((Elm_Widget_Item *)it, _item_disable);
+   elm_widget_item_disable_hook_set(it, _item_disable);
+   elm_widget_item_content_set_hook_set(it, _item_content_set_hook);
+   elm_widget_item_content_get_hook_set(it, _item_content_get_hook);
+   elm_widget_item_content_unset_hook_set(it, _item_content_unset_hook);
+   elm_widget_item_text_set_hook_set(it, _item_text_set_hook);
+   elm_widget_item_text_get_hook_set(it, _item_text_get_hook);
+   elm_widget_item_del_pre_hook_set(it, _item_del_pre_hook);
    return it;
 }
 
@@ -1195,7 +1351,7 @@ _fix_items(Evas_Object *obj)
                   else if (!strcmp(stacking, "above"))
                     evas_object_raise(VIEW(it));
                }
-             edje_object_part_text_set(VIEW(it), "elm.text", it->label);
+             edje_object_part_text_escaped_set(VIEW(it), "elm.text", it->label);
 
              if ((!it->icon) && (minh[0] > 0))
                {
@@ -1385,139 +1541,6 @@ elm_list_add(Evas_Object *parent)
    return obj;
 }
 
-EAPI Elm_List_Item *
-elm_list_item_append(Evas_Object *obj, const char *label, Evas_Object *icon, Evas_Object *end, Evas_Smart_Cb func, const void *data)
-{
-   ELM_CHECK_WIDTYPE(obj, widtype) NULL;
-   Widget_Data *wd = elm_widget_data_get(obj);
-   Elm_List_Item *it = _item_new(obj, label, icon, end, func, data);
-
-   wd->items = eina_list_append(wd->items, it);
-   it->node = eina_list_last(wd->items);
-   elm_box_pack_end(wd->box, VIEW(it));
-   return it;
-}
-
-EAPI Elm_List_Item *
-elm_list_item_prepend(Evas_Object *obj, const char *label, Evas_Object *icon, Evas_Object *end, Evas_Smart_Cb func, const void *data)
-{
-   ELM_CHECK_WIDTYPE(obj, widtype) NULL;
-   Widget_Data *wd = elm_widget_data_get(obj);
-   Elm_List_Item *it = _item_new(obj, label, icon, end, func, data);
-
-   wd->items = eina_list_prepend(wd->items, it);
-   it->node = wd->items;
-   elm_box_pack_start(wd->box, VIEW(it));
-   return it;
-}
-
-EAPI Elm_List_Item *
-elm_list_item_insert_before(Evas_Object *obj, Elm_List_Item *before, const char *label, Evas_Object *icon, Evas_Object *end, Evas_Smart_Cb func, const void *data)
-{
-   Widget_Data *wd;
-   Elm_List_Item *it;
-
-   EINA_SAFETY_ON_NULL_RETURN_VAL(before, NULL);
-   if (!before->node) return NULL;
-   ELM_LIST_ITEM_CHECK_DELETED_RETURN(before, NULL);
-
-   ELM_CHECK_WIDTYPE(obj, widtype) NULL;
-   wd = elm_widget_data_get(obj);
-   if (!wd) return NULL;
-   it = _item_new(obj, label, icon, end, func, data);
-   wd->items = eina_list_prepend_relative_list(wd->items, it, before->node);
-   it->node = before->node->prev;
-   elm_box_pack_before(wd->box, VIEW(it), VIEW(before));
-   return it;
-}
-
-EAPI Elm_List_Item *
-elm_list_item_insert_after(Evas_Object *obj, Elm_List_Item *after, const char *label, Evas_Object *icon, Evas_Object *end, Evas_Smart_Cb func, const void *data)
-{
-   Widget_Data *wd;
-   Elm_List_Item *it;
-
-   EINA_SAFETY_ON_NULL_RETURN_VAL(after, NULL);
-   if (!after->node) return NULL;
-   ELM_LIST_ITEM_CHECK_DELETED_RETURN(after, NULL);
-
-   ELM_CHECK_WIDTYPE(obj, widtype) NULL;
-   wd = elm_widget_data_get(obj);
-   if (!wd) return NULL;
-   it = _item_new(obj, label, icon, end, func, data);
-   wd->items = eina_list_append_relative_list(wd->items, it, after->node);
-   it->node = after->node->next;
-   elm_box_pack_after(wd->box, VIEW(it), VIEW(after));
-   return it;
-}
-
-EAPI Elm_List_Item *
-elm_list_item_sorted_insert(Evas_Object *obj, const char *label, Evas_Object *icon, Evas_Object *end, Evas_Smart_Cb func, const void *data, Eina_Compare_Cb cmp_func)
-{
-   ELM_CHECK_WIDTYPE(obj, widtype) NULL;
-   Widget_Data *wd = elm_widget_data_get(obj);
-   Elm_List_Item *it = _item_new(obj, label, icon, end, func, data);
-   Eina_List *l;
-
-   wd->items = eina_list_sorted_insert(wd->items, cmp_func, it);
-   l = eina_list_data_find_list(wd->items, it);
-   l = eina_list_next(l);
-   if (!l)
-     {
-        it->node = eina_list_last(wd->items);
-        elm_box_pack_end(wd->box, VIEW(it));
-     }
-   else
-     {
-        Elm_List_Item *before = eina_list_data_get(l);
-        it->node = before->node->prev;
-        elm_box_pack_before(wd->box, VIEW(it), VIEW(before));
-     }
-   return it;
-}
-
-EAPI void
-elm_list_clear(Evas_Object *obj)
-{
-   ELM_CHECK_WIDTYPE(obj, widtype);
-   Widget_Data *wd = elm_widget_data_get(obj);
-   Elm_List_Item *it;
-
-   if (!wd) return;
-   if (!wd->items) return;
-
-   eina_list_free(wd->selected);
-   wd->selected = NULL;
-
-   if (wd->walking > 0)
-     {
-        Eina_List *n;
-
-        EINA_LIST_FOREACH(wd->items, n, it)
-          {
-             if (it->deleted) continue;
-             it->deleted = EINA_TRUE;
-             wd->to_delete = eina_list_append(wd->to_delete, it);
-          }
-        return;
-     }
-
-   evas_object_ref(obj);
-   _elm_list_walk(wd);
-
-   EINA_LIST_FREE(wd->items, it)
-     {
-        elm_widget_item_pre_notify_del(it);
-        _elm_list_item_free(it);
-     }
-
-   _elm_list_unwalk(wd);
-
-   _fix_items(obj);
-   _sizing_eval(obj);
-   evas_object_unref(obj);
-}
-
 EAPI void
 elm_list_go(Evas_Object *obj)
 {
@@ -1620,444 +1643,362 @@ elm_list_horizontal_get(const Evas_Object *obj)
 }
 
 EAPI void
-elm_list_always_select_mode_set(Evas_Object *obj, Eina_Bool always_select)
+elm_list_select_mode_set(Evas_Object *obj, Elm_Object_Select_Mode mode)
 {
    ELM_CHECK_WIDTYPE(obj, widtype);
    Widget_Data *wd = elm_widget_data_get(obj);
    if (!wd) return;
-   wd->always_select = always_select;
+   if (mode >= ELM_OBJECT_SELECT_MODE_MAX)
+     return;
+   if (wd->select_mode != mode)
+     wd->select_mode = mode;
 }
 
-EAPI Eina_Bool
-elm_list_always_select_mode_get(const Evas_Object *obj)
+EAPI Elm_Object_Select_Mode
+elm_list_select_mode_get(const Evas_Object *obj)
 {
-   ELM_CHECK_WIDTYPE(obj, widtype) EINA_FALSE;
+   ELM_CHECK_WIDTYPE(obj, widtype) ELM_OBJECT_SELECT_MODE_MAX;
    Widget_Data *wd = elm_widget_data_get(obj);
-   if (!wd) return EINA_FALSE;
-   return wd->always_select;
+   if (!wd) return ELM_OBJECT_SELECT_MODE_MAX;
+   return wd->select_mode;
 }
 
-EAPI const Eina_List *
-elm_list_items_get(const Evas_Object *obj)
+EAPI void
+elm_list_bounce_set(Evas_Object *obj, Eina_Bool h_bounce, Eina_Bool v_bounce)
 {
-   ELM_CHECK_WIDTYPE(obj, widtype) NULL;
+   ELM_CHECK_WIDTYPE(obj, widtype);
    Widget_Data *wd = elm_widget_data_get(obj);
-   if (!wd) return NULL;
-   return wd->items;
+   if (!wd) return;
+   if (wd->scr)
+     elm_smart_scroller_bounce_allow_set(wd->scr, h_bounce, v_bounce);
 }
 
-EAPI Elm_List_Item *
-elm_list_selected_item_get(const Evas_Object *obj)
+EAPI void
+elm_list_bounce_get(const Evas_Object *obj, Eina_Bool *h_bounce, Eina_Bool *v_bounce)
 {
-   ELM_CHECK_WIDTYPE(obj, widtype) NULL;
+   ELM_CHECK_WIDTYPE(obj, widtype);
    Widget_Data *wd = elm_widget_data_get(obj);
-   if (!wd) return NULL;
-   if (wd->selected) return wd->selected->data;
-   return NULL;
+   if (!wd) return;
+   elm_smart_scroller_bounce_allow_get(wd->scr, h_bounce, v_bounce);
 }
 
-EAPI const Eina_List *
-elm_list_selected_items_get(const Evas_Object *obj)
+EAPI void
+elm_list_scroller_policy_set(Evas_Object *obj, Elm_Scroller_Policy policy_h, Elm_Scroller_Policy policy_v)
 {
-   ELM_CHECK_WIDTYPE(obj, widtype) NULL;
+   ELM_CHECK_WIDTYPE(obj, widtype);
    Widget_Data *wd = elm_widget_data_get(obj);
-   if (!wd) return NULL;
-   return wd->selected;
+   if ((!wd) || (!wd->scr)) return;
+   if ((policy_h >= ELM_SCROLLER_POLICY_LAST) ||
+       (policy_v >= ELM_SCROLLER_POLICY_LAST))
+     return;
+   elm_smart_scroller_policy_set(wd->scr, policy_h, policy_v);
 }
 
 EAPI void
-elm_list_item_separator_set(Elm_List_Item *it, Eina_Bool setting)
-{
-   ELM_LIST_ITEM_CHECK_DELETED_RETURN(it);
-   it->is_separator = !!setting;
-}
-
-EAPI Eina_Bool
-elm_list_item_separator_get(const Elm_List_Item *it)
+elm_list_scroller_policy_get(const Evas_Object *obj, Elm_Scroller_Policy *policy_h, Elm_Scroller_Policy *policy_v)
 {
-   ELM_LIST_ITEM_CHECK_DELETED_RETURN(it, EINA_FALSE);
-   return it->is_separator;
+   ELM_CHECK_WIDTYPE(obj, widtype);
+   Widget_Data *wd = elm_widget_data_get(obj);
+   Elm_Smart_Scroller_Policy s_policy_h, s_policy_v;
+   if ((!wd) || (!wd->scr)) return;
+   elm_smart_scroller_policy_get(wd->scr, &s_policy_h, &s_policy_v);
+   if (policy_h) *policy_h = (Elm_Scroller_Policy) s_policy_h;
+   if (policy_v) *policy_v = (Elm_Scroller_Policy) s_policy_v;
 }
 
-
 EAPI void
-elm_list_item_selected_set(Elm_List_Item *it, Eina_Bool selected)
+elm_list_clear(Evas_Object *obj)
 {
-   ELM_LIST_ITEM_CHECK_DELETED_RETURN(it);
-   Evas_Object *obj = WIDGET(it);
+   ELM_CHECK_WIDTYPE(obj, widtype);
    Widget_Data *wd = elm_widget_data_get(obj);
+   Elm_List_Item *it;
+
    if (!wd) return;
+   if (!wd->items) return;
 
-   selected = !!selected;
-   if (it->selected == selected) return;
+   eina_list_free(wd->selected);
+   wd->selected = NULL;
+
+   if (wd->walking > 0)
+     {
+        Eina_List *n;
+
+        EINA_LIST_FOREACH(wd->items, n, it)
+          {
+             if (it->deleted) continue;
+             it->deleted = EINA_TRUE;
+             wd->to_delete = eina_list_append(wd->to_delete, it);
+          }
+        return;
+     }
 
    evas_object_ref(obj);
    _elm_list_walk(wd);
 
-   if (selected)
+   EINA_LIST_FREE(wd->items, it)
      {
-        if (!wd->multi)
-          {
-             while (wd->selected)
-               _item_unselect(wd->selected->data);
-          }
-        _item_highlight(it);
-        _item_select(it);
+        _elm_list_item_free(it);
+        elm_widget_item_free(it);
      }
-   else
-     _item_unselect(it);
 
    _elm_list_unwalk(wd);
+
+   _fix_items(obj);
+   _sizing_eval(obj);
    evas_object_unref(obj);
 }
 
-EAPI Eina_Bool
-elm_list_item_selected_get(const Elm_List_Item *it)
+EAPI const Eina_List *
+elm_list_items_get(const Evas_Object *obj)
 {
-   ELM_LIST_ITEM_CHECK_DELETED_RETURN(it, EINA_FALSE);
-   return it->selected;
+   ELM_CHECK_WIDTYPE(obj, widtype) NULL;
+   Widget_Data *wd = elm_widget_data_get(obj);
+   if (!wd) return NULL;
+   return wd->items;
 }
 
-EAPI void
-elm_list_item_show(Elm_List_Item *it)
+EAPI Elm_Object_Item *
+elm_list_selected_item_get(const Evas_Object *obj)
 {
-   ELM_LIST_ITEM_CHECK_DELETED_RETURN(it);
-   Widget_Data *wd = elm_widget_data_get(WIDGET(it));
-   Evas_Coord bx, by, bw, bh;
-   Evas_Coord x, y, w, h;
+   ELM_CHECK_WIDTYPE(obj, widtype) NULL;
+   Widget_Data *wd = elm_widget_data_get(obj);
+   if (!wd) return NULL;
+   if (wd->selected) return (Elm_Object_Item *) wd->selected->data;
+   return NULL;
+}
 
-   evas_object_geometry_get(wd->box, &bx, &by, &bw, &bh);
-   evas_object_geometry_get(VIEW(it), &x, &y, &w, &h);
-   x -= bx;
-   y -= by;
-   if (wd->scr)
-     elm_smart_scroller_child_region_show(wd->scr, x, y, w, h);
+EAPI const Eina_List *
+elm_list_selected_items_get(const Evas_Object *obj)
+{
+   ELM_CHECK_WIDTYPE(obj, widtype) NULL;
+   Widget_Data *wd = elm_widget_data_get(obj);
+   if (!wd) return NULL;
+   return wd->selected;
 }
 
-EAPI void
-elm_list_item_bring_in(Elm_List_Item *it)
+EAPI Elm_Object_Item *
+elm_list_item_append(Evas_Object *obj, const char *label, Evas_Object *icon, Evas_Object *end, Evas_Smart_Cb func, const void *data)
 {
-   ELM_LIST_ITEM_CHECK_DELETED_RETURN(it);
-   Widget_Data *wd = elm_widget_data_get(WIDGET(it));
-   Evas_Coord bx, by, bw, bh;
-   Evas_Coord x, y, w, h;
+   ELM_CHECK_WIDTYPE(obj, widtype) NULL;
+   Widget_Data *wd = elm_widget_data_get(obj);
+   Elm_List_Item *it = _item_new(obj, label, icon, end, func, data);
 
-   evas_object_geometry_get(wd->box, &bx, &by, &bw, &bh);
-   evas_object_geometry_get(VIEW(it), &x, &y, &w, &h);
-   x -= bx;
-   y -= by;
-   if (wd->scr)
-     elm_smart_scroller_region_bring_in(wd->scr, x, y, w, h);
+   wd->items = eina_list_append(wd->items, it);
+   it->node = eina_list_last(wd->items);
+   elm_box_pack_end(wd->box, VIEW(it));
+   return (Elm_Object_Item *)it;
 }
 
-EAPI void
-elm_list_item_del(Elm_List_Item *it)
+EAPI Elm_Object_Item *
+elm_list_item_prepend(Evas_Object *obj, const char *label, Evas_Object *icon, Evas_Object *end, Evas_Smart_Cb func, const void *data)
 {
-   ELM_LIST_ITEM_CHECK_DELETED_RETURN(it);
-   Evas_Object *obj = WIDGET(it);
+   ELM_CHECK_WIDTYPE(obj, widtype) NULL;
    Widget_Data *wd = elm_widget_data_get(obj);
-   if (!wd) return;
+   Elm_List_Item *it = _item_new(obj, label, icon, end, func, data);
 
-   if (it->selected) _item_unselect(it);
+   wd->items = eina_list_prepend(wd->items, it);
+   it->node = wd->items;
+   elm_box_pack_start(wd->box, VIEW(it));
+   return (Elm_Object_Item *)it;
+}
 
-   if (wd->walking > 0)
-     {
-        if (it->deleted) return;
-        it->deleted = EINA_TRUE;
-        wd->to_delete = eina_list_append(wd->to_delete, it);
-        return;
-     }
+EAPI Elm_Object_Item *
+elm_list_item_insert_before(Evas_Object *obj, Elm_Object_Item *before, const char *label, Evas_Object *icon, Evas_Object *end, Evas_Smart_Cb func, const void *data)
+{
+   ELM_CHECK_WIDTYPE(obj, widtype) NULL;
+   ELM_LIST_ITEM_CHECK_DELETED_RETURN(before, NULL);
 
-   wd->items = eina_list_remove_list(wd->items, it->node);
+   Widget_Data *wd;
+   Elm_List_Item *it, *before_it;
 
-   evas_object_ref(obj);
-   _elm_list_walk(wd);
+   wd = elm_widget_data_get(obj);
+   if (!wd) return NULL;
 
-   elm_widget_item_pre_notify_del(it);
-   _elm_list_item_free(it);
+   before_it = (Elm_List_Item *) before;
+   if (!before_it->node) return NULL;
 
-   _elm_list_unwalk(wd);
-   evas_object_unref(obj);
+   it = _item_new(obj, label, icon, end, func, data);
+   wd->items = eina_list_prepend_relative_list(wd->items, it, before_it->node);
+   it->node = before_it->node->prev;
+   elm_box_pack_before(wd->box, VIEW(it), VIEW(before_it));
+   return (Elm_Object_Item *)it;
 }
 
-EAPI void
-elm_list_item_del_cb_set(Elm_List_Item *it, Evas_Smart_Cb func)
+EAPI Elm_Object_Item *
+elm_list_item_insert_after(Evas_Object *obj, Elm_Object_Item *after, const char *label, Evas_Object *icon, Evas_Object *end, Evas_Smart_Cb func, const void *data)
 {
-   ELM_LIST_ITEM_CHECK_DELETED_RETURN(it);
-   elm_widget_item_del_cb_set(it, func);
-}
+   ELM_CHECK_WIDTYPE(obj, widtype) NULL;
+   ELM_LIST_ITEM_CHECK_DELETED_RETURN(after, NULL);
 
-EAPI void *
-elm_list_item_data_get(const Elm_List_Item *it)
-{
-   ELM_LIST_ITEM_CHECK_DELETED_RETURN(it, NULL);
-   return elm_widget_item_data_get(it);
-}
+   Widget_Data *wd;
+   Elm_List_Item *it, *after_it;
 
-EAPI Evas_Object *
-elm_list_item_icon_get(const Elm_List_Item *it)
-{
-   ELM_LIST_ITEM_CHECK_DELETED_RETURN(it, NULL);
-   if (it->dummy_icon) return NULL;
-   return it->icon;
-}
+   wd = elm_widget_data_get(obj);
+   if (!wd) return NULL;
 
-EAPI void
-elm_list_item_icon_set(Elm_List_Item *it, Evas_Object *icon)
-{
-   ELM_LIST_ITEM_CHECK_DELETED_RETURN(it);
-   if (it->icon == icon) return;
-   if ((it->dummy_icon) && (!icon)) return;
-   if (it->dummy_icon)
-     {
-        evas_object_del(it->icon);
-        it->dummy_icon = EINA_FALSE;
-     }
-   if (!icon)
-     {
-        icon = evas_object_rectangle_add(evas_object_evas_get(WIDGET(it)));
-        evas_object_color_set(icon, 0, 0, 0, 0);
-        it->dummy_icon = EINA_TRUE;
-     }
-   if (it->icon)
-     {
-        evas_object_del(it->icon);
-        it->icon = NULL;
-     }
-   it->icon = icon;
-   if (VIEW(it))
-     edje_object_part_swallow(VIEW(it), "elm.swallow.icon", icon);
-}
+   after_it = (Elm_List_Item *) after;
+   if (!after_it->node) return NULL;
 
-EAPI Evas_Object *
-elm_list_item_end_get(const Elm_List_Item *it)
-{
-   ELM_LIST_ITEM_CHECK_DELETED_RETURN(it, NULL);
-   if (it->dummy_end) return NULL;
-   return it->end;
+   it = _item_new(obj, label, icon, end, func, data);
+   wd->items = eina_list_append_relative_list(wd->items, it, after_it->node);
+   it->node = after_it->node->next;
+   elm_box_pack_after(wd->box, VIEW(it), VIEW(after_it));
+   return (Elm_Object_Item *)it;
 }
 
-EAPI void
-elm_list_item_end_set(Elm_List_Item *it, Evas_Object *end)
+EAPI Elm_Object_Item *
+elm_list_item_sorted_insert(Evas_Object *obj, const char *label, Evas_Object *icon, Evas_Object *end, Evas_Smart_Cb func, const void *data, Eina_Compare_Cb cmp_func)
 {
-   ELM_LIST_ITEM_CHECK_DELETED_RETURN(it);
-   if (it->end == end) return;
-   if ((it->dummy_end) && (!end)) return;
-   if (it->dummy_end)
-     {
-        evas_object_del(it->end);
-        it->dummy_icon = EINA_FALSE;
-     }
-   if (!end)
+   ELM_CHECK_WIDTYPE(obj, widtype) NULL;
+   Widget_Data *wd = elm_widget_data_get(obj);
+   Elm_List_Item *it = _item_new(obj, label, icon, end, func, data);
+   Eina_List *l;
+
+   wd->items = eina_list_sorted_insert(wd->items, cmp_func, it);
+   l = eina_list_data_find_list(wd->items, it);
+   l = eina_list_next(l);
+   if (!l)
      {
-        end = evas_object_rectangle_add(evas_object_evas_get(WIDGET(it)));
-        evas_object_color_set(end, 0, 0, 0, 0);
-        it->dummy_end = EINA_TRUE;
+        it->node = eina_list_last(wd->items);
+        elm_box_pack_end(wd->box, VIEW(it));
      }
-   if (it->end)
+   else
      {
-        evas_object_del(it->end);
-        it->end = NULL;
+        Elm_List_Item *before = eina_list_data_get(l);
+        it->node = before->node->prev;
+        elm_box_pack_before(wd->box, VIEW(it), VIEW(before));
      }
-   it->end = end;
-   if (VIEW(it))
-     edje_object_part_swallow(VIEW(it), "elm.swallow.end", end);
-}
-
-EAPI Evas_Object *
-elm_list_item_base_get(const Elm_List_Item *it)
-{
-   return elm_list_item_object_get(it);
-}
-
-EAPI Evas_Object *
-elm_list_item_object_get(const Elm_List_Item *it)
-{
-   ELM_LIST_ITEM_CHECK_DELETED_RETURN(it, NULL);
-   return VIEW(it);
-}
-
-EAPI const char *
-elm_list_item_label_get(const Elm_List_Item *it)
-{
-   ELM_LIST_ITEM_CHECK_DELETED_RETURN(it, NULL);
-   return it->label;
+   return (Elm_Object_Item *)it;
 }
 
 EAPI void
-elm_list_item_label_set(Elm_List_Item *it, const char *text)
+elm_list_item_separator_set(Elm_Object_Item *it, Eina_Bool setting)
 {
    ELM_LIST_ITEM_CHECK_DELETED_RETURN(it);
-   if (!eina_stringshare_replace(&it->label, text)) return;
-   if (VIEW(it))
-     edje_object_part_text_set(VIEW(it), "elm.text", it->label);
+   ((Elm_List_Item *)it)->is_separator = !!setting;
 }
 
-EAPI Elm_List_Item *
-elm_list_item_prev(const Elm_List_Item *it)
-{
-   ELM_LIST_ITEM_CHECK_DELETED_RETURN(it, NULL);
-   if (it->node->prev) return it->node->prev->data;
-   else return NULL;
-}
-
-EAPI Elm_List_Item *
-elm_list_item_next(const Elm_List_Item *it)
-{
-   ELM_LIST_ITEM_CHECK_DELETED_RETURN(it, NULL);
-   if (it->node->next) return it->node->next->data;
-   else return NULL;
-}
-
-EAPI void
-elm_list_item_tooltip_text_set(Elm_List_Item *item, const char *text)
+EAPI Eina_Bool
+elm_list_item_separator_get(const Elm_Object_Item *it)
 {
-   ELM_LIST_ITEM_CHECK_DELETED_RETURN(item);
-   elm_widget_item_tooltip_text_set(item, text);
+   ELM_LIST_ITEM_CHECK_DELETED_RETURN(it, EINA_FALSE);
+   return ((Elm_List_Item *)it)->is_separator;
 }
 
 EAPI void
-elm_list_item_tooltip_content_cb_set(Elm_List_Item *item, Elm_Tooltip_Item_Content_Cb func, const void *data, Evas_Smart_Cb del_cb)
+elm_list_item_selected_set(Elm_Object_Item *it, Eina_Bool selected)
 {
-   ELM_LIST_ITEM_CHECK_DELETED_RETURN(item);
-   elm_widget_item_tooltip_content_cb_set(item, func, data, del_cb);
-}
+   ELM_LIST_ITEM_CHECK_DELETED_RETURN(it);
+   Evas_Object *obj = WIDGET(it);
+   Widget_Data *wd = elm_widget_data_get(obj);
+   Elm_List_Item *item = (Elm_List_Item *)it;
+   if (!wd) return;
 
-EAPI void
-elm_list_item_tooltip_unset(Elm_List_Item *item)
-{
-   ELM_LIST_ITEM_CHECK_DELETED_RETURN(item);
-   elm_widget_item_tooltip_unset(item);
-}
+   selected = !!selected;
+   if (item->selected == selected) return;
 
-EAPI Eina_Bool
-elm_list_item_tooltip_window_mode_set(Elm_List_Item *item, Eina_Bool disable)
-{
-   ELM_LIST_ITEM_CHECK_DELETED_RETURN(item, EINA_FALSE);
-   return elm_widget_item_tooltip_window_mode_set(item, disable);
-}
+   evas_object_ref(obj);
+   _elm_list_walk(wd);
 
-EAPI Eina_Bool
-elm_list_item_tooltip_window_mode_get(const Elm_List_Item *item)
-{
-   ELM_LIST_ITEM_CHECK_DELETED_RETURN(item, EINA_FALSE);
-   return elm_widget_item_tooltip_window_mode_get(item);
-}
+   if (selected)
+     {
+        if (!wd->multi)
+          {
+             while (wd->selected)
+               _item_unselect(wd->selected->data);
+          }
+        _item_highlight(item);
+        _item_select(item);
+     }
+   else
+     _item_unselect(item);
 
-EAPI void
-elm_list_item_tooltip_style_set(Elm_List_Item *item, const char *style)
-{
-   ELM_LIST_ITEM_CHECK_DELETED_RETURN(item);
-   elm_widget_item_tooltip_style_set(item, style);
+   _elm_list_unwalk(wd);
+   evas_object_unref(obj);
 }
 
-EAPI const char *
-elm_list_item_tooltip_style_get(const Elm_List_Item *item)
+EAPI Eina_Bool
+elm_list_item_selected_get(const Elm_Object_Item *it)
 {
-   ELM_LIST_ITEM_CHECK_DELETED_RETURN(item, NULL);
-   return elm_widget_item_tooltip_style_get(item);
+   ELM_LIST_ITEM_CHECK_DELETED_RETURN(it, EINA_FALSE);
+   return ((Elm_List_Item *)it)->selected;
 }
 
 EAPI void
-elm_list_item_cursor_set(Elm_List_Item *item, const char *cursor)
-{
-   ELM_LIST_ITEM_CHECK_DELETED_RETURN(item);
-   elm_widget_item_cursor_set(item, cursor);
-}
-
-EAPI const char *
-elm_list_item_cursor_get(const Elm_List_Item *item)
+elm_list_item_show(Elm_Object_Item *it)
 {
-   ELM_LIST_ITEM_CHECK_DELETED_RETURN(item, NULL);
-   return elm_widget_item_cursor_get(item);
-}
+   ELM_LIST_ITEM_CHECK_DELETED_RETURN(it);
+   Widget_Data *wd = elm_widget_data_get(WIDGET(it));
+   if (!wd) return;
+   Evas_Coord bx, by, bw, bh;
+   Evas_Coord x, y, w, h;
 
-EAPI void
-elm_list_item_cursor_unset(Elm_List_Item *item)
-{
-   ELM_LIST_ITEM_CHECK_DELETED_RETURN(item);
-   elm_widget_item_cursor_unset(item);
+   evas_smart_objects_calculate(evas_object_evas_get(wd->box));
+   evas_object_geometry_get(wd->box, &bx, &by, &bw, &bh);
+   evas_object_geometry_get(VIEW(it), &x, &y, &w, &h);
+   x -= bx;
+   y -= by;
+   if (wd->scr) elm_smart_scroller_child_region_show(wd->scr, x, y, w, h);
 }
 
 EAPI void
-elm_list_item_cursor_style_set(Elm_List_Item *item, const char *style)
-{
-   ELM_LIST_ITEM_CHECK_DELETED_RETURN(item);
-   elm_widget_item_cursor_style_set(item, style);
-}
-
-EAPI const char *
-elm_list_item_cursor_style_get(const Elm_List_Item *item)
+elm_list_item_bring_in(Elm_Object_Item *it)
 {
-   ELM_LIST_ITEM_CHECK_DELETED_RETURN(item, NULL);
-   return elm_widget_item_cursor_style_get(item);
-}
+   ELM_LIST_ITEM_CHECK_DELETED_RETURN(it);
+   Widget_Data *wd = elm_widget_data_get(WIDGET(it));
+   if (!wd) return;
+   Evas_Coord bx, by, bw, bh;
+   Evas_Coord x, y, w, h;
 
-EAPI void
-elm_list_item_cursor_engine_only_set(Elm_List_Item *item, Eina_Bool engine_only)
-{
-   ELM_LIST_ITEM_CHECK_DELETED_RETURN(item);
-   elm_widget_item_cursor_engine_only_set(item, engine_only);
+   evas_smart_objects_calculate(evas_object_evas_get(wd->box));
+   evas_object_geometry_get(wd->box, &bx, &by, &bw, &bh);
+   evas_object_geometry_get(VIEW(it), &x, &y, &w, &h);
+   x -= bx;
+   y -= by;
+   if (wd->scr) elm_smart_scroller_region_bring_in(wd->scr, x, y, w, h);
 }
 
-EAPI Eina_Bool
-elm_list_item_cursor_engine_only_get(const Elm_List_Item *item)
+EAPI Evas_Object *
+elm_list_item_object_get(const Elm_Object_Item *it)
 {
-   ELM_LIST_ITEM_CHECK_DELETED_RETURN(item, EINA_FALSE);
-   return elm_widget_item_cursor_engine_only_get(item);
+   ELM_LIST_ITEM_CHECK_DELETED_RETURN(it, NULL);
+   return VIEW(it);
 }
 
-EAPI void
-elm_list_bounce_set(Evas_Object *obj, Eina_Bool h_bounce, Eina_Bool v_bounce)
+EAPI Elm_Object_Item *
+elm_list_item_prev(const Elm_Object_Item *it)
 {
-   ELM_CHECK_WIDTYPE(obj, widtype);
-   Widget_Data *wd = elm_widget_data_get(obj);
-   if (!wd) return;
-   if (wd->scr)
-     elm_smart_scroller_bounce_allow_set(wd->scr, h_bounce, v_bounce);
+   ELM_LIST_ITEM_CHECK_DELETED_RETURN(it, NULL);
+   Elm_List_Item *item = (Elm_List_Item *)it;
+   if (item->node->prev) return item->node->prev->data;
+   else return NULL;
 }
 
-EAPI void
-elm_list_bounce_get(const Evas_Object *obj, Eina_Bool *h_bounce, Eina_Bool *v_bounce)
+EAPI Elm_Object_Item *
+elm_list_item_next(const Elm_Object_Item *it)
 {
-   ELM_CHECK_WIDTYPE(obj, widtype);
-   Widget_Data *wd = elm_widget_data_get(obj);
-   if (!wd) return;
-   elm_smart_scroller_bounce_allow_get(wd->scr, h_bounce, v_bounce);
+   ELM_LIST_ITEM_CHECK_DELETED_RETURN(it, NULL);
+   Elm_List_Item *item = (Elm_List_Item *)it;
+   if (item->node->next) return item->node->next->data;
+   else return NULL;
 }
 
-EAPI void
-elm_list_scroller_policy_set(Evas_Object *obj, Elm_Scroller_Policy policy_h, Elm_Scroller_Policy policy_v)
+EAPI Elm_Object_Item *
+elm_list_first_item_get(const Evas_Object *obj)
 {
-   ELM_CHECK_WIDTYPE(obj, widtype);
+   ELM_CHECK_WIDTYPE(obj, widtype) NULL;
    Widget_Data *wd = elm_widget_data_get(obj);
-   if ((!wd) || (!wd->scr)) return;
-   if ((policy_h >= ELM_SCROLLER_POLICY_LAST) ||
-       (policy_v >= ELM_SCROLLER_POLICY_LAST))
-     return;
-   elm_smart_scroller_policy_set(wd->scr, policy_h, policy_v);
+   if (!wd) return NULL;
+   if (!wd->items) return NULL;
+   return eina_list_data_get(wd->items);
 }
 
-EAPI void
-elm_list_scroller_policy_get(const Evas_Object *obj, Elm_Scroller_Policy *policy_h, Elm_Scroller_Policy *policy_v)
+EAPI Elm_Object_Item *
+elm_list_last_item_get(const Evas_Object *obj)
 {
-   ELM_CHECK_WIDTYPE(obj, widtype);
+   ELM_CHECK_WIDTYPE(obj, widtype) NULL;
    Widget_Data *wd = elm_widget_data_get(obj);
-   Elm_Smart_Scroller_Policy s_policy_h, s_policy_v;
-   if ((!wd) || (!wd->scr)) return;
-   elm_smart_scroller_policy_get(wd->scr, &s_policy_h, &s_policy_v);
-   if (policy_h) *policy_h = (Elm_Scroller_Policy) s_policy_h;
-   if (policy_v) *policy_v = (Elm_Scroller_Policy) s_policy_v;
-}
-
-EINA_DEPRECATED EAPI void
-elm_list_item_disabled_set(Elm_List_Item *it, Eina_Bool disabled)
-{
-   elm_object_item_disabled_set((Elm_Object_Item *)it, disabled);
-}
-
-EINA_DEPRECATED EAPI Eina_Bool
-elm_list_item_disabled_get(const Elm_List_Item *it)
-{
-   return elm_object_item_disabled_get((Elm_Object_Item *)it);
+   if (!wd) return NULL;
+   if (!wd->items) return NULL;
+   return eina_list_data_get(eina_list_last(wd->items));
 }