]> Dogcows Code - chaz/openbox/commitdiff
let you specify the padding y and x independently
authorDana Jansens <danakj@orodu.net>
Sat, 4 Aug 2007 16:13:10 +0000 (12:13 -0400)
committerDana Jansens <danakj@orodu.net>
Sat, 4 Aug 2007 16:13:10 +0000 (12:13 -0400)
render/theme.c

index a793ced71f6a8021ca296f31c2d955bfbd94adba..0de3dc745d42662ae09599bb761731e6d31ade29 100644 (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;
This page took 0.02827 seconds and 4 git commands to generate.