summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorChunEon Park <hermet@hermet.pe.kr>2012-01-02 06:01:24 +0000
committerChunEon Park <hermet@hermet.pe.kr>2012-01-02 06:01:24 +0000
commit383965d5c91b098f25c52c71ace9e3ea7e0175d3 (patch)
treeab890e45b3b619557ac9a3b0a109a1a689f367b6 /src
parente9bf69a8adf1da8f1b9ccf6443bd742d4ea89ea1 (diff)
elementary/segment_control - Elm_Segment_Item -> Elm_Object_Item
SVN revision: 66730
Diffstat (limited to 'src')
-rw-r--r--src/bin/test_segment_control.c18
-rw-r--r--src/examples/segment_control_example.c18
-rw-r--r--src/lib/elm_segment_control.c104
-rw-r--r--src/lib/elm_segment_control.h22
4 files changed, 78 insertions, 84 deletions
diff --git a/src/bin/test_segment_control.c b/src/bin/test_segment_control.c
index aadf0707f..93bb710e1 100644
--- a/src/bin/test_segment_control.c
+++ b/src/bin/test_segment_control.c
@@ -8,7 +8,7 @@ void
8test_segment_control(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__) 8test_segment_control(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
9{ 9{
10 Evas_Object *win, *bg, *ic, *ic1, *ic2, *ic3, *ic4, *ic5; 10 Evas_Object *win, *bg, *ic, *ic1, *ic2, *ic3, *ic4, *ic5;
11 Elm_Segment_Item *it; 11 Elm_Object_Item *seg_it;
12 12
13 Evas_Object * in_layout; 13 Evas_Object * in_layout;
14 Evas_Object *segment1, *segment2, *segment3, *segment4; 14 Evas_Object *segment1, *segment2, *segment3, *segment4;
@@ -47,16 +47,16 @@ test_segment_control(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *e
47 47
48 segment1 = elm_segment_control_add(win); 48 segment1 = elm_segment_control_add(win);
49 elm_segment_control_item_add(segment1, NULL, "Only Text"); 49 elm_segment_control_item_add(segment1, NULL, "Only Text");
50 it = elm_segment_control_item_add(segment1, ic, NULL); 50 seg_it = elm_segment_control_item_add(segment1, ic, NULL);
51 elm_segment_control_item_selected_set(it, EINA_TRUE); 51 elm_segment_control_item_selected_set(seg_it, EINA_TRUE);
52 elm_segment_control_item_add(segment1, ic1, "Text_Icon_test"); 52 elm_segment_control_item_add(segment1, ic1, "Text_Icon_test");
53 elm_segment_control_item_add(segment1, NULL, "Seg4"); 53 elm_segment_control_item_add(segment1, NULL, "Seg4");
54 elm_segment_control_item_add(segment1, NULL, "Seg5"); 54 elm_segment_control_item_add(segment1, NULL, "Seg5");
55 55
56 segment2 = elm_segment_control_add(win); 56 segment2 = elm_segment_control_add(win);
57 elm_segment_control_item_add(segment2, NULL, "SegmentItem"); 57 elm_segment_control_item_add(segment2, NULL, "SegmentItem");
58 it = elm_segment_control_item_add(segment2, NULL, "SegmentItem"); 58 seg_it = elm_segment_control_item_add(segment2, NULL, "SegmentItem");
59 elm_segment_control_item_selected_set(it, EINA_TRUE); 59 elm_segment_control_item_selected_set(seg_it, EINA_TRUE);
60 elm_segment_control_item_add(segment2, NULL, "SegmentControlItem"); 60 elm_segment_control_item_add(segment2, NULL, "SegmentControlItem");
61 elm_segment_control_item_add(segment2, NULL, "SegmentItem"); 61 elm_segment_control_item_add(segment2, NULL, "SegmentItem");
62 62
@@ -77,8 +77,8 @@ test_segment_control(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *e
77 77
78 segment3 = elm_segment_control_add(win); 78 segment3 = elm_segment_control_add(win);
79 elm_segment_control_item_add(segment3, ic2, NULL); 79 elm_segment_control_item_add(segment3, ic2, NULL);
80 it = elm_segment_control_item_add(segment3, ic3, NULL); 80 seg_it = elm_segment_control_item_add(segment3, ic3, NULL);
81 elm_segment_control_item_selected_set(it, EINA_TRUE); 81 elm_segment_control_item_selected_set(seg_it, EINA_TRUE);
82 elm_segment_control_item_add(segment3, ic4, NULL); 82 elm_segment_control_item_add(segment3, ic4, NULL);
83 83
84 ic5 = elm_icon_add(in_layout); 84 ic5 = elm_icon_add(in_layout);
@@ -88,8 +88,8 @@ test_segment_control(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *e
88 88
89 segment4 = elm_segment_control_add(win); 89 segment4 = elm_segment_control_add(win);
90 elm_segment_control_item_add(segment4, NULL, "Disabled"); 90 elm_segment_control_item_add(segment4, NULL, "Disabled");
91 it = elm_segment_control_item_add(segment4, ic5, "Disabled"); 91 seg_it = elm_segment_control_item_add(segment4, ic5, "Disabled");
92 elm_segment_control_item_selected_set(it, EINA_TRUE); 92 elm_segment_control_item_selected_set(seg_it, EINA_TRUE);
93 elm_segment_control_item_add(segment4, NULL, "Disabled"); 93 elm_segment_control_item_add(segment4, NULL, "Disabled");
94 elm_object_disabled_set(segment4, EINA_TRUE); 94 elm_object_disabled_set(segment4, EINA_TRUE);
95 95
diff --git a/src/examples/segment_control_example.c b/src/examples/segment_control_example.c
index 746d3b95b..dcc97cd59 100644
--- a/src/examples/segment_control_example.c
+++ b/src/examples/segment_control_example.c
@@ -28,7 +28,7 @@ int
28elm_main(int argc __UNUSED__, char **argv __UNUSED__) 28elm_main(int argc __UNUSED__, char **argv __UNUSED__)
29{ 29{
30 Evas_Object *win, *bg, *sc, *ic; 30 Evas_Object *win, *bg, *sc, *ic;
31 Elm_Segment_Item *it; 31 Elm_Object_Item *seg_it;
32 int count, index; 32 int count, index;
33 33
34 win = elm_win_add(NULL, "segment_control", ELM_WIN_BASIC); 34 win = elm_win_add(NULL, "segment_control", ELM_WIN_BASIC);
@@ -62,20 +62,20 @@ elm_main(int argc __UNUSED__, char **argv __UNUSED__)
62 count = elm_segment_control_item_count_get(sc); 62 count = elm_segment_control_item_count_get(sc);
63 elm_segment_control_item_insert_at(sc, NULL, "Inserted at", count - 1); 63 elm_segment_control_item_insert_at(sc, NULL, "Inserted at", count - 1);
64 64
65 it = elm_segment_control_item_insert_at(sc, NULL, "To be deleted", 2); 65 seg_it = elm_segment_control_item_insert_at(sc, NULL, "To be deleted", 2);
66 elm_segment_control_item_del(it); 66 elm_segment_control_item_del(seg_it);
67 67
68 elm_segment_control_item_insert_at(sc, NULL, "To be deleted", 2); 68 elm_segment_control_item_insert_at(sc, NULL, "To be deleted", 2);
69 elm_segment_control_item_del_at(sc, 2); 69 elm_segment_control_item_del_at(sc, 2);
70 70
71 it = elm_segment_control_item_get(sc, 0); 71 seg_it = elm_segment_control_item_get(sc, 0);
72 elm_segment_control_item_label_set(it, "Only Text"); 72 elm_segment_control_item_label_set(seg_it, "Only Text");
73 73
74 count = elm_segment_control_item_count_get(sc); 74 count = elm_segment_control_item_count_get(sc);
75 it = elm_segment_control_item_get(sc, count / 2); 75 seg_it = elm_segment_control_item_get(sc, count / 2);
76 elm_segment_control_item_selected_set(it, EINA_TRUE); 76 elm_segment_control_item_selected_set(seg_it, EINA_TRUE);
77 it = elm_segment_control_item_selected_get(sc); 77 seg_it = elm_segment_control_item_selected_get(sc);
78 index = elm_segment_control_item_index_get(it); 78 index = elm_segment_control_item_index_get(seg_it);
79 printf("Item selected: %i\n", index); 79 printf("Item selected: %i\n", index);
80 80
81 evas_object_show(win); 81 evas_object_show(win);
diff --git a/src/lib/elm_segment_control.c b/src/lib/elm_segment_control.c
index 0fd4ab0e1..b73ec4759 100644
--- a/src/lib/elm_segment_control.c
+++ b/src/lib/elm_segment_control.c
@@ -2,6 +2,7 @@
2#include "elm_priv.h" 2#include "elm_priv.h"
3 3
4typedef struct _Widget_Data Widget_Data; 4typedef struct _Widget_Data Widget_Data;
5typedef struct _Elm_Segment_Item Elm_Segment_Item;
5 6
6struct _Widget_Data 7struct _Widget_Data
7{ 8{
@@ -518,7 +519,7 @@ elm_segment_control_add(Evas_Object *parent)
518 return obj; 519 return obj;
519} 520}
520 521
521EAPI Elm_Segment_Item * 522EAPI Elm_Object_Item *
522elm_segment_control_item_add(Evas_Object *obj, Evas_Object *icon, 523elm_segment_control_item_add(Evas_Object *obj, Evas_Object *icon,
523 const char *label) 524 const char *label)
524{ 525{
@@ -535,10 +536,10 @@ elm_segment_control_item_add(Evas_Object *obj, Evas_Object *icon,
535 wd->seg_items = eina_list_append(wd->seg_items, it); 536 wd->seg_items = eina_list_append(wd->seg_items, it);
536 _update_list(wd); 537 _update_list(wd);
537 538
538 return it; 539 return (Elm_Object_Item *) it;
539} 540}
540 541
541EAPI Elm_Segment_Item * 542EAPI Elm_Object_Item *
542elm_segment_control_item_insert_at(Evas_Object *obj, Evas_Object *icon, 543elm_segment_control_item_insert_at(Evas_Object *obj, Evas_Object *icon,
543 const char *label, int idx) 544 const char *label, int idx)
544{ 545{
@@ -560,19 +561,20 @@ elm_segment_control_item_insert_at(Evas_Object *obj, Evas_Object *icon,
560 wd->seg_items = eina_list_append(wd->seg_items, it); 561 wd->seg_items = eina_list_append(wd->seg_items, it);
561 562
562 _update_list(wd); 563 _update_list(wd);
563 return it; 564 return (Elm_Object_Item *) it;
564} 565}
565 566
566EAPI void 567EAPI void
567elm_segment_control_item_del(Elm_Segment_Item *it) 568elm_segment_control_item_del(Elm_Object_Item *it)
568{ 569{
569 ELM_WIDGET_ITEM_WIDTYPE_CHECK_OR_RETURN(it); 570 ELM_OBJ_ITEM_CHECK_OR_RETURN(it);
570 Widget_Data *wd; 571 Widget_Data *wd;
572 Elm_Segment_Item *item = (Elm_Segment_Item *) it;
571 573
572 wd = elm_widget_item_data_get(it); 574 wd = elm_widget_item_data_get(item);
573 if (!wd) return; 575 if (!wd) return;
574 576
575 _item_free(it); 577 _item_free(item);
576 _update_list(wd); 578 _update_list(wd);
577} 579}
578 580
@@ -605,22 +607,23 @@ elm_segment_control_item_label_get(const Evas_Object *obj, int idx)
605} 607}
606 608
607EAPI void 609EAPI void
608elm_segment_control_item_label_set(Elm_Segment_Item* it, const char* label) 610elm_segment_control_item_label_set(Elm_Object_Item* it, const char* label)
609{ 611{
610 ELM_WIDGET_ITEM_WIDTYPE_CHECK_OR_RETURN(it); 612 ELM_OBJ_ITEM_CHECK_OR_RETURN(it);
611 Widget_Data *wd; 613 Widget_Data *wd;
614 Elm_Segment_Item *item = (Elm_Segment_Item *) it;
612 615
613 wd = elm_widget_item_data_get(it); 616 wd = elm_widget_item_data_get(item);
614 if (!wd) return; 617 if (!wd) return;
615 618
616 eina_stringshare_replace(&it->label, label); 619 eina_stringshare_replace(&item->label, label);
617 if (it->label) 620 if (item->label)
618 edje_object_signal_emit(VIEW(it), "elm,state,text,visible", "elm"); 621 edje_object_signal_emit(VIEW(item), "elm,state,text,visible", "elm");
619 else 622 else
620 edje_object_signal_emit(VIEW(it), "elm,state,text,hidden", "elm"); 623 edje_object_signal_emit(VIEW(item), "elm,state,text,hidden", "elm");
621 edje_object_message_signal_process(VIEW(it)); 624 edje_object_message_signal_process(VIEW(item));
622 //label can be NULL also. 625 //label can be NULL also.
623 edje_object_part_text_set(VIEW(it), "elm.text", it->label); 626 edje_object_part_text_set(VIEW(item), "elm.text", item->label);
624} 627}
625 628
626EAPI Evas_Object * 629EAPI Evas_Object *
@@ -636,27 +639,28 @@ elm_segment_control_item_icon_get(const Evas_Object *obj, int idx)
636} 639}
637 640
638EAPI void 641EAPI void
639elm_segment_control_item_icon_set(Elm_Segment_Item *it, Evas_Object *icon) 642elm_segment_control_item_icon_set(Elm_Object_Item *it, Evas_Object *icon)
640{ 643{
641 ELM_WIDGET_ITEM_WIDTYPE_CHECK_OR_RETURN(it); 644 ELM_OBJ_ITEM_CHECK_OR_RETURN(it);
645 Elm_Segment_Item *item = (Elm_Segment_Item *) it;
642 646
643 //Remove the existing icon 647 //Remove the existing icon
644 if (it->icon) 648 if (item->icon)
645 { 649 {
646 edje_object_part_unswallow(VIEW(it), it->icon); 650 edje_object_part_unswallow(VIEW(item), item->icon);
647 evas_object_del(it->icon); 651 evas_object_del(item->icon);
648 it->icon = NULL; 652 item->icon = NULL;
649 } 653 }
650 654
651 it->icon = icon; 655 item->icon = icon;
652 if (it->icon) 656 if (item->icon)
653 { 657 {
654 elm_widget_sub_object_add(VIEW(it), it->icon); 658 elm_widget_sub_object_add(VIEW(item), item->icon);
655 edje_object_part_swallow(VIEW(it), "elm.swallow.icon", it->icon); 659 edje_object_part_swallow(VIEW(item), "elm.swallow.icon", item->icon);
656 edje_object_signal_emit(VIEW(it), "elm,state,icon,visible", "elm"); 660 edje_object_signal_emit(VIEW(item), "elm,state,icon,visible", "elm");
657 } 661 }
658 else 662 else
659 edje_object_signal_emit(VIEW(it), "elm,state,icon,hidden", "elm"); 663 edje_object_signal_emit(VIEW(item), "elm,state,icon,hidden", "elm");
660} 664}
661 665
662EAPI int 666EAPI int
@@ -672,63 +676,55 @@ elm_segment_control_item_count_get(const Evas_Object *obj)
672} 676}
673 677
674EAPI Evas_Object* 678EAPI Evas_Object*
675elm_segment_control_item_object_get(const Elm_Segment_Item *it) 679elm_segment_control_item_object_get(const Elm_Object_Item *it)
676{ 680{
677 ELM_WIDGET_ITEM_WIDTYPE_CHECK_OR_RETURN(it, NULL); 681 ELM_OBJ_ITEM_CHECK_OR_RETURN(it, NULL);
678
679 return VIEW(it); 682 return VIEW(it);
680} 683}
681 684
682EAPI Elm_Segment_Item* 685EAPI Elm_Object_Item*
683elm_segment_control_item_selected_get(const Evas_Object *obj) 686elm_segment_control_item_selected_get(const Evas_Object *obj)
684{ 687{
685 ELM_CHECK_WIDTYPE(obj, widtype) NULL; 688 ELM_CHECK_WIDTYPE(obj, widtype) NULL;
686 Widget_Data *wd; 689 Widget_Data *wd = elm_widget_data_get(obj);
687
688 wd = elm_widget_data_get(obj);
689 if (!wd) return NULL; 690 if (!wd) return NULL;
690 691 return (Elm_Object_Item *) wd->selected_item;
691 return wd->selected_item;
692} 692}
693 693
694EAPI void 694EAPI void
695elm_segment_control_item_selected_set(Elm_Segment_Item *it, Eina_Bool selected) 695elm_segment_control_item_selected_set(Elm_Object_Item *it, Eina_Bool selected)
696{ 696{
697 ELM_WIDGET_ITEM_WIDTYPE_CHECK_OR_RETURN(it); 697 ELM_OBJ_ITEM_CHECK_OR_RETURN(it);
698 Widget_Data *wd; 698 Widget_Data *wd;
699 Elm_Segment_Item *item = (Elm_Segment_Item *) it;
699 700
700 wd = elm_widget_item_data_get(it); 701 wd = elm_widget_item_data_get(item);
701 if (!wd) return; 702 if (!wd) return;
702 703
703 if (it == wd->selected_item) 704 if (item == wd->selected_item)
704 { 705 {
705 //already in selected state. 706 //already in selected state.
706 if (selected) return; 707 if (selected) return;
707 708
708 //unselect case 709 //unselect case
709 _segment_off(it); 710 _segment_off(item);
710 } 711 }
711 else if (selected) 712 else if (selected)
712 _segment_on(it); 713 _segment_on(item);
713 714
714 return; 715 return;
715} 716}
716 717
717EAPI Elm_Segment_Item * 718EAPI Elm_Object_Item *
718elm_segment_control_item_get(const Evas_Object *obj, int idx) 719elm_segment_control_item_get(const Evas_Object *obj, int idx)
719{ 720{
720 ELM_CHECK_WIDTYPE(obj, widtype) NULL; 721 ELM_CHECK_WIDTYPE(obj, widtype) NULL;
721 Elm_Segment_Item *it; 722 return (Elm_Object_Item *) _item_find(obj, idx);
722
723 it = _item_find(obj, idx);
724
725 return it;
726} 723}
727 724
728EAPI int 725EAPI int
729elm_segment_control_item_index_get(const Elm_Segment_Item *it) 726elm_segment_control_item_index_get(const Elm_Object_Item *it)
730{ 727{
731 ELM_WIDGET_ITEM_WIDTYPE_CHECK_OR_RETURN(it, -1); 728 ELM_OBJ_ITEM_CHECK_OR_RETURN(it, -1);
732 729 return ((Elm_Segment_Item *) it)->seg_index;
733 return it->seg_index;
734} 730}
diff --git a/src/lib/elm_segment_control.h b/src/lib/elm_segment_control.h
index 8c09bf2a0..6e5b8efad 100644
--- a/src/lib/elm_segment_control.h
+++ b/src/lib/elm_segment_control.h
@@ -35,8 +35,6 @@
35 * @{ 35 * @{
36 */ 36 */
37 37
38typedef struct _Elm_Segment_Item Elm_Segment_Item; /**< Item handle for a segment control widget. */
39
40/** 38/**
41 * Add a new segment control widget to the given parent Elementary 39 * Add a new segment control widget to the given parent Elementary
42 * (container) object. 40 * (container) object.
@@ -91,7 +89,7 @@ EAPI Evas_Object *elm_segment_control_add(Evas_Object *parent);
91 * 89 *
92 * @ingroup SegmentControl 90 * @ingroup SegmentControl
93 */ 91 */
94EAPI Elm_Segment_Item *elm_segment_control_item_add(Evas_Object *obj, Evas_Object *icon, const char *label); 92EAPI Elm_Object_Item *elm_segment_control_item_add(Evas_Object *obj, Evas_Object *icon, const char *label);
95 93
96/** 94/**
97 * Insert a new item to the segment control object at specified position. 95 * Insert a new item to the segment control object at specified position.
@@ -124,7 +122,7 @@ EAPI Elm_Segment_Item *elm_segment_control_item_add(Evas_Object *obj, Evas_Objec
124 * 122 *
125 * @ingroup SegmentControl 123 * @ingroup SegmentControl
126 */ 124 */
127EAPI Elm_Segment_Item *elm_segment_control_item_insert_at(Evas_Object *obj, Evas_Object *icon, const char *label, int index); 125EAPI Elm_Object_Item *elm_segment_control_item_insert_at(Evas_Object *obj, Evas_Object *icon, const char *label, int index);
128 126
129/** 127/**
130 * Remove a segment control item from its parent, deleting it. 128 * Remove a segment control item from its parent, deleting it.
@@ -136,7 +134,7 @@ EAPI Elm_Segment_Item *elm_segment_control_item_insert_at(Evas_Object *obj, Evas
136 * 134 *
137 * @ingroup SegmentControl 135 * @ingroup SegmentControl
138 */ 136 */
139EAPI void elm_segment_control_item_del(Elm_Segment_Item *it); 137EAPI void elm_segment_control_item_del(Elm_Object_Item *it);
140 138
141/** 139/**
142 * Remove a segment control item at given index from its parent, 140 * Remove a segment control item at given index from its parent,
@@ -178,7 +176,7 @@ EAPI int elm_segment_control_item_count_get(const Evas_Object *obj
178 * 176 *
179 * @ingroup SegmentControl 177 * @ingroup SegmentControl
180 */ 178 */
181EAPI Elm_Segment_Item *elm_segment_control_item_get(const Evas_Object *obj, int index); 179EAPI Elm_Object_Item *elm_segment_control_item_get(const Evas_Object *obj, int index);
182 180
183/** 181/**
184 * Get the label of item. 182 * Get the label of item.
@@ -217,7 +215,7 @@ EAPI const char *elm_segment_control_item_label_get(const Evas_Object *obj
217 * 215 *
218 * @ingroup SegmentControl 216 * @ingroup SegmentControl
219 */ 217 */
220EAPI void elm_segment_control_item_label_set(Elm_Segment_Item *it, const char *label); 218EAPI void elm_segment_control_item_label_set(Elm_Object_Item *it, const char *label);
221 219
222/** 220/**
223 * Get the icon associated to the item. 221 * Get the icon associated to the item.
@@ -261,7 +259,7 @@ EAPI Evas_Object *elm_segment_control_item_icon_get(const Evas_Object *obj,
261 * 259 *
262 * @ingroup SegmentControl 260 * @ingroup SegmentControl
263 */ 261 */
264EAPI void elm_segment_control_item_icon_set(Elm_Segment_Item *it, Evas_Object *icon); 262EAPI void elm_segment_control_item_icon_set(Elm_Object_Item *it, Evas_Object *icon);
265 263
266/** 264/**
267 * Get the index of an item. 265 * Get the index of an item.
@@ -276,7 +274,7 @@ EAPI void elm_segment_control_item_icon_set(Elm_Segment_Item *it, E
276 * 274 *
277 * @ingroup SegmentControl 275 * @ingroup SegmentControl
278 */ 276 */
279EAPI int elm_segment_control_item_index_get(const Elm_Segment_Item *it); 277EAPI int elm_segment_control_item_index_get(const Elm_Object_Item *it);
280 278
281/** 279/**
282 * Get the base object of the item. 280 * Get the base object of the item.
@@ -288,7 +286,7 @@ EAPI int elm_segment_control_item_index_get(const Elm_Segment_Item
288 * 286 *
289 * @ingroup SegmentControl 287 * @ingroup SegmentControl
290 */ 288 */
291EAPI Evas_Object *elm_segment_control_item_object_get(const Elm_Segment_Item *it); 289EAPI Evas_Object *elm_segment_control_item_object_get(const Elm_Object_Item *it);
292 290
293/** 291/**
294 * Get the selected item. 292 * Get the selected item.
@@ -304,7 +302,7 @@ EAPI Evas_Object *elm_segment_control_item_object_get(const Elm_Segment_Ite
304 * 302 *
305 * @ingroup SegmentControl 303 * @ingroup SegmentControl
306 */ 304 */
307EAPI Elm_Segment_Item *elm_segment_control_item_selected_get(const Evas_Object *obj); 305EAPI Elm_Object_Item *elm_segment_control_item_selected_get(const Evas_Object *obj);
308 306
309/** 307/**
310 * Set the selected state of an item. 308 * Set the selected state of an item.
@@ -325,7 +323,7 @@ EAPI Elm_Segment_Item *elm_segment_control_item_selected_get(const Evas_Object *
325 * 323 *
326 * @ingroup SegmentControl 324 * @ingroup SegmentControl
327 */ 325 */
328EAPI void elm_segment_control_item_selected_set(Elm_Segment_Item *it, Eina_Bool select); 326EAPI void elm_segment_control_item_selected_set(Elm_Object_Item *it, Eina_Bool select);
329 327
330/** 328/**
331 * @} 329 * @}