[mythtv] [PATCH] Change LoadTheme to fallback to default theme file ...

Paul mythtv at dsl.pipex.com
Tue Apr 5 17:41:53 UTC 2005


... if a window definition cannot be found in the current theme.

This patch gives XMLParse::LoadTheme() a second chance at finding
a window definition by looking in the default theme file if it can't be
found in the current theme file.

This is useful for devs because they only have to add a window definition to
the default theme file for a plugin and not have to worry about updating all
the theme files. If theme designers want to they can always override it by
adding a window definition to their own theme files. It also has the added
benefit of breaking less often themes that are not part of the myth
distribution.

It won't help in the case where new UI elements have been added to existing
window definitions though :-(

Paul
-------------- next part --------------
A non-text attachment was scrubbed...
Name: xmlparse.diff
Type: application/octet-stream
Size: 2707 bytes
Desc: not available
Url : http://mythtv.org/pipermail/mythtv-dev/attachments/20050405/90d1723e/xmlparse.obj


More information about the mythtv-dev mailing list