hermet pushed a commit to branch master.

http://git.enlightenment.org/core/elementary.git/commit/?id=b2b22c56bd4937f616b8034fc3e136c08bfe3f1e

commit b2b22c56bd4937f616b8034fc3e136c08bfe3f1e
Author: ChunEon Park <[email protected]>
Date:   Fri May 9 15:18:49 2014 +0900

    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
---
 src/lib/elm_widget.c | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/src/lib/elm_widget.c b/src/lib/elm_widget.c
index 25e6be2..f59dfa0 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

-- 


Reply via email to