From be75e07c9d1cc0174466ded2e504a77c951d5f78 Mon Sep 17 00:00:00 2001 From: Brenden Matthews Date: Sun, 14 Jun 2009 12:24:18 -0600 Subject: [PATCH] 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. --- src/conky.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/conky.c b/src/conky.c index be778e40..ed24d923 100644 --- a/src/conky.c +++ b/src/conky.c @@ -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) {