diff options
author | Bilal Elmoussaoui <belmouss@redhat.com> | 2022-03-07 10:06:33 +0100 |
---|---|---|
committer | Bilal Elmoussaoui <belmouss@redhat.com> | 2022-03-07 10:07:18 +0100 |
commit | 6d75a5502752f3ae79f7d2bcca8cf3f5f5651828 (patch) | |
tree | 8233977c1ffb4f3c2a77b47746524f6350f42e79 | |
parent | 2fb5104731a361ee6c917c27bde79f463f774e68 (diff) | |
download | gtk+-bilelmoussaoui/g-i2.tar.gz |
g-i: mark GtkIconTheme.get_theme_name as nullablebilelmoussaoui/g-i2
The setter is nullable as well
Fixes downstream bug at https://github.com/gtk-rs/gtk4-rs/issues/903
-rw-r--r-- | gtk/gtkicontheme.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/gtk/gtkicontheme.c b/gtk/gtkicontheme.c index 5c88718356..31a2ab5094 100644 --- a/gtk/gtkicontheme.c +++ b/gtk/gtkicontheme.c @@ -1050,7 +1050,7 @@ gtk_icon_theme_class_init (GtkIconThemeClass *klass) * * Unless set to a different value, this will be the value of * the `GtkSettings:gtk-icon-theme-name` property of the `GtkSettings` - * object associated to the display of the icontheme object. + * object associated to the display of the icontheme object. */ props[PROP_THEME_NAME] = g_param_spec_string ("theme-name", @@ -1521,7 +1521,7 @@ gtk_icon_theme_add_search_path (GtkIconTheme *self, g_return_if_fail (GTK_IS_ICON_THEME (self)); g_return_if_fail (path != NULL); - + len = g_strv_length (self->search_path); paths = g_new (char *, len + 2); memcpy (paths, self->search_path, sizeof (char *) * len); @@ -1536,7 +1536,7 @@ gtk_icon_theme_add_search_path (GtkIconTheme *self, /** * gtk_icon_theme_set_resource_path: * @self: a `GtkIconTheme` - * @path: (array zero-terminated=1) (element-type utf8) (nullable): + * @path: (array zero-terminated=1) (element-type utf8) (nullable): * NULL-terminated array of resource paths * that are searched for icons * @@ -1622,7 +1622,7 @@ gtk_icon_theme_add_resource_path (GtkIconTheme *self, g_return_if_fail (GTK_IS_ICON_THEME (self)); g_return_if_fail (path != NULL); - + len = g_strv_length (self->resource_path); paths = g_new (char *, len + 2); memcpy (paths, self->resource_path, sizeof (char *) * len); @@ -1686,7 +1686,7 @@ gtk_icon_theme_set_theme_name (GtkIconTheme *self, * * Gets the current icon theme name. * - * Returns (transfer full): the current icon theme name, + * Returns (transfer full) (nullable): the current icon theme name, */ char * gtk_icon_theme_get_theme_name (GtkIconTheme *self) |