edbus: Dont create proxy of Object Manager on edbus_object_managed_objects_get()

Patch by: José Roberto de Souza  <zehortigoza@profusion.mobi>

SVN revision: 80709
This commit is contained in:
José Roberto de Souza 2012-12-11 19:52:11 +00:00 committed by Lucas De Marchi
parent d3a279ff56
commit 4f05ef66e5
1 changed files with 4 additions and 3 deletions

View File

@ -73,7 +73,8 @@ edbus_name_start(EDBus_Connection *conn, const char *name, unsigned int flags, E
EAPI EDBus_Pending *
edbus_object_managed_objects_get(EDBus_Object *obj, EDBus_Message_Cb cb, const void *data)
EDBus_Proxy *proxy;
proxy = edbus_proxy_get(obj, EDBUS_FDO_INTERFACE_OBJECT_MANAGER);
return edbus_proxy_call(proxy, "GetManagedObjects", cb, data, -1, "");
EDBus_Message *msg;
msg = edbus_object_method_call_new(obj, EDBUS_FDO_INTERFACE_OBJECT_MANAGER,
return edbus_object_send(obj, msg, cb, data, -1);