From ea0607438bfb1fb2ae7cd22757ecdb53946a00b0 Mon Sep 17 00:00:00 2001 From: David Zeuthen Date: Wed, 7 Jul 2010 09:05:42 -0400 Subject: [PATCH] =?utf8?q?Bug=20623537=20=E2=80=93=20GDBusProxy=20has=20we?= =?utf8?q?ird=20checking=20on=20NameOwnerChanged?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Remove misleading (and always true) check on the name that the NameOwnerChanged signal is for. https://bugzilla.gnome.org/show_bug.cgi?id=623537 Signed-off-by: David Zeuthen --- gio/gdbusproxy.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/gio/gdbusproxy.c b/gio/gdbusproxy.c index 4d658a1..05128ef 100644 --- a/gio/gdbusproxy.c +++ b/gio/gdbusproxy.c @@ -932,7 +932,6 @@ on_name_owner_changed (GDBusConnection *connection, gpointer user_data) { GDBusProxy *proxy = G_DBUS_PROXY (user_data); - const gchar *name; const gchar *old_owner; const gchar *new_owner; @@ -945,14 +944,10 @@ on_name_owner_changed (GDBusConnection *connection, g_variant_get (parameters, "(&s&s&s)", - &name, + NULL, &old_owner, &new_owner); - /* we only care about a specific name */ - if (g_strcmp0 (name, proxy->priv->name) != 0) - goto out; - if (strlen (new_owner) == 0) { g_free (proxy->priv->name_owner); -- 2.7.4