UI: support passing a function to WorkSpace.status_text_set()

This allows Python operators to draw icons and other UI elements
into the status bar.
This commit is contained in:
2019-10-08 14:21:41 +11:00
parent a856c5eccf
commit f9a266a226
2 changed files with 22 additions and 1 deletions

View File

@@ -110,7 +110,7 @@ void RNA_api_workspace(StructRNA *srna)
FunctionRNA *func;
PropertyRNA *parm;
func = RNA_def_function(srna, "status_text_set", "ED_workspace_status_text");
func = RNA_def_function(srna, "status_text_set_internal", "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");