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)
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,
1265 1265
1266 if (!calc) 1266 if (!calc)
1267 { 1267 {
1268 if (it->base->func.unrealized) it->base->func.unrealized(EO_OBJ(it));
1269 efl_event_callback_legacy_call(WIDGET(it), ELM_GENGRID_EVENT_UNREALIZED, EO_OBJ(it)); 1268 efl_event_callback_legacy_call(WIDGET(it), ELM_GENGRID_EVENT_UNREALIZED, EO_OBJ(it));
1269 if (it->base->func.unrealized) it->base->func.unrealized(EO_OBJ(it));
1270 } 1270 }
1271 1271
1272 it->unrealize_cb(it); 1272 it->unrealize_cb(it);
@@ -1976,9 +1976,9 @@ _item_place(Elm_Gen_Item *it,
1976 if (!was_realized) 1976 if (!was_realized)
1977 { 1977 {
1978 _elm_gengrid_item_index_update(it); 1978 _elm_gengrid_item_index_update(it);
1979 if (it->base->func.realized) it->base->func.realized(EO_OBJ(it));
1980 efl_event_callback_legacy_call 1979 efl_event_callback_legacy_call
1981 (WIDGET(it), ELM_GENGRID_EVENT_REALIZED, EO_OBJ(it)); 1980 (WIDGET(it), ELM_GENGRID_EVENT_REALIZED, EO_OBJ(it));
1981 if (it->base->func.realized) it->base->func.realized(EO_OBJ(it));
1982 _flush_focus_on_realization(WIDGET(it), it); 1982 _flush_focus_on_realization(WIDGET(it), it);
1983 } 1983 }
1984 if (it->parent) 1984 if (it->parent)
@@ -2183,9 +2183,9 @@ _group_item_place(Elm_Gengrid_Pan_Data *psd)
2183 if (!was_realized) 2183 if (!was_realized)
2184 { 2184 {
2185 _elm_gengrid_item_index_update(it); 2185 _elm_gengrid_item_index_update(it);
2186 if (it->base->func.realized) it->base->func.realized(EO_OBJ(it));
2187 efl_event_callback_legacy_call 2186 efl_event_callback_legacy_call
2188 (WIDGET(it), ELM_GENGRID_EVENT_REALIZED, EO_OBJ(it)); 2187 (WIDGET(it), ELM_GENGRID_EVENT_REALIZED, EO_OBJ(it));
2188 if (it->base->func.realized) it->base->func.realized(EO_OBJ(it));
2189 _flush_focus_on_realization(WIDGET(it), it); 2189 _flush_focus_on_realization(WIDGET(it), it);
2190 } 2190 }
2191 evas_object_geometry_set(VIEW(it), GG_IT(it)->gx, GG_IT(it)->gy, 2191 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,
717 717
718 if (!calc) 718 if (!calc)
719 { 719 {
720 if (it->base->func.unrealized) it->base->func.unrealized(EO_OBJ(it));
721 efl_event_callback_legacy_call(WIDGET(it), ELM_GENLIST_EVENT_UNREALIZED, EO_OBJ(it)); 720 efl_event_callback_legacy_call(WIDGET(it), ELM_GENLIST_EVENT_UNREALIZED, EO_OBJ(it));
721 if (it->base->func.unrealized) it->base->func.unrealized(EO_OBJ(it));
722 } 722 }
723 723
724 _item_unrealize(it); 724 _item_unrealize(it);
@@ -1669,7 +1669,8 @@ _item_cache_add(Elm_Gen_Item *it, Eina_List *contents)
1669 efl_wref_del(it->base->view, &it->base->view); 1669 efl_wref_del(it->base->view, &it->base->view);
1670 VIEW(it) = NULL; 1670 VIEW(it) = NULL;
1671 evas_object_hide(itc->base_view); 1671 evas_object_hide(itc->base_view);
1672 evas_object_move(itc->base_view, -9999, -9999); 1672// lower eocalloverhead - no need to do this
1673// evas_object_move(itc->base_view, -9999, -9999);
1673 1674
1674 _item_cache_clean(sd); 1675 _item_cache_clean(sd);
1675 1676
@@ -2056,8 +2057,8 @@ _item_realize(Elm_Gen_Item *it, const int index, Eina_Bool calc)
2056 2057
2057 } 2058 }
2058 2059
2059 if (it->base->func.realized) it->base->func.realized(EO_OBJ(it));
2060 efl_event_callback_legacy_call(WIDGET(it), ELM_GENLIST_EVENT_REALIZED, EO_OBJ(it)); 2060 efl_event_callback_legacy_call(WIDGET(it), ELM_GENLIST_EVENT_REALIZED, EO_OBJ(it));
2061 if (it->base->func.realized) it->base->func.realized(EO_OBJ(it));
2061 } 2062 }
2062 2063
2063 //Send a signal so that an item changes its style according to its expand depth 2064 //Send a signal so that an item changes its style according to its expand depth