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>
This commit is contained in:
Dirk Hohndel 2013-05-23 18:38:45 -07:00
parent 641db88a2c
commit ecbcd4db47
3 changed files with 13 additions and 9 deletions

View file

@ -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;