summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: c06ca98)
raw | patch | inline | side by side (parent: c06ca98)
author | Max Kellermann <max@duempel.org> | |
Thu, 25 Dec 2008 21:17:31 +0000 (22:17 +0100) | ||
committer | Max Kellermann <max@duempel.org> | |
Thu, 25 Dec 2008 21:17:31 +0000 (22:17 +0100) |
src/conf.c | patch | blob | history |
diff --git a/src/conf.c b/src/conf.c
index 3411ed8ad4625a7e849f874443d2756ea571e7d5..6d4bf887662f8d9d89796b1426369544bfb68fa3 100644 (file)
--- a/src/conf.c
+++ b/src/conf.c
{
if (*str == '\'') {
if (str[1] == '\'' || str[2] != '\'') {
- print_error(_("Unsupported key definition"), str);
+ print_error(_("Malformed hotkey definition"), str);
return -1;
}
} else {
long value = strtol(str, end, 0);
if (*end == str) {
- print_error(_("Unsupported key definition"), str);
+ print_error(_("Malformed hotkey definition"), str);
return -1;
}
while (i < len && str[i] != '=' && !g_ascii_isspace(str[i]))
buf[j++] = str[i++];
if( (cmd=get_key_command_from_name(buf)) == CMD_NONE ) {
- print_error(_("Unknown key command"), buf);
+ print_error(_("Unknown command"), buf);
return -1;
}
memset(buf, 0, MAX_LINE_LENGTH);
g_strlcpy(buf, str+i, MAX_LINE_LENGTH);
if (*buf == 0) {
- print_error(_("Incomplete key definition"), str);
+ print_error(_("Incomplete hotkey configuration"), str);
return -1;
}
p++;
}
- if (key < 0) {
- print_error(_("Bad key definition"), str);
+ if (key < 0)
return -1;
- }
return assign_keys(cmd, keys);
}
/* get the command name */
color = colors_str2color(str);
if (color < 0) {
- print_error(_("Bad color"), buf);
+ print_error(_("Bad color name"), buf);
return -1;
}
}
if (*value != 0) {
- print_error(_("Bad color definition"), str);
+ print_error(_("Malformed color definition"), str);
return -1;
}
while( tmp && tmp[i] ) {
char *name = g_ascii_strdown(tmp[i], -1);
if (screen_lookup_name(name) == NULL) {
- print_error(_("Unsupported screen"), name);
+ print_error(_("Unknown screen name"), name);
free(name);
} else {
screen = g_realloc(screen, (j+2)*sizeof(char *));