widgets - propagate current parent orientation to sub object.
authorChunEon Park <hermet@hermet.pe.kr>
Fri, 9 May 2014 06:18:49 +0000 (15:18 +0900)
committerChunEon Park <hermet@hermet.pe.kr>
Fri, 9 May 2014 06:18:49 +0000 (15:18 +0900)
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

index 25e6be2..f59dfa0 100644 (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