Move get_units() to prefs.c

get_units() returns the current unit preference, thus it
belongs in prefs.c rather than gtk-gui.c

Signed-off-by: Henrik Brautaset Aronsen <subsurface@henrik.synth.no>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Henrik Brautaset Aronsen 2013-01-25 09:20:05 +01:00 committed by Dirk Hohndel
parent ff5a8b0650
commit b696c61389
2 changed files with 5 additions and 5 deletions

View file

@ -73,11 +73,6 @@ static GtkWidget *dive_profile;
GtkActionGroup *action_group; GtkActionGroup *action_group;
struct units *get_units()
{
return &prefs.units;
}
void repaint_dive(void) void repaint_dive(void)
{ {
update_dive(current_dive); update_dive(current_dive);

View file

@ -2,6 +2,11 @@
#include "dive.h" #include "dive.h"
struct units *get_units()
{
return &prefs.units;
}
static void set_bool_conf(char *name, gboolean value, gboolean def) static void set_bool_conf(char *name, gboolean value, gboolean def)
{ {
if (value == def) { if (value == def) {