Commit 2ffbb377 authored by Timm Bäder's avatar Timm Bäder 🤔

icontheme: Annotate return value of load_icon as nullable

It returns NULL in the error case.
parent 6821fe0c
......@@ -3758,10 +3758,11 @@ proxy_pixbuf_destroy (guchar *pixels, gpointer data)
* the #GtkIconInfo. If this flag has been specified, the pixbuf
* returned by this function will be scaled to the exact size.
* Returns: (transfer full): the rendered icon; this may be a newly
* Returns: (transfer full) (nullable): the rendered icon; this may be a newly
* created icon or a new reference to an internal icon, so you must
* not modify the icon. Use g_object_unref() to release your reference
* to the icon.
* If the icon could not be loaded, %NULL is returned and @error is set.
GdkPixbuf *
gtk_icon_info_load_icon (GtkIconInfo *icon_info,
......@@ -3779,12 +3780,12 @@ gtk_icon_info_load_icon (GtkIconInfo *icon_info,
g_set_error_literal (error,
g_set_error_literal (error,
_("Failed to load icon"));
return NULL;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment