diff options
author | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2009-04-19 21:12:16 +0400 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2009-04-19 21:12:16 +0400 |
commit | f1979f45ec3fdfdc1e0faa807ee8c5595dd6b82e (patch) | |
tree | 1e7175a88938a446f01ec0928948111c046c4bca /source/blender/editors/interface/interface_layout.c | |
parent | adff6aeb1c749183921c0facd373972bbeb874b4 (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/interface/interface_layout.c')
-rw-r--r-- | source/blender/editors/interface/interface_layout.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/source/blender/editors/interface/interface_layout.c b/source/blender/editors/interface/interface_layout.c index 7d27934f691..df17743d96a 100644 --- a/source/blender/editors/interface/interface_layout.c +++ b/source/blender/editors/interface/interface_layout.c @@ -1262,6 +1262,7 @@ void uiRegionHeaderLayout(const bContext *C, ARegion *ar) uiBlock *block; uiLayout *layout; HeaderType *ht; + Header header = {}; float col[3]; int xco, yco; @@ -1287,8 +1288,11 @@ void uiRegionHeaderLayout(const bContext *C, ARegion *ar) block= uiBeginBlock(C, ar, "header buttons", UI_EMBOSS); layout= uiLayoutBegin(UI_LAYOUT_HORIZONTAL, xco, yco, 24, 1); - if(ht->draw) - ht->draw(C, layout); + if(ht->draw) { + header.type= ht; + header.layout= layout; + ht->draw(C, &header); + } uiLayoutEnd(C, block, layout, &xco, &yco); uiEndBlock(C, block); |