diff options
author | Martin Poirier <theeth@yahoo.com> | 2009-12-20 01:37:51 +0300 |
---|---|---|
committer | Martin Poirier <theeth@yahoo.com> | 2009-12-20 01:37:51 +0300 |
commit | ff038161f6ee255b4c60246f24315e8b911f773e (patch) | |
tree | 2f1074f53a212a2e4d1a1d51310a2ff16ff785fe /source/blender/editors/space_console | |
parent | f3147db0e8ce7c5c0e2352876304c928405c3081 (diff) |
Add missing names to SpaceTypes
Diffstat (limited to 'source/blender/editors/space_console')
-rw-r--r-- | source/blender/editors/space_console/space_console.c | 25 |
1 files changed, 13 insertions, 12 deletions
diff --git a/source/blender/editors/space_console/space_console.c b/source/blender/editors/space_console/space_console.c index 4d2f816ba6b..7d23421c5cf 100644 --- a/source/blender/editors/space_console/space_console.c +++ b/source/blender/editors/space_console/space_console.c @@ -326,18 +326,19 @@ static void console_main_area_listener(ScrArea *sa, wmNotifier *wmn) /* only called once, from space/spacetypes.c */ void ED_spacetype_console(void) { - SpaceType *sc= MEM_callocN(sizeof(SpaceType), "spacetype console"); + SpaceType *st= MEM_callocN(sizeof(SpaceType), "spacetype console"); ARegionType *art; - sc->spaceid= SPACE_CONSOLE; + st->spaceid= SPACE_CONSOLE; + strncpy(st->name, "Console", BKE_ST_MAXNAME); - sc->new= console_new; - sc->free= console_free; - sc->init= console_init; - sc->duplicate= console_duplicate; - sc->operatortypes= console_operatortypes; - sc->keymap= console_keymap; - sc->listener= console_main_area_listener; + st->new= console_new; + st->free= console_free; + st->init= console_init; + st->duplicate= console_duplicate; + st->operatortypes= console_operatortypes; + st->keymap= console_keymap; + st->listener= console_main_area_listener; /* regions: main window */ art= MEM_callocN(sizeof(ARegionType), "spacetype console region"); @@ -350,7 +351,7 @@ void ED_spacetype_console(void) - BLI_addhead(&sc->regiontypes, art); + BLI_addhead(&st->regiontypes, art); /* regions: header */ art= MEM_callocN(sizeof(ARegionType), "spacetype console region"); @@ -361,8 +362,8 @@ void ED_spacetype_console(void) art->init= console_header_area_init; art->draw= console_header_area_draw; - BLI_addhead(&sc->regiontypes, art); + BLI_addhead(&st->regiontypes, art); - BKE_spacetype_register(sc); + BKE_spacetype_register(st); } |