hermet pushed a commit to branch master.

commit e452a98cf8f6a436c0367a34b17c9e179db12510
Author: ChunEon Park <[email protected]>
Date:   Tue Jul 30 18:17:17 2013 +0900

    elementary/segment control - updated example
---
 src/bin/test_segment_control.c | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/src/bin/test_segment_control.c b/src/bin/test_segment_control.c
index 8dcbd21..0109c25 100644
--- a/src/bin/test_segment_control.c
+++ b/src/bin/test_segment_control.c
@@ -118,7 +118,13 @@ test_segment_control(void *data __UNUSED__, Evas_Object 
*obj __UNUSED__, void *e
         evas_object_size_hint_weight_set(sc, em->weight.w, em->weight.h);
         evas_object_size_hint_align_set(sc, em->align.x, em->align.y);
         elm_segment_control_item_add(sc, NULL, "Disabled");
-        seg_it = elm_segment_control_item_add(sc, NULL, "Disabled");
+
+        //icon
+        ic = elm_icon_add(sc);
+        elm_image_file_set(ic, buf, NULL);
+        evas_object_size_hint_aspect_set(ic, EVAS_ASPECT_CONTROL_BOTH, 1, 1);
+
+        seg_it = elm_segment_control_item_add(sc, ic, "Disabled");
         elm_segment_control_item_selected_set(seg_it, EINA_TRUE);
         elm_segment_control_item_add(sc, NULL, "Disabled");
         elm_object_disabled_set(sc, EINA_TRUE);

-- 

------------------------------------------------------------------------------
Get your SQL database under version control now!
Version control is standard for application code, but databases havent 
caught up. So what steps can you take to put your SQL databases under 
version control? Why should you start doing it? Read more to find out.
http://pubads.g.doubleclick.net/gampad/clk?id=49501711&iu=/4140/ostg.clktrk

Reply via email to