From: Linus Torvalds Date: Thu, 22 Sep 2011 15:11:12 +0000 (-0700) Subject: In divelist maxdepth column, only show depth unit X-Git-Url: http://git.tdb.fi/?a=commitdiff_plain;h=7f6d13f8667dc1ee2cc35ce13424735666715b7d;p=ext%2Fsubsurface.git 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 --- 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);