From a8fd77865c3e3e0a547b8e06a047c44732fe92f2 Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Mon, 10 Sep 2012 14:32:55 -0700 Subject: 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 --- equipment.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'equipment.c') diff --git a/equipment.c b/equipment.c index d676fc05d..e81302c92 100644 --- a/equipment.c +++ b/equipment.c @@ -1612,3 +1612,9 @@ GtkWidget *equipment_widget(int w_idx) return vbox; } + +void clear_equipment_widgets() +{ + gtk_list_store_clear(cylinder_list[W_IDX_PRIMARY].model); + gtk_list_store_clear(weightsystem_list[W_IDX_PRIMARY].model); +} -- cgit v1.2.3-70-g09d2