summaryrefslogtreecommitdiffstats
path: root/statistics.c
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2012-09-10 14:32:55 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2012-09-10 14:32:55 -0700
commita8fd77865c3e3e0a547b8e06a047c44732fe92f2 (patch)
treeed7c615537b766a7c3376937df3fe9060b9a5454 /statistics.c
parent78c5aa9f071ab56e56bf760e3e7fc7f0f0d1b1ff (diff)
downloadsubsurface-a8fd77865c3e3e0a547b8e06a047c44732fe92f2.tar.gz
Implement Close menu option that allows closing the data file
This requires some helper routines that allow us to clear out all the widgets. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'statistics.c')
-rw-r--r--statistics.c29
1 files changed, 29 insertions, 0 deletions
diff --git a/statistics.c b/statistics.c
index a53617337..674efbb94 100644
--- a/statistics.c
+++ b/statistics.c
@@ -416,3 +416,32 @@ GtkWidget *single_stats_widget(void)
return vbox;
}
+
+void clear_stats_widgets(void)
+{
+ set_label(single_w.date, "");
+ set_label(single_w.dive_time, "");
+ set_label(single_w.surf_intv, "");
+ set_label(single_w.max_depth, "");
+ set_label(single_w.avg_depth, "");
+ set_label(single_w.water_temp, "");
+ set_label(single_w.sac, "");
+ set_label(single_w.sac, "");
+ set_label(single_w.otu, "");
+ set_label(single_w.o2he, "");
+ set_label(single_w.gas_used, "");
+ set_label(stats_w.total_time,"");
+ set_label(stats_w.avg_time,"");
+ set_label(stats_w.shortest_time,"");
+ set_label(stats_w.longest_time,"");
+ set_label(stats_w.max_overall_depth,"");
+ set_label(stats_w.min_overall_depth,"");
+ set_label(stats_w.avg_overall_depth,"");
+ set_label(stats_w.min_sac,"");
+ set_label(stats_w.avg_sac,"");
+ set_label(stats_w.max_sac,"");
+ set_label(stats_w.selection_size,"");
+ set_label(stats_w.max_temp,"");
+ set_label(stats_w.avg_temp,"");
+ set_label(stats_w.min_temp,"");
+}