summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChunEon Park <hermet@hermet.pe.kr>2014-05-09 15:18:49 +0900
committerChunEon Park <hermet@hermet.pe.kr>2014-05-09 15:18:49 +0900
commitb2b22c56bd4937f616b8034fc3e136c08bfe3f1e (patch)
tree718a17804d3113bd22d165677e984df6314d9fce
parent508fa850f4fa1da376fbf9d26906d328558e6307 (diff)
downloadelementary-b2b22c56bd4937f616b8034fc3e136c08bfe3f1e.tar.gz
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
-rw-r--r--src/lib/elm_widget.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/lib/elm_widget.c b/src/lib/elm_widget.c
index 25e6be290..f59dfa03a 100644
--- a/src/lib/elm_widget.c
+++ b/src/lib/elm_widget.c
@@ -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