mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-07-25 03:17:52 +02:00
gdbus: Use symbolic constants to call message bus methods
These function arguments are arranged in the obvious order from conceptually largest to smallest: (bus name, path, interface, method). Signed-off-by: Simon McVittie <smcv@collabora.com>
This commit is contained in:
committed by
Philip Withnall
parent
2151a82007
commit
fe14968c0d
@@ -22,6 +22,7 @@
|
||||
|
||||
#include "giomodule-priv.h"
|
||||
#include "gdbusconnection.h"
|
||||
#include "gdbusprivate.h"
|
||||
#include "gapplication.h"
|
||||
#include "gnotification-private.h"
|
||||
|
||||
@@ -58,8 +59,8 @@ g_gtk_notification_backend_is_supported (void)
|
||||
if (session_bus == NULL)
|
||||
return FALSE;
|
||||
|
||||
reply = g_dbus_connection_call_sync (session_bus, "org.freedesktop.DBus", "/org/freedesktop/DBus",
|
||||
"org.freedesktop.DBus",
|
||||
reply = g_dbus_connection_call_sync (session_bus, DBUS_SERVICE_DBUS, DBUS_PATH_DBUS,
|
||||
DBUS_INTERFACE_DBUS,
|
||||
"GetNameOwner", g_variant_new ("(s)", "org.gtk.Notifications"),
|
||||
G_VARIANT_TYPE ("(s)"), G_DBUS_CALL_FLAGS_NONE, -1, NULL, NULL);
|
||||
|
||||
|
Reference in New Issue
Block a user