[glib] Bug 623537 – GDBusProxy has weird checking on NameOwnerChanged
- From: David Zeuthen <davidz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib] Bug 623537 – GDBusProxy has weird checking on NameOwnerChanged
- Date: Wed, 7 Jul 2010 13:09:30 +0000 (UTC)
commit ea0607438bfb1fb2ae7cd22757ecdb53946a00b0
Author: David Zeuthen <davidz redhat com>
Date: Wed Jul 7 09:05:42 2010 -0400
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>
gio/gdbusproxy.c | 7 +------
1 files changed, 1 insertions(+), 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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]