changeset 3200:14c6dc634785

Updated strut/padding config value handling
author unexist
date Wed, 11 Apr 2012 12:32:43 +0200
parents f5d825c4519e
children 26b5e25c3d5b
files src/subtle/ruby.c
diffstat 1 files changed, 2 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/src/subtle/ruby.c	Tue Apr 10 01:37:27 2012 +0200
+++ b/src/subtle/ruby.c	Wed Apr 11 12:32:43 2012 +0200
@@ -1148,10 +1148,8 @@
       RubyHashToColor(params, "stipple",      &s->fg);
 
       /* Set strut */
-      if(T_ARRAY == rb_type(value = rb_hash_lookup(params,
-          CHAR2SYM("strut"))) || T_ARRAY == rb_type(value =
-          rb_hash_lookup(params, CHAR2SYM("padding"))))
-        RubyArrayToSides(value, &s->padding);
+      RubyHashToSides(params, "strut",   &s->padding);
+      RubyHashToSides(params, "padding", &s->padding);
 
       /* Set both panel colors */
       if(!NIL_P(value = rb_hash_lookup(params, CHAR2SYM("panel"))))