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:
authorThomas Dinges <blender@dingto.org>2009-10-16 14:25:39 +0400
committerThomas Dinges <blender@dingto.org>2009-10-16 14:25:39 +0400
commit04f17fed4d2972bcf4ffc544d1715b5b253f9e54 (patch)
treee30be124aadfb15b5fab36e4b6eecee7fc79b89b /source/blender/editors/space_outliner/space_outliner.c
parent5938b4c93e92c6663f134a3e1e4ec36e22469ee2 (diff)
2.5 Outliner:
Finally, the Outliner Header is drawn via Python too. * Also added some Operators to the View Menu.
Diffstat (limited to 'source/blender/editors/space_outliner/space_outliner.c')
-rw-r--r--source/blender/editors/space_outliner/space_outliner.c23
1 files changed, 0 insertions, 23 deletions
diff --git a/source/blender/editors/space_outliner/space_outliner.c b/source/blender/editors/space_outliner/space_outliner.c
index fabe889ace6..826a313217a 100644
--- a/source/blender/editors/space_outliner/space_outliner.c
+++ b/source/blender/editors/space_outliner/space_outliner.c
@@ -153,38 +153,15 @@ 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))
- UI_GetThemeColor3fv(TH_HEADER, col);
- else
- UI_GetThemeColor3fv(TH_HEADERDESEL, col);
-
- glClearColor(col[0], col[1], col[2], 0.0);
- glClear(GL_COLOR_BUFFER_BIT);
-
- /* set view2d view matrix for scrolling (without scrollers) */
- UI_view2d_view_ortho(C, &ar->v2d);
-
- outliner_header_buttons(C, ar);
-#endif
}
static void outliner_header_area_free(ARegion *ar)