EAPI int elm_segment_control_item_count_get(Evas_Object *obj);
EAPI int elm_segment_control_item_index_get(Elm_Segment_Item *item);
EAPI Evas_Object *elm_segment_control_item_object_get(Elm_Segment_Item *it);
- EAPI void elm_segment_control_item_label_set(Elm_Segment_Item *item, char *label);
+ EAPI Evas_Object *elm_segment_control_item_label_object_set(Elm_Segment_Item *item, char *label);
EAPI Evas_Object *elm_page_control_add(Evas_Object *parent);
EAPI void elm_page_control_page_count_set(Evas_Object *obj, unsigned int page_count);
* Set The Label widget to a Segment item of Segmentcontrol
* @param item The Segment item.
* @param label The Label.
- * @return The Void.
+ * @return Evas_Object The Label widget.
*
* @ingroup SegmentControl SegmentControl
*/
-EAPI void
-elm_segment_control_label_set(Elm_Segment_Item *item, char *label)
+EAPI Evas_Object *
+elm_segment_control_item_label_object_set(Elm_Segment_Item *item, char *label)
{
if(!item) return;
Widget_Data *wd = elm_widget_data_get(item->obj);
elm_label_text_align_set(item->label_wd, "middle");
elm_label_ellipsis_set(item->label_wd, 1);
elm_label_line_wrap_set(item->label_wd, 1);
+ eina_stringshare_replace(&item->label, label);
- return;
+ return item->label_wd;
}
+