From 654bfcb7ce3b99d6b71ae86f1e0aee33056f70b1 Mon Sep 17 00:00:00 2001 From: Ryan Lortie Date: Tue, 16 Oct 2012 12:29:22 -0400 Subject: [PATCH] GBusNameVanishedCallback: document NULL connection @connection can be NULL for this callback. Document this possibility and describe the circumstances. https://bugzilla.gnome.org/show_bug.cgi?id=686231 --- gio/gdbusnamewatching.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/gio/gdbusnamewatching.h b/gio/gdbusnamewatching.h index 3e3f75a2c..a2bb6dc51 100644 --- a/gio/gdbusnamewatching.h +++ b/gio/gdbusnamewatching.h @@ -49,12 +49,17 @@ typedef void (*GBusNameAppearedCallback) (GDBusConnection *connection, /** * GBusNameVanishedCallback: - * @connection: The #GDBusConnection the name is being watched on. + * @connection: The #GDBusConnection the name is being watched on, or + * %NULL. * @name: The name being watched. * @user_data: User data passed to g_bus_watch_name(). * * Invoked when the name being watched is known not to have to have a owner. * + * This is also invoked when the #GDBusConection on which the watch was + * established has been closed. In that case, @connection will be + * %NULL. + * * Since: 2.26 */ typedef void (*GBusNameVanishedCallback) (GDBusConnection *connection,