Backgounds now appear in Theme editor

This commit is contained in:
Tim Bentley 2009-10-18 08:49:47 +01:00
parent 486f5ce709
commit efec5e1e95
2 changed files with 3 additions and 0 deletions

View File

@ -90,6 +90,8 @@ class ThemeXML(object):
The path name to be added.
"""
if self.background_filename is not None and path is not None:
self.theme_name = self.theme_name.rstrip().lstrip()
self.background_filename = self.background_filename.rstrip().lstrip()
self.background_filename = os.path.join(path, self.theme_name,
self.background_filename)

View File

@ -108,6 +108,7 @@ class MainDisplay(DisplayLabel):
Sets up the screen on a particular screen.
@param (integer) screen This is the screen number.
"""
log.debug(u'Setup %s for %s ' %(self.screens, screenNumber) )
screen = self.screens[screenNumber]
if screen[u'number'] != screenNumber:
# We will most probably never actually hit this bit, but just in