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:
authorAlexander Ewering <blender@instinctive.de>2006-05-26 02:00:12 +0400
committerAlexander Ewering <blender@instinctive.de>2006-05-26 02:00:12 +0400
commitb4861110dae8d279c31d2ed98b15b8deecddd9e8 (patch)
treedede95a1c6809b2d02e72195f3884f248355cbf0 /source/blender/src/headerbuttons.c
parent2132bbb62125de853a74dd0a2372e4effec4bd4a (diff)
Slight simplification of windowtype_pup()...
Diffstat (limited to 'source/blender/src/headerbuttons.c')
-rw-r--r--source/blender/src/headerbuttons.c52
1 files changed, 24 insertions, 28 deletions
diff --git a/source/blender/src/headerbuttons.c b/source/blender/src/headerbuttons.c
index 25f46275a06..2d0418d2c72 100644
--- a/source/blender/src/headerbuttons.c
+++ b/source/blender/src/headerbuttons.c
@@ -183,45 +183,41 @@
char *windowtype_pup(void)
{
- static char string[1024];
- char *str = string;
+ return(
+ "Window type:%t" //14
+ "|3D View %x1" //30
- str += sprintf(str, "%s", "Window type:%t"); //14
- str += sprintf(str, "%s", "|3D View %x1"); //30
+ "|%l" // 33
- str += sprintf(str, "%s", "|%l"); // 33
+ "|Ipo Curve Editor %x2" //54
+ "|Action Editor %x12" //73
+ "|NLA Editor %x13" //94
- str += sprintf(str, "%s", "|Ipo Curve Editor %x2"); //54
- str += sprintf(str, "%s", "|Action Editor %x12"); //73
- str += sprintf(str, "%s", "|NLA Editor %x13"); //94
+ "|%l" //97
- str += sprintf(str, "%s", "|%l"); //97
+ "|UV/Image Editor %x6" //117
- str += sprintf(str, "%s", "|UV/Image Editor %x6"); //117
+ "|Video Sequence Editor %x8" //143
+ "|Timeline %x15" //163
+ "|Audio Window %x11" //163
+ "|Text Editor %x9" //179
- str += sprintf(str, "%s", "|Video Sequence Editor %x8"); //143
- str += sprintf(str, "%s", "|Timeline %x15"); //163
- str += sprintf(str, "%s", "|Audio Window %x11"); //163
- str += sprintf(str, "%s", "|Text Editor %x9"); //179
+ "|%l" //192
- str += sprintf(str, "%s", "|%l"); //192
+ "|User Preferences %x7" //213
+ "|Outliner %x3" //232
+ "|Buttons Window %x4" //251
+ "|Node Editor %x16"
+ "|%l" //254
- str += sprintf(str, "%s", "|User Preferences %x7"); //213
- str += sprintf(str, "%s", "|Outliner %x3"); //232
- str += sprintf(str, "%s", "|Buttons Window %x4"); //251
- str += sprintf(str, "%s", "|Node Editor %x16");
+ "|Image Browser %x10" //273
+ "|File Browser %x5" //290
- str += sprintf(str, "%s", "|%l"); //254
+ "|%l" //293
- str += sprintf(str, "%s", "|Image Browser %x10"); //273
- str += sprintf(str, "%s", "|File Browser %x5"); //290
-
- str += sprintf(str, "%s", "|%l"); //293
-
- str += sprintf(str, "%s", "|Scripts Window %x14"); //313
-
- return (string);
+ "|Scripts Window %x14"//313
+ );
}
int GetButStringLength(char *str) {