summaryrefslogtreecommitdiffstats
path: root/equipment.c
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2013-05-23 18:38:45 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2013-05-23 21:33:19 -0700
commitecbcd4db4721c9e4a6b4253a5f45f43fa9e80fc7 (patch)
tree7074fbf17e3fbe467a11a0613737c423e9f92926 /equipment.c
parent641db88a2c6b50ccbb2df1546de42b779541bf0c (diff)
downloadsubsurface-ecbcd4db4721c9e4a6b4253a5f45f43fa9e80fc7.tar.gz
Enable the weightsystem info and move the declarations to dive.h
Having the tank_info declared in models.cpp seemed unintuitive. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'equipment.c')
-rw-r--r--equipment.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/equipment.c b/equipment.c
index 2c17b985e..cd3984c86 100644
--- a/equipment.c
+++ b/equipment.c
@@ -909,15 +909,13 @@ bad_tank_info:
fprintf(stderr, "Bad tank info for '%s'\n", info->name);
}
}
+#endif /* USE_GTK_UI */
/*
* We hardcode the most common weight system types
* This is a bit odd as the weight system types don't usually encode weight
*/
-static struct ws_info {
- const char *name;
- int grams;
-} ws_info[100] = {
+struct ws_info ws_info[100] = {
{ N_("integrated"), 0 },
{ N_("belt"), 0 },
{ N_("ankle"), 0 },
@@ -925,6 +923,7 @@ static struct ws_info {
{ N_("clip-on"), 0 },
};
+#if USE_GTK_UI
static void fill_ws_list(GtkListStore *store)
{
GtkTreeIter iter;