Mercurial > audlegacy-plugins
comparison src/paranormal/actuators.c @ 168:e094aa00fdee trunk
[svn] - support lookup of actuator templates by their display name
- use displayed names in the "new actuator" popup menu.
author | nenolod |
---|---|
date | Tue, 31 Oct 2006 22:42:55 -0800 |
parents | fd9c0a5871ac |
children | 0d826917c56f |
comparison
equal
deleted
inserted
replaced
167:c9d736cdc93f | 168:e094aa00fdee |
---|---|
66 get_actuator_desc (const char *name) | 66 get_actuator_desc (const char *name) |
67 { | 67 { |
68 int i; | 68 int i; |
69 | 69 |
70 for (i=0; builtin_table[i]; i++) | 70 for (i=0; builtin_table[i]; i++) |
71 if (! g_strcasecmp (name, builtin_table[i]->name)) | 71 if (! g_strcasecmp (name, builtin_table[i]->name) || ! g_strcasecmp(name, builtin_table[i]->dispname)) |
72 break; | 72 break; |
73 | 73 |
74 /* actuator not found */ | 74 /* actuator not found */ |
75 if (! builtin_table[i]) | 75 if (! builtin_table[i]) |
76 return NULL; | 76 return NULL; |