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
* @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
+ */
+ WILL_DEPRECATE 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
+ *
+ * @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
*
* @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
* @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
+ */
+ WILL_DEPRECATE EAPI const char *elm_object_item_text_part_get(const Elm_Object_Item *it, const char *part);
+ /**
+ * 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
*
* @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);
/**
* Set the text to read out when in accessibility mode
*/
EAPI void elm_object_item_access_info_set(Elm_Object_Item *it, const char *txt);
-
-#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
elm_widget_item_text_part_set(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(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_item_data_get(const Elm_Object_Item *it)
{