forked from enlightenment/efl
evas: porting evas smart callbacks to eo
This commit is contained in:
parent
f9c116a487
commit
7d493fb420
|
@ -221,7 +221,7 @@ _evas_box_internal_append(Eo *o, Evas_Object_Box_Data *priv, Evas_Object *child)
|
||||||
|
|
||||||
priv->children = eina_list_append(priv->children, opt);
|
priv->children = eina_list_append(priv->children, opt);
|
||||||
priv->children_changed = EINA_TRUE;
|
priv->children_changed = EINA_TRUE;
|
||||||
evas_object_smart_callback_call(o, SIG_CHILD_ADDED, opt);
|
eo_do(o, eo_event_callback_call(EVAS_BOX_EVENT_CHILD_ADDED, opt));
|
||||||
|
|
||||||
return opt;
|
return opt;
|
||||||
}
|
}
|
||||||
|
@ -237,7 +237,7 @@ _evas_box_internal_prepend(Eo *o, Evas_Object_Box_Data *priv, Evas_Object *child
|
||||||
|
|
||||||
priv->children = eina_list_prepend(priv->children, opt);
|
priv->children = eina_list_prepend(priv->children, opt);
|
||||||
priv->children_changed = EINA_TRUE;
|
priv->children_changed = EINA_TRUE;
|
||||||
evas_object_smart_callback_call(o, SIG_CHILD_ADDED, opt);
|
eo_do(o, eo_event_callback_call(EVAS_BOX_EVENT_CHILD_ADDED, opt));
|
||||||
|
|
||||||
return opt;
|
return opt;
|
||||||
}
|
}
|
||||||
|
@ -261,7 +261,7 @@ _evas_box_internal_insert_before(Eo *o, Evas_Object_Box_Data *priv, Evas_Object
|
||||||
priv->children = eina_list_prepend_relative
|
priv->children = eina_list_prepend_relative
|
||||||
(priv->children, new_opt, opt);
|
(priv->children, new_opt, opt);
|
||||||
priv->children_changed = EINA_TRUE;
|
priv->children_changed = EINA_TRUE;
|
||||||
evas_object_smart_callback_call(o, SIG_CHILD_ADDED, new_opt);
|
eo_do(o, eo_event_callback_call(EVAS_BOX_EVENT_CHILD_ADDED, new_opt));
|
||||||
return new_opt;
|
return new_opt;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -288,7 +288,7 @@ _evas_box_internal_insert_after(Eo *o, Evas_Object_Box_Data *priv, Evas_Object *
|
||||||
priv->children = eina_list_append_relative
|
priv->children = eina_list_append_relative
|
||||||
(priv->children, new_opt, opt);
|
(priv->children, new_opt, opt);
|
||||||
priv->children_changed = EINA_TRUE;
|
priv->children_changed = EINA_TRUE;
|
||||||
evas_object_smart_callback_call(o, SIG_CHILD_ADDED, new_opt);
|
eo_do(o, eo_event_callback_call(EVAS_BOX_EVENT_CHILD_ADDED, new_opt));
|
||||||
return new_opt;
|
return new_opt;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -311,7 +311,7 @@ _evas_box_internal_insert_at(Eo *o, Evas_Object_Box_Data *priv, Evas_Object *chi
|
||||||
|
|
||||||
priv->children = eina_list_prepend(priv->children, new_opt);
|
priv->children = eina_list_prepend(priv->children, new_opt);
|
||||||
priv->children_changed = EINA_TRUE;
|
priv->children_changed = EINA_TRUE;
|
||||||
evas_object_smart_callback_call(o, SIG_CHILD_ADDED, new_opt);
|
eo_do(o, eo_event_callback_call(EVAS_BOX_EVENT_CHILD_ADDED, new_opt));
|
||||||
return new_opt;
|
return new_opt;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -330,7 +330,7 @@ _evas_box_internal_insert_at(Eo *o, Evas_Object_Box_Data *priv, Evas_Object *chi
|
||||||
priv->children = eina_list_prepend_relative
|
priv->children = eina_list_prepend_relative
|
||||||
(priv->children, new_opt, opt);
|
(priv->children, new_opt, opt);
|
||||||
priv->children_changed = EINA_TRUE;
|
priv->children_changed = EINA_TRUE;
|
||||||
evas_object_smart_callback_call(o, SIG_CHILD_ADDED, new_opt);
|
eo_do(o, eo_event_callback_call(EVAS_BOX_EVENT_CHILD_ADDED, new_opt));
|
||||||
return new_opt;
|
return new_opt;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -352,7 +352,7 @@ _evas_box_internal_remove(Eo *o, Evas_Object_Box_Data *priv, Evas_Object *child)
|
||||||
priv->children = eina_list_remove(priv->children, opt);
|
priv->children = eina_list_remove(priv->children, opt);
|
||||||
eo_do(o, evas_obj_box_internal_option_free(opt));
|
eo_do(o, evas_obj_box_internal_option_free(opt));
|
||||||
priv->children_changed = EINA_TRUE;
|
priv->children_changed = EINA_TRUE;
|
||||||
evas_object_smart_callback_call(o, SIG_CHILD_REMOVED, obj);
|
eo_do(o, eo_event_callback_call(EVAS_BOX_EVENT_CHILD_REMOVED, obj));
|
||||||
|
|
||||||
return obj;
|
return obj;
|
||||||
}
|
}
|
||||||
|
@ -380,7 +380,7 @@ _evas_box_internal_remove_at(Eo *o, Evas_Object_Box_Data *priv, unsigned int pos
|
||||||
priv->children = eina_list_remove_list(priv->children, node);
|
priv->children = eina_list_remove_list(priv->children, node);
|
||||||
eo_do(o, evas_obj_box_internal_option_free(opt));
|
eo_do(o, evas_obj_box_internal_option_free(opt));
|
||||||
priv->children_changed = EINA_TRUE;
|
priv->children_changed = EINA_TRUE;
|
||||||
evas_object_smart_callback_call(o, SIG_CHILD_REMOVED, obj);
|
eo_do(o, eo_event_callback_call(EVAS_BOX_EVENT_CHILD_REMOVED, obj));
|
||||||
return obj;
|
return obj;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue