[PATCH] Move get_units() to prefs.c
subsurface at henrik.synth.no
subsurface at henrik.synth.no
Fri Jan 25 00:20:05 PST 2013
From: Henrik Brautaset Aronsen <subsurface at henrik.synth.no>
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 at henrik.synth.no>
---
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 18e9ae7..94866d9 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 04db630..7c83311 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) {
--
1.7.11.5
More information about the subsurface
mailing list