[SegmentControl] Fixed clipping issue on segment item add/insert and
authorPrince Kr Dubey <prince.dubey@samsung.com>
Fri, 22 Jul 2011 05:32:42 +0000 (11:02 +0530)
committerPrince Kr Dubey <prince.dubey@samsung.com>
Fri, 22 Jul 2011 05:32:42 +0000 (11:02 +0530)
dynamic theme changing issue.

Change-Id: I57a73634de2f13fac8955944120581d806e50ade

src/lib/elm_segment_control.c

index d9c085d..e955144 100644 (file)
@@ -348,7 +348,10 @@ _swallow_item_objects(Elm_Segment_Item *it)
      edje_object_signal_emit(it->base.view, "elm,state,icon,hidden", "elm");
 
    if (it->label)
+   {
+     edje_object_part_text_set(it->base.view, "elm.text", it->label);
      edje_object_signal_emit(it->base.view, "elm,state,text,visible", "elm");
+   }
    else
      edje_object_signal_emit(it->base.view, "elm,state,text,hidden", "elm");
    edje_object_message_signal_process(it->base.view);
@@ -463,6 +466,8 @@ _item_new(Evas_Object *obj, Evas_Object *icon, const char *label)
                          *_elm_config->scale);
    evas_object_smart_member_add(it->base.view, obj);
    elm_widget_sub_object_add(obj, it->base.view);
+   evas_object_clip_set(it->base.view, evas_object_clip_get(obj));
+
    _elm_theme_object_set(obj, it->base.view, "segment_control", "item",
                          elm_object_style_get(obj));
    edje_object_mirrored_set(it->base.view,