summaryrefslogtreecommitdiffstats
path: root/divelist.c
diff options
context:
space:
mode:
authorGravatar Linus Torvalds <torvalds@linux-foundation.org>2011-09-20 17:52:04 -0700
committerGravatar Linus Torvalds <torvalds@linux-foundation.org>2011-09-20 17:56:56 -0700
commit957aaf619f22465b4aa1898c925831a6270c1230 (patch)
treef082d3ccbf74c39d5d4fea31d2a595ad2806ca60 /divelist.c
parent368623113c7f457e372bb1c4968fb2445cac62a1 (diff)
downloadsubsurface-957aaf619f22465b4aa1898c925831a6270c1230.tar.gz
Fix up printing some more
Use the actual degree sign for temperatures (°F and °C), and make sure everything uses the proper "set_source_rgb[a]()" wrappers to set the colors. Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'divelist.c')
-rw-r--r--divelist.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/divelist.c b/divelist.c
index 641e3c8b3..88825dd89 100644
--- a/divelist.c
+++ b/divelist.c
@@ -364,10 +364,10 @@ void update_dive_list_units(void)
switch (output_units.temperature) {
case CELSIUS:
- unit = "degC";
+ unit = UTF8_DEGREE "C";
break;
case FAHRENHEIT:
- unit = "degF";
+ unit = UTF8_DEGREE "F";
break;
case KELVIN:
unit = "Kelvin";
@@ -473,9 +473,9 @@ GtkWidget *dive_list_create(void)
dive_list.depth = divelist_column(&dive_list, DIVE_DEPTH, "max/ft", depth_data_func, 1, 0);
dive_list.duration = divelist_column(&dive_list, DIVE_DURATION, "min", duration_data_func, 1, 0);
dive_list.location = divelist_column(&dive_list, DIVE_LOCATION, "Location", NULL, 0, 1);
- dive_list.temperature = divelist_column(&dive_list, DIVE_TEMPERATURE, "degF", temperature_data_func, 1, 0);
+ dive_list.temperature = divelist_column(&dive_list, DIVE_TEMPERATURE, UTF8_DEGREE "F", temperature_data_func, 1, 0);
dive_list.cylinder = divelist_column(&dive_list, DIVE_CYLINDER, "Cyl", NULL, 0, 0);
- dive_list.nitrox = divelist_column(&dive_list, DIVE_NITROX, "O2%", nitrox_data_func, 1, 0);
+ dive_list.nitrox = divelist_column(&dive_list, DIVE_NITROX, "O" UTF8_SUBSCRIPT_2 "%", nitrox_data_func, 1, 0);
dive_list.sac = divelist_column(&dive_list, DIVE_SAC, "SAC", sac_data_func, 1, 0);
fill_dive_list();