mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-11-10 11:26:16 +01:00
d65c8c30a9
Like G_SOURCE_REMOVE and G_SOURCE_CONTINUE, these make it clearer what it means to return TRUE or FALSE. In particular, in GDBus methods that fail, the failure case still needs to return TRUE (unlike the typical GError pattern), leading to comments like this: g_dbus_method_invocation_return_error (invocation, ...); return TRUE; /* handled */ which can now be replaced by: g_dbus_method_invocation_return_error (invocation, ...); return G_DUS_METHOD_INVOCATION_HANDLED; G_DBUS_METHOD_INVOCATION_UNHANDLED is added for symmetry, but is very rarely (perhaps never?) useful in practice. Signed-off-by: Simon McVittie <smcv@collabora.com> |
||
---|---|---|
.. | ||
codegen |