summaryrefslogtreecommitdiff
path: root/render/theme.c
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2007-08-04 12:13:10 -0400
committerDana Jansens <danakj@orodu.net>2007-08-04 12:13:10 -0400
commita5c6eb81adb67756848b4b5fa053eea302d06225 (patch)
tree363dd68c2a28841ea3de43d1dde99bb8b6467abe /render/theme.c
parent29e94a9e59bc2bf7269a0c87acbfa61615ba703d (diff)
let you specify the padding y and x independently
Diffstat (limited to 'render/theme.c')
-rw-r--r--render/theme.c4
1 files changed, 3 insertions, 1 deletions
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;