Show statistics of selected dives

If at least 2 dives are selected, show statistics of these dives on
Overall Stats. Otherwise, show the statistics of all dives. Temperature
is also added to the shown statistics.

Signed-off-by: Miika Turkia <miika.turkia@gmail.com>

Minor change to avoid adding statistics.h (moved the global variable and
external function declaration to display-gtk.h).
Another minor change to the text displayed for the "Stats" notebook page.

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Miika Turkia 2012-03-14 19:01:34 +02:00 committed by Dirk Hohndel
parent 2d88353b59
commit 9933ccd7cf
4 changed files with 117 additions and 36 deletions

View file

@ -67,6 +67,10 @@ extern GtkWidget *cylinder_list_widget(void);
extern GtkWidget *dive_list_create(void);
unsigned int amount_selected;
extern void process_selected_dives(GList *, GtkTreeModel *);
typedef void (*data_func_t)(GtkTreeViewColumn *col,
GtkCellRenderer *renderer,
GtkTreeModel *model,