#include "gsimpleasyncresult.h"
#include "gioerror.h"
-#include "gioalias.h"
/**
* SECTION:gfileicon
*
* Creates a new icon for a file.
*
- * Returns: a #GIcon for the given @file, or %NULL on error.
+ * Returns: (transfer full): a #GIcon for the given @file, or %NULL on error.
**/
GIcon *
g_file_icon_new (GFile *file)
*
* Gets the #GFile associated with the given @icon.
*
- * Returns: a #GFile, or %NULL.
+ * Returns: (transfer none): a #GFile, or %NULL.
**/
GFile *
g_file_icon_get_file (GFileIcon *icon)
if (stream == NULL)
{
- simple = g_simple_async_result_new_from_error (G_OBJECT (data->icon),
+ simple = g_simple_async_result_new_take_error (G_OBJECT (data->icon),
data->callback,
data->user_data,
error);
- g_error_free (error);
}
else
{
iface->load_async = g_file_icon_load_async;
iface->load_finish = g_file_icon_load_finish;
}
-
-#define __G_FILE_ICON_C__
-#include "gioaliasdef.c"