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:
authorBrecht Van Lommel <brechtvanlommel@pandora.be>2009-04-19 21:12:16 +0400
committerBrecht Van Lommel <brechtvanlommel@pandora.be>2009-04-19 21:12:16 +0400
commitf1979f45ec3fdfdc1e0faa807ee8c5595dd6b82e (patch)
tree1e7175a88938a446f01ec0928948111c046c4bca /source/blender/editors/space_text/text_header.c
parentadff6aeb1c749183921c0facd373972bbeb874b4 (diff)
RNA:
* Wrapped HeaderType/Header. * Some tweaks to get type properties wrapped with less code. * Made Panel space and region types enum instead of string.
Diffstat (limited to 'source/blender/editors/space_text/text_header.c')
-rw-r--r--source/blender/editors/space_text/text_header.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/source/blender/editors/space_text/text_header.c b/source/blender/editors/space_text/text_header.c
index b2069b14d06..81508066199 100644
--- a/source/blender/editors/space_text/text_header.c
+++ b/source/blender/editors/space_text/text_header.c
@@ -357,12 +357,13 @@ static void text_idpoin_handle(bContext *C, ID *id, int event)
/********************** header buttons ***********************/
-static void text_header_draw(const bContext *C, uiLayout *layout)
+static void text_header_draw(const bContext *C, Header *header)
{
bScreen *sc= CTX_wm_screen(C);
SpaceText *st= (SpaceText*)CTX_wm_space_data(C);
PointerRNA spaceptr;
Text *text= st->text;
+ uiLayout *layout= header->layout;
RNA_pointer_create(&sc->id, &RNA_SpaceTextEditor, st, &spaceptr);
@@ -421,8 +422,7 @@ void text_header_register(ARegionType *art)
/* header */
ht= MEM_callocN(sizeof(HeaderType), "spacetype text header");
- ht->idname= "TEXT_HT_header";
- ht->name= "Header";
+ strcpy(ht->idname, "TEXT_HT_header");
ht->draw= text_header_draw;
BLI_addhead(&art->headertypes, ht);
}