From a5c6eb81adb67756848b4b5fa053eea302d06225 Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Sat, 4 Aug 2007 12:13:10 -0400 Subject: [PATCH] let you specify the padding y and x independently --- render/theme.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/render/theme.c b/render/theme.c index a793ced7..0de3dc74 100644 --- a/render/theme.c +++ b/render/theme.c @@ -186,7 +186,9 @@ RrTheme* RrThemeNew(const RrInstance *inst, const gchar *name, if (!read_int(db, "padding.width", &theme->paddingx) || theme->paddingx < 0 || theme->paddingx > 100) theme->paddingx = 3; - theme->paddingy = theme->paddingx; + if (!read_int(db, "padding.height", &theme->paddingy) || + theme->paddingy < 0 || theme->paddingy > 100) + theme->paddingy = theme->paddingx; if (!read_int(db, "border.width", &theme->fbwidth) || theme->fbwidth < 0 || theme->fbwidth > 100) theme->fbwidth = 1; -- 2.39.2