[mythtv] [PATCH] Fix weather icons in MythWeather

Paul mythtv at dsl.pipex.com
Tue Dec 28 16:19:31 UTC 2004


This patch fixes the problem of MythWeather not always being able
to find the correct weather icons after recent changes by J. Donovan
to allow weather icons to be in a weather sub directory under the theme
directory, which only Titivillus has that sub directory at the moment.

The Blue and GANT themes don't show any icon at all on the current
conditions screen and the Titivillus theme shows some icons from
its theme directory and others from the default theme directory.

The patch changes MythWeather to consistently look in the same
place for the weather icons on the current conditions page and the
extended forecast page.

It also changes the LoadImage() method in UIImageType to fall back
to looking directly in the Theme directory and the default theme directory
if it can't find the image in the given sub directory.

The only other problem is that the Titivillus theme has some of the
weather icons missing in the cvs. (cloudy.png, mcloudy.png, lshowers.png,
fog.png, flurries.png, pcloudy.png, fair.png, rainsnow.png). Titivillus
seems
to use the same icons as GANT so the easyiest way to fix this is to copy the
missing icons into the weather directory under the Titivillus theme
directory from
the GANT theme.

Paul
-------------- next part --------------
A non-text attachment was scrubbed...
Name: mythweather.diff
Type: application/octet-stream
Size: 1023 bytes
Desc: not available
Url : http://mythtv.org/pipermail/mythtv-dev/attachments/20041228/83007051/mythweather.obj
-------------- next part --------------
A non-text attachment was scrubbed...
Name: uitypes.diff
Type: application/octet-stream
Size: 1732 bytes
Desc: not available
Url : http://mythtv.org/pipermail/mythtv-dev/attachments/20041228/83007051/uitypes.obj


More information about the mythtv-dev mailing list