mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-01 15:03:39 +02:00
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:
committed by
Philip Withnall
parent
fe14968c0d
commit
19223803f5
@@ -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,
|
||||
|
Reference in New Issue
Block a user