mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-12-25 15:06:14 +01:00
gdbusmessage: Add missing G_GNUC_PRINTF attribute
This highlighted a bug in GDBusConnection, where an interface name was not included in a message referring to it. Signed-off-by: Philip Withnall <withnall@endlessm.com> https://bugzilla.gnome.org/show_bug.cgi?id=780032
This commit is contained in:
parent
e013164c5c
commit
ff327ba2d7
@ -4606,7 +4606,7 @@ handle_get_all_properties (GDBusConnection *connection,
|
||||
GDBusMessage *reply;
|
||||
reply = g_dbus_message_new_method_error (message,
|
||||
"org.freedesktop.DBus.Error.InvalidArgs",
|
||||
_("No such interface"),
|
||||
_("No such interface ‘%s’"),
|
||||
interface_name);
|
||||
g_dbus_connection_send_message_unlocked (eo->connection, reply, G_DBUS_SEND_MESSAGE_FLAGS_NONE, NULL, NULL);
|
||||
g_object_unref (reply);
|
||||
|
@ -52,7 +52,7 @@ GLIB_AVAILABLE_IN_ALL
|
||||
GDBusMessage *g_dbus_message_new_method_error (GDBusMessage *method_call_message,
|
||||
const gchar *error_name,
|
||||
const gchar *error_message_format,
|
||||
...);
|
||||
...) G_GNUC_PRINTF(3, 4);
|
||||
GLIB_AVAILABLE_IN_ALL
|
||||
GDBusMessage *g_dbus_message_new_method_error_valist (GDBusMessage *method_call_message,
|
||||
const gchar *error_name,
|
||||
|
Loading…
Reference in New Issue
Block a user