1
0
mirror of https://github.com/Llewellynvdm/conky.git synced 2024-12-27 04:32:55 +00:00

Increase backwards compat for border_margin.

Even though border_margin is deprecated, we'll set border_inner_margin
anyway so lazy people won't complain too much.
This commit is contained in:
Brenden Matthews 2009-06-14 12:24:18 -06:00
parent b4f88ff319
commit be75e07c9d

View File

@ -7913,6 +7913,12 @@ static void load_config_file(const char *f)
}
CONF("border_margin") {
ERR("border_margin is deprecated, please use border_inner_margin instead");
if (value) {
border_inner_margin = strtol(value, 0, 0);
if (border_inner_margin < 0) border_inner_margin = 0;
} else {
CONF_ERR;
}
}
CONF("border_inner_margin") {
if (value) {