[next] telepathy-glib: tp_dbus_g_method_return_not_implemented: use a GDBusMethodInvocation

Simon McVittie smcv at kemper.freedesktop.org
Thu Mar 27 08:42:04 PDT 2014


Module: telepathy-glib
Branch: next
Commit: 51a09a4c9a37c4734d1d2f2ec1fe4a2a79047072
URL:    http://cgit.freedesktop.org/telepathy/telepathy-glib/commit/?id=51a09a4c9a37c4734d1d2f2ec1fe4a2a79047072

Author: Simon McVittie <simon.mcvittie at collabora.co.uk>
Date:   Tue Mar 11 17:34:58 2014 +0000

tp_dbus_g_method_return_not_implemented: use a GDBusMethodInvocation

---

 telepathy-glib/core-dbus.c |    7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

diff --git a/telepathy-glib/core-dbus.c b/telepathy-glib/core-dbus.c
index 6e0e33a..48f0d4c 100644
--- a/telepathy-glib/core-dbus.c
+++ b/telepathy-glib/core-dbus.c
@@ -33,11 +33,10 @@
  * given by @context.
  */
 void
-tp_dbus_g_method_return_not_implemented (DBusGMethodInvocation *context)
+tp_dbus_g_method_return_not_implemented (GDBusMethodInvocation *context)
 {
-  GError e = { TP_ERROR, TP_ERROR_NOT_IMPLEMENTED, "Not implemented" };
-
-  dbus_g_method_return_error (context, &e);
+  g_dbus_method_invocation_return_dbus_error (context,
+      TP_ERROR_STR_NOT_IMPLEMENTED, "Not implemented");
 }
 
 /* this is the core library, we don't have debug infrastructure yet */



More information about the telepathy-commits mailing list