mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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:
parent
641db88a2c
commit
ecbcd4db47
3 changed files with 13 additions and 9 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue