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-05-29 03:58:18 +0400
committerBrecht Van Lommel <brechtvanlommel@pandora.be>2009-05-29 03:58:18 +0400
commitce334b1cd9a23a7b89d6926618526f0e6e80b437 (patch)
tree0d418b29b50e16b338b96ff9b9adf16ecf585218 /source/blender/editors/space_outliner
parenta741cbff82b824877f3799d45b07c68b0485249e (diff)
UI: Matt, check space_outliner.c diff to see how to get python
layouts in a header.
Diffstat (limited to 'source/blender/editors/space_outliner')
-rw-r--r--source/blender/editors/space_outliner/space_outliner.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/source/blender/editors/space_outliner/space_outliner.c b/source/blender/editors/space_outliner/space_outliner.c
index 8e30db584af..4ddb586beb4 100644
--- a/source/blender/editors/space_outliner/space_outliner.c
+++ b/source/blender/editors/space_outliner/space_outliner.c
@@ -143,14 +143,23 @@ static void outliner_main_area_listener(ARegion *ar, wmNotifier *wmn)
/* ************************ header outliner area region *********************** */
+//#define PY_HEADER
+
/* add handlers, stuff you only do once or on area/region changes */
static void outliner_header_area_init(wmWindowManager *wm, ARegion *ar)
{
+#ifdef PY_HEADER
+ ED_region_header_init(ar);
+#else
UI_view2d_region_reinit(&ar->v2d, V2D_COMMONVIEW_HEADER, ar->winx, ar->winy);
+#endif
}
static void outliner_header_area_draw(const bContext *C, ARegion *ar)
{
+#ifdef PY_HEADER
+ ED_region_header(C, ar);
+#else
float col[3];
if(ED_screen_area_active(C))
@@ -165,6 +174,7 @@ static void outliner_header_area_draw(const bContext *C, ARegion *ar)
UI_view2d_view_ortho(C, &ar->v2d);
outliner_header_buttons(C, ar);
+#endif
}
static void outliner_header_area_free(ARegion *ar)