[glib] Allow null object in g_simple_async_report_gerror_in_idle
- From: Christian Dywan <cdywan src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib] Allow null object in g_simple_async_report_gerror_in_idle
- Date: Mon, 20 Dec 2010 16:21:07 +0000 (UTC)
commit 1f9e34cab7b474a2b98c52d111a61f596ae33b58
Author: Christian Dywan <christian twotoasts de>
Date: Mon Dec 20 17:15:15 2010 +0100
Allow null object in g_simple_async_report_gerror_in_idle
Follow-up on bug 636673.
gio/gsimpleasyncresult.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gio/gsimpleasyncresult.c b/gio/gsimpleasyncresult.c
index 458cf2e..30d5123 100644
--- a/gio/gsimpleasyncresult.c
+++ b/gio/gsimpleasyncresult.c
@@ -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,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]