summaryrefslogtreecommitdiffstats
path: root/divelist.c
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2011-09-20 09:56:46 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2011-09-20 09:56:46 -0700
commit43960a70a6dafea5e2d05efac290283c726fb028 (patch)
treedd08877e3654befdac4b18957825183c1a53fda1 /divelist.c
parent3a6c1f767d527c2247eefb264f68adf3f3770608 (diff)
downloadsubsurface-43960a70a6dafea5e2d05efac290283c726fb028.tar.gz
Minor tweaks to column headers
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'divelist.c')
-rw-r--r--divelist.c19
1 files changed, 16 insertions, 3 deletions
diff --git a/divelist.c b/divelist.c
index 3b840794b..eb6e8482f 100644
--- a/divelist.c
+++ b/divelist.c
@@ -204,7 +204,7 @@ static void sac_data_func(GtkTreeViewColumn *col,
sac = value / 1000.0;
switch (output_units.volume) {
case LITER:
- fmt = "%4.0f";
+ fmt = "%4.1f";
break;
case CUFT:
fmt = "%4.2f";
@@ -341,14 +341,27 @@ void update_dive_list_units(struct DiveList *dive_list)
switch (output_units.length) {
case METERS:
- unit = "m";
+ unit = "max/m";
break;
case FEET:
- unit = "ft";
+ unit = "max/ft";
break;
}
gtk_tree_view_column_set_title(dive_list->depth, unit);
+ switch (output_units.temperature) {
+ case CELSIUS:
+ unit = "degC";
+ break;
+ case FAHRENHEIT:
+ unit = "degF";
+ break;
+ case KELVIN:
+ unit = "Kelvin";
+ break;
+ }
+ gtk_tree_view_column_set_title(dive_list->temperature, unit);
+
gtk_tree_model_foreach(model, set_one_dive, NULL);
}