forked from enlightenment/efl
elm: Removed unnecessary null check for ecore_idler_del, ecore_idle_enterer_del.
This commit is contained in:
parent
b6b90d7c83
commit
c066009c49
|
@ -46,9 +46,9 @@ static const Evas_Smart_Cb_Description _smart_callbacks[] = {
|
||||||
static void
|
static void
|
||||||
_elm_fileselector_smart_del_do(Elm_Fileselector_Smart_Data *sd)
|
_elm_fileselector_smart_del_do(Elm_Fileselector_Smart_Data *sd)
|
||||||
{
|
{
|
||||||
if (sd->path) eina_stringshare_del(sd->path);
|
eina_stringshare_del(sd->path);
|
||||||
if (sd->selection) eina_stringshare_del(sd->selection);
|
eina_stringshare_del(sd->selection);
|
||||||
if (sd->populate_idler) free(ecore_idler_del(sd->populate_idler));
|
free(ecore_idler_del(sd->populate_idler));
|
||||||
|
|
||||||
eo_do_super(sd->obj, MY_CLASS, evas_obj_smart_del());
|
eo_do_super(sd->obj, MY_CLASS, evas_obj_smart_del());
|
||||||
}
|
}
|
||||||
|
|
|
@ -920,8 +920,7 @@ _elm_dbus_menu_unregister(Eo *obj)
|
||||||
_elm_dbus_menu_app_menu_unregister(obj);
|
_elm_dbus_menu_app_menu_unregister(obj);
|
||||||
eldbus_service_interface_unregister(sd->dbus_menu->iface);
|
eldbus_service_interface_unregister(sd->dbus_menu->iface);
|
||||||
eldbus_connection_unref(sd->dbus_menu->bus);
|
eldbus_connection_unref(sd->dbus_menu->bus);
|
||||||
if (sd->dbus_menu->signal_idler)
|
ecore_idler_del(sd->dbus_menu->signal_idler);
|
||||||
ecore_idler_del(sd->dbus_menu->signal_idler);
|
|
||||||
|
|
||||||
eina_hash_free(sd->dbus_menu->elements);
|
eina_hash_free(sd->dbus_menu->elements);
|
||||||
free(sd->dbus_menu);
|
free(sd->dbus_menu);
|
||||||
|
|
|
@ -226,11 +226,7 @@ _string_check(void *data)
|
||||||
Evas_Object *obj = data;
|
Evas_Object *obj = data;
|
||||||
ELM_DISKSELECTOR_DATA_GET(obj, sd);
|
ELM_DISKSELECTOR_DATA_GET(obj, sd);
|
||||||
|
|
||||||
if (sd->string_check_idle_enterer)
|
ELM_SAFE_FREE(sd->string_check_idle_enterer, ecore_idle_enterer_del);
|
||||||
{
|
|
||||||
ecore_idle_enterer_del(sd->string_check_idle_enterer);
|
|
||||||
sd->string_check_idle_enterer = NULL;
|
|
||||||
}
|
|
||||||
|
|
||||||
// call string check idle enterer directly
|
// call string check idle enterer directly
|
||||||
_string_check_idle_enterer_cb(data);
|
_string_check_idle_enterer_cb(data);
|
||||||
|
@ -1421,17 +1417,8 @@ _elm_diskselector_smart_del(Eo *obj, void *_pd, va_list *list EINA_UNUSED)
|
||||||
}
|
}
|
||||||
sd->r_items = eina_list_free(sd->r_items);
|
sd->r_items = eina_list_free(sd->r_items);
|
||||||
|
|
||||||
if (sd->scroller_move_idle_enterer)
|
ELM_SAFE_FREE(sd->scroller_move_idle_enterer, ecore_idle_enterer_del);
|
||||||
{
|
ELM_SAFE_FREE(sd->string_check_idle_enterer, ecore_idle_enterer_del);
|
||||||
ecore_idle_enterer_del(sd->scroller_move_idle_enterer);
|
|
||||||
sd->scroller_move_idle_enterer = NULL;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (sd->string_check_idle_enterer)
|
|
||||||
{
|
|
||||||
ecore_idle_enterer_del(sd->string_check_idle_enterer);
|
|
||||||
sd->string_check_idle_enterer = NULL;
|
|
||||||
}
|
|
||||||
|
|
||||||
eo_do_super(obj, MY_CLASS, evas_obj_smart_del());
|
eo_do_super(obj, MY_CLASS, evas_obj_smart_del());
|
||||||
}
|
}
|
||||||
|
|
|
@ -4012,7 +4012,7 @@ _item_idle_enterer(void *data)
|
||||||
static void
|
static void
|
||||||
_requeue_idle_enterer(Elm_Genlist_Smart_Data *sd)
|
_requeue_idle_enterer(Elm_Genlist_Smart_Data *sd)
|
||||||
{
|
{
|
||||||
if (sd->queue_idle_enterer) ecore_idle_enterer_del(sd->queue_idle_enterer);
|
ecore_idle_enterer_del(sd->queue_idle_enterer);
|
||||||
sd->queue_idle_enterer = ecore_idle_enterer_add(_item_idle_enterer, sd->obj);
|
sd->queue_idle_enterer = ecore_idle_enterer_add(_item_idle_enterer, sd->obj);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -171,12 +171,8 @@ _set_render_policy_callback(Evas_Object *obj)
|
||||||
switch (sd->render_policy)
|
switch (sd->render_policy)
|
||||||
{
|
{
|
||||||
case ELM_GLVIEW_RENDER_POLICY_ON_DEMAND:
|
case ELM_GLVIEW_RENDER_POLICY_ON_DEMAND:
|
||||||
// Delete idle_enterer if it for some reason is around
|
// Delete idle_enterer if it for some reason is around
|
||||||
if (sd->render_idle_enterer)
|
ELM_SAFE_FREE(sd->render_idle_enterer, ecore_idle_enterer_del);
|
||||||
{
|
|
||||||
ecore_idle_enterer_del(sd->render_idle_enterer);
|
|
||||||
sd->render_idle_enterer = NULL;
|
|
||||||
}
|
|
||||||
|
|
||||||
// Set pixel getter callback
|
// Set pixel getter callback
|
||||||
evas_object_image_pixels_get_callback_set
|
evas_object_image_pixels_get_callback_set
|
||||||
|
@ -267,8 +263,7 @@ _elm_glview_smart_del(Eo *obj, void *_pd, va_list *list EINA_UNUSED)
|
||||||
sd->del_func(obj);
|
sd->del_func(obj);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (sd->render_idle_enterer)
|
ecore_idle_enterer_del(sd->render_idle_enterer);
|
||||||
ecore_idle_enterer_del(sd->render_idle_enterer);
|
|
||||||
|
|
||||||
if (sd->surface) evas_gl_surface_destroy(sd->evasgl, sd->surface);
|
if (sd->surface) evas_gl_surface_destroy(sd->evasgl, sd->surface);
|
||||||
if (sd->context) evas_gl_context_destroy(sd->evasgl, sd->context);
|
if (sd->context) evas_gl_context_destroy(sd->evasgl, sd->context);
|
||||||
|
|
|
@ -1461,10 +1461,7 @@ _elm_scroll_bounce_eval(Elm_Scrollable_Smart_Interface_Data *sid)
|
||||||
if (sid->content_info.resized)
|
if (sid->content_info.resized)
|
||||||
_elm_scroll_wanted_region_set(sid->obj);
|
_elm_scroll_wanted_region_set(sid->obj);
|
||||||
}
|
}
|
||||||
if (sid->down.hold_enterer)
|
ELM_SAFE_FREE(sid->down.hold_enterer, ecore_idle_enterer_del);
|
||||||
{
|
|
||||||
ELM_SAFE_FREE(sid->down.hold_enterer, ecore_idle_enterer_del);
|
|
||||||
}
|
|
||||||
|
|
||||||
eo_do(sid->pan_obj, elm_obj_pan_pos_max_get(&mx, &my));
|
eo_do(sid->pan_obj, elm_obj_pan_pos_max_get(&mx, &my));
|
||||||
eo_do(sid->pan_obj, elm_obj_pan_pos_min_get(&minx, &miny));
|
eo_do(sid->pan_obj, elm_obj_pan_pos_min_get(&minx, &miny));
|
||||||
|
@ -1790,10 +1787,7 @@ _elm_scroll_content_region_show_internal(Evas_Object *obj,
|
||||||
if (sid->content_info.resized)
|
if (sid->content_info.resized)
|
||||||
_elm_scroll_wanted_region_set(sid->obj);
|
_elm_scroll_wanted_region_set(sid->obj);
|
||||||
}
|
}
|
||||||
if (sid->down.hold_enterer)
|
ELM_SAFE_FREE(sid->down.hold_enterer, ecore_idle_enterer_del);
|
||||||
{
|
|
||||||
ELM_SAFE_FREE(sid->down.hold_enterer, ecore_idle_enterer_del);
|
|
||||||
}
|
|
||||||
if (sid->down.momentum_animator)
|
if (sid->down.momentum_animator)
|
||||||
{
|
{
|
||||||
ELM_SAFE_FREE(sid->down.momentum_animator, ecore_animator_del);
|
ELM_SAFE_FREE(sid->down.momentum_animator, ecore_animator_del);
|
||||||
|
@ -2639,10 +2633,7 @@ _elm_scroll_mouse_up_event_cb(void *data,
|
||||||
if (sid->content_info.resized)
|
if (sid->content_info.resized)
|
||||||
_elm_scroll_wanted_region_set(sid->obj);
|
_elm_scroll_wanted_region_set(sid->obj);
|
||||||
}
|
}
|
||||||
if (sid->down.hold_enterer)
|
ELM_SAFE_FREE(sid->down.hold_enterer, ecore_idle_enterer_del);
|
||||||
{
|
|
||||||
ELM_SAFE_FREE(sid->down.hold_enterer, ecore_idle_enterer_del);
|
|
||||||
}
|
|
||||||
if (sid->down.scroll)
|
if (sid->down.scroll)
|
||||||
{
|
{
|
||||||
ev->event_flags |= EVAS_EVENT_FLAG_ON_SCROLL;
|
ev->event_flags |= EVAS_EVENT_FLAG_ON_SCROLL;
|
||||||
|
@ -2729,10 +2720,7 @@ _elm_scroll_mouse_down_event_cb(void *data,
|
||||||
if (sid->content_info.resized)
|
if (sid->content_info.resized)
|
||||||
_elm_scroll_wanted_region_set(sid->obj);
|
_elm_scroll_wanted_region_set(sid->obj);
|
||||||
}
|
}
|
||||||
if (sid->down.hold_enterer)
|
ELM_SAFE_FREE(sid->down.hold_enterer, ecore_idle_enterer_del);
|
||||||
{
|
|
||||||
ELM_SAFE_FREE(sid->down.hold_enterer, ecore_idle_enterer_del);
|
|
||||||
}
|
|
||||||
if (sid->down.momentum_animator)
|
if (sid->down.momentum_animator)
|
||||||
{
|
{
|
||||||
ELM_SAFE_FREE(sid->down.momentum_animator, ecore_animator_del);
|
ELM_SAFE_FREE(sid->down.momentum_animator, ecore_animator_del);
|
||||||
|
@ -3047,7 +3035,7 @@ _elm_scroll_hold_animator(void *data)
|
||||||
{
|
{
|
||||||
Elm_Scrollable_Smart_Interface_Data *sid = data;
|
Elm_Scrollable_Smart_Interface_Data *sid = data;
|
||||||
|
|
||||||
if (sid->down.hold_enterer) ecore_idle_enterer_del(sid->down.hold_enterer);
|
ecore_idle_enterer_del(sid->down.hold_enterer);
|
||||||
sid->down.hold_enterer =
|
sid->down.hold_enterer =
|
||||||
ecore_idle_enterer_before_add(_elm_scroll_hold_enterer, sid);
|
ecore_idle_enterer_before_add(_elm_scroll_hold_enterer, sid);
|
||||||
return ECORE_CALLBACK_RENEW;
|
return ECORE_CALLBACK_RENEW;
|
||||||
|
|
|
@ -4090,7 +4090,7 @@ _elm_map_smart_del(Eo *obj, void *_pd, va_list *list EINA_UNUSED)
|
||||||
|
|
||||||
_grid_all_clear(sd);
|
_grid_all_clear(sd);
|
||||||
// Removal of download list should be after grid clear.
|
// Removal of download list should be after grid clear.
|
||||||
if (sd->download_idler) ecore_idler_del(sd->download_idler);
|
ecore_idler_del(sd->download_idler);
|
||||||
eina_list_free(sd->download_list);
|
eina_list_free(sd->download_list);
|
||||||
|
|
||||||
_source_all_unload(sd);
|
_source_all_unload(sd);
|
||||||
|
|
|
@ -330,8 +330,7 @@ _destructor(Eo *obj, void *_pd, va_list *list EINA_UNUSED)
|
||||||
{
|
{
|
||||||
Elm_Mapbuf_Smart_Data *priv = _pd;
|
Elm_Mapbuf_Smart_Data *priv = _pd;
|
||||||
|
|
||||||
if (priv->idler) ecore_idler_del(priv->idler);
|
ELM_SAFE_FREE(priv->idler, ecore_idler_del);
|
||||||
priv->idler = NULL;
|
|
||||||
|
|
||||||
eo_do_super(obj, MY_CLASS, eo_destructor());
|
eo_do_super(obj, MY_CLASS, eo_destructor());
|
||||||
}
|
}
|
||||||
|
|
|
@ -260,7 +260,7 @@ _elm_theme_idler_clean(void *data EINA_UNUSED, Evas *e EINA_UNUSED, Evas_Object
|
||||||
Ecore_Idler *idler;
|
Ecore_Idler *idler;
|
||||||
|
|
||||||
idler = evas_object_data_get(obj, "elm-theme-reload-idler");
|
idler = evas_object_data_get(obj, "elm-theme-reload-idler");
|
||||||
if (idler) ecore_idler_del(idler);
|
ecore_idler_del(idler);
|
||||||
evas_object_data_del(obj, "elm-theme-reload-idler");
|
evas_object_data_del(obj, "elm-theme-reload-idler");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue