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

SVN revision: 80712

legacy/edbus/src/lib/edbus_object.c

index 1a4f9b5e3f8ffccf60fcc1faf2d2fcf937cc66e4..c3404ac3bec80e823e9aabedf6f94a464e1ee867 100644 (file)
@@ -661,9 +661,9 @@ edbus_object_peer_machine_id_get(EDBus_Object *obj, EDBus_Message_Cb cb, const v
 EAPI EDBus_Pending *
 edbus_object_introspect(EDBus_Object *obj, EDBus_Message_Cb cb, const void *data)
 {
-   EDBus_Proxy *introspectable;
+   EDBus_Message *msg;
    EDBUS_OBJECT_CHECK_RETVAL(obj, NULL);
-
-   introspectable = edbus_proxy_get(obj, EDBUS_FDO_INTERFACE_INTROSPECTABLE);
-   return edbus_proxy_call(introspectable, "Introspect", cb, data, -1, "");
+   msg = edbus_object_method_call_new(obj, EDBUS_FDO_INTERFACE_INTROSPECTABLE,
+                                      "Introspect");
+   return edbus_object_send(obj, msg, cb, data, -1);
 }