Changeset View
Changeset View
Standalone View
Standalone View
src/lib/elementary/efl_ui_widget.c
Show First 20 Lines • Show All 4097 Lines • ▼ Show 20 Line(s) | |||||
4098 | EOLIAN static void | 4098 | EOLIAN static void | ||
4099 | _elm_widget_item_efl_object_del(const Eo *eo_item, Elm_Widget_Item_Data *item) | 4099 | _elm_widget_item_efl_object_del(const Eo *eo_item, Elm_Widget_Item_Data *item) | ||
4100 | { | 4100 | { | ||
4101 | ELM_WIDGET_ITEM_CHECK_OR_RETURN(item); | 4101 | ELM_WIDGET_ITEM_CHECK_OR_RETURN(item); | ||
4102 | ELM_WIDGET_ITEM_RETURN_IF_ONDEL(item); | 4102 | ELM_WIDGET_ITEM_RETURN_IF_ONDEL(item); | ||
4103 | item->on_deletion = EINA_TRUE; | 4103 | item->on_deletion = EINA_TRUE; | ||
4104 | 4104 | | |||
4105 | //Widget item delete callback | 4105 | //Widget item delete callback | ||
4106 | Eina_Bool del_ok; | 4106 | elm_wdg_item_del_pre(item->eo_obj); | ||
4107 | del_ok = elm_wdg_item_del_pre(item->eo_obj); | 4107 | efl_parent_set((Eo*)eo_item, NULL); | ||
4108 | if (del_ok) | | |||
4109 | efl_parent_set((Eo*)eo_item, NULL); | | |||
4110 | return; | 4108 | return; | ||
4111 | } | 4109 | } | ||
4112 | 4110 | | |||
4113 | EOLIAN static Eina_Bool | 4111 | EOLIAN static void | ||
4114 | _elm_widget_item_del_pre(Eo *eo_item EINA_UNUSED, Elm_Widget_Item_Data *item EINA_UNUSED) | 4112 | _elm_widget_item_del_pre(Eo *eo_item EINA_UNUSED, Elm_Widget_Item_Data *item EINA_UNUSED) | ||
4115 | { | 4113 | { | ||
4116 | return EINA_TRUE; | | |||
4117 | } | 4114 | } | ||
4118 | 4115 | | |||
4119 | /** | 4116 | /** | ||
4120 | * @internal | 4117 | * @internal | ||
4121 | * | 4118 | * | ||
4122 | * Notify object will be deleted without actually deleting it. | 4119 | * Notify object will be deleted without actually deleting it. | ||
4123 | * | 4120 | * | ||
4124 | * This function will callback Elm_Widget_Item::del_cb if it is set | 4121 | * This function will callback Elm_Widget_Item::del_cb if it is set | ||
▲ Show 20 Lines • Show All 2051 Lines • Show Last 20 Lines |