elm: change elm_object_item_text_part_set/get to elm_object_item_part_text_set/get

SVN revision: 65350
This commit is contained in:
Boris Faure 2011-11-17 21:02:43 +00:00
parent 1112d30a41
commit 3b1da7df04
3 changed files with 44 additions and 5 deletions

View File

@ -157,7 +157,7 @@ _page2(void *data, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
content = _content_new(nf, img2);
it = elm_naviframe_item_push(nf, "Page 2", NULL, bt, content, NULL);
elm_object_item_text_part_set(it, "subtitle", "Here is sub-title part!");
elm_object_item_part_text_set(it, "subtitle", "Here is sub-title part!");
}
void

View File

@ -1224,6 +1224,19 @@ extern "C" {
#define elm_object_item_content_unset(it) elm_object_item_content_part_unset((it), NULL)
/**
* Set a label of an object item
*
* @param it The Elementary object item
* @param part The text part name to set (NULL for the default label)
* @param label The new text of the label
*
* @note Elementary object items may have many labels
* @deprecated Use elm_object_item_part_text_set instead.
* @ingroup General
*/
EINA_DEPRECATED EAPI void elm_object_item_text_part_set(Elm_Object_Item *it, const char *part, const char *label);
/**
* Set a label of an object item
*
@ -1235,10 +1248,22 @@ extern "C" {
*
* @ingroup General
*/
EAPI void elm_object_item_text_part_set(Elm_Object_Item *it, const char *part, const char *label);
EAPI void elm_object_item_part_text_set(Elm_Object_Item *it, const char *part, const char *label);
#define elm_object_item_text_set(it, label) elm_object_item_text_part_set((it), NULL, (label))
#define elm_object_item_text_set(it, label) elm_object_item_part_text_set((it), NULL, (label))
/**
* Get a label of an object item
*
* @param it The Elementary object item
* @param part The text part name to get (NULL for the default label)
* @return text of the label or NULL for any error
*
* @note Elementary object items may have many labels
* @deprecated Use elm_object_item_part_text_get instead.
* @ingroup General
*/
EINA_DEPRECATED EAPI const char *elm_object_item_text_part_get(const Elm_Object_Item *it, const char *part);
/**
* Get a label of an object item
*
@ -1250,9 +1275,9 @@ extern "C" {
*
* @ingroup General
*/
EAPI const char *elm_object_item_text_part_get(const Elm_Object_Item *it, const char *part);
EAPI const char *elm_object_item_part_text_get(const Elm_Object_Item *it, const char *part);
#define elm_object_item_text_get(it) elm_object_item_text_part_get((it), NULL)
#define elm_object_item_text_get(it) elm_object_item_part_text_get((it), NULL)
/**
* Set the text to read out when in accessibility mode

View File

@ -2034,12 +2034,26 @@ elm_object_item_text_part_set(Elm_Object_Item *it,
_elm_widget_item_text_part_set((Elm_Widget_Item *) it, part, label);
}
EAPI void
elm_object_item_part_text_set(Elm_Object_Item *it,
const char *part,
const char *label)
{
_elm_widget_item_text_part_set((Elm_Widget_Item *) it, part, label);
}
EAPI const char *
elm_object_item_text_part_get(const Elm_Object_Item *it, const char *part)
{
return _elm_widget_item_text_part_get((Elm_Widget_Item *) it, part);
}
EAPI const char *
elm_object_item_part_text_get(const Elm_Object_Item *it, const char *part)
{
return _elm_widget_item_text_part_get((Elm_Widget_Item *) it, part);
}
EAPI void
elm_object_access_info_set(Evas_Object *obj, const char *txt)
{