[elm] Init fix for segment control.

SVN revision: 74018
This commit is contained in:
Gustavo Lima Chaves 2012-07-17 18:45:27 +00:00
parent 3e35c5c2eb
commit 04d48d8499
1 changed files with 2 additions and 2 deletions

View File

@ -553,6 +553,8 @@ _elm_segment_control_smart_add(Evas_Object *obj)
(obj, EVAS_CALLBACK_RESIZE, _on_move_resize, obj);
evas_object_event_callback_add
(obj, EVAS_CALLBACK_MOVE, _on_move_resize, obj);
elm_layout_sizing_eval(obj);
}
static void
@ -607,8 +609,6 @@ elm_segment_control_add(Evas_Object *parent)
if (!elm_widget_sub_object_add(parent, obj))
ERR("could not add %p as sub object of %p", obj, parent);
elm_layout_sizing_eval(obj);
return obj;
}