* We are going to change some of the properties of our list.
*
* There's no need to call the selected callback at every click, just when the
- * selected item changes, thus we call elm_genlist_always_select_mode_set() with
- * false.
+ * selected item changes, thus we call elm_genlist_select_mode_set() with
+ * ELM_OBJECT_SELECT_MODE_ALWAYS.
*
* For this list we don't want bounce animations at all, so we set both the
* horizontal bounce and the vertical bounce to false with
return wd->mode;
}
-EINA_DEPRECATED EAPI void
-elm_genlist_always_select_mode_set(Evas_Object *obj,
- Eina_Bool always_select)
-{
- ELM_CHECK_WIDTYPE(obj, widtype);
- Widget_Data *wd = elm_widget_data_get(obj);
- if (!wd) return;
- if (always_select)
- elm_genlist_select_mode_set(obj, ELM_OBJECT_SELECT_MODE_ALWAYS);
- else
- {
- Elm_Object_Select_Mode oldmode = elm_genlist_select_mode_get(obj);
- if (oldmode == ELM_OBJECT_SELECT_MODE_ALWAYS)
- elm_genlist_select_mode_set(obj, ELM_OBJECT_SELECT_MODE_DEFAULT);
- }
-}
-
-EINA_DEPRECATED EAPI Eina_Bool
-elm_genlist_always_select_mode_get(const Evas_Object *obj)
-{
- ELM_CHECK_WIDTYPE(obj, widtype) EINA_FALSE;
- Widget_Data *wd = elm_widget_data_get(obj);
- if (!wd) return EINA_FALSE;
- Elm_Object_Select_Mode oldmode = elm_genlist_select_mode_get(obj);
- if (oldmode == ELM_OBJECT_SELECT_MODE_ALWAYS)
- return EINA_TRUE;
- return EINA_FALSE;
-}
-
-EINA_DEPRECATED EAPI void
-elm_genlist_no_select_mode_set(Evas_Object *obj,
- Eina_Bool no_select)
-{
- ELM_CHECK_WIDTYPE(obj, widtype);
- Widget_Data *wd = elm_widget_data_get(obj);
- if (!wd) return;
- if (no_select)
- elm_genlist_select_mode_set(obj, ELM_OBJECT_SELECT_MODE_NONE);
- else
- {
- Elm_Object_Select_Mode oldmode = elm_genlist_select_mode_get(obj);
- if (oldmode == ELM_OBJECT_SELECT_MODE_NONE)
- elm_genlist_select_mode_set(obj, ELM_OBJECT_SELECT_MODE_DEFAULT);
- }
-}
-
-EINA_DEPRECATED EAPI Eina_Bool
-elm_genlist_no_select_mode_get(const Evas_Object *obj)
-{
- ELM_CHECK_WIDTYPE(obj, widtype) EINA_FALSE;
- Widget_Data *wd = elm_widget_data_get(obj);
- if (!wd) return EINA_FALSE;
- Elm_Object_Select_Mode oldmode = elm_genlist_select_mode_get(obj);
- if (oldmode == ELM_OBJECT_SELECT_MODE_NONE)
- return EINA_TRUE;
- return EINA_FALSE;
-}
-
EAPI void
elm_genlist_bounce_set(Evas_Object *obj,
Eina_Bool h_bounce,