[gtk/matthiasc/for-master: 47/56] window: default_icon_name can be null




commit 6a3bd1c4d1c3bf9f21ab2cceee4b5d964ad7b674
Author: Bilal Elmoussaoui <bil elmoussaoui gmail com>
Date:   Tue Nov 24 17:35:46 2020 +0100

    window: default_icon_name can be null

 gtk/gtkwindow.c | 11 ++++++-----
 1 file changed, 6 insertions(+), 5 deletions(-)
---
diff --git a/gtk/gtkwindow.c b/gtk/gtkwindow.c
index 2b3a7ca741..996e09c64b 100644
--- a/gtk/gtkwindow.c
+++ b/gtk/gtkwindow.c
@@ -3283,12 +3283,13 @@ gtk_window_set_default_icon_name (const char *name)
  * gtk_window_get_default_icon_name:
  *
  * Returns the fallback icon name for windows that has been set
- * with gtk_window_set_default_icon_name(). The returned
- * string is owned by GTK and should not be modified. It
- * is only valid until the next call to
- * gtk_window_set_default_icon_name().
+ * with gtk_window_set_default_icon_name(), or %NULL if that function
+ * has not been called.
  *
- * Returns: the fallback icon name for windows
+ * The returned string is owned by GTK and should not be modified.
+ * It is only valid until the next call to gtk_window_set_default_icon_name().
+ *
+ * Returns: (nullable): the fallback icon name for windows
  */
 const char *
 gtk_window_get_default_icon_name (void)


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]