diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2013-05-02 17:01:35 -0700 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2013-05-02 17:02:55 -0700 |
commit | ff2ce399702d3a487316bfcc4b1fff01dbb8d309 (patch) | |
tree | 709b497e1981873b5301c68c0a906b874b7dd635 /dive.c | |
parent | 021ef8ad09295a0ad4b5a3450a651637eea8672d (diff) | |
parent | 696c9ccacd24392ea63477c5ec8a25d6649aedf7 (diff) | |
download | subsurface-ff2ce399702d3a487316bfcc4b1fff01dbb8d309.tar.gz |
Merge branch 'tomaz-css' into Qt
Tomaz' code does a much better job of shading the dive list!
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'dive.c')
-rw-r--r-- | dive.c | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -1810,6 +1810,15 @@ struct dive *merge_dives(struct dive *a, struct dive *b, int offset, gboolean pr return res; } +int get_index_for_dive(struct dive *dive) { + int i; + struct dive *d; + for_each_dive(i, d) + if (d == dive) + return i; + return -1; +} + struct dive *find_dive_including(timestamp_t when) { int i; |