From 0c433d1c20afb48f09324a45a7902c13b6d14445 Mon Sep 17 00:00:00 2001 From: Prince Kumar Dubey Date: Wed, 22 Sep 2010 14:28:41 +0530 Subject: [PATCH] [SegmentControl] Renaming of API. --- src/lib/Elementary.h.in | 2 +- src/lib/elm_segment_control.c | 10 ++++++---- 2 files changed, 7 insertions(+), 5 deletions(-) mode change 100644 => 100755 src/lib/Elementary.h.in mode change 100644 => 100755 src/lib/elm_segment_control.c diff --git a/src/lib/Elementary.h.in b/src/lib/Elementary.h.in old mode 100644 new mode 100755 index 43139ab..b5d21ff --- a/src/lib/Elementary.h.in +++ b/src/lib/Elementary.h.in @@ -1349,7 +1349,7 @@ extern "C" { 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); diff --git a/src/lib/elm_segment_control.c b/src/lib/elm_segment_control.c old mode 100644 new mode 100755 index 8268093..3715a5d --- a/src/lib/elm_segment_control.c +++ b/src/lib/elm_segment_control.c @@ -1186,13 +1186,13 @@ elm_segment_control_item_index_get(Elm_Segment_Item *item) * 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); @@ -1204,6 +1204,8 @@ elm_segment_control_label_set(Elm_Segment_Item *item, char *label) 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; } + -- 2.7.4