gdbus: Use symbolic constants for various references to the message bus

Signed-off-by: Simon McVittie <smcv@collabora.com>
This commit is contained in:
Simon McVittie
2024-05-13 12:50:42 +01:00
committed by Philip Withnall
parent 19223803f5
commit 131a061aca
4 changed files with 12 additions and 12 deletions

View File

@@ -344,9 +344,9 @@ on_name_owner_changed (GDBusConnection *connection,
if (!client->initialized)
goto out;
if (g_strcmp0 (object_path, "/org/freedesktop/DBus") != 0 ||
g_strcmp0 (interface_name, "org.freedesktop.DBus") != 0 ||
g_strcmp0 (sender_name, "org.freedesktop.DBus") != 0)
if (g_strcmp0 (object_path, DBUS_PATH_DBUS) != 0 ||
g_strcmp0 (interface_name, DBUS_INTERFACE_DBUS) != 0 ||
g_strcmp0 (sender_name, DBUS_SERVICE_DBUS) != 0)
goto out;
g_variant_get (parameters,