diff options
author | Tristan Van Berkom <tristan@upstairslabs.com> | 2016-01-27 14:55:20 +0100 |
---|---|---|
committer | Tristan Van Berkom <tristan@upstairslabs.com> | 2016-01-27 14:55:20 +0100 |
commit | 9e7585c0a6f0277af46f6022db4192fd468d2d59 (patch) | |
tree | e3ab99fb60361511abb721362bb01a7585180f6c | |
parent | f482bec02e66b5d5afd8699194a2be6cdc569ccf (diff) | |
download | glade-9e7585c0a6f0277af46f6022db4192fd468d2d59.tar.gz |
GladeProject: redocument glade_project_new_widget_name()
Now does not require the gwidget (actually did not for a long time).
-rw-r--r-- | gladeui/glade-project.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/gladeui/glade-project.c b/gladeui/glade-project.c index 79655806..c2100319 100644 --- a/gladeui/glade-project.c +++ b/gladeui/glade-project.c @@ -3562,12 +3562,14 @@ glade_project_reserve_widget_name (GladeProject *project, /** * glade_project_new_widget_name: * @project: a #GladeProject - * @widget: the #GladeWidget intended to recieve a new name + * @widget: the #GladeWidget intended to recieve a new name, or %NULL * @base_name: base name of the widget to create * * Creates a new name for a widget that doesn't collide with any of the names * already in @project. This name will start with @base_name. * + * Note the @widget parameter is ignored and preserved only for historical reasons. + * * Returns: a string containing the new name, %NULL if there is not enough * memory for this string */ @@ -3579,7 +3581,6 @@ glade_project_new_widget_name (GladeProject *project, gchar *name; g_return_val_if_fail (GLADE_IS_PROJECT (project), NULL); - g_return_val_if_fail (GLADE_IS_WIDGET (widget), NULL); g_return_val_if_fail (base_name && base_name[0], NULL); name = glade_name_context_new_name (project->priv->widget_names, base_name); |