summaryrefslogtreecommitdiffstats
path: root/divelist.c
diff options
context:
space:
mode:
authorGravatar Linus Torvalds <torvalds@linux-foundation.org>2011-09-22 08:11:12 -0700
committerGravatar Linus Torvalds <torvalds@linux-foundation.org>2011-09-22 08:11:12 -0700
commit7f6d13f8667dc1ee2cc35ce13424735666715b7d (patch)
tree82d3f570beb4043f7c4773a31ae0e487804a8800 /divelist.c
parent1d36085b41f836c94549e04b8d06d1f880102655 (diff)
downloadsubsurface-7f6d13f8667dc1ee2cc35ce13424735666715b7d.tar.gz
In divelist maxdepth column, only show depth unit
Show "m" or "ft" instead of "max/m" vs "max/ft". The column really doesn't want to be that wide. The column header is already the widest part of it even with this short name (due to the sort order arrow thing). Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'divelist.c')
-rw-r--r--divelist.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/divelist.c b/divelist.c
index e84e3a10d..dd942f719 100644
--- a/divelist.c
+++ b/divelist.c
@@ -354,10 +354,10 @@ void update_dive_list_units(void)
switch (output_units.length) {
case METERS:
- unit = "max/m";
+ unit = "m";
break;
case FEET:
- unit = "max/ft";
+ unit = "ft";
break;
}
gtk_tree_view_column_set_title(dive_list.depth, unit);
@@ -470,7 +470,7 @@ GtkWidget *dive_list_create(void)
gtk_widget_set_size_request(dive_list.tree_view, 200, 200);
dive_list.date = divelist_column(&dive_list, DIVE_DATE, "Date", date_data_func, 0, 0);
- dive_list.depth = divelist_column(&dive_list, DIVE_DEPTH, "max/ft", depth_data_func, 1, 0);
+ dive_list.depth = divelist_column(&dive_list, DIVE_DEPTH, "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, UTF8_DEGREE "F", temperature_data_func, 1, 0);