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
path: root/source
diff options
context:
space:
mode:
authorMartin Poirier <theeth@yahoo.com>2009-12-20 01:37:51 +0300
committerMartin Poirier <theeth@yahoo.com>2009-12-20 01:37:51 +0300
commitff038161f6ee255b4c60246f24315e8b911f773e (patch)
tree2f1074f53a212a2e4d1a1d51310a2ff16ff785fe /source
parentf3147db0e8ce7c5c0e2352876304c928405c3081 (diff)
Add missing names to SpaceTypes
Diffstat (limited to 'source')
-rw-r--r--source/blender/editors/space_action/space_action.c1
-rw-r--r--source/blender/editors/space_buttons/space_buttons.c1
-rw-r--r--source/blender/editors/space_console/space_console.c25
-rw-r--r--source/blender/editors/space_file/space_file.c1
-rw-r--r--source/blender/editors/space_graph/space_graph.c1
-rw-r--r--source/blender/editors/space_image/space_image.c1
-rw-r--r--source/blender/editors/space_info/space_info.c1
-rw-r--r--source/blender/editors/space_logic/space_logic.c1
-rw-r--r--source/blender/editors/space_nla/space_nla.c1
-rw-r--r--source/blender/editors/space_node/space_node.c1
-rw-r--r--source/blender/editors/space_script/space_script.c1
-rw-r--r--source/blender/editors/space_sequencer/space_sequencer.c1
-rw-r--r--source/blender/editors/space_sound/space_sound.c1
-rw-r--r--source/blender/editors/space_text/space_text.c1
-rw-r--r--source/blender/editors/space_userpref/space_userpref.c1
-rw-r--r--source/blender/editors/space_view3d/space_view3d.c1
16 files changed, 28 insertions, 12 deletions
diff --git a/source/blender/editors/space_action/space_action.c b/source/blender/editors/space_action/space_action.c
index 08ed44a54f9..67b4d6e848b 100644
--- a/source/blender/editors/space_action/space_action.c
+++ b/source/blender/editors/space_action/space_action.c
@@ -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;
diff --git a/source/blender/editors/space_buttons/space_buttons.c b/source/blender/editors/space_buttons/space_buttons.c
index b1940264d80..9a4ac872ceb 100644
--- a/source/blender/editors/space_buttons/space_buttons.c
+++ b/source/blender/editors/space_buttons/space_buttons.c
@@ -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;
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);
}
diff --git a/source/blender/editors/space_file/space_file.c b/source/blender/editors/space_file/space_file.c
index 939af53b87d..8714e772852 100644
--- a/source/blender/editors/space_file/space_file.c
+++ b/source/blender/editors/space_file/space_file.c
@@ -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;
diff --git a/source/blender/editors/space_graph/space_graph.c b/source/blender/editors/space_graph/space_graph.c
index f00215e7313..29a9186bc25 100644
--- a/source/blender/editors/space_graph/space_graph.c
+++ b/source/blender/editors/space_graph/space_graph.c
@@ -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;
diff --git a/source/blender/editors/space_image/space_image.c b/source/blender/editors/space_image/space_image.c
index 58f48f6fa07..5b05c8f8944 100644
--- a/source/blender/editors/space_image/space_image.c
+++ b/source/blender/editors/space_image/space_image.c
@@ -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;
diff --git a/source/blender/editors/space_info/space_info.c b/source/blender/editors/space_info/space_info.c
index ab10e05b204..d9662339bb2 100644
--- a/source/blender/editors/space_info/space_info.c
+++ b/source/blender/editors/space_info/space_info.c
@@ -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;
diff --git a/source/blender/editors/space_logic/space_logic.c b/source/blender/editors/space_logic/space_logic.c
index c5b18d5b40e..c2918dd0925 100644
--- a/source/blender/editors/space_logic/space_logic.c
+++ b/source/blender/editors/space_logic/space_logic.c
@@ -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;
diff --git a/source/blender/editors/space_nla/space_nla.c b/source/blender/editors/space_nla/space_nla.c
index a799e265b72..ddab0817c58 100644
--- a/source/blender/editors/space_nla/space_nla.c
+++ b/source/blender/editors/space_nla/space_nla.c
@@ -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;
diff --git a/source/blender/editors/space_node/space_node.c b/source/blender/editors/space_node/space_node.c
index dfdd4ea6657..650390a8727 100644
--- a/source/blender/editors/space_node/space_node.c
+++ b/source/blender/editors/space_node/space_node.c
@@ -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;
diff --git a/source/blender/editors/space_script/space_script.c b/source/blender/editors/space_script/space_script.c
index e6edb71c1b1..b882a3313cd 100644
--- a/source/blender/editors/space_script/space_script.c
+++ b/source/blender/editors/space_script/space_script.c
@@ -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;
diff --git a/source/blender/editors/space_sequencer/space_sequencer.c b/source/blender/editors/space_sequencer/space_sequencer.c
index b75b4e55ae3..25364aed5ca 100644
--- a/source/blender/editors/space_sequencer/space_sequencer.c
+++ b/source/blender/editors/space_sequencer/space_sequencer.c
@@ -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;
diff --git a/source/blender/editors/space_sound/space_sound.c b/source/blender/editors/space_sound/space_sound.c
index f2c449ffc1f..1cd5ab65c0f 100644
--- a/source/blender/editors/space_sound/space_sound.c
+++ b/source/blender/editors/space_sound/space_sound.c
@@ -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;
diff --git a/source/blender/editors/space_text/space_text.c b/source/blender/editors/space_text/space_text.c
index d657725b880..2f0e631e927 100644
--- a/source/blender/editors/space_text/space_text.c
+++ b/source/blender/editors/space_text/space_text.c
@@ -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;
diff --git a/source/blender/editors/space_userpref/space_userpref.c b/source/blender/editors/space_userpref/space_userpref.c
index da475ff4c5b..f45e08be697 100644
--- a/source/blender/editors/space_userpref/space_userpref.c
+++ b/source/blender/editors/space_userpref/space_userpref.c
@@ -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;
diff --git a/source/blender/editors/space_view3d/space_view3d.c b/source/blender/editors/space_view3d/space_view3d.c
index e362303c3cc..b4f3605c559 100644
--- a/source/blender/editors/space_view3d/space_view3d.c
+++ b/source/blender/editors/space_view3d/space_view3d.c
@@ -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;