gbytesicon: Fix error in g_bytes_icon_new() documentation

It said that `NULL` could be returned, but actually `g_bytes_icon_new()`
can never fail.

Signed-off-by: Philip Withnall <pwithnall@endlessos.org>
This commit is contained in:
Philip Withnall 2021-03-14 15:53:24 +00:00
parent 7bd4a2b146
commit d26d70d66a

View File

@ -146,8 +146,11 @@ g_bytes_icon_init (GBytesIcon *bytes)
*
* Creates a new icon for a bytes.
*
* This cannot fail, but loading and interpreting the bytes may fail later on
* (for example, if g_loadable_icon_load() is called) if the image is invalid.
*
* Returns: (transfer full) (type GBytesIcon): a #GIcon for the given
* @bytes, or %NULL on error.
* @bytes.
*
* Since: 2.38
**/