Add missing names to SpaceTypes

This commit is contained in:
Martin Poirier 2009-12-19 22:37:51 +00:00
parent f3147db0e8
commit ff038161f6
16 changed files with 28 additions and 12 deletions

@ -416,6 +416,7 @@ void ED_spacetype_action(void)
ARegionType *art;
st->spaceid= SPACE_ACTION;
strncpy(st->name, "Action", BKE_ST_MAXNAME);
st->new= action_new;
st->free= action_free;

@ -359,6 +359,7 @@ void ED_spacetype_buttons(void)
ARegionType *art;
st->spaceid= SPACE_BUTS;
strncpy(st->name, "Buttons", BKE_ST_MAXNAME);
st->new= buttons_new;
st->free= buttons_free;

@ -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);
}

@ -507,6 +507,7 @@ void ED_spacetype_file(void)
ARegionType *art;
st->spaceid= SPACE_FILE;
strncpy(st->name, "File", BKE_ST_MAXNAME);
st->new= file_new;
st->free= file_free;

@ -566,6 +566,7 @@ void ED_spacetype_ipo(void)
ARegionType *art;
st->spaceid= SPACE_IPO;
strncpy(st->name, "Graph", BKE_ST_MAXNAME);
st->new= graph_new;
st->free= graph_free;

@ -530,6 +530,7 @@ void ED_spacetype_image(void)
ARegionType *art;
st->spaceid= SPACE_IMAGE;
strncpy(st->name, "Image", BKE_ST_MAXNAME);
st->new= image_new;
st->free= image_free;

@ -182,6 +182,7 @@ void ED_spacetype_info(void)
ARegionType *art;
st->spaceid= SPACE_INFO;
strncpy(st->name, "Info", BKE_ST_MAXNAME);
st->new= info_new;
st->free= info_free;

@ -332,6 +332,7 @@ void ED_spacetype_logic(void)
ARegionType *art;
st->spaceid= SPACE_LOGIC;
strncpy(st->name, "Logic", BKE_ST_MAXNAME);
st->new= logic_new;
st->free= logic_free;

@ -507,6 +507,7 @@ void ED_spacetype_nla(void)
ARegionType *art;
st->spaceid= SPACE_NLA;
strncpy(st->name, "NLA", BKE_ST_MAXNAME);
st->new= nla_new;
st->free= nla_free;

@ -351,6 +351,7 @@ void ED_spacetype_node(void)
ARegionType *art;
st->spaceid= SPACE_NODE;
strncpy(st->name, "Node", BKE_ST_MAXNAME);
st->new= node_new;
st->free= node_free;

@ -197,6 +197,7 @@ void ED_spacetype_script(void)
ARegionType *art;
st->spaceid= SPACE_SCRIPT;
strncpy(st->name, "Script", BKE_ST_MAXNAME);
st->new= script_new;
st->free= script_free;

@ -413,6 +413,7 @@ void ED_spacetype_sequencer(void)
ARegionType *art;
st->spaceid= SPACE_SEQ;
strncpy(st->name, "Sequencer", BKE_ST_MAXNAME);
st->new= sequencer_new;
st->free= sequencer_free;

@ -224,6 +224,7 @@ void ED_spacetype_sound(void)
ARegionType *art;
st->spaceid= SPACE_SOUND;
strncpy(st->name, "Sound", BKE_ST_MAXNAME);
st->new= sound_new;
st->free= sound_free;

@ -402,6 +402,7 @@ void ED_spacetype_text(void)
ARegionType *art;
st->spaceid= SPACE_TEXT;
strncpy(st->name, "Text", BKE_ST_MAXNAME);
st->new= text_new;
st->free= text_free;

@ -153,6 +153,7 @@ void ED_spacetype_userpref(void)
ARegionType *art;
st->spaceid= SPACE_USERPREF;
strncpy(st->name, "Userpref", BKE_ST_MAXNAME);
st->new= userpref_new;
st->free= userpref_free;

@ -776,6 +776,7 @@ void ED_spacetype_view3d(void)
ARegionType *art;
st->spaceid= SPACE_VIEW3D;
strncpy(st->name, "View3D", BKE_ST_MAXNAME);
st->new= view3d_new;
st->free= view3d_free;