forked from enlightenment/efl
elementary/index : changed one API. elm_index_item_selected_set ->
elm_index_selected_item_set. SVN revision: 68720
This commit is contained in:
parent
6009652735
commit
1acacd1c9b
|
@ -4851,6 +4851,18 @@ EINA_DEPRECATED EAPI void elm_icon_scale_set(Evas_Object *obj,
|
||||||
* @ingroup Icon
|
* @ingroup Icon
|
||||||
*/
|
*/
|
||||||
EINA_DEPRECATED EAPI void elm_icon_scale_get(const Evas_Object *obj, Eina_Bool *scale_up, Eina_Bool *scale_down);
|
EINA_DEPRECATED EAPI void elm_icon_scale_get(const Evas_Object *obj, Eina_Bool *scale_up, Eina_Bool *scale_down);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Returns the last selected item, for a given index widget.
|
||||||
|
*
|
||||||
|
* @param obj The index object.
|
||||||
|
* @return The last item @b selected on @p obj (or @c NULL, on errors).
|
||||||
|
* @deprecated Please use elm_index_selected_item_get() instead.
|
||||||
|
*
|
||||||
|
*
|
||||||
|
* @ingroup Index
|
||||||
|
*/
|
||||||
|
EINA_DEPRECATED EAPI Elm_Object_Item *elm_index_item_selected_get(const Evas_Object *obj, int level);
|
||||||
/**
|
/**
|
||||||
* @}
|
* @}
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -322,7 +322,7 @@ _delay_change(void *data)
|
||||||
Elm_Object_Item *item;
|
Elm_Object_Item *item;
|
||||||
if (!wd) return ECORE_CALLBACK_CANCEL;
|
if (!wd) return ECORE_CALLBACK_CANCEL;
|
||||||
wd->delay = NULL;
|
wd->delay = NULL;
|
||||||
item = elm_index_item_selected_get(data, wd->level);
|
item = elm_index_selected_item_get(data, wd->level);
|
||||||
if (item) evas_object_smart_callback_call(data, SIG_DELAY_CHANGED, item);
|
if (item) evas_object_smart_callback_call(data, SIG_DELAY_CHANGED, item);
|
||||||
return ECORE_CALLBACK_CANCEL;
|
return ECORE_CALLBACK_CANCEL;
|
||||||
}
|
}
|
||||||
|
@ -483,7 +483,7 @@ _mouse_up(void *data, Evas *e __UNUSED__, Evas_Object *o __UNUSED__, void *event
|
||||||
if (!wd) return;
|
if (!wd) return;
|
||||||
if (ev->button != 1) return;
|
if (ev->button != 1) return;
|
||||||
wd->down = 0;
|
wd->down = 0;
|
||||||
item = elm_index_item_selected_get(data, wd->level);
|
item = elm_index_selected_item_get(data, wd->level);
|
||||||
if (item)
|
if (item)
|
||||||
{
|
{
|
||||||
evas_object_smart_callback_call(data, SIG_SELECTED, item);
|
evas_object_smart_callback_call(data, SIG_SELECTED, item);
|
||||||
|
@ -678,8 +678,14 @@ elm_index_item_level_get(const Evas_Object *obj)
|
||||||
return wd->level;
|
return wd->level;
|
||||||
}
|
}
|
||||||
|
|
||||||
EAPI Elm_Object_Item *
|
EINA_DEPRECATED EAPI Elm_Object_Item *
|
||||||
elm_index_item_selected_get(const Evas_Object *obj, int level)
|
elm_index_item_selected_get(const Evas_Object *obj, int level)
|
||||||
|
{
|
||||||
|
return elm_index_selected_item_get(obj, level);
|
||||||
|
}
|
||||||
|
|
||||||
|
EAPI Elm_Object_Item *
|
||||||
|
elm_index_selected_item_get(const Evas_Object *obj, int level)
|
||||||
{
|
{
|
||||||
ELM_CHECK_WIDTYPE(obj, widtype) NULL;
|
ELM_CHECK_WIDTYPE(obj, widtype) NULL;
|
||||||
Widget_Data *wd = elm_widget_data_get(obj);
|
Widget_Data *wd = elm_widget_data_get(obj);
|
||||||
|
|
|
@ -118,7 +118,7 @@ EAPI int elm_index_item_level_get(const Evas_Object *obj);
|
||||||
*
|
*
|
||||||
* @ingroup Index
|
* @ingroup Index
|
||||||
*/
|
*/
|
||||||
EAPI Elm_Object_Item *elm_index_item_selected_get(const Evas_Object *obj, int level);
|
EAPI Elm_Object_Item *elm_index_selected_item_get(const Evas_Object *obj, int level);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Append a new item on a given index widget.
|
* Append a new item on a given index widget.
|
||||||
|
|
Loading…
Reference in New Issue