Add missing names to SpaceTypes
authorMartin Poirier <theeth@yahoo.com>
Sat, 19 Dec 2009 22:37:51 +0000 (22:37 +0000)
committerMartin Poirier <theeth@yahoo.com>
Sat, 19 Dec 2009 22:37:51 +0000 (22:37 +0000)
16 files changed:
source/blender/editors/space_action/space_action.c
source/blender/editors/space_buttons/space_buttons.c
source/blender/editors/space_console/space_console.c
source/blender/editors/space_file/space_file.c
source/blender/editors/space_graph/space_graph.c
source/blender/editors/space_image/space_image.c
source/blender/editors/space_info/space_info.c
source/blender/editors/space_logic/space_logic.c
source/blender/editors/space_nla/space_nla.c
source/blender/editors/space_node/space_node.c
source/blender/editors/space_script/space_script.c
source/blender/editors/space_sequencer/space_sequencer.c
source/blender/editors/space_sound/space_sound.c
source/blender/editors/space_text/space_text.c
source/blender/editors/space_userpref/space_userpref.c
source/blender/editors/space_view3d/space_view3d.c

index 08ed44a54f91781e43d80a7f8341f828f2678bf7..67b4d6e848bccb75ddbcc5b0f3855f842a48f862 100644 (file)
@@ -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;
index b1940264d80b7e5392b1f3f297cf323dbd0256ab..9a4ac872ceb5e3cf72b81608ebb7a9db003938b8 100644 (file)
@@ -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;
index 4d2f816ba6b7af792cbe8bfc2676e646211137f2..7d23421c5cf5d07f41fbb38e90537b0feda120ff 100644 (file)
@@ -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);
 }
index 939af53b87da225affb041037be4acaf57b3fcbc..8714e772852e6e330826467d29f0c59f38cc118b 100644 (file)
@@ -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;
index f00215e73137f7668ec6f56219df15c1266b9e84..29a9186bc25f7e3653a326bbdd7470010d0fbc26 100644 (file)
@@ -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;
index 58f48f6fa071cde689f473cb3878f8466940adc8..5b05c8f8944482d0dae214fe6ab380cc7ce2541d 100644 (file)
@@ -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;
index ab10e05b2042eeca50f3afddb1a5add78340faed..d9662339bb23d49c3698c98bb9ecd1f9e17c2a67 100644 (file)
@@ -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;
index c5b18d5b40ee55c1f81657ab6f316bd163ba5d39..c2918dd0925ac823822ea4c3e66c56400c072ef3 100644 (file)
@@ -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;
index a799e265b7214ca1d8e9c4220ae9c6d769ab0207..ddab0817c588b10e3c4472fa374a097351ff9e74 100644 (file)
@@ -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;
index dfdd4ea66575eed2f5c41100ddd82c8fa98fc633..650390a8727a6e7067ef2d679084bea1acb0f9a8 100644 (file)
@@ -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;
index e6edb71c1b1c20837fbc7f6b734f7bce02acde16..b882a3313cdca8165f257e29a1996bb16edcbc31 100644 (file)
@@ -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;
index b75b4e55ae31e090d531a74486ebc8adcdf9f444..25364aed5ca412ce20b5e9688ba0b720c3d3b484 100644 (file)
@@ -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;
index f2c449ffc1f549c2b7dcad1209a198eacd84a04a..1cd5ab65c0f655b760db64861f791b34aa010b7d 100644 (file)
@@ -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;
index d657725b880a5eae1b7d0e8cf23a93461f61aac5..2f0e631e92723cfb4f4622d39e56e25b0e01b58e 100644 (file)
@@ -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;
index da475ff4c5ba120527d6aff6f8f201dc2ec9640b..f45e08be6977213c8fea40622f1ad09d4f579d3c 100644 (file)
@@ -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;
index e362303c3ccf2001d82055bce0ad3efae8f94dc4..b4f3605c55906581f001d24058239ae685b38fe1 100644 (file)
@@ -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;