mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-24 18:08:54 +02:00
gdbus: Use symbolic constants for various references to the message bus
Signed-off-by: Simon McVittie <smcv@collabora.com>
This commit is contained in:
committed by
Philip Withnall
parent
19223803f5
commit
131a061aca
@@ -258,9 +258,9 @@ on_name_lost_or_acquired (GDBusConnection *connection,
|
||||
Client *client = user_data;
|
||||
const gchar *name;
|
||||
|
||||
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;
|
||||
|
||||
if (!g_variant_is_of_type (parameters, G_VARIANT_TYPE ("(s)")))
|
||||
|
Reference in New Issue
Block a user