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-09-07 23:03:29 +0300
committerCampbell Barton <ideasman42@gmail.com>2018-09-07 23:03:29 +0300
commit9c7195789d4f6c1a4c10cf4cfea96fcd75b703e6 (patch)
tree80cfa9652bfad5fc52de590d1185859662ae5872 /source/blender/makesrna/intern/rna_screen.c
parente2fc6615c406a7162e1585cb181c25791415c441 (diff)
parent59eaa9030098b7991c3a8bf01f56fe7f2cf0cd36 (diff)
Merge branch 'master' into blender2.8
Diffstat (limited to 'source/blender/makesrna/intern/rna_screen.c')
-rw-r--r--source/blender/makesrna/intern/rna_screen.c18
1 files changed, 12 insertions, 6 deletions
diff --git a/source/blender/makesrna/intern/rna_screen.c b/source/blender/makesrna/intern/rna_screen.c
index 5f199608f65..72514984188 100644
--- a/source/blender/makesrna/intern/rna_screen.c
+++ b/source/blender/makesrna/intern/rna_screen.c
@@ -322,11 +322,21 @@ static void rna_def_area_spaces(BlenderRNA *brna, PropertyRNA *cprop)
RNA_def_property_ui_text(prop, "Active Space", "Space currently being displayed in this area");
}
+static void rna_def_area_api(StructRNA *srna)
+{
+ FunctionRNA *func;
+
+ RNA_def_function(srna, "tag_redraw", "ED_area_tag_redraw");
+
+ func = RNA_def_function(srna, "header_text_set", "ED_area_status_text");
+ RNA_def_function_ui_description(func, "Set the header status text");
+ RNA_def_string(func, "text", NULL, 0, "Text", "New string for the header, no argument clears the text");
+}
+
static void rna_def_area(BlenderRNA *brna)
{
StructRNA *srna;
PropertyRNA *prop;
- FunctionRNA *func;
srna = RNA_def_struct(brna, "Area", NULL);
RNA_def_struct_ui_text(srna, "Area", "Area in a subdivided screen, containing an editor");
@@ -389,11 +399,7 @@ static void rna_def_area(BlenderRNA *brna)
RNA_def_property_clear_flag(prop, PROP_EDITABLE);
RNA_def_property_ui_text(prop, "Height", "Area height");
- RNA_def_function(srna, "tag_redraw", "ED_area_tag_redraw");
-
- func = RNA_def_function(srna, "header_text_set", "ED_area_status_text");
- RNA_def_function_ui_description(func, "Set the header status text");
- RNA_def_string(func, "text", NULL, 0, "Text", "New string for the header, no argument clears the text");
+ rna_def_area_api(srna);
}
static void rna_def_view2d_api(StructRNA *srna)