From b32f1eaf9ae246f656ebd27c2fbb5d29d2bec34c Mon Sep 17 00:00:00 2001 From: Christian Tusche Date: Sun, 6 May 2007 17:26:51 +0200 Subject: 2007-05-06: Version 1.1-cvs_ext-0.10b (text2skin-1.1-cvs_ext-0.10b.diff) - increase skin file version to 1.1 - the position of list items is interpreted relative to the "list" container when file version >= 1.1 - when a position is specified for "block" elements, the position of all contained elements is interpreted relative to the container position --- loader.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'loader.c') diff --git a/loader.c b/loader.c index a34998b..bdeea09 100644 --- a/loader.c +++ b/loader.c @@ -52,11 +52,12 @@ void cText2SkinLoader::Load(const char *Skin) { cxSkin *skin = xmlParse(Skin, skinfile, translations, theme); if (skin) { - if (skin->Version() == cText2SkinPlugin::SkinVersion()) { + if( skin->Version() <= cText2SkinPlugin::SkinVersion() ) { new cText2SkinLoader(skin, translations, theme, Skin, skin->Title()); return; } else - esyslog("ERROR: text2skin: Skin is version %s, expecting %s", skin->Version().c_str(), + esyslog("ERROR: text2skin: Skin is version %i,%i, expecting <= %s", + skin->Version().Major(), skin->Version().Minor(), cText2SkinPlugin::SkinVersion()); } else esyslog("ERROR: error in skin file"); -- cgit v1.2.3