From da1edd78e244b6b580ecb3a52fe9f529022ac7a5 Mon Sep 17 00:00:00 2001 From: Simon McVittie Date: Wed, 13 Apr 2011 19:00:41 +0100 Subject: [PATCH 2/2] dbus_g_proxy_add_signal: document error cases Bug: https://bugs.freedesktop.org/show_bug.cgi?id=36216 --- dbus/dbus-gproxy.c | 6 ++++++ 1 files changed, 6 insertions(+), 0 deletions(-) diff --git a/dbus/dbus-gproxy.c b/dbus/dbus-gproxy.c index 664ff9c..8e04165 100644 --- a/dbus/dbus-gproxy.c +++ b/dbus/dbus-gproxy.c @@ -2827,6 +2827,12 @@ array_free_all (gpointer array) * Specifies the argument signature of a D-Bus signal. When the signal is * emitted by the remote object, if the GTypes corresponding to its arguments' * types do not match the types given here, the signal will be ignored. + * + * It is an error to add the same @signal_name to the same @proxy more than + * once, even if the argument types given are the same. + * + * It is also an error to call this method on a proxy that has emitted + * the #DBusGProxy::destroy signal. */ void dbus_g_proxy_add_signal (DBusGProxy *proxy, -- 1.7.4.1