mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-07-23 02:17:51 +02:00
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:
@@ -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);
|
||||
|
Reference in New Issue
Block a user