summaryrefslogtreecommitdiff
path: root/src/lib/eio/eio_model.c
diff options
context:
space:
mode:
authorCedric BAIL <cedric@osg.samsung.com>2018-04-12 14:41:54 -0700
committerCedric BAIL <cedric@osg.samsung.com>2018-05-01 10:39:01 -0700
commit8e107c991c50dd38cfbbf9b04221cc1b689e3a43 (patch)
treece229e0a7a28ecb82cee6988b0514627c4dc4824 /src/lib/eio/eio_model.c
parentaf9b5f2f8553b62d9bc7b212ca7f1246268e6620 (diff)
efl: update Efl.Model to properly propagate EFL_MODEL_EVENT_CHILDREN_COUNT_CHANGED.
Diffstat (limited to 'src/lib/eio/eio_model.c')
-rw-r--r--src/lib/eio/eio_model.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/lib/eio/eio_model.c b/src/lib/eio/eio_model.c
index 307d5a7..e04db78 100644
--- a/src/lib/eio/eio_model.c
+++ b/src/lib/eio/eio_model.c
@@ -126,6 +126,7 @@ _efl_model_evt_added_ecore_cb(void *data, int type, void *event)
126 126
127 // Notify of the new child being added 127 // Notify of the new child being added
128 efl_event_callback_call(obj, EFL_MODEL_EVENT_CHILD_ADDED, &cevt); 128 efl_event_callback_call(obj, EFL_MODEL_EVENT_CHILD_ADDED, &cevt);
129 efl_event_callback_call(obj, EFL_MODEL_EVENT_CHILDREN_COUNT_CHANGED, NULL);
129 130
130 end: 131 end:
131 eina_stringshare_del(spath); 132 eina_stringshare_del(spath);
@@ -170,6 +171,7 @@ _efl_model_evt_deleted_ecore_cb(void *data, int type, void *event)
170 cevt.child = mi->object; 171 cevt.child = mi->object;
171 172
172 efl_event_callback_call(obj, EFL_MODEL_EVENT_CHILD_REMOVED, &cevt); 173 efl_event_callback_call(obj, EFL_MODEL_EVENT_CHILD_REMOVED, &cevt);
174 efl_event_callback_call(obj, EFL_MODEL_EVENT_CHILDREN_COUNT_CHANGED, NULL);
173 175
174 // Remove the entry from the files list 176 // Remove the entry from the files list
175 pd->files = eina_list_remove_list(pd->files, l); 177 pd->files = eina_list_remove_list(pd->files, l);
@@ -714,6 +716,8 @@ _eio_model_children_list(void *data, Eina_Array *entries)
714 716
715 efl_event_callback_call(obj, EFL_MODEL_EVENT_CHILD_ADDED, &cevt); 717 efl_event_callback_call(obj, EFL_MODEL_EVENT_CHILD_ADDED, &cevt);
716 } 718 }
719
720 efl_event_callback_call(obj, EFL_MODEL_EVENT_CHILDREN_COUNT_CHANGED, NULL);
717} 721}
718 722
719static Eina_Value 723static Eina_Value