mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-28 05:00:20 +00:00
0c4e1697db
When we change units, we need to flush any currently active dive information in the old units, and then carefully reload it in the new units. Otherwise crazy stuff happens - like having current cylinder working pressure values that are in PSI because that *used* to be the output unit, but then interpreting those values as BAR, because we changed the units. Also, since we now properly import working pressure from Diving Log, stop importing the (useless) cylinder description. The Diving Log cylinder descriptions are things like "Alu" or "Steel". We're better off just making up our own. Finally, since Diving Log has cylinder size in metric, make sure that we do the "match standard cylinder sizes" *after* we've done all the cylinder size conversions to proper units. Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
17 lines
372 B
C
17 lines
372 B
C
#ifndef DIVELIST_H
|
|
#define DIVELIST_H
|
|
|
|
#include <gtk/gtk.h>
|
|
|
|
struct DiveList {
|
|
GtkWidget *tree_view;
|
|
GtkWidget *container_widget;
|
|
GtkListStore *model;
|
|
GtkTreeViewColumn *date, *depth, *duration;
|
|
};
|
|
|
|
extern struct DiveList dive_list_create(void);
|
|
extern void dive_list_update_dives(struct DiveList);
|
|
extern void update_dive_list_units(struct DiveList *);
|
|
|
|
#endif
|