diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2012-09-10 14:32:55 -0700 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2012-09-10 14:32:55 -0700 |
commit | a8fd77865c3e3e0a547b8e06a047c44732fe92f2 (patch) | |
tree | ed7c615537b766a7c3376937df3fe9060b9a5454 /equipment.c | |
parent | 78c5aa9f071ab56e56bf760e3e7fc7f0f0d1b1ff (diff) | |
download | subsurface-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 'equipment.c')
-rw-r--r-- | equipment.c | 6 |
1 files changed, 6 insertions, 0 deletions
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); +} |