From b696c61389680b9ccf2582a445c9fd7a7e1da360 Mon Sep 17 00:00:00 2001 From: Henrik Brautaset Aronsen Date: Fri, 25 Jan 2013 09:20:05 +0100 Subject: [PATCH] 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 Signed-off-by: Dirk Hohndel --- gtk-gui.c | 5 ----- prefs.c | 5 +++++ 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/gtk-gui.c b/gtk-gui.c index 18e9ae7e5..94866d9e5 100644 --- a/gtk-gui.c +++ b/gtk-gui.c @@ -73,11 +73,6 @@ static GtkWidget *dive_profile; GtkActionGroup *action_group; -struct units *get_units() -{ - return &prefs.units; -} - void repaint_dive(void) { update_dive(current_dive); diff --git a/prefs.c b/prefs.c index 04db63044..7c833116f 100644 --- a/prefs.c +++ b/prefs.c @@ -2,6 +2,11 @@ #include "dive.h" +struct units *get_units() +{ + return &prefs.units; +} + static void set_bool_conf(char *name, gboolean value, gboolean def) { if (value == def) {