gdbus: Use symbolic constants to subscribe to message bus signals

Unlike the various functions to call D-Bus methods, these sort their
arguments in a non-obvious order (bus name, interface, signal, path),
presumably aiming to sort the most-likely-to-be-used arguments first.

Signed-off-by: Simon McVittie <smcv@collabora.com>
This commit is contained in:
Simon McVittie
2024-05-13 12:45:29 +01:00
committed by Philip Withnall
parent fe14968c0d
commit 19223803f5
5 changed files with 24 additions and 24 deletions

View File

@@ -511,10 +511,10 @@ g_application_impl_attempt_primary (GApplicationImpl *impl,
if (app_flags & G_APPLICATION_ALLOW_REPLACEMENT)
{
impl->name_lost_signal = g_dbus_connection_signal_subscribe (impl->session_bus,
"org.freedesktop.DBus",
"org.freedesktop.DBus",
DBUS_SERVICE_DBUS,
DBUS_INTERFACE_DBUS,
"NameLost",
"/org/freedesktop/DBus",
DBUS_PATH_DBUS,
impl->bus_name,
G_DBUS_SIGNAL_FLAGS_NONE,
name_lost,