Add g_simple_async_report_take_gerror_in_idle

... and use it where appropriate. Saves an extra GError copy.

Bug #633686.
This commit is contained in:
Christian Persch
2010-09-23 13:47:13 +02:00
parent 9e0c07870a
commit ba45e36932
14 changed files with 56 additions and 34 deletions

View File

@@ -227,11 +227,10 @@ g_file_io_stream_query_info_async (GFileIOStream *stream,
if (!g_io_stream_set_pending (io_stream, &error))
{
g_simple_async_report_gerror_in_idle (G_OBJECT (stream),
g_simple_async_report_take_gerror_in_idle (G_OBJECT (stream),
callback,
user_data,
error);
g_error_free (error);
return;
}