mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-11-10 03:16:17 +01:00
Allow null object in g_simple_async_report_gerror_in_idle
Follow-up on bug 636673.
This commit is contained in:
parent
678bcad92c
commit
1f9e34cab7
@ -975,7 +975,7 @@ g_simple_async_report_error_in_idle (GObject *object,
|
||||
|
||||
/**
|
||||
* g_simple_async_report_gerror_in_idle:
|
||||
* @object: a #GObject.
|
||||
* @object: (allow-none): a #GObject, or %NULL
|
||||
* @callback: a #GAsyncReadyCallback.
|
||||
* @user_data: user data passed to @callback.
|
||||
* @error: the #GError to report
|
||||
@ -992,7 +992,7 @@ g_simple_async_report_gerror_in_idle (GObject *object,
|
||||
{
|
||||
GSimpleAsyncResult *simple;
|
||||
|
||||
g_return_if_fail (G_IS_OBJECT (object));
|
||||
g_return_if_fail (!object || G_IS_OBJECT (object));
|
||||
g_return_if_fail (error != NULL);
|
||||
|
||||
simple = g_simple_async_result_new_from_error (object,
|
||||
|
Loading…
Reference in New Issue
Block a user