Bug 623537 – GDBusProxy has weird checking on NameOwnerChanged

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 <davidz@redhat.com>
This commit is contained in:
David Zeuthen 2010-07-07 09:05:42 -04:00
parent 99670eaccc
commit ea0607438b

View File

@ -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);