edbus: Dont create proxy of Object Manager on edbus_object_managed_objects_get()
authorJosé Roberto de Souza <zehortigoza@profusion.mobi>
Tue, 11 Dec 2012 19:52:11 +0000 (19:52 +0000)
committerLucas De Marchi <lucas.demarchi@profusion.mobi>
Tue, 11 Dec 2012 19:52:11 +0000 (19:52 +0000)
Patch by: José Roberto de Souza  <zehortigoza@profusion.mobi>

SVN revision: 80709

legacy/edbus/src/lib/edbus_freedesktop.c

index 8698890..7f58b1d 100644 (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,
+                                      "GetManagedObjects");
+   return edbus_object_send(obj, msg, cb, data, -1);
 }