[glib] gdbus: avoid warning when finalizing a GDBusObjectManagerClient
- From: Aleksander Morgado <aleksm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib] gdbus: avoid warning when finalizing a GDBusObjectManagerClient
- Date: Thu, 27 Oct 2011 16:34:57 +0000 (UTC)
commit 9782598b81ffe35f892bb510c27bc0d1afffaeee
Author: Aleksander Morgado <aleksander lanedo com>
Date: Thu Oct 27 16:54:02 2011 +0200
gdbus: avoid warning when finalizing a GDBusObjectManagerClient
If the GDBusObjectManagerClient doesn't get a name owner during its lifetime,
`on_control_proxy_g_signal' will never be connected to any signal, so we
shouldn't dump any warning in that case.
Fixes https://bugzilla.gnome.org/show_bug.cgi?id=662858
gio/gdbusobjectmanagerclient.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/gio/gdbusobjectmanagerclient.c b/gio/gdbusobjectmanagerclient.c
index e9a3c93..e6f18bf 100644
--- a/gio/gdbusobjectmanagerclient.c
+++ b/gio/gdbusobjectmanagerclient.c
@@ -201,9 +201,9 @@ g_dbus_object_manager_client_finalize (GObject *object)
if (manager->priv->control_proxy != NULL)
{
- g_warn_if_fail (g_signal_handlers_disconnect_by_func (manager->priv->control_proxy,
- on_control_proxy_g_signal,
- manager) == 1);
+ g_signal_handlers_disconnect_by_func (manager->priv->control_proxy,
+ on_control_proxy_g_signal,
+ manager);
g_object_unref (manager->priv->control_proxy);
}
g_object_unref (manager->priv->connection);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]