widgets - propagate current parent orientation to sub object.

If object is unset then set to parent again, the current orientation signals
should be emitted so as to be latest state.

@fix
This commit is contained in:
ChunEon Park 2014-05-09 15:18:49 +09:00
parent 81a509fe09
commit 1a99f9274c
1 changed files with 6 additions and 1 deletions

View File

@ -988,7 +988,12 @@ _elm_widget_sub_object_add(Eo *obj, Elm_Widget_Smart_Data *sd, Evas_Object *sobj
return EINA_FALSE;
}
sdc->parent_obj = obj;
sdc->orient_mode = sd->orient_mode;
if (!sdc->on_create)
eo_do(sobj, elm_obj_widget_orientation_set(sd->orient_mode));
else
sdc->orient_mode = sd->orient_mode;
_elm_widget_top_win_focused_set(sobj, sd->top_win_focused);
/* update child focusable-ness on self and parents, now that a