summaryrefslogtreecommitdiffstats
path: root/divelist.c
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2011-10-23 14:38:33 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2011-10-23 14:38:33 -0700
commit11b62a149b0d65e37a2cedbc93c8e8d84b23e041 (patch)
tree6b81537e121431b28d78ef3bd7dd52132bb198bf /divelist.c
parent8c0c6bad59b588de4fe1e8983d76ded16538fc44 (diff)
downloadsubsurface-11b62a149b0d65e37a2cedbc93c8e8d84b23e041.tar.gz
Disable sorting by dive number
This is based on Linus idea and code - just adding it to my UI branch in case he didn't actually add it to his code... It makes no sense to sort by dive number - every sane person will have dive numbers be chronological; so they can sort by date instead. But removing this option wastes less space and makes the dive list look much better Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'divelist.c')
-rw-r--r--divelist.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/divelist.c b/divelist.c
index 948332f4e..3ddfb6582 100644
--- a/divelist.c
+++ b/divelist.c
@@ -541,6 +541,7 @@ GtkWidget *dive_list_create(void)
gtk_widget_set_size_request(dive_list.tree_view, 200, 200);
dive_list.nr = divelist_column(&dive_list, DIVE_NR, "#", NULL, PANGO_ALIGN_RIGHT, TRUE);
+ gtk_tree_view_column_set_sort_column_id(dive_list.nr, -1);
dive_list.date = divelist_column(&dive_list, DIVE_DATE, "Date", date_data_func, PANGO_ALIGN_LEFT, TRUE);
dive_list.depth = divelist_column(&dive_list, DIVE_DEPTH, "ft", depth_data_func, PANGO_ALIGN_RIGHT, TRUE);
dive_list.duration = divelist_column(&dive_list, DIVE_DURATION, "min", duration_data_func, PANGO_ALIGN_RIGHT, TRUE);