From b249a13355adb712e7d9c27a21b29bc2225a43c0 Mon Sep 17 00:00:00 2001 From: Thomas Leonard Date: Fri, 22 Oct 2004 10:09:29 +0000 Subject: [PATCH] Bugfix: Theme subdirectories are separated by ',' not ';' (reported by Denis Prost). git-svn-id: https://rox.svn.sourceforge.net/svnroot/rox/trunk/ROX-Lib2@3709 66de3db3-b00d-0410-b41b-f4738ad19bea --- Help/Changes | 5 +++++ python/rox/icon_theme.py | 7 +++++-- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/Help/Changes b/Help/Changes index 56800ab..bf32f68 100644 --- a/Help/Changes +++ b/Help/Changes @@ -3,6 +3,11 @@ by Thomas Leonard http://rox.sourceforge.net +22-Oct-2004 +~~~~~~~~~~~ +Bugfix: Theme subdirectories are separated by ',' not ';' (reported by + Denis Prost). + 20-Oct-2004 ~~~~~~~~~~~ Bugfix: When a menu has more than one toggle item, only one is updated diff --git a/python/rox/icon_theme.py b/python/rox/icon_theme.py index 6e24eec..7c255f4 100644 --- a/python/rox/icon_theme.py +++ b/python/rox/icon_theme.py @@ -32,8 +32,11 @@ class Index: key, value = map(str.strip, line.split('=', 1)) section[key] = value - self.subdirs = [SubDir(self, d) for - d in self.get('Icon Theme', 'Directories').split(';')] + subdirs = self.get('Icon Theme', 'Directories') + + subdirs = subdirs.replace(';', ',') # Just in case... + + self.subdirs = [SubDir(self, d) for d in subdirs.split(',')] def get(self, section, key): "None if not found" -- 2.11.4.GIT