summaryrefslogtreecommitdiff
path: root/src/lib/eldbus
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/eldbus
parentaf9b5f2f8553b62d9bc7b212ca7f1246268e6620 (diff)
efl: update Efl.Model to properly propagate EFL_MODEL_EVENT_CHILDREN_COUNT_CHANGED.
Diffstat (limited to 'src/lib/eldbus')
-rw-r--r--src/lib/eldbus/eldbus_model_connection.c4
-rw-r--r--src/lib/eldbus/eldbus_model_object.c4
-rw-r--r--src/lib/eldbus/eldbus_model_proxy.c2
3 files changed, 4 insertions, 6 deletions
diff --git a/src/lib/eldbus/eldbus_model_connection.c b/src/lib/eldbus/eldbus_model_connection.c
index ef16f98..28f0242 100644
--- a/src/lib/eldbus/eldbus_model_connection.c
+++ b/src/lib/eldbus/eldbus_model_connection.c
@@ -105,7 +105,6 @@ _eldbus_model_connection_names_list_cb(void *data,
105 const char *error_name, *error_text; 105 const char *error_name, *error_text;
106 Eldbus_Message_Iter *array = NULL; 106 Eldbus_Message_Iter *array = NULL;
107 const char *bus; 107 const char *bus;
108 unsigned int count;
109 108
110 pd->pending = NULL; 109 pd->pending = NULL;
111 110
@@ -139,8 +138,7 @@ _eldbus_model_connection_names_list_cb(void *data,
139 138
140 pd->is_listed = EINA_TRUE; 139 pd->is_listed = EINA_TRUE;
141 140
142 count = eina_list_count(pd->childrens); 141 efl_event_callback_call(pd->obj, EFL_MODEL_EVENT_CHILDREN_COUNT_CHANGED, NULL);
143 efl_event_callback_call(pd->obj, EFL_MODEL_EVENT_CHILDREN_COUNT_CHANGED, &count);
144 142
145 EINA_LIST_FREE(pd->requests, slice) 143 EINA_LIST_FREE(pd->requests, slice)
146 { 144 {
diff --git a/src/lib/eldbus/eldbus_model_object.c b/src/lib/eldbus/eldbus_model_object.c
index 5bb9269..02bfc97 100644
--- a/src/lib/eldbus/eldbus_model_object.c
+++ b/src/lib/eldbus/eldbus_model_object.c
@@ -242,7 +242,6 @@ _eldbus_model_object_introspect_cb(void *data,
242 const char *error_text; 242 const char *error_text;
243 const char *xml = NULL; 243 const char *xml = NULL;
244 const char *current_path; 244 const char *current_path;
245 unsigned int count;
246 245
247 pd->pendings = eina_list_remove(pd->pendings, pending); 246 pd->pendings = eina_list_remove(pd->pendings, pending);
248 object = eldbus_pending_data_get(pending, "object"); 247 object = eldbus_pending_data_get(pending, "object");
@@ -276,8 +275,7 @@ _eldbus_model_object_introspect_cb(void *data,
276 275
277 if (eina_list_count(pd->pendings) != 0) return ; 276 if (eina_list_count(pd->pendings) != 0) return ;
278 277
279 count = eina_list_count(pd->childrens); 278 efl_event_callback_call(pd->obj, EFL_MODEL_EVENT_CHILDREN_COUNT_CHANGED, NULL);
280 efl_event_callback_call(pd->obj, EFL_MODEL_EVENT_CHILDREN_COUNT_CHANGED, &count);
281 279
282 pd->is_listed = EINA_TRUE; 280 pd->is_listed = EINA_TRUE;
283 281
diff --git a/src/lib/eldbus/eldbus_model_proxy.c b/src/lib/eldbus/eldbus_model_proxy.c
index 229bcc0..c1ab3b2 100644
--- a/src/lib/eldbus/eldbus_model_proxy.c
+++ b/src/lib/eldbus/eldbus_model_proxy.c
@@ -375,6 +375,8 @@ _eldbus_model_proxy_listed(Eldbus_Model_Proxy_Data *pd)
375 { 375 {
376 _eldbus_model_proxy_create_methods_children(pd); 376 _eldbus_model_proxy_create_methods_children(pd);
377 _eldbus_model_proxy_create_signals_children(pd); 377 _eldbus_model_proxy_create_signals_children(pd);
378
379 efl_event_callback_call(pd->obj, EFL_MODEL_EVENT_CHILDREN_COUNT_CHANGED, NULL);
378 pd->is_listed = EINA_TRUE; 380 pd->is_listed = EINA_TRUE;
379 } 381 }
380} 382}