summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>2020-07-21 08:56:16 +0100
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>2020-07-21 08:56:16 +0100
commit534457c51d0afc9a3a50a71bb0823e786f0b1bb8 (patch)
tree9ecbd46d43a14b50bc68f8117aa5bff0e0bbbbdf
parentb158abfabba220201ddb573d75ba4a48b586f152 (diff)
downloadefl-534457c51d0afc9a3a50a71bb0823e786f0b1bb8.tar.gz
elm - genlist/grid - call realized/unrealized item func cb after eo cb
-rw-r--r--src/lib/elementary/elm_gengrid.c6
-rw-r--r--src/lib/elementary/elm_genlist.c7
2 files changed, 7 insertions, 6 deletions
diff --git a/src/lib/elementary/elm_gengrid.c b/src/lib/elementary/elm_gengrid.c
index cf5bdaa4ad..baf4f8a56f 100644
--- a/src/lib/elementary/elm_gengrid.c
+++ b/src/lib/elementary/elm_gengrid.c
@@ -1265,8 +1265,8 @@ _elm_gengrid_item_unrealize(Elm_Gen_Item *it,
if (!calc)
{
- if (it->base->func.unrealized) it->base->func.unrealized(EO_OBJ(it));
efl_event_callback_legacy_call(WIDGET(it), ELM_GENGRID_EVENT_UNREALIZED, EO_OBJ(it));
+ if (it->base->func.unrealized) it->base->func.unrealized(EO_OBJ(it));
}
it->unrealize_cb(it);
@@ -1976,9 +1976,9 @@ _item_place(Elm_Gen_Item *it,
if (!was_realized)
{
_elm_gengrid_item_index_update(it);
- if (it->base->func.realized) it->base->func.realized(EO_OBJ(it));
efl_event_callback_legacy_call
(WIDGET(it), ELM_GENGRID_EVENT_REALIZED, EO_OBJ(it));
+ if (it->base->func.realized) it->base->func.realized(EO_OBJ(it));
_flush_focus_on_realization(WIDGET(it), it);
}
if (it->parent)
@@ -2183,9 +2183,9 @@ _group_item_place(Elm_Gengrid_Pan_Data *psd)
if (!was_realized)
{
_elm_gengrid_item_index_update(it);
- if (it->base->func.realized) it->base->func.realized(EO_OBJ(it));
efl_event_callback_legacy_call
(WIDGET(it), ELM_GENGRID_EVENT_REALIZED, EO_OBJ(it));
+ if (it->base->func.realized) it->base->func.realized(EO_OBJ(it));
_flush_focus_on_realization(WIDGET(it), it);
}
evas_object_geometry_set(VIEW(it), GG_IT(it)->gx, GG_IT(it)->gy,
diff --git a/src/lib/elementary/elm_genlist.c b/src/lib/elementary/elm_genlist.c
index a00bef3480..d25dbe1f57 100644
--- a/src/lib/elementary/elm_genlist.c
+++ b/src/lib/elementary/elm_genlist.c
@@ -717,8 +717,8 @@ _elm_genlist_item_unrealize(Elm_Gen_Item *it,
if (!calc)
{
- if (it->base->func.unrealized) it->base->func.unrealized(EO_OBJ(it));
efl_event_callback_legacy_call(WIDGET(it), ELM_GENLIST_EVENT_UNREALIZED, EO_OBJ(it));
+ if (it->base->func.unrealized) it->base->func.unrealized(EO_OBJ(it));
}
_item_unrealize(it);
@@ -1669,7 +1669,8 @@ _item_cache_add(Elm_Gen_Item *it, Eina_List *contents)
efl_wref_del(it->base->view, &it->base->view);
VIEW(it) = NULL;
evas_object_hide(itc->base_view);
- evas_object_move(itc->base_view, -9999, -9999);
+// lower eocalloverhead - no need to do this
+// evas_object_move(itc->base_view, -9999, -9999);
_item_cache_clean(sd);
@@ -2056,8 +2057,8 @@ _item_realize(Elm_Gen_Item *it, const int index, Eina_Bool calc)
}
- if (it->base->func.realized) it->base->func.realized(EO_OBJ(it));
efl_event_callback_legacy_call(WIDGET(it), ELM_GENLIST_EVENT_REALIZED, EO_OBJ(it));
+ if (it->base->func.realized) it->base->func.realized(EO_OBJ(it));
}
//Send a signal so that an item changes its style according to its expand depth