let you specify the padding y and x independently

This commit is contained in:
Dana Jansens 2007-08-04 12:13:10 -04:00
parent 29e94a9e59
commit a5c6eb81ad

View file

@ -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;