summaryrefslogtreecommitdiffstats
path: root/gtk-gui.c
diff options
context:
space:
mode:
authorGravatar Miika Turkia <miika.turkia@gmail.com>2012-03-14 19:01:34 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2012-03-16 12:12:19 -0700
commit9933ccd7cf3a84ca60330a810e7763668ad882fb (patch)
tree2b20bb8d2c1c47ef205bb7d05d8c338d79888bbb /gtk-gui.c
parent2d88353b5965853c01a9d394f96a5d0545d86b21 (diff)
downloadsubsurface-9933ccd7cf3a84ca60330a810e7763668ad882fb.tar.gz
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>
Diffstat (limited to 'gtk-gui.c')
-rw-r--r--gtk-gui.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gtk-gui.c b/gtk-gui.c
index 5b892653f..402e91a6e 100644
--- a/gtk-gui.c
+++ b/gtk-gui.c
@@ -746,7 +746,7 @@ void init_ui(int *argcp, char ***argvp)
/* Frame for total dive statistics */
nb_page = total_stats_widget();
- gtk_notebook_append_page(GTK_NOTEBOOK(notebook), nb_page, gtk_label_new("Overall Stats"));
+ gtk_notebook_append_page(GTK_NOTEBOOK(notebook), nb_page, gtk_label_new("Stats"));
gtk_widget_set_app_paintable(win, TRUE);
gtk_widget_show_all(win);