make unit of all temperatures selectable
authorPhil Sutter <phil@nwl.cc>
Sun, 7 Dec 2008 19:08:29 +0000 (20:08 +0100)
committerPhil Sutter <phil@nwl.cc>
Mon, 8 Dec 2008 00:45:12 +0000 (01:45 +0100)
commitf5259295cf4ae642fc3c90151e5aab218aedf85b
treeb84cd62a885f67ae6ecbbbaa790c1138eacfcde9
parent1a4e4b3b695cf9925711d8dc15a5895910253847
make unit of all temperatures selectable

This introduces a new configuration variable called "temperature_unit",
specifying the unit of all temperature sensors. To achieve this, each
object outputting a temperature has to call temp_print() like so:
| temp_print(p, p_max_size, <temp val as double>, <unit of val>);
to specify the input temperature unit, either one of the constants
TEMP_CELSIUS or TEMP_FAHRENHEIT.
doc/config_settings.xml
src/Makefile.am
src/conky.c
src/temphelper.c [new file with mode: 0644]
src/temphelper.h [new file with mode: 0644]