diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2011-10-23 14:38:33 -0700 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2011-10-23 14:38:33 -0700 |
commit | 11b62a149b0d65e37a2cedbc93c8e8d84b23e041 (patch) | |
tree | 6b81537e121431b28d78ef3bd7dd52132bb198bf | |
parent | 8c0c6bad59b588de4fe1e8983d76ded16538fc44 (diff) | |
download | subsurface-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>
-rw-r--r-- | divelist.c | 1 |
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); |