From 7f6d13f8667dc1ee2cc35ce13424735666715b7d Mon Sep 17 00:00:00 2001 From: Linus Torvalds Date: Thu, 22 Sep 2011 08:11:12 -0700 Subject: [PATCH] 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 --- divelist.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/divelist.c b/divelist.c index e84e3a1..dd942f7 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); -- 2.45.2