cedric pushed a commit to branch master. http://git.enlightenment.org/core/elementary.git/commit/?id=4421aee9d5aef3b670e5ab860d2a0a785c458486
commit 4421aee9d5aef3b670e5ab860d2a0a785c458486 Author: Jean Guyomarc'h <jean.guyoma...@gmail.com> Date: Mon Nov 9 16:13:13 2015 -0800 segment_control: fix variable affectation Summary: When an Elm_Segment_Control object is created, the constructor calls the smart_add() behind the scenes. It then calls _update_list() which calls _position_items(), with the sd->obj unset (because it was set after calling super constructors). This led to a CRI() (and therefore to a backtrace) on the creation of each Elm_Segment_Control. @fix Test Plan: elementary_test Reviewers: stefan_schmidt, cedric, raster Differential Revision: https://phab.enlightenment.org/D3276 Signed-off-by: Cedric BAIL <ced...@osg.samsung.com> --- src/lib/elm_segment_control.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/lib/elm_segment_control.c b/src/lib/elm_segment_control.c index 169f32b..68d46da 100644 --- a/src/lib/elm_segment_control.c +++ b/src/lib/elm_segment_control.c @@ -605,8 +605,9 @@ _elm_segment_control_item_eo_base_constructor(Eo *obj, Elm_Segment_Control_Item_ } EOLIAN static void -_elm_segment_control_evas_object_smart_add(Eo *obj, Elm_Segment_Control_Data *_pd EINA_UNUSED) +_elm_segment_control_evas_object_smart_add(Eo *obj, Elm_Segment_Control_Data *sd) { + sd->obj = obj; eo_do_super(obj, MY_CLASS, evas_obj_smart_add()); elm_widget_sub_object_parent_add(obj); @@ -698,10 +699,9 @@ elm_segment_control_add(Evas_Object *parent) } EOLIAN static Eo * -_elm_segment_control_eo_base_constructor(Eo *obj, Elm_Segment_Control_Data *sd) +_elm_segment_control_eo_base_constructor(Eo *obj, Elm_Segment_Control_Data *sd EINA_UNUSED) { obj = eo_do_super_ret(obj, MY_CLASS, obj, eo_constructor()); - sd->obj = obj; eo_do(obj, evas_obj_type_set(MY_CLASS_NAME_LEGACY), --