Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2018-10-30 00:55:36 +0300
committerCampbell Barton <ideasman42@gmail.com>2018-10-30 00:55:36 +0300
commit39a1d4527950fe32b9a421ce366b012a5fe1fa79 (patch)
treeb00de3a686590037fa3c043c51700d0a332beb11 /source/blender/makesrna/intern/rna_workspace_api.c
parent79ff9a0e19018982baa6dbc9fe6c68b7819f5b9a (diff)
WM: correct description for header/status_text_set
Make text a required argument for both.
Diffstat (limited to 'source/blender/makesrna/intern/rna_workspace_api.c')
-rw-r--r--source/blender/makesrna/intern/rna_workspace_api.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/source/blender/makesrna/intern/rna_workspace_api.c b/source/blender/makesrna/intern/rna_workspace_api.c
index 93da4a91738..398da78d7f9 100644
--- a/source/blender/makesrna/intern/rna_workspace_api.c
+++ b/source/blender/makesrna/intern/rna_workspace_api.c
@@ -171,11 +171,13 @@ static PointerRNA rna_WorkspaceTool_gizmo_group_properties(
void RNA_api_workspace(StructRNA *srna)
{
FunctionRNA *func;
+ PropertyRNA *parm;
func = RNA_def_function(srna, "status_text_set", "ED_workspace_status_text");
RNA_def_function_flag(func, FUNC_NO_SELF | FUNC_USE_CONTEXT);
RNA_def_function_ui_description(func, "Set the status bar text, typically key shortcuts for modal operators");
- RNA_def_string(func, "text", NULL, 0, "Text", "New string for the status bar, no argument clears the text");
+ parm = RNA_def_string(func, "text", NULL, 0, "Text", "New string for the status bar, empty string clears the text");
+ RNA_def_parameter_flags(parm, 0, PARM_REQUIRED);
}
void RNA_api_workspace_tool(StructRNA *srna)